@topwrite/reader 1.0.68-alpha.2 → 1.0.68-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- (()=>{var e,t,r,n,o={6963:(e,t,r)=>{"use strict";r.d(t,{l_:()=>$u,fy:()=>Lu,D7:()=>pw,De:()=>qu,$B:()=>Al,ql:()=>Oy,cu:()=>By,IA:()=>My,fH:()=>Vm,$q:()=>Tl,aC:()=>Vu,Wp:()=>vb,UG:()=>cw,Hn:()=>Tf,Sy:()=>jb,ER:()=>Dl,oI:()=>Wu,Lj:()=>Qu,f6:()=>wp,q4:()=>Dw,rK:()=>Hu,US:()=>kw,W3:()=>Sb,nC:()=>Wy,vJ:()=>Dp,xg:()=>el,WA:()=>Yy,iv:()=>cp,Em:()=>nv,vU:()=>rv,He:()=>Ew,Ak:()=>Fb,oe:()=>Bu,V5:()=>Sw,N0:()=>Bl,CB:()=>Ll,F4:()=>Pp,_f:()=>Xy,j0:()=>qf(),JH:()=>bl,FB:()=>Ml,YB:()=>Pl,WY:()=>du,zo:()=>Ap,ol:()=>Pb,r5:()=>xg,UK:()=>kg,bd:()=>hb,r3:()=>Sg,CQ:()=>Jy,Nr:()=>vw,jr:()=>mw,zX:()=>Hv,Rs:()=>ww,y1:()=>pg,cw:()=>Zm,mP:()=>mb,Rr:()=>xw,tT:()=>Cb,D2:()=>yw,D9:()=>dw,v9:()=>Ab,CM:()=>Ob,LU:()=>eb,TC:()=>ab,fB:()=>gw});var n={};r.r(n),r.d(n,{asciiAlpha:()=>It,asciiAlphanumeric:()=>Lt,asciiAtext:()=>Bt,asciiControl:()=>Mt,asciiDigit:()=>Nt,asciiHexDigit:()=>Ht,asciiPunctuation:()=>zt,markdownLineEnding:()=>Ut,markdownLineEndingOrSpace:()=>$t,markdownSpace:()=>qt,unicodePunctuation:()=>Vt,unicodeWhitespace:()=>Gt});var o={};r.r(o),r.d(o,{attentionMarkers:()=>on,contentInitial:()=>Xr,disable:()=>an,document:()=>Yr,flow:()=>en,flowInitial:()=>Jr,insideSpan:()=>nn,string:()=>tn,text:()=>rn});var i={};r.r(i),r.d(i,{codes:()=>Vi,constants:()=>Gi,types:()=>Wi,values:()=>Ki});var a={};r.r(a),r.d(a,{hasBrowserEnv:()=>kc,hasStandardBrowserEnv:()=>Sc,hasStandardBrowserWebWorkerEnv:()=>Pc});var s=r(1176),c=r.n(s),u=r(2519),l=r.n(u);const f=_.cloneDeep;var h=r.n(f);const p=_.get;var d=r.n(p);const m=_.isEmpty;var v=r.n(m);const g=_.isEqual;var y=r.n(g);const b=_.omit;var w=r.n(b);const x=_.set;var E=r.n(x);const k=_.toPath;var S=r.n(k);const D=_.unset;var P=r.n(D);const A=_.merge;var C=r.n(A);const O=_.keys;var F=r.n(O),j=r(7625),T=r.n(j),R=r(5729),I=r.n(R),L=r(6119),B=r.n(L),M=r(1700),N=r.n(M),H=r(8887),z=r.n(H),U={},$={};function q(e,t){for(var r=t,n=0;n<e.length;n++){var o=n===e.length-1,i=e.charAt(n),a=r[i]||(r[i]={chars:{}});o&&(a.self=e),r=a.chars}}function V(e){if(0===e.length)return U;for(var t={},r=0,n=e;r<n.length;r++){q(n[r],t)}return t}function G(e){if(0===e.length)return $;for(var t={},r=0,n=e;r<n.length;r++){t[n[r]]=!0}return t}var W={},K={type:"String",optional:!0};function Q(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 Z(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 a=0,s=i;a<s.length;a++){var c=s[a];(t[c]||(t[c]=[])).push(o)}}return t}(e),r={},n=0,o=Object.keys(t);n<o.length;n++){var i=o[n],a=t[i];a&&(r[i]=Q(a))}return r}var Y=function(){return Y=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},Y.apply(this,arguments)},X={},J={wildcard:!0};function ee(e,t){return function(r,n){return!0===n?e:t(!0===r?e:r,n)}}function te(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=Y({},t),o=0,i=Object.entries(r);o<i.length;o++){var a=i[o],s=a[0],c=a[1],u=e[s];n[s]=u(t[s],c)}return n}}function re(e,t){return void 0!==t?t:e}function ne(e,t){return t?e?e.concat(t):t:e}function oe(e,t){if(!t)return e;if(!e)return t;for(var r=Y({},e),n=0,o=Object.entries(t);n<o.length;n++){var i=o[n],a=i[0],s=i[1];if(s){var c=e[a];r[a]=c?c.concat(s):s}else delete r[a]}return r}var ie=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}}(te({baseSyntax:re,tag:ee(J,te({wildcard:re})),ids:re,classNames:re,namespace:ee(J,te({wildcard:re})),combinators:ne,attributes:te({operators:ne,caseSensitivityModifiers:ne,unknownCaseSensitivityModifiers:re}),pseudoClasses:te({unknown:re,definitions:oe}),pseudoElements:te({unknown:re,notation:re,definitions:function(e,t){return function(r,n){return t(e(r),e(n))}}((function(e){return Array.isArray(e)?{NoArgument:e}:e}),oe)})})),ae={tag:{},ids:!0,classNames:!0,combinators:[],pseudoElements:{unknown:"reject",notation:"singleColon",definitions:["first-letter","first-line"]},pseudoClasses:{unknown:"reject",definitions:{NoArgument:["link","visited","active"]}}},se=ie(ae,{tag:{wildcard:!0},combinators:[">","+"],attributes:{unknownCaseSensitivityModifiers:"reject",operators:["=","~=","|="]},pseudoElements:{definitions:["before","after"]},pseudoClasses:{unknown:"reject",definitions:{NoArgument:["hover","focus","first-child"],String:["lang"]}}}),ce=ie(se,{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"]}}}),ue=ie(ce,{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"],Formula:["nth-col","nth-last-col"],String:["dir"],FormulaOfSelector:["nth-child","nth-last-child"],Selector:["current","is","where","has"]}}}),le={css1:ae,css2:se,css3:ce,"selectors-3":ce,"selectors-4":ue,latest:ue,progressive:ie(ue,{pseudoElements:{unknown:"accept"},pseudoClasses:{unknown:"accept"},attributes:{unknownCaseSensitivityModifiers:"accept"}})};function fe(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||"-"===e||"_"===e||"\\"===e||e>=" "}function he(e){return e>="a"&&e<="f"||e>="A"&&e<="F"||e>="0"&&e<="9"}var pe={n:"\n",r:"\r",t:"\t",f:"\f","\\":"\\"},de={" ":!0,"\t":!0,"\n":!0,"\r":!0,"\f":!0},me={'"':!0,"'":!0},ve={0:!0,1:!0,2:!0,3:!0,4:!0,5:!0,6:!0,7:!0,8:!0,9:!0};var ge="css-selector-parser parse error: ";var ye=function(){return ye=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},ye.apply(this,arguments)};function be(e){return function(t,r){var n;return(n={})[t]=function(t){return ye({type:e},t)},n[r]=function(t){return"object"==typeof t&&null!==t&&t.type===e},n}}ye(ye(ye(ye(ye(ye(ye(ye(ye(ye(ye(ye(ye(ye(ye(ye({},be("Selector")("selector","isSelector")),be("Rule")("rule","isRule")),be("TagName")("tagName","isTagName")),be("Id")("id","isId")),be("ClassName")("className","isClassName")),be("WildcardTag")("wildcardTag","isWildcardTag")),be("NamespaceName")("namespaceName","isNamespaceName")),be("WildcardNamespace")("wildcardNamespace","isWildcardNamespace")),be("NoNamespace")("noNamespace","isNoNamespace")),be("Attribute")("attribute","isAttribute")),be("PseudoClass")("pseudoClass","isPseudoClass")),be("PseudoElement")("pseudoElement","isPseudoElement")),be("String")("string","isString")),be("Formula")("formula","isFormula")),be("FormulaOfSelector")("formulaOfSelector","isFormulaOfSelector")),be("Substitution")("substitution","isSubstitution"));const we=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,a="object"==typeof r?r:le[r];a.baseSyntax&&(a=ie(le[a.baseSyntax],a));var s,c=a.tag?[!0,Boolean((s=a.tag,s?"boolean"==typeof s?J:s:X).wildcard)]:[!1,!1],u=c[0],l=c[1],f=Boolean(a.ids),h=Boolean(a.classNames),p=Boolean(a.namespace),d=a.namespace&&(!0===a.namespace||!0===a.namespace.wildcard);if(p&&!u)throw new Error("".concat(ge,"Namespaces cannot be enabled while tags are disabled."));var m=Boolean(n),v=a.combinators?V(a.combinators):U,g=a.attributes?[!0,a.attributes.operators?V(a.attributes.operators):U,a.attributes.caseSensitivityModifiers?G(a.attributes.caseSensitivityModifiers):$,"accept"===a.attributes.unknownCaseSensitivityModifiers]:[!1,U,$,!1],y=g[0],b=g[1],w=g[2],x=g[3],E=x||Object.keys(w).length>0,k=a.pseudoClasses?[!0,a.pseudoClasses.definitions?Z(a.pseudoClasses.definitions):W,"accept"===a.pseudoClasses.unknown]:[!1,W,!1],S=k[0],D=k[1],P=k[2],A=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?Z(Array.isArray(a.pseudoElements.definitions)?{NoArgument:a.pseudoElements.definitions}:a.pseudoElements.definitions):W,"accept"===a.pseudoElements.unknown]:[!1,!1,!1,W,!1],C=A[0],O=A[1],F=A[2],j=A[3],T=A[4],_="",R=_.length,I=0,L="",B=function(e){return L===e},M=function(){return B("*")||fe(L)},N=function(e){I=e,L=_.charAt(I)},H=function(){I++,L=_.charAt(I)},z=function(){var e=L;return I++,L=_.charAt(I),e};function q(e){var t=Math.min(R-1,I),r=new Error("".concat(ge).concat(e," Pos: ").concat(t,"."));throw r.position=t,r.name="ParserError",r}function Q(e,t){if(!e)return q(t)}var Y=function(){Q(I<R,"Unexpected end of input.")},ee=function(){return I>=R},te=function(e){Q(I<R,'Expected "'.concat(e,'" but end of input reached.')),Q(L===e,'Expected "'.concat(e,'" but "').concat(L,'" found.')),I++,L=_.charAt(I)};function re(e){var t=ne(e,I);if(t)return I+=t.length,L=_.charAt(I),t}function ne(e,t){var r=e[_.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=z();he(L);)e+=z();return B(" ")&&H(),String.fromCharCode(parseInt(e,16))}function ae(e){var t="";for(te(e);I<R;){if(B(e))return H(),t;if(B("\\")){H();var r=void 0;if(B(e))t+=e;else if(void 0!==(r=pe[L]))t+=r;else{if(he(L)){t+=oe();continue}t+=L}}else t+=L;H()}return t}function se(){if(!fe(L))return null;for(var e,t="";B("-");)t+=L,H();for(i&&t.length>=2&&q("Identifiers cannot start with two hyphens with strict mode on."),ve[L]&&q("Identifiers cannot start with hyphens followed by digits.");I<R;)if((e=L)>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||"-"===e||"_"===e||e>=" ")t+=z();else{if(!B("\\"))break;H(),Y(),he(L)?t+=oe():t+=z()}return t}function ce(){for(var e="";I<R&&!B(")");)if(B("\\")){if(H(),ee()&&!i)return(e+"\\").trim();Y(),he(L)?e+=oe():e+=z()}else e+=z();return e.trim()}function ue(){for(;de[L];)H()}function ye(e){void 0===e&&(e=!1),ue();for(var t=[De(e)];B(",");)H(),ue(),t.push(De(e));return{type:"Selector",rules:t}}function be(){var e;if(te("["),ue(),B("|")){Q(p,"Namespaces are not enabled."),H();var t=se();Q(t,"Expected attribute name."),e={type:"Attribute",name:t,namespace:{type:"NoNamespace"}}}else if(B("*")){Q(p,"Namespaces are not enabled."),Q(d,"Wildcard namespace is not enabled."),H(),te("|");var r=se();Q(r,"Expected attribute name."),e={type:"Attribute",name:r,namespace:{type:"WildcardNamespace"}}}else{var n=se();if(Q(n,"Expected attribute name."),e={type:"Attribute",name:n},B("|")){var o=I;if(H(),fe(L)){Q(p,"Namespaces are not enabled.");var a=se();Q(a,"Expected attribute name."),e={type:"Attribute",name:a,namespace:{type:"NamespaceName",name:n}}}else N(o)}}if(Q(e.name,"Expected attribute name."),ue(),ee()&&!i)return e;if(B("]"))H();else{if(e.operator=re(b),Q(e.operator,"Expected a valid attribute selector operator."),ue(),Y(),me[L])e.value={type:"String",value:ae(L)};else if(m&&B("$")){H();var s=se();Q(s,"Expected substitute name."),e.value={type:"Substitution",name:s}}else{var c=se();Q(c,"Expected attribute value."),e.value={type:"String",value:c}}if(ue(),ee()&&!i)return e;if(!B("]")){var u=se();if(Q(u,"Expected end of attribute selector."),e.caseSensitivityModifier=u,Q(E,"Attribute case sensitivity modifiers are not enabled."),Q(x||w[e.caseSensitivityModifier],"Unknown attribute case sensitivity modifier."),ue(),ee()&&!i)return e}te("]")}return e}function we(){for(var e="";ve[L];)e+=z();return Q(""!==e,"Formula parse error."),parseInt(e)}var xe=function(){return B("-")||B("+")||ve[L]};function Ee(e,t,r){var n;if(B("(")){if(H(),ue(),m&&B("$")){H();var o=se();Q(o,"Expected substitute name."),n={type:"Substitution",name:o}}else if("String"===r.type)Q((n={type:"String",value:ce()}).value,"Expected ".concat(t," argument value."));else if("Selector"===r.type)n=ye(!0);else{if("Formula"!==r.type)return q("Invalid ".concat(t," signature."));var a=function(){if(B("e")||B("o")){var e=se();if("even"===e)return ue(),[2,0];if("odd"===e)return ue(),[2,1]}var t,r=null,n=1;if(B("-")&&(H(),n=-1),xe()&&(B("+")&&H(),r=we(),!B("\\")&&!B("n")))return[0,r*n];if(null===r&&(r=1),r*=n,B("\\")?(H(),t=he(L)?oe():z()):t=z(),Q("n"===t,'Formula parse error: expected "n".'),ue(),B("+")||B("-")){var o=B("+")?1:-1;return H(),ue(),[r,o*we()]}return[r,0]}(),s=a[0],c=a[1];n={type:"Formula",a:s,b:c},r.ofSelector&&(ue(),(B("o")||B("\\"))&&(Q("of"===se(),"Formula of selector parse error."),ue(),n={type:"FormulaOfSelector",a:s,b:c,selector:De()}))}if(ue(),ee()&&!i)return n;te(")")}else Q(r.optional,"Argument is required for ".concat(t,' "').concat(e,'".'));return n}function ke(){if(B("*"))return Q(l,"Wildcard tag name is not enabled."),H(),{type:"WildcardTag"};if(fe(L)){Q(u,"Tag names are not enabled.");var e=se();return Q(e,"Expected tag name."),{type:"TagName",name:e}}return q("Expected tag name.")}function Se(){if(B("*")){var e=I;return H(),B("|")?(H(),M()?(Q(p,"Namespaces are not enabled."),Q(d,"Wildcard namespace is not enabled."),(r=ke()).namespace={type:"WildcardNamespace"},r):(N(e),ke())):(N(e),ke())}if(B("|"))return Q(p,"Namespaces are not enabled."),H(),(r=ke()).namespace={type:"NoNamespace"},r;if(fe(L)){var t=se();if(Q(t,"Expected tag name."),!B("|"))return Q(u,"Tag names are not enabled."),{type:"TagName",name:t};var r;e=I;return H(),M()?(Q(p,"Namespaces are not enabled."),(r=ke()).namespace={type:"NamespaceName",name:t},r):(N(e),{type:"TagName",name:t})}return q("Expected tag name.")}function De(e){var t,r;void 0===e&&(e=!1);var n={type:"Rule",items:[]};e&&((m=re(v))&&(n.combinator=m,ue()));for(;I<R;)if(M())Q(0===n.items.length,"Unexpected tag/namespace start."),n.items.push(Se());else if(B("|")){var o=I;if(H(),!M()){N(o);break}Q(0===n.items.length,"Unexpected tag/namespace start."),N(o),n.items.push(Se())}else if(B(".")){Q(h,"Class names are not enabled."),H();var i=se();Q(i,"Expected class name."),n.items.push({type:"ClassName",name:i})}else if(B("#")){Q(f,"IDs are not enabled."),H();var a=se();Q(a,"Expected ID name."),n.items.push({type:"Id",name:a})}else if(B("["))Q(y,"Attributes are not enabled."),n.items.push(be());else{if(!B(":"))break;var s=!1;H(),B(":")&&(Q(C,"Pseudo elements are not enabled."),Q(F,"Pseudo elements double colon notation is not enabled."),s=!0,H());var c=se();if(Q(s||c,"Expected pseudo-class name."),Q(!s||c,"Expected pseudo-element name."),Q(c,"Expected pseudo-class name."),Q(!s||T||Object.prototype.hasOwnProperty.call(j,c),'Unknown pseudo-element "'.concat(c,'".')),C&&(s||!s&&O&&Object.prototype.hasOwnProperty.call(j,c))){var u={type:"PseudoElement",name:c};(p=Ee(c,"pseudo-element",l=null!==(t=j[c])&&void 0!==t?t:T&&K))&&(Q("Formula"!==p.type&&"FormulaOfSelector"!==p.type,"Pseudo-elements cannot have formula argument."),u.argument=p),n.items.push(u)}else{var l;Q(S,"Pseudo-classes are not enabled."),Q(l=null!==(r=D[c])&&void 0!==r?r:P&&K,'Unknown pseudo-class: "'.concat(c,'".'));var p,d={type:"PseudoClass",name:c};(p=Ee(c,"pseudo-class",l))&&(d.argument=p),n.items.push(d)}}if(0===n.items.length)return ee()?q("Expected rule but end of input reached."):q('Expected rule but "'.concat(L,'" found.'));if(ue(),!ee()&&!B(",")&&!B(")")){var m=re(v);ue(),n.nestedRule=De(),n.nestedRule.combinator=m}return n}return function(e){if("string"!=typeof e)throw new Error("".concat(ge,"Expected string input."));return R=(_=e).length,I=0,L=_.charAt(0),ye()}}({syntax:"selectors-4"});function xe(e){if("string"!=typeof e)throw new TypeError("Expected `string` as selector, not `"+e+"`");return we(e)}function Ee(){}function ke(e){return Array.isArray(e.children)}function Se(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 De=new Set([9,10,12,13,32]),Pe="0".charCodeAt(0),Ae="9".charCodeAt(0);var Ce=r(6501);function Oe(e){return function(e){const t=e[0],r=e[1]-1;if(r<0&&t<=0)return Ce.falseFunc;if(-1===t)return e=>e<=r;if(0===t)return e=>e===r;if(1===t)return r<0?Ce.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=a();if(t<e.length&&"n"===e.charAt(t)&&(t++,r=n*(null!=o?o:1),s(),t<e.length?(n=i(),s(),o=a()):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 a(){const r=t;let n=0;for(;t<e.length&&e.charCodeAt(t)>=Pe&&e.charCodeAt(t)<=Ae;)n=10*n+(e.charCodeAt(t)-Pe),t++;return t===r?null:n}function s(){for(;t<e.length&&De.has(e.charCodeAt(t));)t++}}(e))}const Fe={}.hasOwnProperty;function je(e,t){const r=t||{};function n(t,...r){let o=n.invalid;const i=n.handlers;if(t&&Fe.call(t,e)){const r=String(t[e]);o=Fe.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 Te=Oe.default||Oe,_e=je("name",{unknown:function(e){throw new Error("Unknown pseudo-selector `"+e.name+"`")},invalid:function(){throw new Error("Invalid pseudo-selector")},handlers:{is:Ie,blank:Re,empty:Re,"first-child":function(e,t,r,n,o){return Le(o,e),0===o.nodeIndex},"first-of-type":function(e,t,r,n,o){return Le(o,e),0===o.typeIndex},has:function(e,t,r,n,o){const i=e.argument;!i||i.type;const a={type:"root",children:ke(t)?t.children:[]},s={...o,found:!1,shallow:!1,one:!0,scopeNodes:[t],results:[],rootQuery:i};return He(s,a),s.results.length>0},"last-child":function(e,t,r,n,o){return Le(o,e),"number"==typeof o.nodeCount&&o.nodeIndex===o.nodeCount-1},"last-of-type":function(e,t,r,n,o){return Le(o,e),"number"==typeof o.typeCount&&o.typeIndex===o.typeCount-1},not:function(e,t,r,n,o){return!Ie(e,t,r,n,o)},"nth-child":function(e,t,r,n,o){const i=Be(e);return Le(o,e),"number"==typeof o.nodeIndex&&i(o.nodeIndex)},"nth-last-child":function(e,t,r,n,o){const i=Be(e);return Le(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=Be(e);return Le(o,e),"number"==typeof o.typeIndex&&i(o.typeIndex)},"nth-last-of-type":function(e,t,r,n,o){const i=Be(e);return Le(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 Le(o,e),1===o.nodeCount},"only-of-type":function(e,t,r,n,o){return Le(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 Re(e,t){return ke(t)?0===t.children.length:!("value"in t)}function Ie(e,t,r,n,o){const i=e.argument;!i||i.type;const a={...o,found:!1,shallow:!1,one:!0,scopeNodes:[t],results:[],rootQuery:i};return He(a,t),a.results[0]===t}function Le(e,t){if(e.shallow)throw new Error("Cannot use `:"+t.name+"` without parent")}function Be(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=Te(r.a+"n+"+r.b),e._cachedFn=t}return t}function Me(e,t,r,n,o){for(const i of e.items)if("Attribute"===i.type){if(!Se(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(!_e(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 Ne=[];function He(e,t){t&&ze(e,[],t,void 0,void 0,t)}function ze(e,t,r,n,o,i){let a={directChild:void 0,descendant:void 0,adjacentSibling:void 0,generalSibling:void 0},s=e.rootQuery.rules;return o&&o!==i&&(s=e.rootQuery.rules.filter((e=>void 0===e.combinator||">"===e.combinator&&o===i))),a=function(e,t,r,n,o){const i={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(Me(s,r,n,o,e)){const t=s.nestedRule;if(t){$e(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===s.combinator?$e(i,"descendant",s):"~"===s.combinator&&$e(i,"generalSibling",s)}return i}(e,Ue(t,s),r,n,o),!ke(r)||e.shallow||e.one&&e.found||function(e,t,r,n){const o=Ue(t.descendant,t.directChild);let i,a=-1;const s={count:0,types:new Map},c={count:0,types:new Map};for(;++a<r.children.length;)qe(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 u=ze(e,Ue(o,i),r.children[a],a,r,n);if(i=Ue(u.generalSibling,u.adjacentSibling),e.one&&e.found)break;qe(c,r.children[a])}}(e,a,r,i),a}function Ue(e,t){return e&&t&&e.length>0&&t.length>0?[...e,...t]:e&&e.length>0?e:t&&t.length>0?t:Ne}function $e(e,t,r){const n=e[t];n?n.push(r):e[t]=[r]}function qe(e,t){const r=t.type.toUpperCase(),n=(e.types.get(r)||0)+1;e.count++,e.types.set(r,n)}function Ve(e,t){const r=Ge(e,t);return r.one=!0,He(r,t||void 0),r.results[0]}function Ge(e,t){return{rootQuery:xe(e),results:[],scopeNodes:t?!ke(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}}function We(e){if(e)throw e}var Ke=r(4740);function Qe(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 Ze(){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,...a){const s=e[++r];let c=-1;if(i)n(i);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(o);try{a=e.apply(this,t)}catch(e){if(n&&r)throw e;return o(e)}n||(a instanceof Promise?a.then(i,o):a instanceof Error?o(a):i(a))}function o(e,...n){r||(r=!0,t(e,...n))}function i(e){o(null,e)}}(s,o)(...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 Ye(e){return e&&"object"==typeof e?"position"in e||"type"in e?Je(e.position):"start"in e||"end"in e?Je(e):"line"in e||"column"in e?Xe(e):"":""}function Xe(e){return et(e&&e.line)+":"+et(e&&e.column)}function Je(e){return Xe(e&&e.start)+"-"+Xe(e&&e.end)}function et(e){return e&&"number"==typeof e?e:1}class tt extends Error{constructor(e,t,r){super(),"string"==typeof t&&(r=t,t=void 0);let n="",o={},i=!1;if(t&&(o="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?n=e:!o.cause&&e&&(i=!0,n=e.message,o.cause=e),!o.ruleId&&!o.source&&"string"==typeof r){const e=r.indexOf(":");-1===e?o.ruleId=r:(o.source=r.slice(0,e),o.ruleId=r.slice(e+1))}if(!o.place&&o.ancestors&&o.ancestors){const e=o.ancestors[o.ancestors.length-1];e&&(o.place=e.position)}const a=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file,this.message=n,this.line=a?a.line:void 0,this.name=Ye(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=i&&o.cause&&"string"==typeof o.cause.stack?o.cause.stack:"",this.actual,this.expected,this.note,this.url}}tt.prototype.file="",tt.prototype.name="",tt.prototype.reason="",tt.prototype.message="",tt.prototype.stack="",tt.prototype.column=void 0,tt.prototype.line=void 0,tt.prototype.ancestors=void 0,tt.prototype.cause=void 0,tt.prototype.fatal=void 0,tt.prototype.place=void 0,tt.prototype.ruleId=void 0,tt.prototype.source=void 0;const rt={basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');nt(e);let r,n=0,o=-1,i=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;i--;)if(47===e.codePointAt(i)){if(r){n=i+1;break}}else o<0&&(r=!0,o=i+1);return o<0?"":e.slice(n,o)}if(t===e)return"";let a=-1,s=t.length-1;for(;i--;)if(47===e.codePointAt(i)){if(r){n=i+1;break}}else a<0&&(r=!0,a=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(o=i):(s=-1,o=a));n===o?o=a:o<0&&(o=e.length);return e.slice(n,o)},dirname:function(e){if(nt(e),0===e.length)return".";let t,r=-1,n=e.length;for(;--n;)if(47===e.codePointAt(n)){if(t){r=n;break}}else t||(t=!0);return r<0?47===e.codePointAt(0)?"/":".":1===r&&47===e.codePointAt(0)?"//":e.slice(0,r)},extname:function(e){nt(e);let t,r=e.length,n=-1,o=0,i=-1,a=0;for(;r--;){const s=e.codePointAt(r);if(47!==s)n<0&&(t=!0,n=r+1),46===s?i<0?i=r:1!==a&&(a=1):i>-1&&(a=-1);else if(t){o=r+1;break}}if(i<0||n<0||0===a||1===a&&i===n-1&&i===o+1)return"";return e.slice(i,n)},join:function(...e){let t,r=-1;for(;++r<e.length;)nt(e[r]),e[r]&&(t=void 0===t?e[r]:t+"/"+e[r]);return void 0===t?".":function(e){nt(e);const t=47===e.codePointAt(0);let r=function(e,t){let r,n,o="",i=0,a=-1,s=0,c=-1;for(;++c<=e.length;){if(c<e.length)r=e.codePointAt(c);else{if(47===r)break;r=47}if(47===r){if(a===c-1||1===s);else if(a!==c-1&&2===s){if(o.length<2||2!==i||46!==o.codePointAt(o.length-1)||46!==o.codePointAt(o.length-2))if(o.length>2){if(n=o.lastIndexOf("/"),n!==o.length-1){n<0?(o="",i=0):(o=o.slice(0,n),i=o.length-1-o.lastIndexOf("/")),a=c,s=0;continue}}else if(o.length>0){o="",i=0,a=c,s=0;continue}t&&(o=o.length>0?o+"/..":"..",i=2)}else o.length>0?o+="/"+e.slice(a+1,c):o=e.slice(a+1,c),i=c-a-1;a=c,s=0}else 46===r&&s>-1?s++:s=-1}return o}(e,!t);0!==r.length||t||(r=".");r.length>0&&47===e.codePointAt(e.length-1)&&(r+="/");return t?"/"+r:r}(t)},sep:"/"};function nt(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const ot={cwd:function(){return"/"}};function it(e){return Boolean(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}function at(e){if("string"==typeof e)e=new URL(e);else if(!it(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let r=-1;for(;++r<t.length;)if(37===t.codePointAt(r)&&50===t.codePointAt(r+1)){const e=t.codePointAt(r+2);if(70===e||102===e){const e=new TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}const st=["history","path","basename","stem","extname","dirname"];class ct{constructor(e){let t;t=e?it(e)?{path:e}:"string"==typeof e||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd=ot.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r,n=-1;for(;++n<st.length;){const e=st[n];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(r in t)st.includes(r)||(this[r]=t[r])}get basename(){return"string"==typeof this.path?rt.basename(this.path):void 0}set basename(e){lt(e,"basename"),ut(e,"basename"),this.path=rt.join(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?rt.dirname(this.path):void 0}set dirname(e){ft(this.basename,"dirname"),this.path=rt.join(e||"",this.basename)}get extname(){return"string"==typeof this.path?rt.extname(this.path):void 0}set extname(e){if(ut(e,"extname"),ft(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=rt.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){it(e)&&(e=at(e)),lt(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?rt.basename(this.path,this.extname):void 0}set stem(e){lt(e,"stem"),ut(e,"stem"),this.path=rt.join(this.dirname||"",e+(this.extname||""))}fail(e,t,r){const n=this.message(e,t,r);throw n.fatal=!0,n}info(e,t,r){const n=this.message(e,t,r);return n.fatal=void 0,n}message(e,t,r){const n=new tt(e,t,r);return this.path&&(n.name=this.path+":"+n.name,n.file=this.path),n.fatal=!1,this.messages.push(n),n}toString(e){if(void 0===this.value)return"";if("string"==typeof this.value)return this.value;return new TextDecoder(e||void 0).decode(this.value)}}function ut(e,t){if(e&&e.includes(rt.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+rt.sep+"`")}function lt(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function ft(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const ht=function(e){const t=this.constructor.prototype,r=t[e],n=function(){return r.apply(n,arguments)};Object.setPrototypeOf(n,t);const o=Object.getOwnPropertyNames(r);for(const e of o){const t=Object.getOwnPropertyDescriptor(r,e);t&&Object.defineProperty(n,e,t)}return n},pt={}.hasOwnProperty;class dt extends ht{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=Ze()}copy(){const e=new dt;let t=-1;for(;++t<this.attachers.length;){const r=this.attachers[t];e.use(...r)}return e.data(Ke(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2===arguments.length?(yt("data",this.frozen),this.namespace[e]=t,this):pt.call(this.namespace,e)&&this.namespace[e]||void 0:e?(yt("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...r]=this.attachers[this.freezeIndex];if(!1===r[0])continue;!0===r[0]&&(r[0]=void 0);const n=t.call(e,...r);"function"==typeof n&&this.transformers.use(n)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const t=xt(e),r=this.parser||this.Parser;return vt("parse",r),r(String(t),t)}process(e,t){const r=this;return this.freeze(),vt("process",this.parser||this.Parser),gt("process",this.compiler||this.Compiler),t?n(void 0,t):new Promise(n);function n(n,o){const i=xt(e),a=r.parse(i);function s(e,r){e||!r?o(e):n?n(r):t(void 0,r)}r.run(a,i,(function(e,t,n){if(e||!t||!n)return s(e);const o=t,i=r.stringify(o,n);!function(e){return"string"==typeof e||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)}(i)?n.result=i:n.value=i,s(e,n)}))}}processSync(e){let t,r=!1;return this.freeze(),vt("processSync",this.parser||this.Parser),gt("processSync",this.compiler||this.Compiler),this.process(e,(function(e,n){r=!0,We(e),t=n})),wt("processSync","process",r),t}run(e,t,r){bt(e),this.freeze();const n=this.transformers;return r||"function"!=typeof t||(r=t,t=void 0),r?o(void 0,r):new Promise(o);function o(o,i){const a=xt(t);n.run(e,a,(function(t,n,a){const s=n||e;t?i(t):o?o(s):r(void 0,s,a)}))}}runSync(e,t){let r,n=!1;return this.run(e,t,(function(e,t){We(e),r=t,n=!0})),wt("runSync","run",n),r}stringify(e,t){this.freeze();const r=xt(t),n=this.compiler||this.Compiler;return gt("stringify",n),bt(e),n(e,r)}use(e,...t){const r=this.attachers,n=this.namespace;if(yt("use",this.frozen),null==e);else if("function"==typeof e)s(e,t);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?a(e):i(e)}return this;function o(e){if("function"==typeof e)s(e,[]);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...r]=e;s(t,r)}else i(e)}}function i(e){if(!("plugins"in e)&&!("settings"in e))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");a(e.plugins),e.settings&&(n.settings=Ke(!0,n.settings,e.settings))}function a(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;){o(e[t])}}}function s(e,t){let n=-1,o=-1;for(;++n<r.length;)if(r[n][0]===e){o=n;break}if(-1===o)r.push([e,...t]);else if(t.length>0){let[n,...i]=t;const a=r[o][1];Qe(a)&&Qe(n)&&(n=Ke(!0,a,n)),r[o]=[e,n,...i]}}}}const mt=(new dt).freeze();function vt(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function gt(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function yt(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 bt(e){if(!Qe(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function wt(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function xt(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new ct(e)}const Et={};function kt(e,t){const r=t||Et;return St(e,"boolean"!=typeof r.includeImageAlt||r.includeImageAlt,"boolean"!=typeof r.includeHtml||r.includeHtml)}function St(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 Dt(e.children,t,r)}return Array.isArray(e)?Dt(e,t,r):""}function Dt(e,t,r){const n=[];let o=-1;for(;++o<e.length;)n[o]=St(e[o],t,r);return n.join("")}function Pt(e,t,r,n){const o=e.length;let i,a=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);a<n.length;)i=n.slice(a,a+1e4),i.unshift(t,0),e.splice(...i),a+=1e4,t+=1e4}function At(e,t){return e.length>0?(Pt(e,e.length,0,t),e):t}function Ct(e){const t={};let r,n,o,i,a,s,c,u=-1;for(;++u<e.length;){for(;u in t;)u=t[u];if(r=e[u],u&&"chunkFlow"===r[1].type&&"listItemPrefix"===e[u-1][1].type&&(s=r[1]._tokenizer.events,o=0,o<s.length&&"lineEndingBlank"===s[o][1].type&&(o+=2),o<s.length&&"content"===s[o][1].type))for(;++o<s.length&&"content"!==s[o][1].type;)"chunkText"===s[o][1].type&&(s[o][1]._isInFirstContentOfListItem=!0,o++);if("enter"===r[0])r[1].contentType&&(Object.assign(t,Ot(e,u)),u=t[u],c=!0);else if(r[1]._container){for(o=u,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),a=e.slice(n,u),a.unshift(r),Pt(e,n,u-n+1,a))}}return!c}function Ot(e,t){const r=e[t][1],n=e[t][2];let o=t-1;const i=[],a=r._tokenizer||n.parser[r.contentType](r.start),s=a.events,c=[],u={};let l,f,h=-1,p=r,d=0,m=0;const v=[m];for(;p;){for(;e[++o][1]!==p;);i.push(o),p._tokenizer||(l=n.sliceStream(p),p.next||l.push(null),f&&a.defineSkip(p.start),p._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(l),p._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),f=p,p=p.next}for(p=r;++h<s.length;)"exit"===s[h][0]&&"enter"===s[h-1][0]&&s[h][1].type===s[h-1][1].type&&s[h][1].start.line!==s[h][1].end.line&&(m=h+1,v.push(m),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(a.events=[],p?(p._tokenizer=void 0,p.previous=void 0):v.pop(),h=v.length;h--;){const t=s.slice(v[h],v[h+1]),r=i.pop();c.unshift([r,r+t.length-1]),Pt(e,r,2,t)}for(h=-1;++h<c.length;)u[d+c[h][0]]=d+c[h][1],d+=c[h][1]-c[h][0]-1;return u}const Ft={}.hasOwnProperty;function jt(e){const t={};let r=-1;for(;++r<e.length;)Tt(t,e[r]);return t}function Tt(e,t){let r;for(r in t){const n=(Ft.call(e,r)?e[r]:void 0)||(e[r]={}),o=t[r];let i;if(o)for(i in o){Ft.call(n,i)||(n[i]=[]);const e=o[i];_t(n[i],Array.isArray(e)?e:e?[e]:[])}}}function _t(e,t){let r=-1;const n=[];for(;++r<t.length;)("after"===t[r].add?e:n).push(t[r]);Pt(e,0,0,n)}const Rt=Wt(/\p{P}/u),It=Wt(/[A-Za-z]/),Lt=Wt(/[\dA-Za-z]/),Bt=Wt(/[#-'*+\--9=?A-Z^-~]/);function Mt(e){return null!==e&&(e<32||127===e)}const Nt=Wt(/\d/),Ht=Wt(/[\dA-Fa-f]/),zt=Wt(/[!-/:-@[-`{-~]/);function Ut(e){return null!==e&&e<-2}function $t(e){return null!==e&&(e<0||32===e)}function qt(e){return-2===e||-1===e||32===e}function Vt(e){return zt(e)||Rt(e)}const Gt=Wt(/\s/);function Wt(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function Kt(e,t,r,n){const o=n?n-1:Number.POSITIVE_INFINITY;let i=0;return function(n){if(qt(n))return e.enter(r),a(n);return t(n)};function a(n){return qt(n)&&i++<o?(e.consume(n),a):(e.exit(r),t(n))}}const Qt={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"),Kt(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)):Ut(t)?(e.consume(t),e.exit("chunkText"),n):(e.consume(t),o)}}};const Zt={tokenize:function(e){const t=this,r=[];let n,o,i,a=0;return s;function s(n){if(a<r.length){const o=r[a];return t.containerState=o[1],e.attempt(o[0].continuation,c,u)(n)}return u(n)}function c(e){if(a++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,n&&y();const r=t.events.length;let o,i=r;for(;i--;)if("exit"===t.events[i][0]&&"chunkFlow"===t.events[i][1].type){o=t.events[i][1].end;break}g(a);let s=r;for(;s<t.events.length;)t.events[s][1].end=Object.assign({},o),s++;return Pt(t.events,i+1,0,t.events.slice(r)),t.events.length=s,u(e)}return s(e)}function u(o){if(a===r.length){if(!n)return h(o);if(n.currentConstruct&&n.currentConstruct.concrete)return d(o);t.interrupt=Boolean(n.currentConstruct&&!n._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Yt,l,f)(o)}function l(e){return n&&y(),g(a),h(e)}function f(e){return t.parser.lazy[t.now().line]=a!==r.length,i=t.now().offset,d(e)}function h(r){return t.containerState={},e.attempt(Yt,p,d)(r)}function p(e){return a++,r.push([t.currentConstruct,t.containerState]),h(e)}function d(r){return null===r?(n&&y(),g(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?(v(e.exit("chunkFlow"),!0),g(0),void e.consume(r)):Ut(r)?(e.consume(r),v(e.exit("chunkFlow")),a=0,t.interrupt=void 0,s):(e.consume(r),m)}function v(e,r){const s=t.sliceStream(e);if(r&&s.push(null),e.previous=o,o&&(o.next=e),o=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<i&&(!n.events[e][1].end||n.events[e][1].end.offset>i))return;const r=t.events.length;let o,s,c=r;for(;c--;)if("exit"===t.events[c][0]&&"chunkFlow"===t.events[c][1].type){if(o){s=t.events[c][1].end;break}o=!0}for(g(a),e=r;e<t.events.length;)t.events[e][1].end=Object.assign({},s),e++;Pt(t.events,c+1,0,t.events.slice(r)),t.events.length=e}}function g(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 y(){n.write([null]),o=void 0,n=void 0,t.containerState._closeFlow=void 0}}},Yt={tokenize:function(e,t,r){return Kt(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};const Xt={tokenize:function(e,t,r){return function(t){return qt(t)?Kt(e,n,"linePrefix")(t):n(t)};function n(e){return null===e||Ut(e)?t(e):r(e)}},partial:!0};const Jt={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):Ut(t)?e.check(er,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 Ct(e),e}},er={tokenize:function(e,t,r){const n=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),Kt(e,o,"linePrefix")};function o(o){if(null===o||Ut(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};const tr={tokenize:function(e){const t=this,r=e.attempt(Xt,(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,Kt(e,e.attempt(this.parser.constructs.flow,n,e.attempt(Jt,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 rr={resolveAll:ar()},nr=ir("string"),or=ir("text");function ir(e){return{tokenize:function(t){const r=this,n=this.parser.constructs[e],o=t.attempt(n,i,a);return i;function i(e){return c(e)?o(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"),o(e)):(t.consume(e),s)}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:ar("text"===e?sr:void 0)}}function ar(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 sr(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,a=o.length,s=-1,c=0;for(;a--;){const e=o[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)i=!0,c++;else if(-1!==e){a++;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+a,_bufferIndex:a?s:n.start._bufferIndex+s},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 cr(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}function ur(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 a=[],s=[],c=!0;const u={consume:function(e){Ut(e)?(n.line++,n.column=1,n.offset+=-3===e?2:1,w()):-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,c=!0},enter:function(e,t){const r=t||{};return r.type=e,r.start=d(),l.events.push(["enter",r,l]),s.push(r),r},exit:function(e){const t=s.pop();return t.end=d(),l.events.push(["exit",t,l]),t},attempt:y((function(e,t){b(e,t.from)})),check:y(g),interrupt:y(g,{interrupt:!0})},l={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:p,sliceSerialize:function(e,t){return function(e,t){let r=-1;const n=[];let o;for(;++r<e.length;){const i=e[r];let a;if("string"==typeof i)a=i;else switch(i){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&&o)continue;a=" ";break;default:a=String.fromCharCode(i)}o=-2===i,n.push(a)}return n.join("")}(p(e),t)},now:d,defineSkip:function(e){o[e.line]=e.column,w()},write:function(e){if(a=At(a,e),m(),null!==a[a.length-1])return[];return b(t,0),l.events=cr(i,l.events,l),l.events}};let f,h=t.tokenize.call(l,u);return t.resolveAll&&i.push(t),l;function p(e){return function(e,t){const r=t.start._index,n=t.start._bufferIndex,o=t.end._index,i=t.end._bufferIndex;let a;if(r===o)a=[e[r].slice(n,i)];else{if(a=e.slice(r,o),n>-1){const e=a[0];"string"==typeof e?a[0]=e.slice(n):a.shift()}i>0&&a.push(e[o].slice(0,i))}return a}(a,e)}function d(){const{line:e,column:t,offset:r,_index:o,_bufferIndex:i}=n;return{line:e,column:t,offset:r,_index:o,_bufferIndex:i}}function m(){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;)v(t.charCodeAt(n._bufferIndex));else v(t)}}function v(e){c=void 0,f=e,h=h(e)}function g(e,t){t.restore()}function y(e,t){return function(r,o,i){let a,f,h,p;return Array.isArray(r)?m(r):"tokenize"in r?m([r]):function(e){return t;function t(t){const r=null!==t&&e[t],n=null!==t&&e.null;return m([...Array.isArray(r)?r:r?[r]:[],...Array.isArray(n)?n:n?[n]:[]])(t)}}(r);function m(e){return a=e,f=0,0===e.length?i:v(e[f])}function v(e){return function(r){p=function(){const e=d(),t=l.previous,r=l.currentConstruct,o=l.events.length,i=Array.from(s);return{restore:a,from:o};function a(){n=e,l.previous=t,l.currentConstruct=r,l.events.length=o,s=i,w()}}(),h=e,e.partial||(l.currentConstruct=e);if(e.name&&l.parser.constructs.disable.null.includes(e.name))return y(r);return e.tokenize.call(t?Object.assign(Object.create(l),t):l,u,g,y)(r)}}function g(t){return c=!0,e(h,p),o}function y(e){return c=!0,p.restore(),++f<a.length?v(a[f]):i}}}function b(e,t){e.resolveAll&&!i.includes(e)&&i.push(e),e.resolve&&Pt(l.events,t,l.events.length-t,e.resolve(l.events.slice(t),l)),e.resolveTo&&(l.events=e.resolveTo(l.events,l))}function w(){n.line in o&&n.column<2&&(n.column=o[n.line],n.offset+=o[n.line]-1)}}const lr={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"),a(i)):o>=3&&(null===i||Ut(i))?(e.exit("thematicBreak"),t(i)):r(i)}function a(t){return t===n?(e.consume(t),o++,a):(e.exit("thematicBreakSequence"),qt(t)?Kt(e,i,"whitespace")(t):i(t))}}};const fr={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,a=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:Nt(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(lr,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 Nt(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(Xt,n.interrupt?r:u,e.attempt(hr,f,l))}function u(e){return n.containerState.initialBlankLine=!0,i++,f(e)}function l(t){return qt(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),f):r(t)}function f(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(Xt,o,i);function o(r){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,Kt(e,t,"listItemIndent",n.containerState.size+1)(r)}function i(r){return n.containerState.furtherBlankLines||!qt(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(pr,t,a)(r))}function a(o){return n.containerState._closeFlow=!0,n.interrupt=void 0,Kt(e,e.attempt(fr,t,r),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}},exit:function(e){e.exit(this.containerState.type)}},hr={tokenize:function(e,t,r){const n=this;return Kt(e,(function(e){const o=n.events[n.events.length-1];return!qt(e)&&o&&"listItemPrefixWhitespace"===o[1].type?t(e):r(e)}),"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},pr={tokenize:function(e,t,r){const n=this;return Kt(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 dr={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 qt(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(qt(t))return Kt(e,o,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t);return o(t)};function o(n){return e.attempt(dr,t,r)(n)}}},exit:function(e){e.exit("blockQuote")}};function mr(e,t,r,n,o,i,a,s,c){const u=c||Number.POSITIVE_INFINITY;let l=0;return function(t){if(60===t)return e.enter(n),e.enter(o),e.enter(i),e.consume(t),e.exit(i),f;if(null===t||32===t||41===t||Mt(t))return r(t);return e.enter(n),e.enter(a),e.enter(s),e.enter("chunkString",{contentType:"string"}),d(t)};function f(r){return 62===r?(e.enter(i),e.consume(r),e.exit(i),e.exit(o),e.exit(n),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),h(r))}function h(t){return 62===t?(e.exit("chunkString"),e.exit(s),f(t)):null===t||60===t||Ut(t)?r(t):(e.consume(t),92===t?p:h)}function p(t){return 60===t||62===t||92===t?(e.consume(t),h):h(t)}function d(o){return l||null!==o&&41!==o&&!$t(o)?l<u&&40===o?(e.consume(o),l++,d):41===o?(e.consume(o),l--,d):null===o||32===o||40===o||Mt(o)?r(o):(e.consume(o),92===o?m:d):(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(n),t(o))}function m(t){return 40===t||41===t||92===t?(e.consume(t),d):d(t)}}function vr(e,t,r,n,o,i){const a=this;let s,c=0;return function(t){return e.enter(n),e.enter(o),e.consume(t),e.exit(o),e.enter(i),u};function u(f){return c>999||null===f||91===f||93===f&&!s||94===f&&!c&&"_hiddenFootnoteSupport"in a.parser.constructs?r(f):93===f?(e.exit(i),e.enter(o),e.consume(f),e.exit(o),e.exit(n),t):Ut(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),l(f))}function l(t){return null===t||91===t||93===t||Ut(t)||c++>999?(e.exit("chunkString"),u(t)):(e.consume(t),s||(s=!qt(t)),92===t?f:l)}function f(t){return 91===t||92===t||93===t?(e.consume(t),c++,l):l(t)}}function gr(e,t,r,n,o,i){let a;return function(t){if(34===t||39===t||40===t)return e.enter(n),e.enter(o),e.consume(t),e.exit(o),a=40===t?41:t,s;return r(t)};function s(r){return r===a?(e.enter(o),e.consume(r),e.exit(o),e.exit(n),t):(e.enter(i),c(r))}function c(t){return t===a?(e.exit(i),s(a)):null===t?r(t):Ut(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),Kt(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(t))}function u(t){return t===a||null===t||Ut(t)?(e.exit("chunkString"),c(t)):(e.consume(t),92===t?l:u)}function l(t){return t===a||92===t?(e.consume(t),u):u(t)}}function yr(e,t){let r;return function n(o){if(Ut(o))return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),r=!0,n;if(qt(o))return Kt(e,n,r?"linePrefix":"lineSuffix")(o);return t(o)}}function br(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const wr={name:"definition",tokenize:function(e,t,r){const n=this;let o;return function(t){return e.enter("definition"),function(t){return vr.call(n,e,i,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function i(t){return o=br(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 $t(t)?yr(e,s)(t):s(t)}function s(t){return mr(e,c,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function c(t){return e.attempt(xr,u,u)(t)}function u(t){return qt(t)?Kt(e,l,"whitespace")(t):l(t)}function l(i){return null===i||Ut(i)?(e.exit("definition"),n.parser.defined.push(o),t(i)):r(i)}}},xr={tokenize:function(e,t,r){return function(t){return $t(t)?yr(e,n)(t):r(t)};function n(t){return gr(e,o,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function o(t){return qt(t)?Kt(e,i,"whitespace")(t):i(t)}function i(e){return null===e||Ut(e)?t(e):r(e)}},partial:!0};const Er={name:"codeIndented",tokenize:function(e,t,r){const n=this;return function(t){return e.enter("codeIndented"),Kt(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?s(t):Ut(t)?e.attempt(kr,i,s)(t):(e.enter("codeFlowValue"),a(t))}function a(t){return null===t||Ut(t)?(e.exit("codeFlowValue"),i(t)):(e.consume(t),a)}function s(r){return e.exit("codeIndented"),t(r)}}},kr={tokenize:function(e,t,r){const n=this;return o;function o(t){return n.parser.lazy[n.now().line]?r(t):Ut(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o):Kt(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):Ut(e)?o(e):r(e)}},partial:!0};const Sr={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||$t(t)?(e.exit("atxHeadingSequence"),i(t)):r(t)}function i(r){return 35===r?(e.enter("atxHeadingSequence"),a(r)):null===r||Ut(r)?(e.exit("atxHeading"),t(r)):qt(r)?Kt(e,i,"whitespace")(r):(e.enter("atxHeadingText"),s(r))}function a(t){return 35===t?(e.consume(t),a):(e.exit("atxHeadingSequence"),i(t))}function s(t){return null===t||35===t||$t(t)?(e.exit("atxHeadingText"),i(t)):(e.consume(t),s)}},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"},Pt(e,i,o-i+1,[["enter",r,t],["enter",n,t],["exit",n,t],["exit",r,t]]));return e}};const Dr={name:"setextUnderline",tokenize:function(e,t,r){const n=this;let o;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"),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"),qt(t)?Kt(e,a,"lineSuffix")(t):a(t))}function a(n){return null===n||Ut(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 a={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",a,t]),e.splice(o+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[o][1].end)):e[r][1]=a;return e.push(["exit",a,t]),e}};const Pr=["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"],Ar=["pre","script","style","textarea"],Cr={name:"htmlFlow",tokenize:function(e,t,r){const n=this;let o,i,a,s,c;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),u}(t)};function u(s){return 33===s?(e.consume(s),l):47===s?(e.consume(s),i=!0,p):63===s?(e.consume(s),o=3,n.interrupt?t:R):It(s)?(e.consume(s),a=String.fromCharCode(s),d):r(s)}function l(i){return 45===i?(e.consume(i),o=2,f):91===i?(e.consume(i),o=5,s=0,h):It(i)?(e.consume(i),o=4,n.interrupt?t:R):r(i)}function f(o){return 45===o?(e.consume(o),n.interrupt?t:R):r(o)}function h(o){const i="CDATA[";return o===i.charCodeAt(s++)?(e.consume(o),6===s?n.interrupt?t:P:h):r(o)}function p(t){return It(t)?(e.consume(t),a=String.fromCharCode(t),d):r(t)}function d(s){if(null===s||47===s||62===s||$t(s)){const c=47===s,u=a.toLowerCase();return c||i||!Ar.includes(u)?Pr.includes(a.toLowerCase())?(o=6,c?(e.consume(s),m):n.interrupt?t(s):P(s)):(o=7,n.interrupt&&!n.parser.lazy[n.now().line]?r(s):i?v(s):g(s)):(o=1,n.interrupt?t(s):P(s))}return 45===s||Lt(s)?(e.consume(s),a+=String.fromCharCode(s),d):r(s)}function m(o){return 62===o?(e.consume(o),n.interrupt?t:P):r(o)}function v(t){return qt(t)?(e.consume(t),v):S(t)}function g(t){return 47===t?(e.consume(t),S):58===t||95===t||It(t)?(e.consume(t),y):qt(t)?(e.consume(t),g):S(t)}function y(t){return 45===t||46===t||58===t||95===t||Lt(t)?(e.consume(t),y):b(t)}function b(t){return 61===t?(e.consume(t),w):qt(t)?(e.consume(t),b):g(t)}function w(t){return null===t||60===t||61===t||62===t||96===t?r(t):34===t||39===t?(e.consume(t),c=t,x):qt(t)?(e.consume(t),w):E(t)}function x(t){return t===c?(e.consume(t),c=null,k):null===t||Ut(t)?r(t):(e.consume(t),x)}function E(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||$t(t)?b(t):(e.consume(t),E)}function k(e){return 47===e||62===e||qt(e)?g(e):r(e)}function S(t){return 62===t?(e.consume(t),D):r(t)}function D(t){return null===t||Ut(t)?P(t):qt(t)?(e.consume(t),D):r(t)}function P(t){return 45===t&&2===o?(e.consume(t),F):60===t&&1===o?(e.consume(t),j):62===t&&4===o?(e.consume(t),I):63===t&&3===o?(e.consume(t),R):93===t&&5===o?(e.consume(t),_):!Ut(t)||6!==o&&7!==o?null===t||Ut(t)?(e.exit("htmlFlowData"),A(t)):(e.consume(t),P):(e.exit("htmlFlowData"),e.check(Or,L,A)(t))}function A(t){return e.check(Fr,C,L)(t)}function C(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),O}function O(t){return null===t||Ut(t)?A(t):(e.enter("htmlFlowData"),P(t))}function F(t){return 45===t?(e.consume(t),R):P(t)}function j(t){return 47===t?(e.consume(t),a="",T):P(t)}function T(t){if(62===t){const r=a.toLowerCase();return Ar.includes(r)?(e.consume(t),I):P(t)}return It(t)&&a.length<8?(e.consume(t),a+=String.fromCharCode(t),T):P(t)}function _(t){return 93===t?(e.consume(t),R):P(t)}function R(t){return 62===t?(e.consume(t),I):45===t&&2===o?(e.consume(t),R):P(t)}function I(t){return null===t||Ut(t)?(e.exit("htmlFlowData"),L(t)):(e.consume(t),I)}function L(r){return e.exit("htmlFlow"),t(r)}},resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2));return e},concrete:!0},Or={tokenize:function(e,t,r){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),e.attempt(Xt,t,r)}},partial:!0},Fr={tokenize:function(e,t,r){const n=this;return function(t){if(Ut(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 jr={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},Tr={name:"codeFenced",tokenize:function(e,t,r){const n=this,o={tokenize:function(e,t,r){let o=0;return a;function a(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),c}function c(t){return e.enter("codeFencedFence"),qt(t)?Kt(e,u,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):u(t)}function u(t){return t===i?(e.enter("codeFencedFenceSequence"),l(t)):r(t)}function l(t){return t===i?(o++,e.consume(t),l):o>=s?(e.exit("codeFencedFenceSequence"),qt(t)?Kt(e,f,"whitespace")(t):f(t)):r(t)}function f(n){return null===n||Ut(n)?(e.exit("codeFencedFence"),t(n)):r(n)}},partial:!0};let i,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,i=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(t)}(t)};function c(t){return t===i?(s++,e.consume(t),c):s<3?r(t):(e.exit("codeFencedFenceSequence"),qt(t)?Kt(e,u,"whitespace")(t):u(t))}function u(r){return null===r||Ut(r)?(e.exit("codeFencedFence"),n.interrupt?t(r):e.check(jr,p,y)(r)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),l(r))}function l(t){return null===t||Ut(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),u(t)):qt(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Kt(e,f,"whitespace")(t)):96===t&&t===i?r(t):(e.consume(t),l)}function f(t){return null===t||Ut(t)?u(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),h(t))}function h(t){return null===t||Ut(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),u(t)):96===t&&t===i?r(t):(e.consume(t),h)}function p(t){return e.attempt(o,y,d)(t)}function d(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),m}function m(t){return a>0&&qt(t)?Kt(e,v,"linePrefix",a+1)(t):v(t)}function v(t){return null===t||Ut(t)?e.check(jr,p,y)(t):(e.enter("codeFlowValue"),g(t))}function g(t){return null===t||Ut(t)?(e.exit("codeFlowValue"),v(t)):(e.consume(t),g)}function y(r){return e.exit("codeFenced"),t(r)}},concrete:!0};const _r=document.createElement("i");function Rr(e){const t="&"+e+";";_r.innerHTML=t;const r=_r.textContent;return(59!==r.charCodeAt(r.length-1)||"semi"===e)&&(r!==t&&r)}const Ir={name:"characterReference",tokenize:function(e,t,r){const n=this;let o,i,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"),o=31,i=Lt,u(t))}function c(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,i=Ht,u):(e.enter("characterReferenceValue"),o=7,i=Nt,u(t))}function u(s){if(59===s&&a){const o=e.exit("characterReferenceValue");return i!==Lt||Rr(n.sliceSerialize(o))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):r(s)}return i(s)&&a++<o?(e.consume(s),u):r(s)}}};const Lr={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 zt(n)?(e.enter("characterEscapeValue"),e.consume(n),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(n)}}};const Br={name:"lineEnding",tokenize:function(e,t){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),Kt(e,t,"linePrefix")}}};const Mr={name:"labelEnd",tokenize:function(e,t,r){const n=this;let o,i,a=n.events.length;for(;a--;)if(("labelImage"===n.events[a][1].type||"labelLink"===n.events[a][1].type)&&!n.events[a][1]._balanced){o=n.events[a][1];break}return function(t){if(!o)return r(t);if(o._inactive)return l(t);return i=n.parser.defined.includes(br(n.sliceSerialize({start:o.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(Nr,u,i?u:l)(t):91===t?e.attempt(Hr,u,i?c:l)(t):i?u(t):l(t)}function c(t){return e.attempt(zr,u,l)(t)}function u(e){return t(e)}function l(e){return o._balanced=!0,r(e)}},resolveTo:function(e,t){let r,n,o,i,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(o){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&&(o=a);const c={type:"labelLink"===e[n][1].type?"link":"image",start:Object.assign({},e[n][1].start),end:Object.assign({},e[e.length-1][1].end)},u={type:"label",start:Object.assign({},e[n][1].start),end:Object.assign({},e[o][1].end)},l={type:"labelText",start:Object.assign({},e[n+s+2][1].end),end:Object.assign({},e[o-2][1].start)};return i=[["enter",c,t],["enter",u,t]],i=At(i,e.slice(n+1,n+s+3)),i=At(i,[["enter",l,t]]),i=At(i,cr(t.parser.constructs.insideSpan.null,e.slice(n+s+4,o-3),t)),i=At(i,[["exit",l,t],e[o-2],e[o-1],["exit",u,t]]),i=At(i,e.slice(o+1)),i=At(i,[["exit",c,t]]),Pt(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}},Nr={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 $t(t)?yr(e,o)(t):o(t)}function o(t){return 41===t?u(t):mr(e,i,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function i(t){return $t(t)?yr(e,s)(t):u(t)}function a(e){return r(e)}function s(t){return 34===t||39===t||40===t?gr(e,c,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):u(t)}function c(t){return $t(t)?yr(e,u)(t):u(t)}function u(n){return 41===n?(e.enter("resourceMarker"),e.consume(n),e.exit("resourceMarker"),e.exit("resource"),t):r(n)}}},Hr={tokenize:function(e,t,r){const n=this;return function(t){return vr.call(n,e,o,i,"reference","referenceMarker","referenceString")(t)};function o(e){return n.parser.defined.includes(br(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?t(e):r(e)}function i(e){return r(e)}}},zr={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 Ur={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:Mr.resolveAll};function $r(e){return null===e||$t(e)||Gt(e)?1:Vt(e)?2:void 0}const qr={name:"attention",tokenize:function(e,t){const r=this.parser.constructs.attentionMarkers.null,n=this.previous,o=$r(n);let i;return function(t){return i=t,e.enter("attentionSequence"),a(t)};function a(s){if(s===i)return e.consume(s),a;const c=e.exit("attentionSequence"),u=$r(s),l=!u||2===u&&o||r.includes(s),f=!o||2===o&&u||r.includes(n);return c._open=Boolean(42===i?l:l&&(o||!f)),c._close=Boolean(42===i?f:f&&(u||!l)),t(s)}},resolveAll:function(e,t){let r,n,o,i,a,s,c,u,l=-1;for(;++l<e.length;)if("enter"===e[l][0]&&"attentionSequence"===e[l][1].type&&e[l][1]._close)for(r=l;r--;)if("exit"===e[r][0]&&"attentionSequence"===e[r][1].type&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[l][1]).charCodeAt(0)){if((e[r][1]._close||e[l][1]._open)&&(e[l][1].end.offset-e[l][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[l][1].end.offset-e[l][1].start.offset)%3))continue;s=e[r][1].end.offset-e[r][1].start.offset>1&&e[l][1].end.offset-e[l][1].start.offset>1?2:1;const f=Object.assign({},e[r][1].end),h=Object.assign({},e[l][1].start);Vr(f,-s),Vr(h,s),i={type:s>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},e[r][1].end)},a={type:s>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[l][1].start),end:h},o={type:s>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[l][1].start)},n={type:s>1?"strong":"emphasis",start:Object.assign({},i.start),end:Object.assign({},a.end)},e[r][1].end=Object.assign({},i.start),e[l][1].start=Object.assign({},a.end),c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=At(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=At(c,[["enter",n,t],["enter",i,t],["exit",i,t],["enter",o,t]]),c=At(c,cr(t.parser.constructs.insideSpan.null,e.slice(r+1,l),t)),c=At(c,[["exit",o,t],["enter",a,t],["exit",a,t],["exit",n,t]]),e[l][1].end.offset-e[l][1].start.offset?(u=2,c=At(c,[["enter",e[l][1],t],["exit",e[l][1],t]])):u=0,Pt(e,r-1,l-r+3,c),l=r+c.length-u-2;break}l=-1;for(;++l<e.length;)"attentionSequence"===e[l][1].type&&(e[l][1].type="data");return e}};function Vr(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Gr={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 It(t)?(e.consume(t),i):c(t)}function i(e){return 43===e||45===e||46===e||Lt(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||Lt(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||Mt(n)?r(n):(e.consume(n),s)}function c(t){return 64===t?(e.consume(t),u):Bt(t)?(e.consume(t),c):r(t)}function u(e){return Lt(e)?l(e):r(e)}function l(r){return 46===r?(e.consume(r),n=0,u):62===r?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):f(r)}function f(t){if((45===t||Lt(t))&&n++<63){const r=45===t?f:l;return e.consume(t),r}return r(t)}}};const Wr={name:"htmlText",tokenize:function(e,t,r){const n=this;let o,i,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),w):63===t?(e.consume(t),y):It(t)?(e.consume(t),k):r(t)}function c(t){return 45===t?(e.consume(t),u):91===t?(e.consume(t),i=0,p):It(t)?(e.consume(t),g):r(t)}function u(t){return 45===t?(e.consume(t),h):r(t)}function l(t){return null===t?r(t):45===t?(e.consume(t),f):Ut(t)?(a=l,T(t)):(e.consume(t),l)}function f(t){return 45===t?(e.consume(t),h):l(t)}function h(e){return 62===e?j(e):45===e?f(e):l(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):Ut(t)?(a=d,T(t)):(e.consume(t),d)}function m(t){return 93===t?(e.consume(t),v):d(t)}function v(t){return 62===t?j(t):93===t?(e.consume(t),v):d(t)}function g(t){return null===t||62===t?j(t):Ut(t)?(a=g,T(t)):(e.consume(t),g)}function y(t){return null===t?r(t):63===t?(e.consume(t),b):Ut(t)?(a=y,T(t)):(e.consume(t),y)}function b(e){return 62===e?j(e):y(e)}function w(t){return It(t)?(e.consume(t),x):r(t)}function x(t){return 45===t||Lt(t)?(e.consume(t),x):E(t)}function E(t){return Ut(t)?(a=E,T(t)):qt(t)?(e.consume(t),E):j(t)}function k(t){return 45===t||Lt(t)?(e.consume(t),k):47===t||62===t||$t(t)?S(t):r(t)}function S(t){return 47===t?(e.consume(t),j):58===t||95===t||It(t)?(e.consume(t),D):Ut(t)?(a=S,T(t)):qt(t)?(e.consume(t),S):j(t)}function D(t){return 45===t||46===t||58===t||95===t||Lt(t)?(e.consume(t),D):P(t)}function P(t){return 61===t?(e.consume(t),A):Ut(t)?(a=P,T(t)):qt(t)?(e.consume(t),P):S(t)}function A(t){return null===t||60===t||61===t||62===t||96===t?r(t):34===t||39===t?(e.consume(t),o=t,C):Ut(t)?(a=A,T(t)):qt(t)?(e.consume(t),A):(e.consume(t),O)}function C(t){return t===o?(e.consume(t),o=void 0,F):null===t?r(t):Ut(t)?(a=C,T(t)):(e.consume(t),C)}function O(t){return null===t||34===t||39===t||60===t||61===t||96===t?r(t):47===t||62===t||$t(t)?S(t):(e.consume(t),O)}function F(e){return 47===e||62===e||$t(e)?S(e):r(e)}function j(n){return 62===n?(e.consume(n),e.exit("htmlTextData"),e.exit("htmlText"),t):r(n)}function T(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),_}function _(t){return qt(t)?Kt(e,R,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):R(t)}function R(t){return e.enter("htmlTextData"),a(t)}}};const Kr={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:Mr.resolveAll};const Qr={name:"hardBreakEscape",tokenize:function(e,t,r){return function(t){return e.enter("hardBreakEscape"),e.consume(t),n};function n(n){return Ut(n)?(e.exit("hardBreakEscape"),t(n)):r(n)}}};const Zr={name:"codeText",tokenize:function(e,t,r){let n,o,i=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),a(t)};function a(t){return 96===t?(e.consume(t),i++,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?(o=e.enter("codeTextSequence"),n=0,u(t)):Ut(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||Ut(t)?(e.exit("codeTextData"),s(t)):(e.consume(t),c)}function u(r){return 96===r?(e.consume(r),n++,u):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}};const Yr={42:fr,43:fr,45:fr,48:fr,49:fr,50:fr,51:fr,52:fr,53:fr,54:fr,55:fr,56:fr,57:fr,62:dr},Xr={91:wr},Jr={[-2]:Er,[-1]:Er,32:Er},en={35:Sr,42:lr,45:[Dr,lr],60:Cr,61:Dr,95:lr,96:Tr,126:Tr},tn={38:Ir,92:Lr},rn={[-5]:Br,[-4]:Br,[-3]:Br,33:Ur,38:Ir,42:qr,60:[Gr,Wr],91:Kr,92:[Qr,Lr],93:Mr,95:qr,96:Zr},nn={null:[qr,rr]},on={null:[42,95]},an={null:[]};const sn=/[\0\t\n\r]/g;function cn(e,t){const r=Number.parseInt(e,t);return r<9||11===r||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||65535==(65535&r)||65534==(65535&r)||r>1114111?"�":String.fromCodePoint(r)}const un=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function ln(e){return e.replace(un,fn)}function fn(e,t,r){if(t)return t;if(35===r.charCodeAt(0)){const e=r.charCodeAt(1),t=120===e||88===e;return cn(r.slice(t?2:1),t?16:10)}return Rr(r)||e}const hn={}.hasOwnProperty;function pn(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:i(ee),autolinkProtocol:D,autolinkEmail:D,atxHeading:i(Z),blockQuote:i(V),characterEscape:D,characterReference:D,codeFenced:i(G),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:i(G,a),codeText:i(W,a),codeTextData:D,data:D,codeFlowValue:D,definition:i(K),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:i(Q),hardBreakEscape:i(Y),hardBreakTrailing:i(Y),htmlFlow:i(X,a),htmlFlowData:D,htmlText:i(X,a),htmlTextData:D,image:i(J),label:a,link:i(ee),listItem:i(re),listItemValue:h,listOrdered:i(te,f),listUnordered:i(te),paragraph:i(ne),reference:N,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:i(Z),strong:i(oe),thematicBreak:i(ae)},exit:{atxHeading:c(),atxHeadingSequence:x,autolink:c(),autolinkEmail:q,autolinkProtocol:$,blockQuote:c(),characterEscapeValue:P,characterReferenceMarkerHexadecimal:z,characterReferenceMarkerNumeric:z,characterReferenceValue:U,codeFenced:c(v),codeFencedFence:m,codeFencedFenceInfo:p,codeFencedFenceMeta:d,codeFlowValue:P,codeIndented:c(g),codeText:c(j),codeTextData:P,data:P,definition:c(),definitionDestinationString:w,definitionLabelString:y,definitionTitleString:b,emphasis:c(),hardBreakEscape:c(C),hardBreakTrailing:c(C),htmlFlow:c(O),htmlFlowData:P,htmlText:c(F),htmlTextData:P,image:c(_),label:I,labelText:R,lineEnding:A,link:c(T),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:H,resourceDestinationString:L,resourceTitleString:B,resource:M,setextHeading:c(S),setextHeadingLineSequence:k,setextHeadingText:E,strong:c(),thematicBreak:c()}};mn(t,(e||{}).mdastExtensions||[]);const r={};return n;function n(e){let n={type:"root",children:[]};const i={stack:[n],tokenStack:[],config:t,enter:s,exit:u,buffer:a,resume:l,data:r},c=[];let f=-1;for(;++f<e.length;)if("listOrdered"===e[f][1].type||"listUnordered"===e[f][1].type)if("enter"===e[f][0])c.push(f);else{f=o(e,c.pop(),f)}for(f=-1;++f<e.length;){const r=t[e[f][0]];hn.call(r,e[f][1].type)&&r[e[f][1].type].call(Object.assign({sliceSerialize:e[f][2].sliceSerialize},i),e[f][1])}if(i.tokenStack.length>0){const e=i.tokenStack[i.tokenStack.length-1];(e[1]||gn).call(i,void 0,e[0])}for(n.position={start:dn(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:dn(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},f=-1;++f<t.transforms.length;)n=t.transforms[f](n)||n;return n}function o(e,t,r){let n,o,i,a,s=t-1,c=-1,u=!1;for(;++s<=r;){const t=e[s];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?c++:c--,a=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!n||a||c||i||(i=s),a=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:a=void 0}if(!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(o=void 0;a--;){const t=e[a];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;o&&(e[o][1].type="lineEndingBlank",u=!0),t[1].type="lineEnding",o=a}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||s,0,["exit",n,t[2]]),s++,r++}if("listItemPrefix"===t[1].type){const o={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};n=o,e.splice(s,0,["enter",o,t[2]]),s++,r++,i=void 0,a=!0}}}return e[t][1]._spread=u,r}function i(e,t){return r;function r(r){s.call(this,e(r),r),t&&t.call(this,r)}}function a(){this.stack.push({type:"fragment",children:[]})}function s(e,t,r){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,r]),e.position={start:dn(t.start),end:void 0}}function c(e){return t;function t(t){e&&e.call(this,t),u.call(this,t)}}function u(e,t){const r=this.stack.pop(),n=this.tokenStack.pop();if(!n)throw new Error("Cannot close `"+e.type+"` ("+Ye({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]||gn).call(this,e,n[0])}r.position.end=dn(e.end)}function l(){return kt(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function h(e){if(this.data.expectingFirstListItemValue){this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function p(){const e=this.resume();this.stack[this.stack.length-1].lang=e}function d(){const e=this.resume();this.stack[this.stack.length-1].meta=e}function m(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function v(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function g(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}function y(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.label=t,r.identifier=br(this.sliceSerialize(e)).toLowerCase()}function b(){const e=this.resume();this.stack[this.stack.length-1].title=e}function w(){const e=this.resume();this.stack[this.stack.length-1].url=e}function x(e){const t=this.stack[this.stack.length-1];if(!t.depth){const r=this.sliceSerialize(e).length;t.depth=r}}function E(){this.data.setextHeadingSlurpLineEnding=!0}function k(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2}function S(){this.data.setextHeadingSlurpLineEnding=void 0}function D(e){const t=this.stack[this.stack.length-1].children;let r=t[t.length-1];r&&"text"===r.type||(r=ie(),r.position={start:dn(e.start),end:void 0},t.push(r)),this.stack.push(r)}function P(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=dn(e.end)}function A(e){const r=this.stack[this.stack.length-1];if(this.data.atHardBreak){return r.children[r.children.length-1].position.end=dn(e.end),void(this.data.atHardBreak=void 0)}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(r.type)&&(D.call(this,e),P.call(this,e))}function C(){this.data.atHardBreak=!0}function O(){const e=this.resume();this.stack[this.stack.length-1].value=e}function F(){const e=this.resume();this.stack[this.stack.length-1].value=e}function j(){const e=this.resume();this.stack[this.stack.length-1].value=e}function T(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function _(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function R(e){const t=this.sliceSerialize(e),r=this.stack[this.stack.length-2];r.label=ln(t),r.identifier=br(t).toLowerCase()}function I(){const e=this.stack[this.stack.length-1],t=this.resume(),r=this.stack[this.stack.length-1];if(this.data.inReference=!0,"link"===r.type){const t=e.children;r.children=t}else r.alt=t}function L(){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 M(){this.data.inReference=void 0}function N(){this.data.referenceType="collapsed"}function H(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.label=t,r.identifier=br(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"}function z(e){this.data.characterReferenceType=e.type}function U(e){const t=this.sliceSerialize(e),r=this.data.characterReferenceType;let n;if(r)n=cn(t,"characterReferenceMarkerNumeric"===r?10:16),this.data.characterReferenceType=void 0;else{n=Rr(t)}const o=this.stack.pop();o.value+=n,o.position.end=dn(e.end)}function $(e){P.call(this,e);this.stack[this.stack.length-1].url=this.sliceSerialize(e)}function q(e){P.call(this,e);this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)}function V(){return{type:"blockquote",children:[]}}function G(){return{type:"code",lang:null,meta:null,value:""}}function W(){return{type:"inlineCode",value:""}}function K(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Q(){return{type:"emphasis",children:[]}}function Z(){return{type:"heading",depth:0,children:[]}}function Y(){return{type:"break"}}function X(){return{type:"html",value:""}}function J(){return{type:"image",title:null,url:"",alt:null}}function ee(){return{type:"link",title:null,url:"",children:[]}}function te(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}function re(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}function ne(){return{type:"paragraph",children:[]}}function oe(){return{type:"strong",children:[]}}function ie(){return{type:"text",value:""}}function ae(){return{type:"thematicBreak"}}}(r)(function(e){for(;!Ct(e););return e}(function(e){const t={defined:[],lazy:{},constructs:jt([o,...(e||{}).extensions||[]]),content:r(Qt),document:r(Zt),flow:r(tr),string:r(nr),text:r(or)};return t;function r(e){return function(r){return ur(t,e,r)}}}(r).document().write(function(){let e,t=1,r="",n=!0;return function(o,i,a){const s=[];let c,u,l,f,h;for(o=r+("string"==typeof o?o.toString():new TextDecoder(i||void 0).decode(o)),l=0,r="",n&&(65279===o.charCodeAt(0)&&l++,n=void 0);l<o.length;){if(sn.lastIndex=l,c=sn.exec(o),f=c&&void 0!==c.index?c.index:o.length,h=o.charCodeAt(f),!c){r=o.slice(l);break}if(10===h&&l===f&&e)s.push(-3),e=void 0;else switch(e&&(s.push(-5),e=void 0),l<f&&(s.push(o.slice(l,f)),t+=f-l),h){case 0:s.push(65533),t++;break;case 9:for(u=4*Math.ceil(t/4),s.push(-2);t++<u;)s.push(-1);break;case 10:s.push(-4),t=1;break;default:e=!0,t=1}l=f+1}return a&&(e&&s.push(-5),r&&s.push(r),s.push(null)),s}}()(e,t,!0))))}function dn(e){return{line:e.line,column:e.column,offset:e.offset}}function mn(e,t){let r=-1;for(;++r<t.length;){const n=t[r];Array.isArray(n)?mn(e,n):vn(e,n)}}function vn(e,t){let r;for(r in t)if(hn.call(t,r))switch(r){case"canContainEols":{const n=t[r];n&&e[r].push(...n);break}case"transforms":{const n=t[r];n&&e[r].push(...n);break}case"enter":case"exit":{const n=t[r];n&&Object.assign(e[r],n);break}}}function gn(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Ye({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Ye({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Ye({start:t.start,end:t.end})+") is still open")}const yn={}.hasOwnProperty;function bn(e,t){let r,n=-1;if(t.extensions)for(;++n<t.extensions.length;)bn(e,t.extensions[n]);for(r in t)if(yn.call(t,r))switch(r){case"extensions":break;case"unsafe":case"join":wn(e[r],t[r]);break;case"handlers":xn(e[r],t[r]);break;default:e.options[r]=t[r]}return e}function wn(e,t){t&&e.push(...t)}function xn(e,t){t&&Object.assign(e,t)}function En(e,t,r){return">"+(r?"":" ")+e}function kn(e,t){return Sn(e,t.inConstruct,!0)&&!Sn(e,t.notInConstruct,!1)}function Sn(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 Dn(e,t,r,n){let o=-1;for(;++o<r.unsafe.length;)if("\n"===r.unsafe[o].character&&kn(r.stack,r.unsafe[o]))return/[ \t]/.test(n.before)?"":" ";return"\\\n"}function Pn(e,t){return Boolean(!1===t.options.fences&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function An(e,t,r){return(r?"":" ")+e}function Cn(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 On(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"),a=r.createTracker(n);let s=a.move(o);return s+=a.move(r.containerPhrasing(e,{before:s,after:o,...a.current()})),s+=a.move(o),i(),s}On.peek=function(e,t,r){return r.options.emphasis||"*"};const Fn=function(e,t,r,n,o){const i=jn(t);if(null!=r&&("number"!=typeof r||r<0||r===Number.POSITIVE_INFINITY))throw new Error("Expected positive finite index");if(!(null==n||Fn(n)&&n.children))throw new Error("Expected parent node");if(null==n!=(null==r))throw new Error("Expected both parent and index");return!!Rn(e)&&i.call(o,e,r,n)},jn=function(e){if(null==e)return _n;if("function"==typeof e)return Tn(e);if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=jn(e[r]);return Tn(n);function n(...e){let r=-1;for(;++r<t.length;)if(t[r].apply(this,e))return!0;return!1}}(e):function(e){const t=e;return Tn(r);function r(r){const n=r;let o;for(o in e)if(n[o]!==t[o])return!1;return!0}}(e);if("string"==typeof e)return function(e){return Tn(t);function t(t){return t&&t.type===e}}(e);throw new Error("Expected function, string, or object as test")};function Tn(e){return function(t,r,n){return Boolean(Rn(t)&&e.call(this,t,"number"==typeof r?r:void 0,n||void 0))}}function _n(){return!0}function Rn(e){return null!==e&&"object"==typeof e&&"type"in e}const In=[],Ln=!0,Bn=!1,Mn="skip";function Nn(e,t,r,n){let o;"function"==typeof t&&"function"!=typeof r?(n=r,r=t):o=t;const i=jn(o),a=n?-1:1;!function e(o,s,c){const u=o&&"object"==typeof o?o:{};if("string"==typeof u.type){const e="string"==typeof u.tagName?u.tagName:"string"==typeof u.name?u.name:void 0;Object.defineProperty(l,"name",{value:"node ("+o.type+(e?"<"+e+">":"")+")"})}return l;function l(){let u,l,f,h=In;if((!t||i(o,s,c[c.length-1]||void 0))&&(h=function(e){if(Array.isArray(e))return e;if("number"==typeof e)return[Ln,e];return null==e?In:[e]}(r(o,c)),h[0]===Bn))return h;if("children"in o&&o.children){const t=o;if(t.children&&h[0]!==Mn)for(l=(n?t.children.length:-1)+a,f=c.concat(t);l>-1&&l<t.children.length;){const r=t.children[l];if(u=e(r,l,f)(),u[0]===Bn)return u;l="number"==typeof u[1]?u[1]:l+a}}return h}}(e,void 0,[])()}function Hn(e,t,r,n){let o,i,a;"function"==typeof t&&"function"!=typeof r?(i=void 0,a=t,o=r):(i=t,a=r,o=n),Nn(e,i,(function(e,t){const r=t[t.length-1],n=r?r.children.indexOf(e):void 0;return a(e,n,r)}),o)}function zn(e,t){let r=!1;return Hn(e,(function(e){if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return r=!0,Bn})),Boolean((!e.depth||e.depth<3)&&kt(e)&&(t.options.setext||r))}function Un(e){return e.value||""}function $n(e,t,r,n){const o=Cn(r),i='"'===o?"Quote":"Apostrophe",a=r.enter("image");let s=r.enter("label");const c=r.createTracker(n);let u=c.move("![");return u+=c.move(r.safe(e.alt,{before:u,after:"]",...c.current()})),u+=c.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=r.enter("destinationLiteral"),u+=c.move("<"),u+=c.move(r.safe(e.url,{before:u,after:">",...c.current()})),u+=c.move(">")):(s=r.enter("destinationRaw"),u+=c.move(r.safe(e.url,{before:u,after:e.title?" ":")",...c.current()}))),s(),e.title&&(s=r.enter(`title${i}`),u+=c.move(" "+o),u+=c.move(r.safe(e.title,{before:u,after:o,...c.current()})),u+=c.move(o),s()),u+=c.move(")"),a(),u}function qn(e,t,r,n){const o=e.referenceType,i=r.enter("imageReference");let a=r.enter("label");const s=r.createTracker(n);let c=s.move("![");const u=r.safe(e.alt,{before:c,after:"]",...s.current()});c+=s.move(u+"]["),a();const l=r.stack;r.stack=[],a=r.enter("reference");const f=r.safe(r.associationId(e),{before:c,after:"]",...s.current()});return a(),r.stack=l,i(),"full"!==o&&u&&u===f?"shortcut"===o?c=c.slice(0,-1):c+=s.move("]"):c+=s.move(f+"]"),c}function Vn(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=r.compilePattern(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 Gn(e,t){const r=kt(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 Wn(e,t,r,n){const o=Cn(r),i='"'===o?"Quote":"Apostrophe",a=r.createTracker(n);let s,c;if(Gn(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 u=a.move("[");return u+=a.move(r.containerPhrasing(e,{before:u,after:"](",...a.current()})),u+=a.move("]("),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=r.enter("destinationLiteral"),u+=a.move("<"),u+=a.move(r.safe(e.url,{before:u,after:">",...a.current()})),u+=a.move(">")):(c=r.enter("destinationRaw"),u+=a.move(r.safe(e.url,{before:u,after:e.title?" ":")",...a.current()}))),c(),e.title&&(c=r.enter(`title${i}`),u+=a.move(" "+o),u+=a.move(r.safe(e.title,{before:u,after:o,...a.current()})),u+=a.move(o),c()),u+=a.move(")"),s(),u}function Kn(e,t,r,n){const o=e.referenceType,i=r.enter("linkReference");let a=r.enter("label");const s=r.createTracker(n);let c=s.move("[");const u=r.containerPhrasing(e,{before:c,after:"]",...s.current()});c+=s.move(u+"]["),a();const l=r.stack;r.stack=[],a=r.enter("reference");const f=r.safe(r.associationId(e),{before:c,after:"]",...s.current()});return a(),r.stack=l,i(),"full"!==o&&u&&u===f?"shortcut"===o?c=c.slice(0,-1):c+=s.move("]"):c+=s.move(f+"]"),c}function Qn(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 Zn(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}Un.peek=function(){return"<"},$n.peek=function(){return"!"},qn.peek=function(){return"!"},Vn.peek=function(){return"`"},Wn.peek=function(e,t,r){return Gn(e,r)?"<":"["},Kn.peek=function(){return"["};const Yn=jn(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","link","linkReference","strong","text"]);function Xn(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"),a=r.createTracker(n);let s=a.move(o+o);return s+=a.move(r.containerPhrasing(e,{before:s,after:o,...a.current()})),s+=a.move(o+o),i(),s}Xn.peek=function(e,t,r){return r.options.strong||"*"};const Jn={blockquote:function(e,t,r,n){const o=r.enter("blockquote"),i=r.createTracker(n);i.move("> "),i.shift(2);const a=r.indentLines(r.containerFlow(e,i.current()),En);return o(),a},break:Dn,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||"",a="`"===o?"GraveAccent":"Tilde";if(Pn(e,r)){const e=r.enter("codeIndented"),t=r.indentLines(i,An);return e(),t}const s=r.createTracker(n),c=o.repeat(Math.max(function(e,t){const r=String(e);let n=r.indexOf(t),o=n,i=0,a=0;if("string"!=typeof t)throw new TypeError("Expected substring");for(;-1!==n;)n===o?++i>a&&(a=i):i=1,o=n+t.length,n=r.indexOf(t,o);return a}(i,o)+1,3)),u=r.enter("codeFenced");let l=s.move(c);if(e.lang){const t=r.enter(`codeFencedLang${a}`);l+=s.move(r.safe(e.lang,{before:l,after:" ",encode:["`"],...s.current()})),t()}if(e.lang&&e.meta){const t=r.enter(`codeFencedMeta${a}`);l+=s.move(" "),l+=s.move(r.safe(e.meta,{before:l,after:"\n",encode:["`"],...s.current()})),t()}return l+=s.move("\n"),i&&(l+=s.move(i+"\n")),l+=s.move(c),u(),l},definition:function(e,t,r,n){const o=Cn(r),i='"'===o?"Quote":"Apostrophe",a=r.enter("definition");let s=r.enter("label");const c=r.createTracker(n);let u=c.move("[");return u+=c.move(r.safe(r.associationId(e),{before:u,after:"]",...c.current()})),u+=c.move("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=r.enter("destinationLiteral"),u+=c.move("<"),u+=c.move(r.safe(e.url,{before:u,after:">",...c.current()})),u+=c.move(">")):(s=r.enter("destinationRaw"),u+=c.move(r.safe(e.url,{before:u,after:e.title?" ":"\n",...c.current()}))),s(),e.title&&(s=r.enter(`title${i}`),u+=c.move(" "+o),u+=c.move(r.safe(e.title,{before:u,after:o,...c.current()})),u+=c.move(o),s()),a(),u},emphasis:On,hardBreak:Dn,heading:function(e,t,r,n){const o=Math.max(Math.min(6,e.depth||1),1),i=r.createTracker(n);if(zn(e,r)){const t=r.enter("headingSetext"),n=r.enter("phrasing"),a=r.containerPhrasing(e,{...i.current(),before:"\n",after:"\n"});return n(),t(),a+"\n"+(1===o?"=":"-").repeat(a.length-(Math.max(a.lastIndexOf("\r"),a.lastIndexOf("\n"))+1))}const a="#".repeat(o),s=r.enter("headingAtx"),c=r.enter("phrasing");i.move(a+" ");let u=r.containerPhrasing(e,{before:"# ",after:"\n",...i.current()});return/^[\t ]/.test(u)&&(u="&#x"+u.charCodeAt(0).toString(16).toUpperCase()+";"+u.slice(1)),u=u?a+" "+u:a,r.options.closeAtx&&(u+=" "+a),c(),s(),u},html:Un,image:$n,imageReference:qn,inlineCode:Vn,link:Wn,linkReference:Kn,list:function(e,t,r,n){const o=r.enter("list"),i=r.bulletCurrent;let a=e.ordered?function(e){const t=e.options.bulletOrdered||".";if("."!==t&&")"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}(r):Qn(r);const s=e.ordered?"."===a?")":".":function(e){const t=Qn(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);let c=!(!t||!r.bulletLastUsed)&&a===r.bulletLastUsed;if(!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]||(c=!0),Zn(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){c=!0;break}}}}c&&(a=s),r.bulletCurrent=a;const u=r.containerFlow(e,n);return r.bulletLastUsed=a,r.bulletCurrent=i,o(),u},listItem:function(e,t,r,n){const o=function(e){const t=e.options.listItemIndent||"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||Qn(r);t&&"list"===t.type&&t.ordered&&(i=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===r.options.incrementListMarker?0:t.children.indexOf(e))+i);let a=i.length+1;("tab"===o||"mixed"===o&&(t&&"list"===t.type&&t.spread||e.spread))&&(a=4*Math.ceil(a/4));const s=r.createTracker(n);s.move(i+" ".repeat(a-i.length)),s.shift(a);const c=r.enter("listItem"),u=r.indentLines(r.containerFlow(e,s.current()),(function(e,t,r){if(t)return(r?"":" ".repeat(a))+e;return(r?i:i+" ".repeat(a-i.length))+e}));return c(),u},paragraph:function(e,t,r,n){const o=r.enter("paragraph"),i=r.enter("phrasing"),a=r.containerPhrasing(e,n);return i(),o(),a},root:function(e,t,r,n){return(e.children.some((function(e){return Yn(e)}))?r.containerPhrasing:r.containerFlow).call(r,e,n)},strong:Xn,text:function(e,t,r,n){return r.safe(e.value,n)},thematicBreak:function(e,t,r){const n=(Zn(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}},eo=[function(e,t,r,n){if("code"===t.type&&Pn(t,n)&&("list"===e.type||e.type===t.type&&Pn(e,n)))return!1;if("spread"in r&&"boolean"==typeof r.spread){if("paragraph"===e.type&&(e.type===t.type||"definition"===t.type||"heading"===t.type&&zn(t,n)))return;return r.spread?1:0}}];const to=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"],ro=[{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:to},{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:to},{atBreak:!0,before:"\\d+",character:")"},{character:")",inConstruct:"destinationRaw"},{atBreak:!0,character:"*",after:"(?:[ \t\r\n*])"},{character:"*",inConstruct:"phrasing",notInConstruct:to},{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:to},{character:"<",inConstruct:"destinationLiteral"},{atBreak:!0,character:"="},{atBreak:!0,character:">"},{character:">",inConstruct:"destinationLiteral"},{atBreak:!0,character:"["},{character:"[",inConstruct:"phrasing",notInConstruct:to},{character:"[",inConstruct:["label","reference"]},{character:"\\",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"]",inConstruct:["label","reference"]},{atBreak:!0,character:"_"},{character:"_",inConstruct:"phrasing",notInConstruct:to},{atBreak:!0,character:"`"},{character:"`",inConstruct:["codeFencedLangGraveAccent","codeFencedMetaGraveAccent"]},{character:"`",inConstruct:"phrasing",notInConstruct:to},{atBreak:!0,character:"~"}];function no(e){return e.label||!e.identifier?e.label||"":ln(e.identifier)}function oo(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 io(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 ao=/\r?\n|\r/g;function so(e,t){const r=[];let n,o=0,i=0;for(;n=ao.exec(e);)a(e.slice(o,n.index)),r.push(n[0]),o=n.index+n[0].length,i++;return a(e.slice(o)),r.join("");function a(e){r.push(t(e,i,!e))}}function co(e,t){return e-t}function uo(e,t){const r=/\\(?=[!-/:-@[-`{-~])/g,n=[],o=[],i=e+t;let a,s=-1,c=0;for(;a=r.exec(i);)n.push(a.index);for(;++s<n.length;)c!==n[s]&&o.push(e.slice(c,n[s])),o.push("\\"),c=n[s];return o.push(e.slice(c)),o.join("")}function lo(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),a=r[r.length-1];return o+=r.length-1,i=1===r.length?i+a.length:1+a.length+n,t},current:function(){return{now:{line:o,column:i},lineShift:n}},shift:function(e){n+=e}}}function fo(e,t={}){const r={enter:function(e){return r.stack.push(e),function(){r.stack.pop()}},indentLines:so,associationId:no,containerPhrasing:vo,containerFlow:go,createTracker:lo,compilePattern:oo,safe:yo,stack:[],unsafe:[...ro],join:[...eo],handlers:{...Jn},options:{},indexStack:[],handle:void 0};bn(r,t),r.options.tightDefinitions&&r.join.push(mo),r.handle=je("type",{invalid:ho,unknown:po,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}function ho(e){throw new Error("Cannot handle value `"+e+"`, expected node")}function po(e){throw new Error("Cannot handle unknown node `"+e.type+"`")}function mo(e,t){if("definition"===e.type&&e.type===t.type)return 0}function vo(e,t){return function(e,t,r){const n=t.indexStack,o=e.children||[],i=[];let a=-1,s=r.before;n.push(-1);let c=t.createTracker(r);for(;++a<o.length;){const u=o[a];let l;if(n[n.length-1]=a,a+1<o.length){let r=t.handle.handlers[o[a+1].type];r&&r.peek&&(r=r.peek),l=r?r(o[a+1],e,t,{before:"",after:"",...c.current()}).charAt(0):""}else l=r.after;i.length>0&&("\r"===s||"\n"===s)&&"html"===u.type&&(i[i.length-1]=i[i.length-1].replace(/(\r?\n|\r)$/," "),s=" ",c=t.createTracker(r),c.move(i.join(""))),i.push(c.move(t.handle(u,e,t,{...c.current(),before:s,after:l}))),s=i[i.length-1].slice(-1)}return n.pop(),i.join("")}(e,this,t)}function go(e,t){return function(e,t,r){const n=t.indexStack,o=e.children||[],i=t.createTracker(r),a=[];let s=-1;for(n.push(-1);++s<o.length;){const r=o[s];n[n.length-1]=s,a.push(i.move(t.handle(r,e,t,{before:"\n",after:"\n",...i.current()}))),"list"!==r.type&&(t.bulletLastUsed=void 0),s<o.length-1&&a.push(i.move(io(r,o[s+1],e,t)))}return n.pop(),a.join("")}(e,this,t)}function yo(e,t){return function(e,t,r){const n=(r.before||"")+(t||"")+(r.after||""),o=[],i=[],a={};let s=-1;for(;++s<e.unsafe.length;){const t=e.unsafe[s];if(!kn(e.stack,t))continue;const r=e.compilePattern(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)?(a[n].before&&!e&&(a[n].before=!1),a[n].after&&!r&&(a[n].after=!1)):(o.push(n),a[n]={before:e,after:r})}}o.sort(co);let c=r.before?r.before.length:0;const u=n.length-(r.after?r.after.length:0);for(s=-1;++s<o.length;){const e=o[s];e<c||e>=u||e+1<u&&o[s+1]===e+1&&a[e].after&&!a[e+1].before&&!a[e+1].after||o[s-1]===e-1&&a[e].before&&!a[e-1].before&&!a[e-1].after||(c!==e&&i.push(uo(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(uo(n.slice(c,u),r.after)),i.join("")}(this,e,t)}function bo(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 wo(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function xo(e,t,r){const n=jn((r||{}).ignore||[]),o=function(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const r=!e[0]||Array.isArray(e[0])?e:[e];let n=-1;for(;++n<r.length;){const e=r[n];t.push([Eo(e[0]),ko(e[1])])}return t}(t);let i=-1;for(;++i<o.length;)Nn(e,"text",a);function a(e,t){let r,a=-1;for(;++a<t.length;){const e=t[a],o=r?r.children:void 0;if(n(e,o?o.indexOf(e):void 0,r))return;r=e}if(r)return function(e,t){const r=t[t.length-1],n=o[i][0],a=o[i][1];let s=0;const c=r.children.indexOf(e);let u=!1,l=[];n.lastIndex=0;let f=n.exec(e.value);for(;f;){const r=f.index,o={index:f.index,input:f.input,stack:[...t,e]};let i=a(...f,o);if("string"==typeof i&&(i=i.length>0?{type:"text",value:i}:void 0),!1===i?n.lastIndex=r+1:(s!==r&&l.push({type:"text",value:e.value.slice(s,r)}),Array.isArray(i)?l.push(...i):i&&l.push(i),s=r+f[0].length,u=!0),!n.global)break;f=n.exec(e.value)}u?(s<e.value.length&&l.push({type:"text",value:e.value.slice(s)}),r.children.splice(c,1,...l)):l=[e];return c+l.length}(e,t)}}function Eo(e){return"string"==typeof e?new RegExp(wo(e),"g"):e}function ko(e){return"function"==typeof e?e:function(){return e}}const So="phrasing",Do=["autolink","link","image","label"];function Po(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Ao(e){this.config.enter.autolinkProtocol.call(this,e)}function Co(e){this.config.exit.autolinkProtocol.call(this,e)}function Oo(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function Fo(e){this.config.exit.autolinkEmail.call(this,e)}function jo(e){this.exit(e)}function To(e){xo(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,_o],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,Ro]],{ignore:["link","linkReference"]})}function _o(e,t,r,n,o){let i="";if(!Io(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 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 o=bo(e,"(");let i=bo(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(!a[0])return!1;const s={type:"link",title:null,url:i+t+a[0],children:[{type:"text",value:t+a[0]}]};return a[1]?[s,{type:"text",value:a[1]}]:s}function Ro(e,t,r,n){return!(!Io(n,!0)||/[-\d_]$/.test(r))&&{type:"link",title:null,url:"mailto:"+t+"@"+r,children:[{type:"text",value:t+"@"+r}]}}function Io(e,t){const r=e.input.charCodeAt(e.index-1);return(0===e.index||Gt(r)||Vt(r))&&(!t||47!==r)}function Lo(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Bo(){this.buffer()}function Mo(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.label=t,r.identifier=br(this.sliceSerialize(e)).toLowerCase()}function No(e){this.exit(e)}function Ho(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function zo(){this.buffer()}function Uo(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.label=t,r.identifier=br(this.sliceSerialize(e)).toLowerCase()}function $o(e){this.exit(e)}function qo(e,t,r,n){const o=r.createTracker(n);let i=o.move("[^");const a=r.enter("footnoteReference"),s=r.enter("reference");return i+=o.move(r.safe(r.associationId(e),{...o.current(),before:i,after:"]"})),s(),a(),i+=o.move("]"),i}function Vo(e,t,r,n){const o=r.createTracker(n);let i=o.move("[^");const a=r.enter("footnoteDefinition"),s=r.enter("label");return i+=o.move(r.safe(r.associationId(e),{...o.current(),before:i,after:"]"})),s(),i+=o.move("]:"+(e.children&&e.children.length>0?" ":"")),o.shift(4),i+=o.move(r.indentLines(r.containerFlow(e,o.current()),Go)),a(),i}function Go(e,t,r){return 0===t?e:(r?"":" ")+e}qo.peek=function(){return"["};const Wo=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function Ko(e){this.enter({type:"delete",children:[]},e)}function Qo(e){this.exit(e)}function Zo(e,t,r,n){const o=r.createTracker(n),i=r.enter("strikethrough");let a=o.move("~~");return a+=r.containerPhrasing(e,{...o.current(),before:a,after:"~"}),a+=o.move("~~"),i(),a}function Yo(e){return null==e?"":String(e)}function Xo(e){return e.length}function Jo(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}function ei(e){const t=e._align;this.enter({type:"table",align:t.map((function(e){return"none"===e?null:e})),children:[]},e),this.data.inTable=!0}function ti(e){this.exit(e),this.data.inTable=void 0}function ri(e){this.enter({type:"tableRow",children:[]},e)}function ni(e){this.exit(e)}function oi(e){this.enter({type:"tableCell",children:[]},e)}function ii(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,ai));const r=this.stack[this.stack.length-1];r.type,r.value=t,this.exit(e)}function ai(e,t){return"|"===t?t:e}function si(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:{inlineCode:function(e,t,r){let n=Jn.inlineCode(e,t,r);r.stack.includes("tableCell")&&(n=n.replace(/\|/g,"\\$&"));return n},table:function(e,t,r,n){return s(function(e,t,r){const n=e.children;let o=-1;const i=[],a=t.enter("table");for(;++o<n.length;)i[o]=c(n[o],t,r);return a(),i}(e,r,n),e.align)},tableCell:a,tableRow:function(e,t,r,n){const o=c(e,r,n),i=s([o]);return i.slice(0,i.indexOf("\n"))}}};function a(e,t,r,n){const o=r.enter("tableCell"),a=r.enter("phrasing"),s=r.containerPhrasing(e,{...n,before:i,after:i});return a(),o(),s}function s(e,t){return function(e,t={}){const r=(t.align||[]).concat(),n=t.stringLength||Xo,o=[],i=[],a=[],s=[];let c=0,u=-1;for(;++u<e.length;){const r=[],o=[];let l=-1;for(e[u].length>c&&(c=e[u].length);++l<e[u].length;){const i=Yo(e[u][l]);if(!1!==t.alignDelimiters){const e=n(i);o[l]=e,(void 0===s[l]||e>s[l])&&(s[l]=e)}r.push(i)}i[u]=r,a[u]=o}let l=-1;if("object"==typeof r&&"length"in r)for(;++l<c;)o[l]=Jo(r[l]);else{const e=Jo(r);for(;++l<c;)o[l]=e}l=-1;const f=[],h=[];for(;++l<c;){const e=o[l];let r="",n="";99===e?(r=":",n=":"):108===e?r=":":114===e&&(n=":");let i=!1===t.alignDelimiters?1:Math.max(1,s[l]-r.length-n.length);const a=r+"-".repeat(i)+n;!1!==t.alignDelimiters&&(i=r.length+i+n.length,i>s[l]&&(s[l]=i),h[l]=i),f[l]=a}i.splice(1,0,f),a.splice(1,0,h),u=-1;const p=[];for(;++u<i.length;){const e=i[u],r=a[u];l=-1;const n=[];for(;++l<c;){const i=e[l]||"";let a="",u="";if(!1!==t.alignDelimiters){const e=s[l]-(r[l]||0),t=o[l];114===t?a=" ".repeat(e):99===t?e%2?(a=" ".repeat(e/2+.5),u=" ".repeat(e/2-.5)):(a=" ".repeat(e/2),u=a):u=" ".repeat(e)}!1===t.delimiterStart||l||n.push("|"),!1===t.padding||!1===t.alignDelimiters&&""===i||!1===t.delimiterStart&&!l||n.push(" "),!1!==t.alignDelimiters&&n.push(a),n.push(i),!1!==t.alignDelimiters&&n.push(u),!1!==t.padding&&n.push(" "),!1===t.delimiterEnd&&l===c-1||n.push("|")}p.push(!1===t.delimiterEnd?n.join("").replace(/ +$/,""):n.join(""))}return p.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=[],s=t.enter("tableRow");for(;++o<n.length;)i[o]=a(n[o],0,t,r);return s(),i}}function ci(e){const t=this.stack[this.stack.length-2];t.type,t.checked="taskListCheckValueChecked"===e.type}function ui(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];e.type;const 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)}function li(e,t,r,n){const o=e.children[0],i="boolean"==typeof e.checked&&o&&"paragraph"===o.type,a="["+(e.checked?"x":" ")+"] ",s=r.createTracker(n);i&&s.move(a);let c=Jn.listItem(e,t,r,{...n,...s.current()});return i&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,(function(e){return e+a}))),c}Zo.peek=function(){return"~"};const fi={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},hi={tokenize:function(e,t,r){let n,o,i;return a;function a(t){return 46===t||95===t?e.check(di,c,s)(t):null===t||$t(t)||Gt(t)||45!==t&&Vt(t)?c(t):(i=!0,e.consume(t),a)}function s(t){return 95===t?n=!0:(o=n,n=void 0),e.consume(t),a}function c(e){return o||n||!i?r(e):t(e)}},partial:!0},pi={tokenize:function(e,t){let r=0,n=0;return o;function o(a){return 40===a?(r++,e.consume(a),o):41===a&&n<r?i(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(di,t,i)(a):null===a||$t(a)||Gt(a)?t(a):(e.consume(a),o)}function i(t){return 41===t&&n++,e.consume(t),o}},partial:!0},di={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),i):93===a?(e.consume(a),o):60===a||null===a||$t(a)||Gt(a)?t(a):r(a)}function o(e){return null===e||40===e||91===e||$t(e)||Gt(e)?t(e):n(e)}function i(e){return It(e)?a(e):r(e)}function a(t){return 59===t?(e.consume(t),n):It(t)?(e.consume(t),a):r(t)}},partial:!0},mi={tokenize:function(e,t,r){return function(t){return e.consume(t),n};function n(e){return Lt(e)?r(e):t(e)}},partial:!0},vi={tokenize:function(e,t,r){const n=this;return function(t){if(87!==t&&119!==t||!xi.call(n,n.previous)||Di(n.events))return r(t);return e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(fi,e.attempt(hi,e.attempt(pi,o),r),r)(t)};function o(r){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(r)}},previous:xi},gi={tokenize:function(e,t,r){const n=this;let o="",i=!1;return function(t){if((72===t||104===t)&&Ei.call(n,n.previous)&&!Di(n.events))return e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),o+=String.fromCodePoint(t),e.consume(t),a;return r(t)};function a(t){if(It(t)&&o.length<5)return o+=String.fromCodePoint(t),e.consume(t),a;if(58===t){const r=o.toLowerCase();if("http"===r||"https"===r)return e.consume(t),s}return r(t)}function s(t){return 47===t?(e.consume(t),i?c:(i=!0,s)):r(t)}function c(t){return null===t||Mt(t)||$t(t)||Gt(t)||Vt(t)?r(t):e.attempt(hi,e.attempt(pi,u),r)(t)}function u(r){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(r)}},previous:Ei},yi={tokenize:function(e,t,r){const n=this;let o,i;return function(t){if(!Si(t)||!ki.call(n,n.previous)||Di(n.events))return r(t);return e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(t)};function a(t){return Si(t)?(e.consume(t),a):64===t?(e.consume(t),s):r(t)}function s(t){return 46===t?e.check(mi,u,c)(t):45===t||95===t||Lt(t)?(i=!0,e.consume(t),s):u(t)}function c(t){return e.consume(t),o=!0,s}function u(a){return i&&o&&It(n.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(a)):r(a)}},previous:ki},bi={};let wi=48;for(;wi<123;)bi[wi]=yi,wi++,58===wi?wi=65:91===wi&&(wi=97);function xi(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||$t(e)}function Ei(e){return!It(e)}function ki(e){return!(47===e||Si(e))}function Si(e){return 43===e||45===e||46===e||95===e||Lt(e)}function Di(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}bi[43]=yi,bi[45]=yi,bi[46]=yi,bi[95]=yi,bi[72]=[yi,gi],bi[104]=[yi,gi],bi[87]=[yi,vi],bi[119]=[yi,vi];const Pi={tokenize:function(e,t,r){const n=this;return Kt(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 Ai(e,t,r){const n=this;let o=n.events.length;const i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let a;for(;o--;){const e=n.events[o][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(o){if(!a||!a._balanced)return r(o);const s=br(n.sliceSerialize({start:a.end,end:n.now()}));if(94!==s.codePointAt(0)||!i.includes(s.slice(1)))return r(o);return e.enter("gfmFootnoteCallLabelMarker"),e.consume(o),e.exit("gfmFootnoteCallLabelMarker"),t(o)}}function Ci(e,t){let r,n=e.length;for(;n--;)if("labelImage"===e[n][1].type&&"enter"===e[n][0]){r=e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const o={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},c=[e[n+1],e[n+2],["enter",o,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",a,t],["enter",s,t],["exit",s,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",o,t]];return e.splice(n,e.length-n+1,...c),e}function Oi(e,t,r){const n=this,o=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let i,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&&!i||null===s||91===s||$t(s))return r(s);if(93===s){e.exit("chunkString");const i=e.exit("gfmFootnoteCallString");return o.includes(br(n.sliceSerialize(i)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):r(s)}return $t(s)||(i=!0),a++,e.consume(s),92===s?u:c}function u(t){return 91===t||92===t||93===t?(e.consume(t),a++,c):c(t)}}function Fi(e,t,r){const n=this,o=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let i,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",u):r(t)}function u(t){if(s>999||93===t&&!a||null===t||91===t||$t(t))return r(t);if(93===t){e.exit("chunkString");const r=e.exit("gfmFootnoteDefinitionLabelString");return i=br(n.sliceSerialize(r)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),f}return $t(t)||(a=!0),s++,e.consume(t),92===t?l:u}function l(t){return 91===t||92===t||93===t?(e.consume(t),s++,u):u(t)}function f(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),o.includes(i)||o.push(i),Kt(e,h,"gfmFootnoteDefinitionWhitespace")):r(t)}function h(e){return t(e)}}function ji(e,t,r){return e.check(Xt,t,e.attempt(Pi,t,r))}function Ti(e){e.exit("gfmFootnoteDefinition")}function _i(e){let t=(e||{}).singleTilde;const r={tokenize:function(e,r,n){const o=this.previous,i=this.events;let a=0;return function(t){if(126===o&&"characterEscape"!==i[i.length-1][1].type)return n(t);return e.enter("strikethroughSequenceTemporary"),s(t)};function s(i){const c=$r(o);if(126===i)return a>1?n(i):(e.consume(i),a++,s);if(a<2&&!t)return n(i);const u=e.exit("strikethroughSequenceTemporary"),l=$r(i);return u._open=!l||2===l&&Boolean(c),u._close=!c||2===c&&Boolean(l),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)},a=[["enter",o,t],["enter",e[n][1],t],["exit",e[n][1],t],["enter",i,t]],s=t.parser.constructs.insideSpan.null;s&&Pt(a,a.length,0,cr(s,e.slice(n+1,r),t)),Pt(a,a.length,0,[["exit",i,t],["enter",e[r][1],t],["exit",e[r][1],t],["exit",o,t]]),Pt(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 Ri{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((function(e,t){return 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]),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 Ii(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}function Li(e,t,r){const n=this;let o,i=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 o=t>-1?n.events[t][1].type:null,i="tableHead"===o||"tableRow"===o?w:s;if(i===w&&n.parser.lazy[n.now().line])return r(e);return i(e)};function s(t){return e.enter("tableHead"),e.enter("tableRow"),function(e){if(124===e)return c(e);return o=!0,a+=1,c(e)}(t)}function c(t){return null===t?r(t):Ut(t)?a>1?(a=0,n.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),f):r(t):qt(t)?Kt(e,c,"whitespace")(t):(a+=1,o&&(o=!1,i+=1),124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),o=!0,c):(e.enter("data"),u(t)))}function u(t){return null===t||124===t||$t(t)?(e.exit("data"),c(t)):(e.consume(t),92===t?l:u)}function l(t){return 92===t||124===t?(e.consume(t),u):u(t)}function f(t){return n.interrupt=!1,n.parser.lazy[n.now().line]?r(t):(e.enter("tableDelimiterRow"),o=!1,qt(t)?Kt(e,h,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):h(t))}function h(t){return 45===t||58===t?d(t):124===t?(o=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),p):b(t)}function p(t){return qt(t)?Kt(e,d,"whitespace")(t):d(t)}function d(t){return 58===t?(a+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),m):45===t?(a+=1,m(t)):null===t||Ut(t)?y(t):b(t)}function m(t){return 45===t?(e.enter("tableDelimiterFiller"),v(t)):b(t)}function v(t){return 45===t?(e.consume(t),v):58===t?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),g):(e.exit("tableDelimiterFiller"),g(t))}function g(t){return qt(t)?Kt(e,y,"whitespace")(t):y(t)}function y(r){return 124===r?h(r):(null===r||Ut(r))&&o&&i===a?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(r)):b(r)}function b(e){return r(e)}function w(t){return e.enter("tableRow"),x(t)}function x(r){return 124===r?(e.enter("tableCellDivider"),e.consume(r),e.exit("tableCellDivider"),x):null===r||Ut(r)?(e.exit("tableRow"),t(r)):qt(r)?Kt(e,x,"whitespace")(r):(e.enter("data"),E(r))}function E(t){return null===t||124===t||$t(t)?(e.exit("data"),x(t)):(e.consume(t),92===t?k:E)}function k(t){return 92===t||124===t?(e.consume(t),E):E(t)}}function Bi(e,t){let r,n,o,i=-1,a=!0,s=0,c=[0,0,0,0],u=[0,0,0,0],l=!1,f=0;const h=new Ri;for(;++i<e.length;){const p=e[i],d=p[1];"enter"===p[0]?"tableHead"===d.type?(l=!1,0!==f&&(Ni(h,t,f,r,n),n=void 0,f=0),r={type:"table",start:Object.assign({},d.start),end:Object.assign({},d.end)},h.add(i,0,[["enter",r,t]])):"tableRow"===d.type||"tableDelimiterRow"===d.type?(a=!0,o=void 0,c=[0,0,0,0],u=[0,i+1,0,0],l&&(l=!1,n={type:"tableBody",start:Object.assign({},d.start),end:Object.assign({},d.end)},h.add(i,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]&&(u[0]=u[1],o=Mi(h,t,c,s,void 0,o)),c=u,u=[c[1],i,0,0])):(a=!1,0===u[2]&&(0!==c[1]&&(u[0]=u[1],o=Mi(h,t,c,s,void 0,o),c=[0,0,0,0]),u[2]=i)):"tableHead"===d.type?(l=!0,f=i):"tableRow"===d.type||"tableDelimiterRow"===d.type?(f=i,0!==c[1]?(u[0]=u[1],o=Mi(h,t,c,s,i,o)):0!==u[1]&&(o=Mi(h,t,u,s,i,o)),s=0):!s||"data"!==d.type&&"tableDelimiterMarker"!==d.type&&"tableDelimiterFiller"!==d.type||(u[3]=i)}for(0!==f&&Ni(h,t,f,r,n),h.consume(t.events),i=-1;++i<t.events.length;){const e=t.events[i];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=Ii(t.events,i))}return e}function Mi(e,t,r,n,o,i){const a=1===n?"tableHeader":2===n?"tableDelimiter":"tableData";0!==r[0]&&(i.end=Object.assign({},Hi(t.events,r[0])),e.add(r[0],0,[["exit",i,t]]));const s=Hi(t.events,r[1]);if(i={type:a,start:Object.assign({},s),end:Object.assign({},s)},e.add(r[1],0,[["enter",i,t]]),0!==r[2]){const o=Hi(t.events,r[2]),i=Hi(t.events,r[3]),a={type:"tableContent",start:Object.assign({},o),end:Object.assign({},i)};if(e.add(r[2],0,[["enter",a,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",a,t]])}return void 0!==o&&(i.end=Object.assign({},Hi(t.events,o)),e.add(o,0,[["exit",i,t]]),i=void 0),i}function Ni(e,t,r,n,o){const i=[],a=Hi(t.events,r);o&&(o.end=Object.assign({},a),i.push(["exit",o,t])),n.end=Object.assign({},a),i.push(["exit",n,t]),e.add(r+1,0,i)}function Hi(e,t){const r=e[t],n="enter"===r[0]?"start":"end";return r[1][n]}const zi={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 $t(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"),a):r(t)}function a(n){return Ut(n)?t(n):qt(n)?e.check({tokenize:Ui},t,r)(n):r(n)}}};function Ui(e,t,r){return Kt(e,(function(e){return null===e?r(e):t(e)}),"whitespace")}const $i={};function qi(){return{type:"break"}}const Vi={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},Gi={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},Wi={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"},Ki={ht:"\t",lf:"\n",cr:"\r",space:" ",exclamationMark:"!",quotationMark:'"',numberSign:"#",dollarSign:"$",percentSign:"%",ampersand:"&",apostrophe:"'",leftParenthesis:"(",rightParenthesis:")",asterisk:"*",plusSign:"+",comma:",",dash:"-",dot:".",slash:"/",digit0:"0",digit1:"1",digit2:"2",digit3:"3",digit4:"4",digit5:"5",digit6:"6",digit7:"7",digit8:"8",digit9:"9",colon:":",semicolon:";",lessThan:"<",equalsTo:"=",greaterThan:">",questionMark:"?",atSign:"@",uppercaseA:"A",uppercaseB:"B",uppercaseC:"C",uppercaseD:"D",uppercaseE:"E",uppercaseF:"F",uppercaseG:"G",uppercaseH:"H",uppercaseI:"I",uppercaseJ:"J",uppercaseK:"K",uppercaseL:"L",uppercaseM:"M",uppercaseN:"N",uppercaseO:"O",uppercaseP:"P",uppercaseQ:"Q",uppercaseR:"R",uppercaseS:"S",uppercaseT:"T",uppercaseU:"U",uppercaseV:"V",uppercaseW:"W",uppercaseX:"X",uppercaseY:"Y",uppercaseZ:"Z",leftSquareBracket:"[",backslash:"\\",rightSquareBracket:"]",caret:"^",underscore:"_",graveAccent:"`",lowercaseA:"a",lowercaseB:"b",lowercaseC:"c",lowercaseD:"d",lowercaseE:"e",lowercaseF:"f",lowercaseG:"g",lowercaseH:"h",lowercaseI:"i",lowercaseJ:"j",lowercaseK:"k",lowercaseL:"l",lowercaseM:"m",lowercaseN:"n",lowercaseO:"o",lowercaseP:"p",lowercaseQ:"q",lowercaseR:"r",lowercaseS:"s",lowercaseT:"t",lowercaseU:"u",lowercaseV:"v",lowercaseW:"w",lowercaseX:"x",lowercaseY:"y",lowercaseZ:"z",leftCurlyBrace:"{",verticalBar:"|",rightCurlyBrace:"}",tilde:"~",replacementCharacter:"�"};function Qi(e){const t=[];let r=-1,n=0,o=0;for(;++r<e.length;){const i=e.charCodeAt(r);let a="";if(37===i&&Lt(e.charCodeAt(r+1))&&Lt(e.charCodeAt(r+2)))o=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(a=String.fromCharCode(i));else if(i>55295&&i<57344){const t=e.charCodeAt(r+1);i<56320&&t>56319&&t<57344?(a=String.fromCharCode(i,t),o=1):a="�"}else a=String.fromCharCode(i);a&&(t.push(e.slice(n,r),encodeURIComponent(a)),n=r+o+1,a=""),o&&(r+=o,o=0)}return t.join("")+e.slice(n)}function Zi(e,t){const r=t.referenceType;let n="]";if("collapsed"===r?n+="[]":"full"===r&&(n+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+n}];const o=e.all(t),i=o[0];i&&"text"===i.type?i.value="["+i.value:o.unshift({type:"text",value:"["});const a=o[o.length-1];return a&&"text"===a.type?a.value+=n:o.push({type:"text",value:n}),o}function Yi(e){const t=e.spread;return null==t?e.children.length>1:t}const Xi=ea("end"),Ji=ea("start");function ea(e){return function(t){const r=t&&t.position&&t.position[e]||{};if("number"==typeof r.line&&r.line>0&&"number"==typeof r.column&&r.column>0)return{line:r.line,column:r.column,offset:"number"==typeof r.offset&&r.offset>-1?r.offset:void 0}}}const ta=9,ra=32;function na(e){const t=String(e),r=/\r?\n|\r/g;let n=r.exec(t),o=0;const i=[];for(;n;)i.push(oa(t.slice(o,n.index),o>0,!0),n[0]),o=n.index+n[0].length,n=r.exec(t);return i.push(oa(t.slice(o),o>0,!1)),i.join("")}function oa(e,t,r){let n=0,o=e.length;if(t){let t=e.codePointAt(n);for(;t===ta||t===ra;)n++,t=e.codePointAt(n)}if(r){let t=e.codePointAt(o-1);for(;t===ta||t===ra;)o--,t=e.codePointAt(o-1)}return o>n?e.slice(n,o):""}const ia={blockquote:function(e,t){const r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,r),e.applyData(t,r)},break:function(e,t){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:"\n"}]},code:function(e,t){const r=t.value?t.value+"\n":"",n={};t.lang&&(n.className=["language-"+t.lang]);let o={type:"element",tagName:"code",properties:n,children:[{type:"text",value:r}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o},delete:function(e,t){const r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},emphasis:function(e,t){const r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},footnoteReference:function(e,t){const r="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=String(t.identifier).toUpperCase(),o=Qi(n.toLowerCase()),i=e.footnoteOrder.indexOf(n);let a,s=e.footnoteCounts.get(n);void 0===s?(s=0,e.footnoteOrder.push(n),a=e.footnoteOrder.length):a=i+1,s+=1,e.footnoteCounts.set(n,s);const c={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+o,id:r+"fnref-"+o+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,c);const u={type:"element",tagName:"sup",properties:{},children:[c]};return e.patch(t,u),e.applyData(t,u)},heading:function(e,t){const r={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},html:function(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}},imageReference:function(e,t){const r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return Zi(e,t);const o={src:Qi(n.url||""),alt:t.alt};null!==n.title&&void 0!==n.title&&(o.title=n.title);const i={type:"element",tagName:"img",properties:o,children:[]};return e.patch(t,i),e.applyData(t,i)},image:function(e,t){const r={src:Qi(t.url)};null!==t.alt&&void 0!==t.alt&&(r.alt=t.alt),null!==t.title&&void 0!==t.title&&(r.title=t.title);const n={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,n),e.applyData(t,n)},inlineCode:function(e,t){const r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);const n={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,n),e.applyData(t,n)},linkReference:function(e,t){const r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return Zi(e,t);const o={href:Qi(n.url||"")};null!==n.title&&void 0!==n.title&&(o.title=n.title);const i={type:"element",tagName:"a",properties:o,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)},link:function(e,t){const r={href:Qi(t.url)};null!==t.title&&void 0!==t.title&&(r.title=t.title);const n={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},listItem:function(e,t,r){const n=e.all(t),o=r?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;const r=e.children;let n=-1;for(;!t&&++n<r.length;)t=Yi(r[n])}return t}(r):Yi(t),i={},a=[];if("boolean"==typeof t.checked){const e=n[0];let r;e&&"element"===e.type&&"p"===e.tagName?r=e:(r={type:"element",tagName:"p",properties:{},children:[]},n.unshift(r)),r.children.length>0&&r.children.unshift({type:"text",value:" "}),r.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let s=-1;for(;++s<n.length;){const e=n[s];(o||0!==s||"element"!==e.type||"p"!==e.tagName)&&a.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||o?a.push(e):a.push(...e.children)}const c=n[n.length-1];c&&(o||"element"!==c.type||"p"!==c.tagName)&&a.push({type:"text",value:"\n"});const u={type:"element",tagName:"li",properties:i,children:a};return e.patch(t,u),e.applyData(t,u)},list:function(e,t){const r={},n=e.all(t);let o=-1;for("number"==typeof t.start&&1!==t.start&&(r.start=t.start);++o<n.length;){const e=n[o];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const i={type:"element",tagName:t.ordered?"ol":"ul",properties:r,children:e.wrap(n,!0)};return e.patch(t,i),e.applyData(t,i)},paragraph:function(e,t){const r={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},root:function(e,t){const r={type:"root",children:e.wrap(e.all(t))};return e.patch(t,r),e.applyData(t,r)},strong:function(e,t){const r={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},table:function(e,t){const r=e.all(t),n=r.shift(),o=[];if(n){const r={type:"element",tagName:"thead",properties:{},children:e.wrap([n],!0)};e.patch(t.children[0],r),o.push(r)}if(r.length>0){const n={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},i=Ji(t.children[1]),a=Xi(t.children[t.children.length-1]);i&&a&&(n.position={start:i,end:a}),o.push(n)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(t,i),e.applyData(t,i)},tableCell:function(e,t){const r={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},tableRow:function(e,t,r){const n=r?r.children:void 0,o=0===(n?n.indexOf(t):1)?"th":"td",i=r&&"table"===r.type?r.align:void 0,a=i?i.length:t.children.length;let s=-1;const c=[];for(;++s<a;){const r=t.children[s],n={},a=i?i[s]:void 0;a&&(n.align=a);let u={type:"element",tagName:o,properties:n,children:[]};r&&(u.children=e.all(r),e.patch(r,u),u=e.applyData(r,u)),c.push(u)}const u={type:"element",tagName:"tr",properties:{},children:e.wrap(c,!0)};return e.patch(t,u),e.applyData(t,u)},text:function(e,t){const r={type:"text",value:na(String(t.value))};return e.patch(t,r),e.applyData(t,r)},thematicBreak:function(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)},toml:aa,yaml:aa,definition:aa,footnoteDefinition:aa};function aa(){}var sa=r(8544);const ca=Object.assign(ua(Error),{eval:ua(EvalError),range:ua(RangeError),reference:ua(ReferenceError),syntax:ua(SyntaxError),type:ua(TypeError),uri:ua(URIError)});function ua(e){return t.displayName=e.displayName||e.name,t;function t(t,...r){const n=t?sa(t,...r):t;return new e(n)}}const la={}.hasOwnProperty,fa={yaml:"-",toml:"+"};function ha(e){const t=[];let r=-1;const n=Array.isArray(e)?e:e?[e]:["yaml"];for(;++r<n.length;)t[r]=pa(n[r]);return t}function pa(e){let t=e;if("string"==typeof t){if(!la.call(fa,t))throw ca("Missing matter definition for `%s`",t);t={type:t,marker:fa[t]}}else if("object"!=typeof t)throw ca("Expected matter to be an object, not `%j`",t);if(!la.call(t,"type"))throw ca("Missing `type` in matter `%j`",t);if(!la.call(t,"fence")&&!la.call(t,"marker"))throw ca("Missing `marker` or `fence` in matter `%j`",t);return t}function da(e){return function(t){this.enter({type:e.type,value:""},t),this.buffer()}}function ma(e){const t=this.resume(),r=this.stack[this.stack.length-1];this.exit(e),r.value=t.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,"")}function va(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function ga(e){const t=ya(e,"open"),r=ya(e,"close");return function(e){return t+(e.value?"\n"+e.value:"")+"\n"+r}}function ya(e,t){return e.marker?ba(e.marker,t).repeat(3):ba(e.fence,t)}function ba(e,t){return"string"==typeof e?e:e[t]}function wa(e){const t=e.anywhere,r=e.type,n=r+"Fence",o=n+"Sequence",i=r+"Value",a={tokenize:function(e,t,r){let i=0;return function(t){if(t===s.charCodeAt(i))return e.enter(n),e.enter(o),a(t);return r(t)};function a(t){return i===s.length?(e.exit(o),qt(t)?(e.enter("whitespace"),c(t)):u(t)):t===s.charCodeAt(i++)?(e.consume(t),a):r(t)}function c(t){return qt(t)?(e.consume(t),c):(e.exit("whitespace"),u(t))}function u(o){return null===o||Ut(o)?(e.exit(n),t(o)):r(o)}},partial:!0};let s,c=0;return{tokenize:function(u,l,f){const h=this;return function(i){const a=h.now();if(1===a.column&&(1===a.line||t)&&(s=xa(e,"open"),c=0,i===s.charCodeAt(c)))return u.enter(r),u.enter(n),u.enter(o),p(i);return f(i)};function p(e){return c===s.length?(u.exit(o),qt(e)?(u.enter("whitespace"),d(e)):m(e)):e===s.charCodeAt(c++)?(u.consume(e),p):f(e)}function d(e){return qt(e)?(u.consume(e),d):(u.exit("whitespace"),m(e))}function m(t){return Ut(t)?(u.exit(n),u.enter("lineEnding"),u.consume(t),u.exit("lineEnding"),s=xa(e,"close"),c=0,u.attempt(a,b,v)):f(t)}function v(e){return null===e||Ut(e)?y(e):(u.enter(i),g(e))}function g(e){return null===e||Ut(e)?(u.exit(i),y(e)):(u.consume(e),g)}function y(e){return null===e?f(e):(u.enter("lineEnding"),u.consume(e),u.exit("lineEnding"),u.attempt(a,b,v))}function b(e){return u.exit(r),l(e)}},concrete:!0}}function xa(e,t){return e.marker?Ea(e.marker,t).repeat(3):Ea(e.fence,t)}function Ea(e,t){return"string"==typeof e?e:e[t]}const ka=["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"],Sa={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 Da(e){const t="string"==typeof e?e.charCodeAt(0):e;return t>=48&&t<=57}function Pa(e){const t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function Aa(e){return function(e){const t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}(e)||Da(e)}const Ca=String.fromCharCode,Oa=["","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 Fa(e,t={}){const r="string"==typeof t.additional?t.additional.charCodeAt(0):t.additional,n=[];let o,i,a=0,s=-1,c="";t.position&&("start"in t.position||"indent"in t.position?(i=t.position.indent,o=t.position.start):o=t.position);let u,l=(o?o.line:0)||1,f=(o?o.column:0)||1,h=p();for(a--;++a<=e.length;)if(10===u&&(f=(i?i[s]:0)||1),u=e.charCodeAt(a),38===u){const o=e.charCodeAt(a+1);if(9===o||10===o||12===o||32===o||38===o||60===o||Number.isNaN(o)||r&&o===r){c+=Ca(u),f++;continue}const i=a+1;let s,l=i,v=i;if(35===o){v=++l;const t=e.charCodeAt(v);88===t||120===t?(s="hexadecimal",v=++l):s="decimal"}else s="named";let g="",y="",b="";const w="named"===s?Aa:"decimal"===s?Da:Pa;for(v--;++v<=e.length;){const t=e.charCodeAt(v);if(!w(t))break;b+=Ca(t),"named"===s&&ka.includes(b)&&(g=b,y=Rr(b))}let x=59===e.charCodeAt(v);if(x){v++;const e="named"===s&&Rr(b);e&&(g=b,y=e)}let E=1+v-i,k="";if(x||!1!==t.nonTerminated)if(b)if("named"===s){if(x&&!y)d(5,1);else if(g!==b&&(v=l+g.length,E=1+v-l,x=!1),!x){const r=g?1:3;if(t.attribute){const t=e.charCodeAt(v);61===t?(d(r,E),y=""):Aa(t)?y="":d(r,E)}else d(r,E)}k=y}else{x||d(2,E);let e=Number.parseInt(b,"hexadecimal"===s?16:10);if(ja(e))d(7,E),k=Ca(65533);else if(e in Sa)d(6,E),k=Sa[e];else{let t="";Ta(e)&&d(6,E),e>65535&&(e-=65536,t+=Ca(e>>>10|55296),e=56320|1023&e),k=t+Ca(e)}}else"named"!==s&&d(4,E);else;if(k){m(),h=p(),a=v-1,f+=v-i+1,n.push(k);const r=p();r.offset++,t.reference&&t.reference.call(t.referenceContext,k,{start:h,end:r},e.slice(i-1,v)),h=r}else b=e.slice(i-1,v),c+=b,f+=b.length,a=v-1}else 10===u&&(l++,s++,f=0),Number.isNaN(u)?m():(c+=Ca(u),f++);return n.join("");function p(){return{line:l,column:f,offset:a+((o?o.offset:0)||0)}}function d(e,r){let n;t.warning&&(n=p(),n.column+=r,n.offset+=r,t.warning.call(t.warningContext,Oa[e],n,e))}function m(){c&&(n.push(c),t.text&&t.text.call(t.textContext,c,{start:h,end:p()}),c="")}}function ja(e){return e>=55296&&e<=57343||e>1114111}function Ta(e){return e>=1&&e<=8||11===e||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||65535==(65535&e)||65534==(65535&e)}function _a(e,t){return e=e.replace(t.subset?function(e){const t=[];let r=-1;for(;++r<e.length;)t.push(e[r].replace(/[|\\{}()[\]^$+*?.]/g,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}(t.subset):/["&'<>`]/g,r),t.subset||t.escapeOnly?e:e.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,(function(e,r,n){return t.format(1024*(e.charCodeAt(0)-55296)+e.charCodeAt(1)-56320+65536,n.charCodeAt(r+2),t)})).replace(/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,r);function r(e,r,n){return t.format(e.charCodeAt(0),n.charCodeAt(r+1),t)}}function Ra(e){return"&#x"+e.toString(16).toUpperCase()+";"}const Ia={}.hasOwnProperty,La=/^[^\t\n\r "#'.<=>`}]+$/;function Ba(e){Ha.call(this,"containerDirective",e)}function Ma(e){Ha.call(this,"leafDirective",e)}function Na(e){Ha.call(this,"textDirective",e)}function Ha(e,t){this.enter({type:e,name:"",attributes:{},children:[]},t)}function za(e){const t=this.stack[this.stack.length-1];"containerDirective"===t.type||"leafDirective"===t.type||t.type,t.name=this.sliceSerialize(e)}function Ua(e){this.enter({type:"paragraph",data:{directiveLabel:!0},children:[]},e)}function $a(e){this.exit(e)}function qa(){this.data.directiveAttributes=[],this.buffer()}function Va(e){const t=this.data.directiveAttributes;t.push(["id",Fa(this.sliceSerialize(e),{attribute:!0})])}function Ga(e){const t=this.data.directiveAttributes;t.push(["class",Fa(this.sliceSerialize(e),{attribute:!0})])}function Wa(e){const t=this.data.directiveAttributes;t[t.length-1][1]=Fa(this.sliceSerialize(e),{attribute:!0})}function Ka(e){const t=this.data.directiveAttributes;t.push([this.sliceSerialize(e),""])}function Qa(){const e=this.data.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.data.directiveAttributes=void 0,this.resume();const n=this.stack[this.stack.length-1];"containerDirective"===n.type||"leafDirective"===n.type||n.type,n.attributes=t}function Za(e){this.exit(e)}function Ya(e,t,r,n){const o=r.createTracker(n),i=function(e){let t=0;"containerDirective"===e.type?(Nn(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=o.move(i+(e.name||""));if("containerDirective"===e.type){const t=(e.children||[])[0];s=Xa(t)?t:void 0}else s=e;if(s&&s.children&&s.children.length>0){const t=r.enter("label"),n=`${e.type}Label`,i=r.enter(n);c+=o.move("["),c+=o.move(r.containerPhrasing(s,{...o.current(),before:c,after:"]"})),c+=o.move("]"),i(),t()}if(c+=o.move(function(e,t){const r=t.options.quote||'"',n="textDirective"===e.type?[r]:[r,"\n","\r"],o=e.attributes||{},i=[];let a,s,c,u;for(u in o)if(Ia.call(o,u)&&void 0!==o[u]&&null!==o[u]){const e=String(o[u]);if("id"===u)c=La.test(e)?"#"+e:l("id",e);else if("class"===u){const t=e.split(/[\t\n\r ]+/g),r=[],n=[];let o=-1;for(;++o<t.length;)(La.test(t[o])?n:r).push(t[o]);a=r.length>0?l("class",r.join(" ")):"",s=n.length>0?"."+n.join("."):""}else i.push(l(u,e))}a&&i.unshift(a);s&&i.unshift(s);c&&i.unshift(c);return i.length>0?"{"+i.join(" ")+"}":"";function l(e,t){return e+(t?"="+r+function(e,t){return _a(e,Object.assign({format:Ra},t))}(t,{subset:n})+r:"")}}(e,r)),"containerDirective"===e.type){let t=e;Xa((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(r.containerFlow(t,o.current()))),c+=o.move("\n"+i)}return a(),c}function Xa(e){return Boolean(e&&"paragraph"===e.type&&e.data&&e.data.directiveLabel)}function Ja(e,t,r,n,o,i,a,s,c,u,l,f,h,p,d){let m,v;return function(t){return e.enter(n),e.enter(o),e.consume(t),e.exit(o),g};function g(t){return 35===t?(m=a,y(t)):46===t?(m=s,y(t)):58===t||95===t||It(t)?(e.enter(i),e.enter(c),e.consume(t),x):d&&qt(t)?Kt(e,g,"whitespace")(t):!d&&$t(t)?yr(e,g)(t):O(t)}function y(t){const r=m+"Marker";return e.enter(i),e.enter(m),e.enter(r),e.consume(t),e.exit(r),b}function b(t){if(null===t||34===t||35===t||39===t||46===t||60===t||61===t||62===t||96===t||125===t||$t(t))return r(t);const n=m+"Value";return e.enter(n),e.consume(t),w}function w(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||$t(t)){const r=m+"Value";return e.exit(r),e.exit(m),e.exit(i),g(t)}return e.consume(t),w}function x(t){return 45===t||46===t||58===t||95===t||Lt(t)?(e.consume(t),x):(e.exit(c),d&&qt(t)?Kt(e,E,"whitespace")(t):!d&&$t(t)?yr(e,E)(t):E(t))}function E(t){return 61===t?(e.enter(u),e.consume(t),e.exit(u),k):(e.exit(i),g(t))}function k(t){return null===t||60===t||61===t||62===t||96===t||125===t||d&&Ut(t)?r(t):34===t||39===t?(e.enter(l),e.enter(h),e.consume(t),e.exit(h),v=t,D):d&&qt(t)?Kt(e,k,"whitespace")(t):!d&&$t(t)?yr(e,k)(t):(e.enter(f),e.enter(p),e.consume(t),v=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||$t(t)?(e.exit(p),e.exit(f),e.exit(i),g(t)):(e.consume(t),S)}function D(t){return t===v?(e.enter(h),e.consume(t),e.exit(h),e.exit(l),e.exit(i),C):(e.enter(f),P(t))}function P(t){return t===v?(e.exit(f),D(t)):null===t?r(t):Ut(t)?d?r(t):yr(e,P)(t):(e.enter(p),e.consume(t),A)}function A(t){return t===v||null===t||Ut(t)?(e.exit(p),P(t)):(e.consume(t),A)}function C(e){return 125===e||$t(e)?g(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 es(e,t,r,n,o,i,a){let s,c=0,u=0;return function(t){return e.enter(n),e.enter(o),e.consume(t),e.exit(o),l};function l(r){return 93===r?(e.enter(o),e.consume(r),e.exit(o),e.exit(n),t):(e.enter(i),f(r))}function f(t){if(93===t&&!u)return d(t);const r=e.enter("chunkText",{contentType:"text",previous:s});return s&&(s.next=r),s=r,h(t)}function h(t){return null===t||c>999||91===t&&++u>32?r(t):93!==t||u--?Ut(t)?a?r(t):(e.consume(t),e.exit("chunkText"),f):(e.consume(t),92===t?p:h):(e.exit("chunkText"),d(t))}function p(t){return 91===t||92===t||93===t?(e.consume(t),c++,h):h(t)}function d(r){return e.exit(i),e.enter(o),e.consume(r),e.exit(o),e.exit(n),t}}function ts(e,t,r,n){const o=this;return function(t){if(It(t))return e.enter(n),e.consume(t),i;return r(t)};function i(a){return 45===a||95===a||Lt(a)?(e.consume(a),i):(e.exit(n),45===o.previous||95===o.previous?r(a):t(a))}}Ya.peek=function(){return":"};const rs={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 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"),ts.call(n,e,u,r,"directiveContainerName")(t))}function u(t){return 91===t?e.attempt(ns,l,l)(t):l(t)}function l(t){return 123===t?e.attempt(os,f,f)(t):f(t)}function f(t){return Kt(e,h,"whitespace")(t)}function h(o){return e.exit("directiveContainerFence"),null===o?p(o):Ut(o)?n.interrupt?t(o):e.attempt(is,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?w(t):e.attempt({tokenize:x,partial:!0},w,i?Kt(e,v,"linePrefix",i+1):v)(t)}function v(t){if(null===t)return w(t);const r=e.enter("chunkDocument",{contentType:"document",previous:a});return a&&(a.next=r),a=r,g(t)}function g(t){if(null===t){const r=e.exit("chunkDocument");return n.parser.lazy[r.start.line]=!1,w(t)}return Ut(t)?e.check(is,y,b)(t):(e.consume(t),g)}function y(t){e.consume(t);const r=e.exit("chunkDocument");return n.parser.lazy[r.start.line]=!1,m}function b(t){const r=e.exit("chunkDocument");return n.parser.lazy[r.start.line]=!1,w(t)}function w(r){return e.exit("directiveContainerContent"),e.exit("directiveContainer"),t(r)}function x(e,t,r){let n=0;return Kt(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<s?r(t):(e.exit("directiveContainerSequence"),Kt(e,i,"whitespace")(t))}function i(n){return null===n||Ut(n)?(e.exit("directiveContainerFence"),t(n)):r(n)}}},concrete:!0},ns={tokenize:function(e,t,r){return es(e,t,r,"directiveContainerLabel","directiveContainerLabelMarker","directiveContainerLabelString",!0)},partial:!0},os={tokenize:function(e,t,r){return Ja(e,t,r,"directiveContainerAttributes","directiveContainerAttributesMarker","directiveContainerAttribute","directiveContainerAttributeId","directiveContainerAttributeClass","directiveContainerAttributeName","directiveContainerAttributeInitializerMarker","directiveContainerAttributeValueLiteral","directiveContainerAttributeValue","directiveContainerAttributeValueMarker","directiveContainerAttributeValueData",!0)},partial:!0},is={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 as={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"),ts.call(n,e,i,r,"directiveLeafName")):r(t)}function i(t){return 91===t?e.attempt(ss,a,a)(t):a(t)}function a(t){return 123===t?e.attempt(cs,s,s)(t):s(t)}function s(t){return Kt(e,c,"whitespace")(t)}function c(n){return null===n||Ut(n)?(e.exit("directiveLeaf"),t(n)):r(n)}}},ss={tokenize:function(e,t,r){return es(e,t,r,"directiveLeafLabel","directiveLeafLabelMarker","directiveLeafLabelString",!0)},partial:!0},cs={tokenize:function(e,t,r){return Ja(e,t,r,"directiveLeafAttributes","directiveLeafAttributesMarker","directiveLeafAttribute","directiveLeafAttributeId","directiveLeafAttributeClass","directiveLeafAttributeName","directiveLeafAttributeInitializerMarker","directiveLeafAttributeValueLiteral","directiveLeafAttributeValue","directiveLeafAttributeValueMarker","directiveLeafAttributeValueData",!0)},partial:!0};const us={tokenize:function(e,t,r){const n=this;return function(t){return e.enter("directiveText"),e.enter("directiveTextMarker"),e.consume(t),e.exit("directiveTextMarker"),ts.call(n,e,o,r,"directiveTextName")};function o(t){return 58===t?r(t):91===t?e.attempt(ls,i,i)(t):i(t)}function i(t){return 123===t?e.attempt(fs,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}},ls={tokenize:function(e,t,r){return es(e,t,r,"directiveTextLabel","directiveTextLabelMarker","directiveTextLabelString")},partial:!0},fs={tokenize:function(e,t,r){return Ja(e,t,r,"directiveTextAttributes","directiveTextAttributesMarker","directiveTextAttribute","directiveTextAttributeId","directiveTextAttributeClass","directiveTextAttributeName","directiveTextAttributeInitializerMarker","directiveTextAttributeValueLiteral","directiveTextAttributeValue","directiveTextAttributeValueMarker","directiveTextAttributeValueData")},partial:!0};const hs=function(e){if(null==e)return ds;if("string"==typeof e)return function(e){return ps(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]=hs(e[r]);return ps(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 ps(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 ps(e);throw new Error("Expected function, string, or object as test")};function ps(e){return function(t,...r){return Boolean(t&&"object"==typeof t&&"type"in t&&Boolean(e.call(this,t,...r)))}}function ds(){return!0}const ms=function(e,t,r,n){"function"==typeof t&&"function"!=typeof r&&(n=r,r=t,t=null);const o=hs(t),i=n?-1:1;!function e(a,s,c){const u=a&&"object"==typeof a?a:{};if("string"==typeof u.type){const e="string"==typeof u.tagName?u.tagName:"string"==typeof u.name?u.name:void 0;Object.defineProperty(l,"name",{value:"node ("+a.type+(e?"<"+e+">":"")+")"})}return l;function l(){let u,l,f,h=[];if((!t||o(a,s,c[c.length-1]||null))&&(h=function(e){if(Array.isArray(e))return e;if("number"==typeof e)return[true,e];return[e]}(r(a,c)),false===h[0]))return h;if(a.children&&"skip"!==h[0])for(l=(n?a.children.length:-1)+i,f=c.concat(a);l>-1&&l<a.children.length;){if(u=e(a.children[l],l,f)(),false===u[0])return u;l="number"==typeof u[1]?u[1]:l+i}return h}}(e,void 0,[])()};const vs=function(e,t,r,n){"function"==typeof t&&"function"!=typeof r&&(n=r,r=t,t=null),ms(e,t,(function(e,t){const n=t[t.length-1];return r(e,n?n.children.indexOf(e):null,n)}),n)},gs={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 ys=r(4999),bs=r.n(ys),ws=r(7392),xs=r.n(ws),Es=r(5756),ks=r.n(Es);function Ss(e,t){return function(){return e.apply(t,arguments)}}const{toString:Ds}=Object.prototype,{getPrototypeOf:Ps}=Object,As=(Cs=Object.create(null),e=>{const t=Ds.call(e);return Cs[t]||(Cs[t]=t.slice(8,-1).toLowerCase())});var Cs;const Os=e=>(e=e.toLowerCase(),t=>As(t)===e),Fs=e=>t=>typeof t===e,{isArray:js}=Array,Ts=Fs("undefined");const _s=Os("ArrayBuffer");const Rs=Fs("string"),Is=Fs("function"),Ls=Fs("number"),Bs=e=>null!==e&&"object"==typeof e,Ms=e=>{if("object"!==As(e))return!1;const t=Ps(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},Ns=Os("Date"),Hs=Os("File"),zs=Os("Blob"),Us=Os("FileList"),$s=Os("URLSearchParams");function qs(e,t,{allOwnKeys:r=!1}={}){if(null==e)return;let n,o;if("object"!=typeof e&&(e=[e]),js(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{const o=r?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let a;for(n=0;n<i;n++)a=o[n],t.call(null,e[a],a,e)}}function Vs(e,t){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 Gs="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,Ws=e=>!Ts(e)&&e!==Gs;const Ks=(Qs="undefined"!=typeof Uint8Array&&Ps(Uint8Array),e=>Qs&&e instanceof Qs);var Qs;const Zs=Os("HTMLFormElement"),Ys=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Xs=Os("RegExp"),Js=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};qs(r,((r,o)=>{let i;!1!==(i=t(r,o,e))&&(n[o]=i||r)})),Object.defineProperties(e,n)},ec="abcdefghijklmnopqrstuvwxyz",tc="0123456789",rc={DIGIT:tc,ALPHA:ec,ALPHA_DIGIT:ec+ec.toUpperCase()+tc};const nc=Os("AsyncFunction"),oc={isArray:js,isArrayBuffer:_s,isBuffer:function(e){return null!==e&&!Ts(e)&&null!==e.constructor&&!Ts(e.constructor)&&Is(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||Is(e.append)&&("formdata"===(t=As(e))||"object"===t&&Is(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&_s(e.buffer),t},isString:Rs,isNumber:Ls,isBoolean:e=>!0===e||!1===e,isObject:Bs,isPlainObject:Ms,isUndefined:Ts,isDate:Ns,isFile:Hs,isBlob:zs,isRegExp:Xs,isFunction:Is,isStream:e=>Bs(e)&&Is(e.pipe),isURLSearchParams:$s,isTypedArray:Ks,isFileList:Us,forEach:qs,merge:function e(){const{caseless:t}=Ws(this)&&this||{},r={},n=(n,o)=>{const i=t&&Vs(r,o)||o;Ms(r[i])&&Ms(n)?r[i]=e(r[i],n):Ms(n)?r[i]=e({},n):js(n)?r[i]=n.slice():r[i]=n};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&qs(arguments[e],n);return r},extend:(e,t,r,{allOwnKeys:n}={})=>(qs(t,((t,n)=>{r&&Is(t)?e[n]=Ss(t,r):e[n]=t}),{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),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let o,i,a;const s={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],n&&!n(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==r&&Ps(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:As,kindOfTest:Os,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(js(e))return e;let t=e.length;if(!Ls(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{const r=(e&&e[Symbol.iterator]).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:Zs,hasOwnProperty:Ys,hasOwnProp:Ys,reduceDescriptors:Js,freezeMethods:e=>{Js(e,((t,r)=>{if(Is(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=e[r];Is(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 js(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)=>(e=+e,Number.isFinite(e)?e:t),findKey:Vs,global:Gs,isContextDefined:Ws,ALPHABET:rc,generateString:(e=16,t=rc.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r},isSpecCompliantForm:function(e){return!!(e&&Is(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),r=(e,n)=>{if(Bs(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[n]=e;const o=js(e)?[]:{};return qs(e,((e,t)=>{const i=r(e,n+1);!Ts(i)&&(o[t]=i)})),t[n]=void 0,o}}return e};return r(e,0)},isAsyncFn:nc,isThenable:e=>e&&(Bs(e)||Is(e))&&Is(e.then)&&Is(e.catch)};function ic(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}oc.inherits(ic,Error,{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:oc.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const ac=ic.prototype,sc={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{sc[e]={value:e}})),Object.defineProperties(ic,sc),Object.defineProperty(ac,"isAxiosError",{value:!0}),ic.from=(e,t,r,n,o,i)=>{const a=Object.create(ac);return oc.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),ic.call(a,e.message,t,r,n,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const cc=ic;function uc(e){return oc.isPlainObject(e)||oc.isArray(e)}function lc(e){return oc.endsWith(e,"[]")?e.slice(0,-2):e}function fc(e,t,r){return e?e.concat(t).map((function(e,t){return e=lc(e),!r&&t?"["+e+"]":e})).join(r?".":""):t}const hc=oc.toFlatObject(oc,{},null,(function(e){return/^is[A-Z]/.test(e)}));const pc=function(e,t,r){if(!oc.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const n=(r=oc.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!oc.isUndefined(t[e])}))).metaTokens,o=r.visitor||u,i=r.dots,a=r.indexes,s=(r.Blob||"undefined"!=typeof Blob&&Blob)&&oc.isSpecCompliantForm(t);if(!oc.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(oc.isDate(e))return e.toISOString();if(!s&&oc.isBlob(e))throw new cc("Blob is not supported. Use a Buffer instead.");return oc.isArrayBuffer(e)||oc.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,r,o){let s=e;if(e&&!o&&"object"==typeof e)if(oc.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else if(oc.isArray(e)&&function(e){return oc.isArray(e)&&!e.some(uc)}(e)||(oc.isFileList(e)||oc.endsWith(r,"[]"))&&(s=oc.toArray(e)))return r=lc(r),s.forEach((function(e,n){!oc.isUndefined(e)&&null!==e&&t.append(!0===a?fc([r],n,i):null===a?r:r+"[]",c(e))})),!1;return!!uc(e)||(t.append(fc(o,r,i),c(e)),!1)}const l=[],f=Object.assign(hc,{defaultVisitor:u,convertValue:c,isVisitable:uc});if(!oc.isObject(e))throw new TypeError("data must be an object");return function e(r,n){if(!oc.isUndefined(r)){if(-1!==l.indexOf(r))throw Error("Circular reference detected in "+n.join("."));l.push(r),oc.forEach(r,(function(r,i){!0===(!(oc.isUndefined(r)||null===r)&&o.call(t,r,oc.isString(i)?i.trim():i,n,f))&&e(r,n?n.concat(i):[i])})),l.pop()}}(e),t};function dc(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function mc(e,t){this._pairs=[],e&&pc(e,this,t)}const vc=mc.prototype;vc.append=function(e,t){this._pairs.push([e,t])},vc.toString=function(e){const t=e?function(t){return e.call(this,t,dc)}:dc;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const gc=mc;function yc(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function bc(e,t,r){if(!t)return e;const n=r&&r.encode||yc,o=r&&r.serialize;let i;if(i=o?o(t,r):oc.isURLSearchParams(t)?t.toString():new gc(t,r).toString(n),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}const wc=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){oc.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},xc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ec={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:gc,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},kc="undefined"!=typeof window&&"undefined"!=typeof document,Sc=(Dc="undefined"!=typeof navigator&&navigator.product,kc&&["ReactNative","NativeScript","NS"].indexOf(Dc)<0);var Dc;const Pc="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Ac={...a,...Ec};const Cc=function(e){function t(e,r,n,o){let i=e[o++];const a=Number.isFinite(+i),s=o>=e.length;if(i=!i&&oc.isArray(n)?n.length:i,s)return oc.hasOwnProp(n,i)?n[i]=[n[i],r]:n[i]=r,!a;n[i]&&oc.isObject(n[i])||(n[i]=[]);return t(e,r,n[i],o)&&oc.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])),!a}if(oc.isFormData(e)&&oc.isFunction(e.entries)){const r={};return oc.forEachEntry(e,((e,n)=>{t(function(e){return oc.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),n,r,0)})),r}return null};const Oc={transitional:xc,adapter:["xhr","http"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,o=oc.isObject(e);o&&oc.isHTMLForm(e)&&(e=new FormData(e));if(oc.isFormData(e))return n&&n?JSON.stringify(Cc(e)):e;if(oc.isArrayBuffer(e)||oc.isBuffer(e)||oc.isStream(e)||oc.isFile(e)||oc.isBlob(e))return e;if(oc.isArrayBufferView(e))return e.buffer;if(oc.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 pc(e,new Ac.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,n){return Ac.isNode&&oc.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=oc.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return pc(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||n?(t.setContentType("application/json",!1),function(e,t,r){if(oc.isString(e))try{return(t||JSON.parse)(e),oc.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Oc.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(e&&oc.isString(e)&&(r&&!this.responseType||n)){const r=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(e){if(r){if("SyntaxError"===e.name)throw cc.from(e,cc.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:Ac.classes.FormData,Blob:Ac.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};oc.forEach(["delete","get","head","post","put","patch"],(e=>{Oc.headers[e]={}}));const Fc=Oc,jc=oc.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"]),Tc=Symbol("internals");function _c(e){return e&&String(e).trim().toLowerCase()}function Rc(e){return!1===e||null==e?e:oc.isArray(e)?e.map(Rc):String(e)}function Ic(e,t,r,n,o){return oc.isFunction(n)?n.call(this,t,r):(o&&(t=r),oc.isString(t)?oc.isString(n)?-1!==t.indexOf(n):oc.isRegExp(n)?n.test(t):void 0:void 0)}class Lc{constructor(e){e&&this.set(e)}set(e,t,r){const n=this;function o(e,t,r){const o=_c(t);if(!o)throw new Error("header name must be a non-empty string");const i=oc.findKey(n,o);(!i||void 0===n[i]||!0===r||void 0===r&&!1!==n[i])&&(n[i||t]=Rc(e))}const i=(e,t)=>oc.forEach(e,((e,r)=>o(e,r,t)));return oc.isPlainObject(e)||e instanceof this.constructor?i(e,t):oc.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]&&jc[r]||("set-cookie"===r?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)})),t})(e),t):null!=e&&o(t,e,r),this}get(e,t){if(e=_c(e)){const r=oc.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(oc.isFunction(t))return t.call(this,e,r);if(oc.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=_c(e)){const r=oc.findKey(this,e);return!(!r||void 0===this[r]||t&&!Ic(0,this[r],r,t))}return!1}delete(e,t){const r=this;let n=!1;function o(e){if(e=_c(e)){const o=oc.findKey(r,e);!o||t&&!Ic(0,r[o],o,t)||(delete r[o],n=!0)}}return oc.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&&!Ic(0,this[o],o,e,!0)||(delete this[o],n=!0)}return n}normalize(e){const t=this,r={};return oc.forEach(this,((n,o)=>{const i=oc.findKey(r,o);if(i)return t[i]=Rc(n),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,r)=>t.toUpperCase()+r))}(o):String(o).trim();a!==o&&delete t[o],t[a]=Rc(n),r[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return oc.forEach(this,((r,n)=>{null!=r&&!1!==r&&(t[n]=e&&oc.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")}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[Tc]=this[Tc]={accessors:{}}).accessors,r=this.prototype;function n(e){const n=_c(e);t[n]||(!function(e,t){const r=oc.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 oc.isArray(e)?e.forEach(n):n(e),this}}Lc.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),oc.reduceDescriptors(Lc.prototype,(({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}})),oc.freezeMethods(Lc);const Bc=Lc;function Mc(e,t){const r=this||Fc,n=t||r,o=Bc.from(n.headers);let i=n.data;return oc.forEach(e,(function(e){i=e.call(r,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function Nc(e){return!(!e||!e.__CANCEL__)}function Hc(e,t,r){cc.call(this,null==e?"canceled":e,cc.ERR_CANCELED,t,r),this.name="CanceledError"}oc.inherits(Hc,cc,{__CANCEL__:!0});const zc=Hc;const Uc=Ac.hasStandardBrowserEnv?{write(e,t,r,n,o,i){const a=[e+"="+encodeURIComponent(t)];oc.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),oc.isString(n)&&a.push("path="+n),oc.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function $c(e,t){return e&&!function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}(t)?function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const qc=Ac.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let r;function n(r){let n=r;return e&&(t.setAttribute("href",n),n=t.href),t.setAttribute("href",n),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return r=n(window.location.href),function(e){const t=oc.isString(e)?n(e):e;return t.protocol===r.protocol&&t.host===r.host}}():function(){return!0};const Vc=function(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const c=Date.now(),u=n[a];o||(o=c),r[i]=s,n[i]=c;let l=a,f=0;for(;l!==i;)f+=r[l++],l%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),c-o<t)return;const h=u&&c-u;return h?Math.round(1e3*f/h):void 0}};function Gc(e,t){let r=0;const n=Vc(50,250);return o=>{const i=o.loaded,a=o.lengthComputable?o.total:void 0,s=i-r,c=n(s);r=i;const u={loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:c||void 0,estimated:c&&a&&i<=a?(a-i)/c:void 0,event:o};u[t?"download":"upload"]=!0,e(u)}}const Wc="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,r){let n=e.data;const o=Bc.from(e.headers).normalize();let i,a,{responseType:s,withXSRFToken:c}=e;function u(){e.cancelToken&&e.cancelToken.unsubscribe(i),e.signal&&e.signal.removeEventListener("abort",i)}if(oc.isFormData(n))if(Ac.hasStandardBrowserEnv||Ac.hasStandardBrowserWebWorkerEnv)o.setContentType(!1);else if(!1!==(a=o.getContentType())){const[e,...t]=a?a.split(";").map((e=>e.trim())).filter(Boolean):[];o.setContentType([e||"multipart/form-data",...t].join("; "))}let l=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",r=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(t+":"+r))}const f=$c(e.baseURL,e.url);function h(){if(!l)return;const n=Bc.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders());!function(e,t,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new cc("Request failed with status code "+r.status,[cc.ERR_BAD_REQUEST,cc.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}((function(e){t(e),u()}),(function(e){r(e),u()}),{data:s&&"text"!==s&&"json"!==s?l.response:l.responseText,status:l.status,statusText:l.statusText,headers:n,config:e,request:l}),l=null}if(l.open(e.method.toUpperCase(),bc(f,e.params,e.paramsSerializer),!0),l.timeout=e.timeout,"onloadend"in l?l.onloadend=h:l.onreadystatechange=function(){l&&4===l.readyState&&(0!==l.status||l.responseURL&&0===l.responseURL.indexOf("file:"))&&setTimeout(h)},l.onabort=function(){l&&(r(new cc("Request aborted",cc.ECONNABORTED,e,l)),l=null)},l.onerror=function(){r(new cc("Network Error",cc.ERR_NETWORK,e,l)),l=null},l.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const n=e.transitional||xc;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(new cc(t,n.clarifyTimeoutError?cc.ETIMEDOUT:cc.ECONNABORTED,e,l)),l=null},Ac.hasStandardBrowserEnv&&(c&&oc.isFunction(c)&&(c=c(e)),c||!1!==c&&qc(f))){const t=e.xsrfHeaderName&&e.xsrfCookieName&&Uc.read(e.xsrfCookieName);t&&o.set(e.xsrfHeaderName,t)}void 0===n&&o.setContentType(null),"setRequestHeader"in l&&oc.forEach(o.toJSON(),(function(e,t){l.setRequestHeader(t,e)})),oc.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),s&&"json"!==s&&(l.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&l.addEventListener("progress",Gc(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&l.upload&&l.upload.addEventListener("progress",Gc(e.onUploadProgress)),(e.cancelToken||e.signal)&&(i=t=>{l&&(r(!t||t.type?new zc(null,e,l):t),l.abort(),l=null)},e.cancelToken&&e.cancelToken.subscribe(i),e.signal&&(e.signal.aborted?i():e.signal.addEventListener("abort",i)));const p=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(f);p&&-1===Ac.protocols.indexOf(p)?r(new cc("Unsupported protocol "+p+":",cc.ERR_BAD_REQUEST,e)):l.send(n||null)}))},Kc={http:null,xhr:Wc};oc.forEach(Kc,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const Qc=e=>`- ${e}`,Zc=e=>oc.isFunction(e)||null===e||!1===e,Yc=e=>{e=oc.isArray(e)?e:[e];const{length:t}=e;let r,n;const o={};for(let i=0;i<t;i++){let t;if(r=e[i],n=r,!Zc(r)&&(n=Kc[(t=String(r)).toLowerCase()],void 0===n))throw new cc(`Unknown adapter '${t}'`);if(n)break;o[t||"#"+i]=n}if(!n){const e=Object.entries(o).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));let r=t?e.length>1?"since :\n"+e.map(Qc).join("\n"):" "+Qc(e[0]):"as no adapter specified";throw new cc("There is no suitable adapter to dispatch the request "+r,"ERR_NOT_SUPPORT")}return n};function Xc(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new zc(null,e)}function Jc(e){Xc(e),e.headers=Bc.from(e.headers),e.data=Mc.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return Yc(e.adapter||Fc.adapter)(e).then((function(t){return Xc(e),t.data=Mc.call(e,e.transformResponse,t),t.headers=Bc.from(t.headers),t}),(function(t){return Nc(t)||(Xc(e),t&&t.response&&(t.response.data=Mc.call(e,e.transformResponse,t.response),t.response.headers=Bc.from(t.response.headers))),Promise.reject(t)}))}const eu=e=>e instanceof Bc?e.toJSON():e;function tu(e,t){t=t||{};const r={};function n(e,t,r){return oc.isPlainObject(e)&&oc.isPlainObject(t)?oc.merge.call({caseless:r},e,t):oc.isPlainObject(t)?oc.merge({},t):oc.isArray(t)?t.slice():t}function o(e,t,r){return oc.isUndefined(t)?oc.isUndefined(e)?void 0:n(void 0,e,r):n(e,t,r)}function i(e,t){if(!oc.isUndefined(t))return n(void 0,t)}function a(e,t){return oc.isUndefined(t)?oc.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function s(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:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t)=>o(eu(e),eu(t),!0)};return oc.forEach(Object.keys(Object.assign({},e,t)),(function(n){const i=c[n]||o,a=i(e[n],t[n],n);oc.isUndefined(a)&&i!==s||(r[n]=a)})),r}const ru="1.6.2",nu={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{nu[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));const ou={};nu.transitional=function(e,t,r){function n(e,t){return"[Axios v1.6.2] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,o,i)=>{if(!1===e)throw new cc(n(o," has been removed"+(t?" in "+t:"")),cc.ERR_DEPRECATED);return t&&!ou[o]&&(ou[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)}};const iu={assertOptions:function(e,t,r){if("object"!=typeof e)throw new cc("options must be an object",cc.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const i=n[o],a=t[i];if(a){const t=e[i],r=void 0===t||a(t,i,e);if(!0!==r)throw new cc("option "+i+" must be "+r,cc.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new cc("Unknown option "+i,cc.ERR_BAD_OPTION)}},validators:nu},au=iu.validators;class su{constructor(e){this.defaults=e,this.interceptors={request:new wc,response:new wc}}request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=tu(this.defaults,t);const{transitional:r,paramsSerializer:n,headers:o}=t;void 0!==r&&iu.assertOptions(r,{silentJSONParsing:au.transitional(au.boolean),forcedJSONParsing:au.transitional(au.boolean),clarifyTimeoutError:au.transitional(au.boolean)},!1),null!=n&&(oc.isFunction(n)?t.paramsSerializer={serialize:n}:iu.assertOptions(n,{encode:au.function,serialize:au.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&oc.merge(o.common,o[t.method]);o&&oc.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=Bc.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const c=[];let u;this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));let l,f=0;if(!s){const e=[Jc.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,c),l=e.length,u=Promise.resolve(t);f<l;)u=u.then(e[f++],e[f++]);return u}l=a.length;let h=t;for(f=0;f<l;){const e=a[f++],t=a[f++];try{h=e(h)}catch(e){t.call(this,e);break}}try{u=Jc.call(this,h)}catch(e){return Promise.reject(e)}for(f=0,l=c.length;f<l;)u=u.then(c[f++],c[f++]);return u}getUri(e){return bc($c((e=tu(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}oc.forEach(["delete","get","head","options"],(function(e){su.prototype[e]=function(t,r){return this.request(tu(r||{},{method:e,url:t,data:(r||{}).data}))}})),oc.forEach(["post","put","patch"],(function(e){function t(t){return function(r,n,o){return this.request(tu(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}su.prototype[e]=t(),su.prototype[e+"Form"]=t(!0)}));const cu=su;class uu{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 zc(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)}static source(){let e;return{token:new uu((function(t){e=t})),cancel:e}}}const lu=uu;const fu={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};Object.entries(fu).forEach((([e,t])=>{fu[t]=e}));const hu=fu;const pu=function e(t){const r=new cu(t),n=Ss(cu.prototype.request,r);return oc.extend(n,cu.prototype,r,{allOwnKeys:!0}),oc.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e(tu(t,r))},n}(Fc);pu.Axios=cu,pu.CanceledError=zc,pu.CancelToken=lu,pu.isCancel=Nc,pu.VERSION=ru,pu.toFormData=pc,pu.AxiosError=cc,pu.Cancel=pu.CanceledError,pu.all=function(e){return Promise.all(e)},pu.spread=function(e){return function(t){return e.apply(null,t)}},pu.isAxiosError=function(e){return oc.isObject(e)&&!0===e.isAxiosError},pu.mergeConfig=tu,pu.AxiosHeaders=Bc,pu.formToJSON=e=>Cc(oc.isHTMLForm(e)?new FormData(e):e),pu.getAdapter=Yc,pu.HttpStatusCode=hu,pu.default=pu;const du=pu,{Axios:mu,AxiosError:vu,CanceledError:gu,isCancel:yu,CancelToken:bu,VERSION:wu,all:xu,Cancel:Eu,isAxiosError:ku,spread:Su,toFormData:Du,AxiosHeaders:Pu,HttpStatusCode:Au,formToJSON:Cu,getAdapter:Ou,mergeConfig:Fu}=du;function ju(e){return e}function Tu(e){const t=[];if(e){if(Array.isArray(e))return e;if("object"==typeof e)for(const r of Object.keys(e)){const n=Number.parseInt(r,10);Number.isNaN(n)||(t[n]=e[r])}return t}}function _u(e){const 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.includes(e.config.method.toUpperCase()))return!1;if(e.response?.status){let r=!1;for(const[n,o]of t.statusCodesToRetry){const{status:t}=e.response;if(t>=n&&t<=o){r=!0;break}}if(!r)return!1}return t.currentRetryAttempt=t.currentRetryAttempt||0,!(t.currentRetryAttempt>=t.retry)}var Ru=r(1883),Iu=r.n(Ru),Lu=function(){function e(e,t,r,n){this.id=void 0,this.sha=void 0,this.summary=void 0,this._config=void 0,this.id=e,this.sha=n,this.summary=r,this.config=t}return c()(e,[{key:"config",get:function(){return this._config},set:function(e){e.setKey(this.id+":config"),this._config=e}}]),e}();Lu.style=".topwrite/style.css",Lu.logo="logo.png",Lu.readme="README.md";function Bu(e){return"string"==typeof e&&e.startsWith("@encrypted:")}function Mu(e,t){return I().encrypt(e,t).toString()}function Nu(e,t){try{return I().decrypt(e,t).toString(B())}catch(e){return""}}var Hu=Object.freeze({__proto__:null,decrypt:Nu,encrypt:Mu});function zu(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return Uu(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Uu(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Uu(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var $u=function(){function e(e,t,r,n){this.key=void 0,this.values=void 0,this.presetValues=void 0,this.schema=void 0,this.values=C()(e,n),this.presetValues=n,this.schema=t,this.key=r}var t=e.prototype;return t.setKey=function(e){this.key=e},t.getValues=function(){return this.values},t.setValues=function(e){var t=new(T())({removeAdditional:!0,useDefaults:!0,allErrors:!0,unknownFormats:"ignore"}).compile(this.schema);if(!t(e=h()(e)))for(var r,n=zu(t.errors);!(r=n()).done;){var o=r.value;e=w()(e,o.dataPath.substr(1).split("/"))}this.values=e},t.getPresetValues=function(){return this.presetValues},t.getValue=function(e,t){return d()(this.values,e,t)},t.setValue=function(e,t){return E()(this.values,e,t)},t.toObject=function(){var e=this,t=h()(this.values);this.presetValues&&(t=w()(t,F()(this.presetValues)));var r=new(T())({removeAdditional:!0,useDefaults:!0,allErrors:!0,unknownFormats:["color"]});return r.removeKeyword("default"),r.addKeyword("default",{validate:function(e,t,r,n,o,i,a){return y()(e,t)&&(delete o[i],v()(o)&&function(e,t){for(var r=[],n=e,o=0;o<t.length-1;o++)r.push(n),n=n[t[o]];for(var i=t.length-2;i>=0;i--)v()(r[i][t[i]])&&delete r[i][t[i]]}(a,S()(n.substring(1)))),!0},modifying:!0,errors:!1}),r.addKeyword("encrypt",{validate:function(t,r,n,o,i,a){return e.key&&t&&!Bu(r)&&i&&a&&E()(i,a,"@encrypted:"+Mu(r,e.key)),!0},modifying:!0,errors:!1}),r.compile(this.schema)(t),t},e.createFromObject=function(e,t,r,n){var o=new(T())({removeAdditional:!0,useDefaults:!0,allErrors:!0,unknownFormats:["color"]});o.addKeyword("encrypt",{validate:function(e,t,n,o,i,a){return r&&e&&Bu(t)&&i&&a&&E()(i,a,Nu(t.substring(11),r)),!0},modifying:!0,errors:!1});var i=o.compile(t);if(!i(e))for(var a,s=zu(i.errors);!(a=s()).done;){var c=a.value;e=w()(e,c.dataPath.substring(1).split("/"))}return new this(e,t,r,n)},e}(),qu=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return(t=e.call.apply(e,[this].concat(n))||this).pluginsConfig={},t.presetPlugins={},t}l()(t,e);var r=t.prototype;return r.setPresetPlugins=function(e){this.presetPlugins=e},r.getPresetPluginConfig=function(e){return this.presetPlugins[e]},r.getPlugins=function(){return Array.from(new Set([].concat(this.getValue("plugins"),Object.keys(this.presetPlugins))))},r.getPluginConfig=function(e,t){if(!this.pluginsConfig[e]){var r=this.getValue(["pluginsConfig",e],{});this.pluginsConfig[e]=$u.createFromObject(h()(r),t,this.key+":"+e,this.presetPlugins[e])}return this.pluginsConfig[e]},r.setPluginConfig=function(e,t){var r=t.toObject();v()(r)?P()(this.values,["pluginsConfig",e]):this.setValue(["pluginsConfig",e],r),delete this.pluginsConfig[e]},t.createFromObject=function(r){return e.createFromObject.call(this,r,t.schema)},t}($u);qu.file="book.json",qu.schema={title:"TopWrite Configuration",type:"object",properties:{root:{type:"string",title:"Path from the root folder containing the book's content"},title:{type:"string",title:"Title of the book"},author:{type:"object",title:"attr of the author",properties:{name:{type:"string"},email:{type:"string"},home:{type:"string"}}},theme:{type:"string",title:"Name of the theme",default:"default"},themeConfig:{type:"object",title:"Configuration for theme",properties:{defaultMode:{type:"string",title:"Default mode",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:{}}},required:[]};var Vu=function(){function e(e){void 0===e&&(e=[]),this.data=void 0,this.data="string"==typeof e?e.split(".").map((function(e){return parseInt(e,10)})):e}var t=e.prototype;return t.getRoot=function(){return new e(this.data.slice(0,1))},t.getParent=function(){return new e(this.data.slice(0,-1))},t.createChild=function(t){return new e(this.data.concat(t))},t.isDescendant=function(e){return e.toString().startsWith(this.toString()+".")},t.getNext=function(){var t=[].concat(this.data);return t[t.length-1]++,new e(t)},t.getDepth=function(){return this.data.length-1},t.eq=function(e){return this.toString()===e.toString()},t.getLeafIndex=function(){return this.data[this.data.length-1]-1},t.toString=function(e){return e?this.data.slice(e.data.length).join("."):this.data.join(".")},e.compare=function(e,t){for(var r=0;r<Math.max(e.data.length,t.data.length);r++){var n=e.data[r]||0,o=t.data[r]||0;if(n>o)return 1;if(o>n)return-1}return 0},e}();function Gu(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Wu=function(){function e(e){var t=e.title,r=e.ref,n=void 0===r?"":r,o=e.path,i=e.children,a=void 0===i?[]:i,s=e.metadata;this.level=void 0,this.title=void 0,this.ref=void 0,this.path=void 0,this.children=void 0,this.metadata=void 0,this.hasPath=!1,this.title=t,this.ref=n,o?(this.hasPath=!0,this.path=o):this.path=n?H.posix.format(N()({},H.posix.parse(n),{ext:".html",base:""})):"",this.children=a,this.level=new Vu,this.metadata=s}var t=e.prototype;return t.getMetadata=function(e,t){return this.metadata?d()(this.metadata,e,t):t},t.getLevel=function(){return this.level},t.getTitle=function(){return this.title},t.getRef=function(){return this.ref},t.getPath=function(){return this.path},t.getArticles=function(){return this.children},t.getDescendants=function(){var t=[];return e.findArticle(this,(function(e){return t.push(e),!1})),t},t.getDepth=function(){return this.getLevel().getDepth()},t.createChildLevel=function(){return this.level.createChild(this.children.length+1)},t.indexLevels=function(e){e?this.level=e:e=this.level;for(var t,r=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return Gu(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Gu(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(this.children.entries());!(t=r()).done;){var n=t.value,o=n[0];n[1].indexLevels(e.createChild(o+1))}},t.toObject=function(){var 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:v()(e)?void 0:e}},e.findArticle=function(t,r){return t.getArticles().reduce((function(t,n){return t||(r(n)?n:e.findArticle(n,r))}),void 0)},e.createFromObject=function(t){var r,n=null==(r=t.children)?void 0:r.filter((function(e){return!!e.title})).map((function(t){return e.createFromObject(t)}));return new e(N()({},t,{children:n}))},e}();function Ku(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Qu=function(){function e(e,t,r){void 0===t&&(t=[]),this.level=void 0,this.title=void 0,this.articles=void 0,this.metadata=void 0,this.level=new Vu,this.title=e,this.articles=t,this.metadata=r}var t=e.prototype;return t.getMetadata=function(e,t){return this.metadata?d()(this.metadata,e,t):t},t.getLevel=function(){return this.level},t.getTitle=function(){return this.title},t.getArticles=function(){return this.articles},t.getFirstArticle=function(){return Wu.findArticle(this,(function(){return!0}))},t.getDescendants=function(){var e=[];return Wu.findArticle(this,(function(t){return e.push(t),!1})),e},t.createChildLevel=function(){return this.level.createChild(this.articles.length+1)},t.indexLevels=function(e){e?this.level=e:e=this.level;for(var t,r=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return Ku(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ku(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(this.articles.entries());!(t=r()).done;){var n=t.value,o=n[0];n[1].indexLevels(e.createChild(o+1))}},t.toObject=function(){var e=this.articles.map((function(e){return e.toObject()}));return{title:this.title,metadata:this.metadata,articles:v()(e)?void 0:e}},e.createFromObject=function(t){var r,n=null==(r=t.articles)?void 0:r.filter((function(e){return!!e.title})).map((function(e){return Wu.createFromObject(e)}));return new e(t.title,n,t.metadata)},e}(),Zu={name:"labelEnd",tokenize:function(e,t,r){for(var n,o,i=this,a=i.events.length;a--;)if((i.events[a][1].type===Wi.labelImage||i.events[a][1].type===Wi.labelLink)&&!i.events[a][1]._balanced){n=i.events[a][1];break}return function(t){return Vi.rightSquareBracket,n?n._inactive?l(t):(o=i.parser.defined.includes(br(i.sliceSerialize({start:n.end,end:i.now()}))),e.enter(Wi.labelEnd),e.enter(Wi.labelMarker),e.consume(t),e.exit(Wi.labelMarker),e.exit(Wi.labelEnd),s):r(t)};function s(t){return t===Vi.leftParenthesis?e.attempt(Yu,u,o?u:l)(t):t===Vi.leftSquareBracket?e.attempt(Xu,u,o?c:l)(t):o?u(t):l(t)}function c(t){return e.attempt(Ju,u,l)(t)}function u(e){return t(e)}function l(e){return n._balanced=!0,r(e)}},resolveTo:Mr.resolveTo,resolveAll:Mr.resolveAll},Yu={tokenize:function(e,t,r){return function(t){return Vi.leftParenthesis,e.enter(Wi.resource),e.enter(Wi.resourceMarker),e.consume(t),e.exit(Wi.resourceMarker),n};function n(t){return $t(t)?yr(e,o)(t):o(t)}function o(t){return t===Vi.rightParenthesis?d(t):mr(e,i,a,Wi.resourceDestination,Wi.resourceDestinationLiteral,Wi.resourceDestinationLiteralMarker,Wi.resourceDestinationRaw,Wi.resourceDestinationString,Gi.linkResourceDestinationBalanceMax)(t)}function i(t){return $t(t)?yr(e,s)(t):d(t)}function a(e){return r(e)}function s(t){return t===Vi.quotationMark||t===Vi.apostrophe||t===Vi.leftParenthesis?gr(e,c,r,Wi.resourceTitle,Wi.resourceTitleMarker,Wi.resourceTitleString)(t):u(t)}function c(t){return $t(t)?yr(e,d)(t):u(t)}function u(t){return t===Vi.equalsTo?(e.enter("resourceSize"),e.enter("resourceSizeMarker"),e.consume(t),e.exit("resourceSizeMarker"),l):d(t)}function l(t){return t===Vi.lowercaseX?(e.enter("resourceSizeXMarker"),e.consume(t),e.exit("resourceSizeXMarker"),h):t===Vi.rightParenthesis||$t(t)?(e.exit("resourceSize"),yr(e,d)(t)):(e.enter("resourceSizeWidth"),e.enter(Wi.chunkString,{contentType:"string"}),f(t))}function f(t){return t===Vi.rightParenthesis||$t(t)?(e.exit(Wi.chunkString),e.exit("resourceSizeWidth"),e.exit("resourceSize"),yr(e,d)(t)):t===Vi.lowercaseX?(e.exit(Wi.chunkString),e.exit("resourceSizeWidth"),e.enter("resourceSizeMarker"),e.consume(t),e.exit("resourceSizeMarker"),h):(e.consume(t),f)}function h(t){return t===Vi.rightParenthesis||$t(t)?(e.exit("resourceSize"),yr(e,d)(t)):(e.enter("resourceSizeHeight"),e.enter(Wi.chunkString,{contentType:"string"}),p(t))}function p(t){return t===Vi.rightParenthesis||$t(t)?(e.exit(Wi.chunkString),e.exit("resourceSizeHeight"),e.exit("resourceSize"),yr(e,d)(t)):(e.consume(t),p)}function d(n){return n===Vi.rightParenthesis?(e.enter(Wi.resourceMarker),e.consume(n),e.exit(Wi.resourceMarker),e.exit(Wi.resource),t):r(n)}}},Xu={tokenize:function(e,t,r){var n=this;return function(t){return Vi.leftSquareBracket,vr.call(n,e,o,i,Wi.reference,Wi.referenceMarker,Wi.referenceString)(t)};function o(e){return n.parser.defined.includes(br(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?t(e):r(e)}function i(e){return r(e)}}},Ju={tokenize:function(e,t,r){return function(t){return Vi.leftSquareBracket,e.enter(Wi.reference),e.enter(Wi.referenceMarker),e.consume(t),e.exit(Wi.referenceMarker),n};function n(n){return n===Vi.rightSquareBracket?(e.enter(Wi.referenceMarker),e.consume(n),e.exit(Wi.referenceMarker),e.exit(Wi.reference),t):r(n)}}};function el(e){var t=e.micromark,r=e.toMarkdown,o=e.fromMarkdown,a=e.toHast,s=e.handler;return function(){var e=this.data(),c=e.micromarkExtensions||(e.micromarkExtensions=[]),u=e.toMarkdownExtensions||(e.toMarkdownExtensions=[]),l=e.fromMarkdownExtensions||(e.fromMarkdownExtensions=[]),f=e.toHastExtensions||(e.toHastExtensions=[]);if(t&&c.push(t(N()({},i,n,{assert:Ee,factorySpace:Kt,factoryWhitespace:yr}))),r&&u.push(r()),o&&l.push(o()),a&&f.push(a()),s)return s()}}var tl=function(e,t,r,n){var o=Jn.image(e,t,r,n);return e.width||e.height?o.replace(/\)$/," ="+(e.width||"")+(e.height?"x"+e.height:"")+")"):o};tl.peek=Jn.image.peek;var rl=el({micromark:function(){var e;return{text:(e={},e[Vi.rightSquareBracket]=Zu,e)}},fromMarkdown:function(){return{enter:{resourceSizeWidth:function(){this.buffer()},resourceSizeHeight:function(){this.buffer()}},exit:{resourceSizeWidth:function(){var e=this.resume();this.stack[this.stack.length-1].width=e},resourceSizeHeight:function(){var e=this.resume();this.stack[this.stack.length-1].height=e}}}},toMarkdown:function(){return{handlers:{image:tl}}},toHast:function(){return{image:function(e,t){var r=ia.image(e,t);if(r&&!Array.isArray(r)&&"element"===r.type)return r.properties.width=t.width,r.properties.height=t.height,r}}}}),nl=Jn.paragraph,ol=Jn.heading,il=function(e){var t;switch(e){case"right":t="--: ";break;case"center":t=":-: ";break;default:t=""}return t},al=el({toMarkdown:function(){return{handlers:{paragraph:function(e,t,r,n){var o=nl(e,t,r,n);return il(e.align)+o},heading:function(e,t,r,n){return ol(e,t,r,n).replace(/^#+\s/,"$&"+il(e.align))}}}},handler:function(){return function(e){Hn(e,(function(e,t,r){if(function(e){return"paragraph"===e.type||"heading"===e.type}(e)){var n=Ve("text",e);if(n){var o=n.value;o.startsWith("--: ")?e.align="right":o.startsWith(":-: ")?e.align="center":o.startsWith(":-- ")&&(e.align="left"),e.align&&(n.value=o.substr(4),r&&"listItem"===r.type?r.data=N()({},r.data,{hProperties:{className:"align-"+e.align}}):e.data=N()({},e.data,{hProperties:{className:"align-"+e.align}}))}}}))}}}),sl={tokenize:function(e,t,r){function n(t){return t===Vi.rightSquareBracket?r(t):(e.enter("blockQuoteType"),e.enter(Wi.chunkString,{contentType:"string"}),o(t))}function o(t){return t===Vi.rightSquareBracket?(e.exit(Wi.chunkString),e.exit("blockQuoteType"),e.enter("blockQuoteTypeMarker"),e.consume(t),e.exit("blockQuoteTypeMarker"),i):$t(t)||!It(t)?r(t):(e.consume(t),o)}function i(e){return e===Vi.leftParenthesis?r(e):t(e)}return function(t){return e.enter("blockQuoteTypeMarker"),e.consume(t),e.exit("blockQuoteTypeMarker"),n}},partial:!0},cl={name:"blockQuote",tokenize:function(e,t,r){var n=this;return function(t){if(t===Vi.greaterThan){var i=n.containerState;return i.open||(e.enter(Wi.blockQuote,{_container:!0}),i.open=!0),e.enter(Wi.blockQuotePrefix),e.enter(Wi.blockQuoteMarker),e.consume(t),e.exit(Wi.blockQuoteMarker),Kt(e,o,Wi.whitespace)}return r(t)};function o(t){return t===Vi.leftSquareBracket?e.attempt(sl,i,i)(t):i(t)}function i(r){return qt(r)?(e.enter(Wi.blockQuotePrefixWhitespace),e.consume(r),e.exit(Wi.blockQuotePrefixWhitespace),e.exit(Wi.blockQuotePrefix),t):(e.exit(Wi.blockQuotePrefix),t(r))}},continuation:{tokenize:function(e,t,r){var n=this;return function(t){return qt(t)?(n.parser.constructs.disable.null,Kt(e,o,Wi.linePrefix,n.parser.constructs.disable.null.includes("codeIndented")?void 0:Gi.tabSize)(t)):o(t)};function o(n){return e.attempt(cl,t,r)(n)}}},exit:dr.exit},ul=Jn.blockquote,ll=el({micromark:function(){var e;return{document:(e={},e[Vi.greaterThan]=cl,e)}},toMarkdown:function(){return{handlers:{blockquote:function(e,t,r,n){var o=ul(e,t,r,n);return e.variant?o.replace(/(^|\s+)>\s/,"$1> ["+e.variant+"] "):o}}}},fromMarkdown:function(){return{enter:{blockQuoteType:function(){this.buffer()}},exit:{blockQuoteType:function(){var e=this.resume();this.stack[this.stack.length-1].variant=e}}}},handler:function(){return function(e){Hn(e,"blockquote",(function(e){e.variant&&(e.data=N()({},e.data,{hProperties:{className:e.variant}}))}))}}}),fl="blankLine",hl="blankLineSequence",pl={name:"blankLine",tokenize:function(e,t,r){var n,o=function t(r){return r===n?(e.consume(r),t):(e.exit(hl),i(r))},i=function i(a){return a===n?(e.enter(hl),o(a)):qt(a)?Kt(e,i,Wi.whitespace)(a):a===Vi.eof||Ut(a)?(e.exit(fl),t(a)):r(a)};return function(t){return Vi.caret,e.enter(fl),n=t,i(t)}}},dl=el({toHast:function(){return{blankLine:function(){return{type:"element",tagName:"p",properties:{},children:[{type:"element",tagName:"br",properties:{},children:[]}]}}}},micromark:function(){var e;return{flow:(e={},e[Vi.caret]=pl,e)}},toMarkdown:function(){return{handlers:{blankLine:function(){return"^"}}}},fromMarkdown:function(){return{enter:{blankLine:function(e){this.enter({type:"blankLine"},e)}},exit:{blankLine:function(e){this.exit(e)}}}}}),ml=function(e,t){void 0===t&&(t="text");var r="";return Hn(e,t,(function(e){r+=e.value})),r},vl=/^\[toc(?:=(\d)(?:,(\d))?)?]$/im,gl=el({handler:function(){return function(e){Hn(e,(function(e,t,r){if(r&&"root"===r.type&&void 0!==t&&ml(e).match(vl))return r.children.splice(t,1),[Mn,t]}))}}}),yl=el({toHast:function(){return{xBlock:function(e,t){return{type:"element",tagName:"x-block",properties:{name:t.name,value:t.value,parameter:t.parameter},children:[]}},xInline:function(e,t){return{type:"element",tagName:"x-inline",properties:{name:t.name,value:t.value},children:[]}}}},handler:function(){return function(e){Hn(e,(function(e,t,r){if(void 0!==t&&void 0!==r)if(function(e){return"code"===e.type}(e)&&e.lang){var n=/\[([\w-_]+)(:([\w-_]+))?]/g.exec(e.lang);if(n){var o={type:"xBlock",name:n[1],parameter:n[3]||"",value:e.value,position:e.position};r.children.splice(t,1,o)}}else if(function(e){return"inlineCode"===e.type}(e)){var i=/^([^\s]+)\s(.*?)\s\1$/.exec(e.value);if(i){var a={type:"xInline",name:i[1],value:i[2],position:e.position};r.children.splice(t,1,a)}}}))}}}),bl=mt().use((function(e){const t=this;t.parser=function(r){return pn(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}})).use((function(e){const t=this;t.compiler=function(r){return fo(r,{...t.data("settings"),...e,extensions:t.data("toMarkdownExtensions")||[]})}}),{bullet:"*",listItemIndent:"one",fences:!0,join:[function(e,t){if("blankLine"===e.type&&e.type===t.type)return 0}]}).use((function(){const e=this.data(),t=e.micromarkExtensions||(e.micromarkExtensions=[]),r=e.fromMarkdownExtensions||(e.fromMarkdownExtensions=[]),n=e.toMarkdownExtensions||(e.toMarkdownExtensions=[]);t.push({text:{58:us},flow:{58:[rs,as]}}),r.push({canContainEols:["textDirective"],enter:{directiveContainer:Ba,directiveContainerAttributes:qa,directiveContainerLabel:Ua,directiveLeaf:Ma,directiveLeafAttributes:qa,directiveText:Na,directiveTextAttributes:qa},exit:{directiveContainer:Za,directiveContainerAttributeClassValue:Ga,directiveContainerAttributeIdValue:Va,directiveContainerAttributeName:Ka,directiveContainerAttributeValue:Wa,directiveContainerAttributes:Qa,directiveContainerLabel:$a,directiveContainerName:za,directiveLeaf:Za,directiveLeafAttributeClassValue:Ga,directiveLeafAttributeIdValue:Va,directiveLeafAttributeName:Ka,directiveLeafAttributeValue:Wa,directiveLeafAttributes:Qa,directiveLeafName:za,directiveText:Za,directiveTextAttributeClassValue:Ga,directiveTextAttributeIdValue:Va,directiveTextAttributeName:Ka,directiveTextAttributeValue:Wa,directiveTextAttributes:Qa,directiveTextName:za}}),n.push({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:Ya,leafDirective:Ya,textDirective:Ya}})})).use((function(e){const t=e||"yaml",r=this.data(),n=r.micromarkExtensions||(r.micromarkExtensions=[]),o=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),i=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);n.push(function(e){const t=ha(e),r={};let n=-1;for(;++n<t.length;){const e=t[n],o=xa(e,"open").charCodeAt(0),i=wa(e),a=r[o];Array.isArray(a)?a.push(i):r[o]=[i]}return{flow:r}}(t)),o.push(function(e){const t=ha(e),r={},n={};let o=-1;for(;++o<t.length;){const e=t[o];r[e.type]=da(e),n[e.type]=ma,n[e.type+"Value"]=va}return{enter:r,exit:n}}(t)),i.push(function(e){const t=[],r={},n=ha(e);let o=-1;for(;++o<n.length;){const e=n[o];r[e.type]=ga(e);const i=ya(e,"open");t.push({atBreak:!0,character:i.charAt(0),after:wo(i.charAt(1))})}return{unsafe:t,handlers:r}}(t))}),["yaml"]).use((function(e){const t=e||$i,r=this.data(),n=r.micromarkExtensions||(r.micromarkExtensions=[]),o=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),i=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);n.push(function(e){return jt([{text:bi},{document:{91:{tokenize:Fi,continuation:{tokenize:ji},exit:Ti}},text:{91:{tokenize:Oi},93:{add:"after",tokenize:Ai,resolveTo:Ci}}},_i(e),{flow:{null:{tokenize:Li,resolveAll:Bi}}},{text:{91:zi}}])}(t)),o.push([{transforms:[To],enter:{literalAutolink:Po,literalAutolinkEmail:Ao,literalAutolinkHttp:Ao,literalAutolinkWww:Ao},exit:{literalAutolink:jo,literalAutolinkEmail:Fo,literalAutolinkHttp:Co,literalAutolinkWww:Oo}},{enter:{gfmFootnoteDefinition:Lo,gfmFootnoteDefinitionLabelString:Bo,gfmFootnoteCall:Ho,gfmFootnoteCallString:zo},exit:{gfmFootnoteDefinition:No,gfmFootnoteDefinitionLabelString:Mo,gfmFootnoteCall:$o,gfmFootnoteCallString:Uo}},{canContainEols:["delete"],enter:{strikethrough:Ko},exit:{strikethrough:Qo}},{enter:{table:ei,tableData:oi,tableHeader:oi,tableRow:ri},exit:{codeText:ii,table:ti,tableData:ni,tableHeader:ni,tableRow:ni}},{exit:{taskListCheckValueChecked:ci,taskListCheckValueUnchecked:ci,paragraph:ui}}]),i.push(function(e){return{extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:So,notInConstruct:Do},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:So,notInConstruct:Do},{character:":",before:"[ps]",after:"\\/",inConstruct:So,notInConstruct:Do}]},{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:Vo,footnoteReference:qo}},{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Wo}],handlers:{delete:Zo}},si(e),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:li}}]}}(t))})).use((function(){return function(e){!function(e){xo(e,[/\r?\n|\r/g,qi])}(e)}})).use((function(){const e=this.data();function t(t,r){(e[t]||(e[t]=[])).push(r)}return t("micromarkExtensions",function(){const e={text:{[gs.leftCurlyBrace]:{name:"headingIdMaybeStart",tokenize:(e,t,r)=>function(n){return e.attempt({tokenize(e,t,r){return function(t){if(t!==gs.leftCurlyBrace)throw new Error(`Unexpected code ${t}`);return e.enter("id"),e.enter("idMarker"),e.consume(t),n};function n(t){return t!==gs.numberSign?r(t):(e.consume(t),e.exit("idMarker"),e.enter("idString"),e.enter("chunkString",{contentType:"string"}),o)}function o(n){return[gs.carriageReturn,gs.lineFeed,gs.carriageReturnLineFeed,null,gs.backslash,gs.leftCurlyBrace].includes(n)?r(n):n===gs.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",{enter:{idString(e){this.enter({type:"idString",value:null},e),this.buffer()}},exit:{idString(e){const t=this.resume();this.exit(e).value=t}}}),function(e){vs(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}`)})),vs(e,"heading",(e=>{const t=e.children.filter((e=>"idString"===e.type));if(0==t.length)return;if(t.length>1)throw new Error(`Found ${t.length} ids under heading ${e}.`);const r=t[0];if(r.value&&r.value.length>0){e.data||(e.data={}),e.data.hProperties||(e.data.hProperties={}),e.data.id=e.data.hProperties.id=r.value,r.value="";const t=e.children.indexOf(r);if(t>=1){const r=e.children[t-1];"text"===r.type&&(r.value=r.value.trimEnd())}e.children.splice(t,1)}}))}})).use(yl).use(rl).use(al).use(ll).use(dl).use(gl);function wl(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return xl(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?xl(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function xl(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function El(e){for(var t,r=[],n=wl(e.children);!(t=n()).done;){var o=t.value,i=o.children,a=Ve("paragraph:first-child>*",o);if(a){var s=ml(a);if(s){var c="";a.url&&(c=decodeURI(a.url)).match(/[\\:*?"<>|]/)&&(c="");var u={title:s,ref:c};if(i.length>1){var l=i[i.length-1];Fn(l,"list")&&(u.children=El(l))}r.push(u)}}}return r}var kl=bl();function Sl(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Dl=function(){function e(e,t){void 0===e&&(e=[]),void 0===t&&(t=!1),this.parts=void 0,this.json=void 0,this.parts=e,this.json=t,this.indexLevels()}var t=e.prototype;return t.hasMetadata=function(){var e=!1;return this.getArticle((function(t){return!!e||!v()(t.metadata)&&(e=!0,!0)}),(function(t){return v()(t.metadata)||(e=!0),!0})),e},t.isJson=function(){return this.json},t.getParts=function(){return this.parts},t.getPart=function(e){return this.parts[e]},t.getLastPart=function(){return this.parts[this.parts.length-1]},t.getArticles=function(){var e=[];return this.getArticle((function(t){return e.push(t),!1})),e},t.getArticle=function(e,t){return this.parts.reduce((function(r,n){return r||(!t||t(n)?Wu.findArticle(n,e):void 0)}),void 0)},t.getArticlePart=function(e){var t=e.getLevel().getRoot();return this.getByLevel(t)},t.getFirstPath=function(){var e=this.getArticle((function(e){return!!e.getPath()}));if(e)return e.getPath()},t.getByLevel=function(e){var t=function(t){return t.getLevel().eq(e)};return this.parts.reduce((function(e,r){return e||(t(r)?r:Wu.findArticle(r,t))}),void 0)},t.getFirstArticle=function(){return this.getArticle((function(){return!0}))},t.getNextArticle=function(e){var t=e instanceof Wu?e.getLevel():e,r=!1;return this.getArticle((function(e){return!!r||(r=e.getLevel()==t,!1)}))},t.getPrevArticle=function(e){var t=e instanceof Wu?e.getLevel():e,r=void 0;return this.getArticle((function(e){return e.getLevel()==t||(r=e,!1)})),r},t.getParent=function(e){var t=(e instanceof Wu?e.getLevel():e).getParent();if(t)return this.getByLevel(t)},t.indexLevels=function(){for(var e,t=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return Sl(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Sl(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(this.parts.entries());!(e=t()).done;){var r=e.value,n=r[0],o=r[1],i=new Vu(String(n+1));o.indexLevels(i)}},t.isSinglePart=function(){return 1===this.parts.length&&!this.parts[0].title},t.isEmpty=function(){return this.isSinglePart()?0===this.parts[0].articles.length:0===this.parts.length},t.toObject=function(){return this.parts.map((function(e){return e.toObject()}))},e.createFromObject=function(t){return new e(t.map((function(e){return Qu.createFromObject(e)})),!0)},e.createFromText=function(t){return new e(function(e){for(var t,r,n=[],o=wl(kl.parse(e).children);!(r=o()).done;){var i=r.value;if(Fn(i,"heading")&&[2,3].includes(i.depth)&&(t&&n.push(t),t={title:ml(i).trim()}),Fn(i,"list")){var a=El(i);t?t.articles=(t.articles||[]).concat(a):t={title:"",articles:a}}}return t?n.push(t):n.push({title:""}),n}(t).map((function(e){return Qu.createFromObject(e)})))},e.create=function(t){return"object"==typeof t?e.createFromObject(t):e.createFromText(t)},e}();Dl.file={json:"SUMMARY.json",markdown:"SUMMARY.md"};var Pl,Al=function(){function e(e){var t=e.path,r=e.content,n=e.meta,o=void 0===n?{}:n;this.path=void 0,this.content=void 0,this.meta=void 0,this.path=t,this.content=r,this.meta=o}var t=e.prototype;return t.getMeta=function(e,t){return d()(this.meta,e,t)},t.relative=function(e){var t="/"===e.slice(-1);return(e=z().posix.relative(z().posix.dirname(this.path),e)||".")+(t?"/":"")},t.resolve=function(e){return z().posix.join(z().posix.dirname(this.path),e)},e}(),Cl=["page"],Ol=function(){function e(e){var t=e.host,r=e.preset;this.host=void 0,this.preset=void 0,this.host=t,this.preset=r}var t=e.prototype;return t.getBuyUrl=function(e,t){return this.host+"/api/buy?book="+e.id+"&plugin="+t.name},t.bought=function(){var e=xs()(ks().mark((function e(t,r){return ks().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,du.get(this.host+"/api/bought?book="+t.id+"&plugin="+r.name);case 3:return e.abrupt("return",!0);case 6:return e.prev=6,e.t0=e.catch(0),e.abrupt("return",!1);case 9:case"end":return e.stop()}}),e,this,[[0,6]])})));return function(t,r){return e.apply(this,arguments)}}(),t.trial=function(){var e=xs()(ks().mark((function e(t,r){var n,o;return ks().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,du.get(this.host+"/api/trial?book="+t.id+"&plugin="+r.name);case 3:return n=e.sent,o=n.data,e.abrupt("return",o);case 8:return e.prev=8,e.t0=e.catch(0),e.abrupt("return",!1);case 11:case"end":return e.stop()}}),e,this,[[0,8]])})));return function(t,r){return e.apply(this,arguments)}}(),t.queryPlugins=function(){var e=xs()(ks().mark((function e(t){var r,n,o,i,a;return ks().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.page,n=void 0===r?1:r,o=bs()(t,Cl),e.next=3,du.get(this.host+"/api/query",{params:N()({},o,{page:n})});case 3:return i=e.sent,a=i.data,e.abrupt("return",a);case 6:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),t.getInstalled=function(){var e=xs()(ks().mark((function e(t){var r,n,o,i,a,s=this;return ks().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.config,n=r.getValue("theme"),o=["theme-"+n].concat(r.getValue("plugins")),this.preset&&(o.push.apply(o,Object.keys(this.preset)),r.setPresetPlugins(this.preset)),e.next=6,du.get(this.host+"/api/installed",{params:{book:t.id,plugins:o.join(",")}}).catch((function(e){throw new Error("Plugins Check Failed:"+e.message)}));case 6:return i=e.sent,a=i.data,e.abrupt("return",a.flatMap((function(e){var t,r;return!e.builtin||null!=(t=s.preset)&&t[e.name]?(e.preset=!(null==(r=s.preset)||!r[e.name]),[e]):[]})));case 9:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),e}();function Fl(e){return Pl=new Ol(e)}var jl,Tl=function(){function e(e,t,r){this.flatColors=["#1abc9c","#2ecc71","#3498db","#9b59b6","#34495e","#16a085","#27ae60","#2980b9","#8e44ad","#2c3e50","#f1c40f","#e67e22","#e74c3c","#f39c12","#d35400","#c0392b"],this.letter=void 0,this.size=void 0,this.canvas=void 0,this.letter=e,this.size=t,this.canvas=r,this.generate()}var t=e.prototype;return t.toDataUrl=function(){return this.canvas.toDataURL()},t.generate=function(){var e=this.canvas.getContext("2d");if(!e)throw new Error("getContext failed");var 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){var r=this.letter[0].toUpperCase();e.fillStyle=this.flatColors[r.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()},e.create=function(t,r,n){return n||(n=function(e){var t=window.document.createElement("canvas");return t.width=e,t.height=e,t}(r)),new e(t,r,n)},e}(),_l=/^(?:\w+:)?\/\/(\S+)$/,Rl=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,Il=/^[^\s\.]+\.\S{2,}$/;function Ll(e){var t=e.match(_l);if(!t)return!1;var r=t[1];return!!r&&(Rl.test(r)||Il.test(r))}(jl=jl||du).interceptors.response.use(ju,(async e=>async function(e,t){if(yu(t))throw t;const r=function(e){if(e?.config)return e.config.raxConfig}(t)||{};r.currentRetryAttempt=r.currentRetryAttempt||0,r.retry="number"==typeof r.retry?r.retry:3,r.retryDelay="number"==typeof r.retryDelay?r.retryDelay:100,r.instance=r.instance||e,r.backoffType=r.backoffType||"exponential",r.httpMethodsToRetry=Tu(r.httpMethodsToRetry)||["GET","HEAD","PUT","OPTIONS","DELETE"],r.noResponseRetries="number"==typeof r.noResponseRetries?r.noResponseRetries:2,r.checkRetryAfter="boolean"!=typeof r.checkRetryAfter||r.checkRetryAfter,r.maxRetryAfter="number"==typeof r.maxRetryAfter?r.maxRetryAfter:3e5;const n=[[100,199],[429,429],[500,599]];r.statusCodesToRetry=Tu(r.statusCodesToRetry)||n;const o=t;if(o.config=o.config||{},o.config.raxConfig={...r},!(r.shouldRetry||_u)(o))throw o;const i=new Promise(((e,t)=>{let n=0;if(r.checkRetryAfter&&o.response?.headers["retry-after"]){const e=function(e){const t=Number(e);if(!Number.isNaN(t))return 1e3*t;const r=Date.parse(e);return Number.isNaN(r)?void 0:r-Date.now()}(o.response.headers["retry-after"]);if(!(e&&e>0&&e<=r.maxRetryAfter))return void t(o);n=e}o.config.raxConfig.currentRetryAttempt+=1;const i=o.config.raxConfig.currentRetryAttempt;0===n&&(n="linear"===r.backoffType?1e3*i:"static"===r.backoffType?r.retryDelay:(2**i-1)/2*1e3,"number"==typeof r.maxRetryDelay&&(n=Math.min(n,r.maxRetryDelay))),setTimeout(e,n)}));r.onRetryAttempt&&r.onRetryAttempt(o);const a=Promise.resolve();return Promise.resolve().then((async()=>i)).then((async()=>a)).then((async()=>r.instance.request(o.config)))}(jl,e))),du.defaults.raxConfig={retryDelay:2e3,backoffType:"static",shouldRetry:function(e){var t,r=e.config,n=e.response,o=(null==r?void 0:r.raxConfig)||{};return!(null!=o&&o.retryDecider&&!o.retryDecider()||null==r||!r.method||null==(t=o.httpMethodsToRetry)||!t.includes(r.method.toUpperCase())||449!==(null==n?void 0:n.status))}},du.defaults.maxContentLength=1/0,du.defaults.maxBodyLength=1/0;var Bl=du.isAxiosError;function Ml(e){return Iu()(e).toString()}var Nl=r(7934),Hl=r.n(Nl),zl=r(5523),Ul=r.n(zl),$l=r(5745),ql=r.n($l),Vl=r(2904),Gl=r.n(Vl),Wl=r(9108),Kl=r.n(Wl),Ql=r(3040),Zl=r(5250),Yl=r(7363),Xl=r.n(Yl),Jl=r(4114),ef=r.n(Jl),tf=r(9862),rf=r.n(tf),nf=r(6673);function of(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var af="function"==typeof Symbol&&Symbol.observable||"@@observable",sf=function(){return Math.random().toString(36).substring(7).split("").join(".")},cf={INIT:"@@redux/INIT"+sf(),REPLACE:"@@redux/REPLACE"+sf(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+sf()}};function uf(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function lf(e,t,r){var n;if("function"==typeof t&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw new Error(of(0));if("function"==typeof t&&void 0===r&&(r=t,t=void 0),void 0!==r){if("function"!=typeof r)throw new Error(of(1));return r(lf)(e,t)}if("function"!=typeof e)throw new Error(of(2));var o=e,i=t,a=[],s=a,c=!1;function u(){s===a&&(s=a.slice())}function l(){if(c)throw new Error(of(3));return i}function f(e){if("function"!=typeof e)throw new Error(of(4));if(c)throw new Error(of(5));var t=!0;return u(),s.push(e),function(){if(t){if(c)throw new Error(of(6));t=!1,u();var r=s.indexOf(e);s.splice(r,1),a=null}}}function h(e){if(!uf(e))throw new Error(of(7));if(void 0===e.type)throw new Error(of(8));if(c)throw new Error(of(9));try{c=!0,i=o(i,e)}finally{c=!1}for(var t=a=s,r=0;r<t.length;r++){(0,t[r])()}return e}return h({type:cf.INIT}),(n={dispatch:h,subscribe:f,getState:l,replaceReducer:function(e){if("function"!=typeof e)throw new Error(of(10));o=e,h({type:cf.REPLACE})}})[af]=function(){var e,t=f;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(of(11));function r(){e.next&&e.next(l())}return r(),{unsubscribe:t(r)}}})[af]=function(){return this},e},n}function ff(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}var hf=r(6065),pf=r(2611),df=Xl().createContext(null);var mf=function(e){e()},vf=function(){return mf};var gf={notify:function(){},get:function(){return[]}};function yf(e,t){var r,n=gf;function o(){a.onStateChange&&a.onStateChange()}function i(){r||(r=t?t.addNestedSub(o):e.subscribe(o),n=function(){var e=vf(),t=null,r=null;return{clear:function(){t=null,r=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],r=t;r;)e.push(r),r=r.next;return e},subscribe:function(e){var n=!0,o=r={callback:e,next:null,prev:r};return o.prev?o.prev.next=o:t=o,function(){n&&null!==t&&(n=!1,o.next?o.next.prev=o.prev:r=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}())}var a={addNestedSub:function(e){return i(),n.subscribe(e)},notifyNestedSubs:function(){n.notify()},handleChangeWrapper:o,isSubscribed:function(){return Boolean(r)},trySubscribe:i,tryUnsubscribe:function(){r&&(r(),r=void 0,n.clear(),n=gf)},getListeners:function(){return n}};return a}var bf="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?Yl.useLayoutEffect:Yl.useEffect;const wf=function(e){var t=e.store,r=e.context,n=e.children,o=(0,Yl.useMemo)((function(){var e=yf(t);return{store:t,subscription:e}}),[t]),i=(0,Yl.useMemo)((function(){return t.getState()}),[t]);bf((function(){var e=o.subscription;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),i!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[o,i]);var a=r||df;return Xl().createElement(a.Provider,{value:o},n)};var xf=r(6095),Ef=r.n(xf);r(503);r(5527);function kf(){return(0,Yl.useContext)(df)}var Sf=function(e,t){return e===t};function Df(e){void 0===e&&(e=df);var t=e===df?kf:function(){return(0,Yl.useContext)(e)};return function(e,r){void 0===r&&(r=Sf);var n=t(),o=function(e,t,r,n){var o,i=(0,Yl.useReducer)((function(e){return e+1}),0)[1],a=(0,Yl.useMemo)((function(){return yf(r,n)}),[r,n]),s=(0,Yl.useRef)(),c=(0,Yl.useRef)(),u=(0,Yl.useRef)(),l=(0,Yl.useRef)(),f=r.getState();try{if(e!==c.current||f!==u.current||s.current){var h=e(f);o=void 0!==l.current&&t(h,l.current)?l.current:h}else o=l.current}catch(e){throw s.current&&(e.message+="\nThe error may be correlated with this previous error:\n"+s.current.stack+"\n\n"),e}return bf((function(){c.current=e,u.current=f,l.current=o,s.current=void 0})),bf((function(){function e(){try{var e=r.getState();if(e===u.current)return;var n=c.current(e);if(t(n,l.current))return;l.current=n,u.current=e}catch(e){s.current=e}i()}return a.onStateChange=e,a.trySubscribe(),e(),function(){return a.tryUnsubscribe()}}),[r,a]),o}(e,r,n.store,n.subscription);return(0,Yl.useDebugValue)(o),o}}var Pf,Af=Df(),Cf=r(1533);Pf=Cf.unstable_batchedUpdates,mf=Pf;const Of="TYPE_SET_STATE",Ff="TYPE_GET_STATE";function jf(e){const t=Object.getPrototypeOf(e);return Object.getOwnPropertyNames(t).filter((e=>!["constructor","onAction","subscription"].includes(e)&&"function"==typeof t[e]&&!e.startsWith("_")))}class Tf{constructor(){rf()(this,"initialState",void 0),rf()(this,"state",void 0)}*getState(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return yield{type:Ff,payload:{models:t}}}setState(e){return{type:Of,payload:{fn:e}}}dispatch(e){}}(0,hf.Fl)(!1);const _f=(e,t,r)=>{for(let n of e)t=n(t,r);return t},Rf=(e,t)=>{for(let r in e){let n=e[r];e[r]=function(){let e=n(...arguments);if("function"==typeof e)return e(t)}}return e};function If(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e=>e,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];const o={},i={},a={},s={},c={},u={};for(const r in e){const n=e[r];void 0!==n.initialState?"function"==typeof n.initialState?a[r]=n.initialState(t[r],t):a[r]=(0,pf.merge)(n.initialState,t[r]):a[r]=t[r],i[r]={},n.onAction&&(u[r]=(e,t)=>n.onAction(e,t,s[r])),n.subscription&&(c[r]=n.subscription),n.dispatch=function(e){if("string"==typeof e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];s[r][e](...n)}};const l=jf(n);for(let e of l){const t=Object.getPrototypeOf(n)[e],a=`${r}/${e}`;i[r][e]=function(){for(var e=arguments.length,i=new Array(e),s=0;s<e;s++)i[s]=arguments[s];return async e=>{const{dispatch:s,getState:c}=e;let l=0;const f=Object.entries(u).filter((e=>{let[t]=e;return t!==r})).map((e=>{let[,t]=e;return t}));let h=_f(f,t.bind(n),a)(...i);const p=async e=>{let t=await e.next();for(;!t.done;){let i,u;if(t.value instanceof Promise)try{i=await t.value}catch(e){u=e}else if((n=t.value)&&"function"==typeof n.next&&"function"==typeof n.throw)try{i=await p(t.value)}catch(e){u=e}else{let e=t.value,n=e.payload;switch(e.type){case Ff:const e=c();i=n.models.length>0?n.models.length>1?n.models.map((t=>e[t])):e[n.models[0]]:e;break;case Of:let t=`${a}/@@${++l}`;o[t]=n.fn,s({type:t,name:r}),delete o[t]}}t=u?await e.throw(u):await e.next(i)}var n;return t.value};await p(h)}}}}const l=window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||ff,f=lf(r((function(e,t){return(0,hf.Uy)(e,(e=>{t.name&&o[t.type]&&("function"==typeof o[t.type]?e[t.name]=(0,hf.Uy)(e[t.name],o[t.type]):e[t.name]=o[t.type])}))})),a,l(function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return function(){var r=e.apply(void 0,arguments),n=function(){throw new Error(of(15))},o={getState:r.getState,dispatch:function(){return n.apply(void 0,arguments)}},i=t.map((function(e){return e(o)}));return n=ff.apply(void 0,i)(r.dispatch),(0,nf.Z)((0,nf.Z)({},r),{},{dispatch:n})}}}(...n))),{getState:h}=f;for(let[e,t]of Object.entries(i))s[e]=Rf(t,f);for(let t in c)c[t].call(e[t],s[t],h()[t]);return f.actions=s,f}const Lf=(0,Yl.createContext)({actions:{}});function Bf(e){let{store:t,children:r}=e;return(0,Zl.jsx)(Lf.Provider,{value:{actions:t.actions},children:(0,Zl.jsx)(wf,{store:t,children:r})})}function Mf(e,t){return"string"==typeof e||Array.isArray(e)?Af((t=>Array.isArray(e)?e:Array(e).reduce(((e,t)=>e[t]),t)),t):Af(e,t)}var Nf=r(9664),Hf=r.n(Nf),zf=r(125),Uf=r.n(zf),$f=r(4636),qf=r.n($f),Vf=r(2815),Gf=r(5225),Wf=r.n(Gf),Kf=r(2037),Qf=r(5218),Zf=r.n(Qf);const Yf=function(e){function t(e,n,c,u,h){for(var p,d,m,v,w,E=0,k=0,S=0,D=0,P=0,T=0,R=m=p=0,L=0,B=0,M=0,N=0,H=c.length,z=H-1,U="",$="",q="",V="";L<H;){if(d=c.charCodeAt(L),L===z&&0!==k+D+S+E&&(0!==k&&(d=47===k?10:47),D=S=E=0,H++,z++),0===k+D+S+E){if(L===z&&(0<B&&(U=U.replace(f,"")),0<U.trim().length)){switch(d){case 32:case 9:case 59:case 13:case 10:break;default:U+=c.charAt(L)}d=59}switch(d){case 123:for(p=(U=U.trim()).charCodeAt(0),m=1,N=++L;L<H;){switch(d=c.charCodeAt(L)){case 123:m++;break;case 125:m--;break;case 47:switch(d=c.charCodeAt(L+1)){case 42:case 47:e:{for(R=L+1;R<z;++R)switch(c.charCodeAt(R)){case 47:if(42===d&&42===c.charCodeAt(R-1)&&L+2!==R){L=R+1;break e}break;case 10:if(47===d){L=R+1;break e}}L=R}}break;case 91:d++;case 40:d++;case 34:case 39:for(;L++<z&&c.charCodeAt(L)!==d;);}if(0===m)break;L++}if(m=c.substring(N,L),0===p&&(p=(U=U.replace(l,"").trim()).charCodeAt(0)),64===p){switch(0<B&&(U=U.replace(f,"")),d=U.charCodeAt(1)){case 100:case 109:case 115:case 45:B=n;break;default:B=j}if(N=(m=t(n,B,m,d,h+1)).length,0<_&&(w=s(3,m,B=r(j,U,M),n,C,A,N,d,h,u),U=B.join(""),void 0!==w&&0===(N=(m=w.trim()).length)&&(d=0,m="")),0<N)switch(d){case 115:U=U.replace(x,a);case 100:case 109:case 45:m=U+"{"+m+"}";break;case 107:m=(U=U.replace(g,"$1 $2"))+"{"+m+"}",m=1===F||2===F&&i("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=U+m,112===u&&($+=m,m="")}else m=""}else m=t(n,r(n,U,M),m,u,h+1);q+=m,m=M=B=R=p=0,U="",d=c.charCodeAt(++L);break;case 125:case 59:if(1<(N=(U=(0<B?U.replace(f,""):U).trim()).length))switch(0===R&&(p=U.charCodeAt(0),45===p||96<p&&123>p)&&(N=(U=U.replace(" ",":")).length),0<_&&void 0!==(w=s(1,U,n,e,C,A,$.length,u,h,u))&&0===(N=(U=w.trim()).length)&&(U="\0\0"),p=U.charCodeAt(0),d=U.charCodeAt(1),p){case 0:break;case 64:if(105===d||99===d){V+=U+c.charAt(L);break}default:58!==U.charCodeAt(N-1)&&($+=o(U,p,d,U.charCodeAt(2)))}M=B=R=p=0,U="",d=c.charCodeAt(++L)}}switch(d){case 13:case 10:47===k?k=0:0===1+p&&107!==u&&0<U.length&&(B=1,U+="\0"),0<_*I&&s(0,U,n,e,C,A,$.length,u,h,u),A=1,C++;break;case 59:case 125:if(0===k+D+S+E){A++;break}default:switch(A++,v=c.charAt(L),d){case 9:case 32:if(0===D+E+k)switch(P){case 44:case 58:case 9:case 32:v="";break;default:32!==d&&(v=" ")}break;case 0:v="\\0";break;case 12:v="\\f";break;case 11:v="\\v";break;case 38:0===D+k+E&&(B=M=1,v="\f"+v);break;case 108:if(0===D+k+E+O&&0<R)switch(L-R){case 2:112===P&&58===c.charCodeAt(L-3)&&(O=P);case 8:111===T&&(O=T)}break;case 58:0===D+k+E&&(R=L);break;case 44:0===k+S+D+E&&(B=1,v+="\r");break;case 34:case 39:0===k&&(D=D===d?0:0===D?d:D);break;case 91:0===D+k+S&&E++;break;case 93:0===D+k+S&&E--;break;case 41:0===D+k+E&&S--;break;case 40:if(0===D+k+E){if(0===p)if(2*P+3*T==533);else p=1;S++}break;case 64:0===k+S+D+E+R+m&&(m=1);break;case 42:case 47:if(!(0<D+E+S))switch(k){case 0:switch(2*d+3*c.charCodeAt(L+1)){case 235:k=47;break;case 220:N=L,k=42}break;case 42:47===d&&42===P&&N+2!==L&&(33===c.charCodeAt(N+2)&&($+=c.substring(N,L+1)),v="",k=0)}}0===k&&(U+=v)}T=P,P=d,L++}if(0<(N=$.length)){if(B=n,0<_&&(void 0!==(w=s(2,$,B,e,C,A,N,u,h,u))&&0===($=w).length))return V+$+q;if($=B.join(",")+"{"+$+"}",0!=F*O){switch(2!==F||i($,2)||(O=0),O){case 111:$=$.replace(b,":-moz-$1")+$;break;case 112:$=$.replace(y,"::-webkit-input-$1")+$.replace(y,"::-moz-$1")+$.replace(y,":-ms-input-$1")+$}O=0}}return V+$+q}function r(e,t,r){var o=t.trim().split(m);t=o;var i=o.length,a=e.length;switch(a){case 0:case 1:var s=0;for(e=0===a?"":e[0]+" ";s<i;++s)t[s]=n(e,t[s],r).trim();break;default:var c=s=0;for(t=[];s<i;++s)for(var u=0;u<a;++u)t[c++]=n(e[u]+" ",o[s],r).trim()}return t}function n(e,t,r){var n=t.charCodeAt(0);switch(33>n&&(n=(t=t.trim()).charCodeAt(0)),n){case 38:return t.replace(v,"$1"+e.trim());case 58:return e.trim()+t.replace(v,"$1"+e.trim());default:if(0<1*r&&0<t.indexOf("\f"))return t.replace(v,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function o(e,t,r,n){var a=e+";",s=2*t+3*r+4*n;if(944===s){e=a.indexOf(":",9)+1;var c=a.substring(e,a.length-1).trim();return c=a.substring(0,e).trim()+c+";",1===F||2===F&&i(c,1)?"-webkit-"+c+c:c}if(0===F||2===F&&!i(a,1))return a;switch(s){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(P,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(c=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+c+a;case 1005:return p.test(a)?a.replace(h,":-webkit-")+a.replace(h,":-moz-")+a:a;case 1e3:switch(t=(c=a.substring(13).trim()).indexOf("-")+1,c.charCodeAt(0)+c.charCodeAt(t)){case 226:c=a.replace(w,"tb");break;case 232:c=a.replace(w,"tb-rl");break;case 220:c=a.replace(w,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+c+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,s=(c=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|c.charCodeAt(7))){case 203:if(111>c.charCodeAt(8))break;case 115:a=a.replace(c,"-webkit-"+c)+";"+a;break;case 207:case 102:a=a.replace(c,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(c,"-webkit-"+c)+";"+a.replace(c,"-ms-"+c+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return c=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+c+"-ms-flex-"+c+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(k,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(k,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===D.test(e))return 115===(c=e.substring(e.indexOf(":")+1)).charCodeAt(0)?o(e.replace("stretch","fill-available"),t,r,n).replace(":fill-available",":stretch"):a.replace(c,"-webkit-"+c)+a.replace(c,"-moz-"+c.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===r+n&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(d,"$1-webkit-$2")+a}return a}function i(e,t){var r=e.indexOf(1===t?":":"{"),n=e.substring(0,3!==t?r:10);return r=e.substring(r+1,e.length-1),R(2!==t?n:n.replace(S,"$1"),r,t)}function a(e,t){var r=o(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return r!==t+";"?r.replace(E," or ($1)").substring(4):"("+t+")"}function s(e,t,r,n,o,i,a,s,c,l){for(var f,h=0,p=t;h<_;++h)switch(f=T[h].call(u,e,p,r,n,o,i,a,s,c,l)){case void 0:case!1:case!0:case null:break;default:p=f}if(p!==t)return p}function c(e){return void 0!==(e=e.prefix)&&(R=null,e?"function"!=typeof e?F=1:(F=2,R=e):F=0),c}function u(e,r){var n=e;if(33>n.charCodeAt(0)&&(n=n.trim()),n=[n],0<_){var o=s(-1,r,n,n,C,A,0,0,0,0);void 0!==o&&"string"==typeof o&&(r=o)}var i=t(j,n,r,0,0);return 0<_&&(void 0!==(o=s(-2,i,n,n,C,A,i.length,0,0,0))&&(i=o)),"",O=0,A=C=1,i}var l=/^\0+/g,f=/[\0\r\f]/g,h=/: */g,p=/zoo|gra/,d=/([,: ])(transform)/g,m=/,\r+?/g,v=/([\t\r\n ])*\f?&/g,g=/@(k\w+)\s*(\S*)\s*/,y=/::(place)/g,b=/:(read-only)/g,w=/[svh]\w+-[tblr]{2}/,x=/\(\s*(.*)\s*\)/g,E=/([\s\S]*?);/g,k=/-self|flex-/g,S=/[^]*?(:[rp][el]a[\w-]+)[^]*/,D=/stretch|:\s*\w+\-(?:conte|avail)/,P=/([^-])(image-set\()/,A=1,C=1,O=0,F=1,j=[],T=[],_=0,R=null,I=0;return u.use=function e(t){switch(t){case void 0:case null:_=T.length=0;break;default:if("function"==typeof t)T[_++]=t;else if("object"==typeof t)for(var r=0,n=t.length;r<n;++r)e(t[r]);else I=0|!!t}return e},u.set=c,void 0!==e&&c(e),u};const Xf={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function Jf(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}var eh=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,th=Jf((function(e){return eh.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),rh=r(4675);function nh(){return(nh=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var oh=function(e,t){for(var r=[e[0]],n=0,o=t.length;n<o;n+=1)r.push(t[n],e[n+1]);return r},ih=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!(0,Kf.typeOf)(e)},ah=Object.freeze([]),sh=Object.freeze({});function ch(e){return"function"==typeof e}function uh(e){return e.displayName||e.name||"Component"}function lh(e){return e&&"string"==typeof e.styledComponentId}var fh=void 0!==rh&&void 0!==rh.env&&(rh.env.REACT_APP_SC_ATTR||rh.env.SC_ATTR)||"data-styled",hh="undefined"!=typeof window&&"HTMLElement"in window,ph=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:void 0!==rh&&void 0!==rh.env&&(void 0!==rh.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==rh.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==rh.env.REACT_APP_SC_DISABLE_SPEEDY&&rh.env.REACT_APP_SC_DISABLE_SPEEDY:void 0!==rh.env.SC_DISABLE_SPEEDY&&""!==rh.env.SC_DISABLE_SPEEDY&&("false"!==rh.env.SC_DISABLE_SPEEDY&&rh.env.SC_DISABLE_SPEEDY))),dh={};function mh(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(r.length>0?" Args: "+r.join(", "):""))}var vh=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,r=0;r<e;r++)t+=this.groupSizes[r];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,o=n;e>=o;)(o<<=1)<0&&mh(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var i=n;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),s=0,c=t.length;s<c;s++)this.tag.insertRule(a,t[s])&&(this.groupSizes[e]++,a++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(var o=r;o<n;o++)this.tag.deleteRule(r)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),o=n+r,i=n;i<o;i++)t+=this.tag.getRule(i)+"/*!sc*/\n";return t},e}(),gh=new Map,yh=new Map,bh=1,wh=function(e){if(gh.has(e))return gh.get(e);for(;yh.has(bh);)bh++;var t=bh++;return gh.set(e,t),yh.set(t,e),t},xh=function(e){return yh.get(e)},Eh=function(e,t){t>=bh&&(bh=t+1),gh.set(e,t),yh.set(t,e)},kh="style["+fh+'][data-styled-version="5.3.8"]',Sh=new RegExp("^"+fh+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),Dh=function(e,t,r){for(var n,o=r.split(","),i=0,a=o.length;i<a;i++)(n=o[i])&&e.registerName(t,n)},Ph=function(e,t){for(var r=(t.textContent||"").split("/*!sc*/\n"),n=[],o=0,i=r.length;o<i;o++){var a=r[o].trim();if(a){var s=a.match(Sh);if(s){var c=0|parseInt(s[1],10),u=s[2];0!==c&&(Eh(u,c),Dh(e,u,s[3]),e.getTag().insertRules(c,n)),n.length=0}else n.push(a)}}},Ah=function(){return r.nc},Ch=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=function(e){for(var t=e.childNodes,r=t.length;r>=0;r--){var n=t[r];if(n&&1===n.nodeType&&n.hasAttribute(fh))return n}}(r),i=void 0!==o?o.nextSibling:null;n.setAttribute(fh,"active"),n.setAttribute("data-styled-version","5.3.8");var a=Ah();return a&&n.setAttribute("nonce",a),r.insertBefore(n,i),n},Oh=function(){function e(e){var t=this.element=Ch(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,n=t.length;r<n;r++){var o=t[r];if(o.ownerNode===e)return o}mh(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),Fh=function(){function e(e){var t=this.element=Ch(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var r=document.createTextNode(t),n=this.nodes[e];return this.element.insertBefore(r,n||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),jh=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),Th=hh,_h={isServer:!hh,useCSSOMInjection:!ph},Rh=function(){function e(e,t,r){void 0===e&&(e=sh),void 0===t&&(t={}),this.options=nh({},_h,{},e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&hh&&Th&&(Th=!1,function(e){for(var t=document.querySelectorAll(kh),r=0,n=t.length;r<n;r++){var o=t[r];o&&"active"!==o.getAttribute(fh)&&(Ph(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this))}e.registerId=function(e){return wh(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(nh({},this.options,{},t),this.gs,r&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(r=(t=this.options).isServer,n=t.useCSSOMInjection,o=t.target,e=r?new jh(o):n?new Oh(o):new Fh(o),new vh(e)));var e,t,r,n,o},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(wh(e),this.names.has(e))this.names.get(e).add(t);else{var r=new Set;r.add(t),this.names.set(e,r)}},t.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(wh(e),r)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(wh(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),r=t.length,n="",o=0;o<r;o++){var i=xh(o);if(void 0!==i){var a=e.names.get(i),s=t.getGroup(o);if(a&&s&&a.size){var c=fh+".g"+o+'[id="'+i+'"]',u="";void 0!==a&&a.forEach((function(e){e.length>0&&(u+=e+",")})),n+=""+s+c+'{content:"'+u+'"}/*!sc*/\n'}}}return n}(this)},e}(),Ih=/(a)(d)/gi,Lh=function(e){return String.fromCharCode(e+(e>25?39:97))};function Bh(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=Lh(t%52)+r;return(Lh(t%52)+r).replace(Ih,"$1-$2")}var Mh=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},Nh=function(e){return Mh(5381,e)};function Hh(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(ch(r)&&!lh(r))return!1}return!0}var zh=Nh("5.3.8"),Uh=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&Hh(e),this.componentId=t,this.baseHash=Mh(zh,t),this.baseStyle=r,Rh.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var n=this.componentId,o=[];if(this.baseStyle&&o.push(this.baseStyle.generateAndInjectStyles(e,t,r)),this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(n,this.staticRulesId))o.push(this.staticRulesId);else{var i=ap(this.rules,e,t,r).join(""),a=Bh(Mh(this.baseHash,i)>>>0);if(!t.hasNameForId(n,a)){var s=r(i,"."+a,void 0,n);t.insertRules(n,a,s)}o.push(a),this.staticRulesId=a}else{for(var c=this.rules.length,u=Mh(this.baseHash,r.hash),l="",f=0;f<c;f++){var h=this.rules[f];if("string"==typeof h)l+=h;else if(h){var p=ap(h,e,t,r),d=Array.isArray(p)?p.join(""):p;u=Mh(u,d+f),l+=d}}if(l){var m=Bh(u>>>0);if(!t.hasNameForId(n,m)){var v=r(l,"."+m,void 0,n);t.insertRules(n,m,v)}o.push(m)}}return o.join(" ")},e}(),$h=/^\s*\/\/.*$/gm,qh=[":","[",".","#"];function Vh(e){var t,r,n,o,i=void 0===e?sh:e,a=i.options,s=void 0===a?sh:a,c=i.plugins,u=void 0===c?ah:c,l=new Yf(s),f=[],h=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(r,n,o,i,a,s,c,u,l,f){switch(r){case 1:if(0===l&&64===n.charCodeAt(0))return e(n+";"),"";break;case 2:if(0===u)return n+"/*|*/";break;case 3:switch(u){case 102:case 112:return e(o[0]+n),"";default:return n+(0===f?"/*|*/":"")}case-2:n.split("/*|*/}").forEach(t)}}}((function(e){f.push(e)})),p=function(e,n,i){return 0===n&&-1!==qh.indexOf(i[r.length])||i.match(o)?e:"."+t};function d(e,i,a,s){void 0===s&&(s="&");var c=e.replace($h,""),u=i&&a?a+" "+i+" { "+c+" }":c;return t=s,r=i,n=new RegExp("\\"+r+"\\b","g"),o=new RegExp("(\\"+r+"\\b){2,}"),l(a||!i?"":i,u)}return l.use([].concat(u,[function(e,t,o){2===e&&o.length&&o[0].lastIndexOf(r)>0&&(o[0]=o[0].replace(n,p))},h,function(e){if(-2===e){var t=f;return f=[],t}}])),d.hash=u.length?u.reduce((function(e,t){return t.name||mh(15),Mh(e,t.name)}),5381).toString():"",d}var Gh=Xl().createContext(),Wh=(Gh.Consumer,Xl().createContext()),Kh=(Wh.Consumer,new Rh),Qh=Vh();function Zh(){return(0,Yl.useContext)(Gh)||Kh}function Yh(){return(0,Yl.useContext)(Wh)||Qh}function Xh(e){var t=(0,Yl.useState)(e.stylisPlugins),r=t[0],n=t[1],o=Zh(),i=(0,Yl.useMemo)((function(){var t=o;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),a=(0,Yl.useMemo)((function(){return Vh({options:{prefix:!e.disableVendorPrefixes},plugins:r})}),[e.disableVendorPrefixes,r]);return(0,Yl.useEffect)((function(){Zf()(r,e.stylisPlugins)||n(e.stylisPlugins)}),[e.stylisPlugins]),Xl().createElement(Gh.Provider,{value:i},Xl().createElement(Wh.Provider,{value:a},e.children))}var Jh=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=Qh);var n=r.name+t.hash;e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,"@keyframes"))},this.toString=function(){return mh(12,String(r.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=Qh),this.name+e.hash},e}(),ep=/([A-Z])/,tp=/([A-Z])/g,rp=/^ms-/,np=function(e){return"-"+e.toLowerCase()};function op(e){return ep.test(e)?e.replace(tp,np).replace(rp,"-ms-"):e}var ip=function(e){return null==e||!1===e||""===e};function ap(e,t,r,n){if(Array.isArray(e)){for(var o,i=[],a=0,s=e.length;a<s;a+=1)""!==(o=ap(e[a],t,r,n))&&(Array.isArray(o)?i.push.apply(i,o):i.push(o));return i}return ip(e)?"":lh(e)?"."+e.styledComponentId:ch(e)?"function"!=typeof(c=e)||c.prototype&&c.prototype.isReactComponent||!t?e:ap(e(t),t,r,n):e instanceof Jh?r?(e.inject(r,n),e.getName(n)):e:ih(e)?function e(t,r){var n,o,i=[];for(var a in t)t.hasOwnProperty(a)&&!ip(t[a])&&(Array.isArray(t[a])&&t[a].isCss||ch(t[a])?i.push(op(a)+":",t[a],";"):ih(t[a])?i.push.apply(i,e(t[a],a)):i.push(op(a)+": "+(n=a,(null==(o=t[a])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||n in Xf?String(o).trim():o+"px")+";")));return r?[r+" {"].concat(i,["}"]):i}(e):e.toString();var c}var sp=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function cp(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return ch(e)||ih(e)?sp(ap(oh(ah,[e].concat(r)))):0===r.length&&1===e.length&&"string"==typeof e[0]?e:sp(ap(oh(e,r)))}new Set;var up=function(e,t,r){return void 0===r&&(r=sh),e.theme!==r.theme&&e.theme||t||r.theme},lp=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,fp=/(^-|-$)/g;function hp(e){return e.replace(lp,"-").replace(fp,"")}var pp=function(e){return Bh(Nh(e)>>>0)};function dp(e){return"string"==typeof e&&!0}var mp=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},vp=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function gp(e,t,r){var n=e[r];mp(t)&&mp(n)?yp(n,t):e[r]=t}function yp(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];for(var o=0,i=r;o<i.length;o++){var a=i[o];if(mp(a))for(var s in a)vp(s)&&gp(e,a[s],s)}return e}var bp=Xl().createContext();bp.Consumer;function wp(e){var t=(0,Yl.useContext)(bp),r=(0,Yl.useMemo)((function(){return function(e,t){return e?ch(e)?e(t):Array.isArray(e)||"object"!=typeof e?mh(8):t?nh({},t,{},e):e:mh(14)}(e.theme,t)}),[e.theme,t]);return e.children?Xl().createElement(bp.Provider,{value:r},e.children):null}var xp={};function Ep(e,t,r){var n=lh(e),o=!dp(e),i=t.attrs,a=void 0===i?ah:i,s=t.componentId,c=void 0===s?function(e,t){var r="string"!=typeof e?"sc":hp(e);xp[r]=(xp[r]||0)+1;var n=r+"-"+pp("5.3.8"+r+xp[r]);return t?t+"-"+n:n}(t.displayName,t.parentComponentId):s,u=t.displayName,l=void 0===u?function(e){return dp(e)?"styled."+e:"Styled("+uh(e)+")"}(e):u,f=t.displayName&&t.componentId?hp(t.displayName)+"-"+t.componentId:t.componentId||c,h=n&&e.attrs?Array.prototype.concat(e.attrs,a).filter(Boolean):a,p=t.shouldForwardProp;n&&e.shouldForwardProp&&(p=t.shouldForwardProp?function(r,n,o){return e.shouldForwardProp(r,n,o)&&t.shouldForwardProp(r,n,o)}:e.shouldForwardProp);var d,m=new Uh(r,f,n?e.componentStyle:void 0),v=m.isStatic&&0===a.length,g=function(e,t){return function(e,t,r,n){var o=e.attrs,i=e.componentStyle,a=e.defaultProps,s=e.foldedComponentIds,c=e.shouldForwardProp,u=e.styledComponentId,l=e.target,f=function(e,t,r){void 0===e&&(e=sh);var n=nh({},t,{theme:e}),o={};return r.forEach((function(e){var t,r,i,a=e;for(t in ch(a)&&(a=a(n)),a)n[t]=o[t]="className"===t?(r=o[t],i=a[t],r&&i?r+" "+i:r||i):a[t]})),[n,o]}(up(t,(0,Yl.useContext)(bp),a)||sh,t,o),h=f[0],p=f[1],d=function(e,t,r,n){var o=Zh(),i=Yh();return t?e.generateAndInjectStyles(sh,o,i):e.generateAndInjectStyles(r,o,i)}(i,n,h),m=r,v=p.$as||t.$as||p.as||t.as||l,g=dp(v),y=p!==t?nh({},t,{},p):t,b={};for(var w in y)"$"!==w[0]&&"as"!==w&&("forwardedAs"===w?b.as=y[w]:(c?c(w,th,v):!g||th(w))&&(b[w]=y[w]));return t.style&&p.style!==t.style&&(b.style=nh({},t.style,{},p.style)),b.className=Array.prototype.concat(s,u,d!==u?d:null,t.className,p.className).filter(Boolean).join(" "),b.ref=m,(0,Yl.createElement)(v,b)}(d,e,t,v)};return g.displayName=l,(d=Xl().forwardRef(g)).attrs=h,d.componentStyle=m,d.displayName=l,d.shouldForwardProp=p,d.foldedComponentIds=n?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):ah,d.styledComponentId=f,d.target=n?e.target:e,d.withComponent=function(e){var n=t.componentId,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(t,["componentId"]),i=n&&n+"-"+(dp(e)?e:hp(uh(e)));return Ep(e,nh({},o,{attrs:h,componentId:i}),r)},Object.defineProperty(d,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=n?yp({},e.defaultProps,t):t}}),d.toString=function(){return"."+d.styledComponentId},o&&Ef()(d,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),d}var kp=function(e){return function e(t,r,n){if(void 0===n&&(n=sh),!(0,Kf.isValidElementType)(r))return mh(1,String(r));var o=function(){return t(r,n,cp.apply(void 0,arguments))};return o.withConfig=function(o){return e(t,r,nh({},n,{},o))},o.attrs=function(o){return e(t,r,nh({},n,{attrs:Array.prototype.concat(n.attrs,o).filter(Boolean)}))},o}(Ep,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){kp[e]=kp(e)}));var Sp=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Hh(e),Rh.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,r,n){var o=n(ap(this.rules,t,r,n).join(""),""),i=this.componentId+e;r.insertRules(i,i,o)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,r,n){e>2&&Rh.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},e}();function Dp(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var o=cp.apply(void 0,[e].concat(r)),i="sc-global-"+pp(JSON.stringify(o)),a=new Sp(o,i);function s(e){var t=Zh(),r=Yh(),n=(0,Yl.useContext)(bp),o=(0,Yl.useRef)(t.allocateGSInstance(i)).current;return t.server&&c(o,e,t,n,r),(0,Yl.useLayoutEffect)((function(){if(!t.server)return c(o,e,t,n,r),function(){return a.removeStyles(o,t)}}),[o,e,t,n,r]),null}function c(e,t,r,n,o){if(a.isStatic)a.renderStyles(e,dh,r,o);else{var i=nh({},t,{theme:up(t,n,s.defaultProps)});a.renderStyles(e,i,r,o)}}return Xl().memo(s)}function Pp(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var o=cp.apply(void 0,[e].concat(r)).join(""),i=pp(o);return new Jh(i,o)}!function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var r=Ah();return"<style "+[r&&'nonce="'+r+'"',fh+'="true"','data-styled-version="5.3.8"'].filter(Boolean).join(" ")+">"+t+"</style>"},this.getStyleTags=function(){return e.sealed?mh(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return mh(2);var r=((t={})[fh]="",t["data-styled-version"]="5.3.8",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),n=Ah();return n&&(r.nonce=n),[Xl().createElement("style",nh({},r,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new Rh({isServer:!0}),this.sealed=!1}var t=e.prototype;t.collectStyles=function(e){return this.sealed?mh(2):Xl().createElement(Xh,{sheet:this.instance},e)},t.interleaveWithNodeStream=function(e){return mh(3)}}();const Ap=kp;var Cp=function(e,t){return Cp=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},Cp(e,t)};function Op(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Cp(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var Fp=function(){return Fp=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},Fp.apply(this,arguments)};function jp(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}Object.create;function Tp(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}Object.create;"function"==typeof SuppressedError&&SuppressedError;var _p,Rp,Ip;function Lp(e){return e.type===Rp.literal}function Bp(e){return e.type===Rp.argument}function Mp(e){return e.type===Rp.number}function Np(e){return e.type===Rp.date}function Hp(e){return e.type===Rp.time}function zp(e){return e.type===Rp.select}function Up(e){return e.type===Rp.plural}function $p(e){return e.type===Rp.pound}function qp(e){return e.type===Rp.tag}function Vp(e){return!(!e||"object"!=typeof e||e.type!==Ip.number)}function Gp(e){return!(!e||"object"!=typeof e||e.type!==Ip.dateTime)}!function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(_p||(_p={})),function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"}(Rp||(Rp={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(Ip||(Ip={}));var Wp=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Kp=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function Qp(e){var t={};return e.replace(Kp,(function(e){var r=e.length;switch(e[0]){case"G":t.era=4===r?"long":5===r?"narrow":"short";break;case"y":t.year=2===r?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=4===r?"long":5===r?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),t}var Zp=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var Yp=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Xp=/^(@+)?(\+|#+)?[rs]?$/g,Jp=/(\*)(0+)|(#+)(0+)|(0+)/g,ed=/^(0+)$/;function td(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(Xp,(function(e,r,n){return"string"!=typeof n?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):"+"===n?t.minimumSignificantDigits=r.length:"#"===r[0]?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+("string"==typeof n?n.length:0)),""})),t}function rd(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function nd(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!ed.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function od(e){var t=rd(e);return t||{}}function id(e){for(var t={},r=0,n=e;r<n.length;r++){var o=n[r];switch(o.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=o.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=o.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=Fp(Fp(Fp({},t),{notation:"scientific"}),o.options.reduce((function(e,t){return Fp(Fp({},e),od(t))}),{}));continue;case"engineering":t=Fp(Fp(Fp({},t),{notation:"engineering"}),o.options.reduce((function(e,t){return Fp(Fp({},e),od(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(o.options[0]);continue;case"integer-width":if(o.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(Jp,(function(e,r,n,o,i,a){if(r)t.minimumIntegerDigits=n.length;else{if(o&&i)throw new Error("We currently do not support maximum integer digits");if(a)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(ed.test(o.stem))t.minimumIntegerDigits=o.stem.length;else if(Yp.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(Yp,(function(e,r,n,o,i,a){return"*"===n?t.minimumFractionDigits=r.length:o&&"#"===o[0]?t.maximumFractionDigits=o.length:i&&a?(t.minimumFractionDigits=i.length,t.maximumFractionDigits=i.length+a.length):(t.minimumFractionDigits=r.length,t.maximumFractionDigits=r.length),""}));var i=o.options[0];"w"===i?t=Fp(Fp({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=Fp(Fp({},t),td(i)))}else if(Xp.test(o.stem))t=Fp(Fp({},t),td(o.stem));else{var a=rd(o.stem);a&&(t=Fp(Fp({},t),a));var s=nd(o.stem);s&&(t=Fp(Fp({},t),s))}}return t}var ad,sd={"001":["H","h"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["H","h","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["H","hB","h","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["H","h","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["H","hB","h","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["H","h","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["H","h","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["H","h","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["H","h","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["H","hB","h","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["H","h","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["H","h","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["H","h","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function cd(e){var t=e.hourCycle;if(void 0===t&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r,n=e.language;return"root"!==n&&(r=e.maximize().region),(sd[r||""]||sd[n||""]||sd["".concat(n,"-001")]||sd["001"])[0]}var ud=new RegExp("^".concat(Wp.source,"*")),ld=new RegExp("".concat(Wp.source,"*$"));function fd(e,t){return{start:e,end:t}}var hd=!!String.prototype.startsWith&&"_a".startsWith("a",1),pd=!!String.fromCodePoint,dd=!!Object.fromEntries,md=!!String.prototype.codePointAt,vd=!!String.prototype.trimStart,gd=!!String.prototype.trimEnd,yd=!!Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},bd=!0;try{bd="a"===(null===(ad=Ad("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===ad?void 0:ad[0])}catch(e){bd=!1}var wd,xd=hd?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},Ed=pd?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,n="",o=e.length,i=0;o>i;){if((r=e[i++])>1114111)throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},kd=dd?Object.fromEntries:function(e){for(var t={},r=0,n=e;r<n.length;r++){var o=n[r],i=o[0],a=o[1];t[i]=a}return t},Sd=md?function(e,t){return e.codePointAt(t)}:function(e,t){var r=e.length;if(!(t<0||t>=r)){var n,o=e.charCodeAt(t);return o<55296||o>56319||t+1===r||(n=e.charCodeAt(t+1))<56320||n>57343?o:n-56320+(o-55296<<10)+65536}},Dd=vd?function(e){return e.trimStart()}:function(e){return e.replace(ud,"")},Pd=gd?function(e){return e.trimEnd()}:function(e){return e.replace(ld,"")};function Ad(e,t){return new RegExp(e,t)}if(bd){var Cd=Ad("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");wd=function(e,t){var r;return Cd.lastIndex=t,null!==(r=Cd.exec(e)[1])&&void 0!==r?r:""}}else wd=function(e,t){for(var r=[];;){var n=Sd(e,t);if(void 0===n||jd(n)||Td(n))break;r.push(n),t+=n>=65536?2:1}return Ed.apply(void 0,r)};var Od=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,r){for(var n=[];!this.isEOF();){var o=this.char();if(123===o){if((i=this.parseArgument(e,r)).err)return i;n.push(i.val)}else{if(125===o&&e>0)break;if(35!==o||"plural"!==t&&"selectordinal"!==t){if(60===o&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(_p.UNMATCHED_CLOSING_TAG,fd(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&Fd(this.peek()||0)){if((i=this.parseTag(e,t)).err)return i;n.push(i.val)}else{var i;if((i=this.parseLiteral(e,t)).err)return i;n.push(i.val)}}else{var a=this.clonePosition();this.bump(),n.push({type:Rp.pound,location:fd(a,this.clonePosition())})}}}return{val:n,err:null}},e.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Rp.literal,value:"<".concat(n,"/>"),location:fd(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(e+1,t,!0);if(o.err)return o;var i=o.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Fd(this.char()))return this.error(_p.INVALID_TAG,fd(a,this.clonePosition()));var s=this.clonePosition();return n!==this.parseTagName()?this.error(_p.UNMATCHED_CLOSING_TAG,fd(s,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Rp.tag,value:n,children:i,location:fd(r,this.clonePosition())},err:null}:this.error(_p.INVALID_TAG,fd(a,this.clonePosition())))}return this.error(_p.UNCLOSED_TAG,fd(r,this.clonePosition()))}return this.error(_p.INVALID_TAG,fd(r,this.clonePosition()))},e.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),n="";;){var o=this.tryParseQuote(t);if(o)n+=o;else{var i=this.tryParseUnquoted(e,t);if(i)n+=i;else{var a=this.tryParseLeftAngleBracket();if(!a)break;n+=a}}}var s=fd(r,this.clonePosition());return{val:{type:Rp.literal,value:n,location:s},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(Fd(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(r);this.bump()}return Ed.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&e>0?null:(this.bump(),Ed(r))},e.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(_p.EXPECT_ARGUMENT_CLOSING_BRACE,fd(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(_p.EMPTY_ARGUMENT,fd(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(_p.MALFORMED_ARGUMENT,fd(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(_p.EXPECT_ARGUMENT_CLOSING_BRACE,fd(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Rp.argument,value:n,location:fd(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(_p.EXPECT_ARGUMENT_CLOSING_BRACE,fd(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error(_p.MALFORMED_ARGUMENT,fd(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=wd(this.message,t),n=t+r.length;return this.bumpTo(n),{value:r,location:fd(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,r,n){var o,i=this.clonePosition(),a=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(a){case"":return this.error(_p.EXPECT_ARGUMENT_TYPE,fd(i,s));case"number":case"date":case"time":this.bumpSpace();var c=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();if((g=this.parseSimpleArgStyleIfPossible()).err)return g;if(0===(p=Pd(g.val)).length)return this.error(_p.EXPECT_ARGUMENT_STYLE,fd(this.clonePosition(),this.clonePosition()));c={style:p,styleLocation:fd(u,this.clonePosition())}}if((y=this.tryParseArgumentClose(n)).err)return y;var l=fd(n,this.clonePosition());if(c&&xd(null==c?void 0:c.style,"::",0)){var f=Dd(c.style.slice(2));if("number"===a)return(g=this.parseNumberSkeletonFromString(f,c.styleLocation)).err?g:{val:{type:Rp.number,value:r,location:l,style:g.val},err:null};if(0===f.length)return this.error(_p.EXPECT_DATE_TIME_SKELETON,l);var h=f;this.locale&&(h=function(e,t){for(var r="",n=0;n<e.length;n++){var o=e.charAt(n);if("j"===o){for(var i=0;n+1<e.length&&e.charAt(n+1)===o;)i++,n++;var a=1+(1&i),s=i<2?1:3+(i>>1),c=cd(t);for("H"!=c&&"k"!=c||(s=0);s-- >0;)r+="a";for(;a-- >0;)r=c+r}else r+="J"===o?"H":o}return r}(f,this.locale));var p={type:Ip.dateTime,pattern:h,location:c.styleLocation,parsedOptions:this.shouldParseSkeletons?Qp(h):{}};return{val:{type:"date"===a?Rp.date:Rp.time,value:r,location:l,style:p},err:null}}return{val:{type:"number"===a?Rp.number:"date"===a?Rp.date:Rp.time,value:r,location:l,style:null!==(o=null==c?void 0:c.style)&&void 0!==o?o:null},err:null};case"plural":case"selectordinal":case"select":var d=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(_p.EXPECT_SELECT_ARGUMENT_OPTIONS,fd(d,Fp({},d)));this.bumpSpace();var m=this.parseIdentifierIfPossible(),v=0;if("select"!==a&&"offset"===m.value){if(!this.bumpIf(":"))return this.error(_p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,fd(this.clonePosition(),this.clonePosition()));var g;if(this.bumpSpace(),(g=this.tryParseDecimalInteger(_p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,_p.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return g;this.bumpSpace(),m=this.parseIdentifierIfPossible(),v=g.val}var y,b=this.tryParsePluralOrSelectOptions(e,a,t,m);if(b.err)return b;if((y=this.tryParseArgumentClose(n)).err)return y;var w=fd(n,this.clonePosition());return"select"===a?{val:{type:Rp.select,value:r,options:kd(b.val),location:w},err:null}:{val:{type:Rp.plural,value:r,options:kd(b.val),offset:v,pluralType:"plural"===a?"cardinal":"ordinal",location:w},err:null};default:return this.error(_p.INVALID_ARGUMENT_TYPE,fd(i,s))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(_p.EXPECT_ARGUMENT_CLOSING_BRACE,fd(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();){switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(_p.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,fd(r,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=e.split(Zp).filter((function(e){return e.length>0})),r=[],n=0,o=t;n<o.length;n++){var i=o[n].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var a=i[0],s=i.slice(1),c=0,u=s;c<u.length;c++)if(0===u[c].length)throw new Error("Invalid number skeleton");r.push({stem:a,options:s})}return r}(e)}catch(e){return this.error(_p.INVALID_NUMBER_SKELETON,t)}return{val:{type:Ip.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?id(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,r,n){for(var o,i=!1,a=[],s=new Set,c=n.value,u=n.location;;){if(0===c.length){var l=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var f=this.tryParseDecimalInteger(_p.EXPECT_PLURAL_ARGUMENT_SELECTOR,_p.INVALID_PLURAL_ARGUMENT_SELECTOR);if(f.err)return f;u=fd(l,this.clonePosition()),c=this.message.slice(l.offset,this.offset())}if(s.has(c))return this.error("select"===t?_p.DUPLICATE_SELECT_ARGUMENT_SELECTOR:_p.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);"other"===c&&(i=!0),this.bumpSpace();var h=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?_p.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:_p.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,fd(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(e+1,t,r);if(p.err)return p;var d=this.tryParseArgumentClose(h);if(d.err)return d;a.push([c,{value:p.val,location:fd(h,this.clonePosition())}]),s.add(c),this.bumpSpace(),c=(o=this.parseIdentifierIfPossible()).value,u=o.location}return 0===a.length?this.error("select"===t?_p.EXPECT_SELECT_ARGUMENT_SELECTOR:_p.EXPECT_PLURAL_ARGUMENT_SELECTOR,fd(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(_p.MISSING_OTHER_CLAUSE,fd(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var o=!1,i=0;!this.isEOF();){var a=this.char();if(!(a>=48&&a<=57))break;o=!0,i=10*i+(a-48),this.bump()}var s=fd(n,this.clonePosition());return o?yd(i*=r)?{val:i,err:null}:this.error(t,s):this.error(e,s)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Sd(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(xd(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(e){var t=this.offset(),r=this.message.indexOf(e,t);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&jd(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),r=this.message.charCodeAt(t+(e>=65536?2:1));return null!=r?r:null},e}();function Fd(e){return e>=97&&e<=122||e>=65&&e<=90}function jd(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function Td(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function _d(e){e.forEach((function(e){if(delete e.location,zp(e)||Up(e))for(var t in e.options)delete e.options[t].location,_d(e.options[t].value);else Mp(e)&&Vp(e.style)||(Np(e)||Hp(e))&&Gp(e.style)?delete e.style.location:qp(e)&&_d(e.children)}))}function Rd(e,t){void 0===t&&(t={}),t=Fp({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new Od(e,t).parse();if(r.err){var n=SyntaxError(_p[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return(null==t?void 0:t.captureLocation)||_d(r.val),r.val}function Id(e,t){var r=t&&t.cache?t.cache:$d,n=t&&t.serializer?t.serializer:Hd;return(t&&t.strategy?t.strategy:Nd)(e,{cache:r,serializer:n})}function Ld(e,t,r,n){var o=function(e){return null==e||"number"==typeof e||"boolean"==typeof e}(n)?n:r(n),i=t.get(o);return void 0===i&&(i=e.call(this,n),t.set(o,i)),i}function Bd(e,t,r){var n=Array.prototype.slice.call(arguments,3),o=r(n),i=t.get(o);return void 0===i&&(i=e.apply(this,n),t.set(o,i)),i}function Md(e,t,r,n,o){return r.bind(t,e,n,o)}function Nd(e,t){return Md(e,this,1===e.length?Ld:Bd,t.cache.create(),t.serializer)}var Hd=function(){return JSON.stringify(arguments)};function zd(){this.cache=Object.create(null)}zd.prototype.get=function(e){return this.cache[e]},zd.prototype.set=function(e,t){this.cache[e]=t};var Ud,$d={create:function(){return new zd}},qd={variadic:function(e,t){return Md(e,this,Bd,t.cache.create(),t.serializer)},monadic:function(e,t){return Md(e,this,Ld,t.cache.create(),t.serializer)}};!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}(Ud||(Ud={}));var Vd,Gd=function(e){function t(t,r,n){var o=e.call(this,t)||this;return o.code=r,o.originalMessage=n,o}return Op(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Wd=function(e){function t(t,r,n,o){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(r,'". Options are "').concat(Object.keys(n).join('", "'),'"'),Ud.INVALID_VALUE,o)||this}return Op(t,e),t}(Gd),Kd=function(e){function t(t,r,n){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(r),Ud.INVALID_VALUE,n)||this}return Op(t,e),t}(Gd),Qd=function(e){function t(t,r){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(r,'"'),Ud.MISSING_VALUE,r)||this}return Op(t,e),t}(Gd);function Zd(e){return"function"==typeof e}function Yd(e,t,r,n,o,i,a){if(1===e.length&&Lp(e[0]))return[{type:Vd.literal,value:e[0].value}];for(var s=[],c=0,u=e;c<u.length;c++){var l=u[c];if(Lp(l))s.push({type:Vd.literal,value:l.value});else if($p(l))"number"==typeof i&&s.push({type:Vd.literal,value:r.getNumberFormat(t).format(i)});else{var f=l.value;if(!o||!(f in o))throw new Qd(f,a);var h=o[f];if(Bp(l))h&&"string"!=typeof h&&"number"!=typeof h||(h="string"==typeof h||"number"==typeof h?String(h):""),s.push({type:"string"==typeof h?Vd.literal:Vd.object,value:h});else if(Np(l)){var p="string"==typeof l.style?n.date[l.style]:Gp(l.style)?l.style.parsedOptions:void 0;s.push({type:Vd.literal,value:r.getDateTimeFormat(t,p).format(h)})}else if(Hp(l)){p="string"==typeof l.style?n.time[l.style]:Gp(l.style)?l.style.parsedOptions:n.time.medium;s.push({type:Vd.literal,value:r.getDateTimeFormat(t,p).format(h)})}else if(Mp(l)){(p="string"==typeof l.style?n.number[l.style]:Vp(l.style)?l.style.parsedOptions:void 0)&&p.scale&&(h*=p.scale||1),s.push({type:Vd.literal,value:r.getNumberFormat(t,p).format(h)})}else{if(qp(l)){var d=l.children,m=l.value,v=o[m];if(!Zd(v))throw new Kd(m,"function",a);var g=v(Yd(d,t,r,n,o,i).map((function(e){return e.value})));Array.isArray(g)||(g=[g]),s.push.apply(s,g.map((function(e){return{type:"string"==typeof e?Vd.literal:Vd.object,value:e}})))}if(zp(l)){if(!(y=l.options[h]||l.options.other))throw new Wd(l.value,h,Object.keys(l.options),a);s.push.apply(s,Yd(y.value,t,r,n,o))}else if(Up(l)){var y;if(!(y=l.options["=".concat(h)])){if(!Intl.PluralRules)throw new Gd('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Ud.MISSING_INTL_API,a);var b=r.getPluralRules(t,{type:l.pluralType}).select(h-(l.offset||0));y=l.options[b]||l.options.other}if(!y)throw new Wd(l.value,h,Object.keys(l.options),a);s.push.apply(s,Yd(y.value,t,r,n,o,h-(l.offset||0)))}else;}}}return function(e){return e.length<2?e:e.reduce((function(e,t){var r=e[e.length-1];return r&&r.type===Vd.literal&&t.type===Vd.literal?r.value+=t.value:e.push(t),e}),[])}(s)}function Xd(e,t){return t?Object.keys(e).reduce((function(r,n){var o,i;return r[n]=(o=e[n],(i=t[n])?Fp(Fp(Fp({},o||{}),i||{}),Object.keys(o).reduce((function(e,t){return e[t]=Fp(Fp({},o[t]),i[t]||{}),e}),{})):o),r}),Fp({},e)):e}function Jd(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(Vd||(Vd={}));var em,tm=function(){function e(t,r,n,o){var i=this;if(void 0===r&&(r=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=i.formatToParts(e);if(1===t.length)return t[0].value;var r=t.reduce((function(e,t){return e.length&&t.type===Vd.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e}),[]);return r.length<=1?r[0]||"":r},this.formatToParts=function(e){return Yd(i.ast,i.locales,i.formatters,i.formats,e,void 0,i.message)},this.resolvedOptions=function(){var e;return{locale:(null===(e=i.resolvedLocale)||void 0===e?void 0:e.toString())||Intl.NumberFormat.supportedLocalesOf(i.locales)[0]}},this.getAst=function(){return i.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var a=o||{},s=(a.formatters,jp(a,["formatters"]));this.ast=e.__parse(t,Fp(Fp({},s),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Xd(e.formats,n),this.formatters=o&&o.formatters||function(e){return void 0===e&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Id((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,Tp([void 0],t,!1)))}),{cache:Jd(e.number),strategy:qd.variadic}),getDateTimeFormat:Id((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,Tp([void 0],t,!1)))}),{cache:Jd(e.dateTime),strategy:qd.variadic}),getPluralRules:Id((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,Tp([void 0],t,!1)))}),{cache:Jd(e.pluralRules),strategy:qd.variadic})}}(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(e){if(void 0!==Intl.Locale){var t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])}},e.__parse=Rd,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();!function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"}(em||(em={}));var rm=function(e){function t(r,n,o){var i=this,a=o?o instanceof Error?o:new Error(String(o)):void 0;return(i=e.call(this,"[@formatjs/intl Error ".concat(r,"] ").concat(n,"\n").concat(a?"\n".concat(a.message,"\n").concat(a.stack):""))||this).code=r,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(i,t),i}return Op(t,e),t}(Error),nm=function(e){function t(t,r){return e.call(this,em.UNSUPPORTED_FORMATTER,t,r)||this}return Op(t,e),t}(rm),om=function(e){function t(t,r){return e.call(this,em.INVALID_CONFIG,t,r)||this}return Op(t,e),t}(rm),im=function(e){function t(t,r){return e.call(this,em.MISSING_DATA,t,r)||this}return Op(t,e),t}(rm),am=function(e){function t(t,r,n){var o=e.call(this,em.FORMAT_ERROR,"".concat(t,"\nLocale: ").concat(r,"\n"),n)||this;return o.locale=r,o}return Op(t,e),t}(rm),sm=function(e){function t(t,r,n,o){var i=e.call(this,"".concat(t,"\nMessageID: ").concat(null==n?void 0:n.id,"\nDefault Message: ").concat(null==n?void 0:n.defaultMessage,"\nDescription: ").concat(null==n?void 0:n.description,"\n"),r,o)||this;return i.descriptor=n,i.locale=r,i}return Op(t,e),t}(am),cm=function(e){function t(t,r){var n=e.call(this,em.MISSING_TRANSLATION,'Missing message: "'.concat(t.id,'" for locale "').concat(r,'", using ').concat(t.defaultMessage?"default message (".concat("string"==typeof t.defaultMessage?t.defaultMessage:t.defaultMessage.map((function(e){var t;return null!==(t=e.value)&&void 0!==t?t:JSON.stringify(e)})).join(),")"):"id"," as fallback."))||this;return n.descriptor=t,n}return Op(t,e),t}(rm);function um(e,t,r){return void 0===r&&(r={}),t.reduce((function(t,n){return n in e?t[n]=e[n]:n in r&&(t[n]=r[n]),t}),{})}var lm={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:function(e){0},onWarn:function(e){0}};function fm(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function hm(e,t,r,n){var o,i=e&&e[t];if(i&&(o=i[r]),o)return o;n(new nm("No ".concat(t," format named: ").concat(r)))}function pm(e,t,r){if(void 0===r&&(r=Error),!e)throw new r(t)}function dm(e,t){return Object.keys(e).reduce((function(r,n){return r[n]=Fp({timeZone:t},e[n]),r}),{})}function mm(e,t){return Object.keys(Fp(Fp({},e),t)).reduce((function(r,n){return r[n]=Fp(Fp({},e[n]||{}),t[n]||{}),r}),{})}function vm(e,t){if(!t)return e;var r=tm.formats;return Fp(Fp(Fp({},r),e),{date:mm(dm(r.date,t),dm(e.date||{},t)),time:mm(dm(r.time,t),dm(e.time||{},t))})}var gm=function(e,t,r,n,o){var i=e.locale,a=e.formats,s=e.messages,c=e.defaultLocale,u=e.defaultFormats,l=e.fallbackOnEmptyString,f=e.onError,h=e.timeZone,p=e.defaultRichTextElements;void 0===r&&(r={id:""});var d=r.id,m=r.defaultMessage;pm(!!d,"[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var v=String(d),g=s&&Object.prototype.hasOwnProperty.call(s,v)&&s[v];if(Array.isArray(g)&&1===g.length&&g[0].type===Rp.literal)return g[0].value;if(!n&&g&&"string"==typeof g&&!p)return g.replace(/'\{(.*?)\}'/gi,"{$1}");if(n=Fp(Fp({},p),n||{}),a=vm(a,h),u=vm(u,h),!g){if(!1===l&&""===g)return g;if((!m||i&&i.toLowerCase()!==c.toLowerCase())&&f(new cm(r,i)),m)try{return t.getMessageFormat(m,c,u,o).format(n)}catch(e){return f(new sm('Error formatting default message for: "'.concat(v,'", rendering default message verbatim'),i,r,e)),"string"==typeof m?m:v}return v}try{return t.getMessageFormat(g,i,a,Fp({formatters:t},o||{})).format(n)}catch(e){f(new sm('Error formatting message: "'.concat(v,'", using ').concat(m?"default message":"id"," as fallback."),i,r,e))}if(m)try{return t.getMessageFormat(m,c,u,o).format(n)}catch(e){f(new sm('Error formatting the default message for: "'.concat(v,'", rendering message verbatim'),i,r,e))}return"string"==typeof g?g:"string"==typeof m?m:v},ym=["style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem"];function bm(e,t,r){var n=e.locale,o=e.formats,i=e.onError;void 0===r&&(r={});var a=r.format,s=a&&hm(o,"number",a,i)||{};return t(n,um(r,ym,s))}function wm(e,t,r,n){void 0===n&&(n={});try{return bm(e,t,n).format(r)}catch(t){e.onError(new am("Error formatting number.",e.locale,t))}return String(r)}function xm(e,t,r,n){void 0===n&&(n={});try{return bm(e,t,n).formatToParts(r)}catch(t){e.onError(new am("Error formatting number.",e.locale,t))}return[]}var Em=["numeric","style"];function km(e,t,r,n,o){void 0===o&&(o={}),n||(n="second"),Intl.RelativeTimeFormat||e.onError(new Gd('Intl.RelativeTimeFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-relativetimeformat"\n',Ud.MISSING_INTL_API));try{return function(e,t,r){var n=e.locale,o=e.formats,i=e.onError;void 0===r&&(r={});var a=r.format,s=!!a&&hm(o,"relative",a,i)||{};return t(n,um(r,Em,s))}(e,t,o).format(r,n)}catch(t){e.onError(new am("Error formatting relative time.",e.locale,t))}return String(r)}var Sm=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function Dm(e,t,r,n){var o=e.locale,i=e.formats,a=e.onError,s=e.timeZone;void 0===n&&(n={});var c=n.format,u=Fp(Fp({},s&&{timeZone:s}),c&&hm(i,t,c,a)),l=um(n,Sm,u);return"time"!==t||l.hour||l.minute||l.second||l.timeStyle||l.dateStyle||(l=Fp(Fp({},l),{hour:"numeric",minute:"numeric"})),r(o,l)}function Pm(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=r[0],i=r[1],a=void 0===i?{}:i,s="string"==typeof o?new Date(o||0):o;try{return Dm(e,"date",t,a).format(s)}catch(t){e.onError(new am("Error formatting date.",e.locale,t))}return String(s)}function Am(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=r[0],i=r[1],a=void 0===i?{}:i,s="string"==typeof o?new Date(o||0):o;try{return Dm(e,"time",t,a).format(s)}catch(t){e.onError(new am("Error formatting time.",e.locale,t))}return String(s)}function Cm(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=r[0],i=r[1],a=r[2],s=void 0===a?{}:a,c=e.timeZone,u=e.locale,l=e.onError,f=um(s,Sm,c?{timeZone:c}:{});try{return t(u,f).formatRange(o,i)}catch(t){l(new am("Error formatting date time range.",e.locale,t))}return String(o)}function Om(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=r[0],i=r[1],a=void 0===i?{}:i,s="string"==typeof o?new Date(o||0):o;try{return Dm(e,"date",t,a).formatToParts(s)}catch(t){e.onError(new am("Error formatting date.",e.locale,t))}return[]}function Fm(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=r[0],i=r[1],a=void 0===i?{}:i,s="string"==typeof o?new Date(o||0):o;try{return Dm(e,"time",t,a).formatToParts(s)}catch(t){e.onError(new am("Error formatting time.",e.locale,t))}return[]}var jm=["type"];function Tm(e,t,r,n){var o=e.locale,i=e.onError;void 0===n&&(n={}),Intl.PluralRules||i(new Gd('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Ud.MISSING_INTL_API));var a=um(n,jm);try{return t(o,a).select(r)}catch(e){i(new am("Error formatting plural.",o,e))}return"other"}var _m=["type","style"],Rm=Date.now();function Im(e,t,r,n){void 0===n&&(n={});var o=Lm(e,t,r,n).reduce((function(e,t){var r=t.value;return"string"!=typeof r?e.push(r):"string"==typeof e[e.length-1]?e[e.length-1]+=r:e.push(r),e}),[]);return 1===o.length?o[0]:0===o.length?"":o}function Lm(e,t,r,n){var o=e.locale,i=e.onError;void 0===n&&(n={}),Intl.ListFormat||i(new Gd('Intl.ListFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-listformat"\n',Ud.MISSING_INTL_API));var a=um(n,_m);try{var s={},c=r.map((function(e,t){if("object"==typeof e){var r=function(e){return"".concat(Rm,"_").concat(e,"_").concat(Rm)}(t);return s[r]=e,r}return String(e)}));return t(o,a).formatToParts(c).map((function(e){return"literal"===e.type?e:Fp(Fp({},e),{value:s[e.value]||e.value})}))}catch(e){i(new am("Error formatting list.",o,e))}return r}var Bm=["style","type","fallback","languageDisplay"];function Mm(e,t,r,n){var o=e.locale,i=e.onError;Intl.DisplayNames||i(new Gd('Intl.DisplayNames is not available in this environment.\nTry polyfilling it using "@formatjs/intl-displaynames"\n',Ud.MISSING_INTL_API));var a=um(n,Bm);try{return t(o,a).of(r)}catch(e){i(new am("Error formatting display name.",o,e))}}function Nm(e){e.onWarn&&e.defaultRichTextElements&&function(e){return"string"==typeof(e?e[Object.keys(e)[0]]:void 0)}(e.messages||{})&&e.onWarn('[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled. \nPlease consider using "@formatjs/cli" to pre-compile your messages for performance.\nFor more details see https://formatjs.io/docs/getting-started/message-distribution')}function Hm(e,t){var r=function(e){void 0===e&&(e={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}});var t=Intl.RelativeTimeFormat,r=Intl.ListFormat,n=Intl.DisplayNames,o=Id((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,Tp([void 0],t,!1)))}),{cache:fm(e.dateTime),strategy:qd.variadic}),i=Id((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,Tp([void 0],t,!1)))}),{cache:fm(e.number),strategy:qd.variadic}),a=Id((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,Tp([void 0],t,!1)))}),{cache:fm(e.pluralRules),strategy:qd.variadic});return{getDateTimeFormat:o,getNumberFormat:i,getMessageFormat:Id((function(e,t,r,n){return new tm(e,t,r,Fp({formatters:{getNumberFormat:i,getDateTimeFormat:o,getPluralRules:a}},n||{}))}),{cache:fm(e.message),strategy:qd.variadic}),getRelativeTimeFormat:Id((function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new(t.bind.apply(t,Tp([void 0],e,!1)))}),{cache:fm(e.relativeTime),strategy:qd.variadic}),getPluralRules:a,getListFormat:Id((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(r.bind.apply(r,Tp([void 0],e,!1)))}),{cache:fm(e.list),strategy:qd.variadic}),getDisplayNames:Id((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(n.bind.apply(n,Tp([void 0],e,!1)))}),{cache:fm(e.displayNames),strategy:qd.variadic})}}(t),n=Fp(Fp({},lm),e),o=n.locale,i=n.defaultLocale,a=n.onError;return o?!Intl.NumberFormat.supportedLocalesOf(o).length&&a?a(new im('Missing locale data for locale: "'.concat(o,'" in Intl.NumberFormat. Using default locale: "').concat(i,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(o).length&&a&&a(new im('Missing locale data for locale: "'.concat(o,'" in Intl.DateTimeFormat. Using default locale: "').concat(i,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):(a&&a(new om('"locale" was not configured, using "'.concat(i,'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))),n.locale=n.defaultLocale||"en"),Nm(n),Fp(Fp({},n),{formatters:r,formatNumber:wm.bind(null,n,r.getNumberFormat),formatNumberToParts:xm.bind(null,n,r.getNumberFormat),formatRelativeTime:km.bind(null,n,r.getRelativeTimeFormat),formatDate:Pm.bind(null,n,r.getDateTimeFormat),formatDateToParts:Om.bind(null,n,r.getDateTimeFormat),formatTime:Am.bind(null,n,r.getDateTimeFormat),formatDateTimeRange:Cm.bind(null,n,r.getDateTimeFormat),formatTimeToParts:Fm.bind(null,n,r.getDateTimeFormat),formatPlural:Tm.bind(null,n,r.getPluralRules),formatMessage:gm.bind(null,n,r),$t:gm.bind(null,n,r),formatList:Im.bind(null,n,r.getListFormat),formatListToParts:Lm.bind(null,n,r.getListFormat),formatDisplayName:Mm.bind(null,n,r.getDisplayNames)})}function zm(e){pm(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var Um=Fp(Fp({},lm),{textComponent:Yl.Fragment});var $m="undefined"==typeof window||window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?Yl.createContext(null):window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=Yl.createContext(null)),qm=($m.Consumer,$m.Provider),Vm=$m;function Gm(e){return{locale:e.locale,timeZone:e.timeZone,fallbackOnEmptyString:e.fallbackOnEmptyString,formats:e.formats,textComponent:e.textComponent,messages:e.messages,defaultLocale:e.defaultLocale,defaultFormats:e.defaultFormats,onError:e.onError,onWarn:e.onWarn,wrapRichTextChunksInFragment:e.wrapRichTextChunksInFragment,defaultRichTextElements:e.defaultRichTextElements}}function Wm(e){return e?Object.keys(e).reduce((function(t,r){var n,o=e[r];return t[r]=Zd(o)?(n=o,function(e){return n(Yl.Children.toArray(e))}):o,t}),{}):e}var Km=function(e,t,r,n){for(var o=[],i=4;i<arguments.length;i++)o[i-4]=arguments[i];var a=Wm(n),s=gm.apply(void 0,Tp([e,t,r,a],o,!1));return Array.isArray(s)?Yl.Children.toArray(s):s},Qm=function(e,t){var r=e.defaultRichTextElements,n=jp(e,["defaultRichTextElements"]),o=Wm(r),i=Hm(Fp(Fp(Fp({},Um),n),{defaultRichTextElements:o}),t),a={locale:i.locale,timeZone:i.timeZone,fallbackOnEmptyString:i.fallbackOnEmptyString,formats:i.formats,defaultLocale:i.defaultLocale,defaultFormats:i.defaultFormats,messages:i.messages,onError:i.onError,defaultRichTextElements:o};return Fp(Fp({},i),{formatMessage:Km.bind(null,a,i.formatters),$t:Km.bind(null,a,i.formatters)})};!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.cache={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}},t.state={cache:t.cache,intl:Qm(Gm(t.props),t.cache),prevConfig:Gm(t.props)},t}Op(t,e),t.getDerivedStateFromProps=function(e,t){var r=t.prevConfig,n=t.cache,o=Gm(e);return function(e,t){if(e===t)return!0;if(!e||!t)return!1;var r=Object.keys(e),n=Object.keys(t),o=r.length;if(n.length!==o)return!1;for(var i=0;i<o;i++){var a=r[i];if(e[a]!==t[a]||!Object.prototype.hasOwnProperty.call(t,a))return!1}return!0}(r,o)?null:{intl:Qm(o,n),prevConfig:o}},t.prototype.render=function(){return zm(this.state.intl),Yl.createElement(qm,{value:this.state.intl},this.props.children)},t.displayName="IntlProvider",t.defaultProps=Um}(Yl.PureComponent);function Zm(){var e=Yl.useContext(Vm);return zm(e),e}var Ym,Xm;!function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"}(Ym||(Ym={})),function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"}(Xm||(Xm={}));var Jm=function(e){var t=Zm(),r=e.value,n=e.children,o=jp(e,["value","children"]);return n(t.formatNumberToParts(r,o))};Jm.displayName="FormattedNumberParts";function ev(e){var t=function(t){var r=Zm(),n=t.value,o=t.children,i=jp(t,["value","children"]),a="string"==typeof n?new Date(n||0):n;return o("formatDate"===e?r.formatDateToParts(a,i):r.formatTimeToParts(a,i))};return t.displayName=Xm[e],t}function tv(e){var t=function(t){var r=Zm(),n=t.value,o=t.children,i=jp(t,["value","children"]),a=r[e](n,i);if("function"==typeof o)return o(a);var s=r.textComponent||Yl.Fragment;return Yl.createElement(s,null,a)};return t.displayName=Ym[e],t}function rv(e){return e}function nv(e){return e}Jm.displayName="FormattedNumberParts";tv("formatDate"),tv("formatTime"),tv("formatNumber"),tv("formatList"),tv("formatDisplayName"),ev("formatDate"),ev("formatTime");var ov=r(6851),iv=r.n(ov),av=r(1221),sv=r.n(av);const cv=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g,uv=Object.hasOwnProperty;class lv{constructor(){this.occurrences,this.reset()}slug(e,t){const r=this;let n=function(e,t){if("string"!=typeof e)return"";t||(e=e.toLowerCase());return e.replace(cv,"").replace(/ /g,"-")}(e,!0===t);const o=n;for(;uv.call(r.occurrences,n);)r.occurrences[o]++,n=o+"-"+r.occurrences[o];return r.occurrences[n]=0,n}reset(){this.occurrences=Object.create(null)}}function fv(e){return new RegExp("^("+e+")$","i")}const hv=new lv;const pv="object"==typeof self?self:globalThis,dv=e=>((e,t)=>{const r=(t,r)=>(e.set(r,t),t),n=o=>{if(e.has(o))return e.get(o);const[i,a]=t[o];switch(i){case 0:case-1:return r(a,o);case 1:{const e=r([],o);for(const t of a)e.push(n(t));return e}case 2:{const e=r({},o);for(const[t,r]of a)e[n(t)]=n(r);return e}case 3:return r(new Date(a),o);case 4:{const{source:e,flags:t}=a;return r(new RegExp(e,t),o)}case 5:{const e=r(new Map,o);for(const[t,r]of a)e.set(n(t),n(r));return e}case 6:{const e=r(new Set,o);for(const t of a)e.add(n(t));return e}case 7:{const{name:e,message:t}=a;return r(new pv[e](t),o)}case 8:return r(BigInt(a),o);case"BigInt":return r(Object(BigInt(a)),o)}return r(new pv[i](a),o)};return n})(new Map,e)(0),mv="",{toString:vv}={},{keys:gv}=Object,yv=e=>{const t=typeof e;if("object"!==t||!e)return[0,t];const r=vv.call(e).slice(8,-1);switch(r){case"Array":return[1,mv];case"Object":return[2,mv];case"Date":return[3,mv];case"RegExp":return[4,mv];case"Map":return[5,mv];case"Set":return[6,mv]}return r.includes("Array")?[1,r]:r.includes("Error")?[7,r]:[2,r]},bv=([e,t])=>0===e&&("function"===t||"symbol"===t),wv=(e,{json:t,lossy:r}={})=>{const n=[];return((e,t,r,n)=>{const o=(e,t)=>{const o=n.push(e)-1;return r.set(t,o),o},i=n=>{if(r.has(n))return r.get(n);let[a,s]=yv(n);switch(a){case 0:{let t=n;switch(s){case"bigint":a=8,t=n.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);t=null;break;case"undefined":return o([-1],n)}return o([a,t],n)}case 1:{if(s)return o([s,[...n]],n);const e=[],t=o([a,e],n);for(const t of n)e.push(i(t));return t}case 2:{if(s)switch(s){case"BigInt":return o([s,n.toString()],n);case"Boolean":case"Number":case"String":return o([s,n.valueOf()],n)}if(t&&"toJSON"in n)return i(n.toJSON());const r=[],c=o([a,r],n);for(const t of gv(n))!e&&bv(yv(n[t]))||r.push([i(t),i(n[t])]);return c}case 3:return o([a,n.toISOString()],n);case 4:{const{source:e,flags:t}=n;return o([a,{source:e,flags:t}],n)}case 5:{const t=[],r=o([a,t],n);for(const[r,o]of n)(e||!bv(yv(r))&&!bv(yv(o)))&&t.push([i(r),i(o)]);return r}case 6:{const t=[],r=o([a,t],n);for(const r of n)!e&&bv(yv(r))||t.push(i(r));return r}}const{message:c}=n;return o([a,{name:s,message:c}],n)};return i})(!(t||r),!!t,new Map,n)(e),n},xv="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?dv(wv(e,t)):structuredClone(e):(e,t)=>dv(wv(e,t));function Ev(e,t){const{ordered:r=!1,tight:n=!1,prefix:o}=t,i={type:"list",ordered:r,spread:!1,children:[]};let a=Number.POSITIVE_INFINITY,s=-1;for(;++s<e.length;)e[s].depth<a&&(a=e[s].depth);for(s=-1;++s<e.length;)e[s].depth-=a-1;for(s=-1;++s<e.length;)kv(e[s],i,{ordered:r,tight:n,prefix:o});return i}function kv(e,t,r){let n=-1;const o=t.children[t.children.length-1];if("list"===t.type)if(1===e.depth)t.children.push({type:"listItem",spread:!1,children:[{type:"paragraph",children:[{type:"link",title:null,url:"#"+(r.prefix||"")+e.id,children:Sv(e.children)}]}]});else if(t.children.length>0){kv(e,t.children[t.children.length-1],r)}else{const n={type:"listItem",spread:!1,children:[]};t.children.push(n),kv(e,n,r)}else if(o&&"list"===o.type)e.depth--,kv(e,o,r);else{const n={type:"list",ordered:r.ordered,spread:!1,children:[]};t.children.push(n),e.depth--,kv(e,n,r)}if("list"!==t.type||r.tight)t.spread=!r.tight;else for(t.spread=!1;++n<t.children.length;)if(t.children[n].children.length>1){t.spread=!0;break}}function Sv(e){const t=[];let r=-1;for(;++r<e.length;){const n=Dv(e[r]);Array.isArray(n)?t.push(...n):t.push(n)}return t}function Dv(e){if("footnoteReference"===e.type)return[];if("link"===e.type||"linkReference"===e.type)return Sv(e.children);if("children"in e){const{children:t,position:r,...n}=e;return Object.assign(xv(n),{children:Sv(e.children)})}const{position:t,...r}=e;return xv(r)}function Pv(e,t){const r=t||{},n=r.heading?fv(r.heading):void 0,o=function(e,t,r){const n="children"in e?e.children.length:0,o=r.skip?fv(r.skip):void 0,i=jn(r.parents||function(t){return t===e}),a=[];let s,c,u;return hv.reset(),Hn(e,"heading",(function(e,n,l){const f=kt(e,{includeImageAlt:!1}),h=e.data&&e.data.hProperties&&e.data.hProperties.id,p=hv.slug(h||f);if(i(l)){if(void 0!==n&&t&&!s&&t.test(f))return s=n+1,void(u=e);void 0!==n&&u&&!c&&e.depth<=u.depth&&(c=n),!c&&t||r.maxDepth&&!(e.depth<=r.maxDepth)||o&&o.test(f)||a.push({depth:e.depth,children:e.children,id:p})}})),{index:void 0===s?-1:s,endIndex:void 0===s?-1:c||n,map:a}}(e,n,r);return{index:n?o.index:void 0,endIndex:n?o.endIndex:void 0,map:o.map.length>0?Ev(o.map,r):void 0}}function Av(e,t){const r=[{type:"text",value:"↩"}];return t>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),r}function Cv(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}const Ov={}.hasOwnProperty,Fv={};function jv(e,t){e.position&&(t.position=function(e){const t=Ji(e),r=Xi(e);if(t&&r)return{start:t,end:r}}(e))}function Tv(e,t){let r=t;if(e&&e.data){const t=e.data.hName,n=e.data.hChildren,o=e.data.hProperties;if("string"==typeof t)if("element"===r.type)r.tagName=t;else{r={type:"element",tagName:t,properties:{},children:"children"in r?r.children:[r]}}"element"===r.type&&o&&Object.assign(r.properties,xv(o)),"children"in r&&r.children&&null!=n&&(r.children=n)}return r}function _v(e,t){const r=t.data||{},n=!("value"in t)||Ov.call(r,"hProperties")||Ov.call(r,"hChildren")?{type:"element",tagName:"div",properties:{},children:e.all(t)}:{type:"text",value:t.value};return e.patch(t,n),e.applyData(t,n)}function Rv(e,t){const r=[];let n=-1;for(t&&r.push({type:"text",value:"\n"});++n<e.length;)n&&r.push({type:"text",value:"\n"}),r.push(e[n]);return t&&e.length>0&&r.push({type:"text",value:"\n"}),r}function Iv(e){let t=0,r=e.charCodeAt(t);for(;9===r||32===r;)t++,r=e.charCodeAt(t);return e.slice(t)}function Lv(e,t){const r=function(e,t){const r=t||Fv,n=new Map,o=new Map,i=new Map,a={...ia,...r.handlers},s={all:function(e){const t=[];if("children"in e){const r=e.children;let n=-1;for(;++n<r.length;){const o=s.one(r[n],e);if(o){if(n&&"break"===r[n-1].type&&(Array.isArray(o)||"text"!==o.type||(o.value=Iv(o.value)),!Array.isArray(o)&&"element"===o.type)){const e=o.children[0];e&&"text"===e.type&&(e.value=Iv(e.value))}Array.isArray(o)?t.push(...o):t.push(o)}}}return t},applyData:Tv,definitionById:n,footnoteById:o,footnoteCounts:i,footnoteOrder:[],handlers:a,one:function(e,t){const r=e.type,n=s.handlers[r];if(Ov.call(s.handlers,r)&&n)return n(s,e,t);if(s.options.passThrough&&s.options.passThrough.includes(r)){if("children"in e){const{children:t,...r}=e,n=xv(r);return n.children=s.all(e),n}return xv(e)}return(s.options.unknownHandler||_v)(s,e,t)},options:r,patch:jv,wrap:Rv};return Hn(e,(function(e){if("definition"===e.type||"footnoteDefinition"===e.type){const t="definition"===e.type?n:o,r=String(e.identifier).toUpperCase();t.has(r)||t.set(r,e)}})),s}(e,t),n=r.one(e,void 0),o=function(e){const t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||Av,n=e.options.footnoteBackLabel||Cv,o=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",a=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let c=-1;for(;++c<e.footnoteOrder.length;){const o=e.footnoteById.get(e.footnoteOrder[c]);if(!o)continue;const i=e.all(o),a=String(o.identifier).toUpperCase(),u=Qi(a.toLowerCase());let l=0;const f=[],h=e.footnoteCounts.get(a);for(;void 0!==h&&++l<=h;){f.length>0&&f.push({type:"text",value:" "});let e="string"==typeof r?r:r(c,l);"string"==typeof e&&(e={type:"text",value:e}),f.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+u+(l>1?"-"+l:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof n?n:n(c,l),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}const p=i[i.length-1];if(p&&"element"===p.type&&"p"===p.tagName){const e=p.children[p.children.length-1];e&&"text"===e.type?e.value+=" ":p.children.push({type:"text",value:" "}),p.children.push(...f)}else i.push(...f);const d={type:"element",tagName:"li",properties:{id:t+"fn-"+u},children:e.wrap(i,!0)};e.patch(o,d),s.push(d)}if(0!==s.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...xv(a),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:"\n"}]}}(r),i=Array.isArray(n)?{type:"root",children:n}:n||{type:"root",children:[]};return o&&i.children.push({type:"text",value:"\n"},o),i}var Bv=r(5110),Mv=r(9294),Nv=r.n(Mv);const Hv=function(e,t,r,n){const o=Yl.useRef(r),i=Yl.useRef(n);Yl.useEffect((()=>{o.current=r,i.current=n})),Yl.useEffect((()=>{const r=e&&"current"in e?e.current:e;if(!r)return;let n=0;function a(...e){n||o.current.apply(this,e)}r.addEventListener(t,a);const s=i.current;return()=>{n=1,r.removeEventListener(t,a),s&&s()}}),[e,t])};
1
+ (()=>{var e,t,r,n,o={6963:(e,t,r)=>{"use strict";r.d(t,{l_:()=>$u,fy:()=>Lu,D7:()=>pw,De:()=>qu,$B:()=>Al,ql:()=>Oy,cu:()=>By,IA:()=>My,fH:()=>Vm,$q:()=>Tl,aC:()=>Vu,Wp:()=>vb,UG:()=>cw,Hn:()=>Tf,Sy:()=>jb,ER:()=>Dl,oI:()=>Wu,Lj:()=>Qu,f6:()=>wp,q4:()=>Dw,rK:()=>Hu,US:()=>kw,W3:()=>Sb,nC:()=>Wy,vJ:()=>Dp,xg:()=>el,WA:()=>Yy,iv:()=>cp,Em:()=>nv,vU:()=>rv,He:()=>Ew,Ak:()=>Fb,oe:()=>Bu,V5:()=>Sw,N0:()=>Bl,CB:()=>Ll,F4:()=>Pp,_f:()=>Xy,j0:()=>qf(),JH:()=>bl,FB:()=>Ml,YB:()=>Pl,WY:()=>du,zo:()=>Ap,ol:()=>Pb,r5:()=>xg,UK:()=>kg,bd:()=>hb,r3:()=>Sg,CQ:()=>Jy,Nr:()=>vw,jr:()=>mw,zX:()=>Hv,Rs:()=>ww,y1:()=>pg,cw:()=>Zm,mP:()=>mb,Rr:()=>xw,tT:()=>Cb,D2:()=>yw,D9:()=>dw,v9:()=>Ab,CM:()=>Ob,LU:()=>eb,TC:()=>ab,fB:()=>gw});var n={};r.r(n),r.d(n,{asciiAlpha:()=>It,asciiAlphanumeric:()=>Lt,asciiAtext:()=>Bt,asciiControl:()=>Mt,asciiDigit:()=>Nt,asciiHexDigit:()=>Ht,asciiPunctuation:()=>zt,markdownLineEnding:()=>Ut,markdownLineEndingOrSpace:()=>$t,markdownSpace:()=>qt,unicodePunctuation:()=>Vt,unicodeWhitespace:()=>Gt});var o={};r.r(o),r.d(o,{attentionMarkers:()=>on,contentInitial:()=>Xr,disable:()=>an,document:()=>Yr,flow:()=>en,flowInitial:()=>Jr,insideSpan:()=>nn,string:()=>tn,text:()=>rn});var i={};r.r(i),r.d(i,{codes:()=>Vi,constants:()=>Gi,types:()=>Wi,values:()=>Ki});var a={};r.r(a),r.d(a,{hasBrowserEnv:()=>kc,hasStandardBrowserEnv:()=>Sc,hasStandardBrowserWebWorkerEnv:()=>Pc});var s=r(1176),c=r.n(s),u=r(2519),l=r.n(u);const f=_.cloneDeep;var h=r.n(f);const p=_.get;var d=r.n(p);const m=_.isEmpty;var v=r.n(m);const g=_.isEqual;var y=r.n(g);const b=_.omit;var w=r.n(b);const x=_.set;var E=r.n(x);const k=_.toPath;var S=r.n(k);const D=_.unset;var P=r.n(D);const A=_.merge;var C=r.n(A);const O=_.keys;var F=r.n(O),j=r(7625),T=r.n(j),R=r(5729),I=r.n(R),L=r(6119),B=r.n(L),M=r(1700),N=r.n(M),H=r(8887),z=r.n(H),U={},$={};function q(e,t){for(var r=t,n=0;n<e.length;n++){var o=n===e.length-1,i=e.charAt(n),a=r[i]||(r[i]={chars:{}});o&&(a.self=e),r=a.chars}}function V(e){if(0===e.length)return U;for(var t={},r=0,n=e;r<n.length;r++){q(n[r],t)}return t}function G(e){if(0===e.length)return $;for(var t={},r=0,n=e;r<n.length;r++){t[n[r]]=!0}return t}var W={},K={type:"String",optional:!0};function Q(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 Z(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 a=0,s=i;a<s.length;a++){var c=s[a];(t[c]||(t[c]=[])).push(o)}}return t}(e),r={},n=0,o=Object.keys(t);n<o.length;n++){var i=o[n],a=t[i];a&&(r[i]=Q(a))}return r}var Y=function(){return Y=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},Y.apply(this,arguments)},X={},J={wildcard:!0};function ee(e,t){return function(r,n){return!0===n?e:t(!0===r?e:r,n)}}function te(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=Y({},t),o=0,i=Object.entries(r);o<i.length;o++){var a=i[o],s=a[0],c=a[1],u=e[s];n[s]=u(t[s],c)}return n}}function re(e,t){return void 0!==t?t:e}function ne(e,t){return t?e?e.concat(t):t:e}function oe(e,t){if(!t)return e;if(!e)return t;for(var r=Y({},e),n=0,o=Object.entries(t);n<o.length;n++){var i=o[n],a=i[0],s=i[1];if(s){var c=e[a];r[a]=c?c.concat(s):s}else delete r[a]}return r}var ie=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}}(te({baseSyntax:re,tag:ee(J,te({wildcard:re})),ids:re,classNames:re,namespace:ee(J,te({wildcard:re})),combinators:ne,attributes:te({operators:ne,caseSensitivityModifiers:ne,unknownCaseSensitivityModifiers:re}),pseudoClasses:te({unknown:re,definitions:oe}),pseudoElements:te({unknown:re,notation:re,definitions:function(e,t){return function(r,n){return t(e(r),e(n))}}((function(e){return Array.isArray(e)?{NoArgument:e}:e}),oe)})})),ae={tag:{},ids:!0,classNames:!0,combinators:[],pseudoElements:{unknown:"reject",notation:"singleColon",definitions:["first-letter","first-line"]},pseudoClasses:{unknown:"reject",definitions:{NoArgument:["link","visited","active"]}}},se=ie(ae,{tag:{wildcard:!0},combinators:[">","+"],attributes:{unknownCaseSensitivityModifiers:"reject",operators:["=","~=","|="]},pseudoElements:{definitions:["before","after"]},pseudoClasses:{unknown:"reject",definitions:{NoArgument:["hover","focus","first-child"],String:["lang"]}}}),ce=ie(se,{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"]}}}),ue=ie(ce,{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"],Formula:["nth-col","nth-last-col"],String:["dir"],FormulaOfSelector:["nth-child","nth-last-child"],Selector:["current","is","where","has"]}}}),le={css1:ae,css2:se,css3:ce,"selectors-3":ce,"selectors-4":ue,latest:ue,progressive:ie(ue,{pseudoElements:{unknown:"accept"},pseudoClasses:{unknown:"accept"},attributes:{unknownCaseSensitivityModifiers:"accept"}})};function fe(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||"-"===e||"_"===e||"\\"===e||e>=" "}function he(e){return e>="a"&&e<="f"||e>="A"&&e<="F"||e>="0"&&e<="9"}var pe={n:"\n",r:"\r",t:"\t",f:"\f","\\":"\\"},de={" ":!0,"\t":!0,"\n":!0,"\r":!0,"\f":!0},me={'"':!0,"'":!0},ve={0:!0,1:!0,2:!0,3:!0,4:!0,5:!0,6:!0,7:!0,8:!0,9:!0};var ge="css-selector-parser parse error: ";var ye=function(){return ye=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},ye.apply(this,arguments)};function be(e){return function(t,r){var n;return(n={})[t]=function(t){return ye({type:e},t)},n[r]=function(t){return"object"==typeof t&&null!==t&&t.type===e},n}}ye(ye(ye(ye(ye(ye(ye(ye(ye(ye(ye(ye(ye(ye(ye(ye({},be("Selector")("selector","isSelector")),be("Rule")("rule","isRule")),be("TagName")("tagName","isTagName")),be("Id")("id","isId")),be("ClassName")("className","isClassName")),be("WildcardTag")("wildcardTag","isWildcardTag")),be("NamespaceName")("namespaceName","isNamespaceName")),be("WildcardNamespace")("wildcardNamespace","isWildcardNamespace")),be("NoNamespace")("noNamespace","isNoNamespace")),be("Attribute")("attribute","isAttribute")),be("PseudoClass")("pseudoClass","isPseudoClass")),be("PseudoElement")("pseudoElement","isPseudoElement")),be("String")("string","isString")),be("Formula")("formula","isFormula")),be("FormulaOfSelector")("formulaOfSelector","isFormulaOfSelector")),be("Substitution")("substitution","isSubstitution"));const we=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,a="object"==typeof r?r:le[r];a.baseSyntax&&(a=ie(le[a.baseSyntax],a));var s,c=a.tag?[!0,Boolean((s=a.tag,s?"boolean"==typeof s?J:s:X).wildcard)]:[!1,!1],u=c[0],l=c[1],f=Boolean(a.ids),h=Boolean(a.classNames),p=Boolean(a.namespace),d=a.namespace&&(!0===a.namespace||!0===a.namespace.wildcard);if(p&&!u)throw new Error("".concat(ge,"Namespaces cannot be enabled while tags are disabled."));var m=Boolean(n),v=a.combinators?V(a.combinators):U,g=a.attributes?[!0,a.attributes.operators?V(a.attributes.operators):U,a.attributes.caseSensitivityModifiers?G(a.attributes.caseSensitivityModifiers):$,"accept"===a.attributes.unknownCaseSensitivityModifiers]:[!1,U,$,!1],y=g[0],b=g[1],w=g[2],x=g[3],E=x||Object.keys(w).length>0,k=a.pseudoClasses?[!0,a.pseudoClasses.definitions?Z(a.pseudoClasses.definitions):W,"accept"===a.pseudoClasses.unknown]:[!1,W,!1],S=k[0],D=k[1],P=k[2],A=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?Z(Array.isArray(a.pseudoElements.definitions)?{NoArgument:a.pseudoElements.definitions}:a.pseudoElements.definitions):W,"accept"===a.pseudoElements.unknown]:[!1,!1,!1,W,!1],C=A[0],O=A[1],F=A[2],j=A[3],T=A[4],_="",R=_.length,I=0,L="",B=function(e){return L===e},M=function(){return B("*")||fe(L)},N=function(e){I=e,L=_.charAt(I)},H=function(){I++,L=_.charAt(I)},z=function(){var e=L;return I++,L=_.charAt(I),e};function q(e){var t=Math.min(R-1,I),r=new Error("".concat(ge).concat(e," Pos: ").concat(t,"."));throw r.position=t,r.name="ParserError",r}function Q(e,t){if(!e)return q(t)}var Y=function(){Q(I<R,"Unexpected end of input.")},ee=function(){return I>=R},te=function(e){Q(I<R,'Expected "'.concat(e,'" but end of input reached.')),Q(L===e,'Expected "'.concat(e,'" but "').concat(L,'" found.')),I++,L=_.charAt(I)};function re(e){var t=ne(e,I);if(t)return I+=t.length,L=_.charAt(I),t}function ne(e,t){var r=e[_.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=z();he(L);)e+=z();return B(" ")&&H(),String.fromCharCode(parseInt(e,16))}function ae(e){var t="";for(te(e);I<R;){if(B(e))return H(),t;if(B("\\")){H();var r=void 0;if(B(e))t+=e;else if(void 0!==(r=pe[L]))t+=r;else{if(he(L)){t+=oe();continue}t+=L}}else t+=L;H()}return t}function se(){if(!fe(L))return null;for(var e,t="";B("-");)t+=L,H();for(i&&t.length>=2&&q("Identifiers cannot start with two hyphens with strict mode on."),ve[L]&&q("Identifiers cannot start with hyphens followed by digits.");I<R;)if((e=L)>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||"-"===e||"_"===e||e>=" ")t+=z();else{if(!B("\\"))break;H(),Y(),he(L)?t+=oe():t+=z()}return t}function ce(){for(var e="";I<R&&!B(")");)if(B("\\")){if(H(),ee()&&!i)return(e+"\\").trim();Y(),he(L)?e+=oe():e+=z()}else e+=z();return e.trim()}function ue(){for(;de[L];)H()}function ye(e){void 0===e&&(e=!1),ue();for(var t=[De(e)];B(",");)H(),ue(),t.push(De(e));return{type:"Selector",rules:t}}function be(){var e;if(te("["),ue(),B("|")){Q(p,"Namespaces are not enabled."),H();var t=se();Q(t,"Expected attribute name."),e={type:"Attribute",name:t,namespace:{type:"NoNamespace"}}}else if(B("*")){Q(p,"Namespaces are not enabled."),Q(d,"Wildcard namespace is not enabled."),H(),te("|");var r=se();Q(r,"Expected attribute name."),e={type:"Attribute",name:r,namespace:{type:"WildcardNamespace"}}}else{var n=se();if(Q(n,"Expected attribute name."),e={type:"Attribute",name:n},B("|")){var o=I;if(H(),fe(L)){Q(p,"Namespaces are not enabled.");var a=se();Q(a,"Expected attribute name."),e={type:"Attribute",name:a,namespace:{type:"NamespaceName",name:n}}}else N(o)}}if(Q(e.name,"Expected attribute name."),ue(),ee()&&!i)return e;if(B("]"))H();else{if(e.operator=re(b),Q(e.operator,"Expected a valid attribute selector operator."),ue(),Y(),me[L])e.value={type:"String",value:ae(L)};else if(m&&B("$")){H();var s=se();Q(s,"Expected substitute name."),e.value={type:"Substitution",name:s}}else{var c=se();Q(c,"Expected attribute value."),e.value={type:"String",value:c}}if(ue(),ee()&&!i)return e;if(!B("]")){var u=se();if(Q(u,"Expected end of attribute selector."),e.caseSensitivityModifier=u,Q(E,"Attribute case sensitivity modifiers are not enabled."),Q(x||w[e.caseSensitivityModifier],"Unknown attribute case sensitivity modifier."),ue(),ee()&&!i)return e}te("]")}return e}function we(){for(var e="";ve[L];)e+=z();return Q(""!==e,"Formula parse error."),parseInt(e)}var xe=function(){return B("-")||B("+")||ve[L]};function Ee(e,t,r){var n;if(B("(")){if(H(),ue(),m&&B("$")){H();var o=se();Q(o,"Expected substitute name."),n={type:"Substitution",name:o}}else if("String"===r.type)Q((n={type:"String",value:ce()}).value,"Expected ".concat(t," argument value."));else if("Selector"===r.type)n=ye(!0);else{if("Formula"!==r.type)return q("Invalid ".concat(t," signature."));var a=function(){if(B("e")||B("o")){var e=se();if("even"===e)return ue(),[2,0];if("odd"===e)return ue(),[2,1]}var t,r=null,n=1;if(B("-")&&(H(),n=-1),xe()&&(B("+")&&H(),r=we(),!B("\\")&&!B("n")))return[0,r*n];if(null===r&&(r=1),r*=n,B("\\")?(H(),t=he(L)?oe():z()):t=z(),Q("n"===t,'Formula parse error: expected "n".'),ue(),B("+")||B("-")){var o=B("+")?1:-1;return H(),ue(),[r,o*we()]}return[r,0]}(),s=a[0],c=a[1];n={type:"Formula",a:s,b:c},r.ofSelector&&(ue(),(B("o")||B("\\"))&&(Q("of"===se(),"Formula of selector parse error."),ue(),n={type:"FormulaOfSelector",a:s,b:c,selector:De()}))}if(ue(),ee()&&!i)return n;te(")")}else Q(r.optional,"Argument is required for ".concat(t,' "').concat(e,'".'));return n}function ke(){if(B("*"))return Q(l,"Wildcard tag name is not enabled."),H(),{type:"WildcardTag"};if(fe(L)){Q(u,"Tag names are not enabled.");var e=se();return Q(e,"Expected tag name."),{type:"TagName",name:e}}return q("Expected tag name.")}function Se(){if(B("*")){var e=I;return H(),B("|")?(H(),M()?(Q(p,"Namespaces are not enabled."),Q(d,"Wildcard namespace is not enabled."),(r=ke()).namespace={type:"WildcardNamespace"},r):(N(e),ke())):(N(e),ke())}if(B("|"))return Q(p,"Namespaces are not enabled."),H(),(r=ke()).namespace={type:"NoNamespace"},r;if(fe(L)){var t=se();if(Q(t,"Expected tag name."),!B("|"))return Q(u,"Tag names are not enabled."),{type:"TagName",name:t};var r;e=I;return H(),M()?(Q(p,"Namespaces are not enabled."),(r=ke()).namespace={type:"NamespaceName",name:t},r):(N(e),{type:"TagName",name:t})}return q("Expected tag name.")}function De(e){var t,r;void 0===e&&(e=!1);var n={type:"Rule",items:[]};e&&((m=re(v))&&(n.combinator=m,ue()));for(;I<R;)if(M())Q(0===n.items.length,"Unexpected tag/namespace start."),n.items.push(Se());else if(B("|")){var o=I;if(H(),!M()){N(o);break}Q(0===n.items.length,"Unexpected tag/namespace start."),N(o),n.items.push(Se())}else if(B(".")){Q(h,"Class names are not enabled."),H();var i=se();Q(i,"Expected class name."),n.items.push({type:"ClassName",name:i})}else if(B("#")){Q(f,"IDs are not enabled."),H();var a=se();Q(a,"Expected ID name."),n.items.push({type:"Id",name:a})}else if(B("["))Q(y,"Attributes are not enabled."),n.items.push(be());else{if(!B(":"))break;var s=!1;H(),B(":")&&(Q(C,"Pseudo elements are not enabled."),Q(F,"Pseudo elements double colon notation is not enabled."),s=!0,H());var c=se();if(Q(s||c,"Expected pseudo-class name."),Q(!s||c,"Expected pseudo-element name."),Q(c,"Expected pseudo-class name."),Q(!s||T||Object.prototype.hasOwnProperty.call(j,c),'Unknown pseudo-element "'.concat(c,'".')),C&&(s||!s&&O&&Object.prototype.hasOwnProperty.call(j,c))){var u={type:"PseudoElement",name:c};(p=Ee(c,"pseudo-element",l=null!==(t=j[c])&&void 0!==t?t:T&&K))&&(Q("Formula"!==p.type&&"FormulaOfSelector"!==p.type,"Pseudo-elements cannot have formula argument."),u.argument=p),n.items.push(u)}else{var l;Q(S,"Pseudo-classes are not enabled."),Q(l=null!==(r=D[c])&&void 0!==r?r:P&&K,'Unknown pseudo-class: "'.concat(c,'".'));var p,d={type:"PseudoClass",name:c};(p=Ee(c,"pseudo-class",l))&&(d.argument=p),n.items.push(d)}}if(0===n.items.length)return ee()?q("Expected rule but end of input reached."):q('Expected rule but "'.concat(L,'" found.'));if(ue(),!ee()&&!B(",")&&!B(")")){var m=re(v);ue(),n.nestedRule=De(),n.nestedRule.combinator=m}return n}return function(e){if("string"!=typeof e)throw new Error("".concat(ge,"Expected string input."));return R=(_=e).length,I=0,L=_.charAt(0),ye()}}({syntax:"selectors-4"});function xe(e){if("string"!=typeof e)throw new TypeError("Expected `string` as selector, not `"+e+"`");return we(e)}function Ee(){}function ke(e){return Array.isArray(e.children)}function Se(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 De=new Set([9,10,12,13,32]),Pe="0".charCodeAt(0),Ae="9".charCodeAt(0);var Ce=r(6501);function Oe(e){return function(e){const t=e[0],r=e[1]-1;if(r<0&&t<=0)return Ce.falseFunc;if(-1===t)return e=>e<=r;if(0===t)return e=>e===r;if(1===t)return r<0?Ce.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=a();if(t<e.length&&"n"===e.charAt(t)&&(t++,r=n*(null!=o?o:1),s(),t<e.length?(n=i(),s(),o=a()):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 a(){const r=t;let n=0;for(;t<e.length&&e.charCodeAt(t)>=Pe&&e.charCodeAt(t)<=Ae;)n=10*n+(e.charCodeAt(t)-Pe),t++;return t===r?null:n}function s(){for(;t<e.length&&De.has(e.charCodeAt(t));)t++}}(e))}const Fe={}.hasOwnProperty;function je(e,t){const r=t||{};function n(t,...r){let o=n.invalid;const i=n.handlers;if(t&&Fe.call(t,e)){const r=String(t[e]);o=Fe.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 Te=Oe.default||Oe,_e=je("name",{unknown:function(e){throw new Error("Unknown pseudo-selector `"+e.name+"`")},invalid:function(){throw new Error("Invalid pseudo-selector")},handlers:{is:Ie,blank:Re,empty:Re,"first-child":function(e,t,r,n,o){return Le(o,e),0===o.nodeIndex},"first-of-type":function(e,t,r,n,o){return Le(o,e),0===o.typeIndex},has:function(e,t,r,n,o){const i=e.argument;!i||i.type;const a={type:"root",children:ke(t)?t.children:[]},s={...o,found:!1,shallow:!1,one:!0,scopeNodes:[t],results:[],rootQuery:i};return He(s,a),s.results.length>0},"last-child":function(e,t,r,n,o){return Le(o,e),"number"==typeof o.nodeCount&&o.nodeIndex===o.nodeCount-1},"last-of-type":function(e,t,r,n,o){return Le(o,e),"number"==typeof o.typeCount&&o.typeIndex===o.typeCount-1},not:function(e,t,r,n,o){return!Ie(e,t,r,n,o)},"nth-child":function(e,t,r,n,o){const i=Be(e);return Le(o,e),"number"==typeof o.nodeIndex&&i(o.nodeIndex)},"nth-last-child":function(e,t,r,n,o){const i=Be(e);return Le(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=Be(e);return Le(o,e),"number"==typeof o.typeIndex&&i(o.typeIndex)},"nth-last-of-type":function(e,t,r,n,o){const i=Be(e);return Le(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 Le(o,e),1===o.nodeCount},"only-of-type":function(e,t,r,n,o){return Le(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 Re(e,t){return ke(t)?0===t.children.length:!("value"in t)}function Ie(e,t,r,n,o){const i=e.argument;!i||i.type;const a={...o,found:!1,shallow:!1,one:!0,scopeNodes:[t],results:[],rootQuery:i};return He(a,t),a.results[0]===t}function Le(e,t){if(e.shallow)throw new Error("Cannot use `:"+t.name+"` without parent")}function Be(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=Te(r.a+"n+"+r.b),e._cachedFn=t}return t}function Me(e,t,r,n,o){for(const i of e.items)if("Attribute"===i.type){if(!Se(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(!_e(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 Ne=[];function He(e,t){t&&ze(e,[],t,void 0,void 0,t)}function ze(e,t,r,n,o,i){let a={directChild:void 0,descendant:void 0,adjacentSibling:void 0,generalSibling:void 0},s=e.rootQuery.rules;return o&&o!==i&&(s=e.rootQuery.rules.filter((e=>void 0===e.combinator||">"===e.combinator&&o===i))),a=function(e,t,r,n,o){const i={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(Me(s,r,n,o,e)){const t=s.nestedRule;if(t){$e(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===s.combinator?$e(i,"descendant",s):"~"===s.combinator&&$e(i,"generalSibling",s)}return i}(e,Ue(t,s),r,n,o),!ke(r)||e.shallow||e.one&&e.found||function(e,t,r,n){const o=Ue(t.descendant,t.directChild);let i,a=-1;const s={count:0,types:new Map},c={count:0,types:new Map};for(;++a<r.children.length;)qe(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 u=ze(e,Ue(o,i),r.children[a],a,r,n);if(i=Ue(u.generalSibling,u.adjacentSibling),e.one&&e.found)break;qe(c,r.children[a])}}(e,a,r,i),a}function Ue(e,t){return e&&t&&e.length>0&&t.length>0?[...e,...t]:e&&e.length>0?e:t&&t.length>0?t:Ne}function $e(e,t,r){const n=e[t];n?n.push(r):e[t]=[r]}function qe(e,t){const r=t.type.toUpperCase(),n=(e.types.get(r)||0)+1;e.count++,e.types.set(r,n)}function Ve(e,t){const r=Ge(e,t);return r.one=!0,He(r,t||void 0),r.results[0]}function Ge(e,t){return{rootQuery:xe(e),results:[],scopeNodes:t?!ke(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}}function We(e){if(e)throw e}var Ke=r(4740);function Qe(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 Ze(){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,...a){const s=e[++r];let c=-1;if(i)n(i);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(o);try{a=e.apply(this,t)}catch(e){if(n&&r)throw e;return o(e)}n||(a instanceof Promise?a.then(i,o):a instanceof Error?o(a):i(a))}function o(e,...n){r||(r=!0,t(e,...n))}function i(e){o(null,e)}}(s,o)(...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 Ye(e){return e&&"object"==typeof e?"position"in e||"type"in e?Je(e.position):"start"in e||"end"in e?Je(e):"line"in e||"column"in e?Xe(e):"":""}function Xe(e){return et(e&&e.line)+":"+et(e&&e.column)}function Je(e){return Xe(e&&e.start)+"-"+Xe(e&&e.end)}function et(e){return e&&"number"==typeof e?e:1}class tt extends Error{constructor(e,t,r){super(),"string"==typeof t&&(r=t,t=void 0);let n="",o={},i=!1;if(t&&(o="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?n=e:!o.cause&&e&&(i=!0,n=e.message,o.cause=e),!o.ruleId&&!o.source&&"string"==typeof r){const e=r.indexOf(":");-1===e?o.ruleId=r:(o.source=r.slice(0,e),o.ruleId=r.slice(e+1))}if(!o.place&&o.ancestors&&o.ancestors){const e=o.ancestors[o.ancestors.length-1];e&&(o.place=e.position)}const a=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file,this.message=n,this.line=a?a.line:void 0,this.name=Ye(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=i&&o.cause&&"string"==typeof o.cause.stack?o.cause.stack:"",this.actual,this.expected,this.note,this.url}}tt.prototype.file="",tt.prototype.name="",tt.prototype.reason="",tt.prototype.message="",tt.prototype.stack="",tt.prototype.column=void 0,tt.prototype.line=void 0,tt.prototype.ancestors=void 0,tt.prototype.cause=void 0,tt.prototype.fatal=void 0,tt.prototype.place=void 0,tt.prototype.ruleId=void 0,tt.prototype.source=void 0;const rt={basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');nt(e);let r,n=0,o=-1,i=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;i--;)if(47===e.codePointAt(i)){if(r){n=i+1;break}}else o<0&&(r=!0,o=i+1);return o<0?"":e.slice(n,o)}if(t===e)return"";let a=-1,s=t.length-1;for(;i--;)if(47===e.codePointAt(i)){if(r){n=i+1;break}}else a<0&&(r=!0,a=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(o=i):(s=-1,o=a));n===o?o=a:o<0&&(o=e.length);return e.slice(n,o)},dirname:function(e){if(nt(e),0===e.length)return".";let t,r=-1,n=e.length;for(;--n;)if(47===e.codePointAt(n)){if(t){r=n;break}}else t||(t=!0);return r<0?47===e.codePointAt(0)?"/":".":1===r&&47===e.codePointAt(0)?"//":e.slice(0,r)},extname:function(e){nt(e);let t,r=e.length,n=-1,o=0,i=-1,a=0;for(;r--;){const s=e.codePointAt(r);if(47!==s)n<0&&(t=!0,n=r+1),46===s?i<0?i=r:1!==a&&(a=1):i>-1&&(a=-1);else if(t){o=r+1;break}}if(i<0||n<0||0===a||1===a&&i===n-1&&i===o+1)return"";return e.slice(i,n)},join:function(...e){let t,r=-1;for(;++r<e.length;)nt(e[r]),e[r]&&(t=void 0===t?e[r]:t+"/"+e[r]);return void 0===t?".":function(e){nt(e);const t=47===e.codePointAt(0);let r=function(e,t){let r,n,o="",i=0,a=-1,s=0,c=-1;for(;++c<=e.length;){if(c<e.length)r=e.codePointAt(c);else{if(47===r)break;r=47}if(47===r){if(a===c-1||1===s);else if(a!==c-1&&2===s){if(o.length<2||2!==i||46!==o.codePointAt(o.length-1)||46!==o.codePointAt(o.length-2))if(o.length>2){if(n=o.lastIndexOf("/"),n!==o.length-1){n<0?(o="",i=0):(o=o.slice(0,n),i=o.length-1-o.lastIndexOf("/")),a=c,s=0;continue}}else if(o.length>0){o="",i=0,a=c,s=0;continue}t&&(o=o.length>0?o+"/..":"..",i=2)}else o.length>0?o+="/"+e.slice(a+1,c):o=e.slice(a+1,c),i=c-a-1;a=c,s=0}else 46===r&&s>-1?s++:s=-1}return o}(e,!t);0!==r.length||t||(r=".");r.length>0&&47===e.codePointAt(e.length-1)&&(r+="/");return t?"/"+r:r}(t)},sep:"/"};function nt(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const ot={cwd:function(){return"/"}};function it(e){return Boolean(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}function at(e){if("string"==typeof e)e=new URL(e);else if(!it(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let r=-1;for(;++r<t.length;)if(37===t.codePointAt(r)&&50===t.codePointAt(r+1)){const e=t.codePointAt(r+2);if(70===e||102===e){const e=new TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}const st=["history","path","basename","stem","extname","dirname"];class ct{constructor(e){let t;t=e?it(e)?{path:e}:"string"==typeof e||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd=ot.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r,n=-1;for(;++n<st.length;){const e=st[n];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(r in t)st.includes(r)||(this[r]=t[r])}get basename(){return"string"==typeof this.path?rt.basename(this.path):void 0}set basename(e){lt(e,"basename"),ut(e,"basename"),this.path=rt.join(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?rt.dirname(this.path):void 0}set dirname(e){ft(this.basename,"dirname"),this.path=rt.join(e||"",this.basename)}get extname(){return"string"==typeof this.path?rt.extname(this.path):void 0}set extname(e){if(ut(e,"extname"),ft(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=rt.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){it(e)&&(e=at(e)),lt(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?rt.basename(this.path,this.extname):void 0}set stem(e){lt(e,"stem"),ut(e,"stem"),this.path=rt.join(this.dirname||"",e+(this.extname||""))}fail(e,t,r){const n=this.message(e,t,r);throw n.fatal=!0,n}info(e,t,r){const n=this.message(e,t,r);return n.fatal=void 0,n}message(e,t,r){const n=new tt(e,t,r);return this.path&&(n.name=this.path+":"+n.name,n.file=this.path),n.fatal=!1,this.messages.push(n),n}toString(e){if(void 0===this.value)return"";if("string"==typeof this.value)return this.value;return new TextDecoder(e||void 0).decode(this.value)}}function ut(e,t){if(e&&e.includes(rt.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+rt.sep+"`")}function lt(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function ft(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const ht=function(e){const t=this.constructor.prototype,r=t[e],n=function(){return r.apply(n,arguments)};Object.setPrototypeOf(n,t);const o=Object.getOwnPropertyNames(r);for(const e of o){const t=Object.getOwnPropertyDescriptor(r,e);t&&Object.defineProperty(n,e,t)}return n},pt={}.hasOwnProperty;class dt extends ht{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=Ze()}copy(){const e=new dt;let t=-1;for(;++t<this.attachers.length;){const r=this.attachers[t];e.use(...r)}return e.data(Ke(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2===arguments.length?(yt("data",this.frozen),this.namespace[e]=t,this):pt.call(this.namespace,e)&&this.namespace[e]||void 0:e?(yt("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...r]=this.attachers[this.freezeIndex];if(!1===r[0])continue;!0===r[0]&&(r[0]=void 0);const n=t.call(e,...r);"function"==typeof n&&this.transformers.use(n)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const t=xt(e),r=this.parser||this.Parser;return vt("parse",r),r(String(t),t)}process(e,t){const r=this;return this.freeze(),vt("process",this.parser||this.Parser),gt("process",this.compiler||this.Compiler),t?n(void 0,t):new Promise(n);function n(n,o){const i=xt(e),a=r.parse(i);function s(e,r){e||!r?o(e):n?n(r):t(void 0,r)}r.run(a,i,(function(e,t,n){if(e||!t||!n)return s(e);const o=t,i=r.stringify(o,n);!function(e){return"string"==typeof e||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)}(i)?n.result=i:n.value=i,s(e,n)}))}}processSync(e){let t,r=!1;return this.freeze(),vt("processSync",this.parser||this.Parser),gt("processSync",this.compiler||this.Compiler),this.process(e,(function(e,n){r=!0,We(e),t=n})),wt("processSync","process",r),t}run(e,t,r){bt(e),this.freeze();const n=this.transformers;return r||"function"!=typeof t||(r=t,t=void 0),r?o(void 0,r):new Promise(o);function o(o,i){const a=xt(t);n.run(e,a,(function(t,n,a){const s=n||e;t?i(t):o?o(s):r(void 0,s,a)}))}}runSync(e,t){let r,n=!1;return this.run(e,t,(function(e,t){We(e),r=t,n=!0})),wt("runSync","run",n),r}stringify(e,t){this.freeze();const r=xt(t),n=this.compiler||this.Compiler;return gt("stringify",n),bt(e),n(e,r)}use(e,...t){const r=this.attachers,n=this.namespace;if(yt("use",this.frozen),null==e);else if("function"==typeof e)s(e,t);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?a(e):i(e)}return this;function o(e){if("function"==typeof e)s(e,[]);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...r]=e;s(t,r)}else i(e)}}function i(e){if(!("plugins"in e)&&!("settings"in e))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");a(e.plugins),e.settings&&(n.settings=Ke(!0,n.settings,e.settings))}function a(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;){o(e[t])}}}function s(e,t){let n=-1,o=-1;for(;++n<r.length;)if(r[n][0]===e){o=n;break}if(-1===o)r.push([e,...t]);else if(t.length>0){let[n,...i]=t;const a=r[o][1];Qe(a)&&Qe(n)&&(n=Ke(!0,a,n)),r[o]=[e,n,...i]}}}}const mt=(new dt).freeze();function vt(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function gt(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function yt(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 bt(e){if(!Qe(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function wt(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function xt(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new ct(e)}const Et={};function kt(e,t){const r=t||Et;return St(e,"boolean"!=typeof r.includeImageAlt||r.includeImageAlt,"boolean"!=typeof r.includeHtml||r.includeHtml)}function St(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 Dt(e.children,t,r)}return Array.isArray(e)?Dt(e,t,r):""}function Dt(e,t,r){const n=[];let o=-1;for(;++o<e.length;)n[o]=St(e[o],t,r);return n.join("")}function Pt(e,t,r,n){const o=e.length;let i,a=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);a<n.length;)i=n.slice(a,a+1e4),i.unshift(t,0),e.splice(...i),a+=1e4,t+=1e4}function At(e,t){return e.length>0?(Pt(e,e.length,0,t),e):t}function Ct(e){const t={};let r,n,o,i,a,s,c,u=-1;for(;++u<e.length;){for(;u in t;)u=t[u];if(r=e[u],u&&"chunkFlow"===r[1].type&&"listItemPrefix"===e[u-1][1].type&&(s=r[1]._tokenizer.events,o=0,o<s.length&&"lineEndingBlank"===s[o][1].type&&(o+=2),o<s.length&&"content"===s[o][1].type))for(;++o<s.length&&"content"!==s[o][1].type;)"chunkText"===s[o][1].type&&(s[o][1]._isInFirstContentOfListItem=!0,o++);if("enter"===r[0])r[1].contentType&&(Object.assign(t,Ot(e,u)),u=t[u],c=!0);else if(r[1]._container){for(o=u,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),a=e.slice(n,u),a.unshift(r),Pt(e,n,u-n+1,a))}}return!c}function Ot(e,t){const r=e[t][1],n=e[t][2];let o=t-1;const i=[],a=r._tokenizer||n.parser[r.contentType](r.start),s=a.events,c=[],u={};let l,f,h=-1,p=r,d=0,m=0;const v=[m];for(;p;){for(;e[++o][1]!==p;);i.push(o),p._tokenizer||(l=n.sliceStream(p),p.next||l.push(null),f&&a.defineSkip(p.start),p._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(l),p._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),f=p,p=p.next}for(p=r;++h<s.length;)"exit"===s[h][0]&&"enter"===s[h-1][0]&&s[h][1].type===s[h-1][1].type&&s[h][1].start.line!==s[h][1].end.line&&(m=h+1,v.push(m),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(a.events=[],p?(p._tokenizer=void 0,p.previous=void 0):v.pop(),h=v.length;h--;){const t=s.slice(v[h],v[h+1]),r=i.pop();c.unshift([r,r+t.length-1]),Pt(e,r,2,t)}for(h=-1;++h<c.length;)u[d+c[h][0]]=d+c[h][1],d+=c[h][1]-c[h][0]-1;return u}const Ft={}.hasOwnProperty;function jt(e){const t={};let r=-1;for(;++r<e.length;)Tt(t,e[r]);return t}function Tt(e,t){let r;for(r in t){const n=(Ft.call(e,r)?e[r]:void 0)||(e[r]={}),o=t[r];let i;if(o)for(i in o){Ft.call(n,i)||(n[i]=[]);const e=o[i];_t(n[i],Array.isArray(e)?e:e?[e]:[])}}}function _t(e,t){let r=-1;const n=[];for(;++r<t.length;)("after"===t[r].add?e:n).push(t[r]);Pt(e,0,0,n)}const Rt=Wt(/\p{P}/u),It=Wt(/[A-Za-z]/),Lt=Wt(/[\dA-Za-z]/),Bt=Wt(/[#-'*+\--9=?A-Z^-~]/);function Mt(e){return null!==e&&(e<32||127===e)}const Nt=Wt(/\d/),Ht=Wt(/[\dA-Fa-f]/),zt=Wt(/[!-/:-@[-`{-~]/);function Ut(e){return null!==e&&e<-2}function $t(e){return null!==e&&(e<0||32===e)}function qt(e){return-2===e||-1===e||32===e}function Vt(e){return zt(e)||Rt(e)}const Gt=Wt(/\s/);function Wt(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function Kt(e,t,r,n){const o=n?n-1:Number.POSITIVE_INFINITY;let i=0;return function(n){if(qt(n))return e.enter(r),a(n);return t(n)};function a(n){return qt(n)&&i++<o?(e.consume(n),a):(e.exit(r),t(n))}}const Qt={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"),Kt(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)):Ut(t)?(e.consume(t),e.exit("chunkText"),n):(e.consume(t),o)}}};const Zt={tokenize:function(e){const t=this,r=[];let n,o,i,a=0;return s;function s(n){if(a<r.length){const o=r[a];return t.containerState=o[1],e.attempt(o[0].continuation,c,u)(n)}return u(n)}function c(e){if(a++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,n&&y();const r=t.events.length;let o,i=r;for(;i--;)if("exit"===t.events[i][0]&&"chunkFlow"===t.events[i][1].type){o=t.events[i][1].end;break}g(a);let s=r;for(;s<t.events.length;)t.events[s][1].end=Object.assign({},o),s++;return Pt(t.events,i+1,0,t.events.slice(r)),t.events.length=s,u(e)}return s(e)}function u(o){if(a===r.length){if(!n)return h(o);if(n.currentConstruct&&n.currentConstruct.concrete)return d(o);t.interrupt=Boolean(n.currentConstruct&&!n._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Yt,l,f)(o)}function l(e){return n&&y(),g(a),h(e)}function f(e){return t.parser.lazy[t.now().line]=a!==r.length,i=t.now().offset,d(e)}function h(r){return t.containerState={},e.attempt(Yt,p,d)(r)}function p(e){return a++,r.push([t.currentConstruct,t.containerState]),h(e)}function d(r){return null===r?(n&&y(),g(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?(v(e.exit("chunkFlow"),!0),g(0),void e.consume(r)):Ut(r)?(e.consume(r),v(e.exit("chunkFlow")),a=0,t.interrupt=void 0,s):(e.consume(r),m)}function v(e,r){const s=t.sliceStream(e);if(r&&s.push(null),e.previous=o,o&&(o.next=e),o=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<i&&(!n.events[e][1].end||n.events[e][1].end.offset>i))return;const r=t.events.length;let o,s,c=r;for(;c--;)if("exit"===t.events[c][0]&&"chunkFlow"===t.events[c][1].type){if(o){s=t.events[c][1].end;break}o=!0}for(g(a),e=r;e<t.events.length;)t.events[e][1].end=Object.assign({},s),e++;Pt(t.events,c+1,0,t.events.slice(r)),t.events.length=e}}function g(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 y(){n.write([null]),o=void 0,n=void 0,t.containerState._closeFlow=void 0}}},Yt={tokenize:function(e,t,r){return Kt(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};const Xt={tokenize:function(e,t,r){return function(t){return qt(t)?Kt(e,n,"linePrefix")(t):n(t)};function n(e){return null===e||Ut(e)?t(e):r(e)}},partial:!0};const Jt={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):Ut(t)?e.check(er,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 Ct(e),e}},er={tokenize:function(e,t,r){const n=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),Kt(e,o,"linePrefix")};function o(o){if(null===o||Ut(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};const tr={tokenize:function(e){const t=this,r=e.attempt(Xt,(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,Kt(e,e.attempt(this.parser.constructs.flow,n,e.attempt(Jt,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 rr={resolveAll:ar()},nr=ir("string"),or=ir("text");function ir(e){return{tokenize:function(t){const r=this,n=this.parser.constructs[e],o=t.attempt(n,i,a);return i;function i(e){return c(e)?o(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"),o(e)):(t.consume(e),s)}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:ar("text"===e?sr:void 0)}}function ar(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 sr(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,a=o.length,s=-1,c=0;for(;a--;){const e=o[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)i=!0,c++;else if(-1!==e){a++;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+a,_bufferIndex:a?s:n.start._bufferIndex+s},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 cr(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}function ur(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 a=[],s=[],c=!0;const u={consume:function(e){Ut(e)?(n.line++,n.column=1,n.offset+=-3===e?2:1,w()):-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,c=!0},enter:function(e,t){const r=t||{};return r.type=e,r.start=d(),l.events.push(["enter",r,l]),s.push(r),r},exit:function(e){const t=s.pop();return t.end=d(),l.events.push(["exit",t,l]),t},attempt:y((function(e,t){b(e,t.from)})),check:y(g),interrupt:y(g,{interrupt:!0})},l={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:p,sliceSerialize:function(e,t){return function(e,t){let r=-1;const n=[];let o;for(;++r<e.length;){const i=e[r];let a;if("string"==typeof i)a=i;else switch(i){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&&o)continue;a=" ";break;default:a=String.fromCharCode(i)}o=-2===i,n.push(a)}return n.join("")}(p(e),t)},now:d,defineSkip:function(e){o[e.line]=e.column,w()},write:function(e){if(a=At(a,e),m(),null!==a[a.length-1])return[];return b(t,0),l.events=cr(i,l.events,l),l.events}};let f,h=t.tokenize.call(l,u);return t.resolveAll&&i.push(t),l;function p(e){return function(e,t){const r=t.start._index,n=t.start._bufferIndex,o=t.end._index,i=t.end._bufferIndex;let a;if(r===o)a=[e[r].slice(n,i)];else{if(a=e.slice(r,o),n>-1){const e=a[0];"string"==typeof e?a[0]=e.slice(n):a.shift()}i>0&&a.push(e[o].slice(0,i))}return a}(a,e)}function d(){const{line:e,column:t,offset:r,_index:o,_bufferIndex:i}=n;return{line:e,column:t,offset:r,_index:o,_bufferIndex:i}}function m(){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;)v(t.charCodeAt(n._bufferIndex));else v(t)}}function v(e){c=void 0,f=e,h=h(e)}function g(e,t){t.restore()}function y(e,t){return function(r,o,i){let a,f,h,p;return Array.isArray(r)?m(r):"tokenize"in r?m([r]):function(e){return t;function t(t){const r=null!==t&&e[t],n=null!==t&&e.null;return m([...Array.isArray(r)?r:r?[r]:[],...Array.isArray(n)?n:n?[n]:[]])(t)}}(r);function m(e){return a=e,f=0,0===e.length?i:v(e[f])}function v(e){return function(r){p=function(){const e=d(),t=l.previous,r=l.currentConstruct,o=l.events.length,i=Array.from(s);return{restore:a,from:o};function a(){n=e,l.previous=t,l.currentConstruct=r,l.events.length=o,s=i,w()}}(),h=e,e.partial||(l.currentConstruct=e);if(e.name&&l.parser.constructs.disable.null.includes(e.name))return y(r);return e.tokenize.call(t?Object.assign(Object.create(l),t):l,u,g,y)(r)}}function g(t){return c=!0,e(h,p),o}function y(e){return c=!0,p.restore(),++f<a.length?v(a[f]):i}}}function b(e,t){e.resolveAll&&!i.includes(e)&&i.push(e),e.resolve&&Pt(l.events,t,l.events.length-t,e.resolve(l.events.slice(t),l)),e.resolveTo&&(l.events=e.resolveTo(l.events,l))}function w(){n.line in o&&n.column<2&&(n.column=o[n.line],n.offset+=o[n.line]-1)}}const lr={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"),a(i)):o>=3&&(null===i||Ut(i))?(e.exit("thematicBreak"),t(i)):r(i)}function a(t){return t===n?(e.consume(t),o++,a):(e.exit("thematicBreakSequence"),qt(t)?Kt(e,i,"whitespace")(t):i(t))}}};const fr={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,a=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:Nt(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(lr,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 Nt(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(Xt,n.interrupt?r:u,e.attempt(hr,f,l))}function u(e){return n.containerState.initialBlankLine=!0,i++,f(e)}function l(t){return qt(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),f):r(t)}function f(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(Xt,o,i);function o(r){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,Kt(e,t,"listItemIndent",n.containerState.size+1)(r)}function i(r){return n.containerState.furtherBlankLines||!qt(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(pr,t,a)(r))}function a(o){return n.containerState._closeFlow=!0,n.interrupt=void 0,Kt(e,e.attempt(fr,t,r),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}},exit:function(e){e.exit(this.containerState.type)}},hr={tokenize:function(e,t,r){const n=this;return Kt(e,(function(e){const o=n.events[n.events.length-1];return!qt(e)&&o&&"listItemPrefixWhitespace"===o[1].type?t(e):r(e)}),"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},pr={tokenize:function(e,t,r){const n=this;return Kt(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 dr={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 qt(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(qt(t))return Kt(e,o,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t);return o(t)};function o(n){return e.attempt(dr,t,r)(n)}}},exit:function(e){e.exit("blockQuote")}};function mr(e,t,r,n,o,i,a,s,c){const u=c||Number.POSITIVE_INFINITY;let l=0;return function(t){if(60===t)return e.enter(n),e.enter(o),e.enter(i),e.consume(t),e.exit(i),f;if(null===t||32===t||41===t||Mt(t))return r(t);return e.enter(n),e.enter(a),e.enter(s),e.enter("chunkString",{contentType:"string"}),d(t)};function f(r){return 62===r?(e.enter(i),e.consume(r),e.exit(i),e.exit(o),e.exit(n),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),h(r))}function h(t){return 62===t?(e.exit("chunkString"),e.exit(s),f(t)):null===t||60===t||Ut(t)?r(t):(e.consume(t),92===t?p:h)}function p(t){return 60===t||62===t||92===t?(e.consume(t),h):h(t)}function d(o){return l||null!==o&&41!==o&&!$t(o)?l<u&&40===o?(e.consume(o),l++,d):41===o?(e.consume(o),l--,d):null===o||32===o||40===o||Mt(o)?r(o):(e.consume(o),92===o?m:d):(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(n),t(o))}function m(t){return 40===t||41===t||92===t?(e.consume(t),d):d(t)}}function vr(e,t,r,n,o,i){const a=this;let s,c=0;return function(t){return e.enter(n),e.enter(o),e.consume(t),e.exit(o),e.enter(i),u};function u(f){return c>999||null===f||91===f||93===f&&!s||94===f&&!c&&"_hiddenFootnoteSupport"in a.parser.constructs?r(f):93===f?(e.exit(i),e.enter(o),e.consume(f),e.exit(o),e.exit(n),t):Ut(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),l(f))}function l(t){return null===t||91===t||93===t||Ut(t)||c++>999?(e.exit("chunkString"),u(t)):(e.consume(t),s||(s=!qt(t)),92===t?f:l)}function f(t){return 91===t||92===t||93===t?(e.consume(t),c++,l):l(t)}}function gr(e,t,r,n,o,i){let a;return function(t){if(34===t||39===t||40===t)return e.enter(n),e.enter(o),e.consume(t),e.exit(o),a=40===t?41:t,s;return r(t)};function s(r){return r===a?(e.enter(o),e.consume(r),e.exit(o),e.exit(n),t):(e.enter(i),c(r))}function c(t){return t===a?(e.exit(i),s(a)):null===t?r(t):Ut(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),Kt(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(t))}function u(t){return t===a||null===t||Ut(t)?(e.exit("chunkString"),c(t)):(e.consume(t),92===t?l:u)}function l(t){return t===a||92===t?(e.consume(t),u):u(t)}}function yr(e,t){let r;return function n(o){if(Ut(o))return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),r=!0,n;if(qt(o))return Kt(e,n,r?"linePrefix":"lineSuffix")(o);return t(o)}}function br(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const wr={name:"definition",tokenize:function(e,t,r){const n=this;let o;return function(t){return e.enter("definition"),function(t){return vr.call(n,e,i,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function i(t){return o=br(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 $t(t)?yr(e,s)(t):s(t)}function s(t){return mr(e,c,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function c(t){return e.attempt(xr,u,u)(t)}function u(t){return qt(t)?Kt(e,l,"whitespace")(t):l(t)}function l(i){return null===i||Ut(i)?(e.exit("definition"),n.parser.defined.push(o),t(i)):r(i)}}},xr={tokenize:function(e,t,r){return function(t){return $t(t)?yr(e,n)(t):r(t)};function n(t){return gr(e,o,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function o(t){return qt(t)?Kt(e,i,"whitespace")(t):i(t)}function i(e){return null===e||Ut(e)?t(e):r(e)}},partial:!0};const Er={name:"codeIndented",tokenize:function(e,t,r){const n=this;return function(t){return e.enter("codeIndented"),Kt(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?s(t):Ut(t)?e.attempt(kr,i,s)(t):(e.enter("codeFlowValue"),a(t))}function a(t){return null===t||Ut(t)?(e.exit("codeFlowValue"),i(t)):(e.consume(t),a)}function s(r){return e.exit("codeIndented"),t(r)}}},kr={tokenize:function(e,t,r){const n=this;return o;function o(t){return n.parser.lazy[n.now().line]?r(t):Ut(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o):Kt(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):Ut(e)?o(e):r(e)}},partial:!0};const Sr={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||$t(t)?(e.exit("atxHeadingSequence"),i(t)):r(t)}function i(r){return 35===r?(e.enter("atxHeadingSequence"),a(r)):null===r||Ut(r)?(e.exit("atxHeading"),t(r)):qt(r)?Kt(e,i,"whitespace")(r):(e.enter("atxHeadingText"),s(r))}function a(t){return 35===t?(e.consume(t),a):(e.exit("atxHeadingSequence"),i(t))}function s(t){return null===t||35===t||$t(t)?(e.exit("atxHeadingText"),i(t)):(e.consume(t),s)}},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"},Pt(e,i,o-i+1,[["enter",r,t],["enter",n,t],["exit",n,t],["exit",r,t]]));return e}};const Dr={name:"setextUnderline",tokenize:function(e,t,r){const n=this;let o;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"),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"),qt(t)?Kt(e,a,"lineSuffix")(t):a(t))}function a(n){return null===n||Ut(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 a={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",a,t]),e.splice(o+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[o][1].end)):e[r][1]=a;return e.push(["exit",a,t]),e}};const Pr=["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"],Ar=["pre","script","style","textarea"],Cr={name:"htmlFlow",tokenize:function(e,t,r){const n=this;let o,i,a,s,c;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),u}(t)};function u(s){return 33===s?(e.consume(s),l):47===s?(e.consume(s),i=!0,p):63===s?(e.consume(s),o=3,n.interrupt?t:R):It(s)?(e.consume(s),a=String.fromCharCode(s),d):r(s)}function l(i){return 45===i?(e.consume(i),o=2,f):91===i?(e.consume(i),o=5,s=0,h):It(i)?(e.consume(i),o=4,n.interrupt?t:R):r(i)}function f(o){return 45===o?(e.consume(o),n.interrupt?t:R):r(o)}function h(o){const i="CDATA[";return o===i.charCodeAt(s++)?(e.consume(o),6===s?n.interrupt?t:P:h):r(o)}function p(t){return It(t)?(e.consume(t),a=String.fromCharCode(t),d):r(t)}function d(s){if(null===s||47===s||62===s||$t(s)){const c=47===s,u=a.toLowerCase();return c||i||!Ar.includes(u)?Pr.includes(a.toLowerCase())?(o=6,c?(e.consume(s),m):n.interrupt?t(s):P(s)):(o=7,n.interrupt&&!n.parser.lazy[n.now().line]?r(s):i?v(s):g(s)):(o=1,n.interrupt?t(s):P(s))}return 45===s||Lt(s)?(e.consume(s),a+=String.fromCharCode(s),d):r(s)}function m(o){return 62===o?(e.consume(o),n.interrupt?t:P):r(o)}function v(t){return qt(t)?(e.consume(t),v):S(t)}function g(t){return 47===t?(e.consume(t),S):58===t||95===t||It(t)?(e.consume(t),y):qt(t)?(e.consume(t),g):S(t)}function y(t){return 45===t||46===t||58===t||95===t||Lt(t)?(e.consume(t),y):b(t)}function b(t){return 61===t?(e.consume(t),w):qt(t)?(e.consume(t),b):g(t)}function w(t){return null===t||60===t||61===t||62===t||96===t?r(t):34===t||39===t?(e.consume(t),c=t,x):qt(t)?(e.consume(t),w):E(t)}function x(t){return t===c?(e.consume(t),c=null,k):null===t||Ut(t)?r(t):(e.consume(t),x)}function E(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||$t(t)?b(t):(e.consume(t),E)}function k(e){return 47===e||62===e||qt(e)?g(e):r(e)}function S(t){return 62===t?(e.consume(t),D):r(t)}function D(t){return null===t||Ut(t)?P(t):qt(t)?(e.consume(t),D):r(t)}function P(t){return 45===t&&2===o?(e.consume(t),F):60===t&&1===o?(e.consume(t),j):62===t&&4===o?(e.consume(t),I):63===t&&3===o?(e.consume(t),R):93===t&&5===o?(e.consume(t),_):!Ut(t)||6!==o&&7!==o?null===t||Ut(t)?(e.exit("htmlFlowData"),A(t)):(e.consume(t),P):(e.exit("htmlFlowData"),e.check(Or,L,A)(t))}function A(t){return e.check(Fr,C,L)(t)}function C(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),O}function O(t){return null===t||Ut(t)?A(t):(e.enter("htmlFlowData"),P(t))}function F(t){return 45===t?(e.consume(t),R):P(t)}function j(t){return 47===t?(e.consume(t),a="",T):P(t)}function T(t){if(62===t){const r=a.toLowerCase();return Ar.includes(r)?(e.consume(t),I):P(t)}return It(t)&&a.length<8?(e.consume(t),a+=String.fromCharCode(t),T):P(t)}function _(t){return 93===t?(e.consume(t),R):P(t)}function R(t){return 62===t?(e.consume(t),I):45===t&&2===o?(e.consume(t),R):P(t)}function I(t){return null===t||Ut(t)?(e.exit("htmlFlowData"),L(t)):(e.consume(t),I)}function L(r){return e.exit("htmlFlow"),t(r)}},resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2));return e},concrete:!0},Or={tokenize:function(e,t,r){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),e.attempt(Xt,t,r)}},partial:!0},Fr={tokenize:function(e,t,r){const n=this;return function(t){if(Ut(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 jr={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},Tr={name:"codeFenced",tokenize:function(e,t,r){const n=this,o={tokenize:function(e,t,r){let o=0;return a;function a(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),c}function c(t){return e.enter("codeFencedFence"),qt(t)?Kt(e,u,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):u(t)}function u(t){return t===i?(e.enter("codeFencedFenceSequence"),l(t)):r(t)}function l(t){return t===i?(o++,e.consume(t),l):o>=s?(e.exit("codeFencedFenceSequence"),qt(t)?Kt(e,f,"whitespace")(t):f(t)):r(t)}function f(n){return null===n||Ut(n)?(e.exit("codeFencedFence"),t(n)):r(n)}},partial:!0};let i,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,i=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(t)}(t)};function c(t){return t===i?(s++,e.consume(t),c):s<3?r(t):(e.exit("codeFencedFenceSequence"),qt(t)?Kt(e,u,"whitespace")(t):u(t))}function u(r){return null===r||Ut(r)?(e.exit("codeFencedFence"),n.interrupt?t(r):e.check(jr,p,y)(r)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),l(r))}function l(t){return null===t||Ut(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),u(t)):qt(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Kt(e,f,"whitespace")(t)):96===t&&t===i?r(t):(e.consume(t),l)}function f(t){return null===t||Ut(t)?u(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),h(t))}function h(t){return null===t||Ut(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),u(t)):96===t&&t===i?r(t):(e.consume(t),h)}function p(t){return e.attempt(o,y,d)(t)}function d(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),m}function m(t){return a>0&&qt(t)?Kt(e,v,"linePrefix",a+1)(t):v(t)}function v(t){return null===t||Ut(t)?e.check(jr,p,y)(t):(e.enter("codeFlowValue"),g(t))}function g(t){return null===t||Ut(t)?(e.exit("codeFlowValue"),v(t)):(e.consume(t),g)}function y(r){return e.exit("codeFenced"),t(r)}},concrete:!0};const _r=document.createElement("i");function Rr(e){const t="&"+e+";";_r.innerHTML=t;const r=_r.textContent;return(59!==r.charCodeAt(r.length-1)||"semi"===e)&&(r!==t&&r)}const Ir={name:"characterReference",tokenize:function(e,t,r){const n=this;let o,i,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"),o=31,i=Lt,u(t))}function c(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,i=Ht,u):(e.enter("characterReferenceValue"),o=7,i=Nt,u(t))}function u(s){if(59===s&&a){const o=e.exit("characterReferenceValue");return i!==Lt||Rr(n.sliceSerialize(o))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):r(s)}return i(s)&&a++<o?(e.consume(s),u):r(s)}}};const Lr={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 zt(n)?(e.enter("characterEscapeValue"),e.consume(n),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(n)}}};const Br={name:"lineEnding",tokenize:function(e,t){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),Kt(e,t,"linePrefix")}}};const Mr={name:"labelEnd",tokenize:function(e,t,r){const n=this;let o,i,a=n.events.length;for(;a--;)if(("labelImage"===n.events[a][1].type||"labelLink"===n.events[a][1].type)&&!n.events[a][1]._balanced){o=n.events[a][1];break}return function(t){if(!o)return r(t);if(o._inactive)return l(t);return i=n.parser.defined.includes(br(n.sliceSerialize({start:o.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(Nr,u,i?u:l)(t):91===t?e.attempt(Hr,u,i?c:l)(t):i?u(t):l(t)}function c(t){return e.attempt(zr,u,l)(t)}function u(e){return t(e)}function l(e){return o._balanced=!0,r(e)}},resolveTo:function(e,t){let r,n,o,i,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(o){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&&(o=a);const c={type:"labelLink"===e[n][1].type?"link":"image",start:Object.assign({},e[n][1].start),end:Object.assign({},e[e.length-1][1].end)},u={type:"label",start:Object.assign({},e[n][1].start),end:Object.assign({},e[o][1].end)},l={type:"labelText",start:Object.assign({},e[n+s+2][1].end),end:Object.assign({},e[o-2][1].start)};return i=[["enter",c,t],["enter",u,t]],i=At(i,e.slice(n+1,n+s+3)),i=At(i,[["enter",l,t]]),i=At(i,cr(t.parser.constructs.insideSpan.null,e.slice(n+s+4,o-3),t)),i=At(i,[["exit",l,t],e[o-2],e[o-1],["exit",u,t]]),i=At(i,e.slice(o+1)),i=At(i,[["exit",c,t]]),Pt(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}},Nr={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 $t(t)?yr(e,o)(t):o(t)}function o(t){return 41===t?u(t):mr(e,i,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function i(t){return $t(t)?yr(e,s)(t):u(t)}function a(e){return r(e)}function s(t){return 34===t||39===t||40===t?gr(e,c,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):u(t)}function c(t){return $t(t)?yr(e,u)(t):u(t)}function u(n){return 41===n?(e.enter("resourceMarker"),e.consume(n),e.exit("resourceMarker"),e.exit("resource"),t):r(n)}}},Hr={tokenize:function(e,t,r){const n=this;return function(t){return vr.call(n,e,o,i,"reference","referenceMarker","referenceString")(t)};function o(e){return n.parser.defined.includes(br(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?t(e):r(e)}function i(e){return r(e)}}},zr={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 Ur={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:Mr.resolveAll};function $r(e){return null===e||$t(e)||Gt(e)?1:Vt(e)?2:void 0}const qr={name:"attention",tokenize:function(e,t){const r=this.parser.constructs.attentionMarkers.null,n=this.previous,o=$r(n);let i;return function(t){return i=t,e.enter("attentionSequence"),a(t)};function a(s){if(s===i)return e.consume(s),a;const c=e.exit("attentionSequence"),u=$r(s),l=!u||2===u&&o||r.includes(s),f=!o||2===o&&u||r.includes(n);return c._open=Boolean(42===i?l:l&&(o||!f)),c._close=Boolean(42===i?f:f&&(u||!l)),t(s)}},resolveAll:function(e,t){let r,n,o,i,a,s,c,u,l=-1;for(;++l<e.length;)if("enter"===e[l][0]&&"attentionSequence"===e[l][1].type&&e[l][1]._close)for(r=l;r--;)if("exit"===e[r][0]&&"attentionSequence"===e[r][1].type&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[l][1]).charCodeAt(0)){if((e[r][1]._close||e[l][1]._open)&&(e[l][1].end.offset-e[l][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[l][1].end.offset-e[l][1].start.offset)%3))continue;s=e[r][1].end.offset-e[r][1].start.offset>1&&e[l][1].end.offset-e[l][1].start.offset>1?2:1;const f=Object.assign({},e[r][1].end),h=Object.assign({},e[l][1].start);Vr(f,-s),Vr(h,s),i={type:s>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},e[r][1].end)},a={type:s>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[l][1].start),end:h},o={type:s>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[l][1].start)},n={type:s>1?"strong":"emphasis",start:Object.assign({},i.start),end:Object.assign({},a.end)},e[r][1].end=Object.assign({},i.start),e[l][1].start=Object.assign({},a.end),c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=At(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=At(c,[["enter",n,t],["enter",i,t],["exit",i,t],["enter",o,t]]),c=At(c,cr(t.parser.constructs.insideSpan.null,e.slice(r+1,l),t)),c=At(c,[["exit",o,t],["enter",a,t],["exit",a,t],["exit",n,t]]),e[l][1].end.offset-e[l][1].start.offset?(u=2,c=At(c,[["enter",e[l][1],t],["exit",e[l][1],t]])):u=0,Pt(e,r-1,l-r+3,c),l=r+c.length-u-2;break}l=-1;for(;++l<e.length;)"attentionSequence"===e[l][1].type&&(e[l][1].type="data");return e}};function Vr(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Gr={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 It(t)?(e.consume(t),i):c(t)}function i(e){return 43===e||45===e||46===e||Lt(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||Lt(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||Mt(n)?r(n):(e.consume(n),s)}function c(t){return 64===t?(e.consume(t),u):Bt(t)?(e.consume(t),c):r(t)}function u(e){return Lt(e)?l(e):r(e)}function l(r){return 46===r?(e.consume(r),n=0,u):62===r?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):f(r)}function f(t){if((45===t||Lt(t))&&n++<63){const r=45===t?f:l;return e.consume(t),r}return r(t)}}};const Wr={name:"htmlText",tokenize:function(e,t,r){const n=this;let o,i,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),w):63===t?(e.consume(t),y):It(t)?(e.consume(t),k):r(t)}function c(t){return 45===t?(e.consume(t),u):91===t?(e.consume(t),i=0,p):It(t)?(e.consume(t),g):r(t)}function u(t){return 45===t?(e.consume(t),h):r(t)}function l(t){return null===t?r(t):45===t?(e.consume(t),f):Ut(t)?(a=l,T(t)):(e.consume(t),l)}function f(t){return 45===t?(e.consume(t),h):l(t)}function h(e){return 62===e?j(e):45===e?f(e):l(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):Ut(t)?(a=d,T(t)):(e.consume(t),d)}function m(t){return 93===t?(e.consume(t),v):d(t)}function v(t){return 62===t?j(t):93===t?(e.consume(t),v):d(t)}function g(t){return null===t||62===t?j(t):Ut(t)?(a=g,T(t)):(e.consume(t),g)}function y(t){return null===t?r(t):63===t?(e.consume(t),b):Ut(t)?(a=y,T(t)):(e.consume(t),y)}function b(e){return 62===e?j(e):y(e)}function w(t){return It(t)?(e.consume(t),x):r(t)}function x(t){return 45===t||Lt(t)?(e.consume(t),x):E(t)}function E(t){return Ut(t)?(a=E,T(t)):qt(t)?(e.consume(t),E):j(t)}function k(t){return 45===t||Lt(t)?(e.consume(t),k):47===t||62===t||$t(t)?S(t):r(t)}function S(t){return 47===t?(e.consume(t),j):58===t||95===t||It(t)?(e.consume(t),D):Ut(t)?(a=S,T(t)):qt(t)?(e.consume(t),S):j(t)}function D(t){return 45===t||46===t||58===t||95===t||Lt(t)?(e.consume(t),D):P(t)}function P(t){return 61===t?(e.consume(t),A):Ut(t)?(a=P,T(t)):qt(t)?(e.consume(t),P):S(t)}function A(t){return null===t||60===t||61===t||62===t||96===t?r(t):34===t||39===t?(e.consume(t),o=t,C):Ut(t)?(a=A,T(t)):qt(t)?(e.consume(t),A):(e.consume(t),O)}function C(t){return t===o?(e.consume(t),o=void 0,F):null===t?r(t):Ut(t)?(a=C,T(t)):(e.consume(t),C)}function O(t){return null===t||34===t||39===t||60===t||61===t||96===t?r(t):47===t||62===t||$t(t)?S(t):(e.consume(t),O)}function F(e){return 47===e||62===e||$t(e)?S(e):r(e)}function j(n){return 62===n?(e.consume(n),e.exit("htmlTextData"),e.exit("htmlText"),t):r(n)}function T(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),_}function _(t){return qt(t)?Kt(e,R,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):R(t)}function R(t){return e.enter("htmlTextData"),a(t)}}};const Kr={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:Mr.resolveAll};const Qr={name:"hardBreakEscape",tokenize:function(e,t,r){return function(t){return e.enter("hardBreakEscape"),e.consume(t),n};function n(n){return Ut(n)?(e.exit("hardBreakEscape"),t(n)):r(n)}}};const Zr={name:"codeText",tokenize:function(e,t,r){let n,o,i=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),a(t)};function a(t){return 96===t?(e.consume(t),i++,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?(o=e.enter("codeTextSequence"),n=0,u(t)):Ut(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||Ut(t)?(e.exit("codeTextData"),s(t)):(e.consume(t),c)}function u(r){return 96===r?(e.consume(r),n++,u):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}};const Yr={42:fr,43:fr,45:fr,48:fr,49:fr,50:fr,51:fr,52:fr,53:fr,54:fr,55:fr,56:fr,57:fr,62:dr},Xr={91:wr},Jr={[-2]:Er,[-1]:Er,32:Er},en={35:Sr,42:lr,45:[Dr,lr],60:Cr,61:Dr,95:lr,96:Tr,126:Tr},tn={38:Ir,92:Lr},rn={[-5]:Br,[-4]:Br,[-3]:Br,33:Ur,38:Ir,42:qr,60:[Gr,Wr],91:Kr,92:[Qr,Lr],93:Mr,95:qr,96:Zr},nn={null:[qr,rr]},on={null:[42,95]},an={null:[]};const sn=/[\0\t\n\r]/g;function cn(e,t){const r=Number.parseInt(e,t);return r<9||11===r||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||65535==(65535&r)||65534==(65535&r)||r>1114111?"�":String.fromCodePoint(r)}const un=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function ln(e){return e.replace(un,fn)}function fn(e,t,r){if(t)return t;if(35===r.charCodeAt(0)){const e=r.charCodeAt(1),t=120===e||88===e;return cn(r.slice(t?2:1),t?16:10)}return Rr(r)||e}const hn={}.hasOwnProperty;function pn(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:i(ee),autolinkProtocol:D,autolinkEmail:D,atxHeading:i(Z),blockQuote:i(V),characterEscape:D,characterReference:D,codeFenced:i(G),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:i(G,a),codeText:i(W,a),codeTextData:D,data:D,codeFlowValue:D,definition:i(K),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:i(Q),hardBreakEscape:i(Y),hardBreakTrailing:i(Y),htmlFlow:i(X,a),htmlFlowData:D,htmlText:i(X,a),htmlTextData:D,image:i(J),label:a,link:i(ee),listItem:i(re),listItemValue:h,listOrdered:i(te,f),listUnordered:i(te),paragraph:i(ne),reference:N,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:i(Z),strong:i(oe),thematicBreak:i(ae)},exit:{atxHeading:c(),atxHeadingSequence:x,autolink:c(),autolinkEmail:q,autolinkProtocol:$,blockQuote:c(),characterEscapeValue:P,characterReferenceMarkerHexadecimal:z,characterReferenceMarkerNumeric:z,characterReferenceValue:U,codeFenced:c(v),codeFencedFence:m,codeFencedFenceInfo:p,codeFencedFenceMeta:d,codeFlowValue:P,codeIndented:c(g),codeText:c(j),codeTextData:P,data:P,definition:c(),definitionDestinationString:w,definitionLabelString:y,definitionTitleString:b,emphasis:c(),hardBreakEscape:c(C),hardBreakTrailing:c(C),htmlFlow:c(O),htmlFlowData:P,htmlText:c(F),htmlTextData:P,image:c(_),label:I,labelText:R,lineEnding:A,link:c(T),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:H,resourceDestinationString:L,resourceTitleString:B,resource:M,setextHeading:c(S),setextHeadingLineSequence:k,setextHeadingText:E,strong:c(),thematicBreak:c()}};mn(t,(e||{}).mdastExtensions||[]);const r={};return n;function n(e){let n={type:"root",children:[]};const i={stack:[n],tokenStack:[],config:t,enter:s,exit:u,buffer:a,resume:l,data:r},c=[];let f=-1;for(;++f<e.length;)if("listOrdered"===e[f][1].type||"listUnordered"===e[f][1].type)if("enter"===e[f][0])c.push(f);else{f=o(e,c.pop(),f)}for(f=-1;++f<e.length;){const r=t[e[f][0]];hn.call(r,e[f][1].type)&&r[e[f][1].type].call(Object.assign({sliceSerialize:e[f][2].sliceSerialize},i),e[f][1])}if(i.tokenStack.length>0){const e=i.tokenStack[i.tokenStack.length-1];(e[1]||gn).call(i,void 0,e[0])}for(n.position={start:dn(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:dn(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},f=-1;++f<t.transforms.length;)n=t.transforms[f](n)||n;return n}function o(e,t,r){let n,o,i,a,s=t-1,c=-1,u=!1;for(;++s<=r;){const t=e[s];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?c++:c--,a=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!n||a||c||i||(i=s),a=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:a=void 0}if(!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(o=void 0;a--;){const t=e[a];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;o&&(e[o][1].type="lineEndingBlank",u=!0),t[1].type="lineEnding",o=a}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||s,0,["exit",n,t[2]]),s++,r++}if("listItemPrefix"===t[1].type){const o={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};n=o,e.splice(s,0,["enter",o,t[2]]),s++,r++,i=void 0,a=!0}}}return e[t][1]._spread=u,r}function i(e,t){return r;function r(r){s.call(this,e(r),r),t&&t.call(this,r)}}function a(){this.stack.push({type:"fragment",children:[]})}function s(e,t,r){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,r]),e.position={start:dn(t.start),end:void 0}}function c(e){return t;function t(t){e&&e.call(this,t),u.call(this,t)}}function u(e,t){const r=this.stack.pop(),n=this.tokenStack.pop();if(!n)throw new Error("Cannot close `"+e.type+"` ("+Ye({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]||gn).call(this,e,n[0])}r.position.end=dn(e.end)}function l(){return kt(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function h(e){if(this.data.expectingFirstListItemValue){this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function p(){const e=this.resume();this.stack[this.stack.length-1].lang=e}function d(){const e=this.resume();this.stack[this.stack.length-1].meta=e}function m(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function v(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function g(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}function y(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.label=t,r.identifier=br(this.sliceSerialize(e)).toLowerCase()}function b(){const e=this.resume();this.stack[this.stack.length-1].title=e}function w(){const e=this.resume();this.stack[this.stack.length-1].url=e}function x(e){const t=this.stack[this.stack.length-1];if(!t.depth){const r=this.sliceSerialize(e).length;t.depth=r}}function E(){this.data.setextHeadingSlurpLineEnding=!0}function k(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2}function S(){this.data.setextHeadingSlurpLineEnding=void 0}function D(e){const t=this.stack[this.stack.length-1].children;let r=t[t.length-1];r&&"text"===r.type||(r=ie(),r.position={start:dn(e.start),end:void 0},t.push(r)),this.stack.push(r)}function P(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=dn(e.end)}function A(e){const r=this.stack[this.stack.length-1];if(this.data.atHardBreak){return r.children[r.children.length-1].position.end=dn(e.end),void(this.data.atHardBreak=void 0)}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(r.type)&&(D.call(this,e),P.call(this,e))}function C(){this.data.atHardBreak=!0}function O(){const e=this.resume();this.stack[this.stack.length-1].value=e}function F(){const e=this.resume();this.stack[this.stack.length-1].value=e}function j(){const e=this.resume();this.stack[this.stack.length-1].value=e}function T(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function _(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function R(e){const t=this.sliceSerialize(e),r=this.stack[this.stack.length-2];r.label=ln(t),r.identifier=br(t).toLowerCase()}function I(){const e=this.stack[this.stack.length-1],t=this.resume(),r=this.stack[this.stack.length-1];if(this.data.inReference=!0,"link"===r.type){const t=e.children;r.children=t}else r.alt=t}function L(){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 M(){this.data.inReference=void 0}function N(){this.data.referenceType="collapsed"}function H(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.label=t,r.identifier=br(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"}function z(e){this.data.characterReferenceType=e.type}function U(e){const t=this.sliceSerialize(e),r=this.data.characterReferenceType;let n;if(r)n=cn(t,"characterReferenceMarkerNumeric"===r?10:16),this.data.characterReferenceType=void 0;else{n=Rr(t)}const o=this.stack.pop();o.value+=n,o.position.end=dn(e.end)}function $(e){P.call(this,e);this.stack[this.stack.length-1].url=this.sliceSerialize(e)}function q(e){P.call(this,e);this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)}function V(){return{type:"blockquote",children:[]}}function G(){return{type:"code",lang:null,meta:null,value:""}}function W(){return{type:"inlineCode",value:""}}function K(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Q(){return{type:"emphasis",children:[]}}function Z(){return{type:"heading",depth:0,children:[]}}function Y(){return{type:"break"}}function X(){return{type:"html",value:""}}function J(){return{type:"image",title:null,url:"",alt:null}}function ee(){return{type:"link",title:null,url:"",children:[]}}function te(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}function re(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}function ne(){return{type:"paragraph",children:[]}}function oe(){return{type:"strong",children:[]}}function ie(){return{type:"text",value:""}}function ae(){return{type:"thematicBreak"}}}(r)(function(e){for(;!Ct(e););return e}(function(e){const t={defined:[],lazy:{},constructs:jt([o,...(e||{}).extensions||[]]),content:r(Qt),document:r(Zt),flow:r(tr),string:r(nr),text:r(or)};return t;function r(e){return function(r){return ur(t,e,r)}}}(r).document().write(function(){let e,t=1,r="",n=!0;return function(o,i,a){const s=[];let c,u,l,f,h;for(o=r+("string"==typeof o?o.toString():new TextDecoder(i||void 0).decode(o)),l=0,r="",n&&(65279===o.charCodeAt(0)&&l++,n=void 0);l<o.length;){if(sn.lastIndex=l,c=sn.exec(o),f=c&&void 0!==c.index?c.index:o.length,h=o.charCodeAt(f),!c){r=o.slice(l);break}if(10===h&&l===f&&e)s.push(-3),e=void 0;else switch(e&&(s.push(-5),e=void 0),l<f&&(s.push(o.slice(l,f)),t+=f-l),h){case 0:s.push(65533),t++;break;case 9:for(u=4*Math.ceil(t/4),s.push(-2);t++<u;)s.push(-1);break;case 10:s.push(-4),t=1;break;default:e=!0,t=1}l=f+1}return a&&(e&&s.push(-5),r&&s.push(r),s.push(null)),s}}()(e,t,!0))))}function dn(e){return{line:e.line,column:e.column,offset:e.offset}}function mn(e,t){let r=-1;for(;++r<t.length;){const n=t[r];Array.isArray(n)?mn(e,n):vn(e,n)}}function vn(e,t){let r;for(r in t)if(hn.call(t,r))switch(r){case"canContainEols":{const n=t[r];n&&e[r].push(...n);break}case"transforms":{const n=t[r];n&&e[r].push(...n);break}case"enter":case"exit":{const n=t[r];n&&Object.assign(e[r],n);break}}}function gn(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Ye({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Ye({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Ye({start:t.start,end:t.end})+") is still open")}const yn={}.hasOwnProperty;function bn(e,t){let r,n=-1;if(t.extensions)for(;++n<t.extensions.length;)bn(e,t.extensions[n]);for(r in t)if(yn.call(t,r))switch(r){case"extensions":break;case"unsafe":case"join":wn(e[r],t[r]);break;case"handlers":xn(e[r],t[r]);break;default:e.options[r]=t[r]}return e}function wn(e,t){t&&e.push(...t)}function xn(e,t){t&&Object.assign(e,t)}function En(e,t,r){return">"+(r?"":" ")+e}function kn(e,t){return Sn(e,t.inConstruct,!0)&&!Sn(e,t.notInConstruct,!1)}function Sn(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 Dn(e,t,r,n){let o=-1;for(;++o<r.unsafe.length;)if("\n"===r.unsafe[o].character&&kn(r.stack,r.unsafe[o]))return/[ \t]/.test(n.before)?"":" ";return"\\\n"}function Pn(e,t){return Boolean(!1===t.options.fences&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function An(e,t,r){return(r?"":" ")+e}function Cn(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 On(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"),a=r.createTracker(n);let s=a.move(o);return s+=a.move(r.containerPhrasing(e,{before:s,after:o,...a.current()})),s+=a.move(o),i(),s}On.peek=function(e,t,r){return r.options.emphasis||"*"};const Fn=function(e,t,r,n,o){const i=jn(t);if(null!=r&&("number"!=typeof r||r<0||r===Number.POSITIVE_INFINITY))throw new Error("Expected positive finite index");if(!(null==n||Fn(n)&&n.children))throw new Error("Expected parent node");if(null==n!=(null==r))throw new Error("Expected both parent and index");return!!Rn(e)&&i.call(o,e,r,n)},jn=function(e){if(null==e)return _n;if("function"==typeof e)return Tn(e);if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=jn(e[r]);return Tn(n);function n(...e){let r=-1;for(;++r<t.length;)if(t[r].apply(this,e))return!0;return!1}}(e):function(e){const t=e;return Tn(r);function r(r){const n=r;let o;for(o in e)if(n[o]!==t[o])return!1;return!0}}(e);if("string"==typeof e)return function(e){return Tn(t);function t(t){return t&&t.type===e}}(e);throw new Error("Expected function, string, or object as test")};function Tn(e){return function(t,r,n){return Boolean(Rn(t)&&e.call(this,t,"number"==typeof r?r:void 0,n||void 0))}}function _n(){return!0}function Rn(e){return null!==e&&"object"==typeof e&&"type"in e}const In=[],Ln=!0,Bn=!1,Mn="skip";function Nn(e,t,r,n){let o;"function"==typeof t&&"function"!=typeof r?(n=r,r=t):o=t;const i=jn(o),a=n?-1:1;!function e(o,s,c){const u=o&&"object"==typeof o?o:{};if("string"==typeof u.type){const e="string"==typeof u.tagName?u.tagName:"string"==typeof u.name?u.name:void 0;Object.defineProperty(l,"name",{value:"node ("+o.type+(e?"<"+e+">":"")+")"})}return l;function l(){let u,l,f,h=In;if((!t||i(o,s,c[c.length-1]||void 0))&&(h=function(e){if(Array.isArray(e))return e;if("number"==typeof e)return[Ln,e];return null==e?In:[e]}(r(o,c)),h[0]===Bn))return h;if("children"in o&&o.children){const t=o;if(t.children&&h[0]!==Mn)for(l=(n?t.children.length:-1)+a,f=c.concat(t);l>-1&&l<t.children.length;){const r=t.children[l];if(u=e(r,l,f)(),u[0]===Bn)return u;l="number"==typeof u[1]?u[1]:l+a}}return h}}(e,void 0,[])()}function Hn(e,t,r,n){let o,i,a;"function"==typeof t&&"function"!=typeof r?(i=void 0,a=t,o=r):(i=t,a=r,o=n),Nn(e,i,(function(e,t){const r=t[t.length-1],n=r?r.children.indexOf(e):void 0;return a(e,n,r)}),o)}function zn(e,t){let r=!1;return Hn(e,(function(e){if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return r=!0,Bn})),Boolean((!e.depth||e.depth<3)&&kt(e)&&(t.options.setext||r))}function Un(e){return e.value||""}function $n(e,t,r,n){const o=Cn(r),i='"'===o?"Quote":"Apostrophe",a=r.enter("image");let s=r.enter("label");const c=r.createTracker(n);let u=c.move("![");return u+=c.move(r.safe(e.alt,{before:u,after:"]",...c.current()})),u+=c.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=r.enter("destinationLiteral"),u+=c.move("<"),u+=c.move(r.safe(e.url,{before:u,after:">",...c.current()})),u+=c.move(">")):(s=r.enter("destinationRaw"),u+=c.move(r.safe(e.url,{before:u,after:e.title?" ":")",...c.current()}))),s(),e.title&&(s=r.enter(`title${i}`),u+=c.move(" "+o),u+=c.move(r.safe(e.title,{before:u,after:o,...c.current()})),u+=c.move(o),s()),u+=c.move(")"),a(),u}function qn(e,t,r,n){const o=e.referenceType,i=r.enter("imageReference");let a=r.enter("label");const s=r.createTracker(n);let c=s.move("![");const u=r.safe(e.alt,{before:c,after:"]",...s.current()});c+=s.move(u+"]["),a();const l=r.stack;r.stack=[],a=r.enter("reference");const f=r.safe(r.associationId(e),{before:c,after:"]",...s.current()});return a(),r.stack=l,i(),"full"!==o&&u&&u===f?"shortcut"===o?c=c.slice(0,-1):c+=s.move("]"):c+=s.move(f+"]"),c}function Vn(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=r.compilePattern(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 Gn(e,t){const r=kt(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 Wn(e,t,r,n){const o=Cn(r),i='"'===o?"Quote":"Apostrophe",a=r.createTracker(n);let s,c;if(Gn(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 u=a.move("[");return u+=a.move(r.containerPhrasing(e,{before:u,after:"](",...a.current()})),u+=a.move("]("),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=r.enter("destinationLiteral"),u+=a.move("<"),u+=a.move(r.safe(e.url,{before:u,after:">",...a.current()})),u+=a.move(">")):(c=r.enter("destinationRaw"),u+=a.move(r.safe(e.url,{before:u,after:e.title?" ":")",...a.current()}))),c(),e.title&&(c=r.enter(`title${i}`),u+=a.move(" "+o),u+=a.move(r.safe(e.title,{before:u,after:o,...a.current()})),u+=a.move(o),c()),u+=a.move(")"),s(),u}function Kn(e,t,r,n){const o=e.referenceType,i=r.enter("linkReference");let a=r.enter("label");const s=r.createTracker(n);let c=s.move("[");const u=r.containerPhrasing(e,{before:c,after:"]",...s.current()});c+=s.move(u+"]["),a();const l=r.stack;r.stack=[],a=r.enter("reference");const f=r.safe(r.associationId(e),{before:c,after:"]",...s.current()});return a(),r.stack=l,i(),"full"!==o&&u&&u===f?"shortcut"===o?c=c.slice(0,-1):c+=s.move("]"):c+=s.move(f+"]"),c}function Qn(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 Zn(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}Un.peek=function(){return"<"},$n.peek=function(){return"!"},qn.peek=function(){return"!"},Vn.peek=function(){return"`"},Wn.peek=function(e,t,r){return Gn(e,r)?"<":"["},Kn.peek=function(){return"["};const Yn=jn(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","link","linkReference","strong","text"]);function Xn(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"),a=r.createTracker(n);let s=a.move(o+o);return s+=a.move(r.containerPhrasing(e,{before:s,after:o,...a.current()})),s+=a.move(o+o),i(),s}Xn.peek=function(e,t,r){return r.options.strong||"*"};const Jn={blockquote:function(e,t,r,n){const o=r.enter("blockquote"),i=r.createTracker(n);i.move("> "),i.shift(2);const a=r.indentLines(r.containerFlow(e,i.current()),En);return o(),a},break:Dn,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||"",a="`"===o?"GraveAccent":"Tilde";if(Pn(e,r)){const e=r.enter("codeIndented"),t=r.indentLines(i,An);return e(),t}const s=r.createTracker(n),c=o.repeat(Math.max(function(e,t){const r=String(e);let n=r.indexOf(t),o=n,i=0,a=0;if("string"!=typeof t)throw new TypeError("Expected substring");for(;-1!==n;)n===o?++i>a&&(a=i):i=1,o=n+t.length,n=r.indexOf(t,o);return a}(i,o)+1,3)),u=r.enter("codeFenced");let l=s.move(c);if(e.lang){const t=r.enter(`codeFencedLang${a}`);l+=s.move(r.safe(e.lang,{before:l,after:" ",encode:["`"],...s.current()})),t()}if(e.lang&&e.meta){const t=r.enter(`codeFencedMeta${a}`);l+=s.move(" "),l+=s.move(r.safe(e.meta,{before:l,after:"\n",encode:["`"],...s.current()})),t()}return l+=s.move("\n"),i&&(l+=s.move(i+"\n")),l+=s.move(c),u(),l},definition:function(e,t,r,n){const o=Cn(r),i='"'===o?"Quote":"Apostrophe",a=r.enter("definition");let s=r.enter("label");const c=r.createTracker(n);let u=c.move("[");return u+=c.move(r.safe(r.associationId(e),{before:u,after:"]",...c.current()})),u+=c.move("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=r.enter("destinationLiteral"),u+=c.move("<"),u+=c.move(r.safe(e.url,{before:u,after:">",...c.current()})),u+=c.move(">")):(s=r.enter("destinationRaw"),u+=c.move(r.safe(e.url,{before:u,after:e.title?" ":"\n",...c.current()}))),s(),e.title&&(s=r.enter(`title${i}`),u+=c.move(" "+o),u+=c.move(r.safe(e.title,{before:u,after:o,...c.current()})),u+=c.move(o),s()),a(),u},emphasis:On,hardBreak:Dn,heading:function(e,t,r,n){const o=Math.max(Math.min(6,e.depth||1),1),i=r.createTracker(n);if(zn(e,r)){const t=r.enter("headingSetext"),n=r.enter("phrasing"),a=r.containerPhrasing(e,{...i.current(),before:"\n",after:"\n"});return n(),t(),a+"\n"+(1===o?"=":"-").repeat(a.length-(Math.max(a.lastIndexOf("\r"),a.lastIndexOf("\n"))+1))}const a="#".repeat(o),s=r.enter("headingAtx"),c=r.enter("phrasing");i.move(a+" ");let u=r.containerPhrasing(e,{before:"# ",after:"\n",...i.current()});return/^[\t ]/.test(u)&&(u="&#x"+u.charCodeAt(0).toString(16).toUpperCase()+";"+u.slice(1)),u=u?a+" "+u:a,r.options.closeAtx&&(u+=" "+a),c(),s(),u},html:Un,image:$n,imageReference:qn,inlineCode:Vn,link:Wn,linkReference:Kn,list:function(e,t,r,n){const o=r.enter("list"),i=r.bulletCurrent;let a=e.ordered?function(e){const t=e.options.bulletOrdered||".";if("."!==t&&")"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}(r):Qn(r);const s=e.ordered?"."===a?")":".":function(e){const t=Qn(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);let c=!(!t||!r.bulletLastUsed)&&a===r.bulletLastUsed;if(!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]||(c=!0),Zn(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){c=!0;break}}}}c&&(a=s),r.bulletCurrent=a;const u=r.containerFlow(e,n);return r.bulletLastUsed=a,r.bulletCurrent=i,o(),u},listItem:function(e,t,r,n){const o=function(e){const t=e.options.listItemIndent||"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||Qn(r);t&&"list"===t.type&&t.ordered&&(i=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===r.options.incrementListMarker?0:t.children.indexOf(e))+i);let a=i.length+1;("tab"===o||"mixed"===o&&(t&&"list"===t.type&&t.spread||e.spread))&&(a=4*Math.ceil(a/4));const s=r.createTracker(n);s.move(i+" ".repeat(a-i.length)),s.shift(a);const c=r.enter("listItem"),u=r.indentLines(r.containerFlow(e,s.current()),(function(e,t,r){if(t)return(r?"":" ".repeat(a))+e;return(r?i:i+" ".repeat(a-i.length))+e}));return c(),u},paragraph:function(e,t,r,n){const o=r.enter("paragraph"),i=r.enter("phrasing"),a=r.containerPhrasing(e,n);return i(),o(),a},root:function(e,t,r,n){return(e.children.some((function(e){return Yn(e)}))?r.containerPhrasing:r.containerFlow).call(r,e,n)},strong:Xn,text:function(e,t,r,n){return r.safe(e.value,n)},thematicBreak:function(e,t,r){const n=(Zn(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}},eo=[function(e,t,r,n){if("code"===t.type&&Pn(t,n)&&("list"===e.type||e.type===t.type&&Pn(e,n)))return!1;if("spread"in r&&"boolean"==typeof r.spread){if("paragraph"===e.type&&(e.type===t.type||"definition"===t.type||"heading"===t.type&&zn(t,n)))return;return r.spread?1:0}}];const to=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"],ro=[{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:to},{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:to},{atBreak:!0,before:"\\d+",character:")"},{character:")",inConstruct:"destinationRaw"},{atBreak:!0,character:"*",after:"(?:[ \t\r\n*])"},{character:"*",inConstruct:"phrasing",notInConstruct:to},{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:to},{character:"<",inConstruct:"destinationLiteral"},{atBreak:!0,character:"="},{atBreak:!0,character:">"},{character:">",inConstruct:"destinationLiteral"},{atBreak:!0,character:"["},{character:"[",inConstruct:"phrasing",notInConstruct:to},{character:"[",inConstruct:["label","reference"]},{character:"\\",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"]",inConstruct:["label","reference"]},{atBreak:!0,character:"_"},{character:"_",inConstruct:"phrasing",notInConstruct:to},{atBreak:!0,character:"`"},{character:"`",inConstruct:["codeFencedLangGraveAccent","codeFencedMetaGraveAccent"]},{character:"`",inConstruct:"phrasing",notInConstruct:to},{atBreak:!0,character:"~"}];function no(e){return e.label||!e.identifier?e.label||"":ln(e.identifier)}function oo(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 io(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 ao=/\r?\n|\r/g;function so(e,t){const r=[];let n,o=0,i=0;for(;n=ao.exec(e);)a(e.slice(o,n.index)),r.push(n[0]),o=n.index+n[0].length,i++;return a(e.slice(o)),r.join("");function a(e){r.push(t(e,i,!e))}}function co(e,t){return e-t}function uo(e,t){const r=/\\(?=[!-/:-@[-`{-~])/g,n=[],o=[],i=e+t;let a,s=-1,c=0;for(;a=r.exec(i);)n.push(a.index);for(;++s<n.length;)c!==n[s]&&o.push(e.slice(c,n[s])),o.push("\\"),c=n[s];return o.push(e.slice(c)),o.join("")}function lo(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),a=r[r.length-1];return o+=r.length-1,i=1===r.length?i+a.length:1+a.length+n,t},current:function(){return{now:{line:o,column:i},lineShift:n}},shift:function(e){n+=e}}}function fo(e,t={}){const r={enter:function(e){return r.stack.push(e),function(){r.stack.pop()}},indentLines:so,associationId:no,containerPhrasing:vo,containerFlow:go,createTracker:lo,compilePattern:oo,safe:yo,stack:[],unsafe:[...ro],join:[...eo],handlers:{...Jn},options:{},indexStack:[],handle:void 0};bn(r,t),r.options.tightDefinitions&&r.join.push(mo),r.handle=je("type",{invalid:ho,unknown:po,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}function ho(e){throw new Error("Cannot handle value `"+e+"`, expected node")}function po(e){throw new Error("Cannot handle unknown node `"+e.type+"`")}function mo(e,t){if("definition"===e.type&&e.type===t.type)return 0}function vo(e,t){return function(e,t,r){const n=t.indexStack,o=e.children||[],i=[];let a=-1,s=r.before;n.push(-1);let c=t.createTracker(r);for(;++a<o.length;){const u=o[a];let l;if(n[n.length-1]=a,a+1<o.length){let r=t.handle.handlers[o[a+1].type];r&&r.peek&&(r=r.peek),l=r?r(o[a+1],e,t,{before:"",after:"",...c.current()}).charAt(0):""}else l=r.after;i.length>0&&("\r"===s||"\n"===s)&&"html"===u.type&&(i[i.length-1]=i[i.length-1].replace(/(\r?\n|\r)$/," "),s=" ",c=t.createTracker(r),c.move(i.join(""))),i.push(c.move(t.handle(u,e,t,{...c.current(),before:s,after:l}))),s=i[i.length-1].slice(-1)}return n.pop(),i.join("")}(e,this,t)}function go(e,t){return function(e,t,r){const n=t.indexStack,o=e.children||[],i=t.createTracker(r),a=[];let s=-1;for(n.push(-1);++s<o.length;){const r=o[s];n[n.length-1]=s,a.push(i.move(t.handle(r,e,t,{before:"\n",after:"\n",...i.current()}))),"list"!==r.type&&(t.bulletLastUsed=void 0),s<o.length-1&&a.push(i.move(io(r,o[s+1],e,t)))}return n.pop(),a.join("")}(e,this,t)}function yo(e,t){return function(e,t,r){const n=(r.before||"")+(t||"")+(r.after||""),o=[],i=[],a={};let s=-1;for(;++s<e.unsafe.length;){const t=e.unsafe[s];if(!kn(e.stack,t))continue;const r=e.compilePattern(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)?(a[n].before&&!e&&(a[n].before=!1),a[n].after&&!r&&(a[n].after=!1)):(o.push(n),a[n]={before:e,after:r})}}o.sort(co);let c=r.before?r.before.length:0;const u=n.length-(r.after?r.after.length:0);for(s=-1;++s<o.length;){const e=o[s];e<c||e>=u||e+1<u&&o[s+1]===e+1&&a[e].after&&!a[e+1].before&&!a[e+1].after||o[s-1]===e-1&&a[e].before&&!a[e-1].before&&!a[e-1].after||(c!==e&&i.push(uo(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(uo(n.slice(c,u),r.after)),i.join("")}(this,e,t)}function bo(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 wo(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function xo(e,t,r){const n=jn((r||{}).ignore||[]),o=function(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const r=!e[0]||Array.isArray(e[0])?e:[e];let n=-1;for(;++n<r.length;){const e=r[n];t.push([Eo(e[0]),ko(e[1])])}return t}(t);let i=-1;for(;++i<o.length;)Nn(e,"text",a);function a(e,t){let r,a=-1;for(;++a<t.length;){const e=t[a],o=r?r.children:void 0;if(n(e,o?o.indexOf(e):void 0,r))return;r=e}if(r)return function(e,t){const r=t[t.length-1],n=o[i][0],a=o[i][1];let s=0;const c=r.children.indexOf(e);let u=!1,l=[];n.lastIndex=0;let f=n.exec(e.value);for(;f;){const r=f.index,o={index:f.index,input:f.input,stack:[...t,e]};let i=a(...f,o);if("string"==typeof i&&(i=i.length>0?{type:"text",value:i}:void 0),!1===i?n.lastIndex=r+1:(s!==r&&l.push({type:"text",value:e.value.slice(s,r)}),Array.isArray(i)?l.push(...i):i&&l.push(i),s=r+f[0].length,u=!0),!n.global)break;f=n.exec(e.value)}u?(s<e.value.length&&l.push({type:"text",value:e.value.slice(s)}),r.children.splice(c,1,...l)):l=[e];return c+l.length}(e,t)}}function Eo(e){return"string"==typeof e?new RegExp(wo(e),"g"):e}function ko(e){return"function"==typeof e?e:function(){return e}}const So="phrasing",Do=["autolink","link","image","label"];function Po(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Ao(e){this.config.enter.autolinkProtocol.call(this,e)}function Co(e){this.config.exit.autolinkProtocol.call(this,e)}function Oo(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function Fo(e){this.config.exit.autolinkEmail.call(this,e)}function jo(e){this.exit(e)}function To(e){xo(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,_o],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,Ro]],{ignore:["link","linkReference"]})}function _o(e,t,r,n,o){let i="";if(!Io(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 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 o=bo(e,"(");let i=bo(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(!a[0])return!1;const s={type:"link",title:null,url:i+t+a[0],children:[{type:"text",value:t+a[0]}]};return a[1]?[s,{type:"text",value:a[1]}]:s}function Ro(e,t,r,n){return!(!Io(n,!0)||/[-\d_]$/.test(r))&&{type:"link",title:null,url:"mailto:"+t+"@"+r,children:[{type:"text",value:t+"@"+r}]}}function Io(e,t){const r=e.input.charCodeAt(e.index-1);return(0===e.index||Gt(r)||Vt(r))&&(!t||47!==r)}function Lo(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Bo(){this.buffer()}function Mo(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.label=t,r.identifier=br(this.sliceSerialize(e)).toLowerCase()}function No(e){this.exit(e)}function Ho(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function zo(){this.buffer()}function Uo(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.label=t,r.identifier=br(this.sliceSerialize(e)).toLowerCase()}function $o(e){this.exit(e)}function qo(e,t,r,n){const o=r.createTracker(n);let i=o.move("[^");const a=r.enter("footnoteReference"),s=r.enter("reference");return i+=o.move(r.safe(r.associationId(e),{...o.current(),before:i,after:"]"})),s(),a(),i+=o.move("]"),i}function Vo(e,t,r,n){const o=r.createTracker(n);let i=o.move("[^");const a=r.enter("footnoteDefinition"),s=r.enter("label");return i+=o.move(r.safe(r.associationId(e),{...o.current(),before:i,after:"]"})),s(),i+=o.move("]:"+(e.children&&e.children.length>0?" ":"")),o.shift(4),i+=o.move(r.indentLines(r.containerFlow(e,o.current()),Go)),a(),i}function Go(e,t,r){return 0===t?e:(r?"":" ")+e}qo.peek=function(){return"["};const Wo=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function Ko(e){this.enter({type:"delete",children:[]},e)}function Qo(e){this.exit(e)}function Zo(e,t,r,n){const o=r.createTracker(n),i=r.enter("strikethrough");let a=o.move("~~");return a+=r.containerPhrasing(e,{...o.current(),before:a,after:"~"}),a+=o.move("~~"),i(),a}function Yo(e){return null==e?"":String(e)}function Xo(e){return e.length}function Jo(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}function ei(e){const t=e._align;this.enter({type:"table",align:t.map((function(e){return"none"===e?null:e})),children:[]},e),this.data.inTable=!0}function ti(e){this.exit(e),this.data.inTable=void 0}function ri(e){this.enter({type:"tableRow",children:[]},e)}function ni(e){this.exit(e)}function oi(e){this.enter({type:"tableCell",children:[]},e)}function ii(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,ai));const r=this.stack[this.stack.length-1];r.type,r.value=t,this.exit(e)}function ai(e,t){return"|"===t?t:e}function si(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:{inlineCode:function(e,t,r){let n=Jn.inlineCode(e,t,r);r.stack.includes("tableCell")&&(n=n.replace(/\|/g,"\\$&"));return n},table:function(e,t,r,n){return s(function(e,t,r){const n=e.children;let o=-1;const i=[],a=t.enter("table");for(;++o<n.length;)i[o]=c(n[o],t,r);return a(),i}(e,r,n),e.align)},tableCell:a,tableRow:function(e,t,r,n){const o=c(e,r,n),i=s([o]);return i.slice(0,i.indexOf("\n"))}}};function a(e,t,r,n){const o=r.enter("tableCell"),a=r.enter("phrasing"),s=r.containerPhrasing(e,{...n,before:i,after:i});return a(),o(),s}function s(e,t){return function(e,t={}){const r=(t.align||[]).concat(),n=t.stringLength||Xo,o=[],i=[],a=[],s=[];let c=0,u=-1;for(;++u<e.length;){const r=[],o=[];let l=-1;for(e[u].length>c&&(c=e[u].length);++l<e[u].length;){const i=Yo(e[u][l]);if(!1!==t.alignDelimiters){const e=n(i);o[l]=e,(void 0===s[l]||e>s[l])&&(s[l]=e)}r.push(i)}i[u]=r,a[u]=o}let l=-1;if("object"==typeof r&&"length"in r)for(;++l<c;)o[l]=Jo(r[l]);else{const e=Jo(r);for(;++l<c;)o[l]=e}l=-1;const f=[],h=[];for(;++l<c;){const e=o[l];let r="",n="";99===e?(r=":",n=":"):108===e?r=":":114===e&&(n=":");let i=!1===t.alignDelimiters?1:Math.max(1,s[l]-r.length-n.length);const a=r+"-".repeat(i)+n;!1!==t.alignDelimiters&&(i=r.length+i+n.length,i>s[l]&&(s[l]=i),h[l]=i),f[l]=a}i.splice(1,0,f),a.splice(1,0,h),u=-1;const p=[];for(;++u<i.length;){const e=i[u],r=a[u];l=-1;const n=[];for(;++l<c;){const i=e[l]||"";let a="",u="";if(!1!==t.alignDelimiters){const e=s[l]-(r[l]||0),t=o[l];114===t?a=" ".repeat(e):99===t?e%2?(a=" ".repeat(e/2+.5),u=" ".repeat(e/2-.5)):(a=" ".repeat(e/2),u=a):u=" ".repeat(e)}!1===t.delimiterStart||l||n.push("|"),!1===t.padding||!1===t.alignDelimiters&&""===i||!1===t.delimiterStart&&!l||n.push(" "),!1!==t.alignDelimiters&&n.push(a),n.push(i),!1!==t.alignDelimiters&&n.push(u),!1!==t.padding&&n.push(" "),!1===t.delimiterEnd&&l===c-1||n.push("|")}p.push(!1===t.delimiterEnd?n.join("").replace(/ +$/,""):n.join(""))}return p.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=[],s=t.enter("tableRow");for(;++o<n.length;)i[o]=a(n[o],0,t,r);return s(),i}}function ci(e){const t=this.stack[this.stack.length-2];t.type,t.checked="taskListCheckValueChecked"===e.type}function ui(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];e.type;const 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)}function li(e,t,r,n){const o=e.children[0],i="boolean"==typeof e.checked&&o&&"paragraph"===o.type,a="["+(e.checked?"x":" ")+"] ",s=r.createTracker(n);i&&s.move(a);let c=Jn.listItem(e,t,r,{...n,...s.current()});return i&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,(function(e){return e+a}))),c}Zo.peek=function(){return"~"};const fi={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},hi={tokenize:function(e,t,r){let n,o,i;return a;function a(t){return 46===t||95===t?e.check(di,c,s)(t):null===t||$t(t)||Gt(t)||45!==t&&Vt(t)?c(t):(i=!0,e.consume(t),a)}function s(t){return 95===t?n=!0:(o=n,n=void 0),e.consume(t),a}function c(e){return o||n||!i?r(e):t(e)}},partial:!0},pi={tokenize:function(e,t){let r=0,n=0;return o;function o(a){return 40===a?(r++,e.consume(a),o):41===a&&n<r?i(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(di,t,i)(a):null===a||$t(a)||Gt(a)?t(a):(e.consume(a),o)}function i(t){return 41===t&&n++,e.consume(t),o}},partial:!0},di={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),i):93===a?(e.consume(a),o):60===a||null===a||$t(a)||Gt(a)?t(a):r(a)}function o(e){return null===e||40===e||91===e||$t(e)||Gt(e)?t(e):n(e)}function i(e){return It(e)?a(e):r(e)}function a(t){return 59===t?(e.consume(t),n):It(t)?(e.consume(t),a):r(t)}},partial:!0},mi={tokenize:function(e,t,r){return function(t){return e.consume(t),n};function n(e){return Lt(e)?r(e):t(e)}},partial:!0},vi={tokenize:function(e,t,r){const n=this;return function(t){if(87!==t&&119!==t||!xi.call(n,n.previous)||Di(n.events))return r(t);return e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(fi,e.attempt(hi,e.attempt(pi,o),r),r)(t)};function o(r){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(r)}},previous:xi},gi={tokenize:function(e,t,r){const n=this;let o="",i=!1;return function(t){if((72===t||104===t)&&Ei.call(n,n.previous)&&!Di(n.events))return e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),o+=String.fromCodePoint(t),e.consume(t),a;return r(t)};function a(t){if(It(t)&&o.length<5)return o+=String.fromCodePoint(t),e.consume(t),a;if(58===t){const r=o.toLowerCase();if("http"===r||"https"===r)return e.consume(t),s}return r(t)}function s(t){return 47===t?(e.consume(t),i?c:(i=!0,s)):r(t)}function c(t){return null===t||Mt(t)||$t(t)||Gt(t)||Vt(t)?r(t):e.attempt(hi,e.attempt(pi,u),r)(t)}function u(r){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(r)}},previous:Ei},yi={tokenize:function(e,t,r){const n=this;let o,i;return function(t){if(!Si(t)||!ki.call(n,n.previous)||Di(n.events))return r(t);return e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(t)};function a(t){return Si(t)?(e.consume(t),a):64===t?(e.consume(t),s):r(t)}function s(t){return 46===t?e.check(mi,u,c)(t):45===t||95===t||Lt(t)?(i=!0,e.consume(t),s):u(t)}function c(t){return e.consume(t),o=!0,s}function u(a){return i&&o&&It(n.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(a)):r(a)}},previous:ki},bi={};let wi=48;for(;wi<123;)bi[wi]=yi,wi++,58===wi?wi=65:91===wi&&(wi=97);function xi(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||$t(e)}function Ei(e){return!It(e)}function ki(e){return!(47===e||Si(e))}function Si(e){return 43===e||45===e||46===e||95===e||Lt(e)}function Di(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}bi[43]=yi,bi[45]=yi,bi[46]=yi,bi[95]=yi,bi[72]=[yi,gi],bi[104]=[yi,gi],bi[87]=[yi,vi],bi[119]=[yi,vi];const Pi={tokenize:function(e,t,r){const n=this;return Kt(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 Ai(e,t,r){const n=this;let o=n.events.length;const i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let a;for(;o--;){const e=n.events[o][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(o){if(!a||!a._balanced)return r(o);const s=br(n.sliceSerialize({start:a.end,end:n.now()}));if(94!==s.codePointAt(0)||!i.includes(s.slice(1)))return r(o);return e.enter("gfmFootnoteCallLabelMarker"),e.consume(o),e.exit("gfmFootnoteCallLabelMarker"),t(o)}}function Ci(e,t){let r,n=e.length;for(;n--;)if("labelImage"===e[n][1].type&&"enter"===e[n][0]){r=e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const o={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},c=[e[n+1],e[n+2],["enter",o,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",a,t],["enter",s,t],["exit",s,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",o,t]];return e.splice(n,e.length-n+1,...c),e}function Oi(e,t,r){const n=this,o=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let i,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&&!i||null===s||91===s||$t(s))return r(s);if(93===s){e.exit("chunkString");const i=e.exit("gfmFootnoteCallString");return o.includes(br(n.sliceSerialize(i)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):r(s)}return $t(s)||(i=!0),a++,e.consume(s),92===s?u:c}function u(t){return 91===t||92===t||93===t?(e.consume(t),a++,c):c(t)}}function Fi(e,t,r){const n=this,o=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let i,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",u):r(t)}function u(t){if(s>999||93===t&&!a||null===t||91===t||$t(t))return r(t);if(93===t){e.exit("chunkString");const r=e.exit("gfmFootnoteDefinitionLabelString");return i=br(n.sliceSerialize(r)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),f}return $t(t)||(a=!0),s++,e.consume(t),92===t?l:u}function l(t){return 91===t||92===t||93===t?(e.consume(t),s++,u):u(t)}function f(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),o.includes(i)||o.push(i),Kt(e,h,"gfmFootnoteDefinitionWhitespace")):r(t)}function h(e){return t(e)}}function ji(e,t,r){return e.check(Xt,t,e.attempt(Pi,t,r))}function Ti(e){e.exit("gfmFootnoteDefinition")}function _i(e){let t=(e||{}).singleTilde;const r={tokenize:function(e,r,n){const o=this.previous,i=this.events;let a=0;return function(t){if(126===o&&"characterEscape"!==i[i.length-1][1].type)return n(t);return e.enter("strikethroughSequenceTemporary"),s(t)};function s(i){const c=$r(o);if(126===i)return a>1?n(i):(e.consume(i),a++,s);if(a<2&&!t)return n(i);const u=e.exit("strikethroughSequenceTemporary"),l=$r(i);return u._open=!l||2===l&&Boolean(c),u._close=!c||2===c&&Boolean(l),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)},a=[["enter",o,t],["enter",e[n][1],t],["exit",e[n][1],t],["enter",i,t]],s=t.parser.constructs.insideSpan.null;s&&Pt(a,a.length,0,cr(s,e.slice(n+1,r),t)),Pt(a,a.length,0,[["exit",i,t],["enter",e[r][1],t],["exit",e[r][1],t],["exit",o,t]]),Pt(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 Ri{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((function(e,t){return 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]),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 Ii(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}function Li(e,t,r){const n=this;let o,i=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 o=t>-1?n.events[t][1].type:null,i="tableHead"===o||"tableRow"===o?w:s;if(i===w&&n.parser.lazy[n.now().line])return r(e);return i(e)};function s(t){return e.enter("tableHead"),e.enter("tableRow"),function(e){if(124===e)return c(e);return o=!0,a+=1,c(e)}(t)}function c(t){return null===t?r(t):Ut(t)?a>1?(a=0,n.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),f):r(t):qt(t)?Kt(e,c,"whitespace")(t):(a+=1,o&&(o=!1,i+=1),124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),o=!0,c):(e.enter("data"),u(t)))}function u(t){return null===t||124===t||$t(t)?(e.exit("data"),c(t)):(e.consume(t),92===t?l:u)}function l(t){return 92===t||124===t?(e.consume(t),u):u(t)}function f(t){return n.interrupt=!1,n.parser.lazy[n.now().line]?r(t):(e.enter("tableDelimiterRow"),o=!1,qt(t)?Kt(e,h,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):h(t))}function h(t){return 45===t||58===t?d(t):124===t?(o=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),p):b(t)}function p(t){return qt(t)?Kt(e,d,"whitespace")(t):d(t)}function d(t){return 58===t?(a+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),m):45===t?(a+=1,m(t)):null===t||Ut(t)?y(t):b(t)}function m(t){return 45===t?(e.enter("tableDelimiterFiller"),v(t)):b(t)}function v(t){return 45===t?(e.consume(t),v):58===t?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),g):(e.exit("tableDelimiterFiller"),g(t))}function g(t){return qt(t)?Kt(e,y,"whitespace")(t):y(t)}function y(r){return 124===r?h(r):(null===r||Ut(r))&&o&&i===a?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(r)):b(r)}function b(e){return r(e)}function w(t){return e.enter("tableRow"),x(t)}function x(r){return 124===r?(e.enter("tableCellDivider"),e.consume(r),e.exit("tableCellDivider"),x):null===r||Ut(r)?(e.exit("tableRow"),t(r)):qt(r)?Kt(e,x,"whitespace")(r):(e.enter("data"),E(r))}function E(t){return null===t||124===t||$t(t)?(e.exit("data"),x(t)):(e.consume(t),92===t?k:E)}function k(t){return 92===t||124===t?(e.consume(t),E):E(t)}}function Bi(e,t){let r,n,o,i=-1,a=!0,s=0,c=[0,0,0,0],u=[0,0,0,0],l=!1,f=0;const h=new Ri;for(;++i<e.length;){const p=e[i],d=p[1];"enter"===p[0]?"tableHead"===d.type?(l=!1,0!==f&&(Ni(h,t,f,r,n),n=void 0,f=0),r={type:"table",start:Object.assign({},d.start),end:Object.assign({},d.end)},h.add(i,0,[["enter",r,t]])):"tableRow"===d.type||"tableDelimiterRow"===d.type?(a=!0,o=void 0,c=[0,0,0,0],u=[0,i+1,0,0],l&&(l=!1,n={type:"tableBody",start:Object.assign({},d.start),end:Object.assign({},d.end)},h.add(i,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]&&(u[0]=u[1],o=Mi(h,t,c,s,void 0,o)),c=u,u=[c[1],i,0,0])):(a=!1,0===u[2]&&(0!==c[1]&&(u[0]=u[1],o=Mi(h,t,c,s,void 0,o),c=[0,0,0,0]),u[2]=i)):"tableHead"===d.type?(l=!0,f=i):"tableRow"===d.type||"tableDelimiterRow"===d.type?(f=i,0!==c[1]?(u[0]=u[1],o=Mi(h,t,c,s,i,o)):0!==u[1]&&(o=Mi(h,t,u,s,i,o)),s=0):!s||"data"!==d.type&&"tableDelimiterMarker"!==d.type&&"tableDelimiterFiller"!==d.type||(u[3]=i)}for(0!==f&&Ni(h,t,f,r,n),h.consume(t.events),i=-1;++i<t.events.length;){const e=t.events[i];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=Ii(t.events,i))}return e}function Mi(e,t,r,n,o,i){const a=1===n?"tableHeader":2===n?"tableDelimiter":"tableData";0!==r[0]&&(i.end=Object.assign({},Hi(t.events,r[0])),e.add(r[0],0,[["exit",i,t]]));const s=Hi(t.events,r[1]);if(i={type:a,start:Object.assign({},s),end:Object.assign({},s)},e.add(r[1],0,[["enter",i,t]]),0!==r[2]){const o=Hi(t.events,r[2]),i=Hi(t.events,r[3]),a={type:"tableContent",start:Object.assign({},o),end:Object.assign({},i)};if(e.add(r[2],0,[["enter",a,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",a,t]])}return void 0!==o&&(i.end=Object.assign({},Hi(t.events,o)),e.add(o,0,[["exit",i,t]]),i=void 0),i}function Ni(e,t,r,n,o){const i=[],a=Hi(t.events,r);o&&(o.end=Object.assign({},a),i.push(["exit",o,t])),n.end=Object.assign({},a),i.push(["exit",n,t]),e.add(r+1,0,i)}function Hi(e,t){const r=e[t],n="enter"===r[0]?"start":"end";return r[1][n]}const zi={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 $t(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"),a):r(t)}function a(n){return Ut(n)?t(n):qt(n)?e.check({tokenize:Ui},t,r)(n):r(n)}}};function Ui(e,t,r){return Kt(e,(function(e){return null===e?r(e):t(e)}),"whitespace")}const $i={};function qi(){return{type:"break"}}const Vi={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},Gi={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},Wi={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"},Ki={ht:"\t",lf:"\n",cr:"\r",space:" ",exclamationMark:"!",quotationMark:'"',numberSign:"#",dollarSign:"$",percentSign:"%",ampersand:"&",apostrophe:"'",leftParenthesis:"(",rightParenthesis:")",asterisk:"*",plusSign:"+",comma:",",dash:"-",dot:".",slash:"/",digit0:"0",digit1:"1",digit2:"2",digit3:"3",digit4:"4",digit5:"5",digit6:"6",digit7:"7",digit8:"8",digit9:"9",colon:":",semicolon:";",lessThan:"<",equalsTo:"=",greaterThan:">",questionMark:"?",atSign:"@",uppercaseA:"A",uppercaseB:"B",uppercaseC:"C",uppercaseD:"D",uppercaseE:"E",uppercaseF:"F",uppercaseG:"G",uppercaseH:"H",uppercaseI:"I",uppercaseJ:"J",uppercaseK:"K",uppercaseL:"L",uppercaseM:"M",uppercaseN:"N",uppercaseO:"O",uppercaseP:"P",uppercaseQ:"Q",uppercaseR:"R",uppercaseS:"S",uppercaseT:"T",uppercaseU:"U",uppercaseV:"V",uppercaseW:"W",uppercaseX:"X",uppercaseY:"Y",uppercaseZ:"Z",leftSquareBracket:"[",backslash:"\\",rightSquareBracket:"]",caret:"^",underscore:"_",graveAccent:"`",lowercaseA:"a",lowercaseB:"b",lowercaseC:"c",lowercaseD:"d",lowercaseE:"e",lowercaseF:"f",lowercaseG:"g",lowercaseH:"h",lowercaseI:"i",lowercaseJ:"j",lowercaseK:"k",lowercaseL:"l",lowercaseM:"m",lowercaseN:"n",lowercaseO:"o",lowercaseP:"p",lowercaseQ:"q",lowercaseR:"r",lowercaseS:"s",lowercaseT:"t",lowercaseU:"u",lowercaseV:"v",lowercaseW:"w",lowercaseX:"x",lowercaseY:"y",lowercaseZ:"z",leftCurlyBrace:"{",verticalBar:"|",rightCurlyBrace:"}",tilde:"~",replacementCharacter:"�"};function Qi(e){const t=[];let r=-1,n=0,o=0;for(;++r<e.length;){const i=e.charCodeAt(r);let a="";if(37===i&&Lt(e.charCodeAt(r+1))&&Lt(e.charCodeAt(r+2)))o=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(a=String.fromCharCode(i));else if(i>55295&&i<57344){const t=e.charCodeAt(r+1);i<56320&&t>56319&&t<57344?(a=String.fromCharCode(i,t),o=1):a="�"}else a=String.fromCharCode(i);a&&(t.push(e.slice(n,r),encodeURIComponent(a)),n=r+o+1,a=""),o&&(r+=o,o=0)}return t.join("")+e.slice(n)}function Zi(e,t){const r=t.referenceType;let n="]";if("collapsed"===r?n+="[]":"full"===r&&(n+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+n}];const o=e.all(t),i=o[0];i&&"text"===i.type?i.value="["+i.value:o.unshift({type:"text",value:"["});const a=o[o.length-1];return a&&"text"===a.type?a.value+=n:o.push({type:"text",value:n}),o}function Yi(e){const t=e.spread;return null==t?e.children.length>1:t}const Xi=ea("end"),Ji=ea("start");function ea(e){return function(t){const r=t&&t.position&&t.position[e]||{};if("number"==typeof r.line&&r.line>0&&"number"==typeof r.column&&r.column>0)return{line:r.line,column:r.column,offset:"number"==typeof r.offset&&r.offset>-1?r.offset:void 0}}}const ta=9,ra=32;function na(e){const t=String(e),r=/\r?\n|\r/g;let n=r.exec(t),o=0;const i=[];for(;n;)i.push(oa(t.slice(o,n.index),o>0,!0),n[0]),o=n.index+n[0].length,n=r.exec(t);return i.push(oa(t.slice(o),o>0,!1)),i.join("")}function oa(e,t,r){let n=0,o=e.length;if(t){let t=e.codePointAt(n);for(;t===ta||t===ra;)n++,t=e.codePointAt(n)}if(r){let t=e.codePointAt(o-1);for(;t===ta||t===ra;)o--,t=e.codePointAt(o-1)}return o>n?e.slice(n,o):""}const ia={blockquote:function(e,t){const r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,r),e.applyData(t,r)},break:function(e,t){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:"\n"}]},code:function(e,t){const r=t.value?t.value+"\n":"",n={};t.lang&&(n.className=["language-"+t.lang]);let o={type:"element",tagName:"code",properties:n,children:[{type:"text",value:r}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o},delete:function(e,t){const r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},emphasis:function(e,t){const r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},footnoteReference:function(e,t){const r="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=String(t.identifier).toUpperCase(),o=Qi(n.toLowerCase()),i=e.footnoteOrder.indexOf(n);let a,s=e.footnoteCounts.get(n);void 0===s?(s=0,e.footnoteOrder.push(n),a=e.footnoteOrder.length):a=i+1,s+=1,e.footnoteCounts.set(n,s);const c={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+o,id:r+"fnref-"+o+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,c);const u={type:"element",tagName:"sup",properties:{},children:[c]};return e.patch(t,u),e.applyData(t,u)},heading:function(e,t){const r={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},html:function(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}},imageReference:function(e,t){const r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return Zi(e,t);const o={src:Qi(n.url||""),alt:t.alt};null!==n.title&&void 0!==n.title&&(o.title=n.title);const i={type:"element",tagName:"img",properties:o,children:[]};return e.patch(t,i),e.applyData(t,i)},image:function(e,t){const r={src:Qi(t.url)};null!==t.alt&&void 0!==t.alt&&(r.alt=t.alt),null!==t.title&&void 0!==t.title&&(r.title=t.title);const n={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,n),e.applyData(t,n)},inlineCode:function(e,t){const r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);const n={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,n),e.applyData(t,n)},linkReference:function(e,t){const r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return Zi(e,t);const o={href:Qi(n.url||"")};null!==n.title&&void 0!==n.title&&(o.title=n.title);const i={type:"element",tagName:"a",properties:o,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)},link:function(e,t){const r={href:Qi(t.url)};null!==t.title&&void 0!==t.title&&(r.title=t.title);const n={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},listItem:function(e,t,r){const n=e.all(t),o=r?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;const r=e.children;let n=-1;for(;!t&&++n<r.length;)t=Yi(r[n])}return t}(r):Yi(t),i={},a=[];if("boolean"==typeof t.checked){const e=n[0];let r;e&&"element"===e.type&&"p"===e.tagName?r=e:(r={type:"element",tagName:"p",properties:{},children:[]},n.unshift(r)),r.children.length>0&&r.children.unshift({type:"text",value:" "}),r.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let s=-1;for(;++s<n.length;){const e=n[s];(o||0!==s||"element"!==e.type||"p"!==e.tagName)&&a.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||o?a.push(e):a.push(...e.children)}const c=n[n.length-1];c&&(o||"element"!==c.type||"p"!==c.tagName)&&a.push({type:"text",value:"\n"});const u={type:"element",tagName:"li",properties:i,children:a};return e.patch(t,u),e.applyData(t,u)},list:function(e,t){const r={},n=e.all(t);let o=-1;for("number"==typeof t.start&&1!==t.start&&(r.start=t.start);++o<n.length;){const e=n[o];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const i={type:"element",tagName:t.ordered?"ol":"ul",properties:r,children:e.wrap(n,!0)};return e.patch(t,i),e.applyData(t,i)},paragraph:function(e,t){const r={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},root:function(e,t){const r={type:"root",children:e.wrap(e.all(t))};return e.patch(t,r),e.applyData(t,r)},strong:function(e,t){const r={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},table:function(e,t){const r=e.all(t),n=r.shift(),o=[];if(n){const r={type:"element",tagName:"thead",properties:{},children:e.wrap([n],!0)};e.patch(t.children[0],r),o.push(r)}if(r.length>0){const n={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},i=Ji(t.children[1]),a=Xi(t.children[t.children.length-1]);i&&a&&(n.position={start:i,end:a}),o.push(n)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(t,i),e.applyData(t,i)},tableCell:function(e,t){const r={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},tableRow:function(e,t,r){const n=r?r.children:void 0,o=0===(n?n.indexOf(t):1)?"th":"td",i=r&&"table"===r.type?r.align:void 0,a=i?i.length:t.children.length;let s=-1;const c=[];for(;++s<a;){const r=t.children[s],n={},a=i?i[s]:void 0;a&&(n.align=a);let u={type:"element",tagName:o,properties:n,children:[]};r&&(u.children=e.all(r),e.patch(r,u),u=e.applyData(r,u)),c.push(u)}const u={type:"element",tagName:"tr",properties:{},children:e.wrap(c,!0)};return e.patch(t,u),e.applyData(t,u)},text:function(e,t){const r={type:"text",value:na(String(t.value))};return e.patch(t,r),e.applyData(t,r)},thematicBreak:function(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)},toml:aa,yaml:aa,definition:aa,footnoteDefinition:aa};function aa(){}var sa=r(8544);const ca=Object.assign(ua(Error),{eval:ua(EvalError),range:ua(RangeError),reference:ua(ReferenceError),syntax:ua(SyntaxError),type:ua(TypeError),uri:ua(URIError)});function ua(e){return t.displayName=e.displayName||e.name,t;function t(t,...r){const n=t?sa(t,...r):t;return new e(n)}}const la={}.hasOwnProperty,fa={yaml:"-",toml:"+"};function ha(e){const t=[];let r=-1;const n=Array.isArray(e)?e:e?[e]:["yaml"];for(;++r<n.length;)t[r]=pa(n[r]);return t}function pa(e){let t=e;if("string"==typeof t){if(!la.call(fa,t))throw ca("Missing matter definition for `%s`",t);t={type:t,marker:fa[t]}}else if("object"!=typeof t)throw ca("Expected matter to be an object, not `%j`",t);if(!la.call(t,"type"))throw ca("Missing `type` in matter `%j`",t);if(!la.call(t,"fence")&&!la.call(t,"marker"))throw ca("Missing `marker` or `fence` in matter `%j`",t);return t}function da(e){return function(t){this.enter({type:e.type,value:""},t),this.buffer()}}function ma(e){const t=this.resume(),r=this.stack[this.stack.length-1];this.exit(e),r.value=t.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,"")}function va(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function ga(e){const t=ya(e,"open"),r=ya(e,"close");return function(e){return t+(e.value?"\n"+e.value:"")+"\n"+r}}function ya(e,t){return e.marker?ba(e.marker,t).repeat(3):ba(e.fence,t)}function ba(e,t){return"string"==typeof e?e:e[t]}function wa(e){const t=e.anywhere,r=e.type,n=r+"Fence",o=n+"Sequence",i=r+"Value",a={tokenize:function(e,t,r){let i=0;return function(t){if(t===s.charCodeAt(i))return e.enter(n),e.enter(o),a(t);return r(t)};function a(t){return i===s.length?(e.exit(o),qt(t)?(e.enter("whitespace"),c(t)):u(t)):t===s.charCodeAt(i++)?(e.consume(t),a):r(t)}function c(t){return qt(t)?(e.consume(t),c):(e.exit("whitespace"),u(t))}function u(o){return null===o||Ut(o)?(e.exit(n),t(o)):r(o)}},partial:!0};let s,c=0;return{tokenize:function(u,l,f){const h=this;return function(i){const a=h.now();if(1===a.column&&(1===a.line||t)&&(s=xa(e,"open"),c=0,i===s.charCodeAt(c)))return u.enter(r),u.enter(n),u.enter(o),p(i);return f(i)};function p(e){return c===s.length?(u.exit(o),qt(e)?(u.enter("whitespace"),d(e)):m(e)):e===s.charCodeAt(c++)?(u.consume(e),p):f(e)}function d(e){return qt(e)?(u.consume(e),d):(u.exit("whitespace"),m(e))}function m(t){return Ut(t)?(u.exit(n),u.enter("lineEnding"),u.consume(t),u.exit("lineEnding"),s=xa(e,"close"),c=0,u.attempt(a,b,v)):f(t)}function v(e){return null===e||Ut(e)?y(e):(u.enter(i),g(e))}function g(e){return null===e||Ut(e)?(u.exit(i),y(e)):(u.consume(e),g)}function y(e){return null===e?f(e):(u.enter("lineEnding"),u.consume(e),u.exit("lineEnding"),u.attempt(a,b,v))}function b(e){return u.exit(r),l(e)}},concrete:!0}}function xa(e,t){return e.marker?Ea(e.marker,t).repeat(3):Ea(e.fence,t)}function Ea(e,t){return"string"==typeof e?e:e[t]}const ka=["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"],Sa={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 Da(e){const t="string"==typeof e?e.charCodeAt(0):e;return t>=48&&t<=57}function Pa(e){const t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function Aa(e){return function(e){const t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}(e)||Da(e)}const Ca=String.fromCharCode,Oa=["","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 Fa(e,t={}){const r="string"==typeof t.additional?t.additional.charCodeAt(0):t.additional,n=[];let o,i,a=0,s=-1,c="";t.position&&("start"in t.position||"indent"in t.position?(i=t.position.indent,o=t.position.start):o=t.position);let u,l=(o?o.line:0)||1,f=(o?o.column:0)||1,h=p();for(a--;++a<=e.length;)if(10===u&&(f=(i?i[s]:0)||1),u=e.charCodeAt(a),38===u){const o=e.charCodeAt(a+1);if(9===o||10===o||12===o||32===o||38===o||60===o||Number.isNaN(o)||r&&o===r){c+=Ca(u),f++;continue}const i=a+1;let s,l=i,v=i;if(35===o){v=++l;const t=e.charCodeAt(v);88===t||120===t?(s="hexadecimal",v=++l):s="decimal"}else s="named";let g="",y="",b="";const w="named"===s?Aa:"decimal"===s?Da:Pa;for(v--;++v<=e.length;){const t=e.charCodeAt(v);if(!w(t))break;b+=Ca(t),"named"===s&&ka.includes(b)&&(g=b,y=Rr(b))}let x=59===e.charCodeAt(v);if(x){v++;const e="named"===s&&Rr(b);e&&(g=b,y=e)}let E=1+v-i,k="";if(x||!1!==t.nonTerminated)if(b)if("named"===s){if(x&&!y)d(5,1);else if(g!==b&&(v=l+g.length,E=1+v-l,x=!1),!x){const r=g?1:3;if(t.attribute){const t=e.charCodeAt(v);61===t?(d(r,E),y=""):Aa(t)?y="":d(r,E)}else d(r,E)}k=y}else{x||d(2,E);let e=Number.parseInt(b,"hexadecimal"===s?16:10);if(ja(e))d(7,E),k=Ca(65533);else if(e in Sa)d(6,E),k=Sa[e];else{let t="";Ta(e)&&d(6,E),e>65535&&(e-=65536,t+=Ca(e>>>10|55296),e=56320|1023&e),k=t+Ca(e)}}else"named"!==s&&d(4,E);else;if(k){m(),h=p(),a=v-1,f+=v-i+1,n.push(k);const r=p();r.offset++,t.reference&&t.reference.call(t.referenceContext,k,{start:h,end:r},e.slice(i-1,v)),h=r}else b=e.slice(i-1,v),c+=b,f+=b.length,a=v-1}else 10===u&&(l++,s++,f=0),Number.isNaN(u)?m():(c+=Ca(u),f++);return n.join("");function p(){return{line:l,column:f,offset:a+((o?o.offset:0)||0)}}function d(e,r){let n;t.warning&&(n=p(),n.column+=r,n.offset+=r,t.warning.call(t.warningContext,Oa[e],n,e))}function m(){c&&(n.push(c),t.text&&t.text.call(t.textContext,c,{start:h,end:p()}),c="")}}function ja(e){return e>=55296&&e<=57343||e>1114111}function Ta(e){return e>=1&&e<=8||11===e||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||65535==(65535&e)||65534==(65535&e)}function _a(e,t){return e=e.replace(t.subset?function(e){const t=[];let r=-1;for(;++r<e.length;)t.push(e[r].replace(/[|\\{}()[\]^$+*?.]/g,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}(t.subset):/["&'<>`]/g,r),t.subset||t.escapeOnly?e:e.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,(function(e,r,n){return t.format(1024*(e.charCodeAt(0)-55296)+e.charCodeAt(1)-56320+65536,n.charCodeAt(r+2),t)})).replace(/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,r);function r(e,r,n){return t.format(e.charCodeAt(0),n.charCodeAt(r+1),t)}}function Ra(e){return"&#x"+e.toString(16).toUpperCase()+";"}const Ia={}.hasOwnProperty,La=/^[^\t\n\r "#'.<=>`}]+$/;function Ba(e){Ha.call(this,"containerDirective",e)}function Ma(e){Ha.call(this,"leafDirective",e)}function Na(e){Ha.call(this,"textDirective",e)}function Ha(e,t){this.enter({type:e,name:"",attributes:{},children:[]},t)}function za(e){const t=this.stack[this.stack.length-1];"containerDirective"===t.type||"leafDirective"===t.type||t.type,t.name=this.sliceSerialize(e)}function Ua(e){this.enter({type:"paragraph",data:{directiveLabel:!0},children:[]},e)}function $a(e){this.exit(e)}function qa(){this.data.directiveAttributes=[],this.buffer()}function Va(e){const t=this.data.directiveAttributes;t.push(["id",Fa(this.sliceSerialize(e),{attribute:!0})])}function Ga(e){const t=this.data.directiveAttributes;t.push(["class",Fa(this.sliceSerialize(e),{attribute:!0})])}function Wa(e){const t=this.data.directiveAttributes;t[t.length-1][1]=Fa(this.sliceSerialize(e),{attribute:!0})}function Ka(e){const t=this.data.directiveAttributes;t.push([this.sliceSerialize(e),""])}function Qa(){const e=this.data.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.data.directiveAttributes=void 0,this.resume();const n=this.stack[this.stack.length-1];"containerDirective"===n.type||"leafDirective"===n.type||n.type,n.attributes=t}function Za(e){this.exit(e)}function Ya(e,t,r,n){const o=r.createTracker(n),i=function(e){let t=0;"containerDirective"===e.type?(Nn(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=o.move(i+(e.name||""));if("containerDirective"===e.type){const t=(e.children||[])[0];s=Xa(t)?t:void 0}else s=e;if(s&&s.children&&s.children.length>0){const t=r.enter("label"),n=`${e.type}Label`,i=r.enter(n);c+=o.move("["),c+=o.move(r.containerPhrasing(s,{...o.current(),before:c,after:"]"})),c+=o.move("]"),i(),t()}if(c+=o.move(function(e,t){const r=t.options.quote||'"',n="textDirective"===e.type?[r]:[r,"\n","\r"],o=e.attributes||{},i=[];let a,s,c,u;for(u in o)if(Ia.call(o,u)&&void 0!==o[u]&&null!==o[u]){const e=String(o[u]);if("id"===u)c=La.test(e)?"#"+e:l("id",e);else if("class"===u){const t=e.split(/[\t\n\r ]+/g),r=[],n=[];let o=-1;for(;++o<t.length;)(La.test(t[o])?n:r).push(t[o]);a=r.length>0?l("class",r.join(" ")):"",s=n.length>0?"."+n.join("."):""}else i.push(l(u,e))}a&&i.unshift(a);s&&i.unshift(s);c&&i.unshift(c);return i.length>0?"{"+i.join(" ")+"}":"";function l(e,t){return e+(t?"="+r+function(e,t){return _a(e,Object.assign({format:Ra},t))}(t,{subset:n})+r:"")}}(e,r)),"containerDirective"===e.type){let t=e;Xa((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(r.containerFlow(t,o.current()))),c+=o.move("\n"+i)}return a(),c}function Xa(e){return Boolean(e&&"paragraph"===e.type&&e.data&&e.data.directiveLabel)}function Ja(e,t,r,n,o,i,a,s,c,u,l,f,h,p,d){let m,v;return function(t){return e.enter(n),e.enter(o),e.consume(t),e.exit(o),g};function g(t){return 35===t?(m=a,y(t)):46===t?(m=s,y(t)):58===t||95===t||It(t)?(e.enter(i),e.enter(c),e.consume(t),x):d&&qt(t)?Kt(e,g,"whitespace")(t):!d&&$t(t)?yr(e,g)(t):O(t)}function y(t){const r=m+"Marker";return e.enter(i),e.enter(m),e.enter(r),e.consume(t),e.exit(r),b}function b(t){if(null===t||34===t||35===t||39===t||46===t||60===t||61===t||62===t||96===t||125===t||$t(t))return r(t);const n=m+"Value";return e.enter(n),e.consume(t),w}function w(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||$t(t)){const r=m+"Value";return e.exit(r),e.exit(m),e.exit(i),g(t)}return e.consume(t),w}function x(t){return 45===t||46===t||58===t||95===t||Lt(t)?(e.consume(t),x):(e.exit(c),d&&qt(t)?Kt(e,E,"whitespace")(t):!d&&$t(t)?yr(e,E)(t):E(t))}function E(t){return 61===t?(e.enter(u),e.consume(t),e.exit(u),k):(e.exit(i),g(t))}function k(t){return null===t||60===t||61===t||62===t||96===t||125===t||d&&Ut(t)?r(t):34===t||39===t?(e.enter(l),e.enter(h),e.consume(t),e.exit(h),v=t,D):d&&qt(t)?Kt(e,k,"whitespace")(t):!d&&$t(t)?yr(e,k)(t):(e.enter(f),e.enter(p),e.consume(t),v=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||$t(t)?(e.exit(p),e.exit(f),e.exit(i),g(t)):(e.consume(t),S)}function D(t){return t===v?(e.enter(h),e.consume(t),e.exit(h),e.exit(l),e.exit(i),C):(e.enter(f),P(t))}function P(t){return t===v?(e.exit(f),D(t)):null===t?r(t):Ut(t)?d?r(t):yr(e,P)(t):(e.enter(p),e.consume(t),A)}function A(t){return t===v||null===t||Ut(t)?(e.exit(p),P(t)):(e.consume(t),A)}function C(e){return 125===e||$t(e)?g(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 es(e,t,r,n,o,i,a){let s,c=0,u=0;return function(t){return e.enter(n),e.enter(o),e.consume(t),e.exit(o),l};function l(r){return 93===r?(e.enter(o),e.consume(r),e.exit(o),e.exit(n),t):(e.enter(i),f(r))}function f(t){if(93===t&&!u)return d(t);const r=e.enter("chunkText",{contentType:"text",previous:s});return s&&(s.next=r),s=r,h(t)}function h(t){return null===t||c>999||91===t&&++u>32?r(t):93!==t||u--?Ut(t)?a?r(t):(e.consume(t),e.exit("chunkText"),f):(e.consume(t),92===t?p:h):(e.exit("chunkText"),d(t))}function p(t){return 91===t||92===t||93===t?(e.consume(t),c++,h):h(t)}function d(r){return e.exit(i),e.enter(o),e.consume(r),e.exit(o),e.exit(n),t}}function ts(e,t,r,n){const o=this;return function(t){if(It(t))return e.enter(n),e.consume(t),i;return r(t)};function i(a){return 45===a||95===a||Lt(a)?(e.consume(a),i):(e.exit(n),45===o.previous||95===o.previous?r(a):t(a))}}Ya.peek=function(){return":"};const rs={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 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"),ts.call(n,e,u,r,"directiveContainerName")(t))}function u(t){return 91===t?e.attempt(ns,l,l)(t):l(t)}function l(t){return 123===t?e.attempt(os,f,f)(t):f(t)}function f(t){return Kt(e,h,"whitespace")(t)}function h(o){return e.exit("directiveContainerFence"),null===o?p(o):Ut(o)?n.interrupt?t(o):e.attempt(is,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?w(t):e.attempt({tokenize:x,partial:!0},w,i?Kt(e,v,"linePrefix",i+1):v)(t)}function v(t){if(null===t)return w(t);const r=e.enter("chunkDocument",{contentType:"document",previous:a});return a&&(a.next=r),a=r,g(t)}function g(t){if(null===t){const r=e.exit("chunkDocument");return n.parser.lazy[r.start.line]=!1,w(t)}return Ut(t)?e.check(is,y,b)(t):(e.consume(t),g)}function y(t){e.consume(t);const r=e.exit("chunkDocument");return n.parser.lazy[r.start.line]=!1,m}function b(t){const r=e.exit("chunkDocument");return n.parser.lazy[r.start.line]=!1,w(t)}function w(r){return e.exit("directiveContainerContent"),e.exit("directiveContainer"),t(r)}function x(e,t,r){let n=0;return Kt(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<s?r(t):(e.exit("directiveContainerSequence"),Kt(e,i,"whitespace")(t))}function i(n){return null===n||Ut(n)?(e.exit("directiveContainerFence"),t(n)):r(n)}}},concrete:!0},ns={tokenize:function(e,t,r){return es(e,t,r,"directiveContainerLabel","directiveContainerLabelMarker","directiveContainerLabelString",!0)},partial:!0},os={tokenize:function(e,t,r){return Ja(e,t,r,"directiveContainerAttributes","directiveContainerAttributesMarker","directiveContainerAttribute","directiveContainerAttributeId","directiveContainerAttributeClass","directiveContainerAttributeName","directiveContainerAttributeInitializerMarker","directiveContainerAttributeValueLiteral","directiveContainerAttributeValue","directiveContainerAttributeValueMarker","directiveContainerAttributeValueData",!0)},partial:!0},is={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 as={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"),ts.call(n,e,i,r,"directiveLeafName")):r(t)}function i(t){return 91===t?e.attempt(ss,a,a)(t):a(t)}function a(t){return 123===t?e.attempt(cs,s,s)(t):s(t)}function s(t){return Kt(e,c,"whitespace")(t)}function c(n){return null===n||Ut(n)?(e.exit("directiveLeaf"),t(n)):r(n)}}},ss={tokenize:function(e,t,r){return es(e,t,r,"directiveLeafLabel","directiveLeafLabelMarker","directiveLeafLabelString",!0)},partial:!0},cs={tokenize:function(e,t,r){return Ja(e,t,r,"directiveLeafAttributes","directiveLeafAttributesMarker","directiveLeafAttribute","directiveLeafAttributeId","directiveLeafAttributeClass","directiveLeafAttributeName","directiveLeafAttributeInitializerMarker","directiveLeafAttributeValueLiteral","directiveLeafAttributeValue","directiveLeafAttributeValueMarker","directiveLeafAttributeValueData",!0)},partial:!0};const us={tokenize:function(e,t,r){const n=this;return function(t){return e.enter("directiveText"),e.enter("directiveTextMarker"),e.consume(t),e.exit("directiveTextMarker"),ts.call(n,e,o,r,"directiveTextName")};function o(t){return 58===t?r(t):91===t?e.attempt(ls,i,i)(t):i(t)}function i(t){return 123===t?e.attempt(fs,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}},ls={tokenize:function(e,t,r){return es(e,t,r,"directiveTextLabel","directiveTextLabelMarker","directiveTextLabelString")},partial:!0},fs={tokenize:function(e,t,r){return Ja(e,t,r,"directiveTextAttributes","directiveTextAttributesMarker","directiveTextAttribute","directiveTextAttributeId","directiveTextAttributeClass","directiveTextAttributeName","directiveTextAttributeInitializerMarker","directiveTextAttributeValueLiteral","directiveTextAttributeValue","directiveTextAttributeValueMarker","directiveTextAttributeValueData")},partial:!0};const hs=function(e){if(null==e)return ds;if("string"==typeof e)return function(e){return ps(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]=hs(e[r]);return ps(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 ps(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 ps(e);throw new Error("Expected function, string, or object as test")};function ps(e){return function(t,...r){return Boolean(t&&"object"==typeof t&&"type"in t&&Boolean(e.call(this,t,...r)))}}function ds(){return!0}const ms=function(e,t,r,n){"function"==typeof t&&"function"!=typeof r&&(n=r,r=t,t=null);const o=hs(t),i=n?-1:1;!function e(a,s,c){const u=a&&"object"==typeof a?a:{};if("string"==typeof u.type){const e="string"==typeof u.tagName?u.tagName:"string"==typeof u.name?u.name:void 0;Object.defineProperty(l,"name",{value:"node ("+a.type+(e?"<"+e+">":"")+")"})}return l;function l(){let u,l,f,h=[];if((!t||o(a,s,c[c.length-1]||null))&&(h=function(e){if(Array.isArray(e))return e;if("number"==typeof e)return[true,e];return[e]}(r(a,c)),false===h[0]))return h;if(a.children&&"skip"!==h[0])for(l=(n?a.children.length:-1)+i,f=c.concat(a);l>-1&&l<a.children.length;){if(u=e(a.children[l],l,f)(),false===u[0])return u;l="number"==typeof u[1]?u[1]:l+i}return h}}(e,void 0,[])()};const vs=function(e,t,r,n){"function"==typeof t&&"function"!=typeof r&&(n=r,r=t,t=null),ms(e,t,(function(e,t){const n=t[t.length-1];return r(e,n?n.children.indexOf(e):null,n)}),n)},gs={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 ys=r(4999),bs=r.n(ys),ws=r(7392),xs=r.n(ws),Es=r(5756),ks=r.n(Es);function Ss(e,t){return function(){return e.apply(t,arguments)}}const{toString:Ds}=Object.prototype,{getPrototypeOf:Ps}=Object,As=(Cs=Object.create(null),e=>{const t=Ds.call(e);return Cs[t]||(Cs[t]=t.slice(8,-1).toLowerCase())});var Cs;const Os=e=>(e=e.toLowerCase(),t=>As(t)===e),Fs=e=>t=>typeof t===e,{isArray:js}=Array,Ts=Fs("undefined");const _s=Os("ArrayBuffer");const Rs=Fs("string"),Is=Fs("function"),Ls=Fs("number"),Bs=e=>null!==e&&"object"==typeof e,Ms=e=>{if("object"!==As(e))return!1;const t=Ps(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},Ns=Os("Date"),Hs=Os("File"),zs=Os("Blob"),Us=Os("FileList"),$s=Os("URLSearchParams");function qs(e,t,{allOwnKeys:r=!1}={}){if(null==e)return;let n,o;if("object"!=typeof e&&(e=[e]),js(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{const o=r?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let a;for(n=0;n<i;n++)a=o[n],t.call(null,e[a],a,e)}}function Vs(e,t){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 Gs="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,Ws=e=>!Ts(e)&&e!==Gs;const Ks=(Qs="undefined"!=typeof Uint8Array&&Ps(Uint8Array),e=>Qs&&e instanceof Qs);var Qs;const Zs=Os("HTMLFormElement"),Ys=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Xs=Os("RegExp"),Js=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};qs(r,((r,o)=>{let i;!1!==(i=t(r,o,e))&&(n[o]=i||r)})),Object.defineProperties(e,n)},ec="abcdefghijklmnopqrstuvwxyz",tc="0123456789",rc={DIGIT:tc,ALPHA:ec,ALPHA_DIGIT:ec+ec.toUpperCase()+tc};const nc=Os("AsyncFunction"),oc={isArray:js,isArrayBuffer:_s,isBuffer:function(e){return null!==e&&!Ts(e)&&null!==e.constructor&&!Ts(e.constructor)&&Is(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||Is(e.append)&&("formdata"===(t=As(e))||"object"===t&&Is(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&_s(e.buffer),t},isString:Rs,isNumber:Ls,isBoolean:e=>!0===e||!1===e,isObject:Bs,isPlainObject:Ms,isUndefined:Ts,isDate:Ns,isFile:Hs,isBlob:zs,isRegExp:Xs,isFunction:Is,isStream:e=>Bs(e)&&Is(e.pipe),isURLSearchParams:$s,isTypedArray:Ks,isFileList:Us,forEach:qs,merge:function e(){const{caseless:t}=Ws(this)&&this||{},r={},n=(n,o)=>{const i=t&&Vs(r,o)||o;Ms(r[i])&&Ms(n)?r[i]=e(r[i],n):Ms(n)?r[i]=e({},n):js(n)?r[i]=n.slice():r[i]=n};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&qs(arguments[e],n);return r},extend:(e,t,r,{allOwnKeys:n}={})=>(qs(t,((t,n)=>{r&&Is(t)?e[n]=Ss(t,r):e[n]=t}),{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),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let o,i,a;const s={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],n&&!n(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==r&&Ps(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:As,kindOfTest:Os,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(js(e))return e;let t=e.length;if(!Ls(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{const r=(e&&e[Symbol.iterator]).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:Zs,hasOwnProperty:Ys,hasOwnProp:Ys,reduceDescriptors:Js,freezeMethods:e=>{Js(e,((t,r)=>{if(Is(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=e[r];Is(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 js(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)=>(e=+e,Number.isFinite(e)?e:t),findKey:Vs,global:Gs,isContextDefined:Ws,ALPHABET:rc,generateString:(e=16,t=rc.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r},isSpecCompliantForm:function(e){return!!(e&&Is(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),r=(e,n)=>{if(Bs(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[n]=e;const o=js(e)?[]:{};return qs(e,((e,t)=>{const i=r(e,n+1);!Ts(i)&&(o[t]=i)})),t[n]=void 0,o}}return e};return r(e,0)},isAsyncFn:nc,isThenable:e=>e&&(Bs(e)||Is(e))&&Is(e.then)&&Is(e.catch)};function ic(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}oc.inherits(ic,Error,{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:oc.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const ac=ic.prototype,sc={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{sc[e]={value:e}})),Object.defineProperties(ic,sc),Object.defineProperty(ac,"isAxiosError",{value:!0}),ic.from=(e,t,r,n,o,i)=>{const a=Object.create(ac);return oc.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),ic.call(a,e.message,t,r,n,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const cc=ic;function uc(e){return oc.isPlainObject(e)||oc.isArray(e)}function lc(e){return oc.endsWith(e,"[]")?e.slice(0,-2):e}function fc(e,t,r){return e?e.concat(t).map((function(e,t){return e=lc(e),!r&&t?"["+e+"]":e})).join(r?".":""):t}const hc=oc.toFlatObject(oc,{},null,(function(e){return/^is[A-Z]/.test(e)}));const pc=function(e,t,r){if(!oc.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const n=(r=oc.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!oc.isUndefined(t[e])}))).metaTokens,o=r.visitor||u,i=r.dots,a=r.indexes,s=(r.Blob||"undefined"!=typeof Blob&&Blob)&&oc.isSpecCompliantForm(t);if(!oc.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(oc.isDate(e))return e.toISOString();if(!s&&oc.isBlob(e))throw new cc("Blob is not supported. Use a Buffer instead.");return oc.isArrayBuffer(e)||oc.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,r,o){let s=e;if(e&&!o&&"object"==typeof e)if(oc.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else if(oc.isArray(e)&&function(e){return oc.isArray(e)&&!e.some(uc)}(e)||(oc.isFileList(e)||oc.endsWith(r,"[]"))&&(s=oc.toArray(e)))return r=lc(r),s.forEach((function(e,n){!oc.isUndefined(e)&&null!==e&&t.append(!0===a?fc([r],n,i):null===a?r:r+"[]",c(e))})),!1;return!!uc(e)||(t.append(fc(o,r,i),c(e)),!1)}const l=[],f=Object.assign(hc,{defaultVisitor:u,convertValue:c,isVisitable:uc});if(!oc.isObject(e))throw new TypeError("data must be an object");return function e(r,n){if(!oc.isUndefined(r)){if(-1!==l.indexOf(r))throw Error("Circular reference detected in "+n.join("."));l.push(r),oc.forEach(r,(function(r,i){!0===(!(oc.isUndefined(r)||null===r)&&o.call(t,r,oc.isString(i)?i.trim():i,n,f))&&e(r,n?n.concat(i):[i])})),l.pop()}}(e),t};function dc(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function mc(e,t){this._pairs=[],e&&pc(e,this,t)}const vc=mc.prototype;vc.append=function(e,t){this._pairs.push([e,t])},vc.toString=function(e){const t=e?function(t){return e.call(this,t,dc)}:dc;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const gc=mc;function yc(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function bc(e,t,r){if(!t)return e;const n=r&&r.encode||yc,o=r&&r.serialize;let i;if(i=o?o(t,r):oc.isURLSearchParams(t)?t.toString():new gc(t,r).toString(n),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}const wc=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){oc.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},xc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ec={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:gc,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},kc="undefined"!=typeof window&&"undefined"!=typeof document,Sc=(Dc="undefined"!=typeof navigator&&navigator.product,kc&&["ReactNative","NativeScript","NS"].indexOf(Dc)<0);var Dc;const Pc="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Ac={...a,...Ec};const Cc=function(e){function t(e,r,n,o){let i=e[o++];const a=Number.isFinite(+i),s=o>=e.length;if(i=!i&&oc.isArray(n)?n.length:i,s)return oc.hasOwnProp(n,i)?n[i]=[n[i],r]:n[i]=r,!a;n[i]&&oc.isObject(n[i])||(n[i]=[]);return t(e,r,n[i],o)&&oc.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])),!a}if(oc.isFormData(e)&&oc.isFunction(e.entries)){const r={};return oc.forEachEntry(e,((e,n)=>{t(function(e){return oc.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),n,r,0)})),r}return null};const Oc={transitional:xc,adapter:["xhr","http"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,o=oc.isObject(e);o&&oc.isHTMLForm(e)&&(e=new FormData(e));if(oc.isFormData(e))return n&&n?JSON.stringify(Cc(e)):e;if(oc.isArrayBuffer(e)||oc.isBuffer(e)||oc.isStream(e)||oc.isFile(e)||oc.isBlob(e))return e;if(oc.isArrayBufferView(e))return e.buffer;if(oc.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 pc(e,new Ac.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,n){return Ac.isNode&&oc.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=oc.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return pc(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||n?(t.setContentType("application/json",!1),function(e,t,r){if(oc.isString(e))try{return(t||JSON.parse)(e),oc.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Oc.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(e&&oc.isString(e)&&(r&&!this.responseType||n)){const r=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(e){if(r){if("SyntaxError"===e.name)throw cc.from(e,cc.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:Ac.classes.FormData,Blob:Ac.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};oc.forEach(["delete","get","head","post","put","patch"],(e=>{Oc.headers[e]={}}));const Fc=Oc,jc=oc.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"]),Tc=Symbol("internals");function _c(e){return e&&String(e).trim().toLowerCase()}function Rc(e){return!1===e||null==e?e:oc.isArray(e)?e.map(Rc):String(e)}function Ic(e,t,r,n,o){return oc.isFunction(n)?n.call(this,t,r):(o&&(t=r),oc.isString(t)?oc.isString(n)?-1!==t.indexOf(n):oc.isRegExp(n)?n.test(t):void 0:void 0)}class Lc{constructor(e){e&&this.set(e)}set(e,t,r){const n=this;function o(e,t,r){const o=_c(t);if(!o)throw new Error("header name must be a non-empty string");const i=oc.findKey(n,o);(!i||void 0===n[i]||!0===r||void 0===r&&!1!==n[i])&&(n[i||t]=Rc(e))}const i=(e,t)=>oc.forEach(e,((e,r)=>o(e,r,t)));return oc.isPlainObject(e)||e instanceof this.constructor?i(e,t):oc.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]&&jc[r]||("set-cookie"===r?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)})),t})(e),t):null!=e&&o(t,e,r),this}get(e,t){if(e=_c(e)){const r=oc.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(oc.isFunction(t))return t.call(this,e,r);if(oc.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=_c(e)){const r=oc.findKey(this,e);return!(!r||void 0===this[r]||t&&!Ic(0,this[r],r,t))}return!1}delete(e,t){const r=this;let n=!1;function o(e){if(e=_c(e)){const o=oc.findKey(r,e);!o||t&&!Ic(0,r[o],o,t)||(delete r[o],n=!0)}}return oc.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&&!Ic(0,this[o],o,e,!0)||(delete this[o],n=!0)}return n}normalize(e){const t=this,r={};return oc.forEach(this,((n,o)=>{const i=oc.findKey(r,o);if(i)return t[i]=Rc(n),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,r)=>t.toUpperCase()+r))}(o):String(o).trim();a!==o&&delete t[o],t[a]=Rc(n),r[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return oc.forEach(this,((r,n)=>{null!=r&&!1!==r&&(t[n]=e&&oc.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")}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[Tc]=this[Tc]={accessors:{}}).accessors,r=this.prototype;function n(e){const n=_c(e);t[n]||(!function(e,t){const r=oc.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 oc.isArray(e)?e.forEach(n):n(e),this}}Lc.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),oc.reduceDescriptors(Lc.prototype,(({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}})),oc.freezeMethods(Lc);const Bc=Lc;function Mc(e,t){const r=this||Fc,n=t||r,o=Bc.from(n.headers);let i=n.data;return oc.forEach(e,(function(e){i=e.call(r,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function Nc(e){return!(!e||!e.__CANCEL__)}function Hc(e,t,r){cc.call(this,null==e?"canceled":e,cc.ERR_CANCELED,t,r),this.name="CanceledError"}oc.inherits(Hc,cc,{__CANCEL__:!0});const zc=Hc;const Uc=Ac.hasStandardBrowserEnv?{write(e,t,r,n,o,i){const a=[e+"="+encodeURIComponent(t)];oc.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),oc.isString(n)&&a.push("path="+n),oc.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function $c(e,t){return e&&!function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}(t)?function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const qc=Ac.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let r;function n(r){let n=r;return e&&(t.setAttribute("href",n),n=t.href),t.setAttribute("href",n),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return r=n(window.location.href),function(e){const t=oc.isString(e)?n(e):e;return t.protocol===r.protocol&&t.host===r.host}}():function(){return!0};const Vc=function(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const c=Date.now(),u=n[a];o||(o=c),r[i]=s,n[i]=c;let l=a,f=0;for(;l!==i;)f+=r[l++],l%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),c-o<t)return;const h=u&&c-u;return h?Math.round(1e3*f/h):void 0}};function Gc(e,t){let r=0;const n=Vc(50,250);return o=>{const i=o.loaded,a=o.lengthComputable?o.total:void 0,s=i-r,c=n(s);r=i;const u={loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:c||void 0,estimated:c&&a&&i<=a?(a-i)/c:void 0,event:o};u[t?"download":"upload"]=!0,e(u)}}const Wc="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,r){let n=e.data;const o=Bc.from(e.headers).normalize();let i,a,{responseType:s,withXSRFToken:c}=e;function u(){e.cancelToken&&e.cancelToken.unsubscribe(i),e.signal&&e.signal.removeEventListener("abort",i)}if(oc.isFormData(n))if(Ac.hasStandardBrowserEnv||Ac.hasStandardBrowserWebWorkerEnv)o.setContentType(!1);else if(!1!==(a=o.getContentType())){const[e,...t]=a?a.split(";").map((e=>e.trim())).filter(Boolean):[];o.setContentType([e||"multipart/form-data",...t].join("; "))}let l=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",r=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(t+":"+r))}const f=$c(e.baseURL,e.url);function h(){if(!l)return;const n=Bc.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders());!function(e,t,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new cc("Request failed with status code "+r.status,[cc.ERR_BAD_REQUEST,cc.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}((function(e){t(e),u()}),(function(e){r(e),u()}),{data:s&&"text"!==s&&"json"!==s?l.response:l.responseText,status:l.status,statusText:l.statusText,headers:n,config:e,request:l}),l=null}if(l.open(e.method.toUpperCase(),bc(f,e.params,e.paramsSerializer),!0),l.timeout=e.timeout,"onloadend"in l?l.onloadend=h:l.onreadystatechange=function(){l&&4===l.readyState&&(0!==l.status||l.responseURL&&0===l.responseURL.indexOf("file:"))&&setTimeout(h)},l.onabort=function(){l&&(r(new cc("Request aborted",cc.ECONNABORTED,e,l)),l=null)},l.onerror=function(){r(new cc("Network Error",cc.ERR_NETWORK,e,l)),l=null},l.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const n=e.transitional||xc;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(new cc(t,n.clarifyTimeoutError?cc.ETIMEDOUT:cc.ECONNABORTED,e,l)),l=null},Ac.hasStandardBrowserEnv&&(c&&oc.isFunction(c)&&(c=c(e)),c||!1!==c&&qc(f))){const t=e.xsrfHeaderName&&e.xsrfCookieName&&Uc.read(e.xsrfCookieName);t&&o.set(e.xsrfHeaderName,t)}void 0===n&&o.setContentType(null),"setRequestHeader"in l&&oc.forEach(o.toJSON(),(function(e,t){l.setRequestHeader(t,e)})),oc.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),s&&"json"!==s&&(l.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&l.addEventListener("progress",Gc(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&l.upload&&l.upload.addEventListener("progress",Gc(e.onUploadProgress)),(e.cancelToken||e.signal)&&(i=t=>{l&&(r(!t||t.type?new zc(null,e,l):t),l.abort(),l=null)},e.cancelToken&&e.cancelToken.subscribe(i),e.signal&&(e.signal.aborted?i():e.signal.addEventListener("abort",i)));const p=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(f);p&&-1===Ac.protocols.indexOf(p)?r(new cc("Unsupported protocol "+p+":",cc.ERR_BAD_REQUEST,e)):l.send(n||null)}))},Kc={http:null,xhr:Wc};oc.forEach(Kc,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const Qc=e=>`- ${e}`,Zc=e=>oc.isFunction(e)||null===e||!1===e,Yc=e=>{e=oc.isArray(e)?e:[e];const{length:t}=e;let r,n;const o={};for(let i=0;i<t;i++){let t;if(r=e[i],n=r,!Zc(r)&&(n=Kc[(t=String(r)).toLowerCase()],void 0===n))throw new cc(`Unknown adapter '${t}'`);if(n)break;o[t||"#"+i]=n}if(!n){const e=Object.entries(o).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));let r=t?e.length>1?"since :\n"+e.map(Qc).join("\n"):" "+Qc(e[0]):"as no adapter specified";throw new cc("There is no suitable adapter to dispatch the request "+r,"ERR_NOT_SUPPORT")}return n};function Xc(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new zc(null,e)}function Jc(e){Xc(e),e.headers=Bc.from(e.headers),e.data=Mc.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return Yc(e.adapter||Fc.adapter)(e).then((function(t){return Xc(e),t.data=Mc.call(e,e.transformResponse,t),t.headers=Bc.from(t.headers),t}),(function(t){return Nc(t)||(Xc(e),t&&t.response&&(t.response.data=Mc.call(e,e.transformResponse,t.response),t.response.headers=Bc.from(t.response.headers))),Promise.reject(t)}))}const eu=e=>e instanceof Bc?e.toJSON():e;function tu(e,t){t=t||{};const r={};function n(e,t,r){return oc.isPlainObject(e)&&oc.isPlainObject(t)?oc.merge.call({caseless:r},e,t):oc.isPlainObject(t)?oc.merge({},t):oc.isArray(t)?t.slice():t}function o(e,t,r){return oc.isUndefined(t)?oc.isUndefined(e)?void 0:n(void 0,e,r):n(e,t,r)}function i(e,t){if(!oc.isUndefined(t))return n(void 0,t)}function a(e,t){return oc.isUndefined(t)?oc.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function s(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:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t)=>o(eu(e),eu(t),!0)};return oc.forEach(Object.keys(Object.assign({},e,t)),(function(n){const i=c[n]||o,a=i(e[n],t[n],n);oc.isUndefined(a)&&i!==s||(r[n]=a)})),r}const ru="1.6.2",nu={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{nu[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));const ou={};nu.transitional=function(e,t,r){function n(e,t){return"[Axios v1.6.2] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,o,i)=>{if(!1===e)throw new cc(n(o," has been removed"+(t?" in "+t:"")),cc.ERR_DEPRECATED);return t&&!ou[o]&&(ou[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)}};const iu={assertOptions:function(e,t,r){if("object"!=typeof e)throw new cc("options must be an object",cc.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const i=n[o],a=t[i];if(a){const t=e[i],r=void 0===t||a(t,i,e);if(!0!==r)throw new cc("option "+i+" must be "+r,cc.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new cc("Unknown option "+i,cc.ERR_BAD_OPTION)}},validators:nu},au=iu.validators;class su{constructor(e){this.defaults=e,this.interceptors={request:new wc,response:new wc}}request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=tu(this.defaults,t);const{transitional:r,paramsSerializer:n,headers:o}=t;void 0!==r&&iu.assertOptions(r,{silentJSONParsing:au.transitional(au.boolean),forcedJSONParsing:au.transitional(au.boolean),clarifyTimeoutError:au.transitional(au.boolean)},!1),null!=n&&(oc.isFunction(n)?t.paramsSerializer={serialize:n}:iu.assertOptions(n,{encode:au.function,serialize:au.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&oc.merge(o.common,o[t.method]);o&&oc.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=Bc.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const c=[];let u;this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));let l,f=0;if(!s){const e=[Jc.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,c),l=e.length,u=Promise.resolve(t);f<l;)u=u.then(e[f++],e[f++]);return u}l=a.length;let h=t;for(f=0;f<l;){const e=a[f++],t=a[f++];try{h=e(h)}catch(e){t.call(this,e);break}}try{u=Jc.call(this,h)}catch(e){return Promise.reject(e)}for(f=0,l=c.length;f<l;)u=u.then(c[f++],c[f++]);return u}getUri(e){return bc($c((e=tu(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}oc.forEach(["delete","get","head","options"],(function(e){su.prototype[e]=function(t,r){return this.request(tu(r||{},{method:e,url:t,data:(r||{}).data}))}})),oc.forEach(["post","put","patch"],(function(e){function t(t){return function(r,n,o){return this.request(tu(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}su.prototype[e]=t(),su.prototype[e+"Form"]=t(!0)}));const cu=su;class uu{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 zc(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)}static source(){let e;return{token:new uu((function(t){e=t})),cancel:e}}}const lu=uu;const fu={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};Object.entries(fu).forEach((([e,t])=>{fu[t]=e}));const hu=fu;const pu=function e(t){const r=new cu(t),n=Ss(cu.prototype.request,r);return oc.extend(n,cu.prototype,r,{allOwnKeys:!0}),oc.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e(tu(t,r))},n}(Fc);pu.Axios=cu,pu.CanceledError=zc,pu.CancelToken=lu,pu.isCancel=Nc,pu.VERSION=ru,pu.toFormData=pc,pu.AxiosError=cc,pu.Cancel=pu.CanceledError,pu.all=function(e){return Promise.all(e)},pu.spread=function(e){return function(t){return e.apply(null,t)}},pu.isAxiosError=function(e){return oc.isObject(e)&&!0===e.isAxiosError},pu.mergeConfig=tu,pu.AxiosHeaders=Bc,pu.formToJSON=e=>Cc(oc.isHTMLForm(e)?new FormData(e):e),pu.getAdapter=Yc,pu.HttpStatusCode=hu,pu.default=pu;const du=pu,{Axios:mu,AxiosError:vu,CanceledError:gu,isCancel:yu,CancelToken:bu,VERSION:wu,all:xu,Cancel:Eu,isAxiosError:ku,spread:Su,toFormData:Du,AxiosHeaders:Pu,HttpStatusCode:Au,formToJSON:Cu,getAdapter:Ou,mergeConfig:Fu}=du;function ju(e){return e}function Tu(e){const t=[];if(e){if(Array.isArray(e))return e;if("object"==typeof e)for(const r of Object.keys(e)){const n=Number.parseInt(r,10);Number.isNaN(n)||(t[n]=e[r])}return t}}function _u(e){const 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.includes(e.config.method.toUpperCase()))return!1;if(e.response?.status){let r=!1;for(const[n,o]of t.statusCodesToRetry){const{status:t}=e.response;if(t>=n&&t<=o){r=!0;break}}if(!r)return!1}return t.currentRetryAttempt=t.currentRetryAttempt||0,!(t.currentRetryAttempt>=t.retry)}var Ru=r(1883),Iu=r.n(Ru),Lu=function(){function e(e,t,r,n){this.id=void 0,this.sha=void 0,this.summary=void 0,this._config=void 0,this.id=e,this.sha=n,this.summary=r,this.config=t}return c()(e,[{key:"config",get:function(){return this._config},set:function(e){e.setKey(this.id+":config"),this._config=e}}]),e}();Lu.style=".topwrite/style.css",Lu.logo="logo.png",Lu.readme="README.md";function Bu(e){return"string"==typeof e&&e.startsWith("@encrypted:")}function Mu(e,t){return I().encrypt(e,t).toString()}function Nu(e,t){try{return I().decrypt(e,t).toString(B())}catch(e){return""}}var Hu=Object.freeze({__proto__:null,decrypt:Nu,encrypt:Mu});function zu(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return Uu(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Uu(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Uu(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var $u=function(){function e(e,t,r,n){this.key=void 0,this.values=void 0,this.presetValues=void 0,this.schema=void 0,this.values=C()(e,n),this.presetValues=n,this.schema=t,this.key=r}var t=e.prototype;return t.setKey=function(e){this.key=e},t.getValues=function(){return this.values},t.setValues=function(e){var t=new(T())({removeAdditional:!0,useDefaults:!0,allErrors:!0,unknownFormats:"ignore"}).compile(this.schema);if(!t(e=h()(e)))for(var r,n=zu(t.errors);!(r=n()).done;){var o=r.value;e=w()(e,o.dataPath.substr(1).split("/"))}this.values=e},t.getPresetValues=function(){return this.presetValues},t.getValue=function(e,t){return d()(this.values,e,t)},t.setValue=function(e,t){return E()(this.values,e,t)},t.toObject=function(){var e=this,t=h()(this.values);this.presetValues&&(t=w()(t,F()(this.presetValues)));var r=new(T())({removeAdditional:!0,useDefaults:!0,allErrors:!0,unknownFormats:["color"]});return r.removeKeyword("default"),r.addKeyword("default",{validate:function(e,t,r,n,o,i,a){return y()(e,t)&&(delete o[i],v()(o)&&function(e,t){for(var r=[],n=e,o=0;o<t.length-1;o++)r.push(n),n=n[t[o]];for(var i=t.length-2;i>=0;i--)v()(r[i][t[i]])&&delete r[i][t[i]]}(a,S()(n.substring(1)))),!0},modifying:!0,errors:!1}),r.addKeyword("encrypt",{validate:function(t,r,n,o,i,a){return e.key&&t&&!Bu(r)&&i&&a&&E()(i,a,"@encrypted:"+Mu(r,e.key)),!0},modifying:!0,errors:!1}),r.compile(this.schema)(t),t},e.createFromObject=function(e,t,r,n){var o=new(T())({removeAdditional:!0,useDefaults:!0,allErrors:!0,unknownFormats:["color"]});o.addKeyword("encrypt",{validate:function(e,t,n,o,i,a){return r&&e&&Bu(t)&&i&&a&&E()(i,a,Nu(t.substring(11),r)),!0},modifying:!0,errors:!1});var i=o.compile(t);if(!i(e))for(var a,s=zu(i.errors);!(a=s()).done;){var c=a.value;e=w()(e,c.dataPath.substring(1).split("/"))}return new this(e,t,r,n)},e}(),qu=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return(t=e.call.apply(e,[this].concat(n))||this).pluginsConfig={},t.presetPlugins={},t}l()(t,e);var r=t.prototype;return r.setPresetPlugins=function(e){this.presetPlugins=e},r.getPresetPluginConfig=function(e){return this.presetPlugins[e]},r.getPlugins=function(){return Array.from(new Set([].concat(this.getValue("plugins"),Object.keys(this.presetPlugins))))},r.getPluginConfig=function(e,t){if(!this.pluginsConfig[e]){var r=this.getValue(["pluginsConfig",e],{});this.pluginsConfig[e]=$u.createFromObject(h()(r),t,this.key+":"+e,this.presetPlugins[e])}return this.pluginsConfig[e]},r.setPluginConfig=function(e,t){var r=t.toObject();v()(r)?P()(this.values,["pluginsConfig",e]):this.setValue(["pluginsConfig",e],r),delete this.pluginsConfig[e]},t.createFromObject=function(r){return e.createFromObject.call(this,r,t.schema)},t}($u);qu.file="book.json",qu.schema={title:"TopWrite Configuration",type:"object",properties:{root:{type:"string",title:"Path from the root folder containing the book's content"},title:{type:"string",title:"Title of the book"},author:{type:"object",title:"attr of the author",properties:{name:{type:"string"},email:{type:"string"},home:{type:"string"}}},theme:{type:"string",title:"Name of the theme",default:"default"},themeConfig:{type:"object",title:"Configuration for theme",properties:{defaultMode:{type:"string",title:"Default mode",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:{}}},required:[]};var Vu=function(){function e(e){void 0===e&&(e=[]),this.data=void 0,this.data="string"==typeof e?e.split(".").map((function(e){return parseInt(e,10)})):e}var t=e.prototype;return t.getRoot=function(){return new e(this.data.slice(0,1))},t.getParent=function(){return new e(this.data.slice(0,-1))},t.createChild=function(t){return new e(this.data.concat(t))},t.isDescendant=function(e){return e.toString().startsWith(this.toString()+".")},t.getNext=function(){var t=[].concat(this.data);return t[t.length-1]++,new e(t)},t.getDepth=function(){return this.data.length-1},t.eq=function(e){return this.toString()===e.toString()},t.getLeafIndex=function(){return this.data[this.data.length-1]-1},t.toString=function(e){return e?this.data.slice(e.data.length).join("."):this.data.join(".")},e.compare=function(e,t){for(var r=0;r<Math.max(e.data.length,t.data.length);r++){var n=e.data[r]||0,o=t.data[r]||0;if(n>o)return 1;if(o>n)return-1}return 0},e}();function Gu(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Wu=function(){function e(e){var t=e.title,r=e.ref,n=void 0===r?"":r,o=e.path,i=e.children,a=void 0===i?[]:i,s=e.metadata;this.level=void 0,this.title=void 0,this.ref=void 0,this.path=void 0,this.children=void 0,this.metadata=void 0,this.hasPath=!1,this.title=t,this.ref=n,o?(this.hasPath=!0,this.path=o):this.path=n?H.posix.format(N()({},H.posix.parse(n),{ext:".html",base:""})):"",this.children=a,this.level=new Vu,this.metadata=s}var t=e.prototype;return t.getMetadata=function(e,t){return this.metadata?d()(this.metadata,e,t):t},t.getLevel=function(){return this.level},t.getTitle=function(){return this.title},t.getRef=function(){return this.ref},t.getPath=function(){return this.path},t.getArticles=function(){return this.children},t.getDescendants=function(){var t=[];return e.findArticle(this,(function(e){return t.push(e),!1})),t},t.getDepth=function(){return this.getLevel().getDepth()},t.createChildLevel=function(){return this.level.createChild(this.children.length+1)},t.indexLevels=function(e){e?this.level=e:e=this.level;for(var t,r=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return Gu(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Gu(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(this.children.entries());!(t=r()).done;){var n=t.value,o=n[0];n[1].indexLevels(e.createChild(o+1))}},t.toObject=function(){var 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:v()(e)?void 0:e}},e.findArticle=function(t,r){return t.getArticles().reduce((function(t,n){return t||(r(n)?n:e.findArticle(n,r))}),void 0)},e.createFromObject=function(t){var r,n=null==(r=t.children)?void 0:r.filter((function(e){return!!e.title})).map((function(t){return e.createFromObject(t)}));return new e(N()({},t,{children:n}))},e}();function Ku(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Qu=function(){function e(e,t,r){void 0===t&&(t=[]),this.level=void 0,this.title=void 0,this.articles=void 0,this.metadata=void 0,this.level=new Vu,this.title=e,this.articles=t,this.metadata=r}var t=e.prototype;return t.getMetadata=function(e,t){return this.metadata?d()(this.metadata,e,t):t},t.getLevel=function(){return this.level},t.getTitle=function(){return this.title},t.getArticles=function(){return this.articles},t.getFirstArticle=function(){return Wu.findArticle(this,(function(){return!0}))},t.getDescendants=function(){var e=[];return Wu.findArticle(this,(function(t){return e.push(t),!1})),e},t.createChildLevel=function(){return this.level.createChild(this.articles.length+1)},t.indexLevels=function(e){e?this.level=e:e=this.level;for(var t,r=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return Ku(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ku(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(this.articles.entries());!(t=r()).done;){var n=t.value,o=n[0];n[1].indexLevels(e.createChild(o+1))}},t.toObject=function(){var e=this.articles.map((function(e){return e.toObject()}));return{title:this.title,metadata:this.metadata,articles:v()(e)?void 0:e}},e.createFromObject=function(t){var r,n=null==(r=t.articles)?void 0:r.filter((function(e){return!!e.title})).map((function(e){return Wu.createFromObject(e)}));return new e(t.title,n,t.metadata)},e}(),Zu={name:"labelEnd",tokenize:function(e,t,r){for(var n,o,i=this,a=i.events.length;a--;)if((i.events[a][1].type===Wi.labelImage||i.events[a][1].type===Wi.labelLink)&&!i.events[a][1]._balanced){n=i.events[a][1];break}return function(t){return Vi.rightSquareBracket,n?n._inactive?l(t):(o=i.parser.defined.includes(br(i.sliceSerialize({start:n.end,end:i.now()}))),e.enter(Wi.labelEnd),e.enter(Wi.labelMarker),e.consume(t),e.exit(Wi.labelMarker),e.exit(Wi.labelEnd),s):r(t)};function s(t){return t===Vi.leftParenthesis?e.attempt(Yu,u,o?u:l)(t):t===Vi.leftSquareBracket?e.attempt(Xu,u,o?c:l)(t):o?u(t):l(t)}function c(t){return e.attempt(Ju,u,l)(t)}function u(e){return t(e)}function l(e){return n._balanced=!0,r(e)}},resolveTo:Mr.resolveTo,resolveAll:Mr.resolveAll},Yu={tokenize:function(e,t,r){return function(t){return Vi.leftParenthesis,e.enter(Wi.resource),e.enter(Wi.resourceMarker),e.consume(t),e.exit(Wi.resourceMarker),n};function n(t){return $t(t)?yr(e,o)(t):o(t)}function o(t){return t===Vi.rightParenthesis?d(t):mr(e,i,a,Wi.resourceDestination,Wi.resourceDestinationLiteral,Wi.resourceDestinationLiteralMarker,Wi.resourceDestinationRaw,Wi.resourceDestinationString,Gi.linkResourceDestinationBalanceMax)(t)}function i(t){return $t(t)?yr(e,s)(t):d(t)}function a(e){return r(e)}function s(t){return t===Vi.quotationMark||t===Vi.apostrophe||t===Vi.leftParenthesis?gr(e,c,r,Wi.resourceTitle,Wi.resourceTitleMarker,Wi.resourceTitleString)(t):u(t)}function c(t){return $t(t)?yr(e,d)(t):u(t)}function u(t){return t===Vi.equalsTo?(e.enter("resourceSize"),e.enter("resourceSizeMarker"),e.consume(t),e.exit("resourceSizeMarker"),l):d(t)}function l(t){return t===Vi.lowercaseX?(e.enter("resourceSizeXMarker"),e.consume(t),e.exit("resourceSizeXMarker"),h):t===Vi.rightParenthesis||$t(t)?(e.exit("resourceSize"),yr(e,d)(t)):(e.enter("resourceSizeWidth"),e.enter(Wi.chunkString,{contentType:"string"}),f(t))}function f(t){return t===Vi.rightParenthesis||$t(t)?(e.exit(Wi.chunkString),e.exit("resourceSizeWidth"),e.exit("resourceSize"),yr(e,d)(t)):t===Vi.lowercaseX?(e.exit(Wi.chunkString),e.exit("resourceSizeWidth"),e.enter("resourceSizeMarker"),e.consume(t),e.exit("resourceSizeMarker"),h):(e.consume(t),f)}function h(t){return t===Vi.rightParenthesis||$t(t)?(e.exit("resourceSize"),yr(e,d)(t)):(e.enter("resourceSizeHeight"),e.enter(Wi.chunkString,{contentType:"string"}),p(t))}function p(t){return t===Vi.rightParenthesis||$t(t)?(e.exit(Wi.chunkString),e.exit("resourceSizeHeight"),e.exit("resourceSize"),yr(e,d)(t)):(e.consume(t),p)}function d(n){return n===Vi.rightParenthesis?(e.enter(Wi.resourceMarker),e.consume(n),e.exit(Wi.resourceMarker),e.exit(Wi.resource),t):r(n)}}},Xu={tokenize:function(e,t,r){var n=this;return function(t){return Vi.leftSquareBracket,vr.call(n,e,o,i,Wi.reference,Wi.referenceMarker,Wi.referenceString)(t)};function o(e){return n.parser.defined.includes(br(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?t(e):r(e)}function i(e){return r(e)}}},Ju={tokenize:function(e,t,r){return function(t){return Vi.leftSquareBracket,e.enter(Wi.reference),e.enter(Wi.referenceMarker),e.consume(t),e.exit(Wi.referenceMarker),n};function n(n){return n===Vi.rightSquareBracket?(e.enter(Wi.referenceMarker),e.consume(n),e.exit(Wi.referenceMarker),e.exit(Wi.reference),t):r(n)}}};function el(e){var t=e.micromark,r=e.toMarkdown,o=e.fromMarkdown,a=e.toHast,s=e.handler;return function(){var e=this.data(),c=e.micromarkExtensions||(e.micromarkExtensions=[]),u=e.toMarkdownExtensions||(e.toMarkdownExtensions=[]),l=e.fromMarkdownExtensions||(e.fromMarkdownExtensions=[]),f=e.toHastExtensions||(e.toHastExtensions=[]);if(t&&c.push(t(N()({},i,n,{assert:Ee,factorySpace:Kt,factoryWhitespace:yr}))),r&&u.push(r()),o&&l.push(o()),a&&f.push(a()),s)return s({visit:Hn,select:Ve})}}var tl=function(e,t,r,n){var o=Jn.image(e,t,r,n);return e.width||e.height?o.replace(/\)$/," ="+(e.width||"")+(e.height?"x"+e.height:"")+")"):o};tl.peek=Jn.image.peek;var rl=el({micromark:function(){var e;return{text:(e={},e[Vi.rightSquareBracket]=Zu,e)}},fromMarkdown:function(){return{enter:{resourceSizeWidth:function(){this.buffer()},resourceSizeHeight:function(){this.buffer()}},exit:{resourceSizeWidth:function(){var e=this.resume();this.stack[this.stack.length-1].width=e},resourceSizeHeight:function(){var e=this.resume();this.stack[this.stack.length-1].height=e}}}},toMarkdown:function(){return{handlers:{image:tl}}},toHast:function(){return{image:function(e,t){var r=ia.image(e,t);if(r&&!Array.isArray(r)&&"element"===r.type)return r.properties.width=t.width,r.properties.height=t.height,r}}}}),nl=Jn.paragraph,ol=Jn.heading,il=function(e){var t;switch(e){case"right":t="--: ";break;case"center":t=":-: ";break;default:t=""}return t},al=el({toMarkdown:function(){return{handlers:{paragraph:function(e,t,r,n){var o=nl(e,t,r,n);return il(e.align)+o},heading:function(e,t,r,n){return ol(e,t,r,n).replace(/^#+\s/,"$&"+il(e.align))}}}},handler:function(){return function(e){Hn(e,(function(e,t,r){if(function(e){return"paragraph"===e.type||"heading"===e.type}(e)){var n=Ve("text",e);if(n){var o=n.value;o.startsWith("--: ")?e.align="right":o.startsWith(":-: ")?e.align="center":o.startsWith(":-- ")&&(e.align="left"),e.align&&(n.value=o.substr(4),r&&"listItem"===r.type?r.data=N()({},r.data,{hProperties:{className:"align-"+e.align}}):e.data=N()({},e.data,{hProperties:{className:"align-"+e.align}}))}}}))}}}),sl={tokenize:function(e,t,r){function n(t){return t===Vi.rightSquareBracket?r(t):(e.enter("blockQuoteType"),e.enter(Wi.chunkString,{contentType:"string"}),o(t))}function o(t){return t===Vi.rightSquareBracket?(e.exit(Wi.chunkString),e.exit("blockQuoteType"),e.enter("blockQuoteTypeMarker"),e.consume(t),e.exit("blockQuoteTypeMarker"),i):$t(t)||!It(t)?r(t):(e.consume(t),o)}function i(e){return e===Vi.leftParenthesis?r(e):t(e)}return function(t){return e.enter("blockQuoteTypeMarker"),e.consume(t),e.exit("blockQuoteTypeMarker"),n}},partial:!0},cl={name:"blockQuote",tokenize:function(e,t,r){var n=this;return function(t){if(t===Vi.greaterThan){var i=n.containerState;return i.open||(e.enter(Wi.blockQuote,{_container:!0}),i.open=!0),e.enter(Wi.blockQuotePrefix),e.enter(Wi.blockQuoteMarker),e.consume(t),e.exit(Wi.blockQuoteMarker),Kt(e,o,Wi.whitespace)}return r(t)};function o(t){return t===Vi.leftSquareBracket?e.attempt(sl,i,i)(t):i(t)}function i(r){return qt(r)?(e.enter(Wi.blockQuotePrefixWhitespace),e.consume(r),e.exit(Wi.blockQuotePrefixWhitespace),e.exit(Wi.blockQuotePrefix),t):(e.exit(Wi.blockQuotePrefix),t(r))}},continuation:{tokenize:function(e,t,r){var n=this;return function(t){return qt(t)?(n.parser.constructs.disable.null,Kt(e,o,Wi.linePrefix,n.parser.constructs.disable.null.includes("codeIndented")?void 0:Gi.tabSize)(t)):o(t)};function o(n){return e.attempt(cl,t,r)(n)}}},exit:dr.exit},ul=Jn.blockquote,ll=el({micromark:function(){var e;return{document:(e={},e[Vi.greaterThan]=cl,e)}},toMarkdown:function(){return{handlers:{blockquote:function(e,t,r,n){var o=ul(e,t,r,n);return e.variant?o.replace(/(^|\s+)>\s/,"$1> ["+e.variant+"] "):o}}}},fromMarkdown:function(){return{enter:{blockQuoteType:function(){this.buffer()}},exit:{blockQuoteType:function(){var e=this.resume();this.stack[this.stack.length-1].variant=e}}}},handler:function(){return function(e){Hn(e,"blockquote",(function(e){e.variant&&(e.data=N()({},e.data,{hProperties:{className:e.variant}}))}))}}}),fl="blankLine",hl="blankLineSequence",pl={name:"blankLine",tokenize:function(e,t,r){var n,o=function t(r){return r===n?(e.consume(r),t):(e.exit(hl),i(r))},i=function i(a){return a===n?(e.enter(hl),o(a)):qt(a)?Kt(e,i,Wi.whitespace)(a):a===Vi.eof||Ut(a)?(e.exit(fl),t(a)):r(a)};return function(t){return Vi.caret,e.enter(fl),n=t,i(t)}}},dl=el({toHast:function(){return{blankLine:function(){return{type:"element",tagName:"p",properties:{},children:[{type:"element",tagName:"br",properties:{},children:[]}]}}}},micromark:function(){var e;return{flow:(e={},e[Vi.caret]=pl,e)}},toMarkdown:function(){return{handlers:{blankLine:function(){return"^"}}}},fromMarkdown:function(){return{enter:{blankLine:function(e){this.enter({type:"blankLine"},e)}},exit:{blankLine:function(e){this.exit(e)}}}}}),ml=function(e,t){void 0===t&&(t="text");var r="";return Hn(e,t,(function(e){r+=e.value})),r},vl=/^\[toc(?:=(\d)(?:,(\d))?)?]$/im,gl=el({handler:function(){return function(e){Hn(e,(function(e,t,r){if(r&&"root"===r.type&&void 0!==t&&ml(e).match(vl))return r.children.splice(t,1),[Mn,t]}))}}}),yl=el({toHast:function(){return{xBlock:function(e,t){return{type:"element",tagName:"x-block",properties:{name:t.name,value:t.value,parameter:t.parameter},children:[]}},xInline:function(e,t){return{type:"element",tagName:"x-inline",properties:{name:t.name,value:t.value},children:[]}}}},handler:function(){return function(e){Hn(e,(function(e,t,r){if(void 0!==t&&void 0!==r)if(function(e){return"code"===e.type}(e)&&e.lang){var n=/\[([\w-_]+)(:([\w-_]+))?]/g.exec(e.lang);if(n){var o={type:"xBlock",name:n[1],parameter:n[3]||"",value:e.value,position:e.position};r.children.splice(t,1,o)}}else if(function(e){return"inlineCode"===e.type}(e)){var i=/^([^\s]+)\s(.*?)\s\1$/.exec(e.value);if(i){var a={type:"xInline",name:i[1],value:i[2],position:e.position};r.children.splice(t,1,a)}}}))}}}),bl=mt().use((function(e){const t=this;t.parser=function(r){return pn(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}})).use((function(e){const t=this;t.compiler=function(r){return fo(r,{...t.data("settings"),...e,extensions:t.data("toMarkdownExtensions")||[]})}}),{bullet:"*",listItemIndent:"one",fences:!0,join:[function(e,t){if("blankLine"===e.type&&e.type===t.type)return 0}]}).use((function(){const e=this.data(),t=e.micromarkExtensions||(e.micromarkExtensions=[]),r=e.fromMarkdownExtensions||(e.fromMarkdownExtensions=[]),n=e.toMarkdownExtensions||(e.toMarkdownExtensions=[]);t.push({text:{58:us},flow:{58:[rs,as]}}),r.push({canContainEols:["textDirective"],enter:{directiveContainer:Ba,directiveContainerAttributes:qa,directiveContainerLabel:Ua,directiveLeaf:Ma,directiveLeafAttributes:qa,directiveText:Na,directiveTextAttributes:qa},exit:{directiveContainer:Za,directiveContainerAttributeClassValue:Ga,directiveContainerAttributeIdValue:Va,directiveContainerAttributeName:Ka,directiveContainerAttributeValue:Wa,directiveContainerAttributes:Qa,directiveContainerLabel:$a,directiveContainerName:za,directiveLeaf:Za,directiveLeafAttributeClassValue:Ga,directiveLeafAttributeIdValue:Va,directiveLeafAttributeName:Ka,directiveLeafAttributeValue:Wa,directiveLeafAttributes:Qa,directiveLeafName:za,directiveText:Za,directiveTextAttributeClassValue:Ga,directiveTextAttributeIdValue:Va,directiveTextAttributeName:Ka,directiveTextAttributeValue:Wa,directiveTextAttributes:Qa,directiveTextName:za}}),n.push({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:Ya,leafDirective:Ya,textDirective:Ya}})})).use((function(e){const t=e||"yaml",r=this.data(),n=r.micromarkExtensions||(r.micromarkExtensions=[]),o=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),i=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);n.push(function(e){const t=ha(e),r={};let n=-1;for(;++n<t.length;){const e=t[n],o=xa(e,"open").charCodeAt(0),i=wa(e),a=r[o];Array.isArray(a)?a.push(i):r[o]=[i]}return{flow:r}}(t)),o.push(function(e){const t=ha(e),r={},n={};let o=-1;for(;++o<t.length;){const e=t[o];r[e.type]=da(e),n[e.type]=ma,n[e.type+"Value"]=va}return{enter:r,exit:n}}(t)),i.push(function(e){const t=[],r={},n=ha(e);let o=-1;for(;++o<n.length;){const e=n[o];r[e.type]=ga(e);const i=ya(e,"open");t.push({atBreak:!0,character:i.charAt(0),after:wo(i.charAt(1))})}return{unsafe:t,handlers:r}}(t))}),["yaml"]).use((function(e){const t=e||$i,r=this.data(),n=r.micromarkExtensions||(r.micromarkExtensions=[]),o=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),i=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);n.push(function(e){return jt([{text:bi},{document:{91:{tokenize:Fi,continuation:{tokenize:ji},exit:Ti}},text:{91:{tokenize:Oi},93:{add:"after",tokenize:Ai,resolveTo:Ci}}},_i(e),{flow:{null:{tokenize:Li,resolveAll:Bi}}},{text:{91:zi}}])}(t)),o.push([{transforms:[To],enter:{literalAutolink:Po,literalAutolinkEmail:Ao,literalAutolinkHttp:Ao,literalAutolinkWww:Ao},exit:{literalAutolink:jo,literalAutolinkEmail:Fo,literalAutolinkHttp:Co,literalAutolinkWww:Oo}},{enter:{gfmFootnoteDefinition:Lo,gfmFootnoteDefinitionLabelString:Bo,gfmFootnoteCall:Ho,gfmFootnoteCallString:zo},exit:{gfmFootnoteDefinition:No,gfmFootnoteDefinitionLabelString:Mo,gfmFootnoteCall:$o,gfmFootnoteCallString:Uo}},{canContainEols:["delete"],enter:{strikethrough:Ko},exit:{strikethrough:Qo}},{enter:{table:ei,tableData:oi,tableHeader:oi,tableRow:ri},exit:{codeText:ii,table:ti,tableData:ni,tableHeader:ni,tableRow:ni}},{exit:{taskListCheckValueChecked:ci,taskListCheckValueUnchecked:ci,paragraph:ui}}]),i.push(function(e){return{extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:So,notInConstruct:Do},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:So,notInConstruct:Do},{character:":",before:"[ps]",after:"\\/",inConstruct:So,notInConstruct:Do}]},{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:Vo,footnoteReference:qo}},{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Wo}],handlers:{delete:Zo}},si(e),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:li}}]}}(t))})).use((function(){return function(e){!function(e){xo(e,[/\r?\n|\r/g,qi])}(e)}})).use((function(){const e=this.data();function t(t,r){(e[t]||(e[t]=[])).push(r)}return t("micromarkExtensions",function(){const e={text:{[gs.leftCurlyBrace]:{name:"headingIdMaybeStart",tokenize:(e,t,r)=>function(n){return e.attempt({tokenize(e,t,r){return function(t){if(t!==gs.leftCurlyBrace)throw new Error(`Unexpected code ${t}`);return e.enter("id"),e.enter("idMarker"),e.consume(t),n};function n(t){return t!==gs.numberSign?r(t):(e.consume(t),e.exit("idMarker"),e.enter("idString"),e.enter("chunkString",{contentType:"string"}),o)}function o(n){return[gs.carriageReturn,gs.lineFeed,gs.carriageReturnLineFeed,null,gs.backslash,gs.leftCurlyBrace].includes(n)?r(n):n===gs.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",{enter:{idString(e){this.enter({type:"idString",value:null},e),this.buffer()}},exit:{idString(e){const t=this.resume();this.exit(e).value=t}}}),function(e){vs(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}`)})),vs(e,"heading",(e=>{const t=e.children.filter((e=>"idString"===e.type));if(0==t.length)return;if(t.length>1)throw new Error(`Found ${t.length} ids under heading ${e}.`);const r=t[0];if(r.value&&r.value.length>0){e.data||(e.data={}),e.data.hProperties||(e.data.hProperties={}),e.data.id=e.data.hProperties.id=r.value,r.value="";const t=e.children.indexOf(r);if(t>=1){const r=e.children[t-1];"text"===r.type&&(r.value=r.value.trimEnd())}e.children.splice(t,1)}}))}})).use(yl).use(rl).use(al).use(ll).use(dl).use(gl);function wl(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return xl(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?xl(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function xl(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function El(e){for(var t,r=[],n=wl(e.children);!(t=n()).done;){var o=t.value,i=o.children,a=Ve("paragraph:first-child>*",o);if(a){var s=ml(a);if(s){var c="";a.url&&(c=decodeURI(a.url)).match(/[\\:*?"<>|]/)&&(c="");var u={title:s,ref:c};if(i.length>1){var l=i[i.length-1];Fn(l,"list")&&(u.children=El(l))}r.push(u)}}}return r}var kl=bl();function Sl(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Dl=function(){function e(e,t){void 0===e&&(e=[]),void 0===t&&(t=!1),this.parts=void 0,this.json=void 0,this.parts=e,this.json=t,this.indexLevels()}var t=e.prototype;return t.hasMetadata=function(){var e=!1;return this.getArticle((function(t){return!!e||!v()(t.metadata)&&(e=!0,!0)}),(function(t){return v()(t.metadata)||(e=!0),!0})),e},t.isJson=function(){return this.json},t.getParts=function(){return this.parts},t.getPart=function(e){return this.parts[e]},t.getLastPart=function(){return this.parts[this.parts.length-1]},t.getArticles=function(){var e=[];return this.getArticle((function(t){return e.push(t),!1})),e},t.getArticle=function(e,t){return this.parts.reduce((function(r,n){return r||(!t||t(n)?Wu.findArticle(n,e):void 0)}),void 0)},t.getArticlePart=function(e){var t=e.getLevel().getRoot();return this.getByLevel(t)},t.getFirstPath=function(){var e=this.getArticle((function(e){return!!e.getPath()}));if(e)return e.getPath()},t.getByLevel=function(e){var t=function(t){return t.getLevel().eq(e)};return this.parts.reduce((function(e,r){return e||(t(r)?r:Wu.findArticle(r,t))}),void 0)},t.getFirstArticle=function(){return this.getArticle((function(){return!0}))},t.getNextArticle=function(e){var t=e instanceof Wu?e.getLevel():e,r=!1;return this.getArticle((function(e){return!!r||(r=e.getLevel()==t,!1)}))},t.getPrevArticle=function(e){var t=e instanceof Wu?e.getLevel():e,r=void 0;return this.getArticle((function(e){return e.getLevel()==t||(r=e,!1)})),r},t.getParent=function(e){var t=(e instanceof Wu?e.getLevel():e).getParent();if(t)return this.getByLevel(t)},t.indexLevels=function(){for(var e,t=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return Sl(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Sl(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(this.parts.entries());!(e=t()).done;){var r=e.value,n=r[0],o=r[1],i=new Vu(String(n+1));o.indexLevels(i)}},t.isSinglePart=function(){return 1===this.parts.length&&!this.parts[0].title},t.isEmpty=function(){return this.isSinglePart()?0===this.parts[0].articles.length:0===this.parts.length},t.toObject=function(){return this.parts.map((function(e){return e.toObject()}))},e.createFromObject=function(t){return new e(t.map((function(e){return Qu.createFromObject(e)})),!0)},e.createFromText=function(t){return new e(function(e){for(var t,r,n=[],o=wl(kl.parse(e).children);!(r=o()).done;){var i=r.value;if(Fn(i,"heading")&&[2,3].includes(i.depth)&&(t&&n.push(t),t={title:ml(i).trim()}),Fn(i,"list")){var a=El(i);t?t.articles=(t.articles||[]).concat(a):t={title:"",articles:a}}}return t?n.push(t):n.push({title:""}),n}(t).map((function(e){return Qu.createFromObject(e)})))},e.create=function(t){return"object"==typeof t?e.createFromObject(t):e.createFromText(t)},e}();Dl.file={json:"SUMMARY.json",markdown:"SUMMARY.md"};var Pl,Al=function(){function e(e){var t=e.path,r=e.content,n=e.meta,o=void 0===n?{}:n;this.path=void 0,this.content=void 0,this.meta=void 0,this.path=t,this.content=r,this.meta=o}var t=e.prototype;return t.getMeta=function(e,t){return d()(this.meta,e,t)},t.relative=function(e){var t="/"===e.slice(-1);return(e=z().posix.relative(z().posix.dirname(this.path),e)||".")+(t?"/":"")},t.resolve=function(e){return z().posix.join(z().posix.dirname(this.path),e)},e}(),Cl=["page"],Ol=function(){function e(e){var t=e.host,r=e.preset;this.host=void 0,this.preset=void 0,this.host=t,this.preset=r}var t=e.prototype;return t.getBuyUrl=function(e,t){return this.host+"/api/buy?book="+e.id+"&plugin="+t.name},t.bought=function(){var e=xs()(ks().mark((function e(t,r){return ks().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,du.get(this.host+"/api/bought?book="+t.id+"&plugin="+r.name);case 3:return e.abrupt("return",!0);case 6:return e.prev=6,e.t0=e.catch(0),e.abrupt("return",!1);case 9:case"end":return e.stop()}}),e,this,[[0,6]])})));return function(t,r){return e.apply(this,arguments)}}(),t.trial=function(){var e=xs()(ks().mark((function e(t,r){var n,o;return ks().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,du.get(this.host+"/api/trial?book="+t.id+"&plugin="+r.name);case 3:return n=e.sent,o=n.data,e.abrupt("return",o);case 8:return e.prev=8,e.t0=e.catch(0),e.abrupt("return",!1);case 11:case"end":return e.stop()}}),e,this,[[0,8]])})));return function(t,r){return e.apply(this,arguments)}}(),t.queryPlugins=function(){var e=xs()(ks().mark((function e(t){var r,n,o,i,a;return ks().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.page,n=void 0===r?1:r,o=bs()(t,Cl),e.next=3,du.get(this.host+"/api/query",{params:N()({},o,{page:n})});case 3:return i=e.sent,a=i.data,e.abrupt("return",a);case 6:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),t.getInstalled=function(){var e=xs()(ks().mark((function e(t){var r,n,o,i,a,s=this;return ks().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.config,n=r.getValue("theme"),o=["theme-"+n].concat(r.getValue("plugins")),this.preset&&(o.push.apply(o,Object.keys(this.preset)),r.setPresetPlugins(this.preset)),e.next=6,du.get(this.host+"/api/installed",{params:{book:t.id,plugins:o.join(",")}}).catch((function(e){throw new Error("Plugins Check Failed:"+e.message)}));case 6:return i=e.sent,a=i.data,e.abrupt("return",a.flatMap((function(e){var t,r;return!e.builtin||null!=(t=s.preset)&&t[e.name]?(e.preset=!(null==(r=s.preset)||!r[e.name]),[e]):[]})));case 9:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),e}();function Fl(e){return Pl=new Ol(e)}var jl,Tl=function(){function e(e,t,r){this.flatColors=["#1abc9c","#2ecc71","#3498db","#9b59b6","#34495e","#16a085","#27ae60","#2980b9","#8e44ad","#2c3e50","#f1c40f","#e67e22","#e74c3c","#f39c12","#d35400","#c0392b"],this.letter=void 0,this.size=void 0,this.canvas=void 0,this.letter=e,this.size=t,this.canvas=r,this.generate()}var t=e.prototype;return t.toDataUrl=function(){return this.canvas.toDataURL()},t.generate=function(){var e=this.canvas.getContext("2d");if(!e)throw new Error("getContext failed");var 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){var r=this.letter[0].toUpperCase();e.fillStyle=this.flatColors[r.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()},e.create=function(t,r,n){return n||(n=function(e){var t=window.document.createElement("canvas");return t.width=e,t.height=e,t}(r)),new e(t,r,n)},e}(),_l=/^(?:\w+:)?\/\/(\S+)$/,Rl=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,Il=/^[^\s\.]+\.\S{2,}$/;function Ll(e){var t=e.match(_l);if(!t)return!1;var r=t[1];return!!r&&(Rl.test(r)||Il.test(r))}(jl=jl||du).interceptors.response.use(ju,(async e=>async function(e,t){if(yu(t))throw t;const r=function(e){if(e?.config)return e.config.raxConfig}(t)||{};r.currentRetryAttempt=r.currentRetryAttempt||0,r.retry="number"==typeof r.retry?r.retry:3,r.retryDelay="number"==typeof r.retryDelay?r.retryDelay:100,r.instance=r.instance||e,r.backoffType=r.backoffType||"exponential",r.httpMethodsToRetry=Tu(r.httpMethodsToRetry)||["GET","HEAD","PUT","OPTIONS","DELETE"],r.noResponseRetries="number"==typeof r.noResponseRetries?r.noResponseRetries:2,r.checkRetryAfter="boolean"!=typeof r.checkRetryAfter||r.checkRetryAfter,r.maxRetryAfter="number"==typeof r.maxRetryAfter?r.maxRetryAfter:3e5;const n=[[100,199],[429,429],[500,599]];r.statusCodesToRetry=Tu(r.statusCodesToRetry)||n;const o=t;if(o.config=o.config||{},o.config.raxConfig={...r},!(r.shouldRetry||_u)(o))throw o;const i=new Promise(((e,t)=>{let n=0;if(r.checkRetryAfter&&o.response?.headers["retry-after"]){const e=function(e){const t=Number(e);if(!Number.isNaN(t))return 1e3*t;const r=Date.parse(e);return Number.isNaN(r)?void 0:r-Date.now()}(o.response.headers["retry-after"]);if(!(e&&e>0&&e<=r.maxRetryAfter))return void t(o);n=e}o.config.raxConfig.currentRetryAttempt+=1;const i=o.config.raxConfig.currentRetryAttempt;0===n&&(n="linear"===r.backoffType?1e3*i:"static"===r.backoffType?r.retryDelay:(2**i-1)/2*1e3,"number"==typeof r.maxRetryDelay&&(n=Math.min(n,r.maxRetryDelay))),setTimeout(e,n)}));r.onRetryAttempt&&r.onRetryAttempt(o);const a=Promise.resolve();return Promise.resolve().then((async()=>i)).then((async()=>a)).then((async()=>r.instance.request(o.config)))}(jl,e))),du.defaults.raxConfig={retryDelay:2e3,backoffType:"static",shouldRetry:function(e){var t,r=e.config,n=e.response,o=(null==r?void 0:r.raxConfig)||{};return!(null!=o&&o.retryDecider&&!o.retryDecider()||null==r||!r.method||null==(t=o.httpMethodsToRetry)||!t.includes(r.method.toUpperCase())||449!==(null==n?void 0:n.status))}},du.defaults.maxContentLength=1/0,du.defaults.maxBodyLength=1/0;var Bl=du.isAxiosError;function Ml(e){return Iu()(e).toString()}var Nl=r(7934),Hl=r.n(Nl),zl=r(5523),Ul=r.n(zl),$l=r(5745),ql=r.n($l),Vl=r(2904),Gl=r.n(Vl),Wl=r(9108),Kl=r.n(Wl),Ql=r(3040),Zl=r(5250),Yl=r(7363),Xl=r.n(Yl),Jl=r(4114),ef=r.n(Jl),tf=r(9862),rf=r.n(tf),nf=r(6673);function of(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var af="function"==typeof Symbol&&Symbol.observable||"@@observable",sf=function(){return Math.random().toString(36).substring(7).split("").join(".")},cf={INIT:"@@redux/INIT"+sf(),REPLACE:"@@redux/REPLACE"+sf(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+sf()}};function uf(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function lf(e,t,r){var n;if("function"==typeof t&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw new Error(of(0));if("function"==typeof t&&void 0===r&&(r=t,t=void 0),void 0!==r){if("function"!=typeof r)throw new Error(of(1));return r(lf)(e,t)}if("function"!=typeof e)throw new Error(of(2));var o=e,i=t,a=[],s=a,c=!1;function u(){s===a&&(s=a.slice())}function l(){if(c)throw new Error(of(3));return i}function f(e){if("function"!=typeof e)throw new Error(of(4));if(c)throw new Error(of(5));var t=!0;return u(),s.push(e),function(){if(t){if(c)throw new Error(of(6));t=!1,u();var r=s.indexOf(e);s.splice(r,1),a=null}}}function h(e){if(!uf(e))throw new Error(of(7));if(void 0===e.type)throw new Error(of(8));if(c)throw new Error(of(9));try{c=!0,i=o(i,e)}finally{c=!1}for(var t=a=s,r=0;r<t.length;r++){(0,t[r])()}return e}return h({type:cf.INIT}),(n={dispatch:h,subscribe:f,getState:l,replaceReducer:function(e){if("function"!=typeof e)throw new Error(of(10));o=e,h({type:cf.REPLACE})}})[af]=function(){var e,t=f;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(of(11));function r(){e.next&&e.next(l())}return r(),{unsubscribe:t(r)}}})[af]=function(){return this},e},n}function ff(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}var hf=r(6065),pf=r(2611),df=Xl().createContext(null);var mf=function(e){e()},vf=function(){return mf};var gf={notify:function(){},get:function(){return[]}};function yf(e,t){var r,n=gf;function o(){a.onStateChange&&a.onStateChange()}function i(){r||(r=t?t.addNestedSub(o):e.subscribe(o),n=function(){var e=vf(),t=null,r=null;return{clear:function(){t=null,r=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],r=t;r;)e.push(r),r=r.next;return e},subscribe:function(e){var n=!0,o=r={callback:e,next:null,prev:r};return o.prev?o.prev.next=o:t=o,function(){n&&null!==t&&(n=!1,o.next?o.next.prev=o.prev:r=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}())}var a={addNestedSub:function(e){return i(),n.subscribe(e)},notifyNestedSubs:function(){n.notify()},handleChangeWrapper:o,isSubscribed:function(){return Boolean(r)},trySubscribe:i,tryUnsubscribe:function(){r&&(r(),r=void 0,n.clear(),n=gf)},getListeners:function(){return n}};return a}var bf="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?Yl.useLayoutEffect:Yl.useEffect;const wf=function(e){var t=e.store,r=e.context,n=e.children,o=(0,Yl.useMemo)((function(){var e=yf(t);return{store:t,subscription:e}}),[t]),i=(0,Yl.useMemo)((function(){return t.getState()}),[t]);bf((function(){var e=o.subscription;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),i!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[o,i]);var a=r||df;return Xl().createElement(a.Provider,{value:o},n)};var xf=r(6095),Ef=r.n(xf);r(503);r(5527);function kf(){return(0,Yl.useContext)(df)}var Sf=function(e,t){return e===t};function Df(e){void 0===e&&(e=df);var t=e===df?kf:function(){return(0,Yl.useContext)(e)};return function(e,r){void 0===r&&(r=Sf);var n=t(),o=function(e,t,r,n){var o,i=(0,Yl.useReducer)((function(e){return e+1}),0)[1],a=(0,Yl.useMemo)((function(){return yf(r,n)}),[r,n]),s=(0,Yl.useRef)(),c=(0,Yl.useRef)(),u=(0,Yl.useRef)(),l=(0,Yl.useRef)(),f=r.getState();try{if(e!==c.current||f!==u.current||s.current){var h=e(f);o=void 0!==l.current&&t(h,l.current)?l.current:h}else o=l.current}catch(e){throw s.current&&(e.message+="\nThe error may be correlated with this previous error:\n"+s.current.stack+"\n\n"),e}return bf((function(){c.current=e,u.current=f,l.current=o,s.current=void 0})),bf((function(){function e(){try{var e=r.getState();if(e===u.current)return;var n=c.current(e);if(t(n,l.current))return;l.current=n,u.current=e}catch(e){s.current=e}i()}return a.onStateChange=e,a.trySubscribe(),e(),function(){return a.tryUnsubscribe()}}),[r,a]),o}(e,r,n.store,n.subscription);return(0,Yl.useDebugValue)(o),o}}var Pf,Af=Df(),Cf=r(1533);Pf=Cf.unstable_batchedUpdates,mf=Pf;const Of="TYPE_SET_STATE",Ff="TYPE_GET_STATE";function jf(e){const t=Object.getPrototypeOf(e);return Object.getOwnPropertyNames(t).filter((e=>!["constructor","onAction","subscription"].includes(e)&&"function"==typeof t[e]&&!e.startsWith("_")))}class Tf{constructor(){rf()(this,"initialState",void 0),rf()(this,"state",void 0)}*getState(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return yield{type:Ff,payload:{models:t}}}setState(e){return{type:Of,payload:{fn:e}}}dispatch(e){}}(0,hf.Fl)(!1);const _f=(e,t,r)=>{for(let n of e)t=n(t,r);return t},Rf=(e,t)=>{for(let r in e){let n=e[r];e[r]=function(){let e=n(...arguments);if("function"==typeof e)return e(t)}}return e};function If(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e=>e,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];const o={},i={},a={},s={},c={},u={};for(const r in e){const n=e[r];void 0!==n.initialState?"function"==typeof n.initialState?a[r]=n.initialState(t[r],t):a[r]=(0,pf.merge)(n.initialState,t[r]):a[r]=t[r],i[r]={},n.onAction&&(u[r]=(e,t)=>n.onAction(e,t,s[r])),n.subscription&&(c[r]=n.subscription),n.dispatch=function(e){if("string"==typeof e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];s[r][e](...n)}};const l=jf(n);for(let e of l){const t=Object.getPrototypeOf(n)[e],a=`${r}/${e}`;i[r][e]=function(){for(var e=arguments.length,i=new Array(e),s=0;s<e;s++)i[s]=arguments[s];return async e=>{const{dispatch:s,getState:c}=e;let l=0;const f=Object.entries(u).filter((e=>{let[t]=e;return t!==r})).map((e=>{let[,t]=e;return t}));let h=_f(f,t.bind(n),a)(...i);const p=async e=>{let t=await e.next();for(;!t.done;){let i,u;if(t.value instanceof Promise)try{i=await t.value}catch(e){u=e}else if((n=t.value)&&"function"==typeof n.next&&"function"==typeof n.throw)try{i=await p(t.value)}catch(e){u=e}else{let e=t.value,n=e.payload;switch(e.type){case Ff:const e=c();i=n.models.length>0?n.models.length>1?n.models.map((t=>e[t])):e[n.models[0]]:e;break;case Of:let t=`${a}/@@${++l}`;o[t]=n.fn,s({type:t,name:r}),delete o[t]}}t=u?await e.throw(u):await e.next(i)}var n;return t.value};await p(h)}}}}const l=window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||ff,f=lf(r((function(e,t){return(0,hf.Uy)(e,(e=>{t.name&&o[t.type]&&("function"==typeof o[t.type]?e[t.name]=(0,hf.Uy)(e[t.name],o[t.type]):e[t.name]=o[t.type])}))})),a,l(function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return function(){var r=e.apply(void 0,arguments),n=function(){throw new Error(of(15))},o={getState:r.getState,dispatch:function(){return n.apply(void 0,arguments)}},i=t.map((function(e){return e(o)}));return n=ff.apply(void 0,i)(r.dispatch),(0,nf.Z)((0,nf.Z)({},r),{},{dispatch:n})}}}(...n))),{getState:h}=f;for(let[e,t]of Object.entries(i))s[e]=Rf(t,f);for(let t in c)c[t].call(e[t],s[t],h()[t]);return f.actions=s,f}const Lf=(0,Yl.createContext)({actions:{}});function Bf(e){let{store:t,children:r}=e;return(0,Zl.jsx)(Lf.Provider,{value:{actions:t.actions},children:(0,Zl.jsx)(wf,{store:t,children:r})})}function Mf(e,t){return"string"==typeof e||Array.isArray(e)?Af((t=>Array.isArray(e)?e:Array(e).reduce(((e,t)=>e[t]),t)),t):Af(e,t)}var Nf=r(9664),Hf=r.n(Nf),zf=r(125),Uf=r.n(zf),$f=r(4636),qf=r.n($f),Vf=r(2815),Gf=r(5225),Wf=r.n(Gf),Kf=r(2037),Qf=r(5218),Zf=r.n(Qf);const Yf=function(e){function t(e,n,c,u,h){for(var p,d,m,v,w,E=0,k=0,S=0,D=0,P=0,T=0,R=m=p=0,L=0,B=0,M=0,N=0,H=c.length,z=H-1,U="",$="",q="",V="";L<H;){if(d=c.charCodeAt(L),L===z&&0!==k+D+S+E&&(0!==k&&(d=47===k?10:47),D=S=E=0,H++,z++),0===k+D+S+E){if(L===z&&(0<B&&(U=U.replace(f,"")),0<U.trim().length)){switch(d){case 32:case 9:case 59:case 13:case 10:break;default:U+=c.charAt(L)}d=59}switch(d){case 123:for(p=(U=U.trim()).charCodeAt(0),m=1,N=++L;L<H;){switch(d=c.charCodeAt(L)){case 123:m++;break;case 125:m--;break;case 47:switch(d=c.charCodeAt(L+1)){case 42:case 47:e:{for(R=L+1;R<z;++R)switch(c.charCodeAt(R)){case 47:if(42===d&&42===c.charCodeAt(R-1)&&L+2!==R){L=R+1;break e}break;case 10:if(47===d){L=R+1;break e}}L=R}}break;case 91:d++;case 40:d++;case 34:case 39:for(;L++<z&&c.charCodeAt(L)!==d;);}if(0===m)break;L++}if(m=c.substring(N,L),0===p&&(p=(U=U.replace(l,"").trim()).charCodeAt(0)),64===p){switch(0<B&&(U=U.replace(f,"")),d=U.charCodeAt(1)){case 100:case 109:case 115:case 45:B=n;break;default:B=j}if(N=(m=t(n,B,m,d,h+1)).length,0<_&&(w=s(3,m,B=r(j,U,M),n,C,A,N,d,h,u),U=B.join(""),void 0!==w&&0===(N=(m=w.trim()).length)&&(d=0,m="")),0<N)switch(d){case 115:U=U.replace(x,a);case 100:case 109:case 45:m=U+"{"+m+"}";break;case 107:m=(U=U.replace(g,"$1 $2"))+"{"+m+"}",m=1===F||2===F&&i("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=U+m,112===u&&($+=m,m="")}else m=""}else m=t(n,r(n,U,M),m,u,h+1);q+=m,m=M=B=R=p=0,U="",d=c.charCodeAt(++L);break;case 125:case 59:if(1<(N=(U=(0<B?U.replace(f,""):U).trim()).length))switch(0===R&&(p=U.charCodeAt(0),45===p||96<p&&123>p)&&(N=(U=U.replace(" ",":")).length),0<_&&void 0!==(w=s(1,U,n,e,C,A,$.length,u,h,u))&&0===(N=(U=w.trim()).length)&&(U="\0\0"),p=U.charCodeAt(0),d=U.charCodeAt(1),p){case 0:break;case 64:if(105===d||99===d){V+=U+c.charAt(L);break}default:58!==U.charCodeAt(N-1)&&($+=o(U,p,d,U.charCodeAt(2)))}M=B=R=p=0,U="",d=c.charCodeAt(++L)}}switch(d){case 13:case 10:47===k?k=0:0===1+p&&107!==u&&0<U.length&&(B=1,U+="\0"),0<_*I&&s(0,U,n,e,C,A,$.length,u,h,u),A=1,C++;break;case 59:case 125:if(0===k+D+S+E){A++;break}default:switch(A++,v=c.charAt(L),d){case 9:case 32:if(0===D+E+k)switch(P){case 44:case 58:case 9:case 32:v="";break;default:32!==d&&(v=" ")}break;case 0:v="\\0";break;case 12:v="\\f";break;case 11:v="\\v";break;case 38:0===D+k+E&&(B=M=1,v="\f"+v);break;case 108:if(0===D+k+E+O&&0<R)switch(L-R){case 2:112===P&&58===c.charCodeAt(L-3)&&(O=P);case 8:111===T&&(O=T)}break;case 58:0===D+k+E&&(R=L);break;case 44:0===k+S+D+E&&(B=1,v+="\r");break;case 34:case 39:0===k&&(D=D===d?0:0===D?d:D);break;case 91:0===D+k+S&&E++;break;case 93:0===D+k+S&&E--;break;case 41:0===D+k+E&&S--;break;case 40:if(0===D+k+E){if(0===p)if(2*P+3*T==533);else p=1;S++}break;case 64:0===k+S+D+E+R+m&&(m=1);break;case 42:case 47:if(!(0<D+E+S))switch(k){case 0:switch(2*d+3*c.charCodeAt(L+1)){case 235:k=47;break;case 220:N=L,k=42}break;case 42:47===d&&42===P&&N+2!==L&&(33===c.charCodeAt(N+2)&&($+=c.substring(N,L+1)),v="",k=0)}}0===k&&(U+=v)}T=P,P=d,L++}if(0<(N=$.length)){if(B=n,0<_&&(void 0!==(w=s(2,$,B,e,C,A,N,u,h,u))&&0===($=w).length))return V+$+q;if($=B.join(",")+"{"+$+"}",0!=F*O){switch(2!==F||i($,2)||(O=0),O){case 111:$=$.replace(b,":-moz-$1")+$;break;case 112:$=$.replace(y,"::-webkit-input-$1")+$.replace(y,"::-moz-$1")+$.replace(y,":-ms-input-$1")+$}O=0}}return V+$+q}function r(e,t,r){var o=t.trim().split(m);t=o;var i=o.length,a=e.length;switch(a){case 0:case 1:var s=0;for(e=0===a?"":e[0]+" ";s<i;++s)t[s]=n(e,t[s],r).trim();break;default:var c=s=0;for(t=[];s<i;++s)for(var u=0;u<a;++u)t[c++]=n(e[u]+" ",o[s],r).trim()}return t}function n(e,t,r){var n=t.charCodeAt(0);switch(33>n&&(n=(t=t.trim()).charCodeAt(0)),n){case 38:return t.replace(v,"$1"+e.trim());case 58:return e.trim()+t.replace(v,"$1"+e.trim());default:if(0<1*r&&0<t.indexOf("\f"))return t.replace(v,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function o(e,t,r,n){var a=e+";",s=2*t+3*r+4*n;if(944===s){e=a.indexOf(":",9)+1;var c=a.substring(e,a.length-1).trim();return c=a.substring(0,e).trim()+c+";",1===F||2===F&&i(c,1)?"-webkit-"+c+c:c}if(0===F||2===F&&!i(a,1))return a;switch(s){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(P,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(c=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+c+a;case 1005:return p.test(a)?a.replace(h,":-webkit-")+a.replace(h,":-moz-")+a:a;case 1e3:switch(t=(c=a.substring(13).trim()).indexOf("-")+1,c.charCodeAt(0)+c.charCodeAt(t)){case 226:c=a.replace(w,"tb");break;case 232:c=a.replace(w,"tb-rl");break;case 220:c=a.replace(w,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+c+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,s=(c=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|c.charCodeAt(7))){case 203:if(111>c.charCodeAt(8))break;case 115:a=a.replace(c,"-webkit-"+c)+";"+a;break;case 207:case 102:a=a.replace(c,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(c,"-webkit-"+c)+";"+a.replace(c,"-ms-"+c+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return c=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+c+"-ms-flex-"+c+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(k,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(k,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===D.test(e))return 115===(c=e.substring(e.indexOf(":")+1)).charCodeAt(0)?o(e.replace("stretch","fill-available"),t,r,n).replace(":fill-available",":stretch"):a.replace(c,"-webkit-"+c)+a.replace(c,"-moz-"+c.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===r+n&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(d,"$1-webkit-$2")+a}return a}function i(e,t){var r=e.indexOf(1===t?":":"{"),n=e.substring(0,3!==t?r:10);return r=e.substring(r+1,e.length-1),R(2!==t?n:n.replace(S,"$1"),r,t)}function a(e,t){var r=o(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return r!==t+";"?r.replace(E," or ($1)").substring(4):"("+t+")"}function s(e,t,r,n,o,i,a,s,c,l){for(var f,h=0,p=t;h<_;++h)switch(f=T[h].call(u,e,p,r,n,o,i,a,s,c,l)){case void 0:case!1:case!0:case null:break;default:p=f}if(p!==t)return p}function c(e){return void 0!==(e=e.prefix)&&(R=null,e?"function"!=typeof e?F=1:(F=2,R=e):F=0),c}function u(e,r){var n=e;if(33>n.charCodeAt(0)&&(n=n.trim()),n=[n],0<_){var o=s(-1,r,n,n,C,A,0,0,0,0);void 0!==o&&"string"==typeof o&&(r=o)}var i=t(j,n,r,0,0);return 0<_&&(void 0!==(o=s(-2,i,n,n,C,A,i.length,0,0,0))&&(i=o)),"",O=0,A=C=1,i}var l=/^\0+/g,f=/[\0\r\f]/g,h=/: */g,p=/zoo|gra/,d=/([,: ])(transform)/g,m=/,\r+?/g,v=/([\t\r\n ])*\f?&/g,g=/@(k\w+)\s*(\S*)\s*/,y=/::(place)/g,b=/:(read-only)/g,w=/[svh]\w+-[tblr]{2}/,x=/\(\s*(.*)\s*\)/g,E=/([\s\S]*?);/g,k=/-self|flex-/g,S=/[^]*?(:[rp][el]a[\w-]+)[^]*/,D=/stretch|:\s*\w+\-(?:conte|avail)/,P=/([^-])(image-set\()/,A=1,C=1,O=0,F=1,j=[],T=[],_=0,R=null,I=0;return u.use=function e(t){switch(t){case void 0:case null:_=T.length=0;break;default:if("function"==typeof t)T[_++]=t;else if("object"==typeof t)for(var r=0,n=t.length;r<n;++r)e(t[r]);else I=0|!!t}return e},u.set=c,void 0!==e&&c(e),u};const Xf={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function Jf(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}var eh=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,th=Jf((function(e){return eh.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),rh=r(4675);function nh(){return(nh=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var oh=function(e,t){for(var r=[e[0]],n=0,o=t.length;n<o;n+=1)r.push(t[n],e[n+1]);return r},ih=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!(0,Kf.typeOf)(e)},ah=Object.freeze([]),sh=Object.freeze({});function ch(e){return"function"==typeof e}function uh(e){return e.displayName||e.name||"Component"}function lh(e){return e&&"string"==typeof e.styledComponentId}var fh=void 0!==rh&&void 0!==rh.env&&(rh.env.REACT_APP_SC_ATTR||rh.env.SC_ATTR)||"data-styled",hh="undefined"!=typeof window&&"HTMLElement"in window,ph=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:void 0!==rh&&void 0!==rh.env&&(void 0!==rh.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==rh.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==rh.env.REACT_APP_SC_DISABLE_SPEEDY&&rh.env.REACT_APP_SC_DISABLE_SPEEDY:void 0!==rh.env.SC_DISABLE_SPEEDY&&""!==rh.env.SC_DISABLE_SPEEDY&&("false"!==rh.env.SC_DISABLE_SPEEDY&&rh.env.SC_DISABLE_SPEEDY))),dh={};function mh(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(r.length>0?" Args: "+r.join(", "):""))}var vh=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,r=0;r<e;r++)t+=this.groupSizes[r];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,o=n;e>=o;)(o<<=1)<0&&mh(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var i=n;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),s=0,c=t.length;s<c;s++)this.tag.insertRule(a,t[s])&&(this.groupSizes[e]++,a++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(var o=r;o<n;o++)this.tag.deleteRule(r)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),o=n+r,i=n;i<o;i++)t+=this.tag.getRule(i)+"/*!sc*/\n";return t},e}(),gh=new Map,yh=new Map,bh=1,wh=function(e){if(gh.has(e))return gh.get(e);for(;yh.has(bh);)bh++;var t=bh++;return gh.set(e,t),yh.set(t,e),t},xh=function(e){return yh.get(e)},Eh=function(e,t){t>=bh&&(bh=t+1),gh.set(e,t),yh.set(t,e)},kh="style["+fh+'][data-styled-version="5.3.8"]',Sh=new RegExp("^"+fh+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),Dh=function(e,t,r){for(var n,o=r.split(","),i=0,a=o.length;i<a;i++)(n=o[i])&&e.registerName(t,n)},Ph=function(e,t){for(var r=(t.textContent||"").split("/*!sc*/\n"),n=[],o=0,i=r.length;o<i;o++){var a=r[o].trim();if(a){var s=a.match(Sh);if(s){var c=0|parseInt(s[1],10),u=s[2];0!==c&&(Eh(u,c),Dh(e,u,s[3]),e.getTag().insertRules(c,n)),n.length=0}else n.push(a)}}},Ah=function(){return r.nc},Ch=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=function(e){for(var t=e.childNodes,r=t.length;r>=0;r--){var n=t[r];if(n&&1===n.nodeType&&n.hasAttribute(fh))return n}}(r),i=void 0!==o?o.nextSibling:null;n.setAttribute(fh,"active"),n.setAttribute("data-styled-version","5.3.8");var a=Ah();return a&&n.setAttribute("nonce",a),r.insertBefore(n,i),n},Oh=function(){function e(e){var t=this.element=Ch(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,n=t.length;r<n;r++){var o=t[r];if(o.ownerNode===e)return o}mh(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),Fh=function(){function e(e){var t=this.element=Ch(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var r=document.createTextNode(t),n=this.nodes[e];return this.element.insertBefore(r,n||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),jh=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),Th=hh,_h={isServer:!hh,useCSSOMInjection:!ph},Rh=function(){function e(e,t,r){void 0===e&&(e=sh),void 0===t&&(t={}),this.options=nh({},_h,{},e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&hh&&Th&&(Th=!1,function(e){for(var t=document.querySelectorAll(kh),r=0,n=t.length;r<n;r++){var o=t[r];o&&"active"!==o.getAttribute(fh)&&(Ph(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this))}e.registerId=function(e){return wh(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(nh({},this.options,{},t),this.gs,r&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(r=(t=this.options).isServer,n=t.useCSSOMInjection,o=t.target,e=r?new jh(o):n?new Oh(o):new Fh(o),new vh(e)));var e,t,r,n,o},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(wh(e),this.names.has(e))this.names.get(e).add(t);else{var r=new Set;r.add(t),this.names.set(e,r)}},t.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(wh(e),r)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(wh(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),r=t.length,n="",o=0;o<r;o++){var i=xh(o);if(void 0!==i){var a=e.names.get(i),s=t.getGroup(o);if(a&&s&&a.size){var c=fh+".g"+o+'[id="'+i+'"]',u="";void 0!==a&&a.forEach((function(e){e.length>0&&(u+=e+",")})),n+=""+s+c+'{content:"'+u+'"}/*!sc*/\n'}}}return n}(this)},e}(),Ih=/(a)(d)/gi,Lh=function(e){return String.fromCharCode(e+(e>25?39:97))};function Bh(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=Lh(t%52)+r;return(Lh(t%52)+r).replace(Ih,"$1-$2")}var Mh=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},Nh=function(e){return Mh(5381,e)};function Hh(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(ch(r)&&!lh(r))return!1}return!0}var zh=Nh("5.3.8"),Uh=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&Hh(e),this.componentId=t,this.baseHash=Mh(zh,t),this.baseStyle=r,Rh.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var n=this.componentId,o=[];if(this.baseStyle&&o.push(this.baseStyle.generateAndInjectStyles(e,t,r)),this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(n,this.staticRulesId))o.push(this.staticRulesId);else{var i=ap(this.rules,e,t,r).join(""),a=Bh(Mh(this.baseHash,i)>>>0);if(!t.hasNameForId(n,a)){var s=r(i,"."+a,void 0,n);t.insertRules(n,a,s)}o.push(a),this.staticRulesId=a}else{for(var c=this.rules.length,u=Mh(this.baseHash,r.hash),l="",f=0;f<c;f++){var h=this.rules[f];if("string"==typeof h)l+=h;else if(h){var p=ap(h,e,t,r),d=Array.isArray(p)?p.join(""):p;u=Mh(u,d+f),l+=d}}if(l){var m=Bh(u>>>0);if(!t.hasNameForId(n,m)){var v=r(l,"."+m,void 0,n);t.insertRules(n,m,v)}o.push(m)}}return o.join(" ")},e}(),$h=/^\s*\/\/.*$/gm,qh=[":","[",".","#"];function Vh(e){var t,r,n,o,i=void 0===e?sh:e,a=i.options,s=void 0===a?sh:a,c=i.plugins,u=void 0===c?ah:c,l=new Yf(s),f=[],h=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(r,n,o,i,a,s,c,u,l,f){switch(r){case 1:if(0===l&&64===n.charCodeAt(0))return e(n+";"),"";break;case 2:if(0===u)return n+"/*|*/";break;case 3:switch(u){case 102:case 112:return e(o[0]+n),"";default:return n+(0===f?"/*|*/":"")}case-2:n.split("/*|*/}").forEach(t)}}}((function(e){f.push(e)})),p=function(e,n,i){return 0===n&&-1!==qh.indexOf(i[r.length])||i.match(o)?e:"."+t};function d(e,i,a,s){void 0===s&&(s="&");var c=e.replace($h,""),u=i&&a?a+" "+i+" { "+c+" }":c;return t=s,r=i,n=new RegExp("\\"+r+"\\b","g"),o=new RegExp("(\\"+r+"\\b){2,}"),l(a||!i?"":i,u)}return l.use([].concat(u,[function(e,t,o){2===e&&o.length&&o[0].lastIndexOf(r)>0&&(o[0]=o[0].replace(n,p))},h,function(e){if(-2===e){var t=f;return f=[],t}}])),d.hash=u.length?u.reduce((function(e,t){return t.name||mh(15),Mh(e,t.name)}),5381).toString():"",d}var Gh=Xl().createContext(),Wh=(Gh.Consumer,Xl().createContext()),Kh=(Wh.Consumer,new Rh),Qh=Vh();function Zh(){return(0,Yl.useContext)(Gh)||Kh}function Yh(){return(0,Yl.useContext)(Wh)||Qh}function Xh(e){var t=(0,Yl.useState)(e.stylisPlugins),r=t[0],n=t[1],o=Zh(),i=(0,Yl.useMemo)((function(){var t=o;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),a=(0,Yl.useMemo)((function(){return Vh({options:{prefix:!e.disableVendorPrefixes},plugins:r})}),[e.disableVendorPrefixes,r]);return(0,Yl.useEffect)((function(){Zf()(r,e.stylisPlugins)||n(e.stylisPlugins)}),[e.stylisPlugins]),Xl().createElement(Gh.Provider,{value:i},Xl().createElement(Wh.Provider,{value:a},e.children))}var Jh=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=Qh);var n=r.name+t.hash;e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,"@keyframes"))},this.toString=function(){return mh(12,String(r.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=Qh),this.name+e.hash},e}(),ep=/([A-Z])/,tp=/([A-Z])/g,rp=/^ms-/,np=function(e){return"-"+e.toLowerCase()};function op(e){return ep.test(e)?e.replace(tp,np).replace(rp,"-ms-"):e}var ip=function(e){return null==e||!1===e||""===e};function ap(e,t,r,n){if(Array.isArray(e)){for(var o,i=[],a=0,s=e.length;a<s;a+=1)""!==(o=ap(e[a],t,r,n))&&(Array.isArray(o)?i.push.apply(i,o):i.push(o));return i}return ip(e)?"":lh(e)?"."+e.styledComponentId:ch(e)?"function"!=typeof(c=e)||c.prototype&&c.prototype.isReactComponent||!t?e:ap(e(t),t,r,n):e instanceof Jh?r?(e.inject(r,n),e.getName(n)):e:ih(e)?function e(t,r){var n,o,i=[];for(var a in t)t.hasOwnProperty(a)&&!ip(t[a])&&(Array.isArray(t[a])&&t[a].isCss||ch(t[a])?i.push(op(a)+":",t[a],";"):ih(t[a])?i.push.apply(i,e(t[a],a)):i.push(op(a)+": "+(n=a,(null==(o=t[a])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||n in Xf?String(o).trim():o+"px")+";")));return r?[r+" {"].concat(i,["}"]):i}(e):e.toString();var c}var sp=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function cp(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return ch(e)||ih(e)?sp(ap(oh(ah,[e].concat(r)))):0===r.length&&1===e.length&&"string"==typeof e[0]?e:sp(ap(oh(e,r)))}new Set;var up=function(e,t,r){return void 0===r&&(r=sh),e.theme!==r.theme&&e.theme||t||r.theme},lp=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,fp=/(^-|-$)/g;function hp(e){return e.replace(lp,"-").replace(fp,"")}var pp=function(e){return Bh(Nh(e)>>>0)};function dp(e){return"string"==typeof e&&!0}var mp=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},vp=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function gp(e,t,r){var n=e[r];mp(t)&&mp(n)?yp(n,t):e[r]=t}function yp(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];for(var o=0,i=r;o<i.length;o++){var a=i[o];if(mp(a))for(var s in a)vp(s)&&gp(e,a[s],s)}return e}var bp=Xl().createContext();bp.Consumer;function wp(e){var t=(0,Yl.useContext)(bp),r=(0,Yl.useMemo)((function(){return function(e,t){return e?ch(e)?e(t):Array.isArray(e)||"object"!=typeof e?mh(8):t?nh({},t,{},e):e:mh(14)}(e.theme,t)}),[e.theme,t]);return e.children?Xl().createElement(bp.Provider,{value:r},e.children):null}var xp={};function Ep(e,t,r){var n=lh(e),o=!dp(e),i=t.attrs,a=void 0===i?ah:i,s=t.componentId,c=void 0===s?function(e,t){var r="string"!=typeof e?"sc":hp(e);xp[r]=(xp[r]||0)+1;var n=r+"-"+pp("5.3.8"+r+xp[r]);return t?t+"-"+n:n}(t.displayName,t.parentComponentId):s,u=t.displayName,l=void 0===u?function(e){return dp(e)?"styled."+e:"Styled("+uh(e)+")"}(e):u,f=t.displayName&&t.componentId?hp(t.displayName)+"-"+t.componentId:t.componentId||c,h=n&&e.attrs?Array.prototype.concat(e.attrs,a).filter(Boolean):a,p=t.shouldForwardProp;n&&e.shouldForwardProp&&(p=t.shouldForwardProp?function(r,n,o){return e.shouldForwardProp(r,n,o)&&t.shouldForwardProp(r,n,o)}:e.shouldForwardProp);var d,m=new Uh(r,f,n?e.componentStyle:void 0),v=m.isStatic&&0===a.length,g=function(e,t){return function(e,t,r,n){var o=e.attrs,i=e.componentStyle,a=e.defaultProps,s=e.foldedComponentIds,c=e.shouldForwardProp,u=e.styledComponentId,l=e.target,f=function(e,t,r){void 0===e&&(e=sh);var n=nh({},t,{theme:e}),o={};return r.forEach((function(e){var t,r,i,a=e;for(t in ch(a)&&(a=a(n)),a)n[t]=o[t]="className"===t?(r=o[t],i=a[t],r&&i?r+" "+i:r||i):a[t]})),[n,o]}(up(t,(0,Yl.useContext)(bp),a)||sh,t,o),h=f[0],p=f[1],d=function(e,t,r,n){var o=Zh(),i=Yh();return t?e.generateAndInjectStyles(sh,o,i):e.generateAndInjectStyles(r,o,i)}(i,n,h),m=r,v=p.$as||t.$as||p.as||t.as||l,g=dp(v),y=p!==t?nh({},t,{},p):t,b={};for(var w in y)"$"!==w[0]&&"as"!==w&&("forwardedAs"===w?b.as=y[w]:(c?c(w,th,v):!g||th(w))&&(b[w]=y[w]));return t.style&&p.style!==t.style&&(b.style=nh({},t.style,{},p.style)),b.className=Array.prototype.concat(s,u,d!==u?d:null,t.className,p.className).filter(Boolean).join(" "),b.ref=m,(0,Yl.createElement)(v,b)}(d,e,t,v)};return g.displayName=l,(d=Xl().forwardRef(g)).attrs=h,d.componentStyle=m,d.displayName=l,d.shouldForwardProp=p,d.foldedComponentIds=n?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):ah,d.styledComponentId=f,d.target=n?e.target:e,d.withComponent=function(e){var n=t.componentId,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(t,["componentId"]),i=n&&n+"-"+(dp(e)?e:hp(uh(e)));return Ep(e,nh({},o,{attrs:h,componentId:i}),r)},Object.defineProperty(d,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=n?yp({},e.defaultProps,t):t}}),d.toString=function(){return"."+d.styledComponentId},o&&Ef()(d,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),d}var kp=function(e){return function e(t,r,n){if(void 0===n&&(n=sh),!(0,Kf.isValidElementType)(r))return mh(1,String(r));var o=function(){return t(r,n,cp.apply(void 0,arguments))};return o.withConfig=function(o){return e(t,r,nh({},n,{},o))},o.attrs=function(o){return e(t,r,nh({},n,{attrs:Array.prototype.concat(n.attrs,o).filter(Boolean)}))},o}(Ep,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){kp[e]=kp(e)}));var Sp=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Hh(e),Rh.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,r,n){var o=n(ap(this.rules,t,r,n).join(""),""),i=this.componentId+e;r.insertRules(i,i,o)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,r,n){e>2&&Rh.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},e}();function Dp(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var o=cp.apply(void 0,[e].concat(r)),i="sc-global-"+pp(JSON.stringify(o)),a=new Sp(o,i);function s(e){var t=Zh(),r=Yh(),n=(0,Yl.useContext)(bp),o=(0,Yl.useRef)(t.allocateGSInstance(i)).current;return t.server&&c(o,e,t,n,r),(0,Yl.useLayoutEffect)((function(){if(!t.server)return c(o,e,t,n,r),function(){return a.removeStyles(o,t)}}),[o,e,t,n,r]),null}function c(e,t,r,n,o){if(a.isStatic)a.renderStyles(e,dh,r,o);else{var i=nh({},t,{theme:up(t,n,s.defaultProps)});a.renderStyles(e,i,r,o)}}return Xl().memo(s)}function Pp(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var o=cp.apply(void 0,[e].concat(r)).join(""),i=pp(o);return new Jh(i,o)}!function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var r=Ah();return"<style "+[r&&'nonce="'+r+'"',fh+'="true"','data-styled-version="5.3.8"'].filter(Boolean).join(" ")+">"+t+"</style>"},this.getStyleTags=function(){return e.sealed?mh(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return mh(2);var r=((t={})[fh]="",t["data-styled-version"]="5.3.8",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),n=Ah();return n&&(r.nonce=n),[Xl().createElement("style",nh({},r,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new Rh({isServer:!0}),this.sealed=!1}var t=e.prototype;t.collectStyles=function(e){return this.sealed?mh(2):Xl().createElement(Xh,{sheet:this.instance},e)},t.interleaveWithNodeStream=function(e){return mh(3)}}();const Ap=kp;var Cp=function(e,t){return Cp=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},Cp(e,t)};function Op(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Cp(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var Fp=function(){return Fp=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},Fp.apply(this,arguments)};function jp(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}Object.create;function Tp(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}Object.create;"function"==typeof SuppressedError&&SuppressedError;var _p,Rp,Ip;function Lp(e){return e.type===Rp.literal}function Bp(e){return e.type===Rp.argument}function Mp(e){return e.type===Rp.number}function Np(e){return e.type===Rp.date}function Hp(e){return e.type===Rp.time}function zp(e){return e.type===Rp.select}function Up(e){return e.type===Rp.plural}function $p(e){return e.type===Rp.pound}function qp(e){return e.type===Rp.tag}function Vp(e){return!(!e||"object"!=typeof e||e.type!==Ip.number)}function Gp(e){return!(!e||"object"!=typeof e||e.type!==Ip.dateTime)}!function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(_p||(_p={})),function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"}(Rp||(Rp={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(Ip||(Ip={}));var Wp=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Kp=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function Qp(e){var t={};return e.replace(Kp,(function(e){var r=e.length;switch(e[0]){case"G":t.era=4===r?"long":5===r?"narrow":"short";break;case"y":t.year=2===r?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=4===r?"long":5===r?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),t}var Zp=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var Yp=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Xp=/^(@+)?(\+|#+)?[rs]?$/g,Jp=/(\*)(0+)|(#+)(0+)|(0+)/g,ed=/^(0+)$/;function td(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(Xp,(function(e,r,n){return"string"!=typeof n?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):"+"===n?t.minimumSignificantDigits=r.length:"#"===r[0]?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+("string"==typeof n?n.length:0)),""})),t}function rd(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function nd(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!ed.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function od(e){var t=rd(e);return t||{}}function id(e){for(var t={},r=0,n=e;r<n.length;r++){var o=n[r];switch(o.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=o.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=o.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=Fp(Fp(Fp({},t),{notation:"scientific"}),o.options.reduce((function(e,t){return Fp(Fp({},e),od(t))}),{}));continue;case"engineering":t=Fp(Fp(Fp({},t),{notation:"engineering"}),o.options.reduce((function(e,t){return Fp(Fp({},e),od(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(o.options[0]);continue;case"integer-width":if(o.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(Jp,(function(e,r,n,o,i,a){if(r)t.minimumIntegerDigits=n.length;else{if(o&&i)throw new Error("We currently do not support maximum integer digits");if(a)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(ed.test(o.stem))t.minimumIntegerDigits=o.stem.length;else if(Yp.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(Yp,(function(e,r,n,o,i,a){return"*"===n?t.minimumFractionDigits=r.length:o&&"#"===o[0]?t.maximumFractionDigits=o.length:i&&a?(t.minimumFractionDigits=i.length,t.maximumFractionDigits=i.length+a.length):(t.minimumFractionDigits=r.length,t.maximumFractionDigits=r.length),""}));var i=o.options[0];"w"===i?t=Fp(Fp({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=Fp(Fp({},t),td(i)))}else if(Xp.test(o.stem))t=Fp(Fp({},t),td(o.stem));else{var a=rd(o.stem);a&&(t=Fp(Fp({},t),a));var s=nd(o.stem);s&&(t=Fp(Fp({},t),s))}}return t}var ad,sd={"001":["H","h"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["H","h","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["H","hB","h","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["H","h","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["H","hB","h","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["H","h","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["H","h","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["H","h","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["H","h","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["H","hB","h","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["H","h","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["H","h","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["H","h","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function cd(e){var t=e.hourCycle;if(void 0===t&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r,n=e.language;return"root"!==n&&(r=e.maximize().region),(sd[r||""]||sd[n||""]||sd["".concat(n,"-001")]||sd["001"])[0]}var ud=new RegExp("^".concat(Wp.source,"*")),ld=new RegExp("".concat(Wp.source,"*$"));function fd(e,t){return{start:e,end:t}}var hd=!!String.prototype.startsWith&&"_a".startsWith("a",1),pd=!!String.fromCodePoint,dd=!!Object.fromEntries,md=!!String.prototype.codePointAt,vd=!!String.prototype.trimStart,gd=!!String.prototype.trimEnd,yd=!!Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},bd=!0;try{bd="a"===(null===(ad=Ad("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===ad?void 0:ad[0])}catch(e){bd=!1}var wd,xd=hd?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},Ed=pd?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,n="",o=e.length,i=0;o>i;){if((r=e[i++])>1114111)throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},kd=dd?Object.fromEntries:function(e){for(var t={},r=0,n=e;r<n.length;r++){var o=n[r],i=o[0],a=o[1];t[i]=a}return t},Sd=md?function(e,t){return e.codePointAt(t)}:function(e,t){var r=e.length;if(!(t<0||t>=r)){var n,o=e.charCodeAt(t);return o<55296||o>56319||t+1===r||(n=e.charCodeAt(t+1))<56320||n>57343?o:n-56320+(o-55296<<10)+65536}},Dd=vd?function(e){return e.trimStart()}:function(e){return e.replace(ud,"")},Pd=gd?function(e){return e.trimEnd()}:function(e){return e.replace(ld,"")};function Ad(e,t){return new RegExp(e,t)}if(bd){var Cd=Ad("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");wd=function(e,t){var r;return Cd.lastIndex=t,null!==(r=Cd.exec(e)[1])&&void 0!==r?r:""}}else wd=function(e,t){for(var r=[];;){var n=Sd(e,t);if(void 0===n||jd(n)||Td(n))break;r.push(n),t+=n>=65536?2:1}return Ed.apply(void 0,r)};var Od=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,r){for(var n=[];!this.isEOF();){var o=this.char();if(123===o){if((i=this.parseArgument(e,r)).err)return i;n.push(i.val)}else{if(125===o&&e>0)break;if(35!==o||"plural"!==t&&"selectordinal"!==t){if(60===o&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(_p.UNMATCHED_CLOSING_TAG,fd(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&Fd(this.peek()||0)){if((i=this.parseTag(e,t)).err)return i;n.push(i.val)}else{var i;if((i=this.parseLiteral(e,t)).err)return i;n.push(i.val)}}else{var a=this.clonePosition();this.bump(),n.push({type:Rp.pound,location:fd(a,this.clonePosition())})}}}return{val:n,err:null}},e.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Rp.literal,value:"<".concat(n,"/>"),location:fd(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(e+1,t,!0);if(o.err)return o;var i=o.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Fd(this.char()))return this.error(_p.INVALID_TAG,fd(a,this.clonePosition()));var s=this.clonePosition();return n!==this.parseTagName()?this.error(_p.UNMATCHED_CLOSING_TAG,fd(s,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Rp.tag,value:n,children:i,location:fd(r,this.clonePosition())},err:null}:this.error(_p.INVALID_TAG,fd(a,this.clonePosition())))}return this.error(_p.UNCLOSED_TAG,fd(r,this.clonePosition()))}return this.error(_p.INVALID_TAG,fd(r,this.clonePosition()))},e.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),n="";;){var o=this.tryParseQuote(t);if(o)n+=o;else{var i=this.tryParseUnquoted(e,t);if(i)n+=i;else{var a=this.tryParseLeftAngleBracket();if(!a)break;n+=a}}}var s=fd(r,this.clonePosition());return{val:{type:Rp.literal,value:n,location:s},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(Fd(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(r);this.bump()}return Ed.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&e>0?null:(this.bump(),Ed(r))},e.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(_p.EXPECT_ARGUMENT_CLOSING_BRACE,fd(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(_p.EMPTY_ARGUMENT,fd(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(_p.MALFORMED_ARGUMENT,fd(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(_p.EXPECT_ARGUMENT_CLOSING_BRACE,fd(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Rp.argument,value:n,location:fd(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(_p.EXPECT_ARGUMENT_CLOSING_BRACE,fd(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error(_p.MALFORMED_ARGUMENT,fd(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=wd(this.message,t),n=t+r.length;return this.bumpTo(n),{value:r,location:fd(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,r,n){var o,i=this.clonePosition(),a=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(a){case"":return this.error(_p.EXPECT_ARGUMENT_TYPE,fd(i,s));case"number":case"date":case"time":this.bumpSpace();var c=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();if((g=this.parseSimpleArgStyleIfPossible()).err)return g;if(0===(p=Pd(g.val)).length)return this.error(_p.EXPECT_ARGUMENT_STYLE,fd(this.clonePosition(),this.clonePosition()));c={style:p,styleLocation:fd(u,this.clonePosition())}}if((y=this.tryParseArgumentClose(n)).err)return y;var l=fd(n,this.clonePosition());if(c&&xd(null==c?void 0:c.style,"::",0)){var f=Dd(c.style.slice(2));if("number"===a)return(g=this.parseNumberSkeletonFromString(f,c.styleLocation)).err?g:{val:{type:Rp.number,value:r,location:l,style:g.val},err:null};if(0===f.length)return this.error(_p.EXPECT_DATE_TIME_SKELETON,l);var h=f;this.locale&&(h=function(e,t){for(var r="",n=0;n<e.length;n++){var o=e.charAt(n);if("j"===o){for(var i=0;n+1<e.length&&e.charAt(n+1)===o;)i++,n++;var a=1+(1&i),s=i<2?1:3+(i>>1),c=cd(t);for("H"!=c&&"k"!=c||(s=0);s-- >0;)r+="a";for(;a-- >0;)r=c+r}else r+="J"===o?"H":o}return r}(f,this.locale));var p={type:Ip.dateTime,pattern:h,location:c.styleLocation,parsedOptions:this.shouldParseSkeletons?Qp(h):{}};return{val:{type:"date"===a?Rp.date:Rp.time,value:r,location:l,style:p},err:null}}return{val:{type:"number"===a?Rp.number:"date"===a?Rp.date:Rp.time,value:r,location:l,style:null!==(o=null==c?void 0:c.style)&&void 0!==o?o:null},err:null};case"plural":case"selectordinal":case"select":var d=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(_p.EXPECT_SELECT_ARGUMENT_OPTIONS,fd(d,Fp({},d)));this.bumpSpace();var m=this.parseIdentifierIfPossible(),v=0;if("select"!==a&&"offset"===m.value){if(!this.bumpIf(":"))return this.error(_p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,fd(this.clonePosition(),this.clonePosition()));var g;if(this.bumpSpace(),(g=this.tryParseDecimalInteger(_p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,_p.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return g;this.bumpSpace(),m=this.parseIdentifierIfPossible(),v=g.val}var y,b=this.tryParsePluralOrSelectOptions(e,a,t,m);if(b.err)return b;if((y=this.tryParseArgumentClose(n)).err)return y;var w=fd(n,this.clonePosition());return"select"===a?{val:{type:Rp.select,value:r,options:kd(b.val),location:w},err:null}:{val:{type:Rp.plural,value:r,options:kd(b.val),offset:v,pluralType:"plural"===a?"cardinal":"ordinal",location:w},err:null};default:return this.error(_p.INVALID_ARGUMENT_TYPE,fd(i,s))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(_p.EXPECT_ARGUMENT_CLOSING_BRACE,fd(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();){switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(_p.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,fd(r,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=e.split(Zp).filter((function(e){return e.length>0})),r=[],n=0,o=t;n<o.length;n++){var i=o[n].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var a=i[0],s=i.slice(1),c=0,u=s;c<u.length;c++)if(0===u[c].length)throw new Error("Invalid number skeleton");r.push({stem:a,options:s})}return r}(e)}catch(e){return this.error(_p.INVALID_NUMBER_SKELETON,t)}return{val:{type:Ip.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?id(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,r,n){for(var o,i=!1,a=[],s=new Set,c=n.value,u=n.location;;){if(0===c.length){var l=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var f=this.tryParseDecimalInteger(_p.EXPECT_PLURAL_ARGUMENT_SELECTOR,_p.INVALID_PLURAL_ARGUMENT_SELECTOR);if(f.err)return f;u=fd(l,this.clonePosition()),c=this.message.slice(l.offset,this.offset())}if(s.has(c))return this.error("select"===t?_p.DUPLICATE_SELECT_ARGUMENT_SELECTOR:_p.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);"other"===c&&(i=!0),this.bumpSpace();var h=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?_p.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:_p.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,fd(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(e+1,t,r);if(p.err)return p;var d=this.tryParseArgumentClose(h);if(d.err)return d;a.push([c,{value:p.val,location:fd(h,this.clonePosition())}]),s.add(c),this.bumpSpace(),c=(o=this.parseIdentifierIfPossible()).value,u=o.location}return 0===a.length?this.error("select"===t?_p.EXPECT_SELECT_ARGUMENT_SELECTOR:_p.EXPECT_PLURAL_ARGUMENT_SELECTOR,fd(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(_p.MISSING_OTHER_CLAUSE,fd(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var o=!1,i=0;!this.isEOF();){var a=this.char();if(!(a>=48&&a<=57))break;o=!0,i=10*i+(a-48),this.bump()}var s=fd(n,this.clonePosition());return o?yd(i*=r)?{val:i,err:null}:this.error(t,s):this.error(e,s)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Sd(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(xd(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(e){var t=this.offset(),r=this.message.indexOf(e,t);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&jd(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),r=this.message.charCodeAt(t+(e>=65536?2:1));return null!=r?r:null},e}();function Fd(e){return e>=97&&e<=122||e>=65&&e<=90}function jd(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function Td(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function _d(e){e.forEach((function(e){if(delete e.location,zp(e)||Up(e))for(var t in e.options)delete e.options[t].location,_d(e.options[t].value);else Mp(e)&&Vp(e.style)||(Np(e)||Hp(e))&&Gp(e.style)?delete e.style.location:qp(e)&&_d(e.children)}))}function Rd(e,t){void 0===t&&(t={}),t=Fp({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new Od(e,t).parse();if(r.err){var n=SyntaxError(_p[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return(null==t?void 0:t.captureLocation)||_d(r.val),r.val}function Id(e,t){var r=t&&t.cache?t.cache:$d,n=t&&t.serializer?t.serializer:Hd;return(t&&t.strategy?t.strategy:Nd)(e,{cache:r,serializer:n})}function Ld(e,t,r,n){var o=function(e){return null==e||"number"==typeof e||"boolean"==typeof e}(n)?n:r(n),i=t.get(o);return void 0===i&&(i=e.call(this,n),t.set(o,i)),i}function Bd(e,t,r){var n=Array.prototype.slice.call(arguments,3),o=r(n),i=t.get(o);return void 0===i&&(i=e.apply(this,n),t.set(o,i)),i}function Md(e,t,r,n,o){return r.bind(t,e,n,o)}function Nd(e,t){return Md(e,this,1===e.length?Ld:Bd,t.cache.create(),t.serializer)}var Hd=function(){return JSON.stringify(arguments)};function zd(){this.cache=Object.create(null)}zd.prototype.get=function(e){return this.cache[e]},zd.prototype.set=function(e,t){this.cache[e]=t};var Ud,$d={create:function(){return new zd}},qd={variadic:function(e,t){return Md(e,this,Bd,t.cache.create(),t.serializer)},monadic:function(e,t){return Md(e,this,Ld,t.cache.create(),t.serializer)}};!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}(Ud||(Ud={}));var Vd,Gd=function(e){function t(t,r,n){var o=e.call(this,t)||this;return o.code=r,o.originalMessage=n,o}return Op(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Wd=function(e){function t(t,r,n,o){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(r,'". Options are "').concat(Object.keys(n).join('", "'),'"'),Ud.INVALID_VALUE,o)||this}return Op(t,e),t}(Gd),Kd=function(e){function t(t,r,n){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(r),Ud.INVALID_VALUE,n)||this}return Op(t,e),t}(Gd),Qd=function(e){function t(t,r){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(r,'"'),Ud.MISSING_VALUE,r)||this}return Op(t,e),t}(Gd);function Zd(e){return"function"==typeof e}function Yd(e,t,r,n,o,i,a){if(1===e.length&&Lp(e[0]))return[{type:Vd.literal,value:e[0].value}];for(var s=[],c=0,u=e;c<u.length;c++){var l=u[c];if(Lp(l))s.push({type:Vd.literal,value:l.value});else if($p(l))"number"==typeof i&&s.push({type:Vd.literal,value:r.getNumberFormat(t).format(i)});else{var f=l.value;if(!o||!(f in o))throw new Qd(f,a);var h=o[f];if(Bp(l))h&&"string"!=typeof h&&"number"!=typeof h||(h="string"==typeof h||"number"==typeof h?String(h):""),s.push({type:"string"==typeof h?Vd.literal:Vd.object,value:h});else if(Np(l)){var p="string"==typeof l.style?n.date[l.style]:Gp(l.style)?l.style.parsedOptions:void 0;s.push({type:Vd.literal,value:r.getDateTimeFormat(t,p).format(h)})}else if(Hp(l)){p="string"==typeof l.style?n.time[l.style]:Gp(l.style)?l.style.parsedOptions:n.time.medium;s.push({type:Vd.literal,value:r.getDateTimeFormat(t,p).format(h)})}else if(Mp(l)){(p="string"==typeof l.style?n.number[l.style]:Vp(l.style)?l.style.parsedOptions:void 0)&&p.scale&&(h*=p.scale||1),s.push({type:Vd.literal,value:r.getNumberFormat(t,p).format(h)})}else{if(qp(l)){var d=l.children,m=l.value,v=o[m];if(!Zd(v))throw new Kd(m,"function",a);var g=v(Yd(d,t,r,n,o,i).map((function(e){return e.value})));Array.isArray(g)||(g=[g]),s.push.apply(s,g.map((function(e){return{type:"string"==typeof e?Vd.literal:Vd.object,value:e}})))}if(zp(l)){if(!(y=l.options[h]||l.options.other))throw new Wd(l.value,h,Object.keys(l.options),a);s.push.apply(s,Yd(y.value,t,r,n,o))}else if(Up(l)){var y;if(!(y=l.options["=".concat(h)])){if(!Intl.PluralRules)throw new Gd('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Ud.MISSING_INTL_API,a);var b=r.getPluralRules(t,{type:l.pluralType}).select(h-(l.offset||0));y=l.options[b]||l.options.other}if(!y)throw new Wd(l.value,h,Object.keys(l.options),a);s.push.apply(s,Yd(y.value,t,r,n,o,h-(l.offset||0)))}else;}}}return function(e){return e.length<2?e:e.reduce((function(e,t){var r=e[e.length-1];return r&&r.type===Vd.literal&&t.type===Vd.literal?r.value+=t.value:e.push(t),e}),[])}(s)}function Xd(e,t){return t?Object.keys(e).reduce((function(r,n){var o,i;return r[n]=(o=e[n],(i=t[n])?Fp(Fp(Fp({},o||{}),i||{}),Object.keys(o).reduce((function(e,t){return e[t]=Fp(Fp({},o[t]),i[t]||{}),e}),{})):o),r}),Fp({},e)):e}function Jd(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(Vd||(Vd={}));var em,tm=function(){function e(t,r,n,o){var i=this;if(void 0===r&&(r=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=i.formatToParts(e);if(1===t.length)return t[0].value;var r=t.reduce((function(e,t){return e.length&&t.type===Vd.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e}),[]);return r.length<=1?r[0]||"":r},this.formatToParts=function(e){return Yd(i.ast,i.locales,i.formatters,i.formats,e,void 0,i.message)},this.resolvedOptions=function(){var e;return{locale:(null===(e=i.resolvedLocale)||void 0===e?void 0:e.toString())||Intl.NumberFormat.supportedLocalesOf(i.locales)[0]}},this.getAst=function(){return i.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var a=o||{},s=(a.formatters,jp(a,["formatters"]));this.ast=e.__parse(t,Fp(Fp({},s),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Xd(e.formats,n),this.formatters=o&&o.formatters||function(e){return void 0===e&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Id((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,Tp([void 0],t,!1)))}),{cache:Jd(e.number),strategy:qd.variadic}),getDateTimeFormat:Id((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,Tp([void 0],t,!1)))}),{cache:Jd(e.dateTime),strategy:qd.variadic}),getPluralRules:Id((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,Tp([void 0],t,!1)))}),{cache:Jd(e.pluralRules),strategy:qd.variadic})}}(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(e){if(void 0!==Intl.Locale){var t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])}},e.__parse=Rd,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();!function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"}(em||(em={}));var rm=function(e){function t(r,n,o){var i=this,a=o?o instanceof Error?o:new Error(String(o)):void 0;return(i=e.call(this,"[@formatjs/intl Error ".concat(r,"] ").concat(n,"\n").concat(a?"\n".concat(a.message,"\n").concat(a.stack):""))||this).code=r,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(i,t),i}return Op(t,e),t}(Error),nm=function(e){function t(t,r){return e.call(this,em.UNSUPPORTED_FORMATTER,t,r)||this}return Op(t,e),t}(rm),om=function(e){function t(t,r){return e.call(this,em.INVALID_CONFIG,t,r)||this}return Op(t,e),t}(rm),im=function(e){function t(t,r){return e.call(this,em.MISSING_DATA,t,r)||this}return Op(t,e),t}(rm),am=function(e){function t(t,r,n){var o=e.call(this,em.FORMAT_ERROR,"".concat(t,"\nLocale: ").concat(r,"\n"),n)||this;return o.locale=r,o}return Op(t,e),t}(rm),sm=function(e){function t(t,r,n,o){var i=e.call(this,"".concat(t,"\nMessageID: ").concat(null==n?void 0:n.id,"\nDefault Message: ").concat(null==n?void 0:n.defaultMessage,"\nDescription: ").concat(null==n?void 0:n.description,"\n"),r,o)||this;return i.descriptor=n,i.locale=r,i}return Op(t,e),t}(am),cm=function(e){function t(t,r){var n=e.call(this,em.MISSING_TRANSLATION,'Missing message: "'.concat(t.id,'" for locale "').concat(r,'", using ').concat(t.defaultMessage?"default message (".concat("string"==typeof t.defaultMessage?t.defaultMessage:t.defaultMessage.map((function(e){var t;return null!==(t=e.value)&&void 0!==t?t:JSON.stringify(e)})).join(),")"):"id"," as fallback."))||this;return n.descriptor=t,n}return Op(t,e),t}(rm);function um(e,t,r){return void 0===r&&(r={}),t.reduce((function(t,n){return n in e?t[n]=e[n]:n in r&&(t[n]=r[n]),t}),{})}var lm={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:function(e){0},onWarn:function(e){0}};function fm(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function hm(e,t,r,n){var o,i=e&&e[t];if(i&&(o=i[r]),o)return o;n(new nm("No ".concat(t," format named: ").concat(r)))}function pm(e,t,r){if(void 0===r&&(r=Error),!e)throw new r(t)}function dm(e,t){return Object.keys(e).reduce((function(r,n){return r[n]=Fp({timeZone:t},e[n]),r}),{})}function mm(e,t){return Object.keys(Fp(Fp({},e),t)).reduce((function(r,n){return r[n]=Fp(Fp({},e[n]||{}),t[n]||{}),r}),{})}function vm(e,t){if(!t)return e;var r=tm.formats;return Fp(Fp(Fp({},r),e),{date:mm(dm(r.date,t),dm(e.date||{},t)),time:mm(dm(r.time,t),dm(e.time||{},t))})}var gm=function(e,t,r,n,o){var i=e.locale,a=e.formats,s=e.messages,c=e.defaultLocale,u=e.defaultFormats,l=e.fallbackOnEmptyString,f=e.onError,h=e.timeZone,p=e.defaultRichTextElements;void 0===r&&(r={id:""});var d=r.id,m=r.defaultMessage;pm(!!d,"[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var v=String(d),g=s&&Object.prototype.hasOwnProperty.call(s,v)&&s[v];if(Array.isArray(g)&&1===g.length&&g[0].type===Rp.literal)return g[0].value;if(!n&&g&&"string"==typeof g&&!p)return g.replace(/'\{(.*?)\}'/gi,"{$1}");if(n=Fp(Fp({},p),n||{}),a=vm(a,h),u=vm(u,h),!g){if(!1===l&&""===g)return g;if((!m||i&&i.toLowerCase()!==c.toLowerCase())&&f(new cm(r,i)),m)try{return t.getMessageFormat(m,c,u,o).format(n)}catch(e){return f(new sm('Error formatting default message for: "'.concat(v,'", rendering default message verbatim'),i,r,e)),"string"==typeof m?m:v}return v}try{return t.getMessageFormat(g,i,a,Fp({formatters:t},o||{})).format(n)}catch(e){f(new sm('Error formatting message: "'.concat(v,'", using ').concat(m?"default message":"id"," as fallback."),i,r,e))}if(m)try{return t.getMessageFormat(m,c,u,o).format(n)}catch(e){f(new sm('Error formatting the default message for: "'.concat(v,'", rendering message verbatim'),i,r,e))}return"string"==typeof g?g:"string"==typeof m?m:v},ym=["style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem"];function bm(e,t,r){var n=e.locale,o=e.formats,i=e.onError;void 0===r&&(r={});var a=r.format,s=a&&hm(o,"number",a,i)||{};return t(n,um(r,ym,s))}function wm(e,t,r,n){void 0===n&&(n={});try{return bm(e,t,n).format(r)}catch(t){e.onError(new am("Error formatting number.",e.locale,t))}return String(r)}function xm(e,t,r,n){void 0===n&&(n={});try{return bm(e,t,n).formatToParts(r)}catch(t){e.onError(new am("Error formatting number.",e.locale,t))}return[]}var Em=["numeric","style"];function km(e,t,r,n,o){void 0===o&&(o={}),n||(n="second"),Intl.RelativeTimeFormat||e.onError(new Gd('Intl.RelativeTimeFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-relativetimeformat"\n',Ud.MISSING_INTL_API));try{return function(e,t,r){var n=e.locale,o=e.formats,i=e.onError;void 0===r&&(r={});var a=r.format,s=!!a&&hm(o,"relative",a,i)||{};return t(n,um(r,Em,s))}(e,t,o).format(r,n)}catch(t){e.onError(new am("Error formatting relative time.",e.locale,t))}return String(r)}var Sm=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function Dm(e,t,r,n){var o=e.locale,i=e.formats,a=e.onError,s=e.timeZone;void 0===n&&(n={});var c=n.format,u=Fp(Fp({},s&&{timeZone:s}),c&&hm(i,t,c,a)),l=um(n,Sm,u);return"time"!==t||l.hour||l.minute||l.second||l.timeStyle||l.dateStyle||(l=Fp(Fp({},l),{hour:"numeric",minute:"numeric"})),r(o,l)}function Pm(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=r[0],i=r[1],a=void 0===i?{}:i,s="string"==typeof o?new Date(o||0):o;try{return Dm(e,"date",t,a).format(s)}catch(t){e.onError(new am("Error formatting date.",e.locale,t))}return String(s)}function Am(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=r[0],i=r[1],a=void 0===i?{}:i,s="string"==typeof o?new Date(o||0):o;try{return Dm(e,"time",t,a).format(s)}catch(t){e.onError(new am("Error formatting time.",e.locale,t))}return String(s)}function Cm(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=r[0],i=r[1],a=r[2],s=void 0===a?{}:a,c=e.timeZone,u=e.locale,l=e.onError,f=um(s,Sm,c?{timeZone:c}:{});try{return t(u,f).formatRange(o,i)}catch(t){l(new am("Error formatting date time range.",e.locale,t))}return String(o)}function Om(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=r[0],i=r[1],a=void 0===i?{}:i,s="string"==typeof o?new Date(o||0):o;try{return Dm(e,"date",t,a).formatToParts(s)}catch(t){e.onError(new am("Error formatting date.",e.locale,t))}return[]}function Fm(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=r[0],i=r[1],a=void 0===i?{}:i,s="string"==typeof o?new Date(o||0):o;try{return Dm(e,"time",t,a).formatToParts(s)}catch(t){e.onError(new am("Error formatting time.",e.locale,t))}return[]}var jm=["type"];function Tm(e,t,r,n){var o=e.locale,i=e.onError;void 0===n&&(n={}),Intl.PluralRules||i(new Gd('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Ud.MISSING_INTL_API));var a=um(n,jm);try{return t(o,a).select(r)}catch(e){i(new am("Error formatting plural.",o,e))}return"other"}var _m=["type","style"],Rm=Date.now();function Im(e,t,r,n){void 0===n&&(n={});var o=Lm(e,t,r,n).reduce((function(e,t){var r=t.value;return"string"!=typeof r?e.push(r):"string"==typeof e[e.length-1]?e[e.length-1]+=r:e.push(r),e}),[]);return 1===o.length?o[0]:0===o.length?"":o}function Lm(e,t,r,n){var o=e.locale,i=e.onError;void 0===n&&(n={}),Intl.ListFormat||i(new Gd('Intl.ListFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-listformat"\n',Ud.MISSING_INTL_API));var a=um(n,_m);try{var s={},c=r.map((function(e,t){if("object"==typeof e){var r=function(e){return"".concat(Rm,"_").concat(e,"_").concat(Rm)}(t);return s[r]=e,r}return String(e)}));return t(o,a).formatToParts(c).map((function(e){return"literal"===e.type?e:Fp(Fp({},e),{value:s[e.value]||e.value})}))}catch(e){i(new am("Error formatting list.",o,e))}return r}var Bm=["style","type","fallback","languageDisplay"];function Mm(e,t,r,n){var o=e.locale,i=e.onError;Intl.DisplayNames||i(new Gd('Intl.DisplayNames is not available in this environment.\nTry polyfilling it using "@formatjs/intl-displaynames"\n',Ud.MISSING_INTL_API));var a=um(n,Bm);try{return t(o,a).of(r)}catch(e){i(new am("Error formatting display name.",o,e))}}function Nm(e){e.onWarn&&e.defaultRichTextElements&&function(e){return"string"==typeof(e?e[Object.keys(e)[0]]:void 0)}(e.messages||{})&&e.onWarn('[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled. \nPlease consider using "@formatjs/cli" to pre-compile your messages for performance.\nFor more details see https://formatjs.io/docs/getting-started/message-distribution')}function Hm(e,t){var r=function(e){void 0===e&&(e={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}});var t=Intl.RelativeTimeFormat,r=Intl.ListFormat,n=Intl.DisplayNames,o=Id((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,Tp([void 0],t,!1)))}),{cache:fm(e.dateTime),strategy:qd.variadic}),i=Id((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,Tp([void 0],t,!1)))}),{cache:fm(e.number),strategy:qd.variadic}),a=Id((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,Tp([void 0],t,!1)))}),{cache:fm(e.pluralRules),strategy:qd.variadic});return{getDateTimeFormat:o,getNumberFormat:i,getMessageFormat:Id((function(e,t,r,n){return new tm(e,t,r,Fp({formatters:{getNumberFormat:i,getDateTimeFormat:o,getPluralRules:a}},n||{}))}),{cache:fm(e.message),strategy:qd.variadic}),getRelativeTimeFormat:Id((function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new(t.bind.apply(t,Tp([void 0],e,!1)))}),{cache:fm(e.relativeTime),strategy:qd.variadic}),getPluralRules:a,getListFormat:Id((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(r.bind.apply(r,Tp([void 0],e,!1)))}),{cache:fm(e.list),strategy:qd.variadic}),getDisplayNames:Id((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(n.bind.apply(n,Tp([void 0],e,!1)))}),{cache:fm(e.displayNames),strategy:qd.variadic})}}(t),n=Fp(Fp({},lm),e),o=n.locale,i=n.defaultLocale,a=n.onError;return o?!Intl.NumberFormat.supportedLocalesOf(o).length&&a?a(new im('Missing locale data for locale: "'.concat(o,'" in Intl.NumberFormat. Using default locale: "').concat(i,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(o).length&&a&&a(new im('Missing locale data for locale: "'.concat(o,'" in Intl.DateTimeFormat. Using default locale: "').concat(i,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):(a&&a(new om('"locale" was not configured, using "'.concat(i,'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))),n.locale=n.defaultLocale||"en"),Nm(n),Fp(Fp({},n),{formatters:r,formatNumber:wm.bind(null,n,r.getNumberFormat),formatNumberToParts:xm.bind(null,n,r.getNumberFormat),formatRelativeTime:km.bind(null,n,r.getRelativeTimeFormat),formatDate:Pm.bind(null,n,r.getDateTimeFormat),formatDateToParts:Om.bind(null,n,r.getDateTimeFormat),formatTime:Am.bind(null,n,r.getDateTimeFormat),formatDateTimeRange:Cm.bind(null,n,r.getDateTimeFormat),formatTimeToParts:Fm.bind(null,n,r.getDateTimeFormat),formatPlural:Tm.bind(null,n,r.getPluralRules),formatMessage:gm.bind(null,n,r),$t:gm.bind(null,n,r),formatList:Im.bind(null,n,r.getListFormat),formatListToParts:Lm.bind(null,n,r.getListFormat),formatDisplayName:Mm.bind(null,n,r.getDisplayNames)})}function zm(e){pm(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var Um=Fp(Fp({},lm),{textComponent:Yl.Fragment});var $m="undefined"==typeof window||window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?Yl.createContext(null):window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=Yl.createContext(null)),qm=($m.Consumer,$m.Provider),Vm=$m;function Gm(e){return{locale:e.locale,timeZone:e.timeZone,fallbackOnEmptyString:e.fallbackOnEmptyString,formats:e.formats,textComponent:e.textComponent,messages:e.messages,defaultLocale:e.defaultLocale,defaultFormats:e.defaultFormats,onError:e.onError,onWarn:e.onWarn,wrapRichTextChunksInFragment:e.wrapRichTextChunksInFragment,defaultRichTextElements:e.defaultRichTextElements}}function Wm(e){return e?Object.keys(e).reduce((function(t,r){var n,o=e[r];return t[r]=Zd(o)?(n=o,function(e){return n(Yl.Children.toArray(e))}):o,t}),{}):e}var Km=function(e,t,r,n){for(var o=[],i=4;i<arguments.length;i++)o[i-4]=arguments[i];var a=Wm(n),s=gm.apply(void 0,Tp([e,t,r,a],o,!1));return Array.isArray(s)?Yl.Children.toArray(s):s},Qm=function(e,t){var r=e.defaultRichTextElements,n=jp(e,["defaultRichTextElements"]),o=Wm(r),i=Hm(Fp(Fp(Fp({},Um),n),{defaultRichTextElements:o}),t),a={locale:i.locale,timeZone:i.timeZone,fallbackOnEmptyString:i.fallbackOnEmptyString,formats:i.formats,defaultLocale:i.defaultLocale,defaultFormats:i.defaultFormats,messages:i.messages,onError:i.onError,defaultRichTextElements:o};return Fp(Fp({},i),{formatMessage:Km.bind(null,a,i.formatters),$t:Km.bind(null,a,i.formatters)})};!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.cache={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}},t.state={cache:t.cache,intl:Qm(Gm(t.props),t.cache),prevConfig:Gm(t.props)},t}Op(t,e),t.getDerivedStateFromProps=function(e,t){var r=t.prevConfig,n=t.cache,o=Gm(e);return function(e,t){if(e===t)return!0;if(!e||!t)return!1;var r=Object.keys(e),n=Object.keys(t),o=r.length;if(n.length!==o)return!1;for(var i=0;i<o;i++){var a=r[i];if(e[a]!==t[a]||!Object.prototype.hasOwnProperty.call(t,a))return!1}return!0}(r,o)?null:{intl:Qm(o,n),prevConfig:o}},t.prototype.render=function(){return zm(this.state.intl),Yl.createElement(qm,{value:this.state.intl},this.props.children)},t.displayName="IntlProvider",t.defaultProps=Um}(Yl.PureComponent);function Zm(){var e=Yl.useContext(Vm);return zm(e),e}var Ym,Xm;!function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"}(Ym||(Ym={})),function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"}(Xm||(Xm={}));var Jm=function(e){var t=Zm(),r=e.value,n=e.children,o=jp(e,["value","children"]);return n(t.formatNumberToParts(r,o))};Jm.displayName="FormattedNumberParts";function ev(e){var t=function(t){var r=Zm(),n=t.value,o=t.children,i=jp(t,["value","children"]),a="string"==typeof n?new Date(n||0):n;return o("formatDate"===e?r.formatDateToParts(a,i):r.formatTimeToParts(a,i))};return t.displayName=Xm[e],t}function tv(e){var t=function(t){var r=Zm(),n=t.value,o=t.children,i=jp(t,["value","children"]),a=r[e](n,i);if("function"==typeof o)return o(a);var s=r.textComponent||Yl.Fragment;return Yl.createElement(s,null,a)};return t.displayName=Ym[e],t}function rv(e){return e}function nv(e){return e}Jm.displayName="FormattedNumberParts";tv("formatDate"),tv("formatTime"),tv("formatNumber"),tv("formatList"),tv("formatDisplayName"),ev("formatDate"),ev("formatTime");var ov=r(6851),iv=r.n(ov),av=r(1221),sv=r.n(av);const cv=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g,uv=Object.hasOwnProperty;class lv{constructor(){this.occurrences,this.reset()}slug(e,t){const r=this;let n=function(e,t){if("string"!=typeof e)return"";t||(e=e.toLowerCase());return e.replace(cv,"").replace(/ /g,"-")}(e,!0===t);const o=n;for(;uv.call(r.occurrences,n);)r.occurrences[o]++,n=o+"-"+r.occurrences[o];return r.occurrences[n]=0,n}reset(){this.occurrences=Object.create(null)}}function fv(e){return new RegExp("^("+e+")$","i")}const hv=new lv;const pv="object"==typeof self?self:globalThis,dv=e=>((e,t)=>{const r=(t,r)=>(e.set(r,t),t),n=o=>{if(e.has(o))return e.get(o);const[i,a]=t[o];switch(i){case 0:case-1:return r(a,o);case 1:{const e=r([],o);for(const t of a)e.push(n(t));return e}case 2:{const e=r({},o);for(const[t,r]of a)e[n(t)]=n(r);return e}case 3:return r(new Date(a),o);case 4:{const{source:e,flags:t}=a;return r(new RegExp(e,t),o)}case 5:{const e=r(new Map,o);for(const[t,r]of a)e.set(n(t),n(r));return e}case 6:{const e=r(new Set,o);for(const t of a)e.add(n(t));return e}case 7:{const{name:e,message:t}=a;return r(new pv[e](t),o)}case 8:return r(BigInt(a),o);case"BigInt":return r(Object(BigInt(a)),o)}return r(new pv[i](a),o)};return n})(new Map,e)(0),mv="",{toString:vv}={},{keys:gv}=Object,yv=e=>{const t=typeof e;if("object"!==t||!e)return[0,t];const r=vv.call(e).slice(8,-1);switch(r){case"Array":return[1,mv];case"Object":return[2,mv];case"Date":return[3,mv];case"RegExp":return[4,mv];case"Map":return[5,mv];case"Set":return[6,mv]}return r.includes("Array")?[1,r]:r.includes("Error")?[7,r]:[2,r]},bv=([e,t])=>0===e&&("function"===t||"symbol"===t),wv=(e,{json:t,lossy:r}={})=>{const n=[];return((e,t,r,n)=>{const o=(e,t)=>{const o=n.push(e)-1;return r.set(t,o),o},i=n=>{if(r.has(n))return r.get(n);let[a,s]=yv(n);switch(a){case 0:{let t=n;switch(s){case"bigint":a=8,t=n.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);t=null;break;case"undefined":return o([-1],n)}return o([a,t],n)}case 1:{if(s)return o([s,[...n]],n);const e=[],t=o([a,e],n);for(const t of n)e.push(i(t));return t}case 2:{if(s)switch(s){case"BigInt":return o([s,n.toString()],n);case"Boolean":case"Number":case"String":return o([s,n.valueOf()],n)}if(t&&"toJSON"in n)return i(n.toJSON());const r=[],c=o([a,r],n);for(const t of gv(n))!e&&bv(yv(n[t]))||r.push([i(t),i(n[t])]);return c}case 3:return o([a,n.toISOString()],n);case 4:{const{source:e,flags:t}=n;return o([a,{source:e,flags:t}],n)}case 5:{const t=[],r=o([a,t],n);for(const[r,o]of n)(e||!bv(yv(r))&&!bv(yv(o)))&&t.push([i(r),i(o)]);return r}case 6:{const t=[],r=o([a,t],n);for(const r of n)!e&&bv(yv(r))||t.push(i(r));return r}}const{message:c}=n;return o([a,{name:s,message:c}],n)};return i})(!(t||r),!!t,new Map,n)(e),n},xv="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?dv(wv(e,t)):structuredClone(e):(e,t)=>dv(wv(e,t));function Ev(e,t){const{ordered:r=!1,tight:n=!1,prefix:o}=t,i={type:"list",ordered:r,spread:!1,children:[]};let a=Number.POSITIVE_INFINITY,s=-1;for(;++s<e.length;)e[s].depth<a&&(a=e[s].depth);for(s=-1;++s<e.length;)e[s].depth-=a-1;for(s=-1;++s<e.length;)kv(e[s],i,{ordered:r,tight:n,prefix:o});return i}function kv(e,t,r){let n=-1;const o=t.children[t.children.length-1];if("list"===t.type)if(1===e.depth)t.children.push({type:"listItem",spread:!1,children:[{type:"paragraph",children:[{type:"link",title:null,url:"#"+(r.prefix||"")+e.id,children:Sv(e.children)}]}]});else if(t.children.length>0){kv(e,t.children[t.children.length-1],r)}else{const n={type:"listItem",spread:!1,children:[]};t.children.push(n),kv(e,n,r)}else if(o&&"list"===o.type)e.depth--,kv(e,o,r);else{const n={type:"list",ordered:r.ordered,spread:!1,children:[]};t.children.push(n),e.depth--,kv(e,n,r)}if("list"!==t.type||r.tight)t.spread=!r.tight;else for(t.spread=!1;++n<t.children.length;)if(t.children[n].children.length>1){t.spread=!0;break}}function Sv(e){const t=[];let r=-1;for(;++r<e.length;){const n=Dv(e[r]);Array.isArray(n)?t.push(...n):t.push(n)}return t}function Dv(e){if("footnoteReference"===e.type)return[];if("link"===e.type||"linkReference"===e.type)return Sv(e.children);if("children"in e){const{children:t,position:r,...n}=e;return Object.assign(xv(n),{children:Sv(e.children)})}const{position:t,...r}=e;return xv(r)}function Pv(e,t){const r=t||{},n=r.heading?fv(r.heading):void 0,o=function(e,t,r){const n="children"in e?e.children.length:0,o=r.skip?fv(r.skip):void 0,i=jn(r.parents||function(t){return t===e}),a=[];let s,c,u;return hv.reset(),Hn(e,"heading",(function(e,n,l){const f=kt(e,{includeImageAlt:!1}),h=e.data&&e.data.hProperties&&e.data.hProperties.id,p=hv.slug(h||f);if(i(l)){if(void 0!==n&&t&&!s&&t.test(f))return s=n+1,void(u=e);void 0!==n&&u&&!c&&e.depth<=u.depth&&(c=n),!c&&t||r.maxDepth&&!(e.depth<=r.maxDepth)||o&&o.test(f)||a.push({depth:e.depth,children:e.children,id:p})}})),{index:void 0===s?-1:s,endIndex:void 0===s?-1:c||n,map:a}}(e,n,r);return{index:n?o.index:void 0,endIndex:n?o.endIndex:void 0,map:o.map.length>0?Ev(o.map,r):void 0}}function Av(e,t){const r=[{type:"text",value:"↩"}];return t>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),r}function Cv(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}const Ov={}.hasOwnProperty,Fv={};function jv(e,t){e.position&&(t.position=function(e){const t=Ji(e),r=Xi(e);if(t&&r)return{start:t,end:r}}(e))}function Tv(e,t){let r=t;if(e&&e.data){const t=e.data.hName,n=e.data.hChildren,o=e.data.hProperties;if("string"==typeof t)if("element"===r.type)r.tagName=t;else{r={type:"element",tagName:t,properties:{},children:"children"in r?r.children:[r]}}"element"===r.type&&o&&Object.assign(r.properties,xv(o)),"children"in r&&r.children&&null!=n&&(r.children=n)}return r}function _v(e,t){const r=t.data||{},n=!("value"in t)||Ov.call(r,"hProperties")||Ov.call(r,"hChildren")?{type:"element",tagName:"div",properties:{},children:e.all(t)}:{type:"text",value:t.value};return e.patch(t,n),e.applyData(t,n)}function Rv(e,t){const r=[];let n=-1;for(t&&r.push({type:"text",value:"\n"});++n<e.length;)n&&r.push({type:"text",value:"\n"}),r.push(e[n]);return t&&e.length>0&&r.push({type:"text",value:"\n"}),r}function Iv(e){let t=0,r=e.charCodeAt(t);for(;9===r||32===r;)t++,r=e.charCodeAt(t);return e.slice(t)}function Lv(e,t){const r=function(e,t){const r=t||Fv,n=new Map,o=new Map,i=new Map,a={...ia,...r.handlers},s={all:function(e){const t=[];if("children"in e){const r=e.children;let n=-1;for(;++n<r.length;){const o=s.one(r[n],e);if(o){if(n&&"break"===r[n-1].type&&(Array.isArray(o)||"text"!==o.type||(o.value=Iv(o.value)),!Array.isArray(o)&&"element"===o.type)){const e=o.children[0];e&&"text"===e.type&&(e.value=Iv(e.value))}Array.isArray(o)?t.push(...o):t.push(o)}}}return t},applyData:Tv,definitionById:n,footnoteById:o,footnoteCounts:i,footnoteOrder:[],handlers:a,one:function(e,t){const r=e.type,n=s.handlers[r];if(Ov.call(s.handlers,r)&&n)return n(s,e,t);if(s.options.passThrough&&s.options.passThrough.includes(r)){if("children"in e){const{children:t,...r}=e,n=xv(r);return n.children=s.all(e),n}return xv(e)}return(s.options.unknownHandler||_v)(s,e,t)},options:r,patch:jv,wrap:Rv};return Hn(e,(function(e){if("definition"===e.type||"footnoteDefinition"===e.type){const t="definition"===e.type?n:o,r=String(e.identifier).toUpperCase();t.has(r)||t.set(r,e)}})),s}(e,t),n=r.one(e,void 0),o=function(e){const t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||Av,n=e.options.footnoteBackLabel||Cv,o=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",a=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let c=-1;for(;++c<e.footnoteOrder.length;){const o=e.footnoteById.get(e.footnoteOrder[c]);if(!o)continue;const i=e.all(o),a=String(o.identifier).toUpperCase(),u=Qi(a.toLowerCase());let l=0;const f=[],h=e.footnoteCounts.get(a);for(;void 0!==h&&++l<=h;){f.length>0&&f.push({type:"text",value:" "});let e="string"==typeof r?r:r(c,l);"string"==typeof e&&(e={type:"text",value:e}),f.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+u+(l>1?"-"+l:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof n?n:n(c,l),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}const p=i[i.length-1];if(p&&"element"===p.type&&"p"===p.tagName){const e=p.children[p.children.length-1];e&&"text"===e.type?e.value+=" ":p.children.push({type:"text",value:" "}),p.children.push(...f)}else i.push(...f);const d={type:"element",tagName:"li",properties:{id:t+"fn-"+u},children:e.wrap(i,!0)};e.patch(o,d),s.push(d)}if(0!==s.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...xv(a),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:"\n"}]}}(r),i=Array.isArray(n)?{type:"root",children:n}:n||{type:"root",children:[]};return o&&i.children.push({type:"text",value:"\n"},o),i}var Bv=r(5110),Mv=r(9294),Nv=r.n(Mv);const Hv=function(e,t,r,n){const o=Yl.useRef(r),i=Yl.useRef(n);Yl.useEffect((()=>{o.current=r,i.current=n})),Yl.useEffect((()=>{const r=e&&"current"in e?e.current:e;if(!r)return;let n=0;function a(...e){n||o.current.apply(this,e)}r.addEventListener(t,a);const s=i.current;return()=>{n=1,r.removeEventListener(t,a),s&&s()}}),[e,t])};
2
2
  /**!
3
3
  * hotkeys-js v3.9.4
4
4
  * A simple micro-library for defining and dispatching keyboard shortcuts. It has no dependencies.
@@ -7,7 +7,7 @@
7
7
  * http://jaywcjlove.github.io/hotkeys
8
8
  * Licensed under the MIT license
9
9
  */
10
- var zv="undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>0;function Uv(e,t,r,n){e.addEventListener?e.addEventListener(t,r,n):e.attachEvent&&e.attachEvent("on".concat(t),(function(){r(window.event)}))}function $v(e,t){for(var r=t.slice(0,t.length-1),n=0;n<r.length;n++)r[n]=e[r[n].toLowerCase()];return r}function qv(e){"string"!=typeof e&&(e="");for(var t=(e=e.replace(/\s/g,"")).split(","),r=t.lastIndexOf("");r>=0;)t[r-1]+=",",t.splice(r,1),r=t.lastIndexOf("");return t}for(var Vv={backspace:8,tab:9,clear:12,enter:13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":zv?173:189,"=":zv?61:187,";":zv?59:186,"'":222,"[":219,"]":221,"\\":220},Gv={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},Wv={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},Kv={16:!1,18:!1,17:!1,91:!1},Qv={},Zv=1;Zv<20;Zv++)Vv["f".concat(Zv)]=111+Zv;var Yv=[],Xv=!1,Jv="all",eg=[],tg=function(e){return Vv[e.toLowerCase()]||Gv[e.toLowerCase()]||e.toUpperCase().charCodeAt(0)};function rg(e){Jv=e||"all"}function ng(){return Jv||"all"}var og=function(e){var t=e.key,r=e.scope,n=e.method,o=e.splitKey,i=void 0===o?"+":o;qv(t).forEach((function(e){var t=e.split(i),o=t.length,a=t[o-1],s="*"===a?"*":tg(a);if(Qv[s]){r||(r=ng());var c=o>1?$v(Gv,t):[];Qv[s]=Qv[s].filter((function(e){return!((!n||e.method===n)&&e.scope===r&&function(e,t){for(var r=e.length>=t.length?e:t,n=e.length>=t.length?t:e,o=!0,i=0;i<r.length;i++)-1===n.indexOf(r[i])&&(o=!1);return o}(e.mods,c))}))}}))};function ig(e,t,r,n){var o;if(t.element===n&&(t.scope===r||"all"===t.scope)){for(var i in o=t.mods.length>0,Kv)Object.prototype.hasOwnProperty.call(Kv,i)&&(!Kv[i]&&t.mods.indexOf(+i)>-1||Kv[i]&&-1===t.mods.indexOf(+i))&&(o=!1);(0!==t.mods.length||Kv[16]||Kv[18]||Kv[17]||Kv[91])&&!o&&"*"!==t.shortcut||!1===t.method(e,t)&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}function ag(e,t){var r=Qv["*"],n=e.keyCode||e.which||e.charCode;if(sg.filter.call(this,e)){if(93!==n&&224!==n||(n=91),-1===Yv.indexOf(n)&&229!==n&&Yv.push(n),["ctrlKey","altKey","shiftKey","metaKey"].forEach((function(t){var r=Wv[t];e[t]&&-1===Yv.indexOf(r)?Yv.push(r):!e[t]&&Yv.indexOf(r)>-1?Yv.splice(Yv.indexOf(r),1):"metaKey"===t&&e[t]&&3===Yv.length&&(e.ctrlKey||e.shiftKey||e.altKey||(Yv=Yv.slice(Yv.indexOf(r))))})),n in Kv){for(var o in Kv[n]=!0,Gv)Gv[o]===n&&(sg[o]=!0);if(!r)return}for(var i in Kv)Object.prototype.hasOwnProperty.call(Kv,i)&&(Kv[i]=e[Wv[i]]);e.getModifierState&&(!e.altKey||e.ctrlKey)&&e.getModifierState("AltGraph")&&(-1===Yv.indexOf(17)&&Yv.push(17),-1===Yv.indexOf(18)&&Yv.push(18),Kv[17]=!0,Kv[18]=!0);var a=ng();if(r)for(var s=0;s<r.length;s++)r[s].scope===a&&("keydown"===e.type&&r[s].keydown||"keyup"===e.type&&r[s].keyup)&&ig(e,r[s],a,t);if(n in Qv)for(var c=0;c<Qv[n].length;c++)if(("keydown"===e.type&&Qv[n][c].keydown||"keyup"===e.type&&Qv[n][c].keyup)&&Qv[n][c].key){for(var u=Qv[n][c],l=u.splitKey,f=u.key.split(l),h=[],p=0;p<f.length;p++)h.push(tg(f[p]));h.sort().join("")===Yv.sort().join("")&&ig(e,u,a,t)}}}function sg(e,t,r){Yv=[];var n=qv(e),o=[],i="all",a=document,s=0,c=!1,u=!0,l="+",f=!1;for(void 0===r&&"function"==typeof t&&(r=t),"[object Object]"===Object.prototype.toString.call(t)&&(t.scope&&(i=t.scope),t.element&&(a=t.element),t.keyup&&(c=t.keyup),void 0!==t.keydown&&(u=t.keydown),void 0!==t.capture&&(f=t.capture),"string"==typeof t.splitKey&&(l=t.splitKey)),"string"==typeof t&&(i=t);s<n.length;s++)o=[],(e=n[s].split(l)).length>1&&(o=$v(Gv,e)),(e="*"===(e=e[e.length-1])?"*":tg(e))in Qv||(Qv[e]=[]),Qv[e].push({keyup:c,keydown:u,scope:i,mods:o,shortcut:n[s],method:r,key:n[s],splitKey:l,element:a});void 0!==a&&!function(e){return eg.indexOf(e)>-1}(a)&&window&&(eg.push(a),Uv(a,"keydown",(function(e){ag(e,a)}),f),Xv||(Xv=!0,Uv(window,"focus",(function(){Yv=[]}),f)),Uv(a,"keyup",(function(e){ag(e,a),function(e){var t=e.keyCode||e.which||e.charCode,r=Yv.indexOf(t);if(r>=0&&Yv.splice(r,1),e.key&&"meta"===e.key.toLowerCase()&&Yv.splice(0,Yv.length),93!==t&&224!==t||(t=91),t in Kv)for(var n in Kv[t]=!1,Gv)Gv[n]===t&&(sg[n]=!1)}(e)}),f))}var cg={setScope:rg,getScope:ng,deleteScope:function(e,t){var r,n;for(var o in e||(e=ng()),Qv)if(Object.prototype.hasOwnProperty.call(Qv,o))for(r=Qv[o],n=0;n<r.length;)r[n].scope===e?r.splice(n,1):n++;ng()===e&&rg(t||"all")},getPressedKeyCodes:function(){return Yv.slice(0)},isPressed:function(e){return"string"==typeof e&&(e=tg(e)),-1!==Yv.indexOf(e)},filter:function(e){var t=e.target||e.srcElement,r=t.tagName,n=!0;return!t.isContentEditable&&("INPUT"!==r&&"TEXTAREA"!==r&&"SELECT"!==r||t.readOnly)||(n=!1),n},trigger:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"all";Object.keys(Qv).forEach((function(r){var n=Qv[r].find((function(r){return r.scope===t&&r.shortcut===e}));n&&n.method&&n.method()}))},unbind:function(e){if(void 0===e)Object.keys(Qv).forEach((function(e){return delete Qv[e]}));else if(Array.isArray(e))e.forEach((function(e){e.key&&og(e)}));else if("object"==typeof e)e.key&&og(e);else if("string"==typeof e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var o=r[0],i=r[1];"function"==typeof o&&(i=o,o=""),og({key:e,scope:o,method:i,splitKey:"+"})}},keyMap:Vv,modifier:Gv,modifierMap:Wv};for(var ug in cg)Object.prototype.hasOwnProperty.call(cg,ug)&&(sg[ug]=cg[ug]);if("undefined"!=typeof window){var lg=window.hotkeys;sg.noConflict=function(e){return e&&window.hotkeys===sg&&(window.hotkeys=lg),sg},window.hotkeys=sg}sg.filter=function(){return!0};var fg=function(e,t){var r=e.target,n=r&&r.tagName;return Boolean(n&&t&&t.includes(n))},hg=function(e){return fg(e,["INPUT","TEXTAREA","SELECT"])};function pg(e,t,r,n){r instanceof Array&&(n=r,r=void 0);var o=r||{},i=o.enableOnTags,a=o.filter,s=o.keyup,c=o.keydown,u=o.filterPreventDefault,l=void 0===u||u,f=o.enabled,h=void 0===f||f,p=o.enableOnContentEditable,d=void 0!==p&&p,m=(0,Yl.useRef)(null),v=(0,Yl.useCallback)((function(e,r){var n,o;return a&&!a(e)?!l:!!(hg(e)&&!fg(e,i)||null!=(n=e.target)&&n.isContentEditable&&!d)||!!(null===m.current||document.activeElement===m.current||null!=(o=m.current)&&o.contains(document.activeElement))&&(t(e,r),!0)}),n?[m,i,a].concat(n):[m,i,a]);return(0,Yl.useEffect)((function(){if(h)return s&&!0!==c&&(r.keydown=!1),sg(e,r||{},v),function(){return sg.unbind(e,v)};sg.unbind(e,v)}),[v,e,h]),m}sg.isPressed;function dg(){return dg=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},dg.apply(this,arguments)}"undefined"!=typeof Symbol&&(Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator"))),"undefined"!=typeof Symbol&&(Symbol.asyncIterator||(Symbol.asyncIterator=Symbol("Symbol.asyncIterator")));var mg="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?Yl.useLayoutEffect:Yl.useEffect,vg={status:"not-requested",loading:!1,result:void 0,error:void 0},gg={status:"loading",loading:!0,result:void 0,error:void 0},yg=function(){},bg={initialState:function(e){return e&&e.executeOnMount?gg:vg},executeOnMount:!0,executeOnUpdate:!0,setLoading:function(e){return gg},setResult:function(e,t){return{status:"success",loading:!1,result:e,error:void 0}},setError:function(e,t){return{status:"error",loading:!1,result:void 0,error:e}},onSuccess:yg,onError:yg},wg=function(e,t,r){var n,o=function(e){return dg({},bg,{},e)}(r),i=(0,Yl.useState)(null),a=i[0],s=i[1],c=function(e){var t=(0,Yl.useState)((function(){return e.initialState(e)})),r=t[0],n=t[1],o=(0,Yl.useCallback)((function(){return n(e.initialState(e))}),[n,e]),i=(0,Yl.useCallback)((function(){return n(e.setLoading(r))}),[r,n]),a=(0,Yl.useCallback)((function(t){return n(e.setResult(t,r))}),[r,n]),s=(0,Yl.useCallback)((function(t){return n(e.setError(t,r))}),[r,n]),c=n,u=(0,Yl.useCallback)((function(e){return c(dg({},r,{},e))}),[r,c]);return{value:r,set:c,merge:u,reset:o,setLoading:i,setResult:a,setError:s}}(o),u=(n=(0,Yl.useRef)(!1),(0,Yl.useEffect)((function(){return n.current=!0,function(){n.current=!1}}),[]),function(){return n.current}),l=function(){var e=(0,Yl.useRef)(null);return{set:function(t){return e.current=t},get:function(){return e.current},is:function(t){return e.current===t}}}(),f=function(e){return u()&&l.is(e)},h=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=e.apply(void 0,r);if(s(r),i instanceof Promise)return l.set(i),c.setLoading(),i.then((function(e){f(i)&&c.setResult(e),o.onSuccess(e,{isCurrent:function(){return l.is(i)}})}),(function(e){f(i)&&c.setError(e),o.onError(e,{isCurrent:function(){return l.is(i)}})})),i;var a=i;return c.setResult(a),Promise.resolve(a)},p=!u();return(0,Yl.useEffect)((function(){p?o.executeOnMount&&h.apply(void 0,t):o.executeOnUpdate&&h.apply(void 0,t)}),t),dg({},c.value,{set:c.set,merge:c.merge,reset:c.reset,execute:h,currentPromise:l.get(),currentParams:a})};function xg(e,t,r){return wg(e,t,r)}var Eg,kg=function(e,t){return wg(e,[],dg({},t,{executeOnMount:!1,executeOnUpdate:!1}))},Sg=function(e){var t,r,n=e.value,o=e.fetchMore,i=e.merge,a=e.isEnd,s=(t=n,r=(0,Yl.useRef)(t),mg((function(){r.current=t})),function(){return r.current}),c=(0,Yl.useState)(!1),u=c[0],l=c[1],f=(0,Yl.useRef)(0),h=kg((function(){try{var e=s();if("success"!==e.status)throw new Error("Can't fetch more if the original fetch is not a success");if("loading"===h.status)throw new Error("Can't fetch more, because we are already fetching more!");f.current=f.current+1;var t=f.current;return Promise.resolve(o(e.result)).then((function(r){var o=e.status===s().status&&e.result===s().result,c=f.current===t;return o&&c&&(n.merge({result:i(n.result,r)}),a(r)&&l(!0)),r}))}catch(e){return Promise.reject(e)}})),p="success"!==n.status;return(0,Yl.useEffect)((function(){p&&(h.reset(),l(!1))}),[p]),{canFetchMore:"success"===n.status&&"loading"!==h.status,loading:h.loading,status:h.status,fetchMore:h.execute,isEnd:u}},Dg=r(9519),Pg=r.n(Dg),Ag=r(411),Cg=r.n(Ag),Og=r(172),Fg=r.n(Og),jg=r(1538),Tg=r.n(jg),_g="bodyAttributes",Rg="htmlAttributes",Ig="titleAttributes",Lg={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},Bg=(Object.keys(Lg).map((function(e){return Lg[e]})),"charset"),Mg="cssText",Ng="href",Hg="http-equiv",zg="innerHTML",Ug="itemprop",$g="name",qg="property",Vg="rel",Gg="src",Wg="target",Kg={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},Qg="defaultTitle",Zg="defer",Yg="encodeSpecialCharacters",Xg="onChangeClientState",Jg="titleTemplate",ey=Object.keys(Kg).reduce((function(e,t){return e[Kg[t]]=t,e}),{}),ty=[Lg.NOSCRIPT,Lg.SCRIPT,Lg.STYLE],ry="data-react-helmet",ny="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},oy=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),iy=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ay=function(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r},sy=function(e){return!1===(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])?String(e):String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")},cy=function(e){var t=py(e,Lg.TITLE),r=py(e,Jg);if(r&&t)return r.replace(/%s/g,(function(){return Array.isArray(t)?t.join(""):t}));var n=py(e,Qg);return t||n||void 0},uy=function(e){return py(e,Xg)||function(){}},ly=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return iy({},e,t)}),{})},fy=function(e,t){return t.filter((function(e){return void 0!==e[Lg.BASE]})).map((function(e){return e[Lg.BASE]})).reverse().reduce((function(t,r){if(!t.length)for(var n=Object.keys(r),o=0;o<n.length;o++){var i=n[o].toLowerCase();if(-1!==e.indexOf(i)&&r[i])return t.concat(r)}return t}),[])},hy=function(e,t,r){var n={};return r.filter((function(t){return!!Array.isArray(t[e])||(void 0!==t[e]&&yy("Helmet: "+e+' should be of type "Array". Instead found type "'+ny(t[e])+'"'),!1)})).map((function(t){return t[e]})).reverse().reduce((function(e,r){var o={};r.filter((function(e){for(var r=void 0,i=Object.keys(e),a=0;a<i.length;a++){var s=i[a],c=s.toLowerCase();-1===t.indexOf(c)||r===Vg&&"canonical"===e[r].toLowerCase()||c===Vg&&"stylesheet"===e[c].toLowerCase()||(r=c),-1===t.indexOf(s)||s!==zg&&s!==Mg&&s!==Ug||(r=s)}if(!r||!e[r])return!1;var u=e[r].toLowerCase();return n[r]||(n[r]={}),o[r]||(o[r]={}),!n[r][u]&&(o[r][u]=!0,!0)})).reverse().forEach((function(t){return e.push(t)}));for(var i=Object.keys(o),a=0;a<i.length;a++){var s=i[a],c=Tg()({},n[s],o[s]);n[s]=c}return e}),[]).reverse()},py=function(e,t){for(var r=e.length-1;r>=0;r--){var n=e[r];if(n.hasOwnProperty(t))return n[t]}return null},dy=(Eg=Date.now(),function(e){var t=Date.now();t-Eg>16?(Eg=t,e(t)):setTimeout((function(){dy(e)}),0)}),my=function(e){return clearTimeout(e)},vy="undefined"!=typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||dy:r.g.requestAnimationFrame||dy,gy="undefined"!=typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||my:r.g.cancelAnimationFrame||my,yy=function(e){return console&&"function"==typeof console.warn&&console.warn(e)},by=null,wy=function(e,t){var r=e.baseTag,n=e.bodyAttributes,o=e.htmlAttributes,i=e.linkTags,a=e.metaTags,s=e.noscriptTags,c=e.onChangeClientState,u=e.scriptTags,l=e.styleTags,f=e.title,h=e.titleAttributes;ky(Lg.BODY,n),ky(Lg.HTML,o),Ey(f,h);var p={baseTag:Sy(Lg.BASE,r),linkTags:Sy(Lg.LINK,i),metaTags:Sy(Lg.META,a),noscriptTags:Sy(Lg.NOSCRIPT,s),scriptTags:Sy(Lg.SCRIPT,u),styleTags:Sy(Lg.STYLE,l)},d={},m={};Object.keys(p).forEach((function(e){var t=p[e],r=t.newTags,n=t.oldTags;r.length&&(d[e]=r),n.length&&(m[e]=p[e].oldTags)})),t&&t(),c(e,d,m)},xy=function(e){return Array.isArray(e)?e.join(""):e},Ey=function(e,t){void 0!==e&&document.title!==e&&(document.title=xy(e)),ky(Lg.TITLE,t)},ky=function(e,t){var r=document.getElementsByTagName(e)[0];if(r){for(var n=r.getAttribute(ry),o=n?n.split(","):[],i=[].concat(o),a=Object.keys(t),s=0;s<a.length;s++){var c=a[s],u=t[c]||"";r.getAttribute(c)!==u&&r.setAttribute(c,u),-1===o.indexOf(c)&&o.push(c);var l=i.indexOf(c);-1!==l&&i.splice(l,1)}for(var f=i.length-1;f>=0;f--)r.removeAttribute(i[f]);o.length===i.length?r.removeAttribute(ry):r.getAttribute(ry)!==a.join(",")&&r.setAttribute(ry,a.join(","))}},Sy=function(e,t){var r=document.head||document.querySelector(Lg.HEAD),n=r.querySelectorAll(e+"["+ry+"]"),o=Array.prototype.slice.call(n),i=[],a=void 0;return t&&t.length&&t.forEach((function(t){var r=document.createElement(e);for(var n in t)if(t.hasOwnProperty(n))if(n===zg)r.innerHTML=t.innerHTML;else if(n===Mg)r.styleSheet?r.styleSheet.cssText=t.cssText:r.appendChild(document.createTextNode(t.cssText));else{var s=void 0===t[n]?"":t[n];r.setAttribute(n,s)}r.setAttribute(ry,"true"),o.some((function(e,t){return a=t,r.isEqualNode(e)}))?o.splice(a,1):i.push(r)})),o.forEach((function(e){return e.parentNode.removeChild(e)})),i.forEach((function(e){return r.appendChild(e)})),{oldTags:o,newTags:i}},Dy=function(e){return Object.keys(e).reduce((function(t,r){var n=void 0!==e[r]?r+'="'+e[r]+'"':""+r;return t?t+" "+n:n}),"")},Py=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,r){return t[Kg[r]||r]=e[r],t}),t)},Ay=function(e,t,r){switch(e){case Lg.TITLE:return{toComponent:function(){return function(e,t,r){var n,o=((n={key:t})[ry]=!0,n),i=Py(r,o);return[Xl().createElement(Lg.TITLE,i,t)]}(0,t.title,t.titleAttributes)},toString:function(){return function(e,t,r,n){var o=Dy(r),i=xy(t);return o?"<"+e+" "+ry+'="true" '+o+">"+sy(i,n)+"</"+e+">":"<"+e+" "+ry+'="true">'+sy(i,n)+"</"+e+">"}(e,t.title,t.titleAttributes,r)}};case _g:case Rg:return{toComponent:function(){return Py(t)},toString:function(){return Dy(t)}};default:return{toComponent:function(){return function(e,t){return t.map((function(t,r){var n,o=((n={key:r})[ry]=!0,n);return Object.keys(t).forEach((function(e){var r=Kg[e]||e;if(r===zg||r===Mg){var n=t.innerHTML||t.cssText;o.dangerouslySetInnerHTML={__html:n}}else o[r]=t[e]})),Xl().createElement(e,o)}))}(e,t)},toString:function(){return function(e,t,r){return t.reduce((function(t,n){var o=Object.keys(n).filter((function(e){return!(e===zg||e===Mg)})).reduce((function(e,t){var o=void 0===n[t]?t:t+'="'+sy(n[t],r)+'"';return e?e+" "+o:o}),""),i=n.innerHTML||n.cssText||"",a=-1===ty.indexOf(e);return t+"<"+e+" "+ry+'="true" '+o+(a?"/>":">"+i+"</"+e+">")}),"")}(e,t,r)}}}},Cy=function(e){var t=e.baseTag,r=e.bodyAttributes,n=e.encode,o=e.htmlAttributes,i=e.linkTags,a=e.metaTags,s=e.noscriptTags,c=e.scriptTags,u=e.styleTags,l=e.title,f=void 0===l?"":l,h=e.titleAttributes;return{base:Ay(Lg.BASE,t,n),bodyAttributes:Ay(_g,r,n),htmlAttributes:Ay(Rg,o,n),link:Ay(Lg.LINK,i,n),meta:Ay(Lg.META,a,n),noscript:Ay(Lg.NOSCRIPT,s,n),script:Ay(Lg.SCRIPT,c,n),style:Ay(Lg.STYLE,u,n),title:Ay(Lg.TITLE,{title:f,titleAttributes:h},n)}},Oy=function(e){var t,r;return r=t=function(t){function r(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,t.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,t),r.prototype.shouldComponentUpdate=function(e){return!Fg()(this.props,e)},r.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case Lg.SCRIPT:case Lg.NOSCRIPT:return{innerHTML:t};case Lg.STYLE:return{cssText:t}}throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},r.prototype.flattenArrayTypeChildren=function(e){var t,r=e.child,n=e.arrayTypeChildren,o=e.newChildProps,i=e.nestedChildren;return iy({},n,((t={})[r.type]=[].concat(n[r.type]||[],[iy({},o,this.mapNestedChildrenToProps(r,i))]),t))},r.prototype.mapObjectTypeChildren=function(e){var t,r,n=e.child,o=e.newProps,i=e.newChildProps,a=e.nestedChildren;switch(n.type){case Lg.TITLE:return iy({},o,((t={})[n.type]=a,t.titleAttributes=iy({},i),t));case Lg.BODY:return iy({},o,{bodyAttributes:iy({},i)});case Lg.HTML:return iy({},o,{htmlAttributes:iy({},i)})}return iy({},o,((r={})[n.type]=iy({},i),r))},r.prototype.mapArrayTypeChildrenToProps=function(e,t){var r=iy({},t);return Object.keys(e).forEach((function(t){var n;r=iy({},r,((n={})[t]=e[t],n))})),r},r.prototype.warnOnInvalidChildren=function(e,t){return!0},r.prototype.mapChildrenToProps=function(e,t){var r=this,n={};return Xl().Children.forEach(e,(function(e){if(e&&e.props){var o=e.props,i=o.children,a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,r){return t[ey[r]||r]=e[r],t}),t)}(ay(o,["children"]));switch(r.warnOnInvalidChildren(e,i),e.type){case Lg.LINK:case Lg.META:case Lg.NOSCRIPT:case Lg.SCRIPT:case Lg.STYLE:n=r.flattenArrayTypeChildren({child:e,arrayTypeChildren:n,newChildProps:a,nestedChildren:i});break;default:t=r.mapObjectTypeChildren({child:e,newProps:t,newChildProps:a,nestedChildren:i})}}})),t=this.mapArrayTypeChildrenToProps(n,t)},r.prototype.render=function(){var t=this.props,r=t.children,n=ay(t,["children"]),o=iy({},n);return r&&(o=this.mapChildrenToProps(r,o)),Xl().createElement(e,o)},oy(r,null,[{key:"canUseDOM",set:function(t){e.canUseDOM=t}}]),r}(Xl().Component),t.propTypes={base:Pg().object,bodyAttributes:Pg().object,children:Pg().oneOfType([Pg().arrayOf(Pg().node),Pg().node]),defaultTitle:Pg().string,defer:Pg().bool,encodeSpecialCharacters:Pg().bool,htmlAttributes:Pg().object,link:Pg().arrayOf(Pg().object),meta:Pg().arrayOf(Pg().object),noscript:Pg().arrayOf(Pg().object),onChangeClientState:Pg().func,script:Pg().arrayOf(Pg().object),style:Pg().arrayOf(Pg().object),title:Pg().string,titleAttributes:Pg().object,titleTemplate:Pg().string},t.defaultProps={defer:!0,encodeSpecialCharacters:!0},t.peek=e.peek,t.rewind=function(){var t=e.rewind();return t||(t=Cy({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),t},r}(Cg()((function(e){return{baseTag:fy([Ng,Wg],e),bodyAttributes:ly(_g,e),defer:py(e,Zg),encode:py(e,Yg),htmlAttributes:ly(Rg,e),linkTags:hy(Lg.LINK,[Vg,Ng],e),metaTags:hy(Lg.META,[$g,Bg,Hg,qg,Ug],e),noscriptTags:hy(Lg.NOSCRIPT,[zg],e),onChangeClientState:uy(e),scriptTags:hy(Lg.SCRIPT,[Gg,zg],e),styleTags:hy(Lg.STYLE,[Mg],e),title:cy(e),titleAttributes:ly(Ig,e)}}),(function(e){by&&gy(by),e.defer?by=vy((function(){wy(e,(function(){by=null}))})):(wy(e),by=null)}),Cy)((function(){return null})));Oy.renderStatic=Oy.rewind;window.TopWritePlugins={};var Fy=function(e){Ul()(r,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Gl()(e);if(t){var o=Gl()(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return ql()(this,r)}}(r);function r(){return Hl()(this,r),t.apply(this,arguments)}return c()(r,[{key:"connectedCallback",value:function(){var e=this;this.addEventListener("click",(function(t){if(t.preventDefault(),!e.isContentEditable){var r=e.attributes.getNamedItem("src"),n=null==r?void 0:r.value;if(n){var o=document.createElement("a");o.download=e.textContent||"",o.style.display="none",o.target="_blank",o.href=Ql.resolve(location.href,n),document.body.appendChild(o),o.click(),document.body.removeChild(o)}}}))}}]),r}(Kl()(HTMLElement));function jy(e){var t=e.component,r=e.defaultComponent,n=void 0===r?Yl.Fragment:r,o=e.props,i=e.children,a=void 0===i?null:i,s=e.context;return null===t?null:(0,Zl.jsx)(Yl.Suspense,{fallback:null,children:(0,Zl.jsx)(t,{props:o,Component:n,context:s,children:a})})}function Ty(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ty(Object(r),!0).forEach((function(t){rf()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ty(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}customElements.define("t-attachment",Fy);var Ry=function(e){Ul()(r,Yl.Component);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Gl()(e);if(t){var o=Gl()(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return ql()(this,r)}}(r);function r(){var e;Hl()(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),rf()(ef()(e),"state",{hasError:!1}),e}return c()(r,[{key:"componentDidCatch",value:function(){this.setState({hasError:!0})}},{key:"render",value:function(){return this.state.hasError?null:this.props.children}}]),r}(),Iy=function(e,t){return e.filter((function(e){var r=e.descriptor;return t===r.role})).sort((function(e,t){var r=e.descriptor.priority,n=void 0===r?0:r,o=t.descriptor.priority;return n-(void 0===o?0:o)})).map((function(e){return t=e.Component,function(e){return(0,Zl.jsx)(Ry,{children:(0,Zl.jsx)(t,_y({},e),"WrappedComponent")})};var t}))};function Ly(e){var t=e.component,r=e.props;return(0,Yl.createElement)(t,r)}function By(e){var t=e.props,r=e.role,n=e.component,o=e.context,i=n?(0,Zl.jsx)(Ly,{component:n,props:t,context:o}):null,a=Mf("components");return(0,Yl.useMemo)((function(){return Iy(a,r)}),[a,r]).reduce((function(e,r){return(0,Zl.jsx)(jy,{defaultComponent:n,component:r,props:t,context:o,children:e})}),i)}function My(e){var t=e.props,r=e.component,n=e.role,o=e.context,i=Mf("components"),a=(0,Yl.useMemo)((function(){return Iy(i,n)}),[i,n]);return(0,Zl.jsx)(Zl.Fragment,{children:a.map((function(e,n){return(0,Zl.jsx)(jy,{defaultComponent:r,component:e,props:t,context:o},n)}))})}function Ny(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return Hy(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Hy(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function Hy(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function zy(e){return Uy.apply(this,arguments)}function Uy(){return(Uy=xs()(ks().mark((function e(t){var r,n;return ks().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r="topwrite-plugin-".concat(t.name),qf().isDefined(r)){e.next=11;break}return n="".concat(t.host,"/").concat(t.main),e.prev=3,e.next=6,qf()(n,r,{returnPromise:!0});case 6:e.next=11;break;case 8:e.prev=8,e.t0=e.catch(3),console.warn("插件".concat(t.name,"加载失败"));case 11:case"end":return e.stop()}}),e,null,[[3,8]])})))).apply(this,arguments)}function $y(e,t){return qy.apply(this,arguments)}function qy(){return(qy=xs()(ks().mark((function e(t,r){var n,o,i,a,s,c,u,l,f,h,p,d,m,v;return ks().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=[],!r){e.next=12;break}return o=Fl(r),e.prev=3,e.next=6,o.getInstalled(t);case 6:n=(n=e.sent).filter((function(e){var t;return!(null!==(t=window.TopWritePlugins[e.name])&&void 0!==t&&t.meta)})),e.next=12;break;case 10:e.prev=10,e.t0=e.catch(3);case 12:if(e.prev=12,i=sessionStorage.getItem("PLUGIN_DEV"),!("dev"in(a=Vf.parse(window.location.search)))&&!i){e.next=32;break}return s=a.dev||i||8080,e.prev=17,e.next=20,du.get("http://localhost:".concat(s,"/meta"));case 20:c=e.sent,u=c.data,n=n.filter((function(e){return e.name!==u.name&&!("theme"===u.type&&"theme"===e.type)})),window.TopWritePlugins[u.name]&&delete window.TopWritePlugins[u.name],n.unshift(u),sessionStorage.setItem("PLUGIN_DEV",String(s)),e.next=32;break;case 28:e.prev=28,e.t1=e.catch(17),console.warn(e.t1),sessionStorage.removeItem("PLUGIN_DEV");case 32:e.next=36;break;case 34:e.prev=34,e.t2=e.catch(12);case 36:l=Object.entries(window.TopWritePlugins).filter((function(e){return!!Uf()(e,2)[1].meta})).map((function(e){return Uf()(e,2)[1].meta})),f=l.some((function(e){return"theme"===e.type})),h=Object.keys(window.TopWritePlugins),p=[],d=Ny(n),e.prev=41,d.s();case 43:if((m=d.n()).done){e.next=50;break}if(!((v=m.value).disabled||h.includes(v.name)||f&&"theme"===v.type)){e.next=47;break}return e.abrupt("continue",48);case 47:p.push(zy(v));case 48:e.next=43;break;case 50:e.next=55;break;case 52:e.prev=52,e.t3=e.catch(41),d.e(e.t3);case 55:return e.prev=55,d.f(),e.finish(55);case 58:return e.next=60,Promise.all(p);case 60:return l.push.apply(l,Hf()(n)),window.TopWritePluginsMeta=l,e.abrupt("return",Object.values(window.TopWritePlugins||{}));case 63:case"end":return e.stop()}}),e,null,[[3,10],[12,34],[17,28],[41,52,55,58]])})))).apply(this,arguments)}function Vy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Gy(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Vy(Object(r),!0).forEach((function(t){rf()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vy(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Wy(e,t){return t instanceof Array?{Component:t[0],descriptor:Gy({role:e},t[1])}:{Component:t,descriptor:{role:e}}}var Ky="localStorage";function Qy(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ky;if("undefined"==typeof window)throw new Error("Browser storage is not available on NodeJS / TopWrite SSR process");if("none"===e)return null;try{return window[e]}catch(e){return null}}var Zy={get:function(){return null},set:function(){},del:function(){}},Yy=function(e,t){var r=Qy(null==t?void 0:t.persistence);return null===r?Zy:{get:function(){return r.getItem(e)},set:function(t){return r.setItem(e,t)},del:function(){return r.removeItem(e)}}};function Xy(){var e=Qy(arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ky);if(!e)return[];for(var t=[],r=0;r<e.length;r+=1){var n=e.key(r);null!==n&&t.push(n)}return t}function Jy(){var e=Mf("book");if(!e)throw new Error("book object not initialized");return e}function eb(){return Jy().config.getValue("themeConfig")}var tb="light",rb="dark";function nb(e){document.documentElement.setAttribute("data-theme",e)}var ob=(0,Yl.createContext)(void 0);function ib(e){var t=e.children,r=function(e){var t=Jy(),r=(0,Yl.useMemo)((function(){return Yy("".concat(e,".").concat(t.id,".theme"))}),[t.id,e]),n=eb().defaultMode,o=(0,Yl.useState)((function(){var e=function(e){return e===rb?rb:tb}(r.get()||n);return nb(e),e})),i=Uf()(o,2),a=i[0],s=i[1];(0,Yl.useEffect)((function(){nb(a)}),[a]);var c=(0,Yl.useCallback)((function(){s(tb),r.set(tb)}),[r]),u=(0,Yl.useCallback)((function(){s(rb),r.set(rb)}),[r]);return{isDarkTheme:a===rb,setLightTheme:c,setDarkTheme:u}}(e.context),n=r.isDarkTheme,o=r.setLightTheme,i=r.setDarkTheme;return(0,Zl.jsx)(ob.Provider,{value:{isDarkTheme:n,setLightTheme:o,setDarkTheme:i},children:t})}function ab(){var e=(0,Yl.useContext)(ob);return null==e?{isDarkTheme:!1,setLightTheme:pf.noop,setDarkTheme:pf.noop}:e}var sb,cb=Dp(sb||(sb=Wf()(["\n\n //TODO 转移到异步加载\n //附件\n t-attachment {\n color: var(--ttw-primary-color, #3c60ff);\n display: inline-flex;\n align-items: center;\n cursor: pointer;\n overflow: hidden;\n padding: 0 4px;\n vertical-align: bottom;\n margin: 0 1px;\n\n &:before {\n content: '';\n width: 18px;\n height: 18px;\n background-color: var(--ttw-primary-color, #3c60ff);\n mask: url(\"",'") no-repeat center;\n margin-right: 4px;\n }\n\n &:after {\n content: "(" attr(size) ")";\n margin-left: 4px;\n display: none;\n }\n\n &[size]:after {\n display: inline;\n }\n\n &:hover {\n background: rgba(0, 0, 0, .1);\n }\n\n &:read-write {\n cursor: text;\n }\n }\n'])),"data:image/svg+xml,%3csvg t='1642406480574' class='icon' viewBox='0 0 1024 1024' version='1.1' xmlns='http://www.w3.org/2000/svg' p-id='2254' width='16' height='16'%3e %3cpath d='M874.666667 467.2c-10.666667-10.666667-29.866667-12.8-42.666667 0l-343.466667 341.333333c-74.666667 74.666667-198.4 74.666667-275.2 0-36.266667-36.266667-57.6-85.333333-57.6-136.533333s19.2-100.266667 57.6-136.533333L556.8 192c46.933333-46.933333 121.6-46.933333 168.533333 0 23.466667 23.466667 34.133333 53.333333 34.133334 83.2 0 32-12.8 61.866667-34.133334 83.2L384 704c-17.066667 17.066667-44.8 17.066667-64 0-8.533333-8.533333-12.8-19.2-12.8-32s4.266667-23.466667 12.8-32l317.866667-315.733333c10.666667-10.666667 12.8-29.866667 0-42.666667-10.666667-12.8-29.866667-12.8-42.666667 0L277.333333 597.333333c-19.2 19.2-29.866667 46.933333-29.866666 74.666667S258.133333 725.333333 277.333333 746.666667c40.533333 40.533333 106.666667 40.533333 147.2 0L768 403.2c34.133333-34.133333 53.333333-78.933333 53.333333-125.866667s-19.2-93.866667-53.333333-125.866666a178.986667 178.986667 0 0 0-253.866667 0l-341.333333 341.333333c-46.933333 46.933333-74.666667 110.933333-74.666667 179.2s25.6 132.266667 74.666667 179.2c49.066667 49.066667 115.2 74.666667 179.2 74.666667s130.133333-25.6 179.2-74.666667l343.466667-341.333333c10.666667-12.8 10.666667-32 0-42.666667z' p-id='2255'%3e%3c/path%3e%3c/svg%3e");var ub=new(function(e){Ul()(r,Tf);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Gl()(e);if(t){var o=Gl()(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return ql()(this,r)}}(r);function r(){var e;Hl()(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),rf()(ef()(e),"initialState",[]),e}return c()(r,[{key:"register",value:ks().mark((function e(t){return ks().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.setState((function(e){return e.push(t)}));case 2:case"end":return e.stop()}}),e,this)}))}]),r}());var lb=new(function(e){Ul()(r,Tf);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Gl()(e);if(t){var o=Gl()(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return ql()(this,r)}}(r);function r(){return Hl()(this,r),t.apply(this,arguments)}return c()(r)}()),fb=Object.freeze({__proto__:null,components:ub,options:lb});function hb(e,t,r){var n="function"==typeof t;n||(r=t),(0,Yl.useEffect)((function(){var r,o=e();return Promise.resolve(o).then((function(e){r=e})),function(){n&&t(r)}}),r)}function pb(e){return e.__esModule&&e.default?e.default:e}var db=(0,Yl.createContext)(void 0),mb=function(){var e=(0,Yl.useContext)(db);if(void 0===e)throw new Error("useIntlContext must be used within a Layout component");return e},vb=function(e){var t=e.localize,r=e.children,n=mb().addMessages,o=(0,Yl.useState)(!0),i=Uf()(o,2),a=i[0],s=i[1];return hb(xs()(ks().mark((function e(){return ks().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s(!0),e.next=3,n(t);case 3:s(!1);case 4:case"end":return e.stop()}}),e)}))),[t]),a?null:(0,Zl.jsx)(Zl.Fragment,{children:r})},gb=function(e){var t=e.children,r=mb(),n=r.locale,o=r.messages,i=(0,Yl.useMemo)((function(){return Qm({locale:n,messages:o,defaultLocale:"en"},{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}})}),[n,o]);return(0,Zl.jsx)(qm,{value:i,children:t})},yb=function(e){var t=e.children,r=e.locale,n=e.messages,o=(0,Yl.useState)(n),i=Uf()(o,2),a=i[0],s=i[1],c=function(){var e=xs()(ks().mark((function e(t){return ks().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=s,e.t1=Object,e.t2={},e.t3=a,e.t4=pb,e.next=7,t(r);case 7:e.t5=e.sent,e.t6=(0,e.t4)(e.t5),e.t7=e.t1.assign.call(e.t1,e.t2,e.t3,e.t6),(0,e.t0)(e.t7);case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return(0,Zl.jsx)(db.Provider,{value:{locale:r,messages:a,addMessages:c},children:(0,Zl.jsx)(gb,{children:t})})};function bb(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return wb(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?wb(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function wb(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function xb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Eb(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?xb(Object(r),!0).forEach((function(t){rf()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xb(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var kb=function(){function e(t,r,n){Hl()(this,e),rf()(this,"name",void 0),rf()(this,"book",void 0),rf()(this,"models",Eb({},fb)),rf()(this,"components",[]),rf()(this,"activates",[]),rf()(this,"plugins",[]),rf()(this,"initialState",void 0),this.name=t,this.book=r,this.initialState=n}var t,r,n;return c()(e,[{key:"registerComponents",value:function(e,t){for(var r=0,n=Object.entries(e);r<n.length;r++){var o=Uf()(n[r],2),i=o[0],a=o[1];a&&("plugin:setting"===i&&(i="plugin:setting:".concat(t)),this.components.push(Wy(i,a)))}}},{key:"registerModels",value:function(e,t){for(var r=0,n=Object.entries(e);r<n.length;r++){var o=Uf()(n[r],2),i=o[0],a=o[1];t?this.models["@".concat(t,"@").concat(i)]=a:this.models[i]=a}}},{key:"registerPlugins",value:(n=xs()(ks().mark((function e(t){var r,n,o;return ks().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.plugins=t,r=bb(t),e.prev=2,r.s();case 4:if((n=r.n()).done){e.next=20;break}if(o=n.value,e.prev=6,this.registerComponents(o.components,o.name),this.registerModels(o.models,o.name),o.activate&&this.activates.push(o.activate),!o.register){e.next=13;break}return e.next=13,o.register(this.name,this.book);case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(6),console.log(e.t0);case 18:e.next=4;break;case 20:e.next=25;break;case 22:e.prev=22,e.t1=e.catch(2),r.e(e.t1);case 25:return e.prev=25,r.f(),e.finish(25);case 28:case"end":return e.stop()}}),e,this,[[2,22,25,28],[6,15]])}))),function(e){return n.apply(this,arguments)})},{key:"createApp",value:(r=xs()(ks().mark((function e(t){var r,n,o,i,a,s=this;return ks().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=navigator.language,e.next=3,this.loadMessages(r,t);case 3:return n=e.sent,o=If(this.models,Eb({book:this.book,components:this.components},this.initialState)),i=function(e){var t=e.children;return(0,Zl.jsx)(Zl.Fragment,{children:t})},a=function(e){var t=e.children,r=(0,Zl.jsx)(By,{role:"activate:".concat(s.name),props:{children:t,name:s.name},component:i});return s.activates.reduce((function(e,t){var r=t(s.name);return void 0!==r?(0,Zl.jsx)(Zl.Fragment,{children:r}):e}),r)},e.abrupt("return",(function(e){var t=e.children;return(0,Zl.jsx)(Bf,{store:o,children:(0,Zl.jsxs)(ib,{context:s.name,children:[(0,Zl.jsx)(cb,{}),(0,Zl.jsx)(yb,{locale:r,messages:n,children:(0,Zl.jsx)(a,{children:t})})]})})}));case 8:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"loadMessages",value:(t=xs()(ks().mark((function e(t,r){return ks().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.plugins.reduce(function(){var e=xs()(ks().mark((function e(r,n){var o;return ks().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=pb,e.next=3,r;case 3:if(e.t1=e.sent,o=(0,e.t0)(e.t1),!n.localize){e.next=15;break}return e.t2=Object,e.t3={},e.t4=o,e.t5=pb,e.next=12,n.localize(t);case 12:return e.t6=e.sent,e.t7=(0,e.t5)(e.t6),e.abrupt("return",e.t2.assign.call(e.t2,e.t3,e.t4,e.t7));case 15:return e.abrupt("return",o);case 16:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}(),r(t));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e,r){return t.apply(this,arguments)})}]),e}();function Sb(e,t,r,n,o,i){return Db.apply(this,arguments)}function Db(){return Db=xs()(ks().mark((function e(t,r,n,o,i,a){var s,c;return ks().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,$y(r,a);case 2:return s=e.sent,(c=new kb(t,r,o)).registerModels(n),e.next=7,c.registerPlugins(s);case 7:return e.next=9,c.createApp(i);case 9:return e.abrupt("return",e.sent);case 10:case"end":return e.stop()}}),e)}))),Db.apply(this,arguments)}function Pb(e){return function(e){const{actions:t}=(0,Yl.useContext)(Lf);return e?t[e]:t}(e)}function Ab(e){return Mf(e)}function Cb(e){return[Ab(e),Pb(e)]}function Ob(e){var t=(0,Yl.useRef)(null),r=(0,Yl.useState)(e),n=Uf()(r,2),o=n[0],i=n[1];return(0,Yl.useEffect)((function(){t.current&&(t.current(),t.current=null)}),[o]),[o,function(e,r){t.current="function"==typeof r?r:null,i(e)}]}function Fb(){var e=document.currentScript;if(!e)throw new Error("Automatic publicPath is not supported in this browser");return e.src.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/")}var jb=c()((function e(t){var r=t.name,n=t.meta,o=t.models,i=void 0===o?{}:o,a=t.components,s=void 0===a?{}:a,c=t.activate,u=t.register,l=t.localize,f=t.config;Hl()(this,e),rf()(this,"name",void 0),rf()(this,"config",void 0),rf()(this,"localize",void 0),rf()(this,"models",void 0),rf()(this,"components",void 0),rf()(this,"activate",void 0),rf()(this,"register",void 0),rf()(this,"meta",void 0),this.name=r,this.meta=n,this.models=i,this.components=s,this.activate=c,this.register=u,this.localize=l,this.config=f}));function Tb(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _b(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Rb(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_b(Object(r),!0).forEach((function(t){rf()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_b(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Ib=function(e){return Fn(e,"root")},Lb=function(e){return Fn(e,"element")},Bb=function(e){return Fn(e,"text")};function Mb(e){return e.filter((function(e){return!(Bb(e)&&"\n"===e.value)}))}function Nb(e,t,r){var n=t.properties,o=t.tagName,i=Rb({},n);r.prefix&&(r.key++,i.key=r.prefix+r.key);for(var a=[],s=Mb(t.children),c=s?s.length:0,u=-1;++u<c;){var l=s[u];Lb(l)?a.push(Nb(e,l,r)):Bb(l)&&a.push(l.value)}return e.call(t,o,i,a.length>0?a:void 0)}function Hb(e,t){var r=t.extensions,n=void 0===r?[]:r,o=t.creator,i=void 0===o?Xl().createElement:o,a={allowDangerousHtml:!1,handlers:Rb(Rb({},n.reduce((function(e,t){return Object.assign(e,t)}),{})),{},{textDirective:function(e,t){return{type:"element",tagName:"textDirective",properties:{name:t.name,attributes:t.attributes},children:e.all(t)}},leafDirective:function(e,t){return{type:"element",tagName:"leafDirective",properties:{name:t.name,attributes:t.attributes},children:e.all(t)}},containerDirective:function(e,t){"children"in t||(t.children=[]);var r,n=!1,o=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return Tb(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Tb(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}(t.children);try{for(o.s();!(r=o.n()).done;){var i;if(null!==(i=r.value.data)&&void 0!==i&&i.directiveLabel){n=!0;break}}}catch(e){o.e(e)}finally{o.f()}return n||t.children.unshift({type:"paragraph",children:[{type:"text",value:""}]}),{type:"element",tagName:"containerDirective",properties:{name:t.name,attributes:t.attributes},children:e.all(t)}},heading:function(e,t){return e.applyData(t,{type:"element",tagName:"heading",properties:{depth:t.depth},children:e.all(t)})}}),unknownHandler:function(){}},s=Lv(e,a);if(Ib(s))return Mb(s.children).map((function(e,t){return Lb(e)?Nb(i,e,{key:0,prefix:"h-".concat(t,"-")}):Bb(e)?e.value:void 0}));if(!Lb(s))throw new Error("Expected root or element, not `"+(s&&s.type||s)+"`");return Nb(i,s,{key:0,prefix:"h-"})}var zb=function(e){var t=e.value;return(0,Zl.jsx)("pre",{children:(0,Zl.jsx)("code",{children:t})})},Ub=function(e){var t=e.value;return(0,Zl.jsx)("code",{children:t})},$b=(0,Yl.createContext)({}),qb=$b.Provider,Vb=function(){return(0,Yl.useContext)($b)};function Gb(e,t){return Vb()[e]||t}function Wb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Kb(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Wb(Object(r),!0).forEach((function(t){rf()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wb(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Qb=["video","audio"];function Zb(e){var t=e.name,r=e.attributes,n=e.children,o=Gb(t),i="html:".concat(t);return customElements.get("t-".concat(t))?o=o||"t-".concat(t):Qb.includes(t)||(o=void 0,i="directive:".concat(t)),(0,Zl.jsx)(By,{role:i,props:Kb(Kb({},r),{},{children:n}),component:o})}var Yb=["depth"];function Xb(e){var t=e.depth,r=void 0===t?5:t,n=sv()(e,Yb);return(0,Yl.createElement)("h".concat(r),n)}var Jb,ew={"x-inline":function(e){var t=e.name,r=e.value;return(0,Zl.jsx)(By,{role:"inline:".concat(t),props:{type:"inline",name:t,value:r},component:Ub})},"x-block":function(e){var t=e.name,r=e.value,n=e.parameter;return(0,Zl.jsx)(By,{role:"block:".concat(t),props:{type:"block",name:t,parameter:n,value:r},component:zb})},textDirective:Zb,leafDirective:Zb,containerDirective:function(e){var t=e.name,r=e.attributes,n=e.children,o=Gb(t),i="html:".concat(t),a=Yl.Children.toArray(n),s=Nv()(a),c=s[0],u=Kb({children:s.slice(1),label:c},r);return customElements.get("t-".concat(t))?o=o||"t-".concat(t):Qb.includes(t)||(o=void 0,i="directive:".concat(t)),(0,Zl.jsx)(By,{role:i,props:u,component:o})},heading:function(e){var t=Gb("heading",Xb);return(0,Zl.jsx)(By,{role:"html:heading",props:e,component:t})}},tw=new lv,rw=el({handler:function(e){tw.reset(),Hn(e,"heading",(function(e){var t=e.data||(e.data={}),r=t.hProperties||(t.hProperties={}),n=r.id;n=n?tw.slug(String(n),!0):tw.slug(kt(e)),r.id=n}))}}),nw=["tagName","inject"],ow=["as","children","components","aside","header","footer","css","sectionAs","inject"];function iw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function aw(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?iw(Object(r),!0).forEach((function(t){rf()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):iw(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var sw=function(e){var t=e.tagName,r=e.inject,n=void 0===r||r,o=sv()(e,nw),i=Gb(t,t);return n?ew[t]?(0,Yl.createElement)(ew[t],o):Bv.includes(t)?(0,Zl.jsx)(By,{role:"html:".concat(t),props:o,component:i}):(console.warn("unknown tagName: ".concat(t)),null):(0,Yl.createElement)(i,o)};function cw(e){var t=e.as,r=void 0===t?Yl.Fragment:t,n=e.children,o=e.components,i=void 0===o?{}:o,a=e.aside,s=void 0===a||a,c=e.header,u=e.footer,l=e.css,f=e.sectionAs,h=e.inject,p=void 0===h||h,d=sv()(e,ow),m=(0,Yl.useMemo)((function(){return bl().use(rw).freeze()}),[]),v=(0,Yl.useMemo)((function(){try{var e=m.data("toHastExtensions")||[],t=m.runSync(m.parse(n)),r=null;if(s){var o=Pv(t).map;o&&(r=Hb(o,{extensions:[{link:function(e,t){var r=kt(t.children);return e.applyData(t,{type:"element",tagName:"a",properties:{href:Qi(t.url)},children:[{type:"text",value:r}]})}}]})),"object"===iv()(s)&&(r=(0,Zl.jsxs)(Zl.Fragment,{children:[s.header,r,s.footer]}))}var i=Hb(t,{extensions:e,creator:function(e,t,r){return(0,Yl.createElement)(sw,aw(aw({},t),{},{tagName:e,inject:p}),r)}});return[i,r]}catch(e){return console.log(e),[null,null]}}),[n,s,m,p]),g=Uf()(v,2),y=g[0],b=g[1];return(0,Yl.createElement)(r,d,(0,Zl.jsxs)(qb,{value:i,children:[(0,Zl.jsxs)("article",{children:[c,(0,Zl.jsx)(uw,{$css:l,as:f,children:y}),u]}),b&&(0,Zl.jsx)("aside",{children:b})]}))}var uw=Ap.section(Jb||(Jb=Wf()(["\n -ms-text-size-adjust: 100%;\n -webkit-text-size-adjust: 100%;\n line-height: 1.2;\n word-wrap: break-word;\n\n & > *:first-child {\n margin-top: 0 !important;\n }\n\n & > *:last-child {\n margin-bottom: 0 !important;\n }\n\n h1, h2, h3, h4, h5, h6, p, ul, ol, blockquote, pre, table, audio, video {\n margin: 1em 0;\n line-height: 1.2;\n padding: 0;\n\n &:last-child {\n margin-bottom: 0 !important;\n }\n\n &:first-child {\n margin-top: 0 !important;\n }\n }\n\n p {\n margin: 0;\n line-height: 2;\n }\n\n h1, h2, h3, h4, h5, h6 {\n font-weight: normal;\n\n &.align-right {\n text-align: right;\n }\n\n &.align-center {\n text-align: center;\n }\n }\n\n h1 {\n font-size: 2em;\n line-height: 1.2;\n border-bottom: 1px solid #eeeeee;\n padding-bottom: .5em;\n }\n\n h2 {\n padding-bottom: .4em;\n font-size: 1.3em;\n line-height: 1.2;\n border-bottom: 1px solid #eeeeee\n }\n\n h3 {\n font-size: 1.2em;\n line-height: 1.2;\n }\n\n h4 {\n font-size: 1.1em;\n line-height: 1.2;\n }\n\n h5 {\n font-size: 1em;\n line-height: 1.2;\n }\n\n hr {\n border: 0;\n border-bottom: 1px solid #eeeeee;\n margin-bottom: 0.5em;\n }\n\n ul {\n padding-left: 2em;\n\n ul {\n margin: 0;\n }\n }\n\n ol {\n padding-left: 2em;\n }\n\n li {\n line-height: 2;\n\n &.task-list-item {\n list-style: none;\n position: relative;\n\n input[type=checkbox] {\n position: absolute;\n left: -1.5em;\n top: 0.5em;\n width: 1em;\n height: 1em;\n }\n }\n\n &.align-right {\n text-align: right;\n }\n\n &.align-center {\n text-align: center;\n }\n }\n\n code {\n display: inline-block;\n border-radius: 4px;\n padding: .2em .4em;\n background-color: #f7f7f7;\n word-break: break-all;\n font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;\n white-space: pre;\n line-height: 1.3;\n color: inherit;\n font-size: inherit;\n margin: -.2em .4em;\n }\n\n pre {\n padding: 1.05em;\n overflow: auto;\n line-height: 1.45;\n background-color: #f7f7f7;\n border: 0;\n border-radius: 3px;\n font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;\n font-size: inherit;\n }\n\n\n pre > code {\n display: inline;\n max-width: 100%;\n padding: 0;\n margin: 0;\n overflow: initial;\n line-height: inherit;\n background-color: rgba(0, 0, 0, 0);\n border: 0;\n tab-size: 4;\n }\n\n p {\n &.align-right {\n text-align: right;\n }\n\n &.align-center {\n text-align: center;\n }\n }\n\n table {\n border-collapse: collapse;\n table-layout: fixed;\n width: 100%;\n line-height: 1.8;\n border-spacing: 0;\n\n th {\n text-align: left;\n\n &[align='center'] {\n text-align: center;\n }\n\n &[align='right'] {\n text-align: right;\n }\n }\n\n th, td {\n border: 1px solid #e0e0e0;\n padding: 3px 12px;\n height: 34px;\n }\n\n tr:hover td {\n background-color: #f1f1f1;\n }\n }\n\n img {\n max-width: 100%;\n display: inline-block;\n padding: 3px;\n vertical-align: middle;\n }\n\n a {\n text-decoration: none;\n color: var(--ttw-primary-color, #3c60ff);\n\n &:hover {\n text-decoration: underline;\n }\n }\n\n blockquote {\n padding: 5px 5px 5px 15px;\n color: #777777;\n border-left: 4px solid #dddddd;\n\n &.info {\n border-left-color: #5bc0de;\n color: #5bc0de;\n background-color: #f4f8fa;\n }\n\n &.warning {\n background-color: #fcf8f2;\n border-color: #f0ad4e;\n color: #f0ad4e;\n }\n\n &.danger {\n color: #d9534f;\n background-color: #fdf7f7;\n border-color: #d9534f;\n }\n\n &.success {\n background-color: #f3f8f3;\n border-color: #50af51;\n color: #50af51;\n }\n }\n\n video {\n display: block;\n width: 100%;\n }\n\n audio {\n display: block;\n width: 100%;\n }\n\n html[data-theme=dark] & {\n code {\n background-color: #333437;\n }\n\n pre {\n background-color: #333437;\n }\n\n h1, h2, hr {\n border-color: #404040;\n }\n\n th, td {\n border-color: #404040;\n }\n\n tr:hover td {\n background-color: #333437;\n }\n }\n\n ","\n"])),(function(e){return e.$css})),lw=["onChange","onCompositionStart","onCompositionEnd"];function fw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function hw(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?fw(Object(r),!0).forEach((function(t){rf()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fw(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function pw(e){var t=e.onChange,r=e.onCompositionStart,n=e.onCompositionEnd,o=sv()(e,lw),i=(0,Yl.useRef)(!1),a=(0,Yl.useCallback)((function(e){i.current||null==t||t(e)}),[t]),s=(0,Yl.useCallback)((function(e){i.current=!0,null==r||r(e)}),[r]),c=(0,Yl.useCallback)((function(e){i.current=!1,null==t||t(e),null==n||n(e)}),[n,t]);return(0,Zl.jsx)("input",hw(hw({},o),{},{onChange:a,onCompositionStart:s,onCompositionEnd:c}))}function dw(e){var t=(0,Yl.useRef)();return(0,Yl.useEffect)((function(){t.current=e}),[e]),t.current}function mw(e){var t=(0,Yl.useRef)(e);(0,Yl.useEffect)((function(){return document.title=e,function(){document.title=t.current}}),[e])}function vw(e,t,r){var n=(0,Yl.useRef)(e),o=(0,Yl.useRef)((0,pf.debounce)(e,t,r));return(0,Yl.useEffect)((function(){n.current=e})),(0,Yl.useEffect)((function(){o.current=(0,pf.debounce)((function(){n.current.apply(n,arguments)}),t,r)}),[t,r]),o.current}function gw(e,t,r){var n=(0,Yl.useRef)(e),o=(0,Yl.useRef)((0,pf.throttle)(e,t,r));return(0,Yl.useEffect)((function(){n.current=e})),(0,Yl.useEffect)((function(){o.current=(0,pf.throttle)((function(){n.current.apply(n,arguments)}),t,r)}),[t,r]),o.current}function yw(){return Mf("options")}var bw=new EventTarget;function ww(){return bw}function xw(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=(0,Yl.useState)((function(){return window.localStorage.getItem(e)||t})),n=Uf()(r,2),o=n[0],i=n[1],a=(0,Yl.useCallback)((function(t){i(t),window.localStorage.setItem(e,t)}),[i,e]);(0,Yl.useEffect)((function(){var r=window.localStorage.getItem(e);o!==r&&i(r||t)}));var s=(0,Yl.useCallback)((function(r){r.key===e&&r.newValue!==o&&i(r.newValue||t)}),[o]);return(0,Yl.useEffect)((function(){return window.addEventListener("storage",s),function(){return window.removeEventListener("storage",s)}}),[s]),[o,a]}function Ew(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.document;"string"==typeof e&&(e=(new DOMParser).parseFromString(e,"text/html"));var t=e.querySelector('script[type="application/payload+json"]');if(t)try{return JSON.parse(t.innerHTML)}catch(e){return{}}}var kw=Object.freeze({__proto__:null,decode:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(null===e)return"";try{return decodeURIComponent(escape(window.atob(e)))}catch(e){if(t)throw e;return""}},encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(null===e)return"";try{return window.btoa(unescape(encodeURIComponent(e)))}catch(e){if(t)throw e;return""}}});function Sw(){return"undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform)}var Dw="1.0.0"},7625:(e,t,r)=>{"use strict";var n=r(7499),o=r(6809),i=r(5075),a=r(3200),s=r(6128),c=r(9361),u=r(6302),l=r(3158),f=r(1760);e.exports=g,g.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},g.prototype.compile=function(e,t){var r=this._addSchema(e,void 0,t);return r.validate||this._compile(r)},g.prototype.addSchema=function(e,t,r,n){if(Array.isArray(e)){for(var i=0;i<e.length;i++)this.addSchema(e[i],void 0,r,n);return this}var a=this._getId(e);if(void 0!==a&&"string"!=typeof a)throw new Error("schema id must be string");return k(this,t=o.normalizeId(t||a)),this._schemas[t]=this._addSchema(e,r,n,!0),this},g.prototype.addMetaSchema=function(e,t,r){return this.addSchema(e,t,r,!0),this},g.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(d)?d:void 0,e._opts.defaultMeta}(this)))return this.logger.warn("meta-schema not available"),this.errors=null,!0;var n=this.validate(r,e);if(!n&&t){var o="schema is invalid: "+this.errorsText();if("log"!=this._opts.validateSchema)throw new Error(o);this.logger.error(o)}return n},g.prototype.getSchema=function(e){var t=y(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=o.schema.call(e,{schema:{}},t);if(r){var i=r.schema,s=r.root,c=r.baseId,u=n.call(e,i,s,void 0,c);return e._fragments[t]=new a({ref:t,fragment:!0,schema:i,root:s,baseId:c,validate:u}),u}}(this,e)}},g.prototype.removeSchema=function(e){if(e instanceof RegExp)return b(this,this._schemas,e),b(this,this._refs,e),this;switch(typeof e){case"undefined":return b(this,this._schemas),b(this,this._refs),this._cache.clear(),this;case"string":var t=y(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=o.normalizeId(i),delete this._schemas[i],delete this._refs[i])}return this},g.prototype.addFormat=function(e,t){"string"==typeof t&&(t=new RegExp(t));return this._formats[e]=t,this},g.prototype.errorsText=function(e,t){if(!(e=e||this.errors))return"No errors";for(var r=void 0===(t=t||{}).separator?", ":t.separator,n=void 0===t.dataVar?"data":t.dataVar,o="",i=0;i<e.length;i++){var a=e[i];a&&(o+=n+a.dataPath+" "+a.message+r)}return o.slice(0,-r.length)},g.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,s=i?i(e):e,c=this._cache.get(s);if(c)return c;n=n||!1!==this._opts.addUsedSchema;var u=o.normalizeId(this._getId(e));u&&n&&k(this,u);var l,f=!1!==this._opts.validateSchema&&!t;f&&!(l=u&&u==o.normalizeId(e.$schema))&&this.validateSchema(e,!0);var h=o.ids.call(this,e),p=new a({id:u,schema:e,localRefs:h,cacheKey:s,meta:r});"#"!=u[0]&&n&&(this._refs[u]=p);this._cache.put(s,p),f&&l&&this.validateSchema(e,!0);return p},g.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,o;e.compiling=!0,e.meta&&(r=this._opts,this._opts=this._metaOpts);try{o=n.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=o,e.refs=o.refs,e.refVal=o.refVal,e.root=o.root,o;function i(){var t=e.validate,r=t.apply(this,arguments);return i.errors=t.errors,r}},g.prototype.compileAsync=r(8559);var h=r(3114);g.prototype.addKeyword=h.add,g.prototype.getKeyword=h.get,g.prototype.removeKeyword=h.remove,g.prototype.validateKeyword=h.validate;var p=r(6720);g.ValidationError=p.Validation,g.MissingRefError=p.MissingRef,g.$dataMetaSchema=l;var d="http://json-schema.org/draft-07/schema",m=["removeAdditional","useDefaults","coerceTypes","strictDefaults"],v=["/properties"];function g(e){if(!(this instanceof g))return new g(e);e=this._opts=f.copy(e)||{},function(e){var t=e._opts.logger;if(!1===t)e.logger={log:S,warn:S,error:S};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=c(e.format),this._cache=e.cache||new i,this._loadingSchemas={},this._compilations=[],this.RULES=u(),this._getId=function(e){switch(e.schemaId){case"auto":return E;case"id":return w;default:return x}}(e),e.loopRequired=e.loopRequired||1/0,"property"==e.errorDataPath&&(e._errorDataPathProperty=!0),void 0===e.serialize&&(e.serialize=s),this._metaOpts=function(e){for(var t=f.copy(e._opts),r=0;r<m.length;r++)delete t[m[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=r(4862),e.addMetaSchema(t,t.$id,!0));if(!1===e._opts.meta)return;var n=r(4502);e._opts.$data&&(n=l(n,v));e.addMetaSchema(n,d,!0),e._refs["http://json-schema.org/schema"]=d}(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 y(e,t){return t=o.normalizeId(t),e._schemas[t]||e._refs[t]||e._fragments[t]}function b(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 w(e){return e.$id&&this.logger.warn("schema $id ignored",e.$id),e.id}function x(e){return e.id&&this.logger.warn("schema id ignored",e.id),e.$id}function E(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 k(e,t){if(e._schemas[t]||e._refs[t])throw new Error('schema with key or id "'+t+'" already exists')}function S(){}},5075:e=>{"use strict";var t=e.exports=function(){this._cache={}};t.prototype.put=function(e,t){this._cache[e]=t},t.prototype.get=function(e){return this._cache[e]},t.prototype.del=function(e){delete this._cache[e]},t.prototype.clear=function(){this._cache={}}},8559:(e,t,r)=>{"use strict";var n=r(6720).MissingRef;e.exports=function e(t,r,o){var i=this;if("function"!=typeof this._opts.loadSchema)throw new Error("options.loadSchema should be a function");"function"==typeof r&&(o=r,r=void 0);var a=s(t).then((function(){var e=i._addSchema(t,void 0,r);return e.validate||c(e)}));o&&a.then((function(e){o(null,e)}),o);return a;function s(t){var r=t.$schema;return r&&!i.getSchema(r)?e.call(i,{$ref:r},!0):Promise.resolve()}function c(e){try{return i._compile(e)}catch(t){if(t instanceof n)return function(t){var n=t.missingSchema;if(u(n))throw new Error("Schema "+n+" is loaded but "+t.missingRef+" cannot be resolved");var o=i._loadingSchemas[n];o||(o=i._loadingSchemas[n]=i._opts.loadSchema(n)).then(a,a);return o.then((function(e){if(!u(n))return s(e).then((function(){u(n)||i.addSchema(e,n,void 0,r)}))})).then((function(){return c(e)}));function a(){delete i._loadingSchemas[n]}function u(e){return i._refs[e]||i._schemas[e]}}(t);throw t}}}},6720:(e,t,r)=>{"use strict";var n=r(6809);function o(e,t,r){this.message=r||o.message(e,t),this.missingRef=n.url(e,t),this.missingSchema=n.normalizeId(n.fullPath(this.missingRef))}function i(e){return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}e.exports={Validation:i((function(e){this.message="validation failed",this.errors=e,this.ajv=this.validation=!0})),MissingRef:i(o)},o.message=function(e,t){return"can't resolve reference "+t+" from id "+e}},9361:(e,t,r)=>{"use strict";var n=r(1760),o=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,i=[0,31,28,31,30,31,30,31,31,30,31,30,31],a=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,s=/^(?=.{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,c=/^(?:[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,u=/^(?:(?:[^\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,l=/^(?:(?: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,f=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,h=/^(?:\/(?:[^~/]|~0|~1)*)*$/,p=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,d=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;function m(e){return e="full"==e?"full":"fast",n.copy(m[e])}function v(e){var t=e.match(o);if(!t)return!1;var r=+t[1],n=+t[2],a=+t[3];return n>=1&&n<=12&&a>=1&&a<=(2==n&&function(e){return e%4==0&&(e%100!=0||e%400==0)}(r)?29:i[n])}function g(e,t){var r=e.match(a);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)}e.exports=m,m.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":u,url:l,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:s,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:x,uuid:f,"json-pointer":h,"json-pointer-uri-fragment":p,"relative-json-pointer":d},m.full={date:v,time:g,"date-time":function(e){var t=e.split(y);return 2==t.length&&v(t[0])&&g(t[1],!0)},uri:function(e){return b.test(e)&&c.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":u,url:l,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:s,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:x,uuid:f,"json-pointer":h,"json-pointer-uri-fragment":p,"relative-json-pointer":d};var y=/t|\s/i;var b=/\/|:/;var w=/[^\\]\\Z/;function x(e){if(w.test(e))return!1;try{return new RegExp(e),!0}catch(e){return!1}}},7499:(e,t,r)=>{"use strict";var n=r(6809),o=r(1760),i=r(6720),a=r(6128),s=r(3833),c=o.ucs2length,u=r(5490),l=i.Validation;function f(e,t,r){var n=p.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 h(e,t,r){var n=p.call(this,e,t,r);n>=0&&this._compilations.splice(n,1)}function p(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 d(e,t){return"var pattern"+e+" = new RegExp("+o.toQuotedString(t[e])+");"}function m(e){return"var default"+e+" = defaults["+e+"];"}function v(e,t){return void 0===t[e]?"":"var refVal"+e+" = refVal["+e+"];"}function g(e){return"var customRule"+e+" = customRules["+e+"];"}function y(e,t){if(!e.length)return"";for(var r="",n=0;n<e.length;n++)r+=t(n,e);return r}e.exports=function e(t,r,p,b){var w=this,x=this._opts,E=[void 0],k={},S=[],D={},P=[],A={},C=[];r=r||{schema:t,refVal:E,refs:k};var O=f.call(this,t,r,b),F=this._compilations[O.index];if(O.compiling)return F.callValidate=function e(){var t=F.validate,r=t.apply(this,arguments);return e.errors=t.errors,r};var j=this._formats,T=this.RULES;try{var _=I(t,r,p,b);F.validate=_;var R=F.callValidate;return R&&(R.schema=_.schema,R.errors=null,R.refs=_.refs,R.refVal=_.refVal,R.root=_.root,R.$async=_.$async,x.sourceCode&&(R.source=_.source)),_}finally{h.call(this,t,r,b)}function I(t,a,f,h){var p=!a||a&&a.schema==t;if(a.schema!=r.schema)return e.call(w,t,a,f,h);var b,D=!0===t.$async,A=s({isTop:!0,schema:t,isRoot:p,baseId:h,root:a,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:i.MissingRef,RULES:T,validate:s,util:o,resolve:n,resolveRef:L,usePattern:N,useDefault:H,useCustomRule:z,opts:x,formats:j,logger:w.logger,self:w});A=y(E,v)+y(S,d)+y(P,m)+y(C,g)+A,x.processCode&&(A=x.processCode(A,t));try{b=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",A)(w,T,j,r,E,P,C,u,c,l),E[0]=b}catch(e){throw w.logger.error("Error compiling schema, function code:",A),e}return b.schema=t,b.errors=null,b.refs=k,b.refVal=E,b.root=p?b:a,D&&(b.$async=!0),!0===x.sourceCode&&(b.source={code:A,patterns:S,defaults:P}),b}function L(t,o,i){o=n.url(t,o);var a,s,c=k[o];if(void 0!==c)return M(a=E[c],s="refVal["+c+"]");if(!i&&r.refs){var u=r.refs[o];if(void 0!==u)return M(a=r.refVal[u],s=B(o,a))}s=B(o);var l=n.call(w,I,r,o);if(void 0===l){var f=p&&p[o];f&&(l=n.inlineRef(f,x.inlineRefs)?f:e.call(w,f,r,p,t))}if(void 0!==l)return function(e,t){var r=k[e];E[r]=t}(o,l),M(l,s);!function(e){delete k[e]}(o)}function B(e,t){var r=E.length;return E[r]=t,k[e]=r,"refVal"+r}function M(e,t){return"object"==typeof e||"boolean"==typeof e?{code:t,schema:e,inline:!0}:{code:t,$async:e&&!!e.$async}}function N(e){var t=D[e];return void 0===t&&(t=D[e]=S.length,S[t]=e),"pattern"+t}function H(e){switch(typeof e){case"boolean":case"number":return""+e;case"string":return o.toQuotedString(e);case"object":if(null===e)return"null";var t=a(e),r=A[t];return void 0===r&&(r=A[t]=P.length,P[r]=e),"default"+r}}function z(e,t,r,n){if(!1!==w._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 i=e.definition.validateSchema;if(i)if(!i(t)){var a="keyword schema is invalid: "+w.errorsText(i.errors);if("log"!=w._opts.validateSchema)throw new Error(a);w.logger.error(a)}}var s,c=e.definition.compile,u=e.definition.inline,l=e.definition.macro;if(c)s=c.call(w,t,r,n);else if(l)s=l.call(w,t,r,n),!1!==x.validateSchema&&w.validateSchema(s,!0);else if(u)s=u.call(w,n,e.keyword,t,r);else if(!(s=e.definition.validate))return;if(void 0===s)throw new Error('custom keyword "'+e.keyword+'"failed to compile');var f=C.length;return C[f]=s,{code:"customRule"+f,validate:s}}}},6809:(e,t,r)=>{"use strict";var n=r(5648),o=r(5490),i=r(1760),a=r(3200),s=r(276);function c(e,t,r){var n=this._refs[r];if("string"==typeof n){if(!this._refs[n])return c.call(this,e,t,n);n=this._refs[n]}if((n=n||this._schemas[r])instanceof a)return d(n.schema,this._opts.inlineRefs)?n.schema:n.validate||this._compile(n);var o,i,s,l=u.call(this,t,r);return l&&(o=l.schema,t=l.root,s=l.baseId),o instanceof a?i=o.validate||e.call(this,o.schema,t,void 0,s):void 0!==o&&(i=d(o,this._opts.inlineRefs)?o:e.call(this,o,t,void 0,s)),i}function u(e,t){var r=n.parse(t),o=y(r),i=g(this._getId(e.schema));if(0===Object.keys(e.schema).length||o!==i){var s=w(o),c=this._refs[s];if("string"==typeof c)return l.call(this,e,c,r);if(c instanceof a)c.validate||this._compile(c),e=c;else{if(!((c=this._schemas[s])instanceof a))return;if(c.validate||this._compile(c),s==w(t))return{schema:c,root:e,baseId:i};e=c}if(!e.schema)return;i=g(this._getId(e.schema))}return h.call(this,r,i,e.schema,e)}function l(e,t,r){var n=u.call(this,e,t);if(n){var o=n.schema,i=n.baseId;e=n.root;var a=this._getId(o);return a&&(i=x(i,a)),h.call(this,r,i,o,e)}}e.exports=c,c.normalizeId=w,c.fullPath=g,c.url=x,c.ids=function(e){var t=w(this._getId(e)),r={"":t},a={"":g(t,!1)},c={},u=this;return s(e,{allKeys:!0},(function(e,t,s,l,f,h,p){if(""!==t){var d=u._getId(e),m=r[l],v=a[l]+"/"+f;if(void 0!==p&&(v+="/"+("number"==typeof p?p:i.escapeFragment(p))),"string"==typeof d){d=m=w(m?n.resolve(m,d):d);var g=u._refs[d];if("string"==typeof g&&(g=u._refs[g]),g&&g.schema){if(!o(e,g.schema))throw new Error('id "'+d+'" resolves to more than one schema')}else if(d!=w(v))if("#"==d[0]){if(c[d]&&!o(e,c[d]))throw new Error('id "'+d+'" resolves to more than one schema');c[d]=e}else u._refs[d]=v}r[t]=m,a[t]=v}})),c},c.inlineRef=d,c.schema=u;var f=i.toHash(["properties","patternProperties","enum","dependencies","definitions"]);function h(e,t,r,n){if(e.fragment=e.fragment||"","/"==e.fragment.slice(0,1)){for(var o=e.fragment.split("/"),a=1;a<o.length;a++){var s=o[a];if(s){if(void 0===(r=r[s=i.unescapeFragment(s)]))break;var c;if(!f[s]&&((c=this._getId(r))&&(t=x(t,c)),r.$ref)){var l=x(t,r.$ref),h=u.call(this,n,l);h&&(r=h.schema,n=h.root,t=h.baseId)}}}return void 0!==r&&r!==n.schema?{schema:r,root:n,baseId:t}:void 0}}var p=i.toHash(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum"]);function d(e,t){return!1!==t&&(void 0===t||!0===t?m(e):t?v(e)<=t:void 0)}function m(e){var t;if(Array.isArray(e)){for(var r=0;r<e.length;r++)if("object"==typeof(t=e[r])&&!m(t))return!1}else for(var n in e){if("$ref"==n)return!1;if("object"==typeof(t=e[n])&&!m(t))return!1}return!0}function v(e){var t,r=0;if(Array.isArray(e)){for(var n=0;n<e.length;n++)if("object"==typeof(t=e[n])&&(r+=v(t)),r==1/0)return 1/0}else for(var o in e){if("$ref"==o)return 1/0;if(p[o])r++;else if("object"==typeof(t=e[o])&&(r+=v(t)+1),r==1/0)return 1/0}return r}function g(e,t){return!1!==t&&(e=w(e)),y(n.parse(e))}function y(e){return n.serialize(e).split("#")[0]+"#"}var b=/#\/?$/;function w(e){return e?e.replace(b,""):""}function x(e,t){return t=w(t),n.resolve(e,t)}},6302:(e,t,r)=>{"use strict";var n=r(112),o=r(1760).toHash;e.exports=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=o(t),e.types=o(["number","integer","string","array","object","boolean","null"]),e.forEach((function(r){r.rules=r.rules.map((function(r){var o;if("object"==typeof r){var i=Object.keys(r)[0];o=r[i],r=i,o.forEach((function(r){t.push(r),e.all[r]=!0}))}return t.push(r),e.all[r]={keyword:r,code:n[r],implements:o}})),e.all.$comment={keyword:"$comment",code:n.$comment},r.type&&(e.types[r.type]=r)})),e.keywords=o(t.concat(["$schema","$id","id","$data","$async","title","description","default","definitions","examples","readOnly","writeOnly","contentMediaType","contentEncoding","additionalItems","then","else"])),e.custom={},e}},3200:(e,t,r)=>{"use strict";var n=r(1760);e.exports=function(e){n.copy(e,this)}},1554:e=>{"use strict";e.exports=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}},1760:(e,t,r)=>{"use strict";function n(e,t,r,n){var o=n?" !== ":" === ",i=n?" || ":" && ",a=n?"!":"",s=n?"":"!";switch(e){case"null":return t+o+"null";case"array":return a+"Array.isArray("+t+")";case"object":return"("+a+t+i+"typeof "+t+o+'"object"'+i+s+"Array.isArray("+t+"))";case"integer":return"(typeof "+t+o+'"number"'+i+s+"("+t+" % 1)"+i+t+o+t+(r?i+a+"isFinite("+t+")":"")+")";case"number":return"(typeof "+t+o+'"'+e+'"'+(r?i+a+"isFinite("+t+")":"")+")";default:return"typeof "+t+o+'"'+e+'"'}}e.exports={copy:function(e,t){for(var r in t=t||{},e)t[r]=e[r];return t},checkDataType:n,checkDataTypes:function(e,t,r){if(1===e.length)return n(e[0],t,r,!0);var o="",a=i(e);for(var s in a.array&&a.object&&(o=a.null?"(":"(!"+t+" || ",o+="typeof "+t+' !== "object")',delete a.null,delete a.array,delete a.object),a.number&&delete a.integer,a)o+=(o?" && ":"")+n(s,t,r,!0);return o},coerceToTypes:function(e,t){if(Array.isArray(t)){for(var r=[],n=0;n<t.length;n++){var i=t[n];(o[i]||"array"===e&&"array"===i)&&(r[r.length]=i)}if(r.length)return r}else{if(o[t])return[t];if("array"===e&&"array"===t)return["array"]}},toHash:i,getProperty:c,escapeQuotes:u,equal:r(5490),ucs2length:r(1554),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:l,getPathExpr:function(e,t,r,n){return p(e,r?"'/' + "+t+(n?"":".replace(/~/g, '~0').replace(/\\//g, '~1')"):n?"'[' + "+t+" + ']'":"'[\\'' + "+t+" + '\\']'")},getPath:function(e,t,r){var n=l(r?"/"+d(t):c(t));return p(e,n)},getData:function(e,t,r){var n,o,i,a;if(""===e)return"rootData";if("/"==e[0]){if(!f.test(e))throw new Error("Invalid JSON-pointer: "+e);o=e,i="rootData"}else{if(!(a=e.match(h)))throw new Error("Invalid JSON-pointer: "+e);if(n=+a[1],"#"==(o=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(i="data"+(t-n||""),!o)return i}for(var s=i,u=o.split("/"),l=0;l<u.length;l++){var p=u[l];p&&(s+=" && "+(i+=c(m(p))))}return s},unescapeFragment:function(e){return m(decodeURIComponent(e))},unescapeJsonPointer:m,escapeFragment:function(e){return encodeURIComponent(d(e))},escapeJsonPointer:d};var o=i(["string","number","integer","boolean","null"]);function i(e){for(var t={},r=0;r<e.length;r++)t[e[r]]=!0;return t}var a=/^[a-z$_][a-z$_0-9]*$/i,s=/'|\\/g;function c(e){return"number"==typeof e?"["+e+"]":a.test(e)?"."+e:"['"+u(e)+"']"}function u(e){return e.replace(s,"\\$&").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\f/g,"\\f").replace(/\t/g,"\\t")}function l(e){return"'"+u(e)+"'"}var f=/^\/(?:[^~]|~0|~1)*$/,h=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function p(e,t){return'""'==e?t:(e+" + "+t).replace(/([^\\])' \+ '/g,"$1")}function d(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function m(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}},3158:e=>{"use strict";var t=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","enum","format","const"];e.exports=function(e,r){for(var n=0;n<r.length;n++){e=JSON.parse(JSON.stringify(e));var o,i=r[n].split("/"),a=e;for(o=1;o<i.length;o++)a=a[i[o]];for(o=0;o<t.length;o++){var s=t[o],c=a[s];c&&(a[s]={anyOf:[c,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]})}}return e}},1448:(e,t,r)=>{"use strict";var n=r(4502);e.exports={$id:"https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js",definitions:{simpleTypes:n.definitions.simpleTypes},type:"object",dependencies:{schema:["validate"],$data:["validate"],statements:["inline"],valid:{not:{required:["macro"]}}},properties:{type:n.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"}]}}}},6457:e=>{"use strict";e.exports=function(e,t,r){var n,o=" ",i=e.level,a=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,f="data"+(a||""),h=e.opts.$data&&s&&s.$data;h?(o+=" var schema"+i+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",n="schema"+i):n=s;var p="maximum"==t,d=p?"exclusiveMaximum":"exclusiveMinimum",m=e.schema[d],v=e.opts.$data&&m&&m.$data,g=p?"<":">",y=p?">":"<",b=void 0;if(!h&&"number"!=typeof s&&void 0!==s)throw new Error(t+" must be number");if(!v&&void 0!==m&&"number"!=typeof m&&"boolean"!=typeof m)throw new Error(d+" must be number or boolean");if(v){var w=e.util.getData(m.$data,a,e.dataPathArr),x="exclusive"+i,E="exclType"+i,k="exclIsNumber"+i,S="' + "+(A="op"+i)+" + '";o+=" var schemaExcl"+i+" = "+w+"; ",o+=" var "+x+"; var "+E+" = typeof "+(w="schemaExcl"+i)+"; if ("+E+" != 'boolean' && "+E+" != 'undefined' && "+E+" != 'number') { ";var D;b=d;(D=D||[]).push(o),o="",!1!==e.createErrors?(o+=" { keyword: '"+(b||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , 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: "+f+" "),o+=" } "):o+=" {} ";var P=o;o=D.pop(),!e.compositeRule&&l?e.async?o+=" throw new ValidationError(["+P+"]); ":o+=" validate.errors = ["+P+"]; return false; ":o+=" var err = "+P+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+=" } else if ( ",h&&(o+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),o+=" "+E+" == 'number' ? ( ("+x+" = "+n+" === undefined || "+w+" "+g+"= "+n+") ? "+f+" "+y+"= "+w+" : "+f+" "+y+" "+n+" ) : ( ("+x+" = "+w+" === true) ? "+f+" "+y+"= "+n+" : "+f+" "+y+" "+n+" ) || "+f+" !== "+f+") { var op"+i+" = "+x+" ? '"+g+"' : '"+g+"='; ",void 0===s&&(b=d,u=e.errSchemaPath+"/"+d,n=w,h=v)}else{S=g;if((k="number"==typeof m)&&h){var A="'"+S+"'";o+=" if ( ",h&&(o+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),o+=" ( "+n+" === undefined || "+m+" "+g+"= "+n+" ? "+f+" "+y+"= "+m+" : "+f+" "+y+" "+n+" ) || "+f+" !== "+f+") { "}else{k&&void 0===s?(x=!0,b=d,u=e.errSchemaPath+"/"+d,n=m,y+="="):(k&&(n=Math[p?"min":"max"](m,s)),m===(!k||n)?(x=!0,b=d,u=e.errSchemaPath+"/"+d,y+="="):(x=!1,S+="="));A="'"+S+"'";o+=" if ( ",h&&(o+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),o+=" "+f+" "+y+" "+n+" || "+f+" !== "+f+") { "}}b=b||t,(D=D||[]).push(o),o="",!1!==e.createErrors?(o+=" { keyword: '"+(b||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { comparison: "+A+", limit: "+n+", exclusive: "+x+" } ",!1!==e.opts.messages&&(o+=" , message: 'should be "+S+" ",o+=h?"' + "+n:n+"'"),e.opts.verbose&&(o+=" , schema: ",o+=h?"validate.schema"+c:""+s,o+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),o+=" } "):o+=" {} ";P=o;return o=D.pop(),!e.compositeRule&&l?e.async?o+=" throw new ValidationError(["+P+"]); ":o+=" validate.errors = ["+P+"]; return false; ":o+=" var err = "+P+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+=" } ",l&&(o+=" else { "),o}},496:e=>{"use strict";e.exports=function(e,t,r){var n,o=" ",i=e.level,a=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,f="data"+(a||""),h=e.opts.$data&&s&&s.$data;if(h?(o+=" var schema"+i+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",n="schema"+i):n=s,!h&&"number"!=typeof s)throw new Error(t+" must be number");o+="if ( ",h&&(o+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),o+=" "+f+".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(u)+" , params: { limit: "+n+" } ",!1!==e.opts.messages&&(o+=" , message: 'should NOT have ",o+="maxItems"==t?"more":"fewer",o+=" than ",o+=h?"' + "+n+" + '":""+s,o+=" items' "),e.opts.verbose&&(o+=" , schema: ",o+=h?"validate.schema"+c:""+s,o+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),o+=" } "):o+=" {} ";var m=o;return o=d.pop(),!e.compositeRule&&l?e.async?o+=" throw new ValidationError(["+m+"]); ":o+=" validate.errors = ["+m+"]; return false; ":o+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+="} ",l&&(o+=" else { "),o}},4080:e=>{"use strict";e.exports=function(e,t,r){var n,o=" ",i=e.level,a=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,f="data"+(a||""),h=e.opts.$data&&s&&s.$data;if(h?(o+=" var schema"+i+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",n="schema"+i):n=s,!h&&"number"!=typeof s)throw new Error(t+" must be number");var p="maxLength"==t?">":"<";o+="if ( ",h&&(o+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),!1===e.opts.unicode?o+=" "+f+".length ":o+=" ucs2length("+f+") ",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(u)+" , params: { limit: "+n+" } ",!1!==e.opts.messages&&(o+=" , message: 'should NOT be ",o+="maxLength"==t?"longer":"shorter",o+=" than ",o+=h?"' + "+n+" + '":""+s,o+=" characters' "),e.opts.verbose&&(o+=" , schema: ",o+=h?"validate.schema"+c:""+s,o+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),o+=" } "):o+=" {} ";var v=o;return o=m.pop(),!e.compositeRule&&l?e.async?o+=" throw new ValidationError(["+v+"]); ":o+=" validate.errors = ["+v+"]; return false; ":o+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+="} ",l&&(o+=" else { "),o}},5169:e=>{"use strict";e.exports=function(e,t,r){var n,o=" ",i=e.level,a=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,f="data"+(a||""),h=e.opts.$data&&s&&s.$data;if(h?(o+=" var schema"+i+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",n="schema"+i):n=s,!h&&"number"!=typeof s)throw new Error(t+" must be number");o+="if ( ",h&&(o+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),o+=" Object.keys("+f+").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(u)+" , params: { limit: "+n+" } ",!1!==e.opts.messages&&(o+=" , message: 'should NOT have ",o+="maxProperties"==t?"more":"fewer",o+=" than ",o+=h?"' + "+n+" + '":""+s,o+=" properties' "),e.opts.verbose&&(o+=" , schema: ",o+=h?"validate.schema"+c:""+s,o+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),o+=" } "):o+=" {} ";var m=o;return o=d.pop(),!e.compositeRule&&l?e.async?o+=" throw new ValidationError(["+m+"]); ":o+=" validate.errors = ["+m+"]; return false; ":o+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+="} ",l&&(o+=" else { "),o}},1251:e=>{"use strict";e.exports=function(e,t,r){var n=" ",o=e.schema[t],i=e.schemaPath+e.util.getProperty(t),a=e.errSchemaPath+"/"+t,s=!e.opts.allErrors,c=e.util.copy(e),u="";c.level++;var l="valid"+c.level,f=c.baseId,h=!0,p=o;if(p)for(var d,m=-1,v=p.length-1;m<v;)d=p[m+=1],(e.opts.strictKeywords?"object"==typeof d&&Object.keys(d).length>0||!1===d:e.util.schemaHasRules(d,e.RULES.all))&&(h=!1,c.schema=d,c.schemaPath=i+"["+m+"]",c.errSchemaPath=a+"/"+m,n+=" "+e.validate(c)+" ",c.baseId=f,s&&(n+=" if ("+l+") { ",u+="}"));return s&&(n+=h?" if (true) { ":" "+u.slice(0,-1)+" "),n}},4648:e=>{"use strict";e.exports=function(e,t,r){var n=" ",o=e.level,i=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(i||""),f="valid"+o,h="errs__"+o,p=e.util.copy(e),d="";p.level++;var m="valid"+p.level,v=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(v){var g=p.baseId;n+=" var "+h+" = errors; var "+f+" = false; ";var y=e.compositeRule;e.compositeRule=p.compositeRule=!0;var b=a;if(b)for(var w,x=-1,E=b.length-1;x<E;)w=b[x+=1],p.schema=w,p.schemaPath=s+"["+x+"]",p.errSchemaPath=c+"/"+x,n+=" "+e.validate(p)+" ",p.baseId=g,n+=" "+f+" = "+f+" || "+m+"; if (!"+f+") { ",d+="}";e.compositeRule=p.compositeRule=y,n+=" "+d+" if (!"+f+") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'anyOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'should match some schema in anyOf' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&u&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),n+=" } else { errors = "+h+"; if (vErrors !== null) { if ("+h+") vErrors.length = "+h+"; else vErrors = null; } ",e.opts.allErrors&&(n+=" } ")}else u&&(n+=" if (true) { ");return n}},7890:e=>{"use strict";e.exports=function(e,t,r){var n=" ",o=e.schema[t],i=e.errSchemaPath+"/"+t,a=(e.opts.allErrors,e.util.toQuotedString(o));return!0===e.opts.$comment?n+=" console.log("+a+");":"function"==typeof e.opts.$comment&&(n+=" self._opts.$comment("+a+", "+e.util.toQuotedString(i)+", validate.root.schema);"),n}},2508:e=>{"use strict";e.exports=function(e,t,r){var n=" ",o=e.level,i=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(i||""),f="valid"+o,h=e.opts.$data&&a&&a.$data;h&&(n+=" var schema"+o+" = "+e.util.getData(a.$data,i,e.dataPathArr)+"; "),h||(n+=" var schema"+o+" = validate.schema"+s+";"),n+="var "+f+" = equal("+l+", schema"+o+"); if (!"+f+") { ";var p=p||[];p.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'const' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { allowedValue: schema"+o+" } ",!1!==e.opts.messages&&(n+=" , message: 'should be equal to constant' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var d=n;return n=p.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+d+"]); ":n+=" validate.errors = ["+d+"]; return false; ":n+=" var err = "+d+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" }",u&&(n+=" else { "),n}},1269:e=>{"use strict";e.exports=function(e,t,r){var n=" ",o=e.level,i=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(i||""),f="valid"+o,h="errs__"+o,p=e.util.copy(e);p.level++;var d="valid"+p.level,m="i"+o,v=p.dataLevel=e.dataLevel+1,g="data"+v,y=e.baseId,b=e.opts.strictKeywords?"object"==typeof a&&Object.keys(a).length>0||!1===a:e.util.schemaHasRules(a,e.RULES.all);if(n+="var "+h+" = errors;var "+f+";",b){var w=e.compositeRule;e.compositeRule=p.compositeRule=!0,p.schema=a,p.schemaPath=s,p.errSchemaPath=c,n+=" var "+d+" = false; for (var "+m+" = 0; "+m+" < "+l+".length; "+m+"++) { ",p.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers,!0);var x=l+"["+m+"]";p.dataPathArr[v]=m;var E=e.validate(p);p.baseId=y,e.util.varOccurences(E,g)<2?n+=" "+e.util.varReplace(E,g,x)+" ":n+=" var "+g+" = "+x+"; "+E+" ",n+=" if ("+d+") break; } ",e.compositeRule=p.compositeRule=w,n+=" if (!"+d+") {"}else n+=" if ("+l+".length == 0) {";var k=k||[];k.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'contains' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'should contain a valid item' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var S=n;return n=k.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+S+"]); ":n+=" validate.errors = ["+S+"]; return false; ":n+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { ",b&&(n+=" errors = "+h+"; if (vErrors !== null) { if ("+h+") vErrors.length = "+h+"; else vErrors = null; } "),e.opts.allErrors&&(n+=" } "),n}},3800:e=>{"use strict";e.exports=function(e,t,r){var n,o,i=" ",a=e.level,s=e.dataLevel,c=e.schema[t],u=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,f=!e.opts.allErrors,h="data"+(s||""),p="valid"+a,d="errs__"+a,m=e.opts.$data&&c&&c.$data;m?(i+=" var schema"+a+" = "+e.util.getData(c.$data,s,e.dataPathArr)+"; ",o="schema"+a):o=c;var v,g,y,b,w,x=this,E="definition"+a,k=x.definition,S="";if(m&&k.$data){w="keywordValidate"+a;var D=k.validateSchema;i+=" var "+E+" = RULES.custom['"+t+"'].definition; var "+w+" = "+E+".validate;"}else{if(!(b=e.useCustomRule(x,c,e.schema,e)))return;o="validate.schema"+u,w=b.code,v=k.compile,g=k.inline,y=k.macro}var P=w+".errors",A="i"+a,C="ruleErr"+a,O=k.async;if(O&&!e.async)throw new Error("async keyword in sync schema");if(g||y||(i+=P+" = null;"),i+="var "+d+" = errors;var "+p+";",m&&k.$data&&(S+="}",i+=" if ("+o+" === undefined) { "+p+" = true; } else { ",D&&(S+="}",i+=" "+p+" = "+E+".validateSchema("+o+"); if ("+p+") { ")),g)k.statements?i+=" "+b.validate+" ":i+=" "+p+" = "+b.validate+"; ";else if(y){var F=e.util.copy(e);S="";F.level++;var j="valid"+F.level;F.schema=b.validate,F.schemaPath="";var T=e.compositeRule;e.compositeRule=F.compositeRule=!0;var _=e.validate(F).replace(/validate\.schema/g,w);e.compositeRule=F.compositeRule=T,i+=" "+_}else{(B=B||[]).push(i),i="",i+=" "+w+".call( ",e.opts.passContext?i+="this":i+="self",v||!1===k.schema?i+=" , "+h+" ":i+=" , "+o+" , "+h+" , validate.schema"+e.schemaPath+" ",i+=" , (dataPath || '')",'""'!=e.errorPath&&(i+=" + "+e.errorPath);var R=s?"data"+(s-1||""):"parentData",I=s?e.dataPathArr[s]:"parentDataProperty",L=i+=" , "+R+" , "+I+" , rootData ) ";i=B.pop(),!1===k.errors?(i+=" "+p+" = ",O&&(i+="await "),i+=L+"; "):i+=O?" var "+(P="customErrors"+a)+" = null; try { "+p+" = await "+L+"; } catch (e) { "+p+" = false; if (e instanceof ValidationError) "+P+" = e.errors; else throw e; } ":" "+P+" = null; "+p+" = "+L+"; "}if(k.modifying&&(i+=" if ("+R+") "+h+" = "+R+"["+I+"];"),i+=""+S,k.valid)f&&(i+=" if (true) { ");else{var B;i+=" if ( ",void 0===k.valid?(i+=" !",i+=y?""+j:""+p):i+=" "+!k.valid+" ",i+=") { ",n=x.keyword,(B=B||[]).push(i),i="",(B=B||[]).push(i),i="",!1!==e.createErrors?(i+=" { keyword: '"+(n||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { keyword: '"+x.keyword+"' } ",!1!==e.opts.messages&&(i+=" , message: 'should pass \""+x.keyword+"\" keyword validation' "),e.opts.verbose&&(i+=" , schema: validate.schema"+u+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),i+=" } "):i+=" {} ";var M=i;i=B.pop(),!e.compositeRule&&f?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++; ";var N=i;i=B.pop(),g?k.errors?"full"!=k.errors&&(i+=" for (var "+A+"="+d+"; "+A+"<errors; "+A+"++) { var "+C+" = vErrors["+A+"]; if ("+C+".dataPath === undefined) "+C+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+C+".schemaPath === undefined) { "+C+'.schemaPath = "'+l+'"; } ',e.opts.verbose&&(i+=" "+C+".schema = "+o+"; "+C+".data = "+h+"; "),i+=" } "):!1===k.errors?i+=" "+N+" ":(i+=" if ("+d+" == errors) { "+N+" } else { for (var "+A+"="+d+"; "+A+"<errors; "+A+"++) { var "+C+" = vErrors["+A+"]; if ("+C+".dataPath === undefined) "+C+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+C+".schemaPath === undefined) { "+C+'.schemaPath = "'+l+'"; } ',e.opts.verbose&&(i+=" "+C+".schema = "+o+"; "+C+".data = "+h+"; "),i+=" } } "):y?(i+=" var err = ",!1!==e.createErrors?(i+=" { keyword: '"+(n||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { keyword: '"+x.keyword+"' } ",!1!==e.opts.messages&&(i+=" , message: 'should pass \""+x.keyword+"\" keyword validation' "),e.opts.verbose&&(i+=" , schema: validate.schema"+u+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&f&&(e.async?i+=" throw new ValidationError(vErrors); ":i+=" validate.errors = vErrors; return false; ")):!1===k.errors?i+=" "+N+" ":(i+=" if (Array.isArray("+P+")) { if (vErrors === null) vErrors = "+P+"; else vErrors = vErrors.concat("+P+"); errors = vErrors.length; for (var "+A+"="+d+"; "+A+"<errors; "+A+"++) { var "+C+" = vErrors["+A+"]; if ("+C+".dataPath === undefined) "+C+".dataPath = (dataPath || '') + "+e.errorPath+"; "+C+'.schemaPath = "'+l+'"; ',e.opts.verbose&&(i+=" "+C+".schema = "+o+"; "+C+".data = "+h+"; "),i+=" } } else { "+N+" } "),i+=" } ",f&&(i+=" else { ")}return i}},5800:e=>{"use strict";e.exports=function(e,t,r){var n=" ",o=e.level,i=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(i||""),f="errs__"+o,h=e.util.copy(e),p="";h.level++;var d="valid"+h.level,m={},v={},g=e.opts.ownProperties;for(x in a)if("__proto__"!=x){var y=a[x],b=Array.isArray(y)?v:m;b[x]=y}n+="var "+f+" = errors;";var w=e.errorPath;for(var x in n+="var missing"+o+";",v)if((b=v[x]).length){if(n+=" if ( "+l+e.util.getProperty(x)+" !== undefined ",g&&(n+=" && Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(x)+"') "),u){n+=" && ( ";var E=b;if(E)for(var k=-1,S=E.length-1;k<S;){F=E[k+=1],k&&(n+=" || "),n+=" ( ( "+(R=l+(_=e.util.getProperty(F)))+" === undefined ",g&&(n+=" || ! Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(F)+"') "),n+=") && (missing"+o+" = "+e.util.toQuotedString(e.opts.jsonPointers?F:_)+") ) "}n+=")) { ";var D="missing"+o,P="' + "+D+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(w,D,!0):w+" + "+D);var A=A||[];A.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { property: '"+e.util.escapeQuotes(x)+"', missingProperty: '"+P+"', depsCount: "+b.length+", deps: '"+e.util.escapeQuotes(1==b.length?b[0]:b.join(", "))+"' } ",!1!==e.opts.messages&&(n+=" , message: 'should have ",1==b.length?n+="property "+e.util.escapeQuotes(b[0]):n+="properties "+e.util.escapeQuotes(b.join(", ")),n+=" when property "+e.util.escapeQuotes(x)+" is present' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var C=n;n=A.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+C+"]); ":n+=" validate.errors = ["+C+"]; return false; ":n+=" var err = "+C+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else{n+=" ) { ";var O=b;if(O)for(var F,j=-1,T=O.length-1;j<T;){F=O[j+=1];var _=e.util.getProperty(F),R=(P=e.util.escapeQuotes(F),l+_);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(w,F,e.opts.jsonPointers)),n+=" if ( "+R+" === undefined ",g&&(n+=" || ! Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(F)+"') "),n+=") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { property: '"+e.util.escapeQuotes(x)+"', missingProperty: '"+P+"', depsCount: "+b.length+", deps: '"+e.util.escapeQuotes(1==b.length?b[0]:b.join(", "))+"' } ",!1!==e.opts.messages&&(n+=" , message: 'should have ",1==b.length?n+="property "+e.util.escapeQuotes(b[0]):n+="properties "+e.util.escapeQuotes(b.join(", ")),n+=" when property "+e.util.escapeQuotes(x)+" is present' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}n+=" } ",u&&(p+="}",n+=" else { ")}e.errorPath=w;var I=h.baseId;for(var x in m){y=m[x];(e.opts.strictKeywords?"object"==typeof y&&Object.keys(y).length>0||!1===y:e.util.schemaHasRules(y,e.RULES.all))&&(n+=" "+d+" = true; if ( "+l+e.util.getProperty(x)+" !== undefined ",g&&(n+=" && Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(x)+"') "),n+=") { ",h.schema=y,h.schemaPath=s+e.util.getProperty(x),h.errSchemaPath=c+"/"+e.util.escapeFragment(x),n+=" "+e.validate(h)+" ",h.baseId=I,n+=" } ",u&&(n+=" if ("+d+") { ",p+="}"))}return u&&(n+=" "+p+" if ("+f+" == errors) {"),n}},5813:e=>{"use strict";e.exports=function(e,t,r){var n=" ",o=e.level,i=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(i||""),f="valid"+o,h=e.opts.$data&&a&&a.$data;h&&(n+=" var schema"+o+" = "+e.util.getData(a.$data,i,e.dataPathArr)+"; ");var p="i"+o,d="schema"+o;h||(n+=" var "+d+" = validate.schema"+s+";"),n+="var "+f+";",h&&(n+=" if (schema"+o+" === undefined) "+f+" = true; else if (!Array.isArray(schema"+o+")) "+f+" = false; else {"),n+=f+" = false;for (var "+p+"=0; "+p+"<"+d+".length; "+p+"++) if (equal("+l+", "+d+"["+p+"])) { "+f+" = true; break; }",h&&(n+=" } "),n+=" if (!"+f+") { ";var m=m||[];m.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'enum' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { allowedValues: schema"+o+" } ",!1!==e.opts.messages&&(n+=" , message: 'should be equal to one of the allowed values' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var v=n;return n=m.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+v+"]); ":n+=" validate.errors = ["+v+"]; return false; ":n+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" }",u&&(n+=" else { "),n}},5341:e=>{"use strict";e.exports=function(e,t,r){var n=" ",o=e.level,i=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(i||"");if(!1===e.opts.format)return u&&(n+=" if (true) { "),n;var f,h=e.opts.$data&&a&&a.$data;h?(n+=" var schema"+o+" = "+e.util.getData(a.$data,i,e.dataPathArr)+"; ",f="schema"+o):f=a;var p=e.opts.unknownFormats,d=Array.isArray(p);if(h){n+=" var "+(m="format"+o)+" = formats["+f+"]; var "+(v="isObject"+o)+" = typeof "+m+" == 'object' && !("+m+" instanceof RegExp) && "+m+".validate; var "+(g="formatType"+o)+" = "+v+" && "+m+".type || 'string'; if ("+v+") { ",e.async&&(n+=" var async"+o+" = "+m+".async; "),n+=" "+m+" = "+m+".validate; } if ( ",h&&(n+=" ("+f+" !== undefined && typeof "+f+" != 'string') || "),n+=" (","ignore"!=p&&(n+=" ("+f+" && !"+m+" ",d&&(n+=" && self._opts.unknownFormats.indexOf("+f+") == -1 "),n+=") || "),n+=" ("+m+" && "+g+" == '"+r+"' && !(typeof "+m+" == 'function' ? ",e.async?n+=" (async"+o+" ? await "+m+"("+l+") : "+m+"("+l+")) ":n+=" "+m+"("+l+") ",n+=" : "+m+".test("+l+"))))) {"}else{var m;if(!(m=e.formats[a])){if("ignore"==p)return e.logger.warn('unknown format "'+a+'" ignored in schema at path "'+e.errSchemaPath+'"'),u&&(n+=" if (true) { "),n;if(d&&p.indexOf(a)>=0)return u&&(n+=" if (true) { "),n;throw new Error('unknown format "'+a+'" is used in schema at path "'+e.errSchemaPath+'"')}var v,g=(v="object"==typeof m&&!(m instanceof RegExp)&&m.validate)&&m.type||"string";if(v){var y=!0===m.async;m=m.validate}if(g!=r)return u&&(n+=" if (true) { "),n;if(y){if(!e.async)throw new Error("async format in sync schema");n+=" if (!(await "+(b="formats"+e.util.getProperty(a)+".validate")+"("+l+"))) { "}else{n+=" if (! ";var b="formats"+e.util.getProperty(a);v&&(b+=".validate"),n+="function"==typeof m?" "+b+"("+l+") ":" "+b+".test("+l+") ",n+=") { "}}var w=w||[];w.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'format' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { format: ",n+=h?""+f:""+e.util.toQuotedString(a),n+=" } ",!1!==e.opts.messages&&(n+=" , message: 'should match format \"",n+=h?"' + "+f+" + '":""+e.util.escapeQuotes(a),n+="\"' "),e.opts.verbose&&(n+=" , schema: ",n+=h?"validate.schema"+s:""+e.util.toQuotedString(a),n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var x=n;return n=w.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+x+"]); ":n+=" validate.errors = ["+x+"]; return false; ":n+=" var err = "+x+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } ",u&&(n+=" else { "),n}},8739:e=>{"use strict";e.exports=function(e,t,r){var n=" ",o=e.level,i=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(i||""),f="valid"+o,h="errs__"+o,p=e.util.copy(e);p.level++;var d="valid"+p.level,m=e.schema.then,v=e.schema.else,g=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!==v&&(e.opts.strictKeywords?"object"==typeof v&&Object.keys(v).length>0||!1===v:e.util.schemaHasRules(v,e.RULES.all)),b=p.baseId;if(g||y){var w;p.createErrors=!1,p.schema=a,p.schemaPath=s,p.errSchemaPath=c,n+=" var "+h+" = errors; var "+f+" = true; ";var x=e.compositeRule;e.compositeRule=p.compositeRule=!0,n+=" "+e.validate(p)+" ",p.baseId=b,p.createErrors=!0,n+=" errors = "+h+"; if (vErrors !== null) { if ("+h+") vErrors.length = "+h+"; else vErrors = null; } ",e.compositeRule=p.compositeRule=x,g?(n+=" if ("+d+") { ",p.schema=e.schema.then,p.schemaPath=e.schemaPath+".then",p.errSchemaPath=e.errSchemaPath+"/then",n+=" "+e.validate(p)+" ",p.baseId=b,n+=" "+f+" = "+d+"; ",g&&y?n+=" var "+(w="ifClause"+o)+" = 'then'; ":w="'then'",n+=" } ",y&&(n+=" else { ")):n+=" if (!"+d+") { ",y&&(p.schema=e.schema.else,p.schemaPath=e.schemaPath+".else",p.errSchemaPath=e.errSchemaPath+"/else",n+=" "+e.validate(p)+" ",p.baseId=b,n+=" "+f+" = "+d+"; ",g&&y?n+=" var "+(w="ifClause"+o)+" = 'else'; ":w="'else'",n+=" } "),n+=" if (!"+f+") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'if' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { failingKeyword: "+w+" } ",!1!==e.opts.messages&&(n+=" , message: 'should match \"' + "+w+" + '\" schema' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&u&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),n+=" } ",u&&(n+=" else { ")}else u&&(n+=" if (true) { ");return n}},112:(e,t,r)=>{"use strict";e.exports={$ref:r(5925),allOf:r(1251),anyOf:r(4648),$comment:r(7890),const:r(2508),contains:r(1269),dependencies:r(5800),enum:r(5813),format:r(5341),if:r(8739),items:r(1973),maximum:r(6457),minimum:r(6457),maxItems:r(496),minItems:r(496),maxLength:r(4080),minLength:r(4080),maxProperties:r(5169),minProperties:r(5169),multipleOf:r(7124),not:r(3755),oneOf:r(6665),pattern:r(9913),properties:r(9446),propertyNames:r(8658),required:r(9501),uniqueItems:r(9383),validate:r(3833)}},1973:e=>{"use strict";e.exports=function(e,t,r){var n=" ",o=e.level,i=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(i||""),f="valid"+o,h="errs__"+o,p=e.util.copy(e),d="";p.level++;var m="valid"+p.level,v="i"+o,g=p.dataLevel=e.dataLevel+1,y="data"+g,b=e.baseId;if(n+="var "+h+" = errors;var "+f+";",Array.isArray(a)){var w=e.schema.additionalItems;if(!1===w){n+=" "+f+" = "+l+".length <= "+a.length+"; ";var x=c;c=e.errSchemaPath+"/additionalItems",n+=" if (!"+f+") { ";var E=E||[];E.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'additionalItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { limit: "+a.length+" } ",!1!==e.opts.messages&&(n+=" , message: 'should NOT have more than "+a.length+" items' "),e.opts.verbose&&(n+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var k=n;n=E.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+k+"]); ":n+=" validate.errors = ["+k+"]; return false; ":n+=" var err = "+k+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } ",c=x,u&&(d+="}",n+=" else { ")}var S=a;if(S)for(var D,P=-1,A=S.length-1;P<A;)if(D=S[P+=1],e.opts.strictKeywords?"object"==typeof D&&Object.keys(D).length>0||!1===D:e.util.schemaHasRules(D,e.RULES.all)){n+=" "+m+" = true; if ("+l+".length > "+P+") { ";var C=l+"["+P+"]";p.schema=D,p.schemaPath=s+"["+P+"]",p.errSchemaPath=c+"/"+P,p.errorPath=e.util.getPathExpr(e.errorPath,P,e.opts.jsonPointers,!0),p.dataPathArr[g]=P;var O=e.validate(p);p.baseId=b,e.util.varOccurences(O,y)<2?n+=" "+e.util.varReplace(O,y,C)+" ":n+=" var "+y+" = "+C+"; "+O+" ",n+=" } ",u&&(n+=" if ("+m+") { ",d+="}")}if("object"==typeof w&&(e.opts.strictKeywords?"object"==typeof w&&Object.keys(w).length>0||!1===w:e.util.schemaHasRules(w,e.RULES.all))){p.schema=w,p.schemaPath=e.schemaPath+".additionalItems",p.errSchemaPath=e.errSchemaPath+"/additionalItems",n+=" "+m+" = true; if ("+l+".length > "+a.length+") { for (var "+v+" = "+a.length+"; "+v+" < "+l+".length; "+v+"++) { ",p.errorPath=e.util.getPathExpr(e.errorPath,v,e.opts.jsonPointers,!0);C=l+"["+v+"]";p.dataPathArr[g]=v;O=e.validate(p);p.baseId=b,e.util.varOccurences(O,y)<2?n+=" "+e.util.varReplace(O,y,C)+" ":n+=" var "+y+" = "+C+"; "+O+" ",u&&(n+=" if (!"+m+") break; "),n+=" } } ",u&&(n+=" if ("+m+") { ",d+="}")}}else if(e.opts.strictKeywords?"object"==typeof a&&Object.keys(a).length>0||!1===a:e.util.schemaHasRules(a,e.RULES.all)){p.schema=a,p.schemaPath=s,p.errSchemaPath=c,n+=" for (var "+v+" = 0; "+v+" < "+l+".length; "+v+"++) { ",p.errorPath=e.util.getPathExpr(e.errorPath,v,e.opts.jsonPointers,!0);C=l+"["+v+"]";p.dataPathArr[g]=v;O=e.validate(p);p.baseId=b,e.util.varOccurences(O,y)<2?n+=" "+e.util.varReplace(O,y,C)+" ":n+=" var "+y+" = "+C+"; "+O+" ",u&&(n+=" if (!"+m+") break; "),n+=" }"}return u&&(n+=" "+d+" if ("+h+" == errors) {"),n}},7124:e=>{"use strict";e.exports=function(e,t,r){var n,o=" ",i=e.level,a=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,f="data"+(a||""),h=e.opts.$data&&s&&s.$data;if(h?(o+=" var schema"+i+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",n="schema"+i):n=s,!h&&"number"!=typeof s)throw new Error(t+" must be number");o+="var division"+i+";if (",h&&(o+=" "+n+" !== undefined && ( typeof "+n+" != 'number' || "),o+=" (division"+i+" = "+f+" / "+n+", ",e.opts.multipleOfPrecision?o+=" Math.abs(Math.round(division"+i+") - division"+i+") > 1e-"+e.opts.multipleOfPrecision+" ":o+=" division"+i+" !== parseInt(division"+i+") ",o+=" ) ",h&&(o+=" ) "),o+=" ) { ";var p=p||[];p.push(o),o="",!1!==e.createErrors?(o+=" { keyword: 'multipleOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { multipleOf: "+n+" } ",!1!==e.opts.messages&&(o+=" , message: 'should be multiple of ",o+=h?"' + "+n:n+"'"),e.opts.verbose&&(o+=" , schema: ",o+=h?"validate.schema"+c:""+s,o+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),o+=" } "):o+=" {} ";var d=o;return o=p.pop(),!e.compositeRule&&l?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+="} ",l&&(o+=" else { "),o}},3755:e=>{"use strict";e.exports=function(e,t,r){var n=" ",o=e.level,i=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(i||""),f="errs__"+o,h=e.util.copy(e);h.level++;var p="valid"+h.level;if(e.opts.strictKeywords?"object"==typeof a&&Object.keys(a).length>0||!1===a:e.util.schemaHasRules(a,e.RULES.all)){h.schema=a,h.schemaPath=s,h.errSchemaPath=c,n+=" var "+f+" = errors; ";var d,m=e.compositeRule;e.compositeRule=h.compositeRule=!0,h.createErrors=!1,h.opts.allErrors&&(d=h.opts.allErrors,h.opts.allErrors=!1),n+=" "+e.validate(h)+" ",h.createErrors=!0,d&&(h.opts.allErrors=d),e.compositeRule=h.compositeRule=m,n+=" if ("+p+") { ";var v=v||[];v.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'should NOT be valid' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var g=n;n=v.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+g+"]); ":n+=" validate.errors = ["+g+"]; return false; ":n+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { errors = "+f+"; if (vErrors !== null) { if ("+f+") vErrors.length = "+f+"; else vErrors = null; } ",e.opts.allErrors&&(n+=" } ")}else n+=" var err = ",!1!==e.createErrors?(n+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'should NOT be valid' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",u&&(n+=" if (false) { ");return n}},6665:e=>{"use strict";e.exports=function(e,t,r){var n=" ",o=e.level,i=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(i||""),f="valid"+o,h="errs__"+o,p=e.util.copy(e),d="";p.level++;var m="valid"+p.level,v=p.baseId,g="prevValid"+o,y="passingSchemas"+o;n+="var "+h+" = errors , "+g+" = false , "+f+" = false , "+y+" = null; ";var b=e.compositeRule;e.compositeRule=p.compositeRule=!0;var w=a;if(w)for(var x,E=-1,k=w.length-1;E<k;)x=w[E+=1],(e.opts.strictKeywords?"object"==typeof x&&Object.keys(x).length>0||!1===x:e.util.schemaHasRules(x,e.RULES.all))?(p.schema=x,p.schemaPath=s+"["+E+"]",p.errSchemaPath=c+"/"+E,n+=" "+e.validate(p)+" ",p.baseId=v):n+=" var "+m+" = true; ",E&&(n+=" if ("+m+" && "+g+") { "+f+" = false; "+y+" = ["+y+", "+E+"]; } else { ",d+="}"),n+=" if ("+m+") { "+f+" = "+g+" = true; "+y+" = "+E+"; }";return e.compositeRule=p.compositeRule=b,n+=d+"if (!"+f+") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'oneOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { passingSchemas: "+y+" } ",!1!==e.opts.messages&&(n+=" , message: 'should match exactly one schema in oneOf' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&u&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),n+="} else { errors = "+h+"; if (vErrors !== null) { if ("+h+") vErrors.length = "+h+"; else vErrors = null; }",e.opts.allErrors&&(n+=" } "),n}},9913:e=>{"use strict";e.exports=function(e,t,r){var n,o=" ",i=e.level,a=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,f="data"+(a||""),h=e.opts.$data&&s&&s.$data;h?(o+=" var schema"+i+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",n="schema"+i):n=s,o+="if ( ",h&&(o+=" ("+n+" !== undefined && typeof "+n+" != 'string') || "),o+=" !"+(h?"(new RegExp("+n+"))":e.usePattern(s))+".test("+f+") ) { ";var p=p||[];p.push(o),o="",!1!==e.createErrors?(o+=" { keyword: 'pattern' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { pattern: ",o+=h?""+n:""+e.util.toQuotedString(s),o+=" } ",!1!==e.opts.messages&&(o+=" , message: 'should match pattern \"",o+=h?"' + "+n+" + '":""+e.util.escapeQuotes(s),o+="\"' "),e.opts.verbose&&(o+=" , schema: ",o+=h?"validate.schema"+c:""+e.util.toQuotedString(s),o+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),o+=" } "):o+=" {} ";var d=o;return o=p.pop(),!e.compositeRule&&l?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+="} ",l&&(o+=" else { "),o}},9446:e=>{"use strict";e.exports=function(e,t,r){var n=" ",o=e.level,i=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(i||""),f="errs__"+o,h=e.util.copy(e),p="";h.level++;var d="valid"+h.level,m="key"+o,v="idx"+o,g=h.dataLevel=e.dataLevel+1,y="data"+g,b="dataProperties"+o,w=Object.keys(a||{}).filter(_),x=e.schema.patternProperties||{},E=Object.keys(x).filter(_),k=e.schema.additionalProperties,S=w.length||E.length,D=!1===k,P="object"==typeof k&&Object.keys(k).length,A=e.opts.removeAdditional,C=D||P||A,O=e.opts.ownProperties,F=e.baseId,j=e.schema.required;if(j&&(!e.opts.$data||!j.$data)&&j.length<e.opts.loopRequired)var T=e.util.toHash(j);function _(e){return"__proto__"!==e}if(n+="var "+f+" = errors;var "+d+" = true;",O&&(n+=" var "+b+" = undefined;"),C){if(n+=O?" "+b+" = "+b+" || Object.keys("+l+"); for (var "+v+"=0; "+v+"<"+b+".length; "+v+"++) { var "+m+" = "+b+"["+v+"]; ":" for (var "+m+" in "+l+") { ",S){if(n+=" var isAdditional"+o+" = !(false ",w.length)if(w.length>8)n+=" || validate.schema"+s+".hasOwnProperty("+m+") ";else{var R=w;if(R)for(var I=-1,L=R.length-1;I<L;)Q=R[I+=1],n+=" || "+m+" == "+e.util.toQuotedString(Q)+" "}if(E.length){var B=E;if(B)for(var M=-1,N=B.length-1;M<N;)ie=B[M+=1],n+=" || "+e.usePattern(ie)+".test("+m+") "}n+=" ); if (isAdditional"+o+") { "}if("all"==A)n+=" delete "+l+"["+m+"]; ";else{var H=e.errorPath,z="' + "+m+" + '";if(e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers)),D)if(A)n+=" delete "+l+"["+m+"]; ";else{n+=" "+d+" = false; ";var U=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: '"+z+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is an invalid additional property":n+="should NOT have additional properties",n+="' "),e.opts.verbose&&(n+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var $=n;n=re.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+$+"]); ":n+=" validate.errors = ["+$+"]; return false; ":n+=" var err = "+$+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",c=U,u&&(n+=" break; ")}else if(P)if("failing"==A){n+=" var "+f+" = errors; ";var q=e.compositeRule;e.compositeRule=h.compositeRule=!0,h.schema=k,h.schemaPath=e.schemaPath+".additionalProperties",h.errSchemaPath=e.errSchemaPath+"/additionalProperties",h.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers);var V=l+"["+m+"]";h.dataPathArr[g]=m;var G=e.validate(h);h.baseId=F,e.util.varOccurences(G,y)<2?n+=" "+e.util.varReplace(G,y,V)+" ":n+=" var "+y+" = "+V+"; "+G+" ",n+=" if (!"+d+") { errors = "+f+"; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete "+l+"["+m+"]; } ",e.compositeRule=h.compositeRule=q}else{h.schema=k,h.schemaPath=e.schemaPath+".additionalProperties",h.errSchemaPath=e.errSchemaPath+"/additionalProperties",h.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers);V=l+"["+m+"]";h.dataPathArr[g]=m;G=e.validate(h);h.baseId=F,e.util.varOccurences(G,y)<2?n+=" "+e.util.varReplace(G,y,V)+" ":n+=" var "+y+" = "+V+"; "+G+" ",u&&(n+=" if (!"+d+") break; ")}e.errorPath=H}S&&(n+=" } "),n+=" } ",u&&(n+=" if ("+d+") { ",p+="}")}var W=e.opts.useDefaults&&!e.compositeRule;if(w.length){var K=w;if(K)for(var Q,Z=-1,Y=K.length-1;Z<Y;){var X=a[Q=K[Z+=1]];if(e.opts.strictKeywords?"object"==typeof X&&Object.keys(X).length>0||!1===X:e.util.schemaHasRules(X,e.RULES.all)){var J=e.util.getProperty(Q),ee=(V=l+J,W&&void 0!==X.default);h.schema=X,h.schemaPath=s+J,h.errSchemaPath=c+"/"+e.util.escapeFragment(Q),h.errorPath=e.util.getPath(e.errorPath,Q,e.opts.jsonPointers),h.dataPathArr[g]=e.util.toQuotedString(Q);G=e.validate(h);if(h.baseId=F,e.util.varOccurences(G,y)<2){G=e.util.varReplace(G,y,V);var te=V}else{te=y;n+=" var "+y+" = "+V+"; "}if(ee)n+=" "+G+" ";else{if(T&&T[Q]){n+=" if ( "+te+" === undefined ",O&&(n+=" || ! Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(Q)+"') "),n+=") { "+d+" = false; ";H=e.errorPath,U=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"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";$=n;n=re.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+$+"]); ":n+=" validate.errors = ["+$+"]; return false; ":n+=" var err = "+$+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",c=U,e.errorPath=H,n+=" } else { "}else u?(n+=" if ( "+te+" === undefined ",O&&(n+=" || ! Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(Q)+"') "),n+=") { "+d+" = true; } else { "):(n+=" if ("+te+" !== undefined ",O&&(n+=" && Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(Q)+"') "),n+=" ) { ");n+=" "+G+" } "}}u&&(n+=" if ("+d+") { ",p+="}")}}if(E.length){var oe=E;if(oe)for(var ie,ae=-1,se=oe.length-1;ae<se;){X=x[ie=oe[ae+=1]];if(e.opts.strictKeywords?"object"==typeof X&&Object.keys(X).length>0||!1===X:e.util.schemaHasRules(X,e.RULES.all)){h.schema=X,h.schemaPath=e.schemaPath+".patternProperties"+e.util.getProperty(ie),h.errSchemaPath=e.errSchemaPath+"/patternProperties/"+e.util.escapeFragment(ie),n+=O?" "+b+" = "+b+" || Object.keys("+l+"); for (var "+v+"=0; "+v+"<"+b+".length; "+v+"++) { var "+m+" = "+b+"["+v+"]; ":" for (var "+m+" in "+l+") { ",n+=" if ("+e.usePattern(ie)+".test("+m+")) { ",h.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers);V=l+"["+m+"]";h.dataPathArr[g]=m;G=e.validate(h);h.baseId=F,e.util.varOccurences(G,y)<2?n+=" "+e.util.varReplace(G,y,V)+" ":n+=" var "+y+" = "+V+"; "+G+" ",u&&(n+=" if (!"+d+") break; "),n+=" } ",u&&(n+=" else "+d+" = true; "),n+=" } ",u&&(n+=" if ("+d+") { ",p+="}")}}}return u&&(n+=" "+p+" if ("+f+" == errors) {"),n}},8658:e=>{"use strict";e.exports=function(e,t,r){var n=" ",o=e.level,i=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(i||""),f="errs__"+o,h=e.util.copy(e);h.level++;var p="valid"+h.level;if(n+="var "+f+" = errors;",e.opts.strictKeywords?"object"==typeof a&&Object.keys(a).length>0||!1===a:e.util.schemaHasRules(a,e.RULES.all)){h.schema=a,h.schemaPath=s,h.errSchemaPath=c;var d="key"+o,m="idx"+o,v="i"+o,g="' + "+d+" + '",y="data"+(h.dataLevel=e.dataLevel+1),b="dataProperties"+o,w=e.opts.ownProperties,x=e.baseId;w&&(n+=" var "+b+" = undefined; "),n+=w?" "+b+" = "+b+" || Object.keys("+l+"); for (var "+m+"=0; "+m+"<"+b+".length; "+m+"++) { var "+d+" = "+b+"["+m+"]; ":" for (var "+d+" in "+l+") { ",n+=" var startErrs"+o+" = errors; ";var E=d,k=e.compositeRule;e.compositeRule=h.compositeRule=!0;var S=e.validate(h);h.baseId=x,e.util.varOccurences(S,y)<2?n+=" "+e.util.varReplace(S,y,E)+" ":n+=" var "+y+" = "+E+"; "+S+" ",e.compositeRule=h.compositeRule=k,n+=" if (!"+p+") { for (var "+v+"=startErrs"+o+"; "+v+"<errors; "+v+"++) { vErrors["+v+"].propertyName = "+d+"; } var err = ",!1!==e.createErrors?(n+=" { keyword: 'propertyNames' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { propertyName: '"+g+"' } ",!1!==e.opts.messages&&(n+=" , message: 'property name \\'"+g+"\\' is invalid' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&u&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),u&&(n+=" break; "),n+=" } }"}return u&&(n+=" if ("+f+" == errors) {"),n}},5925:e=>{"use strict";e.exports=function(e,t,r){var n,o,i=" ",a=e.level,s=e.dataLevel,c=e.schema[t],u=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,f="data"+(s||""),h="valid"+a;if("#"==c||"#/"==c)e.isRoot?(n=e.async,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),(y=y||[]).push(i),i="",!1!==e.createErrors?(i+=" { keyword: '$ref' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , 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: "+f+" "),i+=" } "):i+=" {} ";var m=i;i=y.pop(),!e.compositeRule&&l?e.async?i+=" throw new ValidationError(["+m+"]); ":i+=" validate.errors = ["+m+"]; return false; ":i+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",l&&(i+=" if (false) { ")}else{if("ignore"!=e.opts.missingRefs)throw new e.MissingRefError(e.baseId,c,d);e.logger.warn(d),l&&(i+=" if (true) { ")}}else if(p.inline){var v=e.util.copy(e);v.level++;var g="valid"+v.level;v.schema=p.schema,v.schemaPath="",v.errSchemaPath=c,i+=" "+e.validate(v).replace(/validate\.schema/g,p.code)+" ",l&&(i+=" if ("+g+") { ")}else n=!0===p.$async||e.async&&!1!==p.$async,o=p.code}if(o){var y;(y=y||[]).push(i),i="",e.opts.passContext?i+=" "+o+".call(this, ":i+=" "+o+"( ",i+=" "+f+", (dataPath || '')",'""'!=e.errorPath&&(i+=" + "+e.errorPath);var b=i+=" , "+(s?"data"+(s-1||""):"parentData")+" , "+(s?e.dataPathArr[s]:"parentDataProperty")+", rootData) ";if(i=y.pop(),n){if(!e.async)throw new Error("async schema referenced by sync schema");l&&(i+=" var "+h+"; "),i+=" try { await "+b+"; ",l&&(i+=" "+h+" = 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; ",l&&(i+=" "+h+" = false; "),i+=" } ",l&&(i+=" if ("+h+") { ")}else i+=" if (!"+b+") { if (vErrors === null) vErrors = "+o+".errors; else vErrors = vErrors.concat("+o+".errors); errors = vErrors.length; } ",l&&(i+=" else { ")}return i}},9501:e=>{"use strict";e.exports=function(e,t,r){var n=" ",o=e.level,i=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(i||""),f="valid"+o,h=e.opts.$data&&a&&a.$data;h&&(n+=" var schema"+o+" = "+e.util.getData(a.$data,i,e.dataPathArr)+"; ");var p="schema"+o;if(!h)if(a.length<e.opts.loopRequired&&e.schema.properties&&Object.keys(e.schema.properties).length){var d=[],m=a;if(m)for(var v,g=-1,y=m.length-1;g<y;){v=m[g+=1];var b=e.schema.properties[v];b&&(e.opts.strictKeywords?"object"==typeof b&&Object.keys(b).length>0||!1===b:e.util.schemaHasRules(b,e.RULES.all))||(d[d.length]=v)}}else d=a;if(h||d.length){var w=e.errorPath,x=h||d.length>=e.opts.loopRequired,E=e.opts.ownProperties;if(u)if(n+=" var missing"+o+"; ",x){h||(n+=" var "+p+" = validate.schema"+s+"; ");var k="' + "+(O="schema"+o+"["+(P="i"+o)+"]")+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(w,O,e.opts.jsonPointers)),n+=" var "+f+" = true; ",h&&(n+=" if (schema"+o+" === undefined) "+f+" = true; else if (!Array.isArray(schema"+o+")) "+f+" = false; else {"),n+=" for (var "+P+" = 0; "+P+" < "+p+".length; "+P+"++) { "+f+" = "+l+"["+p+"["+P+"]] !== undefined ",E&&(n+=" && Object.prototype.hasOwnProperty.call("+l+", "+p+"["+P+"]) "),n+="; if (!"+f+") break; } ",h&&(n+=" } "),n+=" if (!"+f+") { ",(C=C||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+k+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+k+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var S=n;n=C.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+S+"]); ":n+=" validate.errors = ["+S+"]; return false; ":n+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { "}else{n+=" if ( ";var D=d;if(D)for(var P=-1,A=D.length-1;P<A;){j=D[P+=1],P&&(n+=" || "),n+=" ( ( "+(I=l+(R=e.util.getProperty(j)))+" === undefined ",E&&(n+=" || ! Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(j)+"') "),n+=") && (missing"+o+" = "+e.util.toQuotedString(e.opts.jsonPointers?j:R)+") ) "}n+=") { ";var C;k="' + "+(O="missing"+o)+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(w,O,!0):w+" + "+O),(C=C||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+k+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+k+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";S=n;n=C.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+S+"]); ":n+=" validate.errors = ["+S+"]; return false; ":n+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { "}else if(x){h||(n+=" var "+p+" = validate.schema"+s+"; ");var O;k="' + "+(O="schema"+o+"["+(P="i"+o)+"]")+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(w,O,e.opts.jsonPointers)),h&&(n+=" if ("+p+" && !Array.isArray("+p+")) { var err = ",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+k+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+k+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if ("+p+" !== undefined) { "),n+=" for (var "+P+" = 0; "+P+" < "+p+".length; "+P+"++) { if ("+l+"["+p+"["+P+"]] === undefined ",E&&(n+=" || ! Object.prototype.hasOwnProperty.call("+l+", "+p+"["+P+"]) "),n+=") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+k+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+k+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } ",h&&(n+=" } ")}else{var F=d;if(F)for(var j,T=-1,_=F.length-1;T<_;){j=F[T+=1];var R=e.util.getProperty(j),I=(k=e.util.escapeQuotes(j),l+R);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(w,j,e.opts.jsonPointers)),n+=" if ( "+I+" === undefined ",E&&(n+=" || ! Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(j)+"') "),n+=") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+k+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+k+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}e.errorPath=w}else u&&(n+=" if (true) {");return n}},9383:e=>{"use strict";e.exports=function(e,t,r){var n,o=" ",i=e.level,a=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,f="data"+(a||""),h="valid"+i,p=e.opts.$data&&s&&s.$data;if(p?(o+=" var schema"+i+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",n="schema"+i):n=s,(s||p)&&!1!==e.opts.uniqueItems){p&&(o+=" var "+h+"; if ("+n+" === false || "+n+" === undefined) "+h+" = true; else if (typeof "+n+" != 'boolean') "+h+" = false; else { "),o+=" var i = "+f+".length , "+h+" = true , j; if (i > 1) { ";var d=e.schema.items&&e.schema.items.type,m=Array.isArray(d);if(!d||"object"==d||"array"==d||m&&(d.indexOf("object")>=0||d.indexOf("array")>=0))o+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+f+"[i], "+f+"[j])) { "+h+" = false; break outer; } } } ";else{o+=" var itemIndices = {}, item; for (;i--;) { var item = "+f+"[i]; ";var v="checkDataType"+(m?"s":"");o+=" if ("+e.util[v](d,"item",e.opts.strictNumbers,!0)+") continue; ",m&&(o+=" if (typeof item == 'string') item = '\"' + item; "),o+=" if (typeof itemIndices[item] == 'number') { "+h+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "}o+=" } ",p&&(o+=" } "),o+=" if (!"+h+") { ";var g=g||[];g.push(o),o="",!1!==e.createErrors?(o+=" { keyword: 'uniqueItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , 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:""+s,o+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),o+=" } "):o+=" {} ";var y=o;o=g.pop(),!e.compositeRule&&l?e.async?o+=" throw new ValidationError(["+y+"]); ":o+=" validate.errors = ["+y+"]; return false; ":o+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+=" } ",l&&(o+=" else { ")}else l&&(o+=" if (true) { ");return o}},3833:e=>{"use strict";e.exports=function(e,t,r){var n="",o=!0===e.schema.$async,i=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 = ",o&&(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||!i&&!e.schema.$ref){t="false schema";var u=e.level,l=e.dataLevel,f=e.schema[t],h=e.schemaPath+e.util.getProperty(t),p=e.errSchemaPath+"/"+t,d=!e.opts.allErrors,m="data"+(l||""),v="valid"+u;if(!1===e.schema){e.isTop?d=!0:n+=" var "+v+" = false; ",(Z=Z||[]).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 g=n;n=Z.pop(),!e.compositeRule&&d?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++; "}else e.isTop?n+=o?" return data; ":" validate.errors = null; return true; ":n+=" var "+v+" = true; ";return e.isTop&&(n+=" }; return validate; "),n}if(e.isTop){var y=e.isTop;u=e.level=0,l=e.dataLevel=0,m="data";if(e.rootId=e.resolve.fullPath(e.self._getId(e.root.schema)),e.baseId=e.baseId||e.rootId,delete e.isTop,e.dataPathArr=[""],void 0!==e.schema.default&&e.opts.useDefaults&&e.opts.strictDefaults){var b="default is ignored in the schema root";if("log"!==e.opts.strictDefaults)throw new Error(b);e.logger.warn(b)}n+=" var vErrors = null; ",n+=" var errors = 0; ",n+=" if (rootData === undefined) rootData = data; "}else{u=e.level,m="data"+((l=e.dataLevel)||"");if(a&&(e.baseId=e.resolve.url(e.baseId,a)),o&&!e.async)throw new Error("async schema in sync schema");n+=" var errs_"+u+" = errors;"}v="valid"+u,d=!e.opts.allErrors;var w="",x="",E=e.schema.type,k=Array.isArray(E);if(E&&e.opts.nullable&&!0===e.schema.nullable&&(k?-1==E.indexOf("null")&&(E=E.concat("null")):"null"!=E&&(E=[E,"null"],k=!0)),k&&1==E.length&&(E=E[0],k=!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")),E){if(e.opts.coerceTypes)var S=e.util.coerceToTypes(e.opts.coerceTypes,E);var D=e.RULES.types[E];if(S||k||!0===D||D&&!Y(D)){h=e.schemaPath+".type",p=e.errSchemaPath+"/type",h=e.schemaPath+".type",p=e.errSchemaPath+"/type";var P=k?"checkDataTypes":"checkDataType";if(n+=" if ("+e.util[P](E,m,e.opts.strictNumbers,!0)+") { ",S){var A="dataType"+u,C="coerced"+u;n+=" var "+A+" = typeof "+m+"; var "+C+" = undefined; ","array"==e.opts.coerceTypes&&(n+=" if ("+A+" == 'object' && Array.isArray("+m+") && "+m+".length == 1) { "+m+" = "+m+"[0]; "+A+" = typeof "+m+"; if ("+e.util.checkDataType(e.schema.type,m,e.opts.strictNumbers)+") "+C+" = "+m+"; } "),n+=" if ("+C+" !== undefined) ; ";var O=S;if(O)for(var F,j=-1,T=O.length-1;j<T;)"string"==(F=O[j+=1])?n+=" else if ("+A+" == 'number' || "+A+" == 'boolean') "+C+" = '' + "+m+"; else if ("+m+" === null) "+C+" = ''; ":"number"==F||"integer"==F?(n+=" else if ("+A+" == 'boolean' || "+m+" === null || ("+A+" == 'string' && "+m+" && "+m+" == +"+m+" ","integer"==F&&(n+=" && !("+m+" % 1)"),n+=")) "+C+" = +"+m+"; "):"boolean"==F?n+=" else if ("+m+" === 'false' || "+m+" === 0 || "+m+" === null) "+C+" = false; else if ("+m+" === 'true' || "+m+" === 1) "+C+" = true; ":"null"==F?n+=" else if ("+m+" === '' || "+m+" === 0 || "+m+" === false) "+C+" = null; ":"array"==e.opts.coerceTypes&&"array"==F&&(n+=" else if ("+A+" == 'string' || "+A+" == 'number' || "+A+" == 'boolean' || "+m+" == null) "+C+" = ["+m+"]; ");n+=" else { ",(Z=Z||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'type' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(p)+" , params: { type: '",n+=k?""+E.join(","):""+E,n+="' } ",!1!==e.opts.messages&&(n+=" , message: 'should be ",n+=k?""+E.join(","):""+E,n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+h+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),n+=" } "):n+=" {} ";g=n;n=Z.pop(),!e.compositeRule&&d?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+=" } if ("+C+" !== undefined) { ";var _=l?"data"+(l-1||""):"parentData";n+=" "+m+" = "+C+"; ",l||(n+="if ("+_+" !== undefined)"),n+=" "+_+"["+(l?e.dataPathArr[l]:"parentDataProperty")+"] = "+C+"; } "}else{(Z=Z||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'type' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(p)+" , params: { type: '",n+=k?""+E.join(","):""+E,n+="' } ",!1!==e.opts.messages&&(n+=" , message: 'should be ",n+=k?""+E.join(","):""+E,n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+h+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),n+=" } "):n+=" {} ";g=n;n=Z.pop(),!e.compositeRule&&d?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+=" } "}}if(e.schema.$ref&&!i)n+=" "+e.RULES.all.$ref.code(e,"$ref")+" ",d&&(n+=" } if (errors === ",n+=y?"0":"errs_"+u,n+=") { ",x+="}");else{var R=e.RULES;if(R)for(var I=-1,L=R.length-1;I<L;)if(Y(D=R[I+=1])){if(D.type&&(n+=" if ("+e.util.checkDataType(D.type,m,e.opts.strictNumbers)+") { "),e.opts.useDefaults)if("object"==D.type&&e.schema.properties){f=e.schema.properties;var B=Object.keys(f);if(B)for(var M,N=-1,H=B.length-1;N<H;){if(void 0!==($=f[M=B[N+=1]]).default){var z=m+e.util.getProperty(M);if(e.compositeRule){if(e.opts.strictDefaults){b="default is ignored for: "+z;if("log"!==e.opts.strictDefaults)throw new Error(b);e.logger.warn(b)}}else n+=" if ("+z+" === undefined ","empty"==e.opts.useDefaults&&(n+=" || "+z+" === null || "+z+" === '' "),n+=" ) "+z+" = ","shared"==e.opts.useDefaults?n+=" "+e.useDefault($.default)+" ":n+=" "+JSON.stringify($.default)+" ",n+="; "}}}else if("array"==D.type&&Array.isArray(e.schema.items)){var U=e.schema.items;if(U){j=-1;for(var $,q=U.length-1;j<q;)if(void 0!==($=U[j+=1]).default){z=m+"["+j+"]";if(e.compositeRule){if(e.opts.strictDefaults){b="default is ignored for: "+z;if("log"!==e.opts.strictDefaults)throw new Error(b);e.logger.warn(b)}}else n+=" if ("+z+" === undefined ","empty"==e.opts.useDefaults&&(n+=" || "+z+" === null || "+z+" === '' "),n+=" ) "+z+" = ","shared"==e.opts.useDefaults?n+=" "+e.useDefault($.default)+" ":n+=" "+JSON.stringify($.default)+" ",n+="; "}}}var V=D.rules;if(V)for(var G,W=-1,K=V.length-1;W<K;)if(X(G=V[W+=1])){var Q=G.code(e,G.keyword,D.type);Q&&(n+=" "+Q+" ",d&&(w+="}"))}if(d&&(n+=" "+w+" ",w=""),D.type&&(n+=" } ",E&&E===D.type&&!S)){n+=" else { ";var Z;h=e.schemaPath+".type",p=e.errSchemaPath+"/type";(Z=Z||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'type' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(p)+" , params: { type: '",n+=k?""+E.join(","):""+E,n+="' } ",!1!==e.opts.messages&&(n+=" , message: 'should be ",n+=k?""+E.join(","):""+E,n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+h+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),n+=" } "):n+=" {} ";g=n;n=Z.pop(),!e.compositeRule&&d?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+=" } "}d&&(n+=" if (errors === ",n+=y?"0":"errs_"+u,n+=") { ",x+="}")}}function Y(e){for(var t=e.rules,r=0;r<t.length;r++)if(X(t[r]))return!0}function X(t){return void 0!==e.schema[t.keyword]||t.implements&&function(t){for(var r=t.implements,n=0;n<r.length;n++)if(void 0!==e.schema[r[n]])return!0}(t)}return d&&(n+=" "+x+" "),y?(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 "+v+" = errors === errs_"+u+";",n}},3114:(e,t,r)=>{"use strict";var n=/^[a-z_$][a-z0-9_$-]*$/i,o=r(3800),i=r(1448);e.exports={add:function(e,t){var r=this.RULES;if(r.keywords[e])throw new Error("Keyword "+e+" is already defined");if(!n.test(e))throw new Error("Keyword "+e+" is not a valid identifier");if(t){this.validateKeyword(t,!0);var i=t.type;if(Array.isArray(i))for(var a=0;a<i.length;a++)c(e,i[a],t);else c(e,i,t);var s=t.metaSchema;s&&(t.$data&&this._opts.$data&&(s={anyOf:[s,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]}),t.validateSchema=this.compile(s,!0))}function c(e,t,n){for(var i,a=0;a<r.length;a++){var s=r[a];if(s.type==t){i=s;break}}i||(i={type:t,rules:[]},r.push(i));var c={keyword:e,definition:n,custom:!0,code:o,implements:n.implements};i.rules.push(c),r.custom[e]=c}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(i,!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}}},3973:(e,t,r)=>{"use strict";r.d(t,{Z:()=>m});var n=r(9862),o=r.n(n),i=r(1221),a=r.n(i),s=(r(888),r(5444),r(2814),r(4703),r(3583),r(9855),r(5013),r(6230),r(7607),r(5126),r(7462),r(5148),r(5250)),c=r(6963),u=r(8887),l=r.n(u),f=r(9900),h=["base","href"];function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach((function(t){o()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const m=function(e){var t=e.base,r=e.href,n=a()(e,h),o=(0,c.CQ)().summary;if(r)if((0,c.CB)(r))n.target="_blank";else{if(".md"===l().extname(r)){var i;i=t?decodeURIComponent(l().join(l().dirname(t.ref),r)):decodeURIComponent(r);var u=o.getArticle((function(e){return e.ref===i}));if(u)return(0,s.jsx)(f.Z,d({to:u},n))}r="#!"}return(0,s.jsx)("a",d(d({href:r},n),{},{rel:"noopener noreferrer"}))}},9900:(e,t,r)=>{"use strict";r.d(t,{Z:()=>m});var n=r(9862),o=r.n(n),i=r(1221),a=r.n(i),s=(r(8664),r(7930),r(5013),r(5444),r(2814),r(4703),r(3583),r(9855),r(6230),r(7607),r(5126),r(7462),r(5148),r(5250)),c=r(7363),u=r(6963),l=r(3714),f=r(8709),h=["children","to","className"];function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach((function(t){o()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function m(e){var t,r=e.children,n=e.to,o=e.className,i=a()(e,h),p=(0,f.Z)(),m=(0,u.v9)("page").loading;n instanceof u.oI?(t=n.getPath(),r||(r=n.getTitle())):t=n;var v=t?p.relative(t):"#!",g=(0,c.useCallback)((function(e){if(e.preventDefault(),t&&!m){var r=e.currentTarget,n=r.pathname,o=r.search,i=r.hash;l.m8.push({pathname:n,search:o,hash:i})}}),[t,m]);return(0,s.jsx)("a",d(d({},i),{},{onClick:g,className:o,href:v,children:r}))}},3714:(e,t,r)=>{"use strict";r.d(t,{fi:()=>m,m8:()=>h});r(5444),r(2814),r(4703),r(3583),r(9855),r(6230),r(7607),r(5126),r(7462),r(5148);var n=r(7934),o=r.n(n),i=r(1176),a=r.n(i),s=r(9862),c=r.n(s),u=(r(8664),r(1228),r(7915),r(5013),r(2827));function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var h,p="undefined"!=typeof window&&window.history&&!navigator.userAgent.match(/((iPod|iPhone|iPad).+\bOS\s+[1-4]\D|WebApps\/.+CFNetwork)/)&&"file:"!==window.location.protocol,d=function(){function e(){o()(this,e),c()(this,"history",void 0),this.history=p?(0,u.lX)():(0,u.PP)({initialEntries:[window.location]})}return a()(e,[{key:"location",get:function(){var e=this.history.location;return f(f({},e),{},{toString:function(){return(0,u.Ep)(e)}})}},{key:"listen",value:function(e){return this.history.listen(e)}},{key:"replace",value:function(e){return this.history.replace(e)}},{key:"push",value:function(e){return this.history.push(e)}}]),e}();function m(){return h=new d}},9359:(e,t,r)=>{"use strict";r.d(t,{Q3:()=>i,VI:()=>s,ZP:()=>a,ir:()=>c,tA:()=>u});var n=r(6963),o=r(7363),i=(0,o.createContext)(void 0);function a(){return(0,o.useContext)(i)}function s(){var e=(0,n.CQ)().summary,t=a();if(t)return(0,o.useMemo)((function(){var r=t.getLevel(),n=!1;return e.getArticle((function(e){return n?!!e.getPath():(n=e.getLevel()==r,!1)}))}),[e,t])}function c(){var e=(0,n.CQ)().summary,t=a();if(t)return(0,o.useMemo)((function(){var r,n=t.getLevel();return e.getArticle((function(e){return e.getLevel()==n||(e.getPath()&&(r=e),!1)})),r}),[e,t])}function u(){var e=(0,n.CQ)().summary,t=a();return t?e.getArticlePart(t):void 0}},8709:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(6963);function o(){return(0,n.v9)("page").file}},8190:(e,t,r)=>{"use strict";r.d(t,{D:()=>s,Z:()=>c});var n=r(125),o=r.n(n),i=r(7363),a=996,s={desktop:"desktop",mobile:"mobile"};function c(){function e(){return window.innerWidth>a?s.desktop:s.mobile}var t=(0,i.useState)(e),r=o()(t,2),n=r[0],c=r[1];return(0,i.useEffect)((function(){function t(){c(e())}return window.addEventListener("resize",t),function(){return window.removeEventListener("resize",t)}}),[]),n}},6501:e=>{e.exports={trueFunc:function(){return!0},falseFunc:function(){return!1}}},1241:(e,t,r)=>{const n=r(3608),o={};for(const e of Object.keys(n))o[n[e]]=e;const i={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};e.exports=i;for(const e of Object.keys(i)){if(!("channels"in i[e]))throw new Error("missing channels property: "+e);if(!("labels"in i[e]))throw new Error("missing channel labels property: "+e);if(i[e].labels.length!==i[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:r}=i[e];delete i[e].channels,delete i[e].labels,Object.defineProperty(i[e],"channels",{value:t}),Object.defineProperty(i[e],"labels",{value:r})}function a(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}i.rgb.hsl=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,o=Math.min(t,r,n),i=Math.max(t,r,n),a=i-o;let s,c;i===o?s=0:t===i?s=(r-n)/a:r===i?s=2+(n-t)/a:n===i&&(s=4+(t-r)/a),s=Math.min(60*s,360),s<0&&(s+=360);const u=(o+i)/2;return c=i===o?0:u<=.5?a/(i+o):a/(2-i-o),[s,100*c,100*u]},i.rgb.hsv=function(e){let t,r,n,o,i;const a=e[0]/255,s=e[1]/255,c=e[2]/255,u=Math.max(a,s,c),l=u-Math.min(a,s,c),f=function(e){return(u-e)/6/l+.5};return 0===l?(o=0,i=0):(i=l/u,t=f(a),r=f(s),n=f(c),a===u?o=n-r:s===u?o=1/3+t-n:c===u&&(o=2/3+r-t),o<0?o+=1:o>1&&(o-=1)),[360*o,100*i,100*u]},i.rgb.hwb=function(e){const t=e[0],r=e[1];let n=e[2];const o=i.rgb.hsl(e)[0],a=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[o,100*a,100*n]},i.rgb.cmyk=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,o=Math.min(1-t,1-r,1-n);return[100*((1-t-o)/(1-o)||0),100*((1-r-o)/(1-o)||0),100*((1-n-o)/(1-o)||0),100*o]},i.rgb.keyword=function(e){const t=o[e];if(t)return t;let r,i=1/0;for(const t of Object.keys(n)){const o=a(e,n[t]);o<i&&(i=o,r=t)}return r},i.keyword.rgb=function(e){return n[e]},i.rgb.xyz=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;return[100*(.4124*t+.3576*r+.1805*n),100*(.2126*t+.7152*r+.0722*n),100*(.0193*t+.1192*r+.9505*n)]},i.rgb.lab=function(e){const t=i.rgb.xyz(e);let r=t[0],n=t[1],o=t[2];r/=95.047,n/=100,o/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,o=o>.008856?o**(1/3):7.787*o+16/116;return[116*n-16,500*(r-n),200*(n-o)]},i.hsl.rgb=function(e){const t=e[0]/360,r=e[1]/100,n=e[2]/100;let o,i,a;if(0===r)return a=255*n,[a,a,a];o=n<.5?n*(1+r):n+r-n*r;const s=2*n-o,c=[0,0,0];for(let e=0;e<3;e++)i=t+1/3*-(e-1),i<0&&i++,i>1&&i--,a=6*i<1?s+6*(o-s)*i:2*i<1?o:3*i<2?s+(o-s)*(2/3-i)*6:s,c[e]=255*a;return c},i.hsl.hsv=function(e){const t=e[0];let r=e[1]/100,n=e[2]/100,o=r;const i=Math.max(n,.01);n*=2,r*=n<=1?n:2-n,o*=i<=1?i:2-i;return[t,100*(0===n?2*o/(i+o):2*r/(n+r)),100*((n+r)/2)]},i.hsv.rgb=function(e){const t=e[0]/60,r=e[1]/100;let n=e[2]/100;const o=Math.floor(t)%6,i=t-Math.floor(t),a=255*n*(1-r),s=255*n*(1-r*i),c=255*n*(1-r*(1-i));switch(n*=255,o){case 0:return[n,c,a];case 1:return[s,n,a];case 2:return[a,n,c];case 3:return[a,s,n];case 4:return[c,a,n];case 5:return[n,a,s]}},i.hsv.hsl=function(e){const t=e[0],r=e[1]/100,n=e[2]/100,o=Math.max(n,.01);let i,a;a=(2-r)*n;const s=(2-r)*o;return i=r*o,i/=s<=1?s:2-s,i=i||0,a/=2,[t,100*i,100*a]},i.hwb.rgb=function(e){const t=e[0]/360;let r=e[1]/100,n=e[2]/100;const o=r+n;let i;o>1&&(r/=o,n/=o);const a=Math.floor(6*t),s=1-n;i=6*t-a,0!=(1&a)&&(i=1-i);const c=r+i*(s-r);let u,l,f;switch(a){default:case 6:case 0:u=s,l=c,f=r;break;case 1:u=c,l=s,f=r;break;case 2:u=r,l=s,f=c;break;case 3:u=r,l=c,f=s;break;case 4:u=c,l=r,f=s;break;case 5:u=s,l=r,f=c}return[255*u,255*l,255*f]},i.cmyk.rgb=function(e){const t=e[0]/100,r=e[1]/100,n=e[2]/100,o=e[3]/100;return[255*(1-Math.min(1,t*(1-o)+o)),255*(1-Math.min(1,r*(1-o)+o)),255*(1-Math.min(1,n*(1-o)+o))]},i.xyz.rgb=function(e){const t=e[0]/100,r=e[1]/100,n=e[2]/100;let o,i,a;return o=3.2406*t+-1.5372*r+-.4986*n,i=-.9689*t+1.8758*r+.0415*n,a=.0557*t+-.204*r+1.057*n,o=o>.0031308?1.055*o**(1/2.4)-.055:12.92*o,i=i>.0031308?1.055*i**(1/2.4)-.055:12.92*i,a=a>.0031308?1.055*a**(1/2.4)-.055:12.92*a,o=Math.min(Math.max(0,o),1),i=Math.min(Math.max(0,i),1),a=Math.min(Math.max(0,a),1),[255*o,255*i,255*a]},i.xyz.lab=function(e){let t=e[0],r=e[1],n=e[2];t/=95.047,r/=100,n/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;return[116*r-16,500*(t-r),200*(r-n)]},i.lab.xyz=function(e){let t,r,n;r=(e[0]+16)/116,t=e[1]/500+r,n=r-e[2]/200;const o=r**3,i=t**3,a=n**3;return r=o>.008856?o:(r-16/116)/7.787,t=i>.008856?i:(t-16/116)/7.787,n=a>.008856?a:(n-16/116)/7.787,t*=95.047,r*=100,n*=108.883,[t,r,n]},i.lab.lch=function(e){const t=e[0],r=e[1],n=e[2];let o;o=360*Math.atan2(n,r)/2/Math.PI,o<0&&(o+=360);return[t,Math.sqrt(r*r+n*n),o]},i.lch.lab=function(e){const t=e[0],r=e[1],n=e[2]/360*2*Math.PI;return[t,r*Math.cos(n),r*Math.sin(n)]},i.rgb.ansi16=function(e,t=null){const[r,n,o]=e;let a=null===t?i.rgb.hsv(e)[2]:t;if(a=Math.round(a/50),0===a)return 30;let s=30+(Math.round(o/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return 2===a&&(s+=60),s},i.hsv.ansi16=function(e){return i.rgb.ansi16(i.hsv.rgb(e),e[2])},i.rgb.ansi256=function(e){const t=e[0],r=e[1],n=e[2];if(t===r&&r===n)return t<8?16:t>248?231:Math.round((t-8)/247*24)+232;return 16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},i.ansi16.rgb=function(e){let t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const r=.5*(1+~~(e>50));return[(1&t)*r*255,(t>>1&1)*r*255,(t>>2&1)*r*255]},i.ansi256.rgb=function(e){if(e>=232){const t=10*(e-232)+8;return[t,t,t]}let t;e-=16;return[Math.floor(e/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},i.rgb.hex=function(e){const t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},i.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let r=t[0];3===t[0].length&&(r=r.split("").map((e=>e+e)).join(""));const n=parseInt(r,16);return[n>>16&255,n>>8&255,255&n]},i.rgb.hcg=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,o=Math.max(Math.max(t,r),n),i=Math.min(Math.min(t,r),n),a=o-i;let s,c;return s=a<1?i/(1-a):0,c=a<=0?0:o===t?(r-n)/a%6:o===r?2+(n-t)/a:4+(t-r)/a,c/=6,c%=1,[360*c,100*a,100*s]},i.hsl.hcg=function(e){const t=e[1]/100,r=e[2]/100,n=r<.5?2*t*r:2*t*(1-r);let o=0;return n<1&&(o=(r-.5*n)/(1-n)),[e[0],100*n,100*o]},i.hsv.hcg=function(e){const t=e[1]/100,r=e[2]/100,n=t*r;let o=0;return n<1&&(o=(r-n)/(1-n)),[e[0],100*n,100*o]},i.hcg.rgb=function(e){const t=e[0]/360,r=e[1]/100,n=e[2]/100;if(0===r)return[255*n,255*n,255*n];const o=[0,0,0],i=t%1*6,a=i%1,s=1-a;let c=0;switch(Math.floor(i)){case 0:o[0]=1,o[1]=a,o[2]=0;break;case 1:o[0]=s,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=a;break;case 3:o[0]=0,o[1]=s,o[2]=1;break;case 4:o[0]=a,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=s}return c=(1-r)*n,[255*(r*o[0]+c),255*(r*o[1]+c),255*(r*o[2]+c)]},i.hcg.hsv=function(e){const t=e[1]/100,r=t+e[2]/100*(1-t);let n=0;return r>0&&(n=t/r),[e[0],100*n,100*r]},i.hcg.hsl=function(e){const t=e[1]/100,r=e[2]/100*(1-t)+.5*t;let n=0;return r>0&&r<.5?n=t/(2*r):r>=.5&&r<1&&(n=t/(2*(1-r))),[e[0],100*n,100*r]},i.hcg.hwb=function(e){const t=e[1]/100,r=t+e[2]/100*(1-t);return[e[0],100*(r-t),100*(1-r)]},i.hwb.hcg=function(e){const t=e[1]/100,r=1-e[2]/100,n=r-t;let o=0;return n<1&&(o=(r-n)/(1-n)),[e[0],100*n,100*o]},i.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},i.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},i.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},i.gray.hsl=function(e){return[0,0,e[0]]},i.gray.hsv=i.gray.hsl,i.gray.hwb=function(e){return[0,100,e[0]]},i.gray.cmyk=function(e){return[0,0,0,e[0]]},i.gray.lab=function(e){return[e[0],0,0]},i.gray.hex=function(e){const t=255&Math.round(e[0]/100*255),r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r},i.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},1096:(e,t,r)=>{const n=r(1241),o=r(5504),i={};Object.keys(n).forEach((e=>{i[e]={},Object.defineProperty(i[e],"channels",{value:n[e].channels}),Object.defineProperty(i[e],"labels",{value:n[e].labels});const t=o(e);Object.keys(t).forEach((r=>{const n=t[r];i[e][r]=function(e){const t=function(...t){const r=t[0];if(null==r)return r;r.length>1&&(t=r);const n=e(t);if("object"==typeof n)for(let e=n.length,t=0;t<e;t++)n[t]=Math.round(n[t]);return n};return"conversion"in e&&(t.conversion=e.conversion),t}(n),i[e][r].raw=function(e){const t=function(...t){const r=t[0];return null==r?r:(r.length>1&&(t=r),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(n)}))})),e.exports=i},5504:(e,t,r)=>{const n=r(1241);function o(e){const t=function(){const e={},t=Object.keys(n);for(let r=t.length,n=0;n<r;n++)e[t[n]]={distance:-1,parent:null};return e}(),r=[e];for(t[e].distance=0;r.length;){const e=r.pop(),o=Object.keys(n[e]);for(let n=o.length,i=0;i<n;i++){const n=o[i],a=t[n];-1===a.distance&&(a.distance=t[e].distance+1,a.parent=e,r.unshift(n))}}return t}function i(e,t){return function(r){return t(e(r))}}function a(e,t){const r=[t[e].parent,e];let o=n[t[e].parent][e],a=t[e].parent;for(;t[a].parent;)r.unshift(t[a].parent),o=i(n[t[a].parent][a],o),a=t[a].parent;return o.conversion=r,o}e.exports=function(e){const t=o(e),r={},n=Object.keys(t);for(let e=n.length,o=0;o<e;o++){const e=n[o];null!==t[e].parent&&(r[e]=a(e,t))}return r}},3608:e=>{"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},4510:(e,t,r)=>{var n=r(3608),o=r(5458),i=Object.hasOwnProperty,a=Object.create(null);for(var s in n)i.call(n,s)&&(a[n[s]]=s);var c=e.exports={to:{},get:{}};function u(e,t,r){return Math.min(Math.max(t,e),r)}function l(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}c.get=function(e){var t,r;switch(e.substring(0,3).toLowerCase()){case"hsl":t=c.get.hsl(e),r="hsl";break;case"hwb":t=c.get.hwb(e),r="hwb";break;default:t=c.get.rgb(e),r="rgb"}return t?{model:r,value:t}:null},c.get.rgb=function(e){if(!e)return null;var t,r,o,a=[0,0,0,1];if(t=e.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(o=t[2],t=t[1],r=0;r<3;r++){var s=2*r;a[r]=parseInt(t.slice(s,s+2),16)}o&&(a[3]=parseInt(o,16)/255)}else if(t=e.match(/^#([a-f0-9]{3,4})$/i)){for(o=(t=t[1])[3],r=0;r<3;r++)a[r]=parseInt(t[r]+t[r],16);o&&(a[3]=parseInt(o+o,16)/255)}else if(t=e.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(r=0;r<3;r++)a[r]=parseInt(t[r+1],0);t[4]&&(t[5]?a[3]=.01*parseFloat(t[4]):a[3]=parseFloat(t[4]))}else{if(!(t=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(t=e.match(/^(\w+)$/))?"transparent"===t[1]?[0,0,0,0]:i.call(n,t[1])?((a=n[t[1]])[3]=1,a):null:null;for(r=0;r<3;r++)a[r]=Math.round(2.55*parseFloat(t[r+1]));t[4]&&(t[5]?a[3]=.01*parseFloat(t[4]):a[3]=parseFloat(t[4]))}for(r=0;r<3;r++)a[r]=u(a[r],0,255);return a[3]=u(a[3],0,1),a},c.get.hsl=function(e){if(!e)return null;var t=e.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var r=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,u(parseFloat(t[2]),0,100),u(parseFloat(t[3]),0,100),u(isNaN(r)?1:r,0,1)]}return null},c.get.hwb=function(e){if(!e)return null;var t=e.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var r=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,u(parseFloat(t[2]),0,100),u(parseFloat(t[3]),0,100),u(isNaN(r)?1:r,0,1)]}return null},c.to.hex=function(){var e=o(arguments);return"#"+l(e[0])+l(e[1])+l(e[2])+(e[3]<1?l(Math.round(255*e[3])):"")},c.to.rgb=function(){var e=o(arguments);return e.length<4||1===e[3]?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"},c.to.rgb.percent=function(){var e=o(arguments),t=Math.round(e[0]/255*100),r=Math.round(e[1]/255*100),n=Math.round(e[2]/255*100);return e.length<4||1===e[3]?"rgb("+t+"%, "+r+"%, "+n+"%)":"rgba("+t+"%, "+r+"%, "+n+"%, "+e[3]+")"},c.to.hsl=function(){var e=o(arguments);return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},c.to.hwb=function(){var e=o(arguments),t="";return e.length>=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},c.to.keyword=function(e){return a[e.slice(0,3)]}},7851:(e,t,r)=>{const n=r(4510),o=r(1096),i=["keyword","gray","hex"],a={};for(const e of Object.keys(o))a[[...o[e].labels].sort().join("")]=e;const s={};function c(e,t){if(!(this instanceof c))return new c(e,t);if(t&&t in i&&(t=null),t&&!(t in o))throw new Error("Unknown model: "+t);let r,u;if(null==e)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof c)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if("string"==typeof e){const t=n.get(e);if(null===t)throw new Error("Unable to parse color from string: "+e);this.model=t.model,u=o[this.model].channels,this.color=t.value.slice(0,u),this.valpha="number"==typeof t.value[u]?t.value[u]:1}else if(e.length>0){this.model=t||"rgb",u=o[this.model].channels;const r=Array.prototype.slice.call(e,0,u);this.color=p(r,u),this.valpha="number"==typeof e[u]?e[u]:1}else if("number"==typeof e)this.model="rgb",this.color=[e>>16&255,e>>8&255,255&e],this.valpha=1;else{this.valpha=1;const t=Object.keys(e);"alpha"in e&&(t.splice(t.indexOf("alpha"),1),this.valpha="number"==typeof e.alpha?e.alpha:0);const n=t.sort().join("");if(!(n in a))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=a[n];const{labels:i}=o[this.model],s=[];for(r=0;r<i.length;r++)s.push(e[i[r]]);this.color=p(s)}if(s[this.model])for(u=o[this.model].channels,r=0;r<u;r++){const e=s[this.model][r];e&&(this.color[r]=e(this.color[r]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}c.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(e){let t=this.model in n.to?this:this.rgb();t=t.round("number"==typeof e?e:1);const r=1===t.valpha?t.color:[...t.color,this.valpha];return n.to[t.model](r)},percentString(e){const t=this.rgb().round("number"==typeof e?e:1),r=1===t.valpha?t.color:[...t.color,this.valpha];return n.to.rgb.percent(r)},array(){return 1===this.valpha?[...this.color]:[...this.color,this.valpha]},object(){const e={},{channels:t}=o[this.model],{labels:r}=o[this.model];for(let n=0;n<t;n++)e[r[n]]=this.color[n];return 1!==this.valpha&&(e.alpha=this.valpha),e},unitArray(){const e=this.rgb().color;return e[0]/=255,e[1]/=255,e[2]/=255,1!==this.valpha&&e.push(this.valpha),e},unitObject(){const e=this.rgb().object();return e.r/=255,e.g/=255,e.b/=255,1!==this.valpha&&(e.alpha=this.valpha),e},round(e){return e=Math.max(e||0,0),new c([...this.color.map(u(e)),this.valpha],this.model)},alpha(e){return void 0!==e?new c([...this.color,Math.max(0,Math.min(1,e))],this.model):this.valpha},red:l("rgb",0,f(255)),green:l("rgb",1,f(255)),blue:l("rgb",2,f(255)),hue:l(["hsl","hsv","hsl","hwb","hcg"],0,(e=>(e%360+360)%360)),saturationl:l("hsl",1,f(100)),lightness:l("hsl",2,f(100)),saturationv:l("hsv",1,f(100)),value:l("hsv",2,f(100)),chroma:l("hcg",1,f(100)),gray:l("hcg",2,f(100)),white:l("hwb",1,f(100)),wblack:l("hwb",2,f(100)),cyan:l("cmyk",0,f(100)),magenta:l("cmyk",1,f(100)),yellow:l("cmyk",2,f(100)),black:l("cmyk",3,f(100)),x:l("xyz",0,f(95.047)),y:l("xyz",1,f(100)),z:l("xyz",2,f(108.833)),l:l("lab",0,f(100)),a:l("lab",1),b:l("lab",2),keyword(e){return void 0!==e?new c(e):o[this.model].keyword(this.color)},hex(e){return void 0!==e?new c(e):n.to.hex(this.rgb().round().color)},hexa(e){if(void 0!==e)return new c(e);const t=this.rgb().round().color;let r=Math.round(255*this.valpha).toString(16).toUpperCase();return 1===r.length&&(r="0"+r),n.to.hex(t)+r},rgbNumber(){const e=this.rgb().color;return(255&e[0])<<16|(255&e[1])<<8|255&e[2]},luminosity(){const e=this.rgb().color,t=[];for(const[r,n]of e.entries()){const e=n/255;t[r]=e<=.04045?e/12.92:((e+.055)/1.055)**2.4}return.2126*t[0]+.7152*t[1]+.0722*t[2]},contrast(e){const t=this.luminosity(),r=e.luminosity();return t>r?(t+.05)/(r+.05):(r+.05)/(t+.05)},level(e){const t=this.contrast(e);return t>=7?"AAA":t>=4.5?"AA":""},isDark(){const e=this.rgb().color;return(2126*e[0]+7152*e[1]+722*e[2])/1e4<128},isLight(){return!this.isDark()},negate(){const e=this.rgb();for(let t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten(e){const t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken(e){const t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate(e){const t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate(e){const t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten(e){const t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken(e){const t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale(){const e=this.rgb().color,t=.3*e[0]+.59*e[1]+.11*e[2];return c.rgb(t,t,t)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){const t=this.hsl();let r=t.color[0];return r=(r+e)%360,r=r<0?360+r:r,t.color[0]=r,t},mix(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);const r=e.rgb(),n=this.rgb(),o=void 0===t?.5:t,i=2*o-1,a=r.alpha()-n.alpha(),s=((i*a==-1?i:(i+a)/(1+i*a))+1)/2,u=1-s;return c.rgb(s*r.red()+u*n.red(),s*r.green()+u*n.green(),s*r.blue()+u*n.blue(),r.alpha()*o+n.alpha()*(1-o))}};for(const e of Object.keys(o)){if(i.includes(e))continue;const{channels:t}=o[e];c.prototype[e]=function(...t){return this.model===e?new c(this):t.length>0?new c(t,e):new c([...h(o[this.model][e].raw(this.color)),this.valpha],e)},c[e]=function(...r){let n=r[0];return"number"==typeof n&&(n=p(r,t)),new c(n,e)}}function u(e){return function(t){return function(e,t){return Number(e.toFixed(t))}(t,e)}}function l(e,t,r){e=Array.isArray(e)?e:[e];for(const n of e)(s[n]||(s[n]=[]))[t]=r;return e=e[0],function(n){let o;return void 0!==n?(r&&(n=r(n)),o=this[e](),o.color[t]=n,o):(o=this[e]().color[t],r&&(o=r(o)),o)}}function f(e){return function(t){return Math.max(0,Math.min(e,t))}}function h(e){return Array.isArray(e)?e:[e]}function p(e,t){for(let r=0;r<t;r++)"number"!=typeof e[r]&&(e[r]=0);return e}e.exports=c},2427:(e,t,r)=>{var n=r(7389),o=r(4259),i=TypeError;e.exports=function(e){if(n(e))return e;throw i(o(e)+" is not a function")}},7752:(e,t,r)=>{var n=r(5615),o=r(4259),i=TypeError;e.exports=function(e){if(n(e))return e;throw i(o(e)+" is not a constructor")}},3693:(e,t,r)=>{var n=r(7389),o=String,i=TypeError;e.exports=function(e){if("object"==typeof e||n(e))return e;throw i("Can't set "+o(e)+" as a prototype")}},2921:(e,t,r)=>{var n=r(9163),o=r(2909),i=r(3015).f,a=n("unscopables"),s=Array.prototype;null==s[a]&&i(s,a,{configurable:!0,value:o(null)}),e.exports=function(e){s[a][e]=!0}},329:(e,t,r)=>{"use strict";var n=r(4003).charAt;e.exports=function(e,t,r){return t+(r?n(e,t).length:1)}},1167:(e,t,r)=>{var n=r(2378),o=TypeError;e.exports=function(e,t){if(n(t,e))return e;throw o("Incorrect invocation")}},6824:(e,t,r)=>{var n=r(2465),o=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw i(o(e)+" is not an object")}},1385:(e,t,r)=>{"use strict";var n=r(3250).forEach,o=r(8478)("forEach");e.exports=o?[].forEach:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0)}},6807:(e,t,r)=>{"use strict";var n=r(6748),o=r(1568),i=r(4247),a=r(6948),s=r(2464),c=r(5615),u=r(1166),l=r(7926),f=r(9119),h=r(9781),p=Array;e.exports=function(e){var t=i(e),r=c(this),d=arguments.length,m=d>1?arguments[1]:void 0,v=void 0!==m;v&&(m=n(m,d>2?arguments[2]:void 0));var g,y,b,w,x,E,k=h(t),S=0;if(!k||this===p&&s(k))for(g=u(t),y=r?new this(g):p(g);g>S;S++)E=v?m(t[S],S):t[S],l(y,S,E);else for(x=(w=f(t,k)).next,y=r?new this:[];!(b=o(x,w)).done;S++)E=v?a(w,m,[b.value,S],!0):b.value,l(y,S,E);return y.length=S,y}},9483:(e,t,r)=>{var n=r(2415),o=r(3041),i=r(1166),a=function(e){return function(t,r,a){var s,c=n(t),u=i(c),l=o(a,u);if(e&&r!=r){for(;u>l;)if((s=c[l++])!=s)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===r)return e||l||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},3250:(e,t,r)=>{var n=r(6748),o=r(764),i=r(2146),a=r(4247),s=r(1166),c=r(1780),u=o([].push),l=function(e){var t=1==e,r=2==e,o=3==e,l=4==e,f=6==e,h=7==e,p=5==e||f;return function(d,m,v,g){for(var y,b,w=a(d),x=i(w),E=n(m,v),k=s(x),S=0,D=g||c,P=t?D(d,k):r||h?D(d,0):void 0;k>S;S++)if((p||S in x)&&(b=E(y=x[S],S,w),e))if(t)P[S]=b;else if(b)switch(e){case 3:return!0;case 5:return y;case 6:return S;case 2:u(P,y)}else switch(e){case 4:return!1;case 7:u(P,y)}return f?-1:o||l?l:P}};e.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterReject:l(7)}},5815:(e,t,r)=>{var n=r(2170),o=r(9163),i=r(7098),a=o("species");e.exports=function(e){return i>=51||!n((function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},8478:(e,t,r)=>{"use strict";var n=r(2170);e.exports=function(e,t){var r=[][e];return!!r&&n((function(){r.call(null,t||function(){return 1},1)}))}},2005:(e,t,r)=>{var n=r(2427),o=r(4247),i=r(2146),a=r(1166),s=TypeError,c=function(e){return function(t,r,c,u){n(r);var l=o(t),f=i(l),h=a(l),p=e?h-1:0,d=e?-1:1;if(c<2)for(;;){if(p in f){u=f[p],p+=d;break}if(p+=d,e?p<0:h<=p)throw s("Reduce of empty array with no initial value")}for(;e?p>=0:h>p;p+=d)p in f&&(u=r(u,f[p],p,l));return u}};e.exports={left:c(!1),right:c(!0)}},9912:(e,t,r)=>{"use strict";var n=r(2404),o=r(5384),i=TypeError,a=Object.getOwnPropertyDescriptor,s=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=s?function(e,t){if(o(e)&&!a(e,"length").writable)throw i("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},6765:(e,t,r)=>{var n=r(3041),o=r(1166),i=r(7926),a=Array,s=Math.max;e.exports=function(e,t,r){for(var c=o(e),u=n(t,c),l=n(void 0===r?c:r,c),f=a(s(l-u,0)),h=0;u<l;u++,h++)i(f,h,e[u]);return f.length=h,f}},2980:(e,t,r)=>{var n=r(764);e.exports=n([].slice)},8110:(e,t,r)=>{var n=r(6765),o=Math.floor,i=function(e,t){var r=e.length,c=o(r/2);return r<8?a(e,t):s(e,i(n(e,0,c),t),i(n(e,c),t),t)},a=function(e,t){for(var r,n,o=e.length,i=1;i<o;){for(n=i,r=e[i];n&&t(e[n-1],r)>0;)e[n]=e[--n];n!==i++&&(e[n]=r)}return e},s=function(e,t,r,n){for(var o=t.length,i=r.length,a=0,s=0;a<o||s<i;)e[a+s]=a<o&&s<i?n(t[a],r[s])<=0?t[a++]:r[s++]:a<o?t[a++]:r[s++];return e};e.exports=i},2916:(e,t,r)=>{var n=r(5384),o=r(5615),i=r(2465),a=r(9163)("species"),s=Array;e.exports=function(e){var t;return n(e)&&(t=e.constructor,(o(t)&&(t===s||n(t.prototype))||i(t)&&null===(t=t[a]))&&(t=void 0)),void 0===t?s:t}},1780:(e,t,r)=>{var n=r(2916);e.exports=function(e,t){return new(n(e))(0===t?0:t)}},6948:(e,t,r)=>{var n=r(6824),o=r(3821);e.exports=function(e,t,r,i){try{return i?t(n(r)[0],r[1]):t(r)}catch(t){o(e,"throw",t)}}},9328:(e,t,r)=>{var n=r(9163)("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[n]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var r=!1;try{var i={};i[n]=function(){return{next:function(){return{done:r=!0}}}},e(i)}catch(e){}return r}},956:(e,t,r)=>{var n=r(764),o=n({}.toString),i=n("".slice);e.exports=function(e){return i(o(e),8,-1)}},9909:(e,t,r)=>{var n=r(7867),o=r(7389),i=r(956),a=r(9163)("toStringTag"),s=Object,c="Arguments"==i(function(){return arguments}());e.exports=n?i:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=s(e),a))?r:c?i(t):"Object"==(n=i(t))&&o(t.callee)?"Arguments":n}},9962:(e,t,r)=>{var n=r(627),o=r(2463),i=r(3178),a=r(3015);e.exports=function(e,t,r){for(var s=o(t),c=a.f,u=i.f,l=0;l<s.length;l++){var f=s[l];n(e,f)||r&&n(r,f)||c(e,f,u(t,f))}}},4749:(e,t,r)=>{var n=r(9163)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[n]=!1,"/./"[e](t)}catch(e){}}return!1}},2757:(e,t,r)=>{var n=r(2170);e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},5771:(e,t,r)=>{var n=r(764),o=r(8466),i=r(8943),a=/"/g,s=n("".replace);e.exports=function(e,t,r,n){var c=i(o(e)),u="<"+t;return""!==r&&(u+=" "+r+'="'+s(i(n),a,"&quot;")+'"'),u+">"+c+"</"+t+">"}},2229:e=>{e.exports=function(e,t){return{value:e,done:t}}},3085:(e,t,r)=>{var n=r(2404),o=r(3015),i=r(73);e.exports=n?function(e,t,r){return o.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},73:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},7926:(e,t,r)=>{"use strict";var n=r(1918),o=r(3015),i=r(73);e.exports=function(e,t,r){var a=n(t);a in e?o.f(e,a,i(0,r)):e[a]=r}},1571:(e,t,r)=>{var n=r(7841),o=r(3015);e.exports=function(e,t,r){return r.get&&n(r.get,t,{getter:!0}),r.set&&n(r.set,t,{setter:!0}),o.f(e,t,r)}},4519:(e,t,r)=>{var n=r(7389),o=r(3015),i=r(7841),a=r(7528);e.exports=function(e,t,r,s){s||(s={});var c=s.enumerable,u=void 0!==s.name?s.name:t;if(n(r)&&i(r,u,s),s.global)c?e[t]=r:a(t,r);else{try{s.unsafe?e[t]&&(c=!0):delete e[t]}catch(e){}c?e[t]=r:o.f(e,t,{value:r,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},8965:(e,t,r)=>{var n=r(4519);e.exports=function(e,t,r){for(var o in t)n(e,o,t[o],r);return e}},7528:(e,t,r)=>{var n=r(2019),o=Object.defineProperty;e.exports=function(e,t){try{o(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},2404:(e,t,r)=>{var n=r(2170);e.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},3398:e=>{var t="object"==typeof document&&document.all,r=void 0===t&&void 0!==t;e.exports={all:t,IS_HTMLDDA:r}},1220:(e,t,r)=>{var n=r(2019),o=r(2465),i=n.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},7711:e=>{var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}},2135:e=>{e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},5011:(e,t,r)=>{var n=r(1220)("span").classList,o=n&&n.constructor&&n.constructor.prototype;e.exports=o===Object.prototype?void 0:o},6786:(e,t,r)=>{var n=r(9384),o=r(5936);e.exports=!n&&!o&&"object"==typeof window&&"object"==typeof document},9384:e=>{e.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},9022:(e,t,r)=>{var n=r(5531);e.exports=/ipad|iphone|ipod/i.test(n)&&"undefined"!=typeof Pebble},7684:(e,t,r)=>{var n=r(5531);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)},5936:(e,t,r)=>{var n=r(4675),o=r(956);e.exports=void 0!==n&&"process"==o(n)},2173:(e,t,r)=>{var n=r(5531);e.exports=/web0s(?!.*chrome)/i.test(n)},5531:e=>{e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},7098:(e,t,r)=>{var n,o,i=r(2019),a=r(5531),s=i.process,c=i.Deno,u=s&&s.versions||c&&c.version,l=u&&u.v8;l&&(o=(n=l.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(o=+n[1]),e.exports=o},2197:e=>{e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},8936:(e,t,r)=>{var n=r(764),o=Error,i=n("".replace),a=String(o("zxcasd").stack),s=/\n\s*at [^:]*:[^\n]*/,c=s.test(a);e.exports=function(e,t){if(c&&"string"==typeof e&&!o.prepareStackTrace)for(;t--;)e=i(e,s,"");return e}},9235:(e,t,r)=>{var n=r(3085),o=r(8936),i=r(3358),a=Error.captureStackTrace;e.exports=function(e,t,r,s){i&&(a?a(e,t):n(e,"stack",o(r,s)))}},3358:(e,t,r)=>{var n=r(2170),o=r(73);e.exports=!n((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",o(1,7)),7!==e.stack)}))},123:(e,t,r)=>{"use strict";var n=r(2404),o=r(2170),i=r(6824),a=r(2909),s=r(4425),c=Error.prototype.toString,u=o((function(){if(n){var e=a(Object.defineProperty({},"name",{get:function(){return this===e}}));if("true"!==c.call(e))return!0}return"2: 1"!==c.call({message:1,name:2})||"Error"!==c.call({})}));e.exports=u?function(){var e=i(this),t=s(e.name,"Error"),r=s(e.message);return t?r?t+": "+r:t:r}:c},6367:(e,t,r)=>{var n=r(2019),o=r(3178).f,i=r(3085),a=r(4519),s=r(7528),c=r(9962),u=r(1323);e.exports=function(e,t){var r,l,f,h,p,d=e.target,m=e.global,v=e.stat;if(r=m?n:v?n[d]||s(d,{}):(n[d]||{}).prototype)for(l in t){if(h=t[l],f=e.dontCallGetSet?(p=o(r,l))&&p.value:r[l],!u(m?l:d+(v?".":"#")+l,e.forced)&&void 0!==f){if(typeof h==typeof f)continue;c(h,f)}(e.sham||f&&f.sham)&&i(h,"sham",!0),a(r,l,h,e)}}},2170:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},1705:(e,t,r)=>{"use strict";r(8664);var n=r(1889),o=r(4519),i=r(9338),a=r(2170),s=r(9163),c=r(3085),u=s("species"),l=RegExp.prototype;e.exports=function(e,t,r,f){var h=s(e),p=!a((function(){var t={};return t[h]=function(){return 7},7!=""[e](t)})),d=p&&!a((function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[u]=function(){return r},r.flags="",r[h]=/./[h]),r.exec=function(){return t=!0,null},r[h](""),!t}));if(!p||!d||r){var m=n(/./[h]),v=t(h,""[e],(function(e,t,r,o,a){var s=n(e),c=t.exec;return c===i||c===l.exec?p&&!a?{done:!0,value:m(t,r,o)}:{done:!0,value:s(r,t,o)}:{done:!1}}));o(String.prototype,e,v[0]),o(l,h,v[1])}f&&c(l[h],"sham",!0)}},1152:(e,t,r)=>{var n=r(3780),o=Function.prototype,i=o.apply,a=o.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?a.bind(i):function(){return a.apply(i,arguments)})},6748:(e,t,r)=>{var n=r(1889),o=r(2427),i=r(3780),a=n(n.bind);e.exports=function(e,t){return o(e),void 0===t?e:i?a(e,t):function(){return e.apply(t,arguments)}}},3780:(e,t,r)=>{var n=r(2170);e.exports=!n((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},8836:(e,t,r)=>{"use strict";var n=r(764),o=r(2427),i=r(2465),a=r(627),s=r(2980),c=r(3780),u=Function,l=n([].concat),f=n([].join),h={};e.exports=c?u.bind:function(e){var t=o(this),r=t.prototype,n=s(arguments,1),c=function(){var r=l(n,s(arguments));return this instanceof c?function(e,t,r){if(!a(h,t)){for(var n=[],o=0;o<t;o++)n[o]="a["+o+"]";h[t]=u("C,a","return new C("+f(n,",")+")")}return h[t](e,r)}(t,r.length,r):t.apply(e,r)};return i(r)&&(c.prototype=r),c}},1568:(e,t,r)=>{var n=r(3780),o=Function.prototype.call;e.exports=n?o.bind(o):function(){return o.apply(o,arguments)}},5114:(e,t,r)=>{var n=r(2404),o=r(627),i=Function.prototype,a=n&&Object.getOwnPropertyDescriptor,s=o(i,"name"),c=s&&"something"===function(){}.name,u=s&&(!n||n&&a(i,"name").configurable);e.exports={EXISTS:s,PROPER:c,CONFIGURABLE:u}},5904:(e,t,r)=>{var n=r(764),o=r(2427);e.exports=function(e,t,r){try{return n(o(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}}},1889:(e,t,r)=>{var n=r(956),o=r(764);e.exports=function(e){if("Function"===n(e))return o(e)}},764:(e,t,r)=>{var n=r(3780),o=Function.prototype,i=o.call,a=n&&o.bind.bind(i,i);e.exports=n?a:function(e){return function(){return i.apply(e,arguments)}}},3012:(e,t,r)=>{var n=r(2019),o=r(7389);e.exports=function(e,t){return arguments.length<2?(r=n[e],o(r)?r:void 0):n[e]&&n[e][t];var r}},9781:(e,t,r)=>{var n=r(9909),o=r(8453),i=r(2109),a=r(2311),s=r(9163)("iterator");e.exports=function(e){if(!i(e))return o(e,s)||o(e,"@@iterator")||a[n(e)]}},9119:(e,t,r)=>{var n=r(1568),o=r(2427),i=r(6824),a=r(4259),s=r(9781),c=TypeError;e.exports=function(e,t){var r=arguments.length<2?s(e):t;if(o(r))return i(n(r,e));throw c(a(e)+" is not iterable")}},3209:(e,t,r)=>{var n=r(764),o=r(5384),i=r(7389),a=r(956),s=r(8943),c=n([].push);e.exports=function(e){if(i(e))return e;if(o(e)){for(var t=e.length,r=[],n=0;n<t;n++){var u=e[n];"string"==typeof u?c(r,u):"number"!=typeof u&&"Number"!=a(u)&&"String"!=a(u)||c(r,s(u))}var l=r.length,f=!0;return function(e,t){if(f)return f=!1,t;if(o(this))return t;for(var n=0;n<l;n++)if(r[n]===e)return t}}}},8453:(e,t,r)=>{var n=r(2427),o=r(2109);e.exports=function(e,t){var r=e[t];return o(r)?void 0:n(r)}},2371:(e,t,r)=>{var n=r(764),o=r(4247),i=Math.floor,a=n("".charAt),s=n("".replace),c=n("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,r,n,f,h){var p=r+e.length,d=n.length,m=l;return void 0!==f&&(f=o(f),m=u),s(h,m,(function(o,s){var u;switch(a(s,0)){case"$":return"$";case"&":return e;case"`":return c(t,0,r);case"'":return c(t,p);case"<":u=f[c(s,1,-1)];break;default:var l=+s;if(0===l)return o;if(l>d){var h=i(l/10);return 0===h?o:h<=d?void 0===n[h-1]?a(s,1):n[h-1]+a(s,1):o}u=n[l-1]}return void 0===u?"":u}))}},2019:function(e,t,r){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||function(){return this}()||this||Function("return this")()},627:(e,t,r)=>{var n=r(764),o=r(4247),i=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(o(e),t)}},6508:e=>{e.exports={}},6666:e=>{e.exports=function(e,t){try{1==arguments.length?console.error(e):console.error(e,t)}catch(e){}}},3345:(e,t,r)=>{var n=r(3012);e.exports=n("document","documentElement")},8437:(e,t,r)=>{var n=r(2404),o=r(2170),i=r(1220);e.exports=!n&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},2146:(e,t,r)=>{var n=r(764),o=r(2170),i=r(956),a=Object,s=n("".split);e.exports=o((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?s(e,""):a(e)}:a},3661:(e,t,r)=>{var n=r(7389),o=r(2465),i=r(9125);e.exports=function(e,t,r){var a,s;return i&&n(a=t.constructor)&&a!==r&&o(s=a.prototype)&&s!==r.prototype&&i(e,s),e}},6070:(e,t,r)=>{var n=r(764),o=r(7389),i=r(2548),a=n(Function.toString);o(i.inspectSource)||(i.inspectSource=function(e){return a(e)}),e.exports=i.inspectSource},2534:(e,t,r)=>{var n=r(2465),o=r(3085);e.exports=function(e,t){n(t)&&"cause"in t&&o(e,"cause",t.cause)}},3292:(e,t,r)=>{var n,o,i,a=r(3018),s=r(2019),c=r(2465),u=r(3085),l=r(627),f=r(2548),h=r(19),p=r(6508),d="Object already initialized",m=s.TypeError,v=s.WeakMap;if(a||f.state){var g=f.state||(f.state=new v);g.get=g.get,g.has=g.has,g.set=g.set,n=function(e,t){if(g.has(e))throw m(d);return t.facade=e,g.set(e,t),t},o=function(e){return g.get(e)||{}},i=function(e){return g.has(e)}}else{var y=h("state");p[y]=!0,n=function(e,t){if(l(e,y))throw m(d);return t.facade=e,u(e,y,t),t},o=function(e){return l(e,y)?e[y]:{}},i=function(e){return l(e,y)}}e.exports={set:n,get:o,has:i,enforce:function(e){return i(e)?o(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!c(t)||(r=o(t)).type!==e)throw m("Incompatible receiver, "+e+" required");return r}}}},2464:(e,t,r)=>{var n=r(9163),o=r(2311),i=n("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[i]===e)}},5384:(e,t,r)=>{var n=r(956);e.exports=Array.isArray||function(e){return"Array"==n(e)}},7389:(e,t,r)=>{var n=r(3398),o=n.all;e.exports=n.IS_HTMLDDA?function(e){return"function"==typeof e||e===o}:function(e){return"function"==typeof e}},5615:(e,t,r)=>{var n=r(764),o=r(2170),i=r(7389),a=r(9909),s=r(3012),c=r(6070),u=function(){},l=[],f=s("Reflect","construct"),h=/^\s*(?:class|function)\b/,p=n(h.exec),d=!h.exec(u),m=function(e){if(!i(e))return!1;try{return f(u,l,e),!0}catch(e){return!1}},v=function(e){if(!i(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return d||!!p(h,c(e))}catch(e){return!0}};v.sham=!0,e.exports=!f||o((function(){var e;return m(m.call)||!m(Object)||!m((function(){e=!0}))||e}))?v:m},1323:(e,t,r)=>{var n=r(2170),o=r(7389),i=/#|\.prototype\./,a=function(e,t){var r=c[s(e)];return r==l||r!=u&&(o(t)?n(t):!!t)},s=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},c=a.data={},u=a.NATIVE="N",l=a.POLYFILL="P";e.exports=a},2109:e=>{e.exports=function(e){return null==e}},2465:(e,t,r)=>{var n=r(7389),o=r(3398),i=o.all;e.exports=o.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:n(e)||e===i}:function(e){return"object"==typeof e?null!==e:n(e)}},3709:e=>{e.exports=!1},5863:(e,t,r)=>{var n=r(2465),o=r(956),i=r(9163)("match");e.exports=function(e){var t;return n(e)&&(void 0!==(t=e[i])?!!t:"RegExp"==o(e))}},1666:(e,t,r)=>{var n=r(3012),o=r(7389),i=r(2378),a=r(8238),s=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return o(t)&&i(t.prototype,s(e))}},7626:(e,t,r)=>{var n=r(6748),o=r(1568),i=r(6824),a=r(4259),s=r(2464),c=r(1166),u=r(2378),l=r(9119),f=r(9781),h=r(3821),p=TypeError,d=function(e,t){this.stopped=e,this.result=t},m=d.prototype;e.exports=function(e,t,r){var v,g,y,b,w,x,E,k=r&&r.that,S=!(!r||!r.AS_ENTRIES),D=!(!r||!r.IS_RECORD),P=!(!r||!r.IS_ITERATOR),A=!(!r||!r.INTERRUPTED),C=n(t,k),O=function(e){return v&&h(v,"normal",e),new d(!0,e)},F=function(e){return S?(i(e),A?C(e[0],e[1],O):C(e[0],e[1])):A?C(e,O):C(e)};if(D)v=e.iterator;else if(P)v=e;else{if(!(g=f(e)))throw p(a(e)+" is not iterable");if(s(g)){for(y=0,b=c(e);b>y;y++)if((w=F(e[y]))&&u(m,w))return w;return new d(!1)}v=l(e,g)}for(x=D?e.next:v.next;!(E=o(x,v)).done;){try{w=F(E.value)}catch(e){h(v,"throw",e)}if("object"==typeof w&&w&&u(m,w))return w}return new d(!1)}},3821:(e,t,r)=>{var n=r(1568),o=r(6824),i=r(8453);e.exports=function(e,t,r){var a,s;o(e);try{if(!(a=i(e,"return"))){if("throw"===t)throw r;return r}a=n(a,e)}catch(e){s=!0,a=e}if("throw"===t)throw r;if(s)throw a;return o(a),r}},1395:(e,t,r)=>{"use strict";var n=r(641).IteratorPrototype,o=r(2909),i=r(73),a=r(9434),s=r(2311),c=function(){return this};e.exports=function(e,t,r,u){var l=t+" Iterator";return e.prototype=o(n,{next:i(+!u,r)}),a(e,l,!1,!0),s[l]=c,e}},8629:(e,t,r)=>{"use strict";var n=r(6367),o=r(1568),i=r(3709),a=r(5114),s=r(7389),c=r(1395),u=r(9710),l=r(9125),f=r(9434),h=r(3085),p=r(4519),d=r(9163),m=r(2311),v=r(641),g=a.PROPER,y=a.CONFIGURABLE,b=v.IteratorPrototype,w=v.BUGGY_SAFARI_ITERATORS,x=d("iterator"),E="keys",k="values",S="entries",D=function(){return this};e.exports=function(e,t,r,a,d,v,P){c(r,t,a);var A,C,O,F=function(e){if(e===d&&I)return I;if(!w&&e in _)return _[e];switch(e){case E:case k:case S:return function(){return new r(this,e)}}return function(){return new r(this)}},j=t+" Iterator",T=!1,_=e.prototype,R=_[x]||_["@@iterator"]||d&&_[d],I=!w&&R||F(d),L="Array"==t&&_.entries||R;if(L&&(A=u(L.call(new e)))!==Object.prototype&&A.next&&(i||u(A)===b||(l?l(A,b):s(A[x])||p(A,x,D)),f(A,j,!0,!0),i&&(m[j]=D)),g&&d==k&&R&&R.name!==k&&(!i&&y?h(_,"name",k):(T=!0,I=function(){return o(R,this)})),d)if(C={values:F(k),keys:v?I:F(E),entries:F(S)},P)for(O in C)(w||T||!(O in _))&&p(_,O,C[O]);else n({target:t,proto:!0,forced:w||T},C);return i&&!P||_[x]===I||p(_,x,I,{name:d}),m[t]=I,C}},641:(e,t,r)=>{"use strict";var n,o,i,a=r(2170),s=r(7389),c=r(2465),u=r(2909),l=r(9710),f=r(4519),h=r(9163),p=r(3709),d=h("iterator"),m=!1;[].keys&&("next"in(i=[].keys())?(o=l(l(i)))!==Object.prototype&&(n=o):m=!0),!c(n)||a((function(){var e={};return n[d].call(e)!==e}))?n={}:p&&(n=u(n)),s(n[d])||f(n,d,(function(){return this})),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:m}},2311:e=>{e.exports={}},1166:(e,t,r)=>{var n=r(6772);e.exports=function(e){return n(e.length)}},7841:(e,t,r)=>{var n=r(764),o=r(2170),i=r(7389),a=r(627),s=r(2404),c=r(5114).CONFIGURABLE,u=r(6070),l=r(3292),f=l.enforce,h=l.get,p=String,d=Object.defineProperty,m=n("".slice),v=n("".replace),g=n([].join),y=s&&!o((function(){return 8!==d((function(){}),"length",{value:8}).length})),b=String(String).split("String"),w=e.exports=function(e,t,r){"Symbol("===m(p(t),0,7)&&(t="["+v(p(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!a(e,"name")||c&&e.name!==t)&&(s?d(e,"name",{value:t,configurable:!0}):e.name=t),y&&r&&a(r,"arity")&&e.length!==r.arity&&d(e,"length",{value:r.arity});try{r&&a(r,"constructor")&&r.constructor?s&&d(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=f(e);return a(n,"source")||(n.source=g(b,"string"==typeof t?t:"")),e};Function.prototype.toString=w((function(){return i(this)&&h(this).source||u(this)}),"toString")},7951:e=>{var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?r:t)(n)}},174:(e,t,r)=>{var n,o,i,a,s,c=r(2019),u=r(6748),l=r(3178).f,f=r(6218).set,h=r(6884),p=r(7684),d=r(9022),m=r(2173),v=r(5936),g=c.MutationObserver||c.WebKitMutationObserver,y=c.document,b=c.process,w=c.Promise,x=l(c,"queueMicrotask"),E=x&&x.value;if(!E){var k=new h,S=function(){var e,t;for(v&&(e=b.domain)&&e.exit();t=k.get();)try{t()}catch(e){throw k.head&&n(),e}e&&e.enter()};p||v||m||!g||!y?!d&&w&&w.resolve?((a=w.resolve(void 0)).constructor=w,s=u(a.then,a),n=function(){s(S)}):v?n=function(){b.nextTick(S)}:(f=u(f,c),n=function(){f(S)}):(o=!0,i=y.createTextNode(""),new g(S).observe(i,{characterData:!0}),n=function(){i.data=o=!o}),E=function(e){k.head||n(),k.add(e)}}e.exports=E},8567:(e,t,r)=>{"use strict";var n=r(2427),o=TypeError,i=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw o("Bad Promise constructor");t=e,r=n})),this.resolve=n(t),this.reject=n(r)};e.exports.f=function(e){return new i(e)}},4425:(e,t,r)=>{var n=r(8943);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:n(e)}},8410:(e,t,r)=>{var n=r(5863),o=TypeError;e.exports=function(e){if(n(e))throw o("The method doesn't accept regular expressions");return e}},8340:(e,t,r)=>{"use strict";var n=r(2404),o=r(764),i=r(1568),a=r(2170),s=r(4329),c=r(8891),u=r(8327),l=r(4247),f=r(2146),h=Object.assign,p=Object.defineProperty,d=o([].concat);e.exports=!h||a((function(){if(n&&1!==h({b:1},h(p({},"a",{enumerable:!0,get:function(){p(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol(),o="abcdefghijklmnopqrst";return e[r]=7,o.split("").forEach((function(e){t[e]=e})),7!=h({},e)[r]||s(h({},t)).join("")!=o}))?function(e,t){for(var r=l(e),o=arguments.length,a=1,h=c.f,p=u.f;o>a;)for(var m,v=f(arguments[a++]),g=h?d(s(v),h(v)):s(v),y=g.length,b=0;y>b;)m=g[b++],n&&!i(p,v,m)||(r[m]=v[m]);return r}:h},2909:(e,t,r)=>{var n,o=r(6824),i=r(948),a=r(2197),s=r(6508),c=r(3345),u=r(1220),l=r(19),f="prototype",h="script",p=l("IE_PROTO"),d=function(){},m=function(e){return"<"+h+">"+e+"</"+h+">"},v=function(e){e.write(m("")),e.close();var t=e.parentWindow.Object;return e=null,t},g=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}var e,t,r;g="undefined"!=typeof document?document.domain&&n?v(n):(t=u("iframe"),r="java"+h+":",t.style.display="none",c.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(m("document.F=Object")),e.close(),e.F):v(n);for(var o=a.length;o--;)delete g[f][a[o]];return g()};s[p]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(d[f]=o(e),r=new d,d[f]=null,r[p]=e):r=g(),void 0===t?r:i.f(r,t)}},948:(e,t,r)=>{var n=r(2404),o=r(3939),i=r(3015),a=r(6824),s=r(2415),c=r(4329);t.f=n&&!o?Object.defineProperties:function(e,t){a(e);for(var r,n=s(t),o=c(t),u=o.length,l=0;u>l;)i.f(e,r=o[l++],n[r]);return e}},3015:(e,t,r)=>{var n=r(2404),o=r(8437),i=r(3939),a=r(6824),s=r(1918),c=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,f="enumerable",h="configurable",p="writable";t.f=n?i?function(e,t,r){if(a(e),t=s(t),a(r),"function"==typeof e&&"prototype"===t&&"value"in r&&p in r&&!r[p]){var n=l(e,t);n&&n[p]&&(e[t]=r.value,r={configurable:h in r?r[h]:n[h],enumerable:f in r?r[f]:n[f],writable:!1})}return u(e,t,r)}:u:function(e,t,r){if(a(e),t=s(t),a(r),o)try{return u(e,t,r)}catch(e){}if("get"in r||"set"in r)throw c("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},3178:(e,t,r)=>{var n=r(2404),o=r(1568),i=r(8327),a=r(73),s=r(2415),c=r(1918),u=r(627),l=r(8437),f=Object.getOwnPropertyDescriptor;t.f=n?f:function(e,t){if(e=s(e),t=c(t),l)try{return f(e,t)}catch(e){}if(u(e,t))return a(!o(i.f,e,t),e[t])}},6877:(e,t,r)=>{var n=r(956),o=r(2415),i=r(8290).f,a=r(6765),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return s&&"Window"==n(e)?function(e){try{return i(e)}catch(e){return a(s)}}(e):i(o(e))}},8290:(e,t,r)=>{var n=r(9814),o=r(2197).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,o)}},8891:(e,t)=>{t.f=Object.getOwnPropertySymbols},9710:(e,t,r)=>{var n=r(627),o=r(7389),i=r(4247),a=r(19),s=r(2757),c=a("IE_PROTO"),u=Object,l=u.prototype;e.exports=s?u.getPrototypeOf:function(e){var t=i(e);if(n(t,c))return t[c];var r=t.constructor;return o(r)&&t instanceof r?r.prototype:t instanceof u?l:null}},2378:(e,t,r)=>{var n=r(764);e.exports=n({}.isPrototypeOf)},9814:(e,t,r)=>{var n=r(764),o=r(627),i=r(2415),a=r(9483).indexOf,s=r(6508),c=n([].push);e.exports=function(e,t){var r,n=i(e),u=0,l=[];for(r in n)!o(s,r)&&o(n,r)&&c(l,r);for(;t.length>u;)o(n,r=t[u++])&&(~a(l,r)||c(l,r));return l}},4329:(e,t,r)=>{var n=r(9814),o=r(2197);e.exports=Object.keys||function(e){return n(e,o)}},8327:(e,t)=>{"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,o=n&&!r.call({1:2},1);t.f=o?function(e){var t=n(this,e);return!!t&&t.enumerable}:r},9125:(e,t,r)=>{var n=r(5904),o=r(6824),i=r(3693);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=n(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return o(r),i(n),t?e(r,n):r.__proto__=n,r}}():void 0)},3850:(e,t,r)=>{"use strict";var n=r(7867),o=r(9909);e.exports=n?{}.toString:function(){return"[object "+o(this)+"]"}},9276:(e,t,r)=>{var n=r(1568),o=r(7389),i=r(2465),a=TypeError;e.exports=function(e,t){var r,s;if("string"===t&&o(r=e.toString)&&!i(s=n(r,e)))return s;if(o(r=e.valueOf)&&!i(s=n(r,e)))return s;if("string"!==t&&o(r=e.toString)&&!i(s=n(r,e)))return s;throw a("Can't convert object to primitive value")}},2463:(e,t,r)=>{var n=r(3012),o=r(764),i=r(8290),a=r(8891),s=r(6824),c=o([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=i.f(s(e)),r=a.f;return r?c(t,r(e)):t}},9683:(e,t,r)=>{var n=r(2019);e.exports=n},481:e=>{e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},6069:(e,t,r)=>{var n=r(2019),o=r(1636),i=r(7389),a=r(1323),s=r(6070),c=r(9163),u=r(6786),l=r(9384),f=r(3709),h=r(7098),p=o&&o.prototype,d=c("species"),m=!1,v=i(n.PromiseRejectionEvent),g=a("Promise",(function(){var e=s(o),t=e!==String(o);if(!t&&66===h)return!0;if(f&&(!p.catch||!p.finally))return!0;if(!h||h<51||!/native code/.test(e)){var r=new o((function(e){e(1)})),n=function(e){e((function(){}),(function(){}))};if((r.constructor={})[d]=n,!(m=r.then((function(){}))instanceof n))return!0}return!t&&(u||l)&&!v}));e.exports={CONSTRUCTOR:g,REJECTION_EVENT:v,SUBCLASSING:m}},1636:(e,t,r)=>{var n=r(2019);e.exports=n.Promise},5777:(e,t,r)=>{var n=r(6824),o=r(2465),i=r(8567);e.exports=function(e,t){if(n(e),o(t)&&t.constructor===e)return t;var r=i.f(e);return(0,r.resolve)(t),r.promise}},3152:(e,t,r)=>{var n=r(1636),o=r(9328),i=r(6069).CONSTRUCTOR;e.exports=i||!o((function(e){n.all(e).then(void 0,(function(){}))}))},5981:(e,t,r)=>{var n=r(3015).f;e.exports=function(e,t,r){r in e||n(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})}},6884:e=>{var t=function(){this.head=null,this.tail=null};t.prototype={add:function(e){var t={item:e,next:null},r=this.tail;r?r.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}},e.exports=t},5198:(e,t,r)=>{var n=r(1568),o=r(6824),i=r(7389),a=r(956),s=r(9338),c=TypeError;e.exports=function(e,t){var r=e.exec;if(i(r)){var u=n(r,e,t);return null!==u&&o(u),u}if("RegExp"===a(e))return n(s,e,t);throw c("RegExp#exec called on incompatible receiver")}},9338:(e,t,r)=>{"use strict";var n,o,i=r(1568),a=r(764),s=r(8943),c=r(8811),u=r(5526),l=r(4558),f=r(2909),h=r(3292).get,p=r(2993),d=r(9953),m=l("native-string-replace",String.prototype.replace),v=RegExp.prototype.exec,g=v,y=a("".charAt),b=a("".indexOf),w=a("".replace),x=a("".slice),E=(o=/b*/g,i(v,n=/a/,"a"),i(v,o,"a"),0!==n.lastIndex||0!==o.lastIndex),k=u.BROKEN_CARET,S=void 0!==/()??/.exec("")[1];(E||S||k||p||d)&&(g=function(e){var t,r,n,o,a,u,l,p=this,d=h(p),D=s(e),P=d.raw;if(P)return P.lastIndex=p.lastIndex,t=i(g,P,D),p.lastIndex=P.lastIndex,t;var A=d.groups,C=k&&p.sticky,O=i(c,p),F=p.source,j=0,T=D;if(C&&(O=w(O,"y",""),-1===b(O,"g")&&(O+="g"),T=x(D,p.lastIndex),p.lastIndex>0&&(!p.multiline||p.multiline&&"\n"!==y(D,p.lastIndex-1))&&(F="(?: "+F+")",T=" "+T,j++),r=new RegExp("^(?:"+F+")",O)),S&&(r=new RegExp("^"+F+"$(?!\\s)",O)),E&&(n=p.lastIndex),o=i(v,C?r:p,T),C?o?(o.input=x(o.input,j),o[0]=x(o[0],j),o.index=p.lastIndex,p.lastIndex+=o[0].length):p.lastIndex=0:E&&o&&(p.lastIndex=p.global?o.index+o[0].length:n),S&&o&&o.length>1&&i(m,o[0],r,(function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(o[a]=void 0)})),o&&A)for(o.groups=u=f(null),a=0;a<A.length;a++)u[(l=A[a])[0]]=o[l[1]];return o}),e.exports=g},8811:(e,t,r)=>{"use strict";var n=r(6824);e.exports=function(){var e=n(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},6059:(e,t,r)=>{var n=r(1568),o=r(627),i=r(2378),a=r(8811),s=RegExp.prototype;e.exports=function(e){var t=e.flags;return void 0!==t||"flags"in s||o(e,"flags")||!i(s,e)?t:n(a,e)}},5526:(e,t,r)=>{var n=r(2170),o=r(2019).RegExp,i=n((function(){var e=o("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),a=i||n((function(){return!o("a","y").sticky})),s=i||n((function(){var e=o("^r","gy");return e.lastIndex=2,null!=e.exec("str")}));e.exports={BROKEN_CARET:s,MISSED_STICKY:a,UNSUPPORTED_Y:i}},2993:(e,t,r)=>{var n=r(2170),o=r(2019).RegExp;e.exports=n((function(){var e=o(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}))},9953:(e,t,r)=>{var n=r(2170),o=r(2019).RegExp;e.exports=n((function(){var e=o("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},8466:(e,t,r)=>{var n=r(2109),o=TypeError;e.exports=function(e){if(n(e))throw o("Can't call method on "+e);return e}},2977:e=>{e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},9229:(e,t,r)=>{"use strict";var n=r(3012),o=r(1571),i=r(9163),a=r(2404),s=i("species");e.exports=function(e){var t=n(e);a&&t&&!t[s]&&o(t,s,{configurable:!0,get:function(){return this}})}},9434:(e,t,r)=>{var n=r(3015).f,o=r(627),i=r(9163)("toStringTag");e.exports=function(e,t,r){e&&!r&&(e=e.prototype),e&&!o(e,i)&&n(e,i,{configurable:!0,value:t})}},19:(e,t,r)=>{var n=r(4558),o=r(8103),i=n("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},2548:(e,t,r)=>{var n=r(2019),o=r(7528),i="__core-js_shared__",a=n[i]||o(i,{});e.exports=a},4558:(e,t,r)=>{var n=r(3709),o=r(2548);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.31.0",mode:n?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.31.0/LICENSE",source:"https://github.com/zloirock/core-js"})},8256:(e,t,r)=>{var n=r(6824),o=r(7752),i=r(2109),a=r(9163)("species");e.exports=function(e,t){var r,s=n(e).constructor;return void 0===s||i(r=n(s)[a])?t:o(r)}},7241:(e,t,r)=>{var n=r(2170);e.exports=function(e){return n((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))}},4003:(e,t,r)=>{var n=r(764),o=r(6287),i=r(8943),a=r(8466),s=n("".charAt),c=n("".charCodeAt),u=n("".slice),l=function(e){return function(t,r){var n,l,f=i(a(t)),h=o(r),p=f.length;return h<0||h>=p?e?"":void 0:(n=c(f,h))<55296||n>56319||h+1===p||(l=c(f,h+1))<56320||l>57343?e?s(f,h):n:e?u(f,h,h+2):l-56320+(n-55296<<10)+65536}};e.exports={codeAt:l(!1),charAt:l(!0)}},5946:(e,t,r)=>{var n=r(764),o=2147483647,i=/[^\0-\u007E]/,a=/[.\u3002\uFF0E\uFF61]/g,s="Overflow: input needs wider integers to process",c=RangeError,u=n(a.exec),l=Math.floor,f=String.fromCharCode,h=n("".charCodeAt),p=n([].join),d=n([].push),m=n("".replace),v=n("".split),g=n("".toLowerCase),y=function(e){return e+22+75*(e<26)},b=function(e,t,r){var n=0;for(e=r?l(e/700):e>>1,e+=l(e/t);e>455;)e=l(e/35),n+=36;return l(n+36*e/(e+38))},w=function(e){var t=[];e=function(e){for(var t=[],r=0,n=e.length;r<n;){var o=h(e,r++);if(o>=55296&&o<=56319&&r<n){var i=h(e,r++);56320==(64512&i)?d(t,((1023&o)<<10)+(1023&i)+65536):(d(t,o),r--)}else d(t,o)}return t}(e);var r,n,i=e.length,a=128,u=0,m=72;for(r=0;r<e.length;r++)(n=e[r])<128&&d(t,f(n));var v=t.length,g=v;for(v&&d(t,"-");g<i;){var w=o;for(r=0;r<e.length;r++)(n=e[r])>=a&&n<w&&(w=n);var x=g+1;if(w-a>l((o-u)/x))throw c(s);for(u+=(w-a)*x,a=w,r=0;r<e.length;r++){if((n=e[r])<a&&++u>o)throw c(s);if(n==a){for(var E=u,k=36;;){var S=k<=m?1:k>=m+26?26:k-m;if(E<S)break;var D=E-S,P=36-S;d(t,f(y(S+D%P))),E=l(D/P),k+=36}d(t,f(y(E))),m=b(u,x,g==v),u=0,g++}}u++,a++}return p(t,"")};e.exports=function(e){var t,r,n=[],o=v(m(g(e),a,"."),".");for(t=0;t<o.length;t++)r=o[t],d(n,u(i,r)?"xn--"+w(r):r);return p(n,".")}},1582:(e,t,r)=>{var n=r(5114).PROPER,o=r(2170),i=r(2567);e.exports=function(e){return o((function(){return!!i[e]()||"​…᠎"!=="​…᠎"[e]()||n&&i[e].name!==e}))}},252:(e,t,r)=>{var n=r(764),o=r(8466),i=r(8943),a=r(2567),s=n("".replace),c=RegExp("^["+a+"]+"),u=RegExp("(^|[^"+a+"])["+a+"]+$"),l=function(e){return function(t){var r=i(o(t));return 1&e&&(r=s(r,c,"")),2&e&&(r=s(r,u,"$1")),r}};e.exports={start:l(1),end:l(2),trim:l(3)}},3488:(e,t,r)=>{var n=r(7098),o=r(2170),i=r(2019).String;e.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol();return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},2818:(e,t,r)=>{var n=r(1568),o=r(3012),i=r(9163),a=r(4519);e.exports=function(){var e=o("Symbol"),t=e&&e.prototype,r=t&&t.valueOf,s=i("toPrimitive");t&&!t[s]&&a(t,s,(function(e){return n(r,this)}),{arity:1})}},8463:(e,t,r)=>{var n=r(3488);e.exports=n&&!!Symbol.for&&!!Symbol.keyFor},6218:(e,t,r)=>{var n,o,i,a,s=r(2019),c=r(1152),u=r(6748),l=r(7389),f=r(627),h=r(2170),p=r(3345),d=r(2980),m=r(1220),v=r(3108),g=r(7684),y=r(5936),b=s.setImmediate,w=s.clearImmediate,x=s.process,E=s.Dispatch,k=s.Function,S=s.MessageChannel,D=s.String,P=0,A={},C="onreadystatechange";h((function(){n=s.location}));var O=function(e){if(f(A,e)){var t=A[e];delete A[e],t()}},F=function(e){return function(){O(e)}},j=function(e){O(e.data)},T=function(e){s.postMessage(D(e),n.protocol+"//"+n.host)};b&&w||(b=function(e){v(arguments.length,1);var t=l(e)?e:k(e),r=d(arguments,1);return A[++P]=function(){c(t,void 0,r)},o(P),P},w=function(e){delete A[e]},y?o=function(e){x.nextTick(F(e))}:E&&E.now?o=function(e){E.now(F(e))}:S&&!g?(a=(i=new S).port2,i.port1.onmessage=j,o=u(a.postMessage,a)):s.addEventListener&&l(s.postMessage)&&!s.importScripts&&n&&"file:"!==n.protocol&&!h(T)?(o=T,s.addEventListener("message",j,!1)):o=C in m("script")?function(e){p.appendChild(m("script"))[C]=function(){p.removeChild(this),O(e)}}:function(e){setTimeout(F(e),0)}),e.exports={set:b,clear:w}},3041:(e,t,r)=>{var n=r(6287),o=Math.max,i=Math.min;e.exports=function(e,t){var r=n(e);return r<0?o(r+t,0):i(r,t)}},2415:(e,t,r)=>{var n=r(2146),o=r(8466);e.exports=function(e){return n(o(e))}},6287:(e,t,r)=>{var n=r(7951);e.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}},6772:(e,t,r)=>{var n=r(6287),o=Math.min;e.exports=function(e){return e>0?o(n(e),9007199254740991):0}},4247:(e,t,r)=>{var n=r(8466),o=Object;e.exports=function(e){return o(n(e))}},4929:(e,t,r)=>{var n=r(1568),o=r(2465),i=r(1666),a=r(8453),s=r(9276),c=r(9163),u=TypeError,l=c("toPrimitive");e.exports=function(e,t){if(!o(e)||i(e))return e;var r,c=a(e,l);if(c){if(void 0===t&&(t="default"),r=n(c,e,t),!o(r)||i(r))return r;throw u("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},1918:(e,t,r)=>{var n=r(4929),o=r(1666);e.exports=function(e){var t=n(e,"string");return o(t)?t:t+""}},7867:(e,t,r)=>{var n={};n[r(9163)("toStringTag")]="z",e.exports="[object z]"===String(n)},8943:(e,t,r)=>{var n=r(9909),o=String;e.exports=function(e){if("Symbol"===n(e))throw TypeError("Cannot convert a Symbol value to a string");return o(e)}},4259:e=>{var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},8103:(e,t,r)=>{var n=r(764),o=0,i=Math.random(),a=n(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++o+i,36)}},5047:(e,t,r)=>{var n=r(2170),o=r(9163),i=r(2404),a=r(3709),s=o("iterator");e.exports=!n((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,r=new URLSearchParams("a=1&a=2"),n="";return e.pathname="c%20d",t.forEach((function(e,r){t.delete("b"),n+=r+e})),r.delete("a",2),a&&(!e.toJSON||!r.has("a",1)||r.has("a",2))||!t.size&&(a||!i)||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[s]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host}))},8238:(e,t,r)=>{var n=r(3488);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3939:(e,t,r)=>{var n=r(2404),o=r(2170);e.exports=n&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},3108:e=>{var t=TypeError;e.exports=function(e,r){if(e<r)throw t("Not enough arguments");return e}},3018:(e,t,r)=>{var n=r(2019),o=r(7389),i=n.WeakMap;e.exports=o(i)&&/native code/.test(String(i))},3758:(e,t,r)=>{var n=r(9683),o=r(627),i=r(3920),a=r(3015).f;e.exports=function(e){var t=n.Symbol||(n.Symbol={});o(t,e)||a(t,e,{value:i.f(e)})}},3920:(e,t,r)=>{var n=r(9163);t.f=n},9163:(e,t,r)=>{var n=r(2019),o=r(4558),i=r(627),a=r(8103),s=r(3488),c=r(8238),u=n.Symbol,l=o("wks"),f=c?u.for||u:u&&u.withoutSetter||a;e.exports=function(e){return i(l,e)||(l[e]=s&&i(u,e)?u[e]:f("Symbol."+e)),l[e]}},2567:e=>{e.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},5171:(e,t,r)=>{"use strict";var n=r(3012),o=r(627),i=r(3085),a=r(2378),s=r(9125),c=r(9962),u=r(5981),l=r(3661),f=r(4425),h=r(2534),p=r(9235),d=r(2404),m=r(3709);e.exports=function(e,t,r,v){var g="stackTraceLimit",y=v?2:1,b=e.split("."),w=b[b.length-1],x=n.apply(null,b);if(x){var E=x.prototype;if(!m&&o(E,"cause")&&delete E.cause,!r)return x;var k=n("Error"),S=t((function(e,t){var r=f(v?t:e,void 0),n=v?new x(e):new x;return void 0!==r&&i(n,"message",r),p(n,S,n.stack,2),this&&a(E,this)&&l(n,this,S),arguments.length>y&&h(n,arguments[y]),n}));if(S.prototype=E,"Error"!==w?s?s(S,k):c(S,k,{name:!0}):d&&g in x&&(u(S,x,g),u(S,x,"prepareStackTrace")),c(S,x),!m)try{E.name!==w&&i(E,"name",w),E.constructor=S}catch(e){}return S}}},7190:(e,t,r)=>{"use strict";var n=r(6367),o=r(2170),i=r(5384),a=r(2465),s=r(4247),c=r(1166),u=r(7711),l=r(7926),f=r(1780),h=r(5815),p=r(9163),d=r(7098),m=p("isConcatSpreadable"),v=d>=51||!o((function(){var e=[];return e[m]=!1,e.concat()[0]!==e})),g=function(e){if(!a(e))return!1;var t=e[m];return void 0!==t?!!t:i(e)};n({target:"Array",proto:!0,arity:1,forced:!v||!h("concat")},{concat:function(e){var t,r,n,o,i,a=s(this),h=f(a,0),p=0;for(t=-1,n=arguments.length;t<n;t++)if(g(i=-1===t?a:arguments[t]))for(o=c(i),u(p+o),r=0;r<o;r++,p++)r in i&&l(h,p,i[r]);else u(p+1),l(h,p++,i);return h.length=p,h}})},4703:(e,t,r)=>{"use strict";var n=r(6367),o=r(3250).filter;n({target:"Array",proto:!0,forced:!r(5815)("filter")},{filter:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},6230:(e,t,r)=>{"use strict";var n=r(6367),o=r(1385);n({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},2443:(e,t,r)=>{"use strict";var n=r(6367),o=r(9483).includes,i=r(2170),a=r(2921);n({target:"Array",proto:!0,forced:i((function(){return!Array(1).includes()}))},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},5591:(e,t,r)=>{"use strict";var n=r(2415),o=r(2921),i=r(2311),a=r(3292),s=r(3015).f,c=r(8629),u=r(2229),l=r(3709),f=r(2404),h="Array Iterator",p=a.set,d=a.getterFor(h);e.exports=c(Array,"Array",(function(e,t){p(this,{type:h,target:n(e),index:0,kind:t})}),(function(){var e=d(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,u(void 0,!0)):u("keys"==r?n:"values"==r?t[n]:[n,t[n]],!1)}),"values");var m=i.Arguments=i.Array;if(o("keys"),o("values"),o("entries"),!l&&f&&"values"!==m.name)try{s(m,"name",{value:"values"})}catch(e){}},888:(e,t,r)=>{"use strict";var n=r(6367),o=r(764),i=r(2146),a=r(2415),s=r(8478),c=o([].join);n({target:"Array",proto:!0,forced:i!=Object||!s("join",",")},{join:function(e){return c(a(this),void 0===e?",":e)}})},8213:(e,t,r)=>{"use strict";var n=r(6367),o=r(3250).map;n({target:"Array",proto:!0,forced:!r(5815)("map")},{map:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},5013:(e,t,r)=>{"use strict";var n=r(6367),o=r(4247),i=r(1166),a=r(9912),s=r(7711);n({target:"Array",proto:!0,arity:1,forced:r(2170)((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}()},{push:function(e){var t=o(this),r=i(t),n=arguments.length;s(r+n);for(var c=0;c<n;c++)t[r]=arguments[c],r++;return a(t,r),r}})},5041:(e,t,r)=>{"use strict";var n=r(6367),o=r(2005).left,i=r(8478),a=r(7098);n({target:"Array",proto:!0,forced:!r(5936)&&a>79&&a<83||!i("reduce")},{reduce:function(e){var t=arguments.length;return o(this,e,t,t>1?arguments[1]:void 0)}})},3934:(e,t,r)=>{"use strict";var n=r(6367),o=r(5384),i=r(5615),a=r(2465),s=r(3041),c=r(1166),u=r(2415),l=r(7926),f=r(9163),h=r(5815),p=r(2980),d=h("slice"),m=f("species"),v=Array,g=Math.max;n({target:"Array",proto:!0,forced:!d},{slice:function(e,t){var r,n,f,h=u(this),d=c(h),y=s(e,d),b=s(void 0===t?d:t,d);if(o(h)&&(r=h.constructor,(i(r)&&(r===v||o(r.prototype))||a(r)&&null===(r=r[m]))&&(r=void 0),r===v||void 0===r))return p(h,y,b);for(n=new(void 0===r?v:r)(g(b-y,0)),f=0;y<b;y++,f++)y in h&&l(n,f,h[y]);return n.length=f,n}})},3344:(e,t,r)=>{var n=r(764),o=r(4519),i=Date.prototype,a="Invalid Date",s="toString",c=n(i[s]),u=n(i.getTime);String(new Date(NaN))!=a&&o(i,s,(function(){var e=u(this);return e==e?c(this):a}))},7313:(e,t,r)=>{var n=r(6367),o=r(2019),i=r(1152),a=r(5171),s="WebAssembly",c=o[s],u=7!==Error("e",{cause:7}).cause,l=function(e,t){var r={};r[e]=a(e,t,u),n({global:!0,constructor:!0,arity:1,forced:u},r)},f=function(e,t){if(c&&c[e]){var r={};r[e]=a(s+"."+e,t,u),n({target:s,stat:!0,constructor:!0,arity:1,forced:u},r)}};l("Error",(function(e){return function(t){return i(e,this,arguments)}})),l("EvalError",(function(e){return function(t){return i(e,this,arguments)}})),l("RangeError",(function(e){return function(t){return i(e,this,arguments)}})),l("ReferenceError",(function(e){return function(t){return i(e,this,arguments)}})),l("SyntaxError",(function(e){return function(t){return i(e,this,arguments)}})),l("TypeError",(function(e){return function(t){return i(e,this,arguments)}})),l("URIError",(function(e){return function(t){return i(e,this,arguments)}})),f("CompileError",(function(e){return function(t){return i(e,this,arguments)}})),f("LinkError",(function(e){return function(t){return i(e,this,arguments)}})),f("RuntimeError",(function(e){return function(t){return i(e,this,arguments)}}))},1044:(e,t,r)=>{var n=r(4519),o=r(123),i=Error.prototype;i.toString!==o&&n(i,"toString",o)},3740:(e,t,r)=>{var n=r(2404),o=r(5114).EXISTS,i=r(764),a=r(1571),s=Function.prototype,c=i(s.toString),u=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,l=i(u.exec);n&&!o&&a(s,"name",{configurable:!0,get:function(){try{return l(u,c(this))[1]}catch(e){return""}}})},776:(e,t,r)=>{var n=r(6367),o=r(3012),i=r(1152),a=r(1568),s=r(764),c=r(2170),u=r(7389),l=r(1666),f=r(2980),h=r(3209),p=r(3488),d=String,m=o("JSON","stringify"),v=s(/./.exec),g=s("".charAt),y=s("".charCodeAt),b=s("".replace),w=s(1..toString),x=/[\uD800-\uDFFF]/g,E=/^[\uD800-\uDBFF]$/,k=/^[\uDC00-\uDFFF]$/,S=!p||c((function(){var e=o("Symbol")();return"[null]"!=m([e])||"{}"!=m({a:e})||"{}"!=m(Object(e))})),D=c((function(){return'"\\udf06\\ud834"'!==m("\udf06\ud834")||'"\\udead"'!==m("\udead")})),P=function(e,t){var r=f(arguments),n=h(t);if(u(n)||void 0!==e&&!l(e))return r[1]=function(e,t){if(u(n)&&(t=a(n,this,d(e),t)),!l(t))return t},i(m,null,r)},A=function(e,t,r){var n=g(r,t-1),o=g(r,t+1);return v(E,e)&&!v(k,o)||v(k,e)&&!v(E,n)?"\\u"+w(y(e,0),16):e};m&&n({target:"JSON",stat:!0,arity:3,forced:S||D},{stringify:function(e,t,r){var n=f(arguments),o=i(S?P:m,null,n);return D&&"string"==typeof o?b(o,x,A):o}})},4332:(e,t,r)=>{var n=r(6367),o=r(8340);n({target:"Object",stat:!0,arity:2,forced:Object.assign!==o},{assign:o})},7462:(e,t,r)=>{var n=r(6367),o=r(2404),i=r(948).f;n({target:"Object",stat:!0,forced:Object.defineProperties!==i,sham:!o},{defineProperties:i})},5148:(e,t,r)=>{var n=r(6367),o=r(2404),i=r(3015).f;n({target:"Object",stat:!0,forced:Object.defineProperty!==i,sham:!o},{defineProperty:i})},9855:(e,t,r)=>{var n=r(6367),o=r(2170),i=r(2415),a=r(3178).f,s=r(2404);n({target:"Object",stat:!0,forced:!s||o((function(){a(1)})),sham:!s},{getOwnPropertyDescriptor:function(e,t){return a(i(e),t)}})},5126:(e,t,r)=>{var n=r(6367),o=r(2404),i=r(2463),a=r(2415),s=r(3178),c=r(7926);n({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(e){for(var t,r,n=a(e),o=s.f,u=i(n),l={},f=0;u.length>f;)void 0!==(r=o(n,t=u[f++]))&&c(l,t,r);return l}})},1423:(e,t,r)=>{var n=r(6367),o=r(3488),i=r(2170),a=r(8891),s=r(4247);n({target:"Object",stat:!0,forced:!o||i((function(){a.f(1)}))},{getOwnPropertySymbols:function(e){var t=a.f;return t?t(s(e)):[]}})},5444:(e,t,r)=>{var n=r(6367),o=r(4247),i=r(4329);n({target:"Object",stat:!0,forced:r(2170)((function(){i(1)}))},{keys:function(e){return i(o(e))}})},3583:(e,t,r)=>{var n=r(7867),o=r(4519),i=r(3850);n||o(Object.prototype,"toString",i,{unsafe:!0})},2022:(e,t,r)=>{"use strict";var n=r(6367),o=r(1568),i=r(2427),a=r(8567),s=r(481),c=r(7626);n({target:"Promise",stat:!0,forced:r(3152)},{all:function(e){var t=this,r=a.f(t),n=r.resolve,u=r.reject,l=s((function(){var r=i(t.resolve),a=[],s=0,l=1;c(e,(function(e){var i=s++,c=!1;l++,o(r,t,e).then((function(e){c||(c=!0,a[i]=e,--l||n(a))}),u)})),--l||n(a)}));return l.error&&u(l.value),r.promise}})},7089:(e,t,r)=>{"use strict";var n=r(6367),o=r(3709),i=r(6069).CONSTRUCTOR,a=r(1636),s=r(3012),c=r(7389),u=r(4519),l=a&&a.prototype;if(n({target:"Promise",proto:!0,forced:i,real:!0},{catch:function(e){return this.then(void 0,e)}}),!o&&c(a)){var f=s("Promise").prototype.catch;l.catch!==f&&u(l,"catch",f,{unsafe:!0})}},898:(e,t,r)=>{"use strict";var n,o,i,a=r(6367),s=r(3709),c=r(5936),u=r(2019),l=r(1568),f=r(4519),h=r(9125),p=r(9434),d=r(9229),m=r(2427),v=r(7389),g=r(2465),y=r(1167),b=r(8256),w=r(6218).set,x=r(174),E=r(6666),k=r(481),S=r(6884),D=r(3292),P=r(1636),A=r(6069),C=r(8567),O="Promise",F=A.CONSTRUCTOR,j=A.REJECTION_EVENT,T=A.SUBCLASSING,_=D.getterFor(O),R=D.set,I=P&&P.prototype,L=P,B=I,M=u.TypeError,N=u.document,H=u.process,z=C.f,U=z,$=!!(N&&N.createEvent&&u.dispatchEvent),q="unhandledrejection",V=function(e){var t;return!(!g(e)||!v(t=e.then))&&t},G=function(e,t){var r,n,o,i=t.value,a=1==t.state,s=a?e.ok:e.fail,c=e.resolve,u=e.reject,f=e.domain;try{s?(a||(2===t.rejection&&Y(t),t.rejection=1),!0===s?r=i:(f&&f.enter(),r=s(i),f&&(f.exit(),o=!0)),r===e.promise?u(M("Promise-chain cycle")):(n=V(r))?l(n,r,c,u):c(r)):u(i)}catch(e){f&&!o&&f.exit(),u(e)}},W=function(e,t){e.notified||(e.notified=!0,x((function(){for(var r,n=e.reactions;r=n.get();)G(r,e);e.notified=!1,t&&!e.rejection&&Q(e)})))},K=function(e,t,r){var n,o;$?((n=N.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),u.dispatchEvent(n)):n={promise:t,reason:r},!j&&(o=u["on"+e])?o(n):e===q&&E("Unhandled promise rejection",r)},Q=function(e){l(w,u,(function(){var t,r=e.facade,n=e.value;if(Z(e)&&(t=k((function(){c?H.emit("unhandledRejection",n,r):K(q,r,n)})),e.rejection=c||Z(e)?2:1,t.error))throw t.value}))},Z=function(e){return 1!==e.rejection&&!e.parent},Y=function(e){l(w,u,(function(){var t=e.facade;c?H.emit("rejectionHandled",t):K("rejectionhandled",t,e.value)}))},X=function(e,t,r){return function(n){e(t,n,r)}},J=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,W(e,!0))},ee=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw M("Promise can't be resolved itself");var n=V(t);n?x((function(){var r={done:!1};try{l(n,t,X(ee,r,e),X(J,r,e))}catch(t){J(r,t,e)}})):(e.value=t,e.state=1,W(e,!1))}catch(t){J({done:!1},t,e)}}};if(F&&(B=(L=function(e){y(this,B),m(e),l(n,this);var t=_(this);try{e(X(ee,t),X(J,t))}catch(e){J(t,e)}}).prototype,(n=function(e){R(this,{type:O,done:!1,notified:!1,parent:!1,reactions:new S,rejection:!1,state:0,value:void 0})}).prototype=f(B,"then",(function(e,t){var r=_(this),n=z(b(this,L));return r.parent=!0,n.ok=!v(e)||e,n.fail=v(t)&&t,n.domain=c?H.domain:void 0,0==r.state?r.reactions.add(n):x((function(){G(n,r)})),n.promise})),o=function(){var e=new n,t=_(e);this.promise=e,this.resolve=X(ee,t),this.reject=X(J,t)},C.f=z=function(e){return e===L||undefined===e?new o(e):U(e)},!s&&v(P)&&I!==Object.prototype)){i=I.then,T||f(I,"then",(function(e,t){var r=this;return new L((function(e,t){l(i,r,e,t)})).then(e,t)}),{unsafe:!0});try{delete I.constructor}catch(e){}h&&h(I,B)}a({global:!0,constructor:!0,wrap:!0,forced:F},{Promise:L}),p(L,O,!1,!0),d(O)},7395:(e,t,r)=>{r(898),r(2022),r(7089),r(9795),r(5264),r(598)},9795:(e,t,r)=>{"use strict";var n=r(6367),o=r(1568),i=r(2427),a=r(8567),s=r(481),c=r(7626);n({target:"Promise",stat:!0,forced:r(3152)},{race:function(e){var t=this,r=a.f(t),n=r.reject,u=s((function(){var a=i(t.resolve);c(e,(function(e){o(a,t,e).then(r.resolve,n)}))}));return u.error&&n(u.value),r.promise}})},5264:(e,t,r)=>{"use strict";var n=r(6367),o=r(1568),i=r(8567);n({target:"Promise",stat:!0,forced:r(6069).CONSTRUCTOR},{reject:function(e){var t=i.f(this);return o(t.reject,void 0,e),t.promise}})},598:(e,t,r)=>{"use strict";var n=r(6367),o=r(3012),i=r(3709),a=r(1636),s=r(6069).CONSTRUCTOR,c=r(5777),u=o("Promise"),l=i&&!s;n({target:"Promise",stat:!0,forced:i||s},{resolve:function(e){return c(l&&this===u?a:this,e)}})},1333:(e,t,r)=>{var n=r(6367),o=r(3012),i=r(1152),a=r(8836),s=r(7752),c=r(6824),u=r(2465),l=r(2909),f=r(2170),h=o("Reflect","construct"),p=Object.prototype,d=[].push,m=f((function(){function e(){}return!(h((function(){}),[],e)instanceof e)})),v=!f((function(){h((function(){}))})),g=m||v;n({target:"Reflect",stat:!0,forced:g,sham:g},{construct:function(e,t){s(e),c(t);var r=arguments.length<3?e:s(arguments[2]);if(v&&!m)return h(e,t,r);if(e==r){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var n=[null];return i(d,n,t),new(i(a,e,n))}var o=r.prototype,f=l(u(o)?o:p),g=i(e,f,t);return u(g)?g:f}})},6585:(e,t,r)=>{var n=r(6367),o=r(2019),i=r(9434);n({global:!0},{Reflect:{}}),i(o.Reflect,"Reflect",!0)},3473:(e,t,r)=>{var n=r(2404),o=r(2019),i=r(764),a=r(1323),s=r(3661),c=r(3085),u=r(8290).f,l=r(2378),f=r(5863),h=r(8943),p=r(6059),d=r(5526),m=r(5981),v=r(4519),g=r(2170),y=r(627),b=r(3292).enforce,w=r(9229),x=r(9163),E=r(2993),k=r(9953),S=x("match"),D=o.RegExp,P=D.prototype,A=o.SyntaxError,C=i(P.exec),O=i("".charAt),F=i("".replace),j=i("".indexOf),T=i("".slice),_=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,R=/a/g,I=/a/g,L=new D(R)!==R,B=d.MISSED_STICKY,M=d.UNSUPPORTED_Y,N=n&&(!L||B||E||k||g((function(){return I[S]=!1,D(R)!=R||D(I)==I||"/a/i"!=D(R,"i")})));if(a("RegExp",N)){for(var H=function(e,t){var r,n,o,i,a,u,d=l(P,this),m=f(e),v=void 0===t,g=[],w=e;if(!d&&m&&v&&e.constructor===H)return e;if((m||l(P,e))&&(e=e.source,v&&(t=p(w))),e=void 0===e?"":h(e),t=void 0===t?"":h(t),w=e,E&&"dotAll"in R&&(n=!!t&&j(t,"s")>-1)&&(t=F(t,/s/g,"")),r=t,B&&"sticky"in R&&(o=!!t&&j(t,"y")>-1)&&M&&(t=F(t,/y/g,"")),k&&(i=function(e){for(var t,r=e.length,n=0,o="",i=[],a={},s=!1,c=!1,u=0,l="";n<=r;n++){if("\\"===(t=O(e,n)))t+=O(e,++n);else if("]"===t)s=!1;else if(!s)switch(!0){case"["===t:s=!0;break;case"("===t:C(_,T(e,n+1))&&(n+=2,c=!0),o+=t,u++;continue;case">"===t&&c:if(""===l||y(a,l))throw new A("Invalid capture group name");a[l]=!0,i[i.length]=[l,u],c=!1,l="";continue}c?l+=t:o+=t}return[o,i]}(e),e=i[0],g=i[1]),a=s(D(e,t),d?this:P,H),(n||o||g.length)&&(u=b(a),n&&(u.dotAll=!0,u.raw=H(function(e){for(var t,r=e.length,n=0,o="",i=!1;n<=r;n++)"\\"!==(t=O(e,n))?i||"."!==t?("["===t?i=!0:"]"===t&&(i=!1),o+=t):o+="[\\s\\S]":o+=t+O(e,++n);return o}(e),r)),o&&(u.sticky=!0),g.length&&(u.groups=g)),e!==w)try{c(a,"source",""===w?"(?:)":w)}catch(e){}return a},z=u(D),U=0;z.length>U;)m(H,D,z[U++]);P.constructor=H,H.prototype=P,v(o,"RegExp",H,{constructor:!0})}w("RegExp")},1913:(e,t,r)=>{var n=r(2404),o=r(2993),i=r(956),a=r(1571),s=r(3292).get,c=RegExp.prototype,u=TypeError;n&&o&&a(c,"dotAll",{configurable:!0,get:function(){if(this!==c){if("RegExp"===i(this))return!!s(this).dotAll;throw u("Incompatible receiver, RegExp required")}}})},8664:(e,t,r)=>{"use strict";var n=r(6367),o=r(9338);n({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},3050:(e,t,r)=>{var n=r(2404),o=r(5526).MISSED_STICKY,i=r(956),a=r(1571),s=r(3292).get,c=RegExp.prototype,u=TypeError;n&&o&&a(c,"sticky",{configurable:!0,get:function(){if(this!==c){if("RegExp"===i(this))return!!s(this).sticky;throw u("Incompatible receiver, RegExp required")}}})},532:(e,t,r)=>{"use strict";r(8664);var n,o,i=r(6367),a=r(1568),s=r(7389),c=r(6824),u=r(8943),l=(n=!1,(o=/[ac]/).exec=function(){return n=!0,/./.exec.apply(this,arguments)},!0===o.test("abc")&&n),f=/./.test;i({target:"RegExp",proto:!0,forced:!l},{test:function(e){var t=c(this),r=u(e),n=t.exec;if(!s(n))return a(f,t,r);var o=a(n,t,r);return null!==o&&(c(o),!0)}})},5251:(e,t,r)=>{"use strict";var n=r(5114).PROPER,o=r(4519),i=r(6824),a=r(8943),s=r(2170),c=r(6059),u="toString",l=RegExp.prototype[u],f=s((function(){return"/a/b"!=l.call({source:"a",flags:"b"})})),h=n&&l.name!=u;(f||h)&&o(RegExp.prototype,u,(function(){var e=i(this);return"/"+a(e.source)+"/"+a(c(e))}),{unsafe:!0})},2122:(e,t,r)=>{"use strict";var n=r(6367),o=r(764),i=r(8410),a=r(8466),s=r(8943),c=r(4749),u=o("".indexOf);n({target:"String",proto:!0,forced:!c("includes")},{includes:function(e){return!!~u(s(a(this)),s(i(e)),arguments.length>1?arguments[1]:void 0)}})},6853:(e,t,r)=>{"use strict";var n=r(4003).charAt,o=r(8943),i=r(3292),a=r(8629),s=r(2229),c="String Iterator",u=i.set,l=i.getterFor(c);a(String,"String",(function(e){u(this,{type:c,string:o(e),index:0})}),(function(){var e,t=l(this),r=t.string,o=t.index;return o>=r.length?s(void 0,!0):(e=n(r,o),t.index+=e.length,s(e,!1))}))},3915:(e,t,r)=>{"use strict";var n=r(6367),o=r(5771);n({target:"String",proto:!0,forced:r(7241)("link")},{link:function(e){return o(this,"a","href",e)}})},1228:(e,t,r)=>{"use strict";var n=r(1568),o=r(1705),i=r(6824),a=r(2109),s=r(6772),c=r(8943),u=r(8466),l=r(8453),f=r(329),h=r(5198);o("match",(function(e,t,r){return[function(t){var r=u(this),o=a(t)?void 0:l(t,e);return o?n(o,t,r):new RegExp(t)[e](c(r))},function(e){var n=i(this),o=c(e),a=r(t,n,o);if(a.done)return a.value;if(!n.global)return h(n,o);var u=n.unicode;n.lastIndex=0;for(var l,p=[],d=0;null!==(l=h(n,o));){var m=c(l[0]);p[d]=m,""===m&&(n.lastIndex=f(o,s(n.lastIndex),u)),d++}return 0===d?null:p}]}))},7915:(e,t,r)=>{"use strict";var n=r(1152),o=r(1568),i=r(764),a=r(1705),s=r(2170),c=r(6824),u=r(7389),l=r(2109),f=r(6287),h=r(6772),p=r(8943),d=r(8466),m=r(329),v=r(8453),g=r(2371),y=r(5198),b=r(9163)("replace"),w=Math.max,x=Math.min,E=i([].concat),k=i([].push),S=i("".indexOf),D=i("".slice),P="$0"==="a".replace(/./,"$0"),A=!!/./[b]&&""===/./[b]("a","$0");a("replace",(function(e,t,r){var i=A?"$":"$0";return[function(e,r){var n=d(this),i=l(e)?void 0:v(e,b);return i?o(i,e,n,r):o(t,p(n),e,r)},function(e,o){var a=c(this),s=p(e);if("string"==typeof o&&-1===S(o,i)&&-1===S(o,"$<")){var l=r(t,a,s,o);if(l.done)return l.value}var d=u(o);d||(o=p(o));var v=a.global;if(v){var b=a.unicode;a.lastIndex=0}for(var P=[];;){var A=y(a,s);if(null===A)break;if(k(P,A),!v)break;""===p(A[0])&&(a.lastIndex=m(s,h(a.lastIndex),b))}for(var C,O="",F=0,j=0;j<P.length;j++){for(var T=p((A=P[j])[0]),_=w(x(f(A.index),s.length),0),R=[],I=1;I<A.length;I++)k(R,void 0===(C=A[I])?C:String(C));var L=A.groups;if(d){var B=E([T],R,_,s);void 0!==L&&k(B,L);var M=p(n(o,void 0,B))}else M=g(T,s,_,R,L,o);_>=F&&(O+=D(s,F,_)+M,F=_+T.length)}return O+D(s,F)}]}),!!s((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!P||A)},7930:(e,t,r)=>{"use strict";var n=r(1568),o=r(1705),i=r(6824),a=r(2109),s=r(8466),c=r(2977),u=r(8943),l=r(8453),f=r(5198);o("search",(function(e,t,r){return[function(t){var r=s(this),o=a(t)?void 0:l(t,e);return o?n(o,t,r):new RegExp(t)[e](u(r))},function(e){var n=i(this),o=u(e),a=r(t,n,o);if(a.done)return a.value;var s=n.lastIndex;c(s,0)||(n.lastIndex=0);var l=f(n,o);return c(n.lastIndex,s)||(n.lastIndex=s),null===l?-1:l.index}]}))},9017:(e,t,r)=>{"use strict";var n,o=r(6367),i=r(1889),a=r(3178).f,s=r(6772),c=r(8943),u=r(8410),l=r(8466),f=r(4749),h=r(3709),p=i("".startsWith),d=i("".slice),m=Math.min,v=f("startsWith");o({target:"String",proto:!0,forced:!!(h||v||(n=a(String.prototype,"startsWith"),!n||n.writable))&&!v},{startsWith:function(e){var t=c(l(this));u(e);var r=s(m(arguments.length>1?arguments[1]:void 0,t.length)),n=c(e);return p?p(t,n,r):d(t,r,r+n.length)===n}})},8006:(e,t,r)=>{"use strict";var n=r(6367),o=r(764),i=r(8466),a=r(6287),s=r(8943),c=o("".slice),u=Math.max,l=Math.min;n({target:"String",proto:!0,forced:!"".substr||"b"!=="ab".substr(-1)},{substr:function(e,t){var r,n,o=s(i(this)),f=o.length,h=a(e);return h===1/0&&(h=0),h<0&&(h=u(f+h,0)),(r=void 0===t?f:a(t))<=0||r===1/0||h>=(n=l(h+r,f))?"":c(o,h,n)}})},3394:(e,t,r)=>{"use strict";var n=r(6367),o=r(252).trim;n({target:"String",proto:!0,forced:r(1582)("trim")},{trim:function(){return o(this)}})},2336:(e,t,r)=>{r(3758)("asyncIterator")},7187:(e,t,r)=>{"use strict";var n=r(6367),o=r(2019),i=r(1568),a=r(764),s=r(3709),c=r(2404),u=r(3488),l=r(2170),f=r(627),h=r(2378),p=r(6824),d=r(2415),m=r(1918),v=r(8943),g=r(73),y=r(2909),b=r(4329),w=r(8290),x=r(6877),E=r(8891),k=r(3178),S=r(3015),D=r(948),P=r(8327),A=r(4519),C=r(1571),O=r(4558),F=r(19),j=r(6508),T=r(8103),_=r(9163),R=r(3920),I=r(3758),L=r(2818),B=r(9434),M=r(3292),N=r(3250).forEach,H=F("hidden"),z="Symbol",U="prototype",$=M.set,q=M.getterFor(z),V=Object[U],G=o.Symbol,W=G&&G[U],K=o.TypeError,Q=o.QObject,Z=k.f,Y=S.f,X=x.f,J=P.f,ee=a([].push),te=O("symbols"),re=O("op-symbols"),ne=O("wks"),oe=!Q||!Q[U]||!Q[U].findChild,ie=c&&l((function(){return 7!=y(Y({},"a",{get:function(){return Y(this,"a",{value:7}).a}})).a}))?function(e,t,r){var n=Z(V,t);n&&delete V[t],Y(e,t,r),n&&e!==V&&Y(V,t,n)}:Y,ae=function(e,t){var r=te[e]=y(W);return $(r,{type:z,tag:e,description:t}),c||(r.description=t),r},se=function(e,t,r){e===V&&se(re,t,r),p(e);var n=m(t);return p(r),f(te,n)?(r.enumerable?(f(e,H)&&e[H][n]&&(e[H][n]=!1),r=y(r,{enumerable:g(0,!1)})):(f(e,H)||Y(e,H,g(1,{})),e[H][n]=!0),ie(e,n,r)):Y(e,n,r)},ce=function(e,t){p(e);var r=d(t),n=b(r).concat(he(r));return N(n,(function(t){c&&!i(ue,r,t)||se(e,t,r[t])})),e},ue=function(e){var t=m(e),r=i(J,this,t);return!(this===V&&f(te,t)&&!f(re,t))&&(!(r||!f(this,t)||!f(te,t)||f(this,H)&&this[H][t])||r)},le=function(e,t){var r=d(e),n=m(t);if(r!==V||!f(te,n)||f(re,n)){var o=Z(r,n);return!o||!f(te,n)||f(r,H)&&r[H][n]||(o.enumerable=!0),o}},fe=function(e){var t=X(d(e)),r=[];return N(t,(function(e){f(te,e)||f(j,e)||ee(r,e)})),r},he=function(e){var t=e===V,r=X(t?re:d(e)),n=[];return N(r,(function(e){!f(te,e)||t&&!f(V,e)||ee(n,te[e])})),n};u||(A(W=(G=function(){if(h(W,this))throw K("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?v(arguments[0]):void 0,t=T(e),r=function(e){this===V&&i(r,re,e),f(this,H)&&f(this[H],t)&&(this[H][t]=!1),ie(this,t,g(1,e))};return c&&oe&&ie(V,t,{configurable:!0,set:r}),ae(t,e)})[U],"toString",(function(){return q(this).tag})),A(G,"withoutSetter",(function(e){return ae(T(e),e)})),P.f=ue,S.f=se,D.f=ce,k.f=le,w.f=x.f=fe,E.f=he,R.f=function(e){return ae(_(e),e)},c&&(C(W,"description",{configurable:!0,get:function(){return q(this).description}}),s||A(V,"propertyIsEnumerable",ue,{unsafe:!0}))),n({global:!0,constructor:!0,wrap:!0,forced:!u,sham:!u},{Symbol:G}),N(b(ne),(function(e){I(e)})),n({target:z,stat:!0,forced:!u},{useSetter:function(){oe=!0},useSimple:function(){oe=!1}}),n({target:"Object",stat:!0,forced:!u,sham:!c},{create:function(e,t){return void 0===t?y(e):ce(y(e),t)},defineProperty:se,defineProperties:ce,getOwnPropertyDescriptor:le}),n({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:fe}),L(),B(G,z),j[H]=!0},337:(e,t,r)=>{"use strict";var n=r(6367),o=r(2404),i=r(2019),a=r(764),s=r(627),c=r(7389),u=r(2378),l=r(8943),f=r(1571),h=r(9962),p=i.Symbol,d=p&&p.prototype;if(o&&c(p)&&(!("description"in d)||void 0!==p().description)){var m={},v=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:l(arguments[0]),t=u(d,this)?new p(e):void 0===e?p():p(e);return""===e&&(m[t]=!0),t};h(v,p),v.prototype=d,d.constructor=v;var g="Symbol(test)"==String(p("test")),y=a(d.valueOf),b=a(d.toString),w=/^Symbol\((.*)\)[^)]+$/,x=a("".replace),E=a("".slice);f(d,"description",{configurable:!0,get:function(){var e=y(this);if(s(m,e))return"";var t=b(e),r=g?E(t,7,-1):x(t,w,"$1");return""===r?void 0:r}}),n({global:!0,constructor:!0,forced:!0},{Symbol:v})}},4944:(e,t,r)=>{var n=r(6367),o=r(3012),i=r(627),a=r(8943),s=r(4558),c=r(8463),u=s("string-to-symbol-registry"),l=s("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!c},{for:function(e){var t=a(e);if(i(u,t))return u[t];var r=o("Symbol")(t);return u[t]=r,l[r]=t,r}})},9778:(e,t,r)=>{r(3758)("iterator")},2814:(e,t,r)=>{r(7187),r(4944),r(7206),r(776),r(1423)},7206:(e,t,r)=>{var n=r(6367),o=r(627),i=r(1666),a=r(4259),s=r(4558),c=r(8463),u=s("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!c},{keyFor:function(e){if(!i(e))throw TypeError(a(e)+" is not a symbol");if(o(u,e))return u[e]}})},7607:(e,t,r)=>{var n=r(2019),o=r(2135),i=r(5011),a=r(1385),s=r(3085),c=function(e){if(e&&e.forEach!==a)try{s(e,"forEach",a)}catch(t){e.forEach=a}};for(var u in o)o[u]&&c(n[u]&&n[u].prototype);c(i)},8546:(e,t,r)=>{var n=r(2019),o=r(2135),i=r(5011),a=r(5591),s=r(3085),c=r(9163),u=c("iterator"),l=c("toStringTag"),f=a.values,h=function(e,t){if(e){if(e[u]!==f)try{s(e,u,f)}catch(t){e[u]=f}if(e[l]||s(e,l,t),o[t])for(var r in a)if(e[r]!==a[r])try{s(e,r,a[r])}catch(t){e[r]=a[r]}}};for(var p in o)h(n[p]&&n[p].prototype,p);h(i,"DOMTokenList")},3122:(e,t,r)=>{"use strict";r(5591);var n=r(6367),o=r(2019),i=r(1568),a=r(764),s=r(2404),c=r(5047),u=r(4519),l=r(1571),f=r(8965),h=r(9434),p=r(1395),d=r(3292),m=r(1167),v=r(7389),g=r(627),y=r(6748),b=r(9909),w=r(6824),x=r(2465),E=r(8943),k=r(2909),S=r(73),D=r(9119),P=r(9781),A=r(3108),C=r(9163),O=r(8110),F=C("iterator"),j="URLSearchParams",T=j+"Iterator",_=d.set,R=d.getterFor(j),I=d.getterFor(T),L=Object.getOwnPropertyDescriptor,B=function(e){if(!s)return o[e];var t=L(o,e);return t&&t.value},M=B("fetch"),N=B("Request"),H=B("Headers"),z=N&&N.prototype,U=H&&H.prototype,$=o.RegExp,q=o.TypeError,V=o.decodeURIComponent,G=o.encodeURIComponent,W=a("".charAt),K=a([].join),Q=a([].push),Z=a("".replace),Y=a([].shift),X=a([].splice),J=a("".split),ee=a("".slice),te=/\+/g,re=Array(4),ne=function(e){return re[e-1]||(re[e-1]=$("((?:%[\\da-f]{2}){"+e+"})","gi"))},oe=function(e){try{return V(e)}catch(t){return e}},ie=function(e){var t=Z(e,te," "),r=4;try{return V(t)}catch(e){for(;r;)t=Z(t,ne(r--),oe);return t}},ae=/[!'()~]|%20/g,se={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},ce=function(e){return se[e]},ue=function(e){return Z(G(e),ae,ce)},le=p((function(e,t){_(this,{type:T,iterator:D(R(e).entries),kind:t})}),"Iterator",(function(){var e=I(this),t=e.kind,r=e.iterator.next(),n=r.value;return r.done||(r.value="keys"===t?n.key:"values"===t?n.value:[n.key,n.value]),r}),!0),fe=function(e){this.entries=[],this.url=null,void 0!==e&&(x(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===W(e,0)?ee(e,1):e:E(e)))};fe.prototype={type:j,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,o,a,s,c,u=P(e);if(u)for(r=(t=D(e,u)).next;!(n=i(r,t)).done;){if(a=(o=D(w(n.value))).next,(s=i(a,o)).done||(c=i(a,o)).done||!i(a,o).done)throw q("Expected sequence with length 2");Q(this.entries,{key:E(s.value),value:E(c.value)})}else for(var l in e)g(e,l)&&Q(this.entries,{key:l,value:E(e[l])})},parseQuery:function(e){if(e)for(var t,r,n=J(e,"&"),o=0;o<n.length;)(t=n[o++]).length&&(r=J(t,"="),Q(this.entries,{key:ie(Y(r)),value:ie(K(r,"="))}))},serialize:function(){for(var e,t=this.entries,r=[],n=0;n<t.length;)e=t[n++],Q(r,ue(e.key)+"="+ue(e.value));return K(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var he=function(){m(this,pe);var e=_(this,new fe(arguments.length>0?arguments[0]:void 0));s||(this.size=e.entries.length)},pe=he.prototype;if(f(pe,{append:function(e,t){var r=R(this);A(arguments.length,2),Q(r.entries,{key:E(e),value:E(t)}),s||this.length++,r.updateURL()},delete:function(e){for(var t=R(this),r=A(arguments.length,1),n=t.entries,o=E(e),i=r<2?void 0:arguments[1],a=void 0===i?i:E(i),c=0;c<n.length;){var u=n[c];if(u.key!==o||void 0!==a&&u.value!==a)c++;else if(X(n,c,1),void 0!==a)break}s||(this.size=n.length),t.updateURL()},get:function(e){var t=R(this).entries;A(arguments.length,1);for(var r=E(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){var t=R(this).entries;A(arguments.length,1);for(var r=E(e),n=[],o=0;o<t.length;o++)t[o].key===r&&Q(n,t[o].value);return n},has:function(e){for(var t=R(this).entries,r=A(arguments.length,1),n=E(e),o=r<2?void 0:arguments[1],i=void 0===o?o:E(o),a=0;a<t.length;){var s=t[a++];if(s.key===n&&(void 0===i||s.value===i))return!0}return!1},set:function(e,t){var r=R(this);A(arguments.length,1);for(var n,o=r.entries,i=!1,a=E(e),c=E(t),u=0;u<o.length;u++)(n=o[u]).key===a&&(i?X(o,u--,1):(i=!0,n.value=c));i||Q(o,{key:a,value:c}),s||(this.size=o.length),r.updateURL()},sort:function(){var e=R(this);O(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,r=R(this).entries,n=y(e,arguments.length>1?arguments[1]:void 0),o=0;o<r.length;)n((t=r[o++]).value,t.key,this)},keys:function(){return new le(this,"keys")},values:function(){return new le(this,"values")},entries:function(){return new le(this,"entries")}},{enumerable:!0}),u(pe,F,pe.entries,{name:"entries"}),u(pe,"toString",(function(){return R(this).serialize()}),{enumerable:!0}),s&&l(pe,"size",{get:function(){return R(this).entries.length},configurable:!0,enumerable:!0}),h(he,j),n({global:!0,constructor:!0,forced:!c},{URLSearchParams:he}),!c&&v(H)){var de=a(U.has),me=a(U.set),ve=function(e){if(x(e)){var t,r=e.body;if(b(r)===j)return t=e.headers?new H(e.headers):new H,de(t,"content-type")||me(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),k(e,{body:S(0,E(r)),headers:S(0,t)})}return e};if(v(M)&&n({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return M(e,arguments.length>1?ve(arguments[1]):{})}}),v(N)){var ge=function(e){return m(this,z),new N(e,arguments.length>1?ve(arguments[1]):{})};z.constructor=ge,ge.prototype=z,n({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:ge})}}e.exports={URLSearchParams:he,getState:R}},8808:(e,t,r)=>{"use strict";var n=r(4519),o=r(764),i=r(8943),a=r(3108),s=URLSearchParams,c=s.prototype,u=o(c.append),l=o(c.delete),f=o(c.forEach),h=o([].push),p=new s("a=1&a=2");p.delete("a",1),p+""!="a=2"&&n(c,"delete",(function(e){var t=arguments.length,r=t<2?void 0:arguments[1];if(t&&void 0===r)return l(this,e);var n=[];f(this,(function(e,t){h(n,{key:t,value:e})})),a(t,1);for(var o,s=i(e),c=i(r),p=0,d=0,m=!1,v=n.length;p<v;)o=n[p++],m||o.key===s?(m=!0,l(this,o.key)):d++;for(;d<v;)(o=n[d++]).key===s&&o.value===c||u(this,o.key,o.value)}),{enumerable:!0,unsafe:!0})},9989:(e,t,r)=>{"use strict";var n=r(4519),o=r(764),i=r(8943),a=r(3108),s=URLSearchParams,c=s.prototype,u=o(c.getAll),l=o(c.has);new s("a=1").has("a",2)&&n(c,"has",(function(e){var t=arguments.length,r=t<2?void 0:arguments[1];if(t&&void 0===r)return l(this,e);var n=u(this,e);a(t,1);for(var o=i(r),s=0;s<n.length;)if(n[s++]===o)return!0;return!1}),{enumerable:!0,unsafe:!0})},7525:(e,t,r)=>{r(3122)},3882:(e,t,r)=>{"use strict";var n=r(2404),o=r(764),i=r(1571),a=URLSearchParams.prototype,s=o(a.forEach);n&&!("size"in a)&&i(a,"size",{get:function(){var e=0;return s(this,(function(){e++})),e},configurable:!0,enumerable:!0})},4167:(e,t,r)=>{"use strict";r(6853);var n,o=r(6367),i=r(2404),a=r(5047),s=r(2019),c=r(6748),u=r(764),l=r(4519),f=r(1571),h=r(1167),p=r(627),d=r(8340),m=r(6807),v=r(6765),g=r(4003).codeAt,y=r(5946),b=r(8943),w=r(9434),x=r(3108),E=r(3122),k=r(3292),S=k.set,D=k.getterFor("URL"),P=E.URLSearchParams,A=E.getState,C=s.URL,O=s.TypeError,F=s.parseInt,j=Math.floor,T=Math.pow,_=u("".charAt),R=u(/./.exec),I=u([].join),L=u(1..toString),B=u([].pop),M=u([].push),N=u("".replace),H=u([].shift),z=u("".split),U=u("".slice),$=u("".toLowerCase),q=u([].unshift),V="Invalid scheme",G="Invalid host",W="Invalid port",K=/[a-z]/i,Q=/[\d+-.a-z]/i,Z=/\d/,Y=/^0x/i,X=/^[0-7]+$/,J=/^\d+$/,ee=/^[\da-f]+$/i,te=/[\0\t\n\r #%/:<>?@[\\\]^|]/,re=/[\0\t\n\r #/:<>?@[\\\]^|]/,ne=/^[\u0000-\u0020]+/,oe=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,ie=/[\t\n\r]/g,ae=function(e){var t,r,n,o;if("number"==typeof e){for(t=[],r=0;r<4;r++)q(t,e%256),e=j(e/256);return I(t,".")}if("object"==typeof e){for(t="",n=function(e){for(var t=null,r=1,n=null,o=0,i=0;i<8;i++)0!==e[i]?(o>r&&(t=n,r=o),n=null,o=0):(null===n&&(n=i),++o);return o>r&&(t=n,r=o),t}(e),r=0;r<8;r++)o&&0===e[r]||(o&&(o=!1),n===r?(t+=r?":":"::",o=!0):(t+=L(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},se={},ce=d({},se,{" ":1,'"':1,"<":1,">":1,"`":1}),ue=d({},ce,{"#":1,"?":1,"{":1,"}":1}),le=d({},ue,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),fe=function(e,t){var r=g(e,0);return r>32&&r<127&&!p(t,e)?e:encodeURIComponent(e)},he={ftp:21,file:null,http:80,https:443,ws:80,wss:443},pe=function(e,t){var r;return 2==e.length&&R(K,_(e,0))&&(":"==(r=_(e,1))||!t&&"|"==r)},de=function(e){var t;return e.length>1&&pe(U(e,0,2))&&(2==e.length||"/"===(t=_(e,2))||"\\"===t||"?"===t||"#"===t)},me=function(e){return"."===e||"%2e"===$(e)},ve={},ge={},ye={},be={},we={},xe={},Ee={},ke={},Se={},De={},Pe={},Ae={},Ce={},Oe={},Fe={},je={},Te={},_e={},Re={},Ie={},Le={},Be=function(e,t,r){var n,o,i,a=b(e);if(t){if(o=this.parse(a))throw O(o);this.searchParams=null}else{if(void 0!==r&&(n=new Be(r,!0)),o=this.parse(a,null,n))throw O(o);(i=A(new P)).bindURL(this),this.searchParams=i}};Be.prototype={type:"URL",parse:function(e,t,r){var o,i,a,s,c,u=this,l=t||ve,f=0,h="",d=!1,g=!1,y=!1;for(e=b(e),t||(u.scheme="",u.username="",u.password="",u.host=null,u.port=null,u.path=[],u.query=null,u.fragment=null,u.cannotBeABaseURL=!1,e=N(e,ne,""),e=N(e,oe,"$1")),e=N(e,ie,""),o=m(e);f<=o.length;){switch(i=o[f],l){case ve:if(!i||!R(K,i)){if(t)return V;l=ye;continue}h+=$(i),l=ge;break;case ge:if(i&&(R(Q,i)||"+"==i||"-"==i||"."==i))h+=$(i);else{if(":"!=i){if(t)return V;h="",l=ye,f=0;continue}if(t&&(u.isSpecial()!=p(he,h)||"file"==h&&(u.includesCredentials()||null!==u.port)||"file"==u.scheme&&!u.host))return;if(u.scheme=h,t)return void(u.isSpecial()&&he[u.scheme]==u.port&&(u.port=null));h="","file"==u.scheme?l=Oe:u.isSpecial()&&r&&r.scheme==u.scheme?l=be:u.isSpecial()?l=ke:"/"==o[f+1]?(l=we,f++):(u.cannotBeABaseURL=!0,M(u.path,""),l=Re)}break;case ye:if(!r||r.cannotBeABaseURL&&"#"!=i)return V;if(r.cannotBeABaseURL&&"#"==i){u.scheme=r.scheme,u.path=v(r.path),u.query=r.query,u.fragment="",u.cannotBeABaseURL=!0,l=Le;break}l="file"==r.scheme?Oe:xe;continue;case be:if("/"!=i||"/"!=o[f+1]){l=xe;continue}l=Se,f++;break;case we:if("/"==i){l=De;break}l=_e;continue;case xe:if(u.scheme=r.scheme,i==n)u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=v(r.path),u.query=r.query;else if("/"==i||"\\"==i&&u.isSpecial())l=Ee;else if("?"==i)u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=v(r.path),u.query="",l=Ie;else{if("#"!=i){u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=v(r.path),u.path.length--,l=_e;continue}u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=v(r.path),u.query=r.query,u.fragment="",l=Le}break;case Ee:if(!u.isSpecial()||"/"!=i&&"\\"!=i){if("/"!=i){u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,l=_e;continue}l=De}else l=Se;break;case ke:if(l=Se,"/"!=i||"/"!=_(h,f+1))continue;f++;break;case Se:if("/"!=i&&"\\"!=i){l=De;continue}break;case De:if("@"==i){d&&(h="%40"+h),d=!0,a=m(h);for(var w=0;w<a.length;w++){var x=a[w];if(":"!=x||y){var E=fe(x,le);y?u.password+=E:u.username+=E}else y=!0}h=""}else if(i==n||"/"==i||"?"==i||"#"==i||"\\"==i&&u.isSpecial()){if(d&&""==h)return"Invalid authority";f-=m(h).length+1,h="",l=Pe}else h+=i;break;case Pe:case Ae:if(t&&"file"==u.scheme){l=je;continue}if(":"!=i||g){if(i==n||"/"==i||"?"==i||"#"==i||"\\"==i&&u.isSpecial()){if(u.isSpecial()&&""==h)return G;if(t&&""==h&&(u.includesCredentials()||null!==u.port))return;if(s=u.parseHost(h))return s;if(h="",l=Te,t)return;continue}"["==i?g=!0:"]"==i&&(g=!1),h+=i}else{if(""==h)return G;if(s=u.parseHost(h))return s;if(h="",l=Ce,t==Ae)return}break;case Ce:if(!R(Z,i)){if(i==n||"/"==i||"?"==i||"#"==i||"\\"==i&&u.isSpecial()||t){if(""!=h){var k=F(h,10);if(k>65535)return W;u.port=u.isSpecial()&&k===he[u.scheme]?null:k,h=""}if(t)return;l=Te;continue}return W}h+=i;break;case Oe:if(u.scheme="file","/"==i||"\\"==i)l=Fe;else{if(!r||"file"!=r.scheme){l=_e;continue}if(i==n)u.host=r.host,u.path=v(r.path),u.query=r.query;else if("?"==i)u.host=r.host,u.path=v(r.path),u.query="",l=Ie;else{if("#"!=i){de(I(v(o,f),""))||(u.host=r.host,u.path=v(r.path),u.shortenPath()),l=_e;continue}u.host=r.host,u.path=v(r.path),u.query=r.query,u.fragment="",l=Le}}break;case Fe:if("/"==i||"\\"==i){l=je;break}r&&"file"==r.scheme&&!de(I(v(o,f),""))&&(pe(r.path[0],!0)?M(u.path,r.path[0]):u.host=r.host),l=_e;continue;case je:if(i==n||"/"==i||"\\"==i||"?"==i||"#"==i){if(!t&&pe(h))l=_e;else if(""==h){if(u.host="",t)return;l=Te}else{if(s=u.parseHost(h))return s;if("localhost"==u.host&&(u.host=""),t)return;h="",l=Te}continue}h+=i;break;case Te:if(u.isSpecial()){if(l=_e,"/"!=i&&"\\"!=i)continue}else if(t||"?"!=i)if(t||"#"!=i){if(i!=n&&(l=_e,"/"!=i))continue}else u.fragment="",l=Le;else u.query="",l=Ie;break;case _e:if(i==n||"/"==i||"\\"==i&&u.isSpecial()||!t&&("?"==i||"#"==i)){if(".."===(c=$(c=h))||"%2e."===c||".%2e"===c||"%2e%2e"===c?(u.shortenPath(),"/"==i||"\\"==i&&u.isSpecial()||M(u.path,"")):me(h)?"/"==i||"\\"==i&&u.isSpecial()||M(u.path,""):("file"==u.scheme&&!u.path.length&&pe(h)&&(u.host&&(u.host=""),h=_(h,0)+":"),M(u.path,h)),h="","file"==u.scheme&&(i==n||"?"==i||"#"==i))for(;u.path.length>1&&""===u.path[0];)H(u.path);"?"==i?(u.query="",l=Ie):"#"==i&&(u.fragment="",l=Le)}else h+=fe(i,ue);break;case Re:"?"==i?(u.query="",l=Ie):"#"==i?(u.fragment="",l=Le):i!=n&&(u.path[0]+=fe(i,se));break;case Ie:t||"#"!=i?i!=n&&("'"==i&&u.isSpecial()?u.query+="%27":u.query+="#"==i?"%23":fe(i,se)):(u.fragment="",l=Le);break;case Le:i!=n&&(u.fragment+=fe(i,ce))}f++}},parseHost:function(e){var t,r,n;if("["==_(e,0)){if("]"!=_(e,e.length-1))return G;if(t=function(e){var t,r,n,o,i,a,s,c=[0,0,0,0,0,0,0,0],u=0,l=null,f=0,h=function(){return _(e,f)};if(":"==h()){if(":"!=_(e,1))return;f+=2,l=++u}for(;h();){if(8==u)return;if(":"!=h()){for(t=r=0;r<4&&R(ee,h());)t=16*t+F(h(),16),f++,r++;if("."==h()){if(0==r)return;if(f-=r,u>6)return;for(n=0;h();){if(o=null,n>0){if(!("."==h()&&n<4))return;f++}if(!R(Z,h()))return;for(;R(Z,h());){if(i=F(h(),10),null===o)o=i;else{if(0==o)return;o=10*o+i}if(o>255)return;f++}c[u]=256*c[u]+o,2!=++n&&4!=n||u++}if(4!=n)return;break}if(":"==h()){if(f++,!h())return}else if(h())return;c[u++]=t}else{if(null!==l)return;f++,l=++u}}if(null!==l)for(a=u-l,u=7;0!=u&&a>0;)s=c[u],c[u--]=c[l+a-1],c[l+--a]=s;else if(8!=u)return;return c}(U(e,1,-1)),!t)return G;this.host=t}else if(this.isSpecial()){if(e=y(e),R(te,e))return G;if(t=function(e){var t,r,n,o,i,a,s,c=z(e,".");if(c.length&&""==c[c.length-1]&&c.length--,(t=c.length)>4)return e;for(r=[],n=0;n<t;n++){if(""==(o=c[n]))return e;if(i=10,o.length>1&&"0"==_(o,0)&&(i=R(Y,o)?16:8,o=U(o,8==i?1:2)),""===o)a=0;else{if(!R(10==i?J:8==i?X:ee,o))return e;a=F(o,i)}M(r,a)}for(n=0;n<t;n++)if(a=r[n],n==t-1){if(a>=T(256,5-t))return null}else if(a>255)return null;for(s=B(r),n=0;n<r.length;n++)s+=r[n]*T(256,3-n);return s}(e),null===t)return G;this.host=t}else{if(R(re,e))return G;for(t="",r=m(e),n=0;n<r.length;n++)t+=fe(r[n],se);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return p(he,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"==this.scheme&&1==t&&pe(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,r=e.username,n=e.password,o=e.host,i=e.port,a=e.path,s=e.query,c=e.fragment,u=t+":";return null!==o?(u+="//",e.includesCredentials()&&(u+=r+(n?":"+n:"")+"@"),u+=ae(o),null!==i&&(u+=":"+i)):"file"==t&&(u+="//"),u+=e.cannotBeABaseURL?a[0]:a.length?"/"+I(a,"/"):"",null!==s&&(u+="?"+s),null!==c&&(u+="#"+c),u},setHref:function(e){var t=this.parse(e);if(t)throw O(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"==e)try{return new Me(e.path[0]).origin}catch(e){return"null"}return"file"!=e&&this.isSpecial()?e+"://"+ae(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(b(e)+":",ve)},getUsername:function(){return this.username},setUsername:function(e){var t=m(b(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<t.length;r++)this.username+=fe(t[r],le)}},getPassword:function(){return this.password},setPassword:function(e){var t=m(b(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<t.length;r++)this.password+=fe(t[r],le)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?ae(e):ae(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,Pe)},getHostname:function(){var e=this.host;return null===e?"":ae(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,Ae)},getPort:function(){var e=this.port;return null===e?"":b(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""==(e=b(e))?this.port=null:this.parse(e,Ce))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+I(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,Te))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""==(e=b(e))?this.query=null:("?"==_(e,0)&&(e=U(e,1)),this.query="",this.parse(e,Ie)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!=(e=b(e))?("#"==_(e,0)&&(e=U(e,1)),this.fragment="",this.parse(e,Le)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var Me=function(e){var t=h(this,Ne),r=x(arguments.length,1)>1?arguments[1]:void 0,n=S(t,new Be(e,!1,r));i||(t.href=n.serialize(),t.origin=n.getOrigin(),t.protocol=n.getProtocol(),t.username=n.getUsername(),t.password=n.getPassword(),t.host=n.getHost(),t.hostname=n.getHostname(),t.port=n.getPort(),t.pathname=n.getPathname(),t.search=n.getSearch(),t.searchParams=n.getSearchParams(),t.hash=n.getHash())},Ne=Me.prototype,He=function(e,t){return{get:function(){return D(this)[e]()},set:t&&function(e){return D(this)[t](e)},configurable:!0,enumerable:!0}};if(i&&(f(Ne,"href",He("serialize","setHref")),f(Ne,"origin",He("getOrigin")),f(Ne,"protocol",He("getProtocol","setProtocol")),f(Ne,"username",He("getUsername","setUsername")),f(Ne,"password",He("getPassword","setPassword")),f(Ne,"host",He("getHost","setHost")),f(Ne,"hostname",He("getHostname","setHostname")),f(Ne,"port",He("getPort","setPort")),f(Ne,"pathname",He("getPathname","setPathname")),f(Ne,"search",He("getSearch","setSearch")),f(Ne,"searchParams",He("getSearchParams")),f(Ne,"hash",He("getHash","setHash"))),l(Ne,"toJSON",(function(){return D(this).serialize()}),{enumerable:!0}),l(Ne,"toString",(function(){return D(this).serialize()}),{enumerable:!0}),C){var ze=C.createObjectURL,Ue=C.revokeObjectURL;ze&&l(Me,"createObjectURL",c(ze,C)),Ue&&l(Me,"revokeObjectURL",c(Ue,C))}w(Me,"URL"),o({global:!0,constructor:!0,forced:!a,sham:!i},{URL:Me})},6164:(e,t,r)=>{r(4167)},5729:function(e,t,r){var n;e.exports=(n=r(4180),r(7753),r(1883),r(2400),r(1821),function(){var e=n,t=e.lib.BlockCipher,r=e.algo,o=[],i=[],a=[],s=[],c=[],u=[],l=[],f=[],h=[],p=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var r=0,n=0;for(t=0;t<256;t++){var d=n^n<<1^n<<2^n<<3^n<<4;d=d>>>8^255&d^99,o[r]=d,i[d]=r;var m=e[r],v=e[m],g=e[v],y=257*e[d]^16843008*d;a[r]=y<<24|y>>>8,s[r]=y<<16|y>>>16,c[r]=y<<8|y>>>24,u[r]=y,y=16843009*g^65537*v^257*m^16843008*r,l[d]=y<<24|y>>>8,f[d]=y<<16|y>>>16,h[d]=y<<8|y>>>24,p[d]=y,r?(r=m^e[e[e[g^m]]],n^=e[e[n]]):r=n=1}}();var d=[0,1,2,4,8,16,32,64,128,27,54],m=r.AES=t.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=[],a=0;a<n;a++)a<r?i[a]=t[a]:(u=i[a-1],a%r?r>6&&a%r==4&&(u=o[u>>>24]<<24|o[u>>>16&255]<<16|o[u>>>8&255]<<8|o[255&u]):(u=o[(u=u<<8|u>>>24)>>>24]<<24|o[u>>>16&255]<<16|o[u>>>8&255]<<8|o[255&u],u^=d[a/r|0]<<24),i[a]=i[a-r]^u);for(var s=this._invKeySchedule=[],c=0;c<n;c++){if(a=n-c,c%4)var u=i[a];else u=i[a-4];s[c]=c<4||a<=4?u:l[o[u>>>24]]^f[o[u>>>16&255]]^h[o[u>>>8&255]]^p[o[255&u]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,a,s,c,u,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,l,f,h,p,i),r=e[t+1],e[t+1]=e[t+3],e[t+3]=r},_doCryptBlock:function(e,t,r,n,o,i,a,s){for(var c=this._nRounds,u=e[t]^r[0],l=e[t+1]^r[1],f=e[t+2]^r[2],h=e[t+3]^r[3],p=4,d=1;d<c;d++){var m=n[u>>>24]^o[l>>>16&255]^i[f>>>8&255]^a[255&h]^r[p++],v=n[l>>>24]^o[f>>>16&255]^i[h>>>8&255]^a[255&u]^r[p++],g=n[f>>>24]^o[h>>>16&255]^i[u>>>8&255]^a[255&l]^r[p++],y=n[h>>>24]^o[u>>>16&255]^i[l>>>8&255]^a[255&f]^r[p++];u=m,l=v,f=g,h=y}m=(s[u>>>24]<<24|s[l>>>16&255]<<16|s[f>>>8&255]<<8|s[255&h])^r[p++],v=(s[l>>>24]<<24|s[f>>>16&255]<<16|s[h>>>8&255]<<8|s[255&u])^r[p++],g=(s[f>>>24]<<24|s[h>>>16&255]<<16|s[u>>>8&255]<<8|s[255&l])^r[p++],y=(s[h>>>24]<<24|s[u>>>16&255]<<16|s[l>>>8&255]<<8|s[255&f])^r[p++],e[t]=m,e[t+1]=v,e[t+2]=g,e[t+3]=y},keySize:8});e.AES=t._createHelper(m)}(),n.AES)},1821:function(e,t,r){var n;e.exports=(n=r(4180),r(2400),void(n.lib.Cipher||function(e){var t=n,r=t.lib,o=r.Base,i=r.WordArray,a=r.BufferedBlockAlgorithm,s=t.enc,c=(s.Utf8,s.Base64),u=t.algo.EvpKDF,l=r.Cipher=a.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(){a.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?b:g}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)}}}}()}),f=(r.StreamCipher=l.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),t.mode={}),h=r.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=f.CBC=function(){var t=h.extend();function r(t,r,n){var o,i=this._iv;i?(o=i,this._iv=e):o=this._prevBlock;for(var a=0;a<n;a++)t[r+a]^=o[a]}return t.Encryptor=t.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)}}),t.Decryptor=t.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}}),t}(),d=(t.pad={}).Pkcs7={pad:function(e,t){for(var r=4*t,n=r-e.sigBytes%r,o=n<<24|n<<16|n<<8|n,a=[],s=0;s<n;s+=4)a.push(o);var c=i.create(a,n);e.concat(c)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},m=(r.BlockCipher=l.extend({cfg:l.cfg.extend({mode:p,padding:d}),reset:function(){var e;l.reset.call(this);var t=this.cfg,r=t.iv,n=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=n.createEncryptor:(e=n.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,r&&r.words):(this._mode=e.call(n,this,r&&r.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4}),r.CipherParams=o.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}})),v=(t.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})}},g=r.SerializableCipher=o.extend({cfg:o.extend({format:v}),encrypt:function(e,t,r,n){n=this.cfg.extend(n);var o=e.createEncryptor(r,n),i=o.finalize(t),a=o.cfg;return m.create({ciphertext:i,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=(t.kdf={}).OpenSSL={execute:function(e,t,r,n,o){if(n||(n=i.random(8)),o)a=u.create({keySize:t+r,hasher:o}).compute(e,n);else var a=u.create({keySize:t+r}).compute(e,n);var s=i.create(a.words.slice(t),4*r);return a.sigBytes=4*t,m.create({key:a,iv:s,salt:n})}},b=r.PasswordBasedCipher=g.extend({cfg:g.cfg.extend({kdf:y}),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=g.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,g.decrypt.call(this,e,t,o.key,n)}})}()))},4180:function(e,t,r){var n;e.exports=(n=n||function(e,t){var n;if("undefined"!=typeof window&&window.crypto&&(n=window.crypto),"undefined"!=typeof self&&self.crypto&&(n=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(n=globalThis.crypto),!n&&"undefined"!=typeof window&&window.msCrypto&&(n=window.msCrypto),!n&&void 0!==r.g&&r.g.crypto&&(n=r.g.crypto),!n)try{n=r(6728)}catch(e){}var o=function(){if(n){if("function"==typeof n.getRandomValues)try{return n.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof n.randomBytes)try{return n.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")},i=Object.create||function(){function e(){}return function(t){var r;return e.prototype=t,r=new e,e.prototype=null,r}}(),a={},s=a.lib={},c=s.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)}},u=s.WordArray=c.extend({init:function(e,r){e=this.words=e||[],this.sigBytes=r!=t?r:4*e.length},toString:function(e){return(e||f).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 a=r[i>>>2]>>>24-i%4*8&255;t[n+i>>>2]|=a<<24-(n+i)%4*8}else for(var s=0;s<o;s+=4)t[n+s>>>2]=r[s>>>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=c.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(o());return new u.init(t,e)}}),l=a.enc={},f=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 u.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 u.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)))}},d=s.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new u.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,o=n.words,i=n.sigBytes,a=this.blockSize,s=i/(4*a),c=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*a,l=e.min(4*c,i);if(c){for(var f=0;f<c;f+=a)this._doProcessBlock(o,f);r=o.splice(0,c),n.sigBytes-=l}return new u.init(r,l)},clone:function(){var e=c.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),m=(s.Hasher=d.extend({cfg:c.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){d.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 m.HMAC.init(e,r).finalize(t)}}}),a.algo={});return a}(Math),n)},7753:function(e,t,r){var n;e.exports=(n=r(4180),function(){var e=n,t=e.lib.WordArray;function r(e,r,n){for(var o=[],i=0,a=0;a<r;a++)if(a%4){var s=n[e.charCodeAt(a-1)]<<a%4*2|n[e.charCodeAt(a)]>>>6-a%4*2;o[i>>>2]|=s<<24-i%4*8,i++}return t.create(o,i)}e.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 a=(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,s=0;s<4&&i+.75*s<r;s++)o.push(n.charAt(a>>>6*(3-s)&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,n=this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var i=0;i<n.length;i++)o[n.charCodeAt(i)]=i}var a=n.charAt(64);if(a){var s=e.indexOf(a);-1!==s&&(t=s)}return r(e,t,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),n.enc.Base64)},6119:function(e,t,r){var n;e.exports=(n=r(4180),n.enc.Utf8)},2400:function(e,t,r){var n,o,i,a,s,c,u,l;e.exports=(l=r(4180),r(2568),r(2004),o=(n=l).lib,i=o.Base,a=o.WordArray,s=n.algo,c=s.MD5,u=s.EvpKDF=i.extend({cfg:i.extend({keySize:4,hasher:c,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(),i=a.create(),s=i.words,c=n.keySize,u=n.iterations;s.length<c;){r&&o.update(r),r=o.update(e).finalize(t),o.reset();for(var l=1;l<u;l++)r=o.finalize(r),o.reset();i.concat(r)}return i.sigBytes=4*c,i}}),n.EvpKDF=function(e,t,r){return u.create(r).compute(e,t)},l.EvpKDF)},2004:function(e,t,r){var n,o,i,a;e.exports=(n=r(4180),i=(o=n).lib.Base,a=o.enc.Utf8,void(o.algo.HMAC=i.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=a.parse(t));var r=e.blockSize,n=4*r;t.sigBytes>n&&(t=e.finalize(t)),t.clamp();for(var o=this._oKey=t.clone(),i=this._iKey=t.clone(),s=o.words,c=i.words,u=0;u<r;u++)s[u]^=1549556828,c[u]^=909522486;o.sigBytes=i.sigBytes=n,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))}})))},1883:function(e,t,r){var n;e.exports=(n=r(4180),function(e){var t=n,r=t.lib,o=r.WordArray,i=r.Hasher,a=t.algo,s=[];!function(){for(var t=0;t<64;t++)s[t]=4294967296*e.abs(e.sin(t+1))|0}();var c=a.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,a=e[t+0],c=e[t+1],p=e[t+2],d=e[t+3],m=e[t+4],v=e[t+5],g=e[t+6],y=e[t+7],b=e[t+8],w=e[t+9],x=e[t+10],E=e[t+11],k=e[t+12],S=e[t+13],D=e[t+14],P=e[t+15],A=i[0],C=i[1],O=i[2],F=i[3];A=u(A,C,O,F,a,7,s[0]),F=u(F,A,C,O,c,12,s[1]),O=u(O,F,A,C,p,17,s[2]),C=u(C,O,F,A,d,22,s[3]),A=u(A,C,O,F,m,7,s[4]),F=u(F,A,C,O,v,12,s[5]),O=u(O,F,A,C,g,17,s[6]),C=u(C,O,F,A,y,22,s[7]),A=u(A,C,O,F,b,7,s[8]),F=u(F,A,C,O,w,12,s[9]),O=u(O,F,A,C,x,17,s[10]),C=u(C,O,F,A,E,22,s[11]),A=u(A,C,O,F,k,7,s[12]),F=u(F,A,C,O,S,12,s[13]),O=u(O,F,A,C,D,17,s[14]),A=l(A,C=u(C,O,F,A,P,22,s[15]),O,F,c,5,s[16]),F=l(F,A,C,O,g,9,s[17]),O=l(O,F,A,C,E,14,s[18]),C=l(C,O,F,A,a,20,s[19]),A=l(A,C,O,F,v,5,s[20]),F=l(F,A,C,O,x,9,s[21]),O=l(O,F,A,C,P,14,s[22]),C=l(C,O,F,A,m,20,s[23]),A=l(A,C,O,F,w,5,s[24]),F=l(F,A,C,O,D,9,s[25]),O=l(O,F,A,C,d,14,s[26]),C=l(C,O,F,A,b,20,s[27]),A=l(A,C,O,F,S,5,s[28]),F=l(F,A,C,O,p,9,s[29]),O=l(O,F,A,C,y,14,s[30]),A=f(A,C=l(C,O,F,A,k,20,s[31]),O,F,v,4,s[32]),F=f(F,A,C,O,b,11,s[33]),O=f(O,F,A,C,E,16,s[34]),C=f(C,O,F,A,D,23,s[35]),A=f(A,C,O,F,c,4,s[36]),F=f(F,A,C,O,m,11,s[37]),O=f(O,F,A,C,y,16,s[38]),C=f(C,O,F,A,x,23,s[39]),A=f(A,C,O,F,S,4,s[40]),F=f(F,A,C,O,a,11,s[41]),O=f(O,F,A,C,d,16,s[42]),C=f(C,O,F,A,g,23,s[43]),A=f(A,C,O,F,w,4,s[44]),F=f(F,A,C,O,k,11,s[45]),O=f(O,F,A,C,P,16,s[46]),A=h(A,C=f(C,O,F,A,p,23,s[47]),O,F,a,6,s[48]),F=h(F,A,C,O,y,10,s[49]),O=h(O,F,A,C,D,15,s[50]),C=h(C,O,F,A,v,21,s[51]),A=h(A,C,O,F,k,6,s[52]),F=h(F,A,C,O,d,10,s[53]),O=h(O,F,A,C,x,15,s[54]),C=h(C,O,F,A,c,21,s[55]),A=h(A,C,O,F,b,6,s[56]),F=h(F,A,C,O,P,10,s[57]),O=h(O,F,A,C,g,15,s[58]),C=h(C,O,F,A,S,21,s[59]),A=h(A,C,O,F,m,6,s[60]),F=h(F,A,C,O,E,10,s[61]),O=h(O,F,A,C,p,15,s[62]),C=h(C,O,F,A,w,21,s[63]),i[0]=i[0]+A|0,i[1]=i[1]+C|0,i[2]=i[2]+O|0,i[3]=i[3]+F|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,o=8*t.sigBytes;r[o>>>5]|=128<<24-o%32;var i=e.floor(n/4294967296),a=n;r[15+(o+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),r[14+(o+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),t.sigBytes=4*(r.length+1),this._process();for(var s=this._hash,c=s.words,u=0;u<4;u++){var l=c[u];c[u]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8)}return s},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});function u(e,t,r,n,o,i,a){var s=e+(t&r|~t&n)+o+a;return(s<<i|s>>>32-i)+t}function l(e,t,r,n,o,i,a){var s=e+(t&n|r&~n)+o+a;return(s<<i|s>>>32-i)+t}function f(e,t,r,n,o,i,a){var s=e+(t^r^n)+o+a;return(s<<i|s>>>32-i)+t}function h(e,t,r,n,o,i,a){var s=e+(r^(t|~n))+o+a;return(s<<i|s>>>32-i)+t}t.MD5=i._createHelper(c),t.HmacMD5=i._createHmacHelper(c)}(Math),n.MD5)},2568:function(e,t,r){var n,o,i,a,s,c,u,l;e.exports=(l=r(4180),o=(n=l).lib,i=o.WordArray,a=o.Hasher,s=n.algo,c=[],u=s.SHA1=a.extend({_doReset:function(){this._hash=new i.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],s=r[4],u=0;u<80;u++){if(u<16)c[u]=0|e[t+u];else{var l=c[u-3]^c[u-8]^c[u-14]^c[u-16];c[u]=l<<1|l>>>31}var f=(n<<5|n>>>27)+s+c[u];f+=u<20?1518500249+(o&i|~o&a):u<40?1859775393+(o^i^a):u<60?(o&i|o&a|i&a)-1894007588:(o^i^a)-899497514,s=a,a=i,i=o<<30|o>>>2,o=n,n=f}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]+s|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=a.clone.call(this);return e._hash=this._hash.clone(),e}}),n.SHA1=a._createHelper(u),n.HmacSHA1=a._createHmacHelper(u),l.SHA1)},6018:e=>{"use strict";var t="%[a-f0-9]{2}",r=new RegExp("("+t+")|([^%]+?)","gi"),n=new RegExp("("+t+")+","gi");function o(e,t){try{return[decodeURIComponent(e.join(""))]}catch(e){}if(1===e.length)return e;t=t||1;var r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],o(r),o(n))}function i(e){try{return decodeURIComponent(e)}catch(i){for(var t=e.match(r)||[],n=1;n<t.length;n++)t=(e=o(t,n).join("")).match(r)||[];return e}}e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return function(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},r=n.exec(e);r;){try{t[r[0]]=decodeURIComponent(r[0])}catch(e){var o=i(r[0]);o!==r[0]&&(t[r[0]]=o)}r=n.exec(e)}t["%C2"]="�";for(var a=Object.keys(t),s=0;s<a.length;s++){var c=a[s];e=e.replace(new RegExp(c,"g"),t[c])}return e}(e)}}},4740:e=>{"use strict";var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},s=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},c=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,l,f=arguments[0],h=1,p=arguments.length,d=!1;for("boolean"==typeof f&&(d=f,f=arguments[1]||{},h=2),(null==f||"object"!=typeof f&&"function"!=typeof f)&&(f={});h<p;++h)if(null!=(t=arguments[h]))for(r in t)n=c(f,r),f!==(o=c(t,r))&&(d&&o&&(a(o)||(u=i(o)))?(u?(u=!1,l=n&&i(n)?n:[]):l=n&&a(n)?n:{},s(f,{name:r,newValue:e(d,l,o)})):void 0!==o&&s(f,{name:r,newValue:o}));return f}},5490:e=>{"use strict";e.exports=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 a=i[o];if(!e(t[a],r[a]))return!1}return!0}return t!=t&&r!=r}},6128:e=>{"use strict";e.exports=function(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});var r,n="boolean"==typeof t.cycles&&t.cycles,o=t.cmp&&(r=t.cmp,function(e){return function(t,n){var o={key:t,value:e[t]},i={key:n,value:e[n]};return r(o,i)}}),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 r,a;if(Array.isArray(t)){for(a="[",r=0;r<t.length;r++)r&&(a+=","),a+=e(t[r])||"null";return a+"]"}if(null===t)return"null";if(-1!==i.indexOf(t)){if(n)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var s=i.push(t)-1,c=Object.keys(t).sort(o&&o(t));for(a="",r=0;r<c.length;r++){var u=c[r],l=e(t[u]);l&&(a&&(a+=","),a+=JSON.stringify(u)+":"+l)}return i.splice(s,1),"{"+a+"}"}}(e)}},5739:e=>{"use strict";e.exports=function(e,t){for(var r={},n=Object.keys(e),o=Array.isArray(t),i=0;i<n.length;i++){var a=n[i],s=e[a];(o?-1!==t.indexOf(a):t(a,s,e))&&(r[a]=s)}return r}},8544:e=>{!function(){var t;function r(e){for(var t,r,n,o,i=1,a=[].slice.call(arguments),s=0,c=e.length,u="",l=!1,f=!1,h=function(){return a[i++]},p=function(){for(var r="";/\d/.test(e[s]);)r+=e[s++],t=e[s];return r.length>0?parseInt(r):null};s<c;++s)if(t=e[s],l)switch(l=!1,"."==t?(f=!1,t=e[++s]):"0"==t&&"."==e[s+1]?(f=!0,t=e[s+=2]):f=!0,o=p(),t){case"b":u+=parseInt(h(),10).toString(2);break;case"c":u+="string"==typeof(r=h())||r instanceof String?r:String.fromCharCode(parseInt(r,10));break;case"d":u+=parseInt(h(),10);break;case"f":n=String(parseFloat(h()).toFixed(o||6)),u+=f?n:n.replace(/^0/,"");break;case"j":u+=JSON.stringify(h());break;case"o":u+="0"+parseInt(h(),10).toString(8);break;case"s":u+=h();break;case"x":u+="0x"+parseInt(h(),10).toString(16);break;case"X":u+="0x"+parseInt(h(),10).toString(16).toUpperCase();break;default:u+=t}else"%"===t?l=!0:u+=t;return u}(t=e.exports=r).format=r,t.vsprintf=function(e,t){return r.apply(null,[e].concat(t))},"undefined"!=typeof console&&"function"==typeof console.log&&(t.printf=function(){console.log(r.apply(null,arguments))})}()},2827:(e,t,r)=>{"use strict";r.d(t,{Ep:()=>d,PP:()=>u,lX:()=>c});var n,o=r(5527);!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(n||(n={}));var i=function(e){return e};var a="beforeunload",s="popstate";function c(e){void 0===e&&(e={});var t=e.window,r=void 0===t?document.defaultView:t,c=r.history;function u(){var e=r.location,t=e.pathname,n=e.search,o=e.hash,a=c.state||{};return[a.idx,i({pathname:t,search:n,hash:o,state:a.usr||null,key:a.key||"default"})]}var l=null;r.addEventListener(s,(function(){if(l)x.call(l),l=null;else{var e=n.Pop,t=u(),r=t[0],o=t[1];if(x.length){if(null!=r){var i=y-r;i&&(l={action:e,location:o,retry:function(){A(-1*i)}},A(i))}}else P(e)}}));var v=n.Pop,g=u(),y=g[0],b=g[1],w=h(),x=h();function E(e){return"string"==typeof e?e:d(e)}function k(e,t){return void 0===t&&(t=null),i((0,o.Z)({pathname:b.pathname,hash:"",search:""},"string"==typeof e?m(e):e,{state:t,key:p()}))}function S(e,t){return[{usr:e.state,key:e.key,idx:t},E(e)]}function D(e,t,r){return!x.length||(x.call({action:e,location:t,retry:r}),!1)}function P(e){v=e;var t=u();y=t[0],b=t[1],w.call({action:v,location:b})}function A(e){c.go(e)}null==y&&(y=0,c.replaceState((0,o.Z)({},c.state,{idx:y}),""));var C={get action(){return v},get location(){return b},createHref:E,push:function e(t,o){var i=n.Push,a=k(t,o);if(D(i,a,(function(){e(t,o)}))){var s=S(a,y+1),u=s[0],l=s[1];try{c.pushState(u,"",l)}catch(e){r.location.assign(l)}P(i)}},replace:function e(t,r){var o=n.Replace,i=k(t,r);if(D(o,i,(function(){e(t,r)}))){var a=S(i,y),s=a[0],u=a[1];c.replaceState(s,"",u),P(o)}},go:A,back:function(){A(-1)},forward:function(){A(1)},listen:function(e){return w.push(e)},block:function(e){var t=x.push(e);return 1===x.length&&r.addEventListener(a,f),function(){t(),x.length||r.removeEventListener(a,f)}}};return C}function u(e){void 0===e&&(e={});var t=e,r=t.initialEntries,a=void 0===r?["/"]:r,s=t.initialIndex,c=a.map((function(e){return i((0,o.Z)({pathname:"/",search:"",hash:"",state:null,key:p()},"string"==typeof e?m(e):e))})),u=l(null==s?c.length-1:s,0,c.length-1),f=n.Pop,v=c[u],g=h(),y=h();function b(e,t){return void 0===t&&(t=null),i((0,o.Z)({pathname:v.pathname,search:"",hash:""},"string"==typeof e?m(e):e,{state:t,key:p()}))}function w(e,t,r){return!y.length||(y.call({action:e,location:t,retry:r}),!1)}function x(e,t){f=e,v=t,g.call({action:f,location:v})}function E(e){var t=l(u+e,0,c.length-1),r=n.Pop,o=c[t];w(r,o,(function(){E(e)}))&&(u=t,x(r,o))}var k={get index(){return u},get action(){return f},get location(){return v},createHref:function(e){return"string"==typeof e?e:d(e)},push:function e(t,r){var o=n.Push,i=b(t,r);w(o,i,(function(){e(t,r)}))&&(u+=1,c.splice(u,c.length,i),x(o,i))},replace:function e(t,r){var o=n.Replace,i=b(t,r);w(o,i,(function(){e(t,r)}))&&(c[u]=i,x(o,i))},go:E,back:function(){E(-1)},forward:function(){E(1)},listen:function(e){return g.push(e)},block:function(e){return y.push(e)}};return k}function l(e,t,r){return Math.min(Math.max(e,t),r)}function f(e){e.preventDefault(),e.returnValue=""}function h(){var e=[];return{get length(){return e.length},push:function(t){return e.push(t),function(){e=e.filter((function(e){return e!==t}))}},call:function(t){e.forEach((function(e){return e&&e(t)}))}}}function p(){return Math.random().toString(36).substr(2,8)}function d(e){var t=e.pathname,r=void 0===t?"/":t,n=e.search,o=void 0===n?"":n,i=e.hash,a=void 0===i?"":i;return o&&"?"!==o&&(r+="?"===o.charAt(0)?o:"?"+o),a&&"#"!==a&&(r+="#"===a.charAt(0)?a:"#"+a),r}function m(e){var t={};if(e){var r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));var n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}},6095:(e,t,r)=>{"use strict";var n=r(5566),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function c(e){return n.isMemo(e)?a:s[e.$$typeof]||o}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=a;var u=Object.defineProperty,l=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,d=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(d){var o=p(r);o&&o!==d&&e(t,o,n)}var a=l(r);f&&(a=a.concat(f(r)));for(var s=c(t),m=c(r),v=0;v<a.length;++v){var g=a[v];if(!(i[g]||n&&n[g]||m&&m[g]||s&&s[g])){var y=h(r,g);try{u(t,g,y)}catch(e){}}}}return t}},5110:(e,t,r)=>{"use strict";e.exports=r(6614)},9161:e=>{e.exports=function(e){return!(!e||"string"==typeof e)&&(e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&"String"!==e.constructor.name))}},276:e=>{"use strict";var t=e.exports=function(e,t,n){"function"==typeof t&&(n=t,t={}),r(t,"function"==typeof(n=t.cb||n)?n:n.pre||function(){},n.post||function(){},e,"",e)};function r(e,n,o,i,a,s,c,u,l,f){if(i&&"object"==typeof i&&!Array.isArray(i)){for(var h in n(i,a,s,c,u,l,f),i){var p=i[h];if(Array.isArray(p)){if(h in t.arrayKeywords)for(var d=0;d<p.length;d++)r(e,n,o,p[d],a+"/"+h+"/"+d,s,a,h,i,d)}else if(h in t.propsKeywords){if(p&&"object"==typeof p)for(var m in p)r(e,n,o,p[m],a+"/"+h+"/"+m.replace(/~/g,"~0").replace(/\//g,"~1"),s,a,h,i,m)}else(h in t.keywords||e.allKeys&&!(h in t.skipKeywords))&&r(e,n,o,p,a+"/"+h,s,a,h,i)}o(i,a,s,c,u,l,f)}}t.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0},t.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},t.propsKeywords={definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},t.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}},4636:function(e,t){var r,n,o;n=[],void 0===(o="function"==typeof(r=function(){var e=function(){},t={},r={},n={};function o(e,t){e=e.push?e:[e];var o,i,a,s=[],c=e.length,u=c;for(o=function(e,r){r.length&&s.push(e),--u||t(s)};c--;)i=e[c],(a=r[i])?o(i,a):(n[i]=n[i]||[]).push(o)}function i(e,t){if(e){var o=n[e];if(r[e]=t,o)for(;o.length;)o[0](e,t),o.splice(0,1)}}function a(t,r){t.call&&(t={success:t}),r.length?(t.error||e)(r):(t.success||e)(t)}function s(t,r,n,o){var i,a,c=document,u=n.async,l=(n.numRetries||0)+1,f=n.before||e,h=t.replace(/[\?|#].*$/,""),p=t.replace(/^(css|img)!/,"");o=o||0,/(^css!|\.css$)/.test(h)?((a=c.createElement("link")).rel="stylesheet",a.href=p,(i="hideFocus"in a)&&a.relList&&(i=0,a.rel="preload",a.as="style")):/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(h)?(a=c.createElement("img")).src=p:((a=c.createElement("script")).src=t,a.async=void 0===u||u),a.onload=a.onerror=a.onbeforeload=function(e){var c=e.type[0];if(i)try{a.sheet.cssText.length||(c="e")}catch(e){18!=e.code&&(c="e")}if("e"==c){if((o+=1)<l)return s(t,r,n,o)}else if("preload"==a.rel&&"style"==a.as)return a.rel="stylesheet";r(t,c,e.defaultPrevented)},!1!==f(t,a)&&c.head.appendChild(a)}function c(e,t,r){var n,o,i=(e=e.push?e:[e]).length,a=i,c=[];for(n=function(e,r,n){if("e"==r&&c.push(e),"b"==r){if(!n)return;c.push(e)}--i||t(c)},o=0;o<a;o++)s(e[o],n,r)}function u(e,r,n){var o,s;if(r&&r.trim&&(o=r),s=(o?n:r)||{},o){if(o in t)throw"LoadJS";t[o]=!0}function u(t,r){c(e,(function(e){a(s,e),t&&a({success:t,error:r},e),i(o,e)}),s)}if(s.returnPromise)return new Promise(u);u()}return u.ready=function(e,t){return o(e,(function(e){a(t,e)})),u},u.done=function(e){i(e,[])},u.reset=function(){t={},r={},n={}},u.isDefined=function(e){return e in t},u})?r.apply(t,n):r)||(e.exports=o)},1538:e=>{"use strict";
10
+ var zv="undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>0;function Uv(e,t,r,n){e.addEventListener?e.addEventListener(t,r,n):e.attachEvent&&e.attachEvent("on".concat(t),(function(){r(window.event)}))}function $v(e,t){for(var r=t.slice(0,t.length-1),n=0;n<r.length;n++)r[n]=e[r[n].toLowerCase()];return r}function qv(e){"string"!=typeof e&&(e="");for(var t=(e=e.replace(/\s/g,"")).split(","),r=t.lastIndexOf("");r>=0;)t[r-1]+=",",t.splice(r,1),r=t.lastIndexOf("");return t}for(var Vv={backspace:8,tab:9,clear:12,enter:13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":zv?173:189,"=":zv?61:187,";":zv?59:186,"'":222,"[":219,"]":221,"\\":220},Gv={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},Wv={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},Kv={16:!1,18:!1,17:!1,91:!1},Qv={},Zv=1;Zv<20;Zv++)Vv["f".concat(Zv)]=111+Zv;var Yv=[],Xv=!1,Jv="all",eg=[],tg=function(e){return Vv[e.toLowerCase()]||Gv[e.toLowerCase()]||e.toUpperCase().charCodeAt(0)};function rg(e){Jv=e||"all"}function ng(){return Jv||"all"}var og=function(e){var t=e.key,r=e.scope,n=e.method,o=e.splitKey,i=void 0===o?"+":o;qv(t).forEach((function(e){var t=e.split(i),o=t.length,a=t[o-1],s="*"===a?"*":tg(a);if(Qv[s]){r||(r=ng());var c=o>1?$v(Gv,t):[];Qv[s]=Qv[s].filter((function(e){return!((!n||e.method===n)&&e.scope===r&&function(e,t){for(var r=e.length>=t.length?e:t,n=e.length>=t.length?t:e,o=!0,i=0;i<r.length;i++)-1===n.indexOf(r[i])&&(o=!1);return o}(e.mods,c))}))}}))};function ig(e,t,r,n){var o;if(t.element===n&&(t.scope===r||"all"===t.scope)){for(var i in o=t.mods.length>0,Kv)Object.prototype.hasOwnProperty.call(Kv,i)&&(!Kv[i]&&t.mods.indexOf(+i)>-1||Kv[i]&&-1===t.mods.indexOf(+i))&&(o=!1);(0!==t.mods.length||Kv[16]||Kv[18]||Kv[17]||Kv[91])&&!o&&"*"!==t.shortcut||!1===t.method(e,t)&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}function ag(e,t){var r=Qv["*"],n=e.keyCode||e.which||e.charCode;if(sg.filter.call(this,e)){if(93!==n&&224!==n||(n=91),-1===Yv.indexOf(n)&&229!==n&&Yv.push(n),["ctrlKey","altKey","shiftKey","metaKey"].forEach((function(t){var r=Wv[t];e[t]&&-1===Yv.indexOf(r)?Yv.push(r):!e[t]&&Yv.indexOf(r)>-1?Yv.splice(Yv.indexOf(r),1):"metaKey"===t&&e[t]&&3===Yv.length&&(e.ctrlKey||e.shiftKey||e.altKey||(Yv=Yv.slice(Yv.indexOf(r))))})),n in Kv){for(var o in Kv[n]=!0,Gv)Gv[o]===n&&(sg[o]=!0);if(!r)return}for(var i in Kv)Object.prototype.hasOwnProperty.call(Kv,i)&&(Kv[i]=e[Wv[i]]);e.getModifierState&&(!e.altKey||e.ctrlKey)&&e.getModifierState("AltGraph")&&(-1===Yv.indexOf(17)&&Yv.push(17),-1===Yv.indexOf(18)&&Yv.push(18),Kv[17]=!0,Kv[18]=!0);var a=ng();if(r)for(var s=0;s<r.length;s++)r[s].scope===a&&("keydown"===e.type&&r[s].keydown||"keyup"===e.type&&r[s].keyup)&&ig(e,r[s],a,t);if(n in Qv)for(var c=0;c<Qv[n].length;c++)if(("keydown"===e.type&&Qv[n][c].keydown||"keyup"===e.type&&Qv[n][c].keyup)&&Qv[n][c].key){for(var u=Qv[n][c],l=u.splitKey,f=u.key.split(l),h=[],p=0;p<f.length;p++)h.push(tg(f[p]));h.sort().join("")===Yv.sort().join("")&&ig(e,u,a,t)}}}function sg(e,t,r){Yv=[];var n=qv(e),o=[],i="all",a=document,s=0,c=!1,u=!0,l="+",f=!1;for(void 0===r&&"function"==typeof t&&(r=t),"[object Object]"===Object.prototype.toString.call(t)&&(t.scope&&(i=t.scope),t.element&&(a=t.element),t.keyup&&(c=t.keyup),void 0!==t.keydown&&(u=t.keydown),void 0!==t.capture&&(f=t.capture),"string"==typeof t.splitKey&&(l=t.splitKey)),"string"==typeof t&&(i=t);s<n.length;s++)o=[],(e=n[s].split(l)).length>1&&(o=$v(Gv,e)),(e="*"===(e=e[e.length-1])?"*":tg(e))in Qv||(Qv[e]=[]),Qv[e].push({keyup:c,keydown:u,scope:i,mods:o,shortcut:n[s],method:r,key:n[s],splitKey:l,element:a});void 0!==a&&!function(e){return eg.indexOf(e)>-1}(a)&&window&&(eg.push(a),Uv(a,"keydown",(function(e){ag(e,a)}),f),Xv||(Xv=!0,Uv(window,"focus",(function(){Yv=[]}),f)),Uv(a,"keyup",(function(e){ag(e,a),function(e){var t=e.keyCode||e.which||e.charCode,r=Yv.indexOf(t);if(r>=0&&Yv.splice(r,1),e.key&&"meta"===e.key.toLowerCase()&&Yv.splice(0,Yv.length),93!==t&&224!==t||(t=91),t in Kv)for(var n in Kv[t]=!1,Gv)Gv[n]===t&&(sg[n]=!1)}(e)}),f))}var cg={setScope:rg,getScope:ng,deleteScope:function(e,t){var r,n;for(var o in e||(e=ng()),Qv)if(Object.prototype.hasOwnProperty.call(Qv,o))for(r=Qv[o],n=0;n<r.length;)r[n].scope===e?r.splice(n,1):n++;ng()===e&&rg(t||"all")},getPressedKeyCodes:function(){return Yv.slice(0)},isPressed:function(e){return"string"==typeof e&&(e=tg(e)),-1!==Yv.indexOf(e)},filter:function(e){var t=e.target||e.srcElement,r=t.tagName,n=!0;return!t.isContentEditable&&("INPUT"!==r&&"TEXTAREA"!==r&&"SELECT"!==r||t.readOnly)||(n=!1),n},trigger:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"all";Object.keys(Qv).forEach((function(r){var n=Qv[r].find((function(r){return r.scope===t&&r.shortcut===e}));n&&n.method&&n.method()}))},unbind:function(e){if(void 0===e)Object.keys(Qv).forEach((function(e){return delete Qv[e]}));else if(Array.isArray(e))e.forEach((function(e){e.key&&og(e)}));else if("object"==typeof e)e.key&&og(e);else if("string"==typeof e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var o=r[0],i=r[1];"function"==typeof o&&(i=o,o=""),og({key:e,scope:o,method:i,splitKey:"+"})}},keyMap:Vv,modifier:Gv,modifierMap:Wv};for(var ug in cg)Object.prototype.hasOwnProperty.call(cg,ug)&&(sg[ug]=cg[ug]);if("undefined"!=typeof window){var lg=window.hotkeys;sg.noConflict=function(e){return e&&window.hotkeys===sg&&(window.hotkeys=lg),sg},window.hotkeys=sg}sg.filter=function(){return!0};var fg=function(e,t){var r=e.target,n=r&&r.tagName;return Boolean(n&&t&&t.includes(n))},hg=function(e){return fg(e,["INPUT","TEXTAREA","SELECT"])};function pg(e,t,r,n){r instanceof Array&&(n=r,r=void 0);var o=r||{},i=o.enableOnTags,a=o.filter,s=o.keyup,c=o.keydown,u=o.filterPreventDefault,l=void 0===u||u,f=o.enabled,h=void 0===f||f,p=o.enableOnContentEditable,d=void 0!==p&&p,m=(0,Yl.useRef)(null),v=(0,Yl.useCallback)((function(e,r){var n,o;return a&&!a(e)?!l:!!(hg(e)&&!fg(e,i)||null!=(n=e.target)&&n.isContentEditable&&!d)||!!(null===m.current||document.activeElement===m.current||null!=(o=m.current)&&o.contains(document.activeElement))&&(t(e,r),!0)}),n?[m,i,a].concat(n):[m,i,a]);return(0,Yl.useEffect)((function(){if(h)return s&&!0!==c&&(r.keydown=!1),sg(e,r||{},v),function(){return sg.unbind(e,v)};sg.unbind(e,v)}),[v,e,h]),m}sg.isPressed;function dg(){return dg=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},dg.apply(this,arguments)}"undefined"!=typeof Symbol&&(Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator"))),"undefined"!=typeof Symbol&&(Symbol.asyncIterator||(Symbol.asyncIterator=Symbol("Symbol.asyncIterator")));var mg="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?Yl.useLayoutEffect:Yl.useEffect,vg={status:"not-requested",loading:!1,result:void 0,error:void 0},gg={status:"loading",loading:!0,result:void 0,error:void 0},yg=function(){},bg={initialState:function(e){return e&&e.executeOnMount?gg:vg},executeOnMount:!0,executeOnUpdate:!0,setLoading:function(e){return gg},setResult:function(e,t){return{status:"success",loading:!1,result:e,error:void 0}},setError:function(e,t){return{status:"error",loading:!1,result:void 0,error:e}},onSuccess:yg,onError:yg},wg=function(e,t,r){var n,o=function(e){return dg({},bg,{},e)}(r),i=(0,Yl.useState)(null),a=i[0],s=i[1],c=function(e){var t=(0,Yl.useState)((function(){return e.initialState(e)})),r=t[0],n=t[1],o=(0,Yl.useCallback)((function(){return n(e.initialState(e))}),[n,e]),i=(0,Yl.useCallback)((function(){return n(e.setLoading(r))}),[r,n]),a=(0,Yl.useCallback)((function(t){return n(e.setResult(t,r))}),[r,n]),s=(0,Yl.useCallback)((function(t){return n(e.setError(t,r))}),[r,n]),c=n,u=(0,Yl.useCallback)((function(e){return c(dg({},r,{},e))}),[r,c]);return{value:r,set:c,merge:u,reset:o,setLoading:i,setResult:a,setError:s}}(o),u=(n=(0,Yl.useRef)(!1),(0,Yl.useEffect)((function(){return n.current=!0,function(){n.current=!1}}),[]),function(){return n.current}),l=function(){var e=(0,Yl.useRef)(null);return{set:function(t){return e.current=t},get:function(){return e.current},is:function(t){return e.current===t}}}(),f=function(e){return u()&&l.is(e)},h=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=e.apply(void 0,r);if(s(r),i instanceof Promise)return l.set(i),c.setLoading(),i.then((function(e){f(i)&&c.setResult(e),o.onSuccess(e,{isCurrent:function(){return l.is(i)}})}),(function(e){f(i)&&c.setError(e),o.onError(e,{isCurrent:function(){return l.is(i)}})})),i;var a=i;return c.setResult(a),Promise.resolve(a)},p=!u();return(0,Yl.useEffect)((function(){p?o.executeOnMount&&h.apply(void 0,t):o.executeOnUpdate&&h.apply(void 0,t)}),t),dg({},c.value,{set:c.set,merge:c.merge,reset:c.reset,execute:h,currentPromise:l.get(),currentParams:a})};function xg(e,t,r){return wg(e,t,r)}var Eg,kg=function(e,t){return wg(e,[],dg({},t,{executeOnMount:!1,executeOnUpdate:!1}))},Sg=function(e){var t,r,n=e.value,o=e.fetchMore,i=e.merge,a=e.isEnd,s=(t=n,r=(0,Yl.useRef)(t),mg((function(){r.current=t})),function(){return r.current}),c=(0,Yl.useState)(!1),u=c[0],l=c[1],f=(0,Yl.useRef)(0),h=kg((function(){try{var e=s();if("success"!==e.status)throw new Error("Can't fetch more if the original fetch is not a success");if("loading"===h.status)throw new Error("Can't fetch more, because we are already fetching more!");f.current=f.current+1;var t=f.current;return Promise.resolve(o(e.result)).then((function(r){var o=e.status===s().status&&e.result===s().result,c=f.current===t;return o&&c&&(n.merge({result:i(n.result,r)}),a(r)&&l(!0)),r}))}catch(e){return Promise.reject(e)}})),p="success"!==n.status;return(0,Yl.useEffect)((function(){p&&(h.reset(),l(!1))}),[p]),{canFetchMore:"success"===n.status&&"loading"!==h.status,loading:h.loading,status:h.status,fetchMore:h.execute,isEnd:u}},Dg=r(9519),Pg=r.n(Dg),Ag=r(411),Cg=r.n(Ag),Og=r(172),Fg=r.n(Og),jg=r(1538),Tg=r.n(jg),_g="bodyAttributes",Rg="htmlAttributes",Ig="titleAttributes",Lg={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},Bg=(Object.keys(Lg).map((function(e){return Lg[e]})),"charset"),Mg="cssText",Ng="href",Hg="http-equiv",zg="innerHTML",Ug="itemprop",$g="name",qg="property",Vg="rel",Gg="src",Wg="target",Kg={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},Qg="defaultTitle",Zg="defer",Yg="encodeSpecialCharacters",Xg="onChangeClientState",Jg="titleTemplate",ey=Object.keys(Kg).reduce((function(e,t){return e[Kg[t]]=t,e}),{}),ty=[Lg.NOSCRIPT,Lg.SCRIPT,Lg.STYLE],ry="data-react-helmet",ny="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},oy=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),iy=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ay=function(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r},sy=function(e){return!1===(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])?String(e):String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")},cy=function(e){var t=py(e,Lg.TITLE),r=py(e,Jg);if(r&&t)return r.replace(/%s/g,(function(){return Array.isArray(t)?t.join(""):t}));var n=py(e,Qg);return t||n||void 0},uy=function(e){return py(e,Xg)||function(){}},ly=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return iy({},e,t)}),{})},fy=function(e,t){return t.filter((function(e){return void 0!==e[Lg.BASE]})).map((function(e){return e[Lg.BASE]})).reverse().reduce((function(t,r){if(!t.length)for(var n=Object.keys(r),o=0;o<n.length;o++){var i=n[o].toLowerCase();if(-1!==e.indexOf(i)&&r[i])return t.concat(r)}return t}),[])},hy=function(e,t,r){var n={};return r.filter((function(t){return!!Array.isArray(t[e])||(void 0!==t[e]&&yy("Helmet: "+e+' should be of type "Array". Instead found type "'+ny(t[e])+'"'),!1)})).map((function(t){return t[e]})).reverse().reduce((function(e,r){var o={};r.filter((function(e){for(var r=void 0,i=Object.keys(e),a=0;a<i.length;a++){var s=i[a],c=s.toLowerCase();-1===t.indexOf(c)||r===Vg&&"canonical"===e[r].toLowerCase()||c===Vg&&"stylesheet"===e[c].toLowerCase()||(r=c),-1===t.indexOf(s)||s!==zg&&s!==Mg&&s!==Ug||(r=s)}if(!r||!e[r])return!1;var u=e[r].toLowerCase();return n[r]||(n[r]={}),o[r]||(o[r]={}),!n[r][u]&&(o[r][u]=!0,!0)})).reverse().forEach((function(t){return e.push(t)}));for(var i=Object.keys(o),a=0;a<i.length;a++){var s=i[a],c=Tg()({},n[s],o[s]);n[s]=c}return e}),[]).reverse()},py=function(e,t){for(var r=e.length-1;r>=0;r--){var n=e[r];if(n.hasOwnProperty(t))return n[t]}return null},dy=(Eg=Date.now(),function(e){var t=Date.now();t-Eg>16?(Eg=t,e(t)):setTimeout((function(){dy(e)}),0)}),my=function(e){return clearTimeout(e)},vy="undefined"!=typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||dy:r.g.requestAnimationFrame||dy,gy="undefined"!=typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||my:r.g.cancelAnimationFrame||my,yy=function(e){return console&&"function"==typeof console.warn&&console.warn(e)},by=null,wy=function(e,t){var r=e.baseTag,n=e.bodyAttributes,o=e.htmlAttributes,i=e.linkTags,a=e.metaTags,s=e.noscriptTags,c=e.onChangeClientState,u=e.scriptTags,l=e.styleTags,f=e.title,h=e.titleAttributes;ky(Lg.BODY,n),ky(Lg.HTML,o),Ey(f,h);var p={baseTag:Sy(Lg.BASE,r),linkTags:Sy(Lg.LINK,i),metaTags:Sy(Lg.META,a),noscriptTags:Sy(Lg.NOSCRIPT,s),scriptTags:Sy(Lg.SCRIPT,u),styleTags:Sy(Lg.STYLE,l)},d={},m={};Object.keys(p).forEach((function(e){var t=p[e],r=t.newTags,n=t.oldTags;r.length&&(d[e]=r),n.length&&(m[e]=p[e].oldTags)})),t&&t(),c(e,d,m)},xy=function(e){return Array.isArray(e)?e.join(""):e},Ey=function(e,t){void 0!==e&&document.title!==e&&(document.title=xy(e)),ky(Lg.TITLE,t)},ky=function(e,t){var r=document.getElementsByTagName(e)[0];if(r){for(var n=r.getAttribute(ry),o=n?n.split(","):[],i=[].concat(o),a=Object.keys(t),s=0;s<a.length;s++){var c=a[s],u=t[c]||"";r.getAttribute(c)!==u&&r.setAttribute(c,u),-1===o.indexOf(c)&&o.push(c);var l=i.indexOf(c);-1!==l&&i.splice(l,1)}for(var f=i.length-1;f>=0;f--)r.removeAttribute(i[f]);o.length===i.length?r.removeAttribute(ry):r.getAttribute(ry)!==a.join(",")&&r.setAttribute(ry,a.join(","))}},Sy=function(e,t){var r=document.head||document.querySelector(Lg.HEAD),n=r.querySelectorAll(e+"["+ry+"]"),o=Array.prototype.slice.call(n),i=[],a=void 0;return t&&t.length&&t.forEach((function(t){var r=document.createElement(e);for(var n in t)if(t.hasOwnProperty(n))if(n===zg)r.innerHTML=t.innerHTML;else if(n===Mg)r.styleSheet?r.styleSheet.cssText=t.cssText:r.appendChild(document.createTextNode(t.cssText));else{var s=void 0===t[n]?"":t[n];r.setAttribute(n,s)}r.setAttribute(ry,"true"),o.some((function(e,t){return a=t,r.isEqualNode(e)}))?o.splice(a,1):i.push(r)})),o.forEach((function(e){return e.parentNode.removeChild(e)})),i.forEach((function(e){return r.appendChild(e)})),{oldTags:o,newTags:i}},Dy=function(e){return Object.keys(e).reduce((function(t,r){var n=void 0!==e[r]?r+'="'+e[r]+'"':""+r;return t?t+" "+n:n}),"")},Py=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,r){return t[Kg[r]||r]=e[r],t}),t)},Ay=function(e,t,r){switch(e){case Lg.TITLE:return{toComponent:function(){return function(e,t,r){var n,o=((n={key:t})[ry]=!0,n),i=Py(r,o);return[Xl().createElement(Lg.TITLE,i,t)]}(0,t.title,t.titleAttributes)},toString:function(){return function(e,t,r,n){var o=Dy(r),i=xy(t);return o?"<"+e+" "+ry+'="true" '+o+">"+sy(i,n)+"</"+e+">":"<"+e+" "+ry+'="true">'+sy(i,n)+"</"+e+">"}(e,t.title,t.titleAttributes,r)}};case _g:case Rg:return{toComponent:function(){return Py(t)},toString:function(){return Dy(t)}};default:return{toComponent:function(){return function(e,t){return t.map((function(t,r){var n,o=((n={key:r})[ry]=!0,n);return Object.keys(t).forEach((function(e){var r=Kg[e]||e;if(r===zg||r===Mg){var n=t.innerHTML||t.cssText;o.dangerouslySetInnerHTML={__html:n}}else o[r]=t[e]})),Xl().createElement(e,o)}))}(e,t)},toString:function(){return function(e,t,r){return t.reduce((function(t,n){var o=Object.keys(n).filter((function(e){return!(e===zg||e===Mg)})).reduce((function(e,t){var o=void 0===n[t]?t:t+'="'+sy(n[t],r)+'"';return e?e+" "+o:o}),""),i=n.innerHTML||n.cssText||"",a=-1===ty.indexOf(e);return t+"<"+e+" "+ry+'="true" '+o+(a?"/>":">"+i+"</"+e+">")}),"")}(e,t,r)}}}},Cy=function(e){var t=e.baseTag,r=e.bodyAttributes,n=e.encode,o=e.htmlAttributes,i=e.linkTags,a=e.metaTags,s=e.noscriptTags,c=e.scriptTags,u=e.styleTags,l=e.title,f=void 0===l?"":l,h=e.titleAttributes;return{base:Ay(Lg.BASE,t,n),bodyAttributes:Ay(_g,r,n),htmlAttributes:Ay(Rg,o,n),link:Ay(Lg.LINK,i,n),meta:Ay(Lg.META,a,n),noscript:Ay(Lg.NOSCRIPT,s,n),script:Ay(Lg.SCRIPT,c,n),style:Ay(Lg.STYLE,u,n),title:Ay(Lg.TITLE,{title:f,titleAttributes:h},n)}},Oy=function(e){var t,r;return r=t=function(t){function r(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,t.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,t),r.prototype.shouldComponentUpdate=function(e){return!Fg()(this.props,e)},r.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case Lg.SCRIPT:case Lg.NOSCRIPT:return{innerHTML:t};case Lg.STYLE:return{cssText:t}}throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},r.prototype.flattenArrayTypeChildren=function(e){var t,r=e.child,n=e.arrayTypeChildren,o=e.newChildProps,i=e.nestedChildren;return iy({},n,((t={})[r.type]=[].concat(n[r.type]||[],[iy({},o,this.mapNestedChildrenToProps(r,i))]),t))},r.prototype.mapObjectTypeChildren=function(e){var t,r,n=e.child,o=e.newProps,i=e.newChildProps,a=e.nestedChildren;switch(n.type){case Lg.TITLE:return iy({},o,((t={})[n.type]=a,t.titleAttributes=iy({},i),t));case Lg.BODY:return iy({},o,{bodyAttributes:iy({},i)});case Lg.HTML:return iy({},o,{htmlAttributes:iy({},i)})}return iy({},o,((r={})[n.type]=iy({},i),r))},r.prototype.mapArrayTypeChildrenToProps=function(e,t){var r=iy({},t);return Object.keys(e).forEach((function(t){var n;r=iy({},r,((n={})[t]=e[t],n))})),r},r.prototype.warnOnInvalidChildren=function(e,t){return!0},r.prototype.mapChildrenToProps=function(e,t){var r=this,n={};return Xl().Children.forEach(e,(function(e){if(e&&e.props){var o=e.props,i=o.children,a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,r){return t[ey[r]||r]=e[r],t}),t)}(ay(o,["children"]));switch(r.warnOnInvalidChildren(e,i),e.type){case Lg.LINK:case Lg.META:case Lg.NOSCRIPT:case Lg.SCRIPT:case Lg.STYLE:n=r.flattenArrayTypeChildren({child:e,arrayTypeChildren:n,newChildProps:a,nestedChildren:i});break;default:t=r.mapObjectTypeChildren({child:e,newProps:t,newChildProps:a,nestedChildren:i})}}})),t=this.mapArrayTypeChildrenToProps(n,t)},r.prototype.render=function(){var t=this.props,r=t.children,n=ay(t,["children"]),o=iy({},n);return r&&(o=this.mapChildrenToProps(r,o)),Xl().createElement(e,o)},oy(r,null,[{key:"canUseDOM",set:function(t){e.canUseDOM=t}}]),r}(Xl().Component),t.propTypes={base:Pg().object,bodyAttributes:Pg().object,children:Pg().oneOfType([Pg().arrayOf(Pg().node),Pg().node]),defaultTitle:Pg().string,defer:Pg().bool,encodeSpecialCharacters:Pg().bool,htmlAttributes:Pg().object,link:Pg().arrayOf(Pg().object),meta:Pg().arrayOf(Pg().object),noscript:Pg().arrayOf(Pg().object),onChangeClientState:Pg().func,script:Pg().arrayOf(Pg().object),style:Pg().arrayOf(Pg().object),title:Pg().string,titleAttributes:Pg().object,titleTemplate:Pg().string},t.defaultProps={defer:!0,encodeSpecialCharacters:!0},t.peek=e.peek,t.rewind=function(){var t=e.rewind();return t||(t=Cy({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),t},r}(Cg()((function(e){return{baseTag:fy([Ng,Wg],e),bodyAttributes:ly(_g,e),defer:py(e,Zg),encode:py(e,Yg),htmlAttributes:ly(Rg,e),linkTags:hy(Lg.LINK,[Vg,Ng],e),metaTags:hy(Lg.META,[$g,Bg,Hg,qg,Ug],e),noscriptTags:hy(Lg.NOSCRIPT,[zg],e),onChangeClientState:uy(e),scriptTags:hy(Lg.SCRIPT,[Gg,zg],e),styleTags:hy(Lg.STYLE,[Mg],e),title:cy(e),titleAttributes:ly(Ig,e)}}),(function(e){by&&gy(by),e.defer?by=vy((function(){wy(e,(function(){by=null}))})):(wy(e),by=null)}),Cy)((function(){return null})));Oy.renderStatic=Oy.rewind;window.TopWritePlugins={};var Fy=function(e){Ul()(r,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Gl()(e);if(t){var o=Gl()(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return ql()(this,r)}}(r);function r(){return Hl()(this,r),t.apply(this,arguments)}return c()(r,[{key:"connectedCallback",value:function(){var e=this;this.addEventListener("click",(function(t){if(t.preventDefault(),!e.isContentEditable){var r=e.attributes.getNamedItem("src"),n=null==r?void 0:r.value;if(n){var o=document.createElement("a");o.download=e.textContent||"",o.style.display="none",o.target="_blank",o.href=Ql.resolve(location.href,n),document.body.appendChild(o),o.click(),document.body.removeChild(o)}}}))}}]),r}(Kl()(HTMLElement));function jy(e){var t=e.component,r=e.defaultComponent,n=void 0===r?Yl.Fragment:r,o=e.props,i=e.children,a=void 0===i?null:i,s=e.context;return null===t?null:(0,Zl.jsx)(Yl.Suspense,{fallback:null,children:(0,Zl.jsx)(t,{props:o,Component:n,context:s,children:a})})}function Ty(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ty(Object(r),!0).forEach((function(t){rf()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ty(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}customElements.define("t-attachment",Fy);var Ry=function(e){Ul()(r,Yl.Component);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Gl()(e);if(t){var o=Gl()(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return ql()(this,r)}}(r);function r(){var e;Hl()(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),rf()(ef()(e),"state",{hasError:!1}),e}return c()(r,[{key:"componentDidCatch",value:function(){this.setState({hasError:!0})}},{key:"render",value:function(){return this.state.hasError?null:this.props.children}}]),r}(),Iy=function(e,t){return e.filter((function(e){var r=e.descriptor;return t===r.role})).sort((function(e,t){var r=e.descriptor.priority,n=void 0===r?0:r,o=t.descriptor.priority;return n-(void 0===o?0:o)})).map((function(e){return t=e.Component,function(e){return(0,Zl.jsx)(Ry,{children:(0,Zl.jsx)(t,_y({},e),"WrappedComponent")})};var t}))};function Ly(e){var t=e.component,r=e.props;return(0,Yl.createElement)(t,r)}function By(e){var t=e.props,r=e.role,n=e.component,o=e.context,i=n?(0,Zl.jsx)(Ly,{component:n,props:t,context:o}):null,a=Mf("components");return(0,Yl.useMemo)((function(){return Iy(a,r)}),[a,r]).reduce((function(e,r){return(0,Zl.jsx)(jy,{defaultComponent:n,component:r,props:t,context:o,children:e})}),i)}function My(e){var t=e.props,r=e.component,n=e.role,o=e.context,i=Mf("components"),a=(0,Yl.useMemo)((function(){return Iy(i,n)}),[i,n]);return(0,Zl.jsx)(Zl.Fragment,{children:a.map((function(e,n){return(0,Zl.jsx)(jy,{defaultComponent:r,component:e,props:t,context:o},n)}))})}function Ny(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return Hy(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Hy(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function Hy(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function zy(e){return Uy.apply(this,arguments)}function Uy(){return(Uy=xs()(ks().mark((function e(t){var r,n;return ks().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r="topwrite-plugin-".concat(t.name),qf().isDefined(r)){e.next=11;break}return n="".concat(t.host,"/").concat(t.main),e.prev=3,e.next=6,qf()(n,r,{returnPromise:!0});case 6:e.next=11;break;case 8:e.prev=8,e.t0=e.catch(3),console.warn("插件".concat(t.name,"加载失败"));case 11:case"end":return e.stop()}}),e,null,[[3,8]])})))).apply(this,arguments)}function $y(e,t){return qy.apply(this,arguments)}function qy(){return(qy=xs()(ks().mark((function e(t,r){var n,o,i,a,s,c,u,l,f,h,p,d,m,v;return ks().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=[],!r){e.next=12;break}return o=Fl(r),e.prev=3,e.next=6,o.getInstalled(t);case 6:n=(n=e.sent).filter((function(e){var t;return!(null!==(t=window.TopWritePlugins[e.name])&&void 0!==t&&t.meta)})),e.next=12;break;case 10:e.prev=10,e.t0=e.catch(3);case 12:if(e.prev=12,i=sessionStorage.getItem("PLUGIN_DEV"),!("dev"in(a=Vf.parse(window.location.search)))&&!i){e.next=32;break}return s=a.dev||i||8080,e.prev=17,e.next=20,du.get("http://localhost:".concat(s,"/meta"));case 20:c=e.sent,u=c.data,n=n.filter((function(e){return e.name!==u.name&&!("theme"===u.type&&"theme"===e.type)})),window.TopWritePlugins[u.name]&&delete window.TopWritePlugins[u.name],n.unshift(u),sessionStorage.setItem("PLUGIN_DEV",String(s)),e.next=32;break;case 28:e.prev=28,e.t1=e.catch(17),console.warn(e.t1),sessionStorage.removeItem("PLUGIN_DEV");case 32:e.next=36;break;case 34:e.prev=34,e.t2=e.catch(12);case 36:l=Object.entries(window.TopWritePlugins).filter((function(e){return!!Uf()(e,2)[1].meta})).map((function(e){return Uf()(e,2)[1].meta})),f=l.some((function(e){return"theme"===e.type})),h=Object.keys(window.TopWritePlugins),p=[],d=Ny(n),e.prev=41,d.s();case 43:if((m=d.n()).done){e.next=50;break}if(!((v=m.value).disabled||h.includes(v.name)||f&&"theme"===v.type)){e.next=47;break}return e.abrupt("continue",48);case 47:p.push(zy(v));case 48:e.next=43;break;case 50:e.next=55;break;case 52:e.prev=52,e.t3=e.catch(41),d.e(e.t3);case 55:return e.prev=55,d.f(),e.finish(55);case 58:return e.next=60,Promise.all(p);case 60:return l.push.apply(l,Hf()(n)),window.TopWritePluginsMeta=l,e.abrupt("return",Object.values(window.TopWritePlugins||{}));case 63:case"end":return e.stop()}}),e,null,[[3,10],[12,34],[17,28],[41,52,55,58]])})))).apply(this,arguments)}function Vy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Gy(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Vy(Object(r),!0).forEach((function(t){rf()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vy(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Wy(e,t){return t instanceof Array?{Component:t[0],descriptor:Gy({role:e},t[1])}:{Component:t,descriptor:{role:e}}}var Ky="localStorage";function Qy(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ky;if("undefined"==typeof window)throw new Error("Browser storage is not available on NodeJS / TopWrite SSR process");if("none"===e)return null;try{return window[e]}catch(e){return null}}var Zy={get:function(){return null},set:function(){},del:function(){}},Yy=function(e,t){var r=Qy(null==t?void 0:t.persistence);return null===r?Zy:{get:function(){return r.getItem(e)},set:function(t){return r.setItem(e,t)},del:function(){return r.removeItem(e)}}};function Xy(){var e=Qy(arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ky);if(!e)return[];for(var t=[],r=0;r<e.length;r+=1){var n=e.key(r);null!==n&&t.push(n)}return t}function Jy(){var e=Mf("book");if(!e)throw new Error("book object not initialized");return e}function eb(){return Jy().config.getValue("themeConfig")}var tb="light",rb="dark";function nb(e){document.documentElement.setAttribute("data-theme",e)}var ob=(0,Yl.createContext)(void 0);function ib(e){var t=e.children,r=function(e){var t=Jy(),r=(0,Yl.useMemo)((function(){return Yy("".concat(e,".").concat(t.id,".theme"))}),[t.id,e]),n=eb().defaultMode,o=(0,Yl.useState)((function(){var e=function(e){return e===rb?rb:tb}(r.get()||n);return nb(e),e})),i=Uf()(o,2),a=i[0],s=i[1];(0,Yl.useEffect)((function(){nb(a)}),[a]);var c=(0,Yl.useCallback)((function(){s(tb),r.set(tb)}),[r]),u=(0,Yl.useCallback)((function(){s(rb),r.set(rb)}),[r]);return{isDarkTheme:a===rb,setLightTheme:c,setDarkTheme:u}}(e.context),n=r.isDarkTheme,o=r.setLightTheme,i=r.setDarkTheme;return(0,Zl.jsx)(ob.Provider,{value:{isDarkTheme:n,setLightTheme:o,setDarkTheme:i},children:t})}function ab(){var e=(0,Yl.useContext)(ob);return null==e?{isDarkTheme:!1,setLightTheme:pf.noop,setDarkTheme:pf.noop}:e}var sb,cb=Dp(sb||(sb=Wf()(["\n\n //TODO 转移到异步加载\n //附件\n t-attachment {\n color: var(--ttw-primary-color, #3c60ff);\n display: inline-flex;\n align-items: center;\n cursor: pointer;\n overflow: hidden;\n padding: 0 4px;\n vertical-align: bottom;\n margin: 0 1px;\n\n &:before {\n content: '';\n width: 18px;\n height: 18px;\n background-color: var(--ttw-primary-color, #3c60ff);\n mask: url(\"",'") no-repeat center;\n margin-right: 4px;\n }\n\n &:after {\n content: "(" attr(size) ")";\n margin-left: 4px;\n display: none;\n }\n\n &[size]:after {\n display: inline;\n }\n\n &:hover {\n background: rgba(0, 0, 0, .1);\n }\n\n &:read-write {\n cursor: text;\n }\n }\n'])),"data:image/svg+xml,%3csvg t='1642406480574' class='icon' viewBox='0 0 1024 1024' version='1.1' xmlns='http://www.w3.org/2000/svg' p-id='2254' width='16' height='16'%3e %3cpath d='M874.666667 467.2c-10.666667-10.666667-29.866667-12.8-42.666667 0l-343.466667 341.333333c-74.666667 74.666667-198.4 74.666667-275.2 0-36.266667-36.266667-57.6-85.333333-57.6-136.533333s19.2-100.266667 57.6-136.533333L556.8 192c46.933333-46.933333 121.6-46.933333 168.533333 0 23.466667 23.466667 34.133333 53.333333 34.133334 83.2 0 32-12.8 61.866667-34.133334 83.2L384 704c-17.066667 17.066667-44.8 17.066667-64 0-8.533333-8.533333-12.8-19.2-12.8-32s4.266667-23.466667 12.8-32l317.866667-315.733333c10.666667-10.666667 12.8-29.866667 0-42.666667-10.666667-12.8-29.866667-12.8-42.666667 0L277.333333 597.333333c-19.2 19.2-29.866667 46.933333-29.866666 74.666667S258.133333 725.333333 277.333333 746.666667c40.533333 40.533333 106.666667 40.533333 147.2 0L768 403.2c34.133333-34.133333 53.333333-78.933333 53.333333-125.866667s-19.2-93.866667-53.333333-125.866666a178.986667 178.986667 0 0 0-253.866667 0l-341.333333 341.333333c-46.933333 46.933333-74.666667 110.933333-74.666667 179.2s25.6 132.266667 74.666667 179.2c49.066667 49.066667 115.2 74.666667 179.2 74.666667s130.133333-25.6 179.2-74.666667l343.466667-341.333333c10.666667-12.8 10.666667-32 0-42.666667z' p-id='2255'%3e%3c/path%3e%3c/svg%3e");var ub=new(function(e){Ul()(r,Tf);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Gl()(e);if(t){var o=Gl()(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return ql()(this,r)}}(r);function r(){var e;Hl()(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),rf()(ef()(e),"initialState",[]),e}return c()(r,[{key:"register",value:ks().mark((function e(t){return ks().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.setState((function(e){return e.push(t)}));case 2:case"end":return e.stop()}}),e,this)}))}]),r}());var lb=new(function(e){Ul()(r,Tf);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Gl()(e);if(t){var o=Gl()(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return ql()(this,r)}}(r);function r(){return Hl()(this,r),t.apply(this,arguments)}return c()(r)}()),fb=Object.freeze({__proto__:null,components:ub,options:lb});function hb(e,t,r){var n="function"==typeof t;n||(r=t),(0,Yl.useEffect)((function(){var r,o=e();return Promise.resolve(o).then((function(e){r=e})),function(){n&&t(r)}}),r)}function pb(e){return e.__esModule&&e.default?e.default:e}var db=(0,Yl.createContext)(void 0),mb=function(){var e=(0,Yl.useContext)(db);if(void 0===e)throw new Error("useIntlContext must be used within a Layout component");return e},vb=function(e){var t=e.localize,r=e.children,n=mb().addMessages,o=(0,Yl.useState)(!0),i=Uf()(o,2),a=i[0],s=i[1];return hb(xs()(ks().mark((function e(){return ks().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s(!0),e.next=3,n(t);case 3:s(!1);case 4:case"end":return e.stop()}}),e)}))),[t]),a?null:(0,Zl.jsx)(Zl.Fragment,{children:r})},gb=function(e){var t=e.children,r=mb(),n=r.locale,o=r.messages,i=(0,Yl.useMemo)((function(){return Qm({locale:n,messages:o,defaultLocale:"en"},{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}})}),[n,o]);return(0,Zl.jsx)(qm,{value:i,children:t})},yb=function(e){var t=e.children,r=e.locale,n=e.messages,o=(0,Yl.useState)(n),i=Uf()(o,2),a=i[0],s=i[1],c=function(){var e=xs()(ks().mark((function e(t){return ks().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=s,e.t1=Object,e.t2={},e.t3=a,e.t4=pb,e.next=7,t(r);case 7:e.t5=e.sent,e.t6=(0,e.t4)(e.t5),e.t7=e.t1.assign.call(e.t1,e.t2,e.t3,e.t6),(0,e.t0)(e.t7);case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return(0,Zl.jsx)(db.Provider,{value:{locale:r,messages:a,addMessages:c},children:(0,Zl.jsx)(gb,{children:t})})};function bb(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return wb(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?wb(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function wb(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function xb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Eb(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?xb(Object(r),!0).forEach((function(t){rf()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xb(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var kb=function(){function e(t,r,n){Hl()(this,e),rf()(this,"name",void 0),rf()(this,"book",void 0),rf()(this,"models",Eb({},fb)),rf()(this,"components",[]),rf()(this,"activates",[]),rf()(this,"plugins",[]),rf()(this,"initialState",void 0),this.name=t,this.book=r,this.initialState=n}var t,r,n;return c()(e,[{key:"registerComponents",value:function(e,t){for(var r=0,n=Object.entries(e);r<n.length;r++){var o=Uf()(n[r],2),i=o[0],a=o[1];a&&("plugin:setting"===i&&(i="plugin:setting:".concat(t)),this.components.push(Wy(i,a)))}}},{key:"registerModels",value:function(e,t){for(var r=0,n=Object.entries(e);r<n.length;r++){var o=Uf()(n[r],2),i=o[0],a=o[1];t?this.models["@".concat(t,"@").concat(i)]=a:this.models[i]=a}}},{key:"registerPlugins",value:(n=xs()(ks().mark((function e(t){var r,n,o;return ks().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.plugins=t,r=bb(t),e.prev=2,r.s();case 4:if((n=r.n()).done){e.next=20;break}if(o=n.value,e.prev=6,this.registerComponents(o.components,o.name),this.registerModels(o.models,o.name),o.activate&&this.activates.push(o.activate),!o.register){e.next=13;break}return e.next=13,o.register(this.name,this.book);case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(6),console.log(e.t0);case 18:e.next=4;break;case 20:e.next=25;break;case 22:e.prev=22,e.t1=e.catch(2),r.e(e.t1);case 25:return e.prev=25,r.f(),e.finish(25);case 28:case"end":return e.stop()}}),e,this,[[2,22,25,28],[6,15]])}))),function(e){return n.apply(this,arguments)})},{key:"createApp",value:(r=xs()(ks().mark((function e(t){var r,n,o,i,a,s=this;return ks().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=navigator.language,e.next=3,this.loadMessages(r,t);case 3:return n=e.sent,o=If(this.models,Eb({book:this.book,components:this.components},this.initialState)),i=function(e){var t=e.children;return(0,Zl.jsx)(Zl.Fragment,{children:t})},a=function(e){var t=e.children,r=(0,Zl.jsx)(By,{role:"activate:".concat(s.name),props:{children:t,name:s.name},component:i});return s.activates.reduce((function(e,t){var r=t(s.name);return void 0!==r?(0,Zl.jsx)(Zl.Fragment,{children:r}):e}),r)},e.abrupt("return",(function(e){var t=e.children;return(0,Zl.jsx)(Bf,{store:o,children:(0,Zl.jsxs)(ib,{context:s.name,children:[(0,Zl.jsx)(cb,{}),(0,Zl.jsx)(yb,{locale:r,messages:n,children:(0,Zl.jsx)(a,{children:t})})]})})}));case 8:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"loadMessages",value:(t=xs()(ks().mark((function e(t,r){return ks().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.plugins.reduce(function(){var e=xs()(ks().mark((function e(r,n){var o;return ks().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=pb,e.next=3,r;case 3:if(e.t1=e.sent,o=(0,e.t0)(e.t1),!n.localize){e.next=15;break}return e.t2=Object,e.t3={},e.t4=o,e.t5=pb,e.next=12,n.localize(t);case 12:return e.t6=e.sent,e.t7=(0,e.t5)(e.t6),e.abrupt("return",e.t2.assign.call(e.t2,e.t3,e.t4,e.t7));case 15:return e.abrupt("return",o);case 16:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}(),r(t));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e,r){return t.apply(this,arguments)})}]),e}();function Sb(e,t,r,n,o,i){return Db.apply(this,arguments)}function Db(){return Db=xs()(ks().mark((function e(t,r,n,o,i,a){var s,c;return ks().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,$y(r,a);case 2:return s=e.sent,(c=new kb(t,r,o)).registerModels(n),e.next=7,c.registerPlugins(s);case 7:return e.next=9,c.createApp(i);case 9:return e.abrupt("return",e.sent);case 10:case"end":return e.stop()}}),e)}))),Db.apply(this,arguments)}function Pb(e){return function(e){const{actions:t}=(0,Yl.useContext)(Lf);return e?t[e]:t}(e)}function Ab(e){return Mf(e)}function Cb(e){return[Ab(e),Pb(e)]}function Ob(e){var t=(0,Yl.useRef)(null),r=(0,Yl.useState)(e),n=Uf()(r,2),o=n[0],i=n[1];return(0,Yl.useEffect)((function(){t.current&&(t.current(),t.current=null)}),[o]),[o,function(e,r){t.current="function"==typeof r?r:null,i(e)}]}function Fb(){var e=document.currentScript;if(!e)throw new Error("Automatic publicPath is not supported in this browser");return e.src.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/")}var jb=c()((function e(t){var r=t.name,n=t.meta,o=t.models,i=void 0===o?{}:o,a=t.components,s=void 0===a?{}:a,c=t.activate,u=t.register,l=t.localize,f=t.config;Hl()(this,e),rf()(this,"name",void 0),rf()(this,"config",void 0),rf()(this,"localize",void 0),rf()(this,"models",void 0),rf()(this,"components",void 0),rf()(this,"activate",void 0),rf()(this,"register",void 0),rf()(this,"meta",void 0),this.name=r,this.meta=n,this.models=i,this.components=s,this.activate=c,this.register=u,this.localize=l,this.config=f}));function Tb(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _b(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Rb(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_b(Object(r),!0).forEach((function(t){rf()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_b(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Ib=function(e){return Fn(e,"root")},Lb=function(e){return Fn(e,"element")},Bb=function(e){return Fn(e,"text")};function Mb(e){return e.filter((function(e){return!(Bb(e)&&"\n"===e.value)}))}function Nb(e,t,r){var n=t.properties,o=t.tagName,i=Rb({},n);r.prefix&&(r.key++,i.key=r.prefix+r.key);for(var a=[],s=Mb(t.children),c=s?s.length:0,u=-1;++u<c;){var l=s[u];Lb(l)?a.push(Nb(e,l,r)):Bb(l)&&a.push(l.value)}return e.call(t,o,i,a.length>0?a:void 0)}function Hb(e,t){var r=t.extensions,n=void 0===r?[]:r,o=t.creator,i=void 0===o?Xl().createElement:o,a={allowDangerousHtml:!1,handlers:Rb(Rb({},n.reduce((function(e,t){return Object.assign(e,t)}),{})),{},{textDirective:function(e,t){return{type:"element",tagName:"textDirective",properties:{name:t.name,attributes:t.attributes},children:e.all(t)}},leafDirective:function(e,t){return{type:"element",tagName:"leafDirective",properties:{name:t.name,attributes:t.attributes},children:e.all(t)}},containerDirective:function(e,t){"children"in t||(t.children=[]);var r,n=!1,o=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return Tb(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Tb(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}(t.children);try{for(o.s();!(r=o.n()).done;){var i;if(null!==(i=r.value.data)&&void 0!==i&&i.directiveLabel){n=!0;break}}}catch(e){o.e(e)}finally{o.f()}return n||t.children.unshift({type:"paragraph",children:[{type:"text",value:""}]}),{type:"element",tagName:"containerDirective",properties:{name:t.name,attributes:t.attributes},children:e.all(t)}},heading:function(e,t){return e.applyData(t,{type:"element",tagName:"heading",properties:{depth:t.depth},children:e.all(t)})}}),unknownHandler:function(){}},s=Lv(e,a);if(Ib(s))return Mb(s.children).map((function(e,t){return Lb(e)?Nb(i,e,{key:0,prefix:"h-".concat(t,"-")}):Bb(e)?e.value:void 0}));if(!Lb(s))throw new Error("Expected root or element, not `"+(s&&s.type||s)+"`");return Nb(i,s,{key:0,prefix:"h-"})}var zb=function(e){var t=e.value;return(0,Zl.jsx)("pre",{children:(0,Zl.jsx)("code",{children:t})})},Ub=function(e){var t=e.value;return(0,Zl.jsx)("code",{children:t})},$b=(0,Yl.createContext)({}),qb=$b.Provider,Vb=function(){return(0,Yl.useContext)($b)};function Gb(e,t){return Vb()[e]||t}function Wb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Kb(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Wb(Object(r),!0).forEach((function(t){rf()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wb(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Qb=["video","audio"];function Zb(e){var t=e.name,r=e.attributes,n=e.children,o=Gb(t),i="html:".concat(t);return customElements.get("t-".concat(t))?o=o||"t-".concat(t):Qb.includes(t)||(o=void 0,i="directive:".concat(t)),(0,Zl.jsx)(By,{role:i,props:Kb(Kb({},r),{},{children:n}),component:o})}var Yb=["depth"];function Xb(e){var t=e.depth,r=void 0===t?5:t,n=sv()(e,Yb);return(0,Yl.createElement)("h".concat(r),n)}var Jb,ew={"x-inline":function(e){var t=e.name,r=e.value;return(0,Zl.jsx)(By,{role:"inline:".concat(t),props:{type:"inline",name:t,value:r},component:Ub})},"x-block":function(e){var t=e.name,r=e.value,n=e.parameter;return(0,Zl.jsx)(By,{role:"block:".concat(t),props:{type:"block",name:t,parameter:n,value:r},component:zb})},textDirective:Zb,leafDirective:Zb,containerDirective:function(e){var t=e.name,r=e.attributes,n=e.children,o=Gb(t),i="html:".concat(t),a=Yl.Children.toArray(n),s=Nv()(a),c=s[0],u=Kb({children:s.slice(1),label:c},r);return customElements.get("t-".concat(t))?o=o||"t-".concat(t):Qb.includes(t)||(o=void 0,i="directive:".concat(t)),(0,Zl.jsx)(By,{role:i,props:u,component:o})},heading:function(e){var t=Gb("heading",Xb);return(0,Zl.jsx)(By,{role:"html:heading",props:e,component:t})}},tw=new lv,rw=el({handler:function(e){var t=e.visit;return function(e){tw.reset(),t(e,"heading",(function(e){var t=e.data||(e.data={}),r=t.hProperties||(t.hProperties={}),n=r.id;n=n?tw.slug(String(n),!0):tw.slug(kt(e)),r.id=n}))}}}),nw=["tagName","inject"],ow=["as","children","components","aside","header","footer","css","sectionAs","inject"];function iw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function aw(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?iw(Object(r),!0).forEach((function(t){rf()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):iw(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var sw=function(e){var t=e.tagName,r=e.inject,n=void 0===r||r,o=sv()(e,nw),i=Gb(t,t);return n?ew[t]?(0,Yl.createElement)(ew[t],o):Bv.includes(t)?(0,Zl.jsx)(By,{role:"html:".concat(t),props:o,component:i}):(console.warn("unknown tagName: ".concat(t)),null):(0,Yl.createElement)(i,o)};function cw(e){var t=e.as,r=void 0===t?Yl.Fragment:t,n=e.children,o=e.components,i=void 0===o?{}:o,a=e.aside,s=void 0===a||a,c=e.header,u=e.footer,l=e.css,f=e.sectionAs,h=e.inject,p=void 0===h||h,d=sv()(e,ow),m=(0,Yl.useMemo)((function(){return bl().use(rw).freeze()}),[]),v=(0,Yl.useMemo)((function(){try{var e=m.data("toHastExtensions")||[],t=m.runSync(m.parse(n)),r=null;if(s){var o=Pv(t).map;o&&(r=Hb(o,{extensions:[{link:function(e,t){var r=kt(t.children);return e.applyData(t,{type:"element",tagName:"a",properties:{href:Qi(t.url)},children:[{type:"text",value:r}]})}}]})),"object"===iv()(s)&&(r=(0,Zl.jsxs)(Zl.Fragment,{children:[s.header,r,s.footer]}))}var i=Hb(t,{extensions:e,creator:function(e,t,r){return(0,Yl.createElement)(sw,aw(aw({},t),{},{tagName:e,inject:p}),r)}});return[i,r]}catch(e){return console.log(e),[null,null]}}),[n,s,m,p]),g=Uf()(v,2),y=g[0],b=g[1];return(0,Yl.createElement)(r,d,(0,Zl.jsxs)(qb,{value:i,children:[(0,Zl.jsxs)("article",{children:[c,(0,Zl.jsx)(uw,{$css:l,as:f,children:y}),u]}),b&&(0,Zl.jsx)("aside",{children:b})]}))}var uw=Ap.section(Jb||(Jb=Wf()(["\n -ms-text-size-adjust: 100%;\n -webkit-text-size-adjust: 100%;\n line-height: 1.2;\n word-wrap: break-word;\n\n & > *:first-child {\n margin-top: 0 !important;\n }\n\n & > *:last-child {\n margin-bottom: 0 !important;\n }\n\n h1, h2, h3, h4, h5, h6, p, ul, ol, blockquote, pre, table, audio, video {\n margin: 1em 0;\n line-height: 1.2;\n padding: 0;\n\n &:last-child {\n margin-bottom: 0 !important;\n }\n\n &:first-child {\n margin-top: 0 !important;\n }\n }\n\n p {\n margin: 0;\n line-height: 2;\n }\n\n h1, h2, h3, h4, h5, h6 {\n font-weight: normal;\n\n &.align-right {\n text-align: right;\n }\n\n &.align-center {\n text-align: center;\n }\n }\n\n h1 {\n font-size: 2em;\n line-height: 1.2;\n border-bottom: 1px solid #eeeeee;\n padding-bottom: .5em;\n }\n\n h2 {\n padding-bottom: .4em;\n font-size: 1.3em;\n line-height: 1.2;\n border-bottom: 1px solid #eeeeee\n }\n\n h3 {\n font-size: 1.2em;\n line-height: 1.2;\n }\n\n h4 {\n font-size: 1.1em;\n line-height: 1.2;\n }\n\n h5 {\n font-size: 1em;\n line-height: 1.2;\n }\n\n hr {\n border: 0;\n border-bottom: 1px solid #eeeeee;\n margin-bottom: 0.5em;\n }\n\n ul {\n padding-left: 2em;\n\n ul {\n margin: 0;\n }\n }\n\n ol {\n padding-left: 2em;\n }\n\n li {\n line-height: 2;\n\n &.task-list-item {\n list-style: none;\n position: relative;\n\n input[type=checkbox] {\n position: absolute;\n left: -1.5em;\n top: 0.5em;\n width: 1em;\n height: 1em;\n }\n }\n\n &.align-right {\n text-align: right;\n }\n\n &.align-center {\n text-align: center;\n }\n }\n\n code {\n display: inline-block;\n border-radius: 4px;\n padding: .2em .4em;\n background-color: #f7f7f7;\n word-break: break-all;\n font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;\n white-space: pre;\n line-height: 1.3;\n color: inherit;\n font-size: inherit;\n margin: -.2em .4em;\n }\n\n pre {\n padding: 1.05em;\n overflow: auto;\n line-height: 1.45;\n background-color: #f7f7f7;\n border: 0;\n border-radius: 3px;\n font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;\n font-size: inherit;\n }\n\n\n pre > code {\n display: inline;\n max-width: 100%;\n padding: 0;\n margin: 0;\n overflow: initial;\n line-height: inherit;\n background-color: rgba(0, 0, 0, 0);\n border: 0;\n tab-size: 4;\n }\n\n p {\n &.align-right {\n text-align: right;\n }\n\n &.align-center {\n text-align: center;\n }\n }\n\n table {\n border-collapse: collapse;\n table-layout: fixed;\n width: 100%;\n line-height: 1.8;\n border-spacing: 0;\n\n th {\n text-align: left;\n\n &[align='center'] {\n text-align: center;\n }\n\n &[align='right'] {\n text-align: right;\n }\n }\n\n th, td {\n border: 1px solid #e0e0e0;\n padding: 3px 12px;\n height: 34px;\n }\n\n tr:hover td {\n background-color: #f1f1f1;\n }\n }\n\n img {\n max-width: 100%;\n display: inline-block;\n padding: 3px;\n vertical-align: middle;\n }\n\n a {\n text-decoration: none;\n color: var(--ttw-primary-color, #3c60ff);\n\n &:hover {\n text-decoration: underline;\n }\n }\n\n blockquote {\n padding: 5px 5px 5px 15px;\n color: #777777;\n border-left: 4px solid #dddddd;\n\n &.info {\n border-left-color: #5bc0de;\n color: #5bc0de;\n background-color: #f4f8fa;\n }\n\n &.warning {\n background-color: #fcf8f2;\n border-color: #f0ad4e;\n color: #f0ad4e;\n }\n\n &.danger {\n color: #d9534f;\n background-color: #fdf7f7;\n border-color: #d9534f;\n }\n\n &.success {\n background-color: #f3f8f3;\n border-color: #50af51;\n color: #50af51;\n }\n }\n\n video {\n display: block;\n width: 100%;\n }\n\n audio {\n display: block;\n width: 100%;\n }\n\n html[data-theme=dark] & {\n code {\n background-color: #333437;\n }\n\n pre {\n background-color: #333437;\n }\n\n h1, h2, hr {\n border-color: #404040;\n }\n\n th, td {\n border-color: #404040;\n }\n\n tr:hover td {\n background-color: #333437;\n }\n }\n\n ","\n"])),(function(e){return e.$css})),lw=["onChange","onCompositionStart","onCompositionEnd"];function fw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function hw(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?fw(Object(r),!0).forEach((function(t){rf()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fw(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function pw(e){var t=e.onChange,r=e.onCompositionStart,n=e.onCompositionEnd,o=sv()(e,lw),i=(0,Yl.useRef)(!1),a=(0,Yl.useCallback)((function(e){i.current||null==t||t(e)}),[t]),s=(0,Yl.useCallback)((function(e){i.current=!0,null==r||r(e)}),[r]),c=(0,Yl.useCallback)((function(e){i.current=!1,null==t||t(e),null==n||n(e)}),[n,t]);return(0,Zl.jsx)("input",hw(hw({},o),{},{onChange:a,onCompositionStart:s,onCompositionEnd:c}))}function dw(e){var t=(0,Yl.useRef)();return(0,Yl.useEffect)((function(){t.current=e}),[e]),t.current}function mw(e){var t=(0,Yl.useRef)(e);(0,Yl.useEffect)((function(){return document.title=e,function(){document.title=t.current}}),[e])}function vw(e,t,r){var n=(0,Yl.useRef)(e),o=(0,Yl.useRef)((0,pf.debounce)(e,t,r));return(0,Yl.useEffect)((function(){n.current=e})),(0,Yl.useEffect)((function(){o.current=(0,pf.debounce)((function(){n.current.apply(n,arguments)}),t,r)}),[t,r]),o.current}function gw(e,t,r){var n=(0,Yl.useRef)(e),o=(0,Yl.useRef)((0,pf.throttle)(e,t,r));return(0,Yl.useEffect)((function(){n.current=e})),(0,Yl.useEffect)((function(){o.current=(0,pf.throttle)((function(){n.current.apply(n,arguments)}),t,r)}),[t,r]),o.current}function yw(){return Mf("options")}var bw=new EventTarget;function ww(){return bw}function xw(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=(0,Yl.useState)((function(){return window.localStorage.getItem(e)||t})),n=Uf()(r,2),o=n[0],i=n[1],a=(0,Yl.useCallback)((function(t){i(t),window.localStorage.setItem(e,t)}),[i,e]);(0,Yl.useEffect)((function(){var r=window.localStorage.getItem(e);o!==r&&i(r||t)}));var s=(0,Yl.useCallback)((function(r){r.key===e&&r.newValue!==o&&i(r.newValue||t)}),[o]);return(0,Yl.useEffect)((function(){return window.addEventListener("storage",s),function(){return window.removeEventListener("storage",s)}}),[s]),[o,a]}function Ew(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.document;"string"==typeof e&&(e=(new DOMParser).parseFromString(e,"text/html"));var t=e.querySelector('script[type="application/payload+json"]');if(t)try{return JSON.parse(t.innerHTML)}catch(e){return{}}}var kw=Object.freeze({__proto__:null,decode:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(null===e)return"";try{return decodeURIComponent(escape(window.atob(e)))}catch(e){if(t)throw e;return""}},encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(null===e)return"";try{return window.btoa(unescape(encodeURIComponent(e)))}catch(e){if(t)throw e;return""}}});function Sw(){return"undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform)}var Dw="1.0.0"},7625:(e,t,r)=>{"use strict";var n=r(7499),o=r(6809),i=r(5075),a=r(3200),s=r(6128),c=r(9361),u=r(6302),l=r(3158),f=r(1760);e.exports=g,g.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},g.prototype.compile=function(e,t){var r=this._addSchema(e,void 0,t);return r.validate||this._compile(r)},g.prototype.addSchema=function(e,t,r,n){if(Array.isArray(e)){for(var i=0;i<e.length;i++)this.addSchema(e[i],void 0,r,n);return this}var a=this._getId(e);if(void 0!==a&&"string"!=typeof a)throw new Error("schema id must be string");return k(this,t=o.normalizeId(t||a)),this._schemas[t]=this._addSchema(e,r,n,!0),this},g.prototype.addMetaSchema=function(e,t,r){return this.addSchema(e,t,r,!0),this},g.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(d)?d:void 0,e._opts.defaultMeta}(this)))return this.logger.warn("meta-schema not available"),this.errors=null,!0;var n=this.validate(r,e);if(!n&&t){var o="schema is invalid: "+this.errorsText();if("log"!=this._opts.validateSchema)throw new Error(o);this.logger.error(o)}return n},g.prototype.getSchema=function(e){var t=y(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=o.schema.call(e,{schema:{}},t);if(r){var i=r.schema,s=r.root,c=r.baseId,u=n.call(e,i,s,void 0,c);return e._fragments[t]=new a({ref:t,fragment:!0,schema:i,root:s,baseId:c,validate:u}),u}}(this,e)}},g.prototype.removeSchema=function(e){if(e instanceof RegExp)return b(this,this._schemas,e),b(this,this._refs,e),this;switch(typeof e){case"undefined":return b(this,this._schemas),b(this,this._refs),this._cache.clear(),this;case"string":var t=y(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=o.normalizeId(i),delete this._schemas[i],delete this._refs[i])}return this},g.prototype.addFormat=function(e,t){"string"==typeof t&&(t=new RegExp(t));return this._formats[e]=t,this},g.prototype.errorsText=function(e,t){if(!(e=e||this.errors))return"No errors";for(var r=void 0===(t=t||{}).separator?", ":t.separator,n=void 0===t.dataVar?"data":t.dataVar,o="",i=0;i<e.length;i++){var a=e[i];a&&(o+=n+a.dataPath+" "+a.message+r)}return o.slice(0,-r.length)},g.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,s=i?i(e):e,c=this._cache.get(s);if(c)return c;n=n||!1!==this._opts.addUsedSchema;var u=o.normalizeId(this._getId(e));u&&n&&k(this,u);var l,f=!1!==this._opts.validateSchema&&!t;f&&!(l=u&&u==o.normalizeId(e.$schema))&&this.validateSchema(e,!0);var h=o.ids.call(this,e),p=new a({id:u,schema:e,localRefs:h,cacheKey:s,meta:r});"#"!=u[0]&&n&&(this._refs[u]=p);this._cache.put(s,p),f&&l&&this.validateSchema(e,!0);return p},g.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,o;e.compiling=!0,e.meta&&(r=this._opts,this._opts=this._metaOpts);try{o=n.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=o,e.refs=o.refs,e.refVal=o.refVal,e.root=o.root,o;function i(){var t=e.validate,r=t.apply(this,arguments);return i.errors=t.errors,r}},g.prototype.compileAsync=r(8559);var h=r(3114);g.prototype.addKeyword=h.add,g.prototype.getKeyword=h.get,g.prototype.removeKeyword=h.remove,g.prototype.validateKeyword=h.validate;var p=r(6720);g.ValidationError=p.Validation,g.MissingRefError=p.MissingRef,g.$dataMetaSchema=l;var d="http://json-schema.org/draft-07/schema",m=["removeAdditional","useDefaults","coerceTypes","strictDefaults"],v=["/properties"];function g(e){if(!(this instanceof g))return new g(e);e=this._opts=f.copy(e)||{},function(e){var t=e._opts.logger;if(!1===t)e.logger={log:S,warn:S,error:S};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=c(e.format),this._cache=e.cache||new i,this._loadingSchemas={},this._compilations=[],this.RULES=u(),this._getId=function(e){switch(e.schemaId){case"auto":return E;case"id":return w;default:return x}}(e),e.loopRequired=e.loopRequired||1/0,"property"==e.errorDataPath&&(e._errorDataPathProperty=!0),void 0===e.serialize&&(e.serialize=s),this._metaOpts=function(e){for(var t=f.copy(e._opts),r=0;r<m.length;r++)delete t[m[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=r(4862),e.addMetaSchema(t,t.$id,!0));if(!1===e._opts.meta)return;var n=r(4502);e._opts.$data&&(n=l(n,v));e.addMetaSchema(n,d,!0),e._refs["http://json-schema.org/schema"]=d}(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 y(e,t){return t=o.normalizeId(t),e._schemas[t]||e._refs[t]||e._fragments[t]}function b(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 w(e){return e.$id&&this.logger.warn("schema $id ignored",e.$id),e.id}function x(e){return e.id&&this.logger.warn("schema id ignored",e.id),e.$id}function E(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 k(e,t){if(e._schemas[t]||e._refs[t])throw new Error('schema with key or id "'+t+'" already exists')}function S(){}},5075:e=>{"use strict";var t=e.exports=function(){this._cache={}};t.prototype.put=function(e,t){this._cache[e]=t},t.prototype.get=function(e){return this._cache[e]},t.prototype.del=function(e){delete this._cache[e]},t.prototype.clear=function(){this._cache={}}},8559:(e,t,r)=>{"use strict";var n=r(6720).MissingRef;e.exports=function e(t,r,o){var i=this;if("function"!=typeof this._opts.loadSchema)throw new Error("options.loadSchema should be a function");"function"==typeof r&&(o=r,r=void 0);var a=s(t).then((function(){var e=i._addSchema(t,void 0,r);return e.validate||c(e)}));o&&a.then((function(e){o(null,e)}),o);return a;function s(t){var r=t.$schema;return r&&!i.getSchema(r)?e.call(i,{$ref:r},!0):Promise.resolve()}function c(e){try{return i._compile(e)}catch(t){if(t instanceof n)return function(t){var n=t.missingSchema;if(u(n))throw new Error("Schema "+n+" is loaded but "+t.missingRef+" cannot be resolved");var o=i._loadingSchemas[n];o||(o=i._loadingSchemas[n]=i._opts.loadSchema(n)).then(a,a);return o.then((function(e){if(!u(n))return s(e).then((function(){u(n)||i.addSchema(e,n,void 0,r)}))})).then((function(){return c(e)}));function a(){delete i._loadingSchemas[n]}function u(e){return i._refs[e]||i._schemas[e]}}(t);throw t}}}},6720:(e,t,r)=>{"use strict";var n=r(6809);function o(e,t,r){this.message=r||o.message(e,t),this.missingRef=n.url(e,t),this.missingSchema=n.normalizeId(n.fullPath(this.missingRef))}function i(e){return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}e.exports={Validation:i((function(e){this.message="validation failed",this.errors=e,this.ajv=this.validation=!0})),MissingRef:i(o)},o.message=function(e,t){return"can't resolve reference "+t+" from id "+e}},9361:(e,t,r)=>{"use strict";var n=r(1760),o=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,i=[0,31,28,31,30,31,30,31,31,30,31,30,31],a=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,s=/^(?=.{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,c=/^(?:[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,u=/^(?:(?:[^\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,l=/^(?:(?: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,f=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,h=/^(?:\/(?:[^~/]|~0|~1)*)*$/,p=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,d=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;function m(e){return e="full"==e?"full":"fast",n.copy(m[e])}function v(e){var t=e.match(o);if(!t)return!1;var r=+t[1],n=+t[2],a=+t[3];return n>=1&&n<=12&&a>=1&&a<=(2==n&&function(e){return e%4==0&&(e%100!=0||e%400==0)}(r)?29:i[n])}function g(e,t){var r=e.match(a);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)}e.exports=m,m.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":u,url:l,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:s,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:x,uuid:f,"json-pointer":h,"json-pointer-uri-fragment":p,"relative-json-pointer":d},m.full={date:v,time:g,"date-time":function(e){var t=e.split(y);return 2==t.length&&v(t[0])&&g(t[1],!0)},uri:function(e){return b.test(e)&&c.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":u,url:l,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:s,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:x,uuid:f,"json-pointer":h,"json-pointer-uri-fragment":p,"relative-json-pointer":d};var y=/t|\s/i;var b=/\/|:/;var w=/[^\\]\\Z/;function x(e){if(w.test(e))return!1;try{return new RegExp(e),!0}catch(e){return!1}}},7499:(e,t,r)=>{"use strict";var n=r(6809),o=r(1760),i=r(6720),a=r(6128),s=r(3833),c=o.ucs2length,u=r(5490),l=i.Validation;function f(e,t,r){var n=p.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 h(e,t,r){var n=p.call(this,e,t,r);n>=0&&this._compilations.splice(n,1)}function p(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 d(e,t){return"var pattern"+e+" = new RegExp("+o.toQuotedString(t[e])+");"}function m(e){return"var default"+e+" = defaults["+e+"];"}function v(e,t){return void 0===t[e]?"":"var refVal"+e+" = refVal["+e+"];"}function g(e){return"var customRule"+e+" = customRules["+e+"];"}function y(e,t){if(!e.length)return"";for(var r="",n=0;n<e.length;n++)r+=t(n,e);return r}e.exports=function e(t,r,p,b){var w=this,x=this._opts,E=[void 0],k={},S=[],D={},P=[],A={},C=[];r=r||{schema:t,refVal:E,refs:k};var O=f.call(this,t,r,b),F=this._compilations[O.index];if(O.compiling)return F.callValidate=function e(){var t=F.validate,r=t.apply(this,arguments);return e.errors=t.errors,r};var j=this._formats,T=this.RULES;try{var _=I(t,r,p,b);F.validate=_;var R=F.callValidate;return R&&(R.schema=_.schema,R.errors=null,R.refs=_.refs,R.refVal=_.refVal,R.root=_.root,R.$async=_.$async,x.sourceCode&&(R.source=_.source)),_}finally{h.call(this,t,r,b)}function I(t,a,f,h){var p=!a||a&&a.schema==t;if(a.schema!=r.schema)return e.call(w,t,a,f,h);var b,D=!0===t.$async,A=s({isTop:!0,schema:t,isRoot:p,baseId:h,root:a,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:i.MissingRef,RULES:T,validate:s,util:o,resolve:n,resolveRef:L,usePattern:N,useDefault:H,useCustomRule:z,opts:x,formats:j,logger:w.logger,self:w});A=y(E,v)+y(S,d)+y(P,m)+y(C,g)+A,x.processCode&&(A=x.processCode(A,t));try{b=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",A)(w,T,j,r,E,P,C,u,c,l),E[0]=b}catch(e){throw w.logger.error("Error compiling schema, function code:",A),e}return b.schema=t,b.errors=null,b.refs=k,b.refVal=E,b.root=p?b:a,D&&(b.$async=!0),!0===x.sourceCode&&(b.source={code:A,patterns:S,defaults:P}),b}function L(t,o,i){o=n.url(t,o);var a,s,c=k[o];if(void 0!==c)return M(a=E[c],s="refVal["+c+"]");if(!i&&r.refs){var u=r.refs[o];if(void 0!==u)return M(a=r.refVal[u],s=B(o,a))}s=B(o);var l=n.call(w,I,r,o);if(void 0===l){var f=p&&p[o];f&&(l=n.inlineRef(f,x.inlineRefs)?f:e.call(w,f,r,p,t))}if(void 0!==l)return function(e,t){var r=k[e];E[r]=t}(o,l),M(l,s);!function(e){delete k[e]}(o)}function B(e,t){var r=E.length;return E[r]=t,k[e]=r,"refVal"+r}function M(e,t){return"object"==typeof e||"boolean"==typeof e?{code:t,schema:e,inline:!0}:{code:t,$async:e&&!!e.$async}}function N(e){var t=D[e];return void 0===t&&(t=D[e]=S.length,S[t]=e),"pattern"+t}function H(e){switch(typeof e){case"boolean":case"number":return""+e;case"string":return o.toQuotedString(e);case"object":if(null===e)return"null";var t=a(e),r=A[t];return void 0===r&&(r=A[t]=P.length,P[r]=e),"default"+r}}function z(e,t,r,n){if(!1!==w._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 i=e.definition.validateSchema;if(i)if(!i(t)){var a="keyword schema is invalid: "+w.errorsText(i.errors);if("log"!=w._opts.validateSchema)throw new Error(a);w.logger.error(a)}}var s,c=e.definition.compile,u=e.definition.inline,l=e.definition.macro;if(c)s=c.call(w,t,r,n);else if(l)s=l.call(w,t,r,n),!1!==x.validateSchema&&w.validateSchema(s,!0);else if(u)s=u.call(w,n,e.keyword,t,r);else if(!(s=e.definition.validate))return;if(void 0===s)throw new Error('custom keyword "'+e.keyword+'"failed to compile');var f=C.length;return C[f]=s,{code:"customRule"+f,validate:s}}}},6809:(e,t,r)=>{"use strict";var n=r(5648),o=r(5490),i=r(1760),a=r(3200),s=r(276);function c(e,t,r){var n=this._refs[r];if("string"==typeof n){if(!this._refs[n])return c.call(this,e,t,n);n=this._refs[n]}if((n=n||this._schemas[r])instanceof a)return d(n.schema,this._opts.inlineRefs)?n.schema:n.validate||this._compile(n);var o,i,s,l=u.call(this,t,r);return l&&(o=l.schema,t=l.root,s=l.baseId),o instanceof a?i=o.validate||e.call(this,o.schema,t,void 0,s):void 0!==o&&(i=d(o,this._opts.inlineRefs)?o:e.call(this,o,t,void 0,s)),i}function u(e,t){var r=n.parse(t),o=y(r),i=g(this._getId(e.schema));if(0===Object.keys(e.schema).length||o!==i){var s=w(o),c=this._refs[s];if("string"==typeof c)return l.call(this,e,c,r);if(c instanceof a)c.validate||this._compile(c),e=c;else{if(!((c=this._schemas[s])instanceof a))return;if(c.validate||this._compile(c),s==w(t))return{schema:c,root:e,baseId:i};e=c}if(!e.schema)return;i=g(this._getId(e.schema))}return h.call(this,r,i,e.schema,e)}function l(e,t,r){var n=u.call(this,e,t);if(n){var o=n.schema,i=n.baseId;e=n.root;var a=this._getId(o);return a&&(i=x(i,a)),h.call(this,r,i,o,e)}}e.exports=c,c.normalizeId=w,c.fullPath=g,c.url=x,c.ids=function(e){var t=w(this._getId(e)),r={"":t},a={"":g(t,!1)},c={},u=this;return s(e,{allKeys:!0},(function(e,t,s,l,f,h,p){if(""!==t){var d=u._getId(e),m=r[l],v=a[l]+"/"+f;if(void 0!==p&&(v+="/"+("number"==typeof p?p:i.escapeFragment(p))),"string"==typeof d){d=m=w(m?n.resolve(m,d):d);var g=u._refs[d];if("string"==typeof g&&(g=u._refs[g]),g&&g.schema){if(!o(e,g.schema))throw new Error('id "'+d+'" resolves to more than one schema')}else if(d!=w(v))if("#"==d[0]){if(c[d]&&!o(e,c[d]))throw new Error('id "'+d+'" resolves to more than one schema');c[d]=e}else u._refs[d]=v}r[t]=m,a[t]=v}})),c},c.inlineRef=d,c.schema=u;var f=i.toHash(["properties","patternProperties","enum","dependencies","definitions"]);function h(e,t,r,n){if(e.fragment=e.fragment||"","/"==e.fragment.slice(0,1)){for(var o=e.fragment.split("/"),a=1;a<o.length;a++){var s=o[a];if(s){if(void 0===(r=r[s=i.unescapeFragment(s)]))break;var c;if(!f[s]&&((c=this._getId(r))&&(t=x(t,c)),r.$ref)){var l=x(t,r.$ref),h=u.call(this,n,l);h&&(r=h.schema,n=h.root,t=h.baseId)}}}return void 0!==r&&r!==n.schema?{schema:r,root:n,baseId:t}:void 0}}var p=i.toHash(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum"]);function d(e,t){return!1!==t&&(void 0===t||!0===t?m(e):t?v(e)<=t:void 0)}function m(e){var t;if(Array.isArray(e)){for(var r=0;r<e.length;r++)if("object"==typeof(t=e[r])&&!m(t))return!1}else for(var n in e){if("$ref"==n)return!1;if("object"==typeof(t=e[n])&&!m(t))return!1}return!0}function v(e){var t,r=0;if(Array.isArray(e)){for(var n=0;n<e.length;n++)if("object"==typeof(t=e[n])&&(r+=v(t)),r==1/0)return 1/0}else for(var o in e){if("$ref"==o)return 1/0;if(p[o])r++;else if("object"==typeof(t=e[o])&&(r+=v(t)+1),r==1/0)return 1/0}return r}function g(e,t){return!1!==t&&(e=w(e)),y(n.parse(e))}function y(e){return n.serialize(e).split("#")[0]+"#"}var b=/#\/?$/;function w(e){return e?e.replace(b,""):""}function x(e,t){return t=w(t),n.resolve(e,t)}},6302:(e,t,r)=>{"use strict";var n=r(112),o=r(1760).toHash;e.exports=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=o(t),e.types=o(["number","integer","string","array","object","boolean","null"]),e.forEach((function(r){r.rules=r.rules.map((function(r){var o;if("object"==typeof r){var i=Object.keys(r)[0];o=r[i],r=i,o.forEach((function(r){t.push(r),e.all[r]=!0}))}return t.push(r),e.all[r]={keyword:r,code:n[r],implements:o}})),e.all.$comment={keyword:"$comment",code:n.$comment},r.type&&(e.types[r.type]=r)})),e.keywords=o(t.concat(["$schema","$id","id","$data","$async","title","description","default","definitions","examples","readOnly","writeOnly","contentMediaType","contentEncoding","additionalItems","then","else"])),e.custom={},e}},3200:(e,t,r)=>{"use strict";var n=r(1760);e.exports=function(e){n.copy(e,this)}},1554:e=>{"use strict";e.exports=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}},1760:(e,t,r)=>{"use strict";function n(e,t,r,n){var o=n?" !== ":" === ",i=n?" || ":" && ",a=n?"!":"",s=n?"":"!";switch(e){case"null":return t+o+"null";case"array":return a+"Array.isArray("+t+")";case"object":return"("+a+t+i+"typeof "+t+o+'"object"'+i+s+"Array.isArray("+t+"))";case"integer":return"(typeof "+t+o+'"number"'+i+s+"("+t+" % 1)"+i+t+o+t+(r?i+a+"isFinite("+t+")":"")+")";case"number":return"(typeof "+t+o+'"'+e+'"'+(r?i+a+"isFinite("+t+")":"")+")";default:return"typeof "+t+o+'"'+e+'"'}}e.exports={copy:function(e,t){for(var r in t=t||{},e)t[r]=e[r];return t},checkDataType:n,checkDataTypes:function(e,t,r){if(1===e.length)return n(e[0],t,r,!0);var o="",a=i(e);for(var s in a.array&&a.object&&(o=a.null?"(":"(!"+t+" || ",o+="typeof "+t+' !== "object")',delete a.null,delete a.array,delete a.object),a.number&&delete a.integer,a)o+=(o?" && ":"")+n(s,t,r,!0);return o},coerceToTypes:function(e,t){if(Array.isArray(t)){for(var r=[],n=0;n<t.length;n++){var i=t[n];(o[i]||"array"===e&&"array"===i)&&(r[r.length]=i)}if(r.length)return r}else{if(o[t])return[t];if("array"===e&&"array"===t)return["array"]}},toHash:i,getProperty:c,escapeQuotes:u,equal:r(5490),ucs2length:r(1554),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:l,getPathExpr:function(e,t,r,n){return p(e,r?"'/' + "+t+(n?"":".replace(/~/g, '~0').replace(/\\//g, '~1')"):n?"'[' + "+t+" + ']'":"'[\\'' + "+t+" + '\\']'")},getPath:function(e,t,r){var n=l(r?"/"+d(t):c(t));return p(e,n)},getData:function(e,t,r){var n,o,i,a;if(""===e)return"rootData";if("/"==e[0]){if(!f.test(e))throw new Error("Invalid JSON-pointer: "+e);o=e,i="rootData"}else{if(!(a=e.match(h)))throw new Error("Invalid JSON-pointer: "+e);if(n=+a[1],"#"==(o=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(i="data"+(t-n||""),!o)return i}for(var s=i,u=o.split("/"),l=0;l<u.length;l++){var p=u[l];p&&(s+=" && "+(i+=c(m(p))))}return s},unescapeFragment:function(e){return m(decodeURIComponent(e))},unescapeJsonPointer:m,escapeFragment:function(e){return encodeURIComponent(d(e))},escapeJsonPointer:d};var o=i(["string","number","integer","boolean","null"]);function i(e){for(var t={},r=0;r<e.length;r++)t[e[r]]=!0;return t}var a=/^[a-z$_][a-z$_0-9]*$/i,s=/'|\\/g;function c(e){return"number"==typeof e?"["+e+"]":a.test(e)?"."+e:"['"+u(e)+"']"}function u(e){return e.replace(s,"\\$&").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\f/g,"\\f").replace(/\t/g,"\\t")}function l(e){return"'"+u(e)+"'"}var f=/^\/(?:[^~]|~0|~1)*$/,h=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function p(e,t){return'""'==e?t:(e+" + "+t).replace(/([^\\])' \+ '/g,"$1")}function d(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function m(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}},3158:e=>{"use strict";var t=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","enum","format","const"];e.exports=function(e,r){for(var n=0;n<r.length;n++){e=JSON.parse(JSON.stringify(e));var o,i=r[n].split("/"),a=e;for(o=1;o<i.length;o++)a=a[i[o]];for(o=0;o<t.length;o++){var s=t[o],c=a[s];c&&(a[s]={anyOf:[c,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]})}}return e}},1448:(e,t,r)=>{"use strict";var n=r(4502);e.exports={$id:"https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js",definitions:{simpleTypes:n.definitions.simpleTypes},type:"object",dependencies:{schema:["validate"],$data:["validate"],statements:["inline"],valid:{not:{required:["macro"]}}},properties:{type:n.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"}]}}}},6457:e=>{"use strict";e.exports=function(e,t,r){var n,o=" ",i=e.level,a=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,f="data"+(a||""),h=e.opts.$data&&s&&s.$data;h?(o+=" var schema"+i+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",n="schema"+i):n=s;var p="maximum"==t,d=p?"exclusiveMaximum":"exclusiveMinimum",m=e.schema[d],v=e.opts.$data&&m&&m.$data,g=p?"<":">",y=p?">":"<",b=void 0;if(!h&&"number"!=typeof s&&void 0!==s)throw new Error(t+" must be number");if(!v&&void 0!==m&&"number"!=typeof m&&"boolean"!=typeof m)throw new Error(d+" must be number or boolean");if(v){var w=e.util.getData(m.$data,a,e.dataPathArr),x="exclusive"+i,E="exclType"+i,k="exclIsNumber"+i,S="' + "+(A="op"+i)+" + '";o+=" var schemaExcl"+i+" = "+w+"; ",o+=" var "+x+"; var "+E+" = typeof "+(w="schemaExcl"+i)+"; if ("+E+" != 'boolean' && "+E+" != 'undefined' && "+E+" != 'number') { ";var D;b=d;(D=D||[]).push(o),o="",!1!==e.createErrors?(o+=" { keyword: '"+(b||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , 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: "+f+" "),o+=" } "):o+=" {} ";var P=o;o=D.pop(),!e.compositeRule&&l?e.async?o+=" throw new ValidationError(["+P+"]); ":o+=" validate.errors = ["+P+"]; return false; ":o+=" var err = "+P+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+=" } else if ( ",h&&(o+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),o+=" "+E+" == 'number' ? ( ("+x+" = "+n+" === undefined || "+w+" "+g+"= "+n+") ? "+f+" "+y+"= "+w+" : "+f+" "+y+" "+n+" ) : ( ("+x+" = "+w+" === true) ? "+f+" "+y+"= "+n+" : "+f+" "+y+" "+n+" ) || "+f+" !== "+f+") { var op"+i+" = "+x+" ? '"+g+"' : '"+g+"='; ",void 0===s&&(b=d,u=e.errSchemaPath+"/"+d,n=w,h=v)}else{S=g;if((k="number"==typeof m)&&h){var A="'"+S+"'";o+=" if ( ",h&&(o+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),o+=" ( "+n+" === undefined || "+m+" "+g+"= "+n+" ? "+f+" "+y+"= "+m+" : "+f+" "+y+" "+n+" ) || "+f+" !== "+f+") { "}else{k&&void 0===s?(x=!0,b=d,u=e.errSchemaPath+"/"+d,n=m,y+="="):(k&&(n=Math[p?"min":"max"](m,s)),m===(!k||n)?(x=!0,b=d,u=e.errSchemaPath+"/"+d,y+="="):(x=!1,S+="="));A="'"+S+"'";o+=" if ( ",h&&(o+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),o+=" "+f+" "+y+" "+n+" || "+f+" !== "+f+") { "}}b=b||t,(D=D||[]).push(o),o="",!1!==e.createErrors?(o+=" { keyword: '"+(b||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { comparison: "+A+", limit: "+n+", exclusive: "+x+" } ",!1!==e.opts.messages&&(o+=" , message: 'should be "+S+" ",o+=h?"' + "+n:n+"'"),e.opts.verbose&&(o+=" , schema: ",o+=h?"validate.schema"+c:""+s,o+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),o+=" } "):o+=" {} ";P=o;return o=D.pop(),!e.compositeRule&&l?e.async?o+=" throw new ValidationError(["+P+"]); ":o+=" validate.errors = ["+P+"]; return false; ":o+=" var err = "+P+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+=" } ",l&&(o+=" else { "),o}},496:e=>{"use strict";e.exports=function(e,t,r){var n,o=" ",i=e.level,a=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,f="data"+(a||""),h=e.opts.$data&&s&&s.$data;if(h?(o+=" var schema"+i+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",n="schema"+i):n=s,!h&&"number"!=typeof s)throw new Error(t+" must be number");o+="if ( ",h&&(o+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),o+=" "+f+".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(u)+" , params: { limit: "+n+" } ",!1!==e.opts.messages&&(o+=" , message: 'should NOT have ",o+="maxItems"==t?"more":"fewer",o+=" than ",o+=h?"' + "+n+" + '":""+s,o+=" items' "),e.opts.verbose&&(o+=" , schema: ",o+=h?"validate.schema"+c:""+s,o+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),o+=" } "):o+=" {} ";var m=o;return o=d.pop(),!e.compositeRule&&l?e.async?o+=" throw new ValidationError(["+m+"]); ":o+=" validate.errors = ["+m+"]; return false; ":o+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+="} ",l&&(o+=" else { "),o}},4080:e=>{"use strict";e.exports=function(e,t,r){var n,o=" ",i=e.level,a=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,f="data"+(a||""),h=e.opts.$data&&s&&s.$data;if(h?(o+=" var schema"+i+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",n="schema"+i):n=s,!h&&"number"!=typeof s)throw new Error(t+" must be number");var p="maxLength"==t?">":"<";o+="if ( ",h&&(o+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),!1===e.opts.unicode?o+=" "+f+".length ":o+=" ucs2length("+f+") ",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(u)+" , params: { limit: "+n+" } ",!1!==e.opts.messages&&(o+=" , message: 'should NOT be ",o+="maxLength"==t?"longer":"shorter",o+=" than ",o+=h?"' + "+n+" + '":""+s,o+=" characters' "),e.opts.verbose&&(o+=" , schema: ",o+=h?"validate.schema"+c:""+s,o+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),o+=" } "):o+=" {} ";var v=o;return o=m.pop(),!e.compositeRule&&l?e.async?o+=" throw new ValidationError(["+v+"]); ":o+=" validate.errors = ["+v+"]; return false; ":o+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+="} ",l&&(o+=" else { "),o}},5169:e=>{"use strict";e.exports=function(e,t,r){var n,o=" ",i=e.level,a=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,f="data"+(a||""),h=e.opts.$data&&s&&s.$data;if(h?(o+=" var schema"+i+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",n="schema"+i):n=s,!h&&"number"!=typeof s)throw new Error(t+" must be number");o+="if ( ",h&&(o+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),o+=" Object.keys("+f+").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(u)+" , params: { limit: "+n+" } ",!1!==e.opts.messages&&(o+=" , message: 'should NOT have ",o+="maxProperties"==t?"more":"fewer",o+=" than ",o+=h?"' + "+n+" + '":""+s,o+=" properties' "),e.opts.verbose&&(o+=" , schema: ",o+=h?"validate.schema"+c:""+s,o+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),o+=" } "):o+=" {} ";var m=o;return o=d.pop(),!e.compositeRule&&l?e.async?o+=" throw new ValidationError(["+m+"]); ":o+=" validate.errors = ["+m+"]; return false; ":o+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+="} ",l&&(o+=" else { "),o}},1251:e=>{"use strict";e.exports=function(e,t,r){var n=" ",o=e.schema[t],i=e.schemaPath+e.util.getProperty(t),a=e.errSchemaPath+"/"+t,s=!e.opts.allErrors,c=e.util.copy(e),u="";c.level++;var l="valid"+c.level,f=c.baseId,h=!0,p=o;if(p)for(var d,m=-1,v=p.length-1;m<v;)d=p[m+=1],(e.opts.strictKeywords?"object"==typeof d&&Object.keys(d).length>0||!1===d:e.util.schemaHasRules(d,e.RULES.all))&&(h=!1,c.schema=d,c.schemaPath=i+"["+m+"]",c.errSchemaPath=a+"/"+m,n+=" "+e.validate(c)+" ",c.baseId=f,s&&(n+=" if ("+l+") { ",u+="}"));return s&&(n+=h?" if (true) { ":" "+u.slice(0,-1)+" "),n}},4648:e=>{"use strict";e.exports=function(e,t,r){var n=" ",o=e.level,i=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(i||""),f="valid"+o,h="errs__"+o,p=e.util.copy(e),d="";p.level++;var m="valid"+p.level,v=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(v){var g=p.baseId;n+=" var "+h+" = errors; var "+f+" = false; ";var y=e.compositeRule;e.compositeRule=p.compositeRule=!0;var b=a;if(b)for(var w,x=-1,E=b.length-1;x<E;)w=b[x+=1],p.schema=w,p.schemaPath=s+"["+x+"]",p.errSchemaPath=c+"/"+x,n+=" "+e.validate(p)+" ",p.baseId=g,n+=" "+f+" = "+f+" || "+m+"; if (!"+f+") { ",d+="}";e.compositeRule=p.compositeRule=y,n+=" "+d+" if (!"+f+") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'anyOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'should match some schema in anyOf' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&u&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),n+=" } else { errors = "+h+"; if (vErrors !== null) { if ("+h+") vErrors.length = "+h+"; else vErrors = null; } ",e.opts.allErrors&&(n+=" } ")}else u&&(n+=" if (true) { ");return n}},7890:e=>{"use strict";e.exports=function(e,t,r){var n=" ",o=e.schema[t],i=e.errSchemaPath+"/"+t,a=(e.opts.allErrors,e.util.toQuotedString(o));return!0===e.opts.$comment?n+=" console.log("+a+");":"function"==typeof e.opts.$comment&&(n+=" self._opts.$comment("+a+", "+e.util.toQuotedString(i)+", validate.root.schema);"),n}},2508:e=>{"use strict";e.exports=function(e,t,r){var n=" ",o=e.level,i=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(i||""),f="valid"+o,h=e.opts.$data&&a&&a.$data;h&&(n+=" var schema"+o+" = "+e.util.getData(a.$data,i,e.dataPathArr)+"; "),h||(n+=" var schema"+o+" = validate.schema"+s+";"),n+="var "+f+" = equal("+l+", schema"+o+"); if (!"+f+") { ";var p=p||[];p.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'const' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { allowedValue: schema"+o+" } ",!1!==e.opts.messages&&(n+=" , message: 'should be equal to constant' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var d=n;return n=p.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+d+"]); ":n+=" validate.errors = ["+d+"]; return false; ":n+=" var err = "+d+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" }",u&&(n+=" else { "),n}},1269:e=>{"use strict";e.exports=function(e,t,r){var n=" ",o=e.level,i=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(i||""),f="valid"+o,h="errs__"+o,p=e.util.copy(e);p.level++;var d="valid"+p.level,m="i"+o,v=p.dataLevel=e.dataLevel+1,g="data"+v,y=e.baseId,b=e.opts.strictKeywords?"object"==typeof a&&Object.keys(a).length>0||!1===a:e.util.schemaHasRules(a,e.RULES.all);if(n+="var "+h+" = errors;var "+f+";",b){var w=e.compositeRule;e.compositeRule=p.compositeRule=!0,p.schema=a,p.schemaPath=s,p.errSchemaPath=c,n+=" var "+d+" = false; for (var "+m+" = 0; "+m+" < "+l+".length; "+m+"++) { ",p.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers,!0);var x=l+"["+m+"]";p.dataPathArr[v]=m;var E=e.validate(p);p.baseId=y,e.util.varOccurences(E,g)<2?n+=" "+e.util.varReplace(E,g,x)+" ":n+=" var "+g+" = "+x+"; "+E+" ",n+=" if ("+d+") break; } ",e.compositeRule=p.compositeRule=w,n+=" if (!"+d+") {"}else n+=" if ("+l+".length == 0) {";var k=k||[];k.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'contains' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'should contain a valid item' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var S=n;return n=k.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+S+"]); ":n+=" validate.errors = ["+S+"]; return false; ":n+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { ",b&&(n+=" errors = "+h+"; if (vErrors !== null) { if ("+h+") vErrors.length = "+h+"; else vErrors = null; } "),e.opts.allErrors&&(n+=" } "),n}},3800:e=>{"use strict";e.exports=function(e,t,r){var n,o,i=" ",a=e.level,s=e.dataLevel,c=e.schema[t],u=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,f=!e.opts.allErrors,h="data"+(s||""),p="valid"+a,d="errs__"+a,m=e.opts.$data&&c&&c.$data;m?(i+=" var schema"+a+" = "+e.util.getData(c.$data,s,e.dataPathArr)+"; ",o="schema"+a):o=c;var v,g,y,b,w,x=this,E="definition"+a,k=x.definition,S="";if(m&&k.$data){w="keywordValidate"+a;var D=k.validateSchema;i+=" var "+E+" = RULES.custom['"+t+"'].definition; var "+w+" = "+E+".validate;"}else{if(!(b=e.useCustomRule(x,c,e.schema,e)))return;o="validate.schema"+u,w=b.code,v=k.compile,g=k.inline,y=k.macro}var P=w+".errors",A="i"+a,C="ruleErr"+a,O=k.async;if(O&&!e.async)throw new Error("async keyword in sync schema");if(g||y||(i+=P+" = null;"),i+="var "+d+" = errors;var "+p+";",m&&k.$data&&(S+="}",i+=" if ("+o+" === undefined) { "+p+" = true; } else { ",D&&(S+="}",i+=" "+p+" = "+E+".validateSchema("+o+"); if ("+p+") { ")),g)k.statements?i+=" "+b.validate+" ":i+=" "+p+" = "+b.validate+"; ";else if(y){var F=e.util.copy(e);S="";F.level++;var j="valid"+F.level;F.schema=b.validate,F.schemaPath="";var T=e.compositeRule;e.compositeRule=F.compositeRule=!0;var _=e.validate(F).replace(/validate\.schema/g,w);e.compositeRule=F.compositeRule=T,i+=" "+_}else{(B=B||[]).push(i),i="",i+=" "+w+".call( ",e.opts.passContext?i+="this":i+="self",v||!1===k.schema?i+=" , "+h+" ":i+=" , "+o+" , "+h+" , validate.schema"+e.schemaPath+" ",i+=" , (dataPath || '')",'""'!=e.errorPath&&(i+=" + "+e.errorPath);var R=s?"data"+(s-1||""):"parentData",I=s?e.dataPathArr[s]:"parentDataProperty",L=i+=" , "+R+" , "+I+" , rootData ) ";i=B.pop(),!1===k.errors?(i+=" "+p+" = ",O&&(i+="await "),i+=L+"; "):i+=O?" var "+(P="customErrors"+a)+" = null; try { "+p+" = await "+L+"; } catch (e) { "+p+" = false; if (e instanceof ValidationError) "+P+" = e.errors; else throw e; } ":" "+P+" = null; "+p+" = "+L+"; "}if(k.modifying&&(i+=" if ("+R+") "+h+" = "+R+"["+I+"];"),i+=""+S,k.valid)f&&(i+=" if (true) { ");else{var B;i+=" if ( ",void 0===k.valid?(i+=" !",i+=y?""+j:""+p):i+=" "+!k.valid+" ",i+=") { ",n=x.keyword,(B=B||[]).push(i),i="",(B=B||[]).push(i),i="",!1!==e.createErrors?(i+=" { keyword: '"+(n||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { keyword: '"+x.keyword+"' } ",!1!==e.opts.messages&&(i+=" , message: 'should pass \""+x.keyword+"\" keyword validation' "),e.opts.verbose&&(i+=" , schema: validate.schema"+u+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),i+=" } "):i+=" {} ";var M=i;i=B.pop(),!e.compositeRule&&f?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++; ";var N=i;i=B.pop(),g?k.errors?"full"!=k.errors&&(i+=" for (var "+A+"="+d+"; "+A+"<errors; "+A+"++) { var "+C+" = vErrors["+A+"]; if ("+C+".dataPath === undefined) "+C+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+C+".schemaPath === undefined) { "+C+'.schemaPath = "'+l+'"; } ',e.opts.verbose&&(i+=" "+C+".schema = "+o+"; "+C+".data = "+h+"; "),i+=" } "):!1===k.errors?i+=" "+N+" ":(i+=" if ("+d+" == errors) { "+N+" } else { for (var "+A+"="+d+"; "+A+"<errors; "+A+"++) { var "+C+" = vErrors["+A+"]; if ("+C+".dataPath === undefined) "+C+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+C+".schemaPath === undefined) { "+C+'.schemaPath = "'+l+'"; } ',e.opts.verbose&&(i+=" "+C+".schema = "+o+"; "+C+".data = "+h+"; "),i+=" } } "):y?(i+=" var err = ",!1!==e.createErrors?(i+=" { keyword: '"+(n||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { keyword: '"+x.keyword+"' } ",!1!==e.opts.messages&&(i+=" , message: 'should pass \""+x.keyword+"\" keyword validation' "),e.opts.verbose&&(i+=" , schema: validate.schema"+u+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&f&&(e.async?i+=" throw new ValidationError(vErrors); ":i+=" validate.errors = vErrors; return false; ")):!1===k.errors?i+=" "+N+" ":(i+=" if (Array.isArray("+P+")) { if (vErrors === null) vErrors = "+P+"; else vErrors = vErrors.concat("+P+"); errors = vErrors.length; for (var "+A+"="+d+"; "+A+"<errors; "+A+"++) { var "+C+" = vErrors["+A+"]; if ("+C+".dataPath === undefined) "+C+".dataPath = (dataPath || '') + "+e.errorPath+"; "+C+'.schemaPath = "'+l+'"; ',e.opts.verbose&&(i+=" "+C+".schema = "+o+"; "+C+".data = "+h+"; "),i+=" } } else { "+N+" } "),i+=" } ",f&&(i+=" else { ")}return i}},5800:e=>{"use strict";e.exports=function(e,t,r){var n=" ",o=e.level,i=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(i||""),f="errs__"+o,h=e.util.copy(e),p="";h.level++;var d="valid"+h.level,m={},v={},g=e.opts.ownProperties;for(x in a)if("__proto__"!=x){var y=a[x],b=Array.isArray(y)?v:m;b[x]=y}n+="var "+f+" = errors;";var w=e.errorPath;for(var x in n+="var missing"+o+";",v)if((b=v[x]).length){if(n+=" if ( "+l+e.util.getProperty(x)+" !== undefined ",g&&(n+=" && Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(x)+"') "),u){n+=" && ( ";var E=b;if(E)for(var k=-1,S=E.length-1;k<S;){F=E[k+=1],k&&(n+=" || "),n+=" ( ( "+(R=l+(_=e.util.getProperty(F)))+" === undefined ",g&&(n+=" || ! Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(F)+"') "),n+=") && (missing"+o+" = "+e.util.toQuotedString(e.opts.jsonPointers?F:_)+") ) "}n+=")) { ";var D="missing"+o,P="' + "+D+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(w,D,!0):w+" + "+D);var A=A||[];A.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { property: '"+e.util.escapeQuotes(x)+"', missingProperty: '"+P+"', depsCount: "+b.length+", deps: '"+e.util.escapeQuotes(1==b.length?b[0]:b.join(", "))+"' } ",!1!==e.opts.messages&&(n+=" , message: 'should have ",1==b.length?n+="property "+e.util.escapeQuotes(b[0]):n+="properties "+e.util.escapeQuotes(b.join(", ")),n+=" when property "+e.util.escapeQuotes(x)+" is present' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var C=n;n=A.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+C+"]); ":n+=" validate.errors = ["+C+"]; return false; ":n+=" var err = "+C+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else{n+=" ) { ";var O=b;if(O)for(var F,j=-1,T=O.length-1;j<T;){F=O[j+=1];var _=e.util.getProperty(F),R=(P=e.util.escapeQuotes(F),l+_);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(w,F,e.opts.jsonPointers)),n+=" if ( "+R+" === undefined ",g&&(n+=" || ! Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(F)+"') "),n+=") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { property: '"+e.util.escapeQuotes(x)+"', missingProperty: '"+P+"', depsCount: "+b.length+", deps: '"+e.util.escapeQuotes(1==b.length?b[0]:b.join(", "))+"' } ",!1!==e.opts.messages&&(n+=" , message: 'should have ",1==b.length?n+="property "+e.util.escapeQuotes(b[0]):n+="properties "+e.util.escapeQuotes(b.join(", ")),n+=" when property "+e.util.escapeQuotes(x)+" is present' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}n+=" } ",u&&(p+="}",n+=" else { ")}e.errorPath=w;var I=h.baseId;for(var x in m){y=m[x];(e.opts.strictKeywords?"object"==typeof y&&Object.keys(y).length>0||!1===y:e.util.schemaHasRules(y,e.RULES.all))&&(n+=" "+d+" = true; if ( "+l+e.util.getProperty(x)+" !== undefined ",g&&(n+=" && Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(x)+"') "),n+=") { ",h.schema=y,h.schemaPath=s+e.util.getProperty(x),h.errSchemaPath=c+"/"+e.util.escapeFragment(x),n+=" "+e.validate(h)+" ",h.baseId=I,n+=" } ",u&&(n+=" if ("+d+") { ",p+="}"))}return u&&(n+=" "+p+" if ("+f+" == errors) {"),n}},5813:e=>{"use strict";e.exports=function(e,t,r){var n=" ",o=e.level,i=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(i||""),f="valid"+o,h=e.opts.$data&&a&&a.$data;h&&(n+=" var schema"+o+" = "+e.util.getData(a.$data,i,e.dataPathArr)+"; ");var p="i"+o,d="schema"+o;h||(n+=" var "+d+" = validate.schema"+s+";"),n+="var "+f+";",h&&(n+=" if (schema"+o+" === undefined) "+f+" = true; else if (!Array.isArray(schema"+o+")) "+f+" = false; else {"),n+=f+" = false;for (var "+p+"=0; "+p+"<"+d+".length; "+p+"++) if (equal("+l+", "+d+"["+p+"])) { "+f+" = true; break; }",h&&(n+=" } "),n+=" if (!"+f+") { ";var m=m||[];m.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'enum' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { allowedValues: schema"+o+" } ",!1!==e.opts.messages&&(n+=" , message: 'should be equal to one of the allowed values' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var v=n;return n=m.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+v+"]); ":n+=" validate.errors = ["+v+"]; return false; ":n+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" }",u&&(n+=" else { "),n}},5341:e=>{"use strict";e.exports=function(e,t,r){var n=" ",o=e.level,i=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(i||"");if(!1===e.opts.format)return u&&(n+=" if (true) { "),n;var f,h=e.opts.$data&&a&&a.$data;h?(n+=" var schema"+o+" = "+e.util.getData(a.$data,i,e.dataPathArr)+"; ",f="schema"+o):f=a;var p=e.opts.unknownFormats,d=Array.isArray(p);if(h){n+=" var "+(m="format"+o)+" = formats["+f+"]; var "+(v="isObject"+o)+" = typeof "+m+" == 'object' && !("+m+" instanceof RegExp) && "+m+".validate; var "+(g="formatType"+o)+" = "+v+" && "+m+".type || 'string'; if ("+v+") { ",e.async&&(n+=" var async"+o+" = "+m+".async; "),n+=" "+m+" = "+m+".validate; } if ( ",h&&(n+=" ("+f+" !== undefined && typeof "+f+" != 'string') || "),n+=" (","ignore"!=p&&(n+=" ("+f+" && !"+m+" ",d&&(n+=" && self._opts.unknownFormats.indexOf("+f+") == -1 "),n+=") || "),n+=" ("+m+" && "+g+" == '"+r+"' && !(typeof "+m+" == 'function' ? ",e.async?n+=" (async"+o+" ? await "+m+"("+l+") : "+m+"("+l+")) ":n+=" "+m+"("+l+") ",n+=" : "+m+".test("+l+"))))) {"}else{var m;if(!(m=e.formats[a])){if("ignore"==p)return e.logger.warn('unknown format "'+a+'" ignored in schema at path "'+e.errSchemaPath+'"'),u&&(n+=" if (true) { "),n;if(d&&p.indexOf(a)>=0)return u&&(n+=" if (true) { "),n;throw new Error('unknown format "'+a+'" is used in schema at path "'+e.errSchemaPath+'"')}var v,g=(v="object"==typeof m&&!(m instanceof RegExp)&&m.validate)&&m.type||"string";if(v){var y=!0===m.async;m=m.validate}if(g!=r)return u&&(n+=" if (true) { "),n;if(y){if(!e.async)throw new Error("async format in sync schema");n+=" if (!(await "+(b="formats"+e.util.getProperty(a)+".validate")+"("+l+"))) { "}else{n+=" if (! ";var b="formats"+e.util.getProperty(a);v&&(b+=".validate"),n+="function"==typeof m?" "+b+"("+l+") ":" "+b+".test("+l+") ",n+=") { "}}var w=w||[];w.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'format' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { format: ",n+=h?""+f:""+e.util.toQuotedString(a),n+=" } ",!1!==e.opts.messages&&(n+=" , message: 'should match format \"",n+=h?"' + "+f+" + '":""+e.util.escapeQuotes(a),n+="\"' "),e.opts.verbose&&(n+=" , schema: ",n+=h?"validate.schema"+s:""+e.util.toQuotedString(a),n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var x=n;return n=w.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+x+"]); ":n+=" validate.errors = ["+x+"]; return false; ":n+=" var err = "+x+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } ",u&&(n+=" else { "),n}},8739:e=>{"use strict";e.exports=function(e,t,r){var n=" ",o=e.level,i=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(i||""),f="valid"+o,h="errs__"+o,p=e.util.copy(e);p.level++;var d="valid"+p.level,m=e.schema.then,v=e.schema.else,g=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!==v&&(e.opts.strictKeywords?"object"==typeof v&&Object.keys(v).length>0||!1===v:e.util.schemaHasRules(v,e.RULES.all)),b=p.baseId;if(g||y){var w;p.createErrors=!1,p.schema=a,p.schemaPath=s,p.errSchemaPath=c,n+=" var "+h+" = errors; var "+f+" = true; ";var x=e.compositeRule;e.compositeRule=p.compositeRule=!0,n+=" "+e.validate(p)+" ",p.baseId=b,p.createErrors=!0,n+=" errors = "+h+"; if (vErrors !== null) { if ("+h+") vErrors.length = "+h+"; else vErrors = null; } ",e.compositeRule=p.compositeRule=x,g?(n+=" if ("+d+") { ",p.schema=e.schema.then,p.schemaPath=e.schemaPath+".then",p.errSchemaPath=e.errSchemaPath+"/then",n+=" "+e.validate(p)+" ",p.baseId=b,n+=" "+f+" = "+d+"; ",g&&y?n+=" var "+(w="ifClause"+o)+" = 'then'; ":w="'then'",n+=" } ",y&&(n+=" else { ")):n+=" if (!"+d+") { ",y&&(p.schema=e.schema.else,p.schemaPath=e.schemaPath+".else",p.errSchemaPath=e.errSchemaPath+"/else",n+=" "+e.validate(p)+" ",p.baseId=b,n+=" "+f+" = "+d+"; ",g&&y?n+=" var "+(w="ifClause"+o)+" = 'else'; ":w="'else'",n+=" } "),n+=" if (!"+f+") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'if' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { failingKeyword: "+w+" } ",!1!==e.opts.messages&&(n+=" , message: 'should match \"' + "+w+" + '\" schema' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&u&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),n+=" } ",u&&(n+=" else { ")}else u&&(n+=" if (true) { ");return n}},112:(e,t,r)=>{"use strict";e.exports={$ref:r(5925),allOf:r(1251),anyOf:r(4648),$comment:r(7890),const:r(2508),contains:r(1269),dependencies:r(5800),enum:r(5813),format:r(5341),if:r(8739),items:r(1973),maximum:r(6457),minimum:r(6457),maxItems:r(496),minItems:r(496),maxLength:r(4080),minLength:r(4080),maxProperties:r(5169),minProperties:r(5169),multipleOf:r(7124),not:r(3755),oneOf:r(6665),pattern:r(9913),properties:r(9446),propertyNames:r(8658),required:r(9501),uniqueItems:r(9383),validate:r(3833)}},1973:e=>{"use strict";e.exports=function(e,t,r){var n=" ",o=e.level,i=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(i||""),f="valid"+o,h="errs__"+o,p=e.util.copy(e),d="";p.level++;var m="valid"+p.level,v="i"+o,g=p.dataLevel=e.dataLevel+1,y="data"+g,b=e.baseId;if(n+="var "+h+" = errors;var "+f+";",Array.isArray(a)){var w=e.schema.additionalItems;if(!1===w){n+=" "+f+" = "+l+".length <= "+a.length+"; ";var x=c;c=e.errSchemaPath+"/additionalItems",n+=" if (!"+f+") { ";var E=E||[];E.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'additionalItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { limit: "+a.length+" } ",!1!==e.opts.messages&&(n+=" , message: 'should NOT have more than "+a.length+" items' "),e.opts.verbose&&(n+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var k=n;n=E.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+k+"]); ":n+=" validate.errors = ["+k+"]; return false; ":n+=" var err = "+k+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } ",c=x,u&&(d+="}",n+=" else { ")}var S=a;if(S)for(var D,P=-1,A=S.length-1;P<A;)if(D=S[P+=1],e.opts.strictKeywords?"object"==typeof D&&Object.keys(D).length>0||!1===D:e.util.schemaHasRules(D,e.RULES.all)){n+=" "+m+" = true; if ("+l+".length > "+P+") { ";var C=l+"["+P+"]";p.schema=D,p.schemaPath=s+"["+P+"]",p.errSchemaPath=c+"/"+P,p.errorPath=e.util.getPathExpr(e.errorPath,P,e.opts.jsonPointers,!0),p.dataPathArr[g]=P;var O=e.validate(p);p.baseId=b,e.util.varOccurences(O,y)<2?n+=" "+e.util.varReplace(O,y,C)+" ":n+=" var "+y+" = "+C+"; "+O+" ",n+=" } ",u&&(n+=" if ("+m+") { ",d+="}")}if("object"==typeof w&&(e.opts.strictKeywords?"object"==typeof w&&Object.keys(w).length>0||!1===w:e.util.schemaHasRules(w,e.RULES.all))){p.schema=w,p.schemaPath=e.schemaPath+".additionalItems",p.errSchemaPath=e.errSchemaPath+"/additionalItems",n+=" "+m+" = true; if ("+l+".length > "+a.length+") { for (var "+v+" = "+a.length+"; "+v+" < "+l+".length; "+v+"++) { ",p.errorPath=e.util.getPathExpr(e.errorPath,v,e.opts.jsonPointers,!0);C=l+"["+v+"]";p.dataPathArr[g]=v;O=e.validate(p);p.baseId=b,e.util.varOccurences(O,y)<2?n+=" "+e.util.varReplace(O,y,C)+" ":n+=" var "+y+" = "+C+"; "+O+" ",u&&(n+=" if (!"+m+") break; "),n+=" } } ",u&&(n+=" if ("+m+") { ",d+="}")}}else if(e.opts.strictKeywords?"object"==typeof a&&Object.keys(a).length>0||!1===a:e.util.schemaHasRules(a,e.RULES.all)){p.schema=a,p.schemaPath=s,p.errSchemaPath=c,n+=" for (var "+v+" = 0; "+v+" < "+l+".length; "+v+"++) { ",p.errorPath=e.util.getPathExpr(e.errorPath,v,e.opts.jsonPointers,!0);C=l+"["+v+"]";p.dataPathArr[g]=v;O=e.validate(p);p.baseId=b,e.util.varOccurences(O,y)<2?n+=" "+e.util.varReplace(O,y,C)+" ":n+=" var "+y+" = "+C+"; "+O+" ",u&&(n+=" if (!"+m+") break; "),n+=" }"}return u&&(n+=" "+d+" if ("+h+" == errors) {"),n}},7124:e=>{"use strict";e.exports=function(e,t,r){var n,o=" ",i=e.level,a=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,f="data"+(a||""),h=e.opts.$data&&s&&s.$data;if(h?(o+=" var schema"+i+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",n="schema"+i):n=s,!h&&"number"!=typeof s)throw new Error(t+" must be number");o+="var division"+i+";if (",h&&(o+=" "+n+" !== undefined && ( typeof "+n+" != 'number' || "),o+=" (division"+i+" = "+f+" / "+n+", ",e.opts.multipleOfPrecision?o+=" Math.abs(Math.round(division"+i+") - division"+i+") > 1e-"+e.opts.multipleOfPrecision+" ":o+=" division"+i+" !== parseInt(division"+i+") ",o+=" ) ",h&&(o+=" ) "),o+=" ) { ";var p=p||[];p.push(o),o="",!1!==e.createErrors?(o+=" { keyword: 'multipleOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { multipleOf: "+n+" } ",!1!==e.opts.messages&&(o+=" , message: 'should be multiple of ",o+=h?"' + "+n:n+"'"),e.opts.verbose&&(o+=" , schema: ",o+=h?"validate.schema"+c:""+s,o+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),o+=" } "):o+=" {} ";var d=o;return o=p.pop(),!e.compositeRule&&l?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+="} ",l&&(o+=" else { "),o}},3755:e=>{"use strict";e.exports=function(e,t,r){var n=" ",o=e.level,i=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(i||""),f="errs__"+o,h=e.util.copy(e);h.level++;var p="valid"+h.level;if(e.opts.strictKeywords?"object"==typeof a&&Object.keys(a).length>0||!1===a:e.util.schemaHasRules(a,e.RULES.all)){h.schema=a,h.schemaPath=s,h.errSchemaPath=c,n+=" var "+f+" = errors; ";var d,m=e.compositeRule;e.compositeRule=h.compositeRule=!0,h.createErrors=!1,h.opts.allErrors&&(d=h.opts.allErrors,h.opts.allErrors=!1),n+=" "+e.validate(h)+" ",h.createErrors=!0,d&&(h.opts.allErrors=d),e.compositeRule=h.compositeRule=m,n+=" if ("+p+") { ";var v=v||[];v.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'should NOT be valid' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var g=n;n=v.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+g+"]); ":n+=" validate.errors = ["+g+"]; return false; ":n+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { errors = "+f+"; if (vErrors !== null) { if ("+f+") vErrors.length = "+f+"; else vErrors = null; } ",e.opts.allErrors&&(n+=" } ")}else n+=" var err = ",!1!==e.createErrors?(n+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'should NOT be valid' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",u&&(n+=" if (false) { ");return n}},6665:e=>{"use strict";e.exports=function(e,t,r){var n=" ",o=e.level,i=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(i||""),f="valid"+o,h="errs__"+o,p=e.util.copy(e),d="";p.level++;var m="valid"+p.level,v=p.baseId,g="prevValid"+o,y="passingSchemas"+o;n+="var "+h+" = errors , "+g+" = false , "+f+" = false , "+y+" = null; ";var b=e.compositeRule;e.compositeRule=p.compositeRule=!0;var w=a;if(w)for(var x,E=-1,k=w.length-1;E<k;)x=w[E+=1],(e.opts.strictKeywords?"object"==typeof x&&Object.keys(x).length>0||!1===x:e.util.schemaHasRules(x,e.RULES.all))?(p.schema=x,p.schemaPath=s+"["+E+"]",p.errSchemaPath=c+"/"+E,n+=" "+e.validate(p)+" ",p.baseId=v):n+=" var "+m+" = true; ",E&&(n+=" if ("+m+" && "+g+") { "+f+" = false; "+y+" = ["+y+", "+E+"]; } else { ",d+="}"),n+=" if ("+m+") { "+f+" = "+g+" = true; "+y+" = "+E+"; }";return e.compositeRule=p.compositeRule=b,n+=d+"if (!"+f+") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'oneOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { passingSchemas: "+y+" } ",!1!==e.opts.messages&&(n+=" , message: 'should match exactly one schema in oneOf' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&u&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),n+="} else { errors = "+h+"; if (vErrors !== null) { if ("+h+") vErrors.length = "+h+"; else vErrors = null; }",e.opts.allErrors&&(n+=" } "),n}},9913:e=>{"use strict";e.exports=function(e,t,r){var n,o=" ",i=e.level,a=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,f="data"+(a||""),h=e.opts.$data&&s&&s.$data;h?(o+=" var schema"+i+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",n="schema"+i):n=s,o+="if ( ",h&&(o+=" ("+n+" !== undefined && typeof "+n+" != 'string') || "),o+=" !"+(h?"(new RegExp("+n+"))":e.usePattern(s))+".test("+f+") ) { ";var p=p||[];p.push(o),o="",!1!==e.createErrors?(o+=" { keyword: 'pattern' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { pattern: ",o+=h?""+n:""+e.util.toQuotedString(s),o+=" } ",!1!==e.opts.messages&&(o+=" , message: 'should match pattern \"",o+=h?"' + "+n+" + '":""+e.util.escapeQuotes(s),o+="\"' "),e.opts.verbose&&(o+=" , schema: ",o+=h?"validate.schema"+c:""+e.util.toQuotedString(s),o+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),o+=" } "):o+=" {} ";var d=o;return o=p.pop(),!e.compositeRule&&l?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+="} ",l&&(o+=" else { "),o}},9446:e=>{"use strict";e.exports=function(e,t,r){var n=" ",o=e.level,i=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(i||""),f="errs__"+o,h=e.util.copy(e),p="";h.level++;var d="valid"+h.level,m="key"+o,v="idx"+o,g=h.dataLevel=e.dataLevel+1,y="data"+g,b="dataProperties"+o,w=Object.keys(a||{}).filter(_),x=e.schema.patternProperties||{},E=Object.keys(x).filter(_),k=e.schema.additionalProperties,S=w.length||E.length,D=!1===k,P="object"==typeof k&&Object.keys(k).length,A=e.opts.removeAdditional,C=D||P||A,O=e.opts.ownProperties,F=e.baseId,j=e.schema.required;if(j&&(!e.opts.$data||!j.$data)&&j.length<e.opts.loopRequired)var T=e.util.toHash(j);function _(e){return"__proto__"!==e}if(n+="var "+f+" = errors;var "+d+" = true;",O&&(n+=" var "+b+" = undefined;"),C){if(n+=O?" "+b+" = "+b+" || Object.keys("+l+"); for (var "+v+"=0; "+v+"<"+b+".length; "+v+"++) { var "+m+" = "+b+"["+v+"]; ":" for (var "+m+" in "+l+") { ",S){if(n+=" var isAdditional"+o+" = !(false ",w.length)if(w.length>8)n+=" || validate.schema"+s+".hasOwnProperty("+m+") ";else{var R=w;if(R)for(var I=-1,L=R.length-1;I<L;)Q=R[I+=1],n+=" || "+m+" == "+e.util.toQuotedString(Q)+" "}if(E.length){var B=E;if(B)for(var M=-1,N=B.length-1;M<N;)ie=B[M+=1],n+=" || "+e.usePattern(ie)+".test("+m+") "}n+=" ); if (isAdditional"+o+") { "}if("all"==A)n+=" delete "+l+"["+m+"]; ";else{var H=e.errorPath,z="' + "+m+" + '";if(e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers)),D)if(A)n+=" delete "+l+"["+m+"]; ";else{n+=" "+d+" = false; ";var U=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: '"+z+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is an invalid additional property":n+="should NOT have additional properties",n+="' "),e.opts.verbose&&(n+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var $=n;n=re.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+$+"]); ":n+=" validate.errors = ["+$+"]; return false; ":n+=" var err = "+$+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",c=U,u&&(n+=" break; ")}else if(P)if("failing"==A){n+=" var "+f+" = errors; ";var q=e.compositeRule;e.compositeRule=h.compositeRule=!0,h.schema=k,h.schemaPath=e.schemaPath+".additionalProperties",h.errSchemaPath=e.errSchemaPath+"/additionalProperties",h.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers);var V=l+"["+m+"]";h.dataPathArr[g]=m;var G=e.validate(h);h.baseId=F,e.util.varOccurences(G,y)<2?n+=" "+e.util.varReplace(G,y,V)+" ":n+=" var "+y+" = "+V+"; "+G+" ",n+=" if (!"+d+") { errors = "+f+"; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete "+l+"["+m+"]; } ",e.compositeRule=h.compositeRule=q}else{h.schema=k,h.schemaPath=e.schemaPath+".additionalProperties",h.errSchemaPath=e.errSchemaPath+"/additionalProperties",h.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers);V=l+"["+m+"]";h.dataPathArr[g]=m;G=e.validate(h);h.baseId=F,e.util.varOccurences(G,y)<2?n+=" "+e.util.varReplace(G,y,V)+" ":n+=" var "+y+" = "+V+"; "+G+" ",u&&(n+=" if (!"+d+") break; ")}e.errorPath=H}S&&(n+=" } "),n+=" } ",u&&(n+=" if ("+d+") { ",p+="}")}var W=e.opts.useDefaults&&!e.compositeRule;if(w.length){var K=w;if(K)for(var Q,Z=-1,Y=K.length-1;Z<Y;){var X=a[Q=K[Z+=1]];if(e.opts.strictKeywords?"object"==typeof X&&Object.keys(X).length>0||!1===X:e.util.schemaHasRules(X,e.RULES.all)){var J=e.util.getProperty(Q),ee=(V=l+J,W&&void 0!==X.default);h.schema=X,h.schemaPath=s+J,h.errSchemaPath=c+"/"+e.util.escapeFragment(Q),h.errorPath=e.util.getPath(e.errorPath,Q,e.opts.jsonPointers),h.dataPathArr[g]=e.util.toQuotedString(Q);G=e.validate(h);if(h.baseId=F,e.util.varOccurences(G,y)<2){G=e.util.varReplace(G,y,V);var te=V}else{te=y;n+=" var "+y+" = "+V+"; "}if(ee)n+=" "+G+" ";else{if(T&&T[Q]){n+=" if ( "+te+" === undefined ",O&&(n+=" || ! Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(Q)+"') "),n+=") { "+d+" = false; ";H=e.errorPath,U=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"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";$=n;n=re.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+$+"]); ":n+=" validate.errors = ["+$+"]; return false; ":n+=" var err = "+$+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",c=U,e.errorPath=H,n+=" } else { "}else u?(n+=" if ( "+te+" === undefined ",O&&(n+=" || ! Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(Q)+"') "),n+=") { "+d+" = true; } else { "):(n+=" if ("+te+" !== undefined ",O&&(n+=" && Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(Q)+"') "),n+=" ) { ");n+=" "+G+" } "}}u&&(n+=" if ("+d+") { ",p+="}")}}if(E.length){var oe=E;if(oe)for(var ie,ae=-1,se=oe.length-1;ae<se;){X=x[ie=oe[ae+=1]];if(e.opts.strictKeywords?"object"==typeof X&&Object.keys(X).length>0||!1===X:e.util.schemaHasRules(X,e.RULES.all)){h.schema=X,h.schemaPath=e.schemaPath+".patternProperties"+e.util.getProperty(ie),h.errSchemaPath=e.errSchemaPath+"/patternProperties/"+e.util.escapeFragment(ie),n+=O?" "+b+" = "+b+" || Object.keys("+l+"); for (var "+v+"=0; "+v+"<"+b+".length; "+v+"++) { var "+m+" = "+b+"["+v+"]; ":" for (var "+m+" in "+l+") { ",n+=" if ("+e.usePattern(ie)+".test("+m+")) { ",h.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers);V=l+"["+m+"]";h.dataPathArr[g]=m;G=e.validate(h);h.baseId=F,e.util.varOccurences(G,y)<2?n+=" "+e.util.varReplace(G,y,V)+" ":n+=" var "+y+" = "+V+"; "+G+" ",u&&(n+=" if (!"+d+") break; "),n+=" } ",u&&(n+=" else "+d+" = true; "),n+=" } ",u&&(n+=" if ("+d+") { ",p+="}")}}}return u&&(n+=" "+p+" if ("+f+" == errors) {"),n}},8658:e=>{"use strict";e.exports=function(e,t,r){var n=" ",o=e.level,i=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(i||""),f="errs__"+o,h=e.util.copy(e);h.level++;var p="valid"+h.level;if(n+="var "+f+" = errors;",e.opts.strictKeywords?"object"==typeof a&&Object.keys(a).length>0||!1===a:e.util.schemaHasRules(a,e.RULES.all)){h.schema=a,h.schemaPath=s,h.errSchemaPath=c;var d="key"+o,m="idx"+o,v="i"+o,g="' + "+d+" + '",y="data"+(h.dataLevel=e.dataLevel+1),b="dataProperties"+o,w=e.opts.ownProperties,x=e.baseId;w&&(n+=" var "+b+" = undefined; "),n+=w?" "+b+" = "+b+" || Object.keys("+l+"); for (var "+m+"=0; "+m+"<"+b+".length; "+m+"++) { var "+d+" = "+b+"["+m+"]; ":" for (var "+d+" in "+l+") { ",n+=" var startErrs"+o+" = errors; ";var E=d,k=e.compositeRule;e.compositeRule=h.compositeRule=!0;var S=e.validate(h);h.baseId=x,e.util.varOccurences(S,y)<2?n+=" "+e.util.varReplace(S,y,E)+" ":n+=" var "+y+" = "+E+"; "+S+" ",e.compositeRule=h.compositeRule=k,n+=" if (!"+p+") { for (var "+v+"=startErrs"+o+"; "+v+"<errors; "+v+"++) { vErrors["+v+"].propertyName = "+d+"; } var err = ",!1!==e.createErrors?(n+=" { keyword: 'propertyNames' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { propertyName: '"+g+"' } ",!1!==e.opts.messages&&(n+=" , message: 'property name \\'"+g+"\\' is invalid' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&u&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),u&&(n+=" break; "),n+=" } }"}return u&&(n+=" if ("+f+" == errors) {"),n}},5925:e=>{"use strict";e.exports=function(e,t,r){var n,o,i=" ",a=e.level,s=e.dataLevel,c=e.schema[t],u=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,f="data"+(s||""),h="valid"+a;if("#"==c||"#/"==c)e.isRoot?(n=e.async,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),(y=y||[]).push(i),i="",!1!==e.createErrors?(i+=" { keyword: '$ref' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , 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: "+f+" "),i+=" } "):i+=" {} ";var m=i;i=y.pop(),!e.compositeRule&&l?e.async?i+=" throw new ValidationError(["+m+"]); ":i+=" validate.errors = ["+m+"]; return false; ":i+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",l&&(i+=" if (false) { ")}else{if("ignore"!=e.opts.missingRefs)throw new e.MissingRefError(e.baseId,c,d);e.logger.warn(d),l&&(i+=" if (true) { ")}}else if(p.inline){var v=e.util.copy(e);v.level++;var g="valid"+v.level;v.schema=p.schema,v.schemaPath="",v.errSchemaPath=c,i+=" "+e.validate(v).replace(/validate\.schema/g,p.code)+" ",l&&(i+=" if ("+g+") { ")}else n=!0===p.$async||e.async&&!1!==p.$async,o=p.code}if(o){var y;(y=y||[]).push(i),i="",e.opts.passContext?i+=" "+o+".call(this, ":i+=" "+o+"( ",i+=" "+f+", (dataPath || '')",'""'!=e.errorPath&&(i+=" + "+e.errorPath);var b=i+=" , "+(s?"data"+(s-1||""):"parentData")+" , "+(s?e.dataPathArr[s]:"parentDataProperty")+", rootData) ";if(i=y.pop(),n){if(!e.async)throw new Error("async schema referenced by sync schema");l&&(i+=" var "+h+"; "),i+=" try { await "+b+"; ",l&&(i+=" "+h+" = 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; ",l&&(i+=" "+h+" = false; "),i+=" } ",l&&(i+=" if ("+h+") { ")}else i+=" if (!"+b+") { if (vErrors === null) vErrors = "+o+".errors; else vErrors = vErrors.concat("+o+".errors); errors = vErrors.length; } ",l&&(i+=" else { ")}return i}},9501:e=>{"use strict";e.exports=function(e,t,r){var n=" ",o=e.level,i=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(i||""),f="valid"+o,h=e.opts.$data&&a&&a.$data;h&&(n+=" var schema"+o+" = "+e.util.getData(a.$data,i,e.dataPathArr)+"; ");var p="schema"+o;if(!h)if(a.length<e.opts.loopRequired&&e.schema.properties&&Object.keys(e.schema.properties).length){var d=[],m=a;if(m)for(var v,g=-1,y=m.length-1;g<y;){v=m[g+=1];var b=e.schema.properties[v];b&&(e.opts.strictKeywords?"object"==typeof b&&Object.keys(b).length>0||!1===b:e.util.schemaHasRules(b,e.RULES.all))||(d[d.length]=v)}}else d=a;if(h||d.length){var w=e.errorPath,x=h||d.length>=e.opts.loopRequired,E=e.opts.ownProperties;if(u)if(n+=" var missing"+o+"; ",x){h||(n+=" var "+p+" = validate.schema"+s+"; ");var k="' + "+(O="schema"+o+"["+(P="i"+o)+"]")+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(w,O,e.opts.jsonPointers)),n+=" var "+f+" = true; ",h&&(n+=" if (schema"+o+" === undefined) "+f+" = true; else if (!Array.isArray(schema"+o+")) "+f+" = false; else {"),n+=" for (var "+P+" = 0; "+P+" < "+p+".length; "+P+"++) { "+f+" = "+l+"["+p+"["+P+"]] !== undefined ",E&&(n+=" && Object.prototype.hasOwnProperty.call("+l+", "+p+"["+P+"]) "),n+="; if (!"+f+") break; } ",h&&(n+=" } "),n+=" if (!"+f+") { ",(C=C||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+k+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+k+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var S=n;n=C.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+S+"]); ":n+=" validate.errors = ["+S+"]; return false; ":n+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { "}else{n+=" if ( ";var D=d;if(D)for(var P=-1,A=D.length-1;P<A;){j=D[P+=1],P&&(n+=" || "),n+=" ( ( "+(I=l+(R=e.util.getProperty(j)))+" === undefined ",E&&(n+=" || ! Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(j)+"') "),n+=") && (missing"+o+" = "+e.util.toQuotedString(e.opts.jsonPointers?j:R)+") ) "}n+=") { ";var C;k="' + "+(O="missing"+o)+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(w,O,!0):w+" + "+O),(C=C||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+k+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+k+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";S=n;n=C.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+S+"]); ":n+=" validate.errors = ["+S+"]; return false; ":n+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { "}else if(x){h||(n+=" var "+p+" = validate.schema"+s+"; ");var O;k="' + "+(O="schema"+o+"["+(P="i"+o)+"]")+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(w,O,e.opts.jsonPointers)),h&&(n+=" if ("+p+" && !Array.isArray("+p+")) { var err = ",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+k+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+k+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if ("+p+" !== undefined) { "),n+=" for (var "+P+" = 0; "+P+" < "+p+".length; "+P+"++) { if ("+l+"["+p+"["+P+"]] === undefined ",E&&(n+=" || ! Object.prototype.hasOwnProperty.call("+l+", "+p+"["+P+"]) "),n+=") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+k+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+k+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } ",h&&(n+=" } ")}else{var F=d;if(F)for(var j,T=-1,_=F.length-1;T<_;){j=F[T+=1];var R=e.util.getProperty(j),I=(k=e.util.escapeQuotes(j),l+R);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(w,j,e.opts.jsonPointers)),n+=" if ( "+I+" === undefined ",E&&(n+=" || ! Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(j)+"') "),n+=") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+k+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+k+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}e.errorPath=w}else u&&(n+=" if (true) {");return n}},9383:e=>{"use strict";e.exports=function(e,t,r){var n,o=" ",i=e.level,a=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,f="data"+(a||""),h="valid"+i,p=e.opts.$data&&s&&s.$data;if(p?(o+=" var schema"+i+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",n="schema"+i):n=s,(s||p)&&!1!==e.opts.uniqueItems){p&&(o+=" var "+h+"; if ("+n+" === false || "+n+" === undefined) "+h+" = true; else if (typeof "+n+" != 'boolean') "+h+" = false; else { "),o+=" var i = "+f+".length , "+h+" = true , j; if (i > 1) { ";var d=e.schema.items&&e.schema.items.type,m=Array.isArray(d);if(!d||"object"==d||"array"==d||m&&(d.indexOf("object")>=0||d.indexOf("array")>=0))o+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+f+"[i], "+f+"[j])) { "+h+" = false; break outer; } } } ";else{o+=" var itemIndices = {}, item; for (;i--;) { var item = "+f+"[i]; ";var v="checkDataType"+(m?"s":"");o+=" if ("+e.util[v](d,"item",e.opts.strictNumbers,!0)+") continue; ",m&&(o+=" if (typeof item == 'string') item = '\"' + item; "),o+=" if (typeof itemIndices[item] == 'number') { "+h+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "}o+=" } ",p&&(o+=" } "),o+=" if (!"+h+") { ";var g=g||[];g.push(o),o="",!1!==e.createErrors?(o+=" { keyword: 'uniqueItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , 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:""+s,o+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),o+=" } "):o+=" {} ";var y=o;o=g.pop(),!e.compositeRule&&l?e.async?o+=" throw new ValidationError(["+y+"]); ":o+=" validate.errors = ["+y+"]; return false; ":o+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+=" } ",l&&(o+=" else { ")}else l&&(o+=" if (true) { ");return o}},3833:e=>{"use strict";e.exports=function(e,t,r){var n="",o=!0===e.schema.$async,i=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 = ",o&&(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||!i&&!e.schema.$ref){t="false schema";var u=e.level,l=e.dataLevel,f=e.schema[t],h=e.schemaPath+e.util.getProperty(t),p=e.errSchemaPath+"/"+t,d=!e.opts.allErrors,m="data"+(l||""),v="valid"+u;if(!1===e.schema){e.isTop?d=!0:n+=" var "+v+" = false; ",(Z=Z||[]).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 g=n;n=Z.pop(),!e.compositeRule&&d?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++; "}else e.isTop?n+=o?" return data; ":" validate.errors = null; return true; ":n+=" var "+v+" = true; ";return e.isTop&&(n+=" }; return validate; "),n}if(e.isTop){var y=e.isTop;u=e.level=0,l=e.dataLevel=0,m="data";if(e.rootId=e.resolve.fullPath(e.self._getId(e.root.schema)),e.baseId=e.baseId||e.rootId,delete e.isTop,e.dataPathArr=[""],void 0!==e.schema.default&&e.opts.useDefaults&&e.opts.strictDefaults){var b="default is ignored in the schema root";if("log"!==e.opts.strictDefaults)throw new Error(b);e.logger.warn(b)}n+=" var vErrors = null; ",n+=" var errors = 0; ",n+=" if (rootData === undefined) rootData = data; "}else{u=e.level,m="data"+((l=e.dataLevel)||"");if(a&&(e.baseId=e.resolve.url(e.baseId,a)),o&&!e.async)throw new Error("async schema in sync schema");n+=" var errs_"+u+" = errors;"}v="valid"+u,d=!e.opts.allErrors;var w="",x="",E=e.schema.type,k=Array.isArray(E);if(E&&e.opts.nullable&&!0===e.schema.nullable&&(k?-1==E.indexOf("null")&&(E=E.concat("null")):"null"!=E&&(E=[E,"null"],k=!0)),k&&1==E.length&&(E=E[0],k=!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")),E){if(e.opts.coerceTypes)var S=e.util.coerceToTypes(e.opts.coerceTypes,E);var D=e.RULES.types[E];if(S||k||!0===D||D&&!Y(D)){h=e.schemaPath+".type",p=e.errSchemaPath+"/type",h=e.schemaPath+".type",p=e.errSchemaPath+"/type";var P=k?"checkDataTypes":"checkDataType";if(n+=" if ("+e.util[P](E,m,e.opts.strictNumbers,!0)+") { ",S){var A="dataType"+u,C="coerced"+u;n+=" var "+A+" = typeof "+m+"; var "+C+" = undefined; ","array"==e.opts.coerceTypes&&(n+=" if ("+A+" == 'object' && Array.isArray("+m+") && "+m+".length == 1) { "+m+" = "+m+"[0]; "+A+" = typeof "+m+"; if ("+e.util.checkDataType(e.schema.type,m,e.opts.strictNumbers)+") "+C+" = "+m+"; } "),n+=" if ("+C+" !== undefined) ; ";var O=S;if(O)for(var F,j=-1,T=O.length-1;j<T;)"string"==(F=O[j+=1])?n+=" else if ("+A+" == 'number' || "+A+" == 'boolean') "+C+" = '' + "+m+"; else if ("+m+" === null) "+C+" = ''; ":"number"==F||"integer"==F?(n+=" else if ("+A+" == 'boolean' || "+m+" === null || ("+A+" == 'string' && "+m+" && "+m+" == +"+m+" ","integer"==F&&(n+=" && !("+m+" % 1)"),n+=")) "+C+" = +"+m+"; "):"boolean"==F?n+=" else if ("+m+" === 'false' || "+m+" === 0 || "+m+" === null) "+C+" = false; else if ("+m+" === 'true' || "+m+" === 1) "+C+" = true; ":"null"==F?n+=" else if ("+m+" === '' || "+m+" === 0 || "+m+" === false) "+C+" = null; ":"array"==e.opts.coerceTypes&&"array"==F&&(n+=" else if ("+A+" == 'string' || "+A+" == 'number' || "+A+" == 'boolean' || "+m+" == null) "+C+" = ["+m+"]; ");n+=" else { ",(Z=Z||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'type' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(p)+" , params: { type: '",n+=k?""+E.join(","):""+E,n+="' } ",!1!==e.opts.messages&&(n+=" , message: 'should be ",n+=k?""+E.join(","):""+E,n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+h+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),n+=" } "):n+=" {} ";g=n;n=Z.pop(),!e.compositeRule&&d?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+=" } if ("+C+" !== undefined) { ";var _=l?"data"+(l-1||""):"parentData";n+=" "+m+" = "+C+"; ",l||(n+="if ("+_+" !== undefined)"),n+=" "+_+"["+(l?e.dataPathArr[l]:"parentDataProperty")+"] = "+C+"; } "}else{(Z=Z||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'type' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(p)+" , params: { type: '",n+=k?""+E.join(","):""+E,n+="' } ",!1!==e.opts.messages&&(n+=" , message: 'should be ",n+=k?""+E.join(","):""+E,n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+h+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),n+=" } "):n+=" {} ";g=n;n=Z.pop(),!e.compositeRule&&d?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+=" } "}}if(e.schema.$ref&&!i)n+=" "+e.RULES.all.$ref.code(e,"$ref")+" ",d&&(n+=" } if (errors === ",n+=y?"0":"errs_"+u,n+=") { ",x+="}");else{var R=e.RULES;if(R)for(var I=-1,L=R.length-1;I<L;)if(Y(D=R[I+=1])){if(D.type&&(n+=" if ("+e.util.checkDataType(D.type,m,e.opts.strictNumbers)+") { "),e.opts.useDefaults)if("object"==D.type&&e.schema.properties){f=e.schema.properties;var B=Object.keys(f);if(B)for(var M,N=-1,H=B.length-1;N<H;){if(void 0!==($=f[M=B[N+=1]]).default){var z=m+e.util.getProperty(M);if(e.compositeRule){if(e.opts.strictDefaults){b="default is ignored for: "+z;if("log"!==e.opts.strictDefaults)throw new Error(b);e.logger.warn(b)}}else n+=" if ("+z+" === undefined ","empty"==e.opts.useDefaults&&(n+=" || "+z+" === null || "+z+" === '' "),n+=" ) "+z+" = ","shared"==e.opts.useDefaults?n+=" "+e.useDefault($.default)+" ":n+=" "+JSON.stringify($.default)+" ",n+="; "}}}else if("array"==D.type&&Array.isArray(e.schema.items)){var U=e.schema.items;if(U){j=-1;for(var $,q=U.length-1;j<q;)if(void 0!==($=U[j+=1]).default){z=m+"["+j+"]";if(e.compositeRule){if(e.opts.strictDefaults){b="default is ignored for: "+z;if("log"!==e.opts.strictDefaults)throw new Error(b);e.logger.warn(b)}}else n+=" if ("+z+" === undefined ","empty"==e.opts.useDefaults&&(n+=" || "+z+" === null || "+z+" === '' "),n+=" ) "+z+" = ","shared"==e.opts.useDefaults?n+=" "+e.useDefault($.default)+" ":n+=" "+JSON.stringify($.default)+" ",n+="; "}}}var V=D.rules;if(V)for(var G,W=-1,K=V.length-1;W<K;)if(X(G=V[W+=1])){var Q=G.code(e,G.keyword,D.type);Q&&(n+=" "+Q+" ",d&&(w+="}"))}if(d&&(n+=" "+w+" ",w=""),D.type&&(n+=" } ",E&&E===D.type&&!S)){n+=" else { ";var Z;h=e.schemaPath+".type",p=e.errSchemaPath+"/type";(Z=Z||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'type' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(p)+" , params: { type: '",n+=k?""+E.join(","):""+E,n+="' } ",!1!==e.opts.messages&&(n+=" , message: 'should be ",n+=k?""+E.join(","):""+E,n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+h+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),n+=" } "):n+=" {} ";g=n;n=Z.pop(),!e.compositeRule&&d?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+=" } "}d&&(n+=" if (errors === ",n+=y?"0":"errs_"+u,n+=") { ",x+="}")}}function Y(e){for(var t=e.rules,r=0;r<t.length;r++)if(X(t[r]))return!0}function X(t){return void 0!==e.schema[t.keyword]||t.implements&&function(t){for(var r=t.implements,n=0;n<r.length;n++)if(void 0!==e.schema[r[n]])return!0}(t)}return d&&(n+=" "+x+" "),y?(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 "+v+" = errors === errs_"+u+";",n}},3114:(e,t,r)=>{"use strict";var n=/^[a-z_$][a-z0-9_$-]*$/i,o=r(3800),i=r(1448);e.exports={add:function(e,t){var r=this.RULES;if(r.keywords[e])throw new Error("Keyword "+e+" is already defined");if(!n.test(e))throw new Error("Keyword "+e+" is not a valid identifier");if(t){this.validateKeyword(t,!0);var i=t.type;if(Array.isArray(i))for(var a=0;a<i.length;a++)c(e,i[a],t);else c(e,i,t);var s=t.metaSchema;s&&(t.$data&&this._opts.$data&&(s={anyOf:[s,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]}),t.validateSchema=this.compile(s,!0))}function c(e,t,n){for(var i,a=0;a<r.length;a++){var s=r[a];if(s.type==t){i=s;break}}i||(i={type:t,rules:[]},r.push(i));var c={keyword:e,definition:n,custom:!0,code:o,implements:n.implements};i.rules.push(c),r.custom[e]=c}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(i,!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}}},3973:(e,t,r)=>{"use strict";r.d(t,{Z:()=>m});var n=r(9862),o=r.n(n),i=r(1221),a=r.n(i),s=(r(888),r(5444),r(2814),r(4703),r(3583),r(9855),r(5013),r(6230),r(7607),r(5126),r(7462),r(5148),r(5250)),c=r(6963),u=r(8887),l=r.n(u),f=r(9900),h=["base","href"];function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach((function(t){o()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const m=function(e){var t=e.base,r=e.href,n=a()(e,h),o=(0,c.CQ)().summary;if(r)if((0,c.CB)(r))n.target="_blank";else{if(".md"===l().extname(r)){var i;i=t?decodeURIComponent(l().join(l().dirname(t.ref),r)):decodeURIComponent(r);var u=o.getArticle((function(e){return e.ref===i}));if(u)return(0,s.jsx)(f.Z,d({to:u},n))}r="#!"}return(0,s.jsx)("a",d(d({href:r},n),{},{rel:"noopener noreferrer"}))}},9900:(e,t,r)=>{"use strict";r.d(t,{Z:()=>m});var n=r(9862),o=r.n(n),i=r(1221),a=r.n(i),s=(r(8664),r(7930),r(5013),r(5444),r(2814),r(4703),r(3583),r(9855),r(6230),r(7607),r(5126),r(7462),r(5148),r(5250)),c=r(7363),u=r(6963),l=r(3714),f=r(8709),h=["children","to","className"];function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach((function(t){o()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function m(e){var t,r=e.children,n=e.to,o=e.className,i=a()(e,h),p=(0,f.Z)(),m=(0,u.v9)("page").loading;n instanceof u.oI?(t=n.getPath(),r||(r=n.getTitle())):t=n;var v=t?p.relative(t):"#!",g=(0,c.useCallback)((function(e){if(e.preventDefault(),t&&!m){var r=e.currentTarget,n=r.pathname,o=r.search,i=r.hash;l.m8.push({pathname:n,search:o,hash:i})}}),[t,m]);return(0,s.jsx)("a",d(d({},i),{},{onClick:g,className:o,href:v,children:r}))}},3714:(e,t,r)=>{"use strict";r.d(t,{fi:()=>m,m8:()=>h});r(5444),r(2814),r(4703),r(3583),r(9855),r(6230),r(7607),r(5126),r(7462),r(5148);var n=r(7934),o=r.n(n),i=r(1176),a=r.n(i),s=r(9862),c=r.n(s),u=(r(8664),r(1228),r(7915),r(5013),r(2827));function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var h,p="undefined"!=typeof window&&window.history&&!navigator.userAgent.match(/((iPod|iPhone|iPad).+\bOS\s+[1-4]\D|WebApps\/.+CFNetwork)/)&&"file:"!==window.location.protocol,d=function(){function e(){o()(this,e),c()(this,"history",void 0),this.history=p?(0,u.lX)():(0,u.PP)({initialEntries:[window.location]})}return a()(e,[{key:"location",get:function(){var e=this.history.location;return f(f({},e),{},{toString:function(){return(0,u.Ep)(e)}})}},{key:"listen",value:function(e){return this.history.listen(e)}},{key:"replace",value:function(e){return this.history.replace(e)}},{key:"push",value:function(e){return this.history.push(e)}}]),e}();function m(){return h=new d}},9359:(e,t,r)=>{"use strict";r.d(t,{Q3:()=>i,VI:()=>s,ZP:()=>a,ir:()=>c,tA:()=>u});var n=r(6963),o=r(7363),i=(0,o.createContext)(void 0);function a(){return(0,o.useContext)(i)}function s(){var e=(0,n.CQ)().summary,t=a();if(t)return(0,o.useMemo)((function(){var r=t.getLevel(),n=!1;return e.getArticle((function(e){return n?!!e.getPath():(n=e.getLevel()==r,!1)}))}),[e,t])}function c(){var e=(0,n.CQ)().summary,t=a();if(t)return(0,o.useMemo)((function(){var r,n=t.getLevel();return e.getArticle((function(e){return e.getLevel()==n||(e.getPath()&&(r=e),!1)})),r}),[e,t])}function u(){var e=(0,n.CQ)().summary,t=a();return t?e.getArticlePart(t):void 0}},8709:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(6963);function o(){return(0,n.v9)("page").file}},8190:(e,t,r)=>{"use strict";r.d(t,{D:()=>s,Z:()=>c});var n=r(125),o=r.n(n),i=r(7363),a=996,s={desktop:"desktop",mobile:"mobile"};function c(){function e(){return window.innerWidth>a?s.desktop:s.mobile}var t=(0,i.useState)(e),r=o()(t,2),n=r[0],c=r[1];return(0,i.useEffect)((function(){function t(){c(e())}return window.addEventListener("resize",t),function(){return window.removeEventListener("resize",t)}}),[]),n}},6501:e=>{e.exports={trueFunc:function(){return!0},falseFunc:function(){return!1}}},1241:(e,t,r)=>{const n=r(3608),o={};for(const e of Object.keys(n))o[n[e]]=e;const i={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};e.exports=i;for(const e of Object.keys(i)){if(!("channels"in i[e]))throw new Error("missing channels property: "+e);if(!("labels"in i[e]))throw new Error("missing channel labels property: "+e);if(i[e].labels.length!==i[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:r}=i[e];delete i[e].channels,delete i[e].labels,Object.defineProperty(i[e],"channels",{value:t}),Object.defineProperty(i[e],"labels",{value:r})}function a(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}i.rgb.hsl=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,o=Math.min(t,r,n),i=Math.max(t,r,n),a=i-o;let s,c;i===o?s=0:t===i?s=(r-n)/a:r===i?s=2+(n-t)/a:n===i&&(s=4+(t-r)/a),s=Math.min(60*s,360),s<0&&(s+=360);const u=(o+i)/2;return c=i===o?0:u<=.5?a/(i+o):a/(2-i-o),[s,100*c,100*u]},i.rgb.hsv=function(e){let t,r,n,o,i;const a=e[0]/255,s=e[1]/255,c=e[2]/255,u=Math.max(a,s,c),l=u-Math.min(a,s,c),f=function(e){return(u-e)/6/l+.5};return 0===l?(o=0,i=0):(i=l/u,t=f(a),r=f(s),n=f(c),a===u?o=n-r:s===u?o=1/3+t-n:c===u&&(o=2/3+r-t),o<0?o+=1:o>1&&(o-=1)),[360*o,100*i,100*u]},i.rgb.hwb=function(e){const t=e[0],r=e[1];let n=e[2];const o=i.rgb.hsl(e)[0],a=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[o,100*a,100*n]},i.rgb.cmyk=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,o=Math.min(1-t,1-r,1-n);return[100*((1-t-o)/(1-o)||0),100*((1-r-o)/(1-o)||0),100*((1-n-o)/(1-o)||0),100*o]},i.rgb.keyword=function(e){const t=o[e];if(t)return t;let r,i=1/0;for(const t of Object.keys(n)){const o=a(e,n[t]);o<i&&(i=o,r=t)}return r},i.keyword.rgb=function(e){return n[e]},i.rgb.xyz=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;return[100*(.4124*t+.3576*r+.1805*n),100*(.2126*t+.7152*r+.0722*n),100*(.0193*t+.1192*r+.9505*n)]},i.rgb.lab=function(e){const t=i.rgb.xyz(e);let r=t[0],n=t[1],o=t[2];r/=95.047,n/=100,o/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,o=o>.008856?o**(1/3):7.787*o+16/116;return[116*n-16,500*(r-n),200*(n-o)]},i.hsl.rgb=function(e){const t=e[0]/360,r=e[1]/100,n=e[2]/100;let o,i,a;if(0===r)return a=255*n,[a,a,a];o=n<.5?n*(1+r):n+r-n*r;const s=2*n-o,c=[0,0,0];for(let e=0;e<3;e++)i=t+1/3*-(e-1),i<0&&i++,i>1&&i--,a=6*i<1?s+6*(o-s)*i:2*i<1?o:3*i<2?s+(o-s)*(2/3-i)*6:s,c[e]=255*a;return c},i.hsl.hsv=function(e){const t=e[0];let r=e[1]/100,n=e[2]/100,o=r;const i=Math.max(n,.01);n*=2,r*=n<=1?n:2-n,o*=i<=1?i:2-i;return[t,100*(0===n?2*o/(i+o):2*r/(n+r)),100*((n+r)/2)]},i.hsv.rgb=function(e){const t=e[0]/60,r=e[1]/100;let n=e[2]/100;const o=Math.floor(t)%6,i=t-Math.floor(t),a=255*n*(1-r),s=255*n*(1-r*i),c=255*n*(1-r*(1-i));switch(n*=255,o){case 0:return[n,c,a];case 1:return[s,n,a];case 2:return[a,n,c];case 3:return[a,s,n];case 4:return[c,a,n];case 5:return[n,a,s]}},i.hsv.hsl=function(e){const t=e[0],r=e[1]/100,n=e[2]/100,o=Math.max(n,.01);let i,a;a=(2-r)*n;const s=(2-r)*o;return i=r*o,i/=s<=1?s:2-s,i=i||0,a/=2,[t,100*i,100*a]},i.hwb.rgb=function(e){const t=e[0]/360;let r=e[1]/100,n=e[2]/100;const o=r+n;let i;o>1&&(r/=o,n/=o);const a=Math.floor(6*t),s=1-n;i=6*t-a,0!=(1&a)&&(i=1-i);const c=r+i*(s-r);let u,l,f;switch(a){default:case 6:case 0:u=s,l=c,f=r;break;case 1:u=c,l=s,f=r;break;case 2:u=r,l=s,f=c;break;case 3:u=r,l=c,f=s;break;case 4:u=c,l=r,f=s;break;case 5:u=s,l=r,f=c}return[255*u,255*l,255*f]},i.cmyk.rgb=function(e){const t=e[0]/100,r=e[1]/100,n=e[2]/100,o=e[3]/100;return[255*(1-Math.min(1,t*(1-o)+o)),255*(1-Math.min(1,r*(1-o)+o)),255*(1-Math.min(1,n*(1-o)+o))]},i.xyz.rgb=function(e){const t=e[0]/100,r=e[1]/100,n=e[2]/100;let o,i,a;return o=3.2406*t+-1.5372*r+-.4986*n,i=-.9689*t+1.8758*r+.0415*n,a=.0557*t+-.204*r+1.057*n,o=o>.0031308?1.055*o**(1/2.4)-.055:12.92*o,i=i>.0031308?1.055*i**(1/2.4)-.055:12.92*i,a=a>.0031308?1.055*a**(1/2.4)-.055:12.92*a,o=Math.min(Math.max(0,o),1),i=Math.min(Math.max(0,i),1),a=Math.min(Math.max(0,a),1),[255*o,255*i,255*a]},i.xyz.lab=function(e){let t=e[0],r=e[1],n=e[2];t/=95.047,r/=100,n/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;return[116*r-16,500*(t-r),200*(r-n)]},i.lab.xyz=function(e){let t,r,n;r=(e[0]+16)/116,t=e[1]/500+r,n=r-e[2]/200;const o=r**3,i=t**3,a=n**3;return r=o>.008856?o:(r-16/116)/7.787,t=i>.008856?i:(t-16/116)/7.787,n=a>.008856?a:(n-16/116)/7.787,t*=95.047,r*=100,n*=108.883,[t,r,n]},i.lab.lch=function(e){const t=e[0],r=e[1],n=e[2];let o;o=360*Math.atan2(n,r)/2/Math.PI,o<0&&(o+=360);return[t,Math.sqrt(r*r+n*n),o]},i.lch.lab=function(e){const t=e[0],r=e[1],n=e[2]/360*2*Math.PI;return[t,r*Math.cos(n),r*Math.sin(n)]},i.rgb.ansi16=function(e,t=null){const[r,n,o]=e;let a=null===t?i.rgb.hsv(e)[2]:t;if(a=Math.round(a/50),0===a)return 30;let s=30+(Math.round(o/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return 2===a&&(s+=60),s},i.hsv.ansi16=function(e){return i.rgb.ansi16(i.hsv.rgb(e),e[2])},i.rgb.ansi256=function(e){const t=e[0],r=e[1],n=e[2];if(t===r&&r===n)return t<8?16:t>248?231:Math.round((t-8)/247*24)+232;return 16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},i.ansi16.rgb=function(e){let t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const r=.5*(1+~~(e>50));return[(1&t)*r*255,(t>>1&1)*r*255,(t>>2&1)*r*255]},i.ansi256.rgb=function(e){if(e>=232){const t=10*(e-232)+8;return[t,t,t]}let t;e-=16;return[Math.floor(e/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},i.rgb.hex=function(e){const t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},i.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let r=t[0];3===t[0].length&&(r=r.split("").map((e=>e+e)).join(""));const n=parseInt(r,16);return[n>>16&255,n>>8&255,255&n]},i.rgb.hcg=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,o=Math.max(Math.max(t,r),n),i=Math.min(Math.min(t,r),n),a=o-i;let s,c;return s=a<1?i/(1-a):0,c=a<=0?0:o===t?(r-n)/a%6:o===r?2+(n-t)/a:4+(t-r)/a,c/=6,c%=1,[360*c,100*a,100*s]},i.hsl.hcg=function(e){const t=e[1]/100,r=e[2]/100,n=r<.5?2*t*r:2*t*(1-r);let o=0;return n<1&&(o=(r-.5*n)/(1-n)),[e[0],100*n,100*o]},i.hsv.hcg=function(e){const t=e[1]/100,r=e[2]/100,n=t*r;let o=0;return n<1&&(o=(r-n)/(1-n)),[e[0],100*n,100*o]},i.hcg.rgb=function(e){const t=e[0]/360,r=e[1]/100,n=e[2]/100;if(0===r)return[255*n,255*n,255*n];const o=[0,0,0],i=t%1*6,a=i%1,s=1-a;let c=0;switch(Math.floor(i)){case 0:o[0]=1,o[1]=a,o[2]=0;break;case 1:o[0]=s,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=a;break;case 3:o[0]=0,o[1]=s,o[2]=1;break;case 4:o[0]=a,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=s}return c=(1-r)*n,[255*(r*o[0]+c),255*(r*o[1]+c),255*(r*o[2]+c)]},i.hcg.hsv=function(e){const t=e[1]/100,r=t+e[2]/100*(1-t);let n=0;return r>0&&(n=t/r),[e[0],100*n,100*r]},i.hcg.hsl=function(e){const t=e[1]/100,r=e[2]/100*(1-t)+.5*t;let n=0;return r>0&&r<.5?n=t/(2*r):r>=.5&&r<1&&(n=t/(2*(1-r))),[e[0],100*n,100*r]},i.hcg.hwb=function(e){const t=e[1]/100,r=t+e[2]/100*(1-t);return[e[0],100*(r-t),100*(1-r)]},i.hwb.hcg=function(e){const t=e[1]/100,r=1-e[2]/100,n=r-t;let o=0;return n<1&&(o=(r-n)/(1-n)),[e[0],100*n,100*o]},i.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},i.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},i.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},i.gray.hsl=function(e){return[0,0,e[0]]},i.gray.hsv=i.gray.hsl,i.gray.hwb=function(e){return[0,100,e[0]]},i.gray.cmyk=function(e){return[0,0,0,e[0]]},i.gray.lab=function(e){return[e[0],0,0]},i.gray.hex=function(e){const t=255&Math.round(e[0]/100*255),r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r},i.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},1096:(e,t,r)=>{const n=r(1241),o=r(5504),i={};Object.keys(n).forEach((e=>{i[e]={},Object.defineProperty(i[e],"channels",{value:n[e].channels}),Object.defineProperty(i[e],"labels",{value:n[e].labels});const t=o(e);Object.keys(t).forEach((r=>{const n=t[r];i[e][r]=function(e){const t=function(...t){const r=t[0];if(null==r)return r;r.length>1&&(t=r);const n=e(t);if("object"==typeof n)for(let e=n.length,t=0;t<e;t++)n[t]=Math.round(n[t]);return n};return"conversion"in e&&(t.conversion=e.conversion),t}(n),i[e][r].raw=function(e){const t=function(...t){const r=t[0];return null==r?r:(r.length>1&&(t=r),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(n)}))})),e.exports=i},5504:(e,t,r)=>{const n=r(1241);function o(e){const t=function(){const e={},t=Object.keys(n);for(let r=t.length,n=0;n<r;n++)e[t[n]]={distance:-1,parent:null};return e}(),r=[e];for(t[e].distance=0;r.length;){const e=r.pop(),o=Object.keys(n[e]);for(let n=o.length,i=0;i<n;i++){const n=o[i],a=t[n];-1===a.distance&&(a.distance=t[e].distance+1,a.parent=e,r.unshift(n))}}return t}function i(e,t){return function(r){return t(e(r))}}function a(e,t){const r=[t[e].parent,e];let o=n[t[e].parent][e],a=t[e].parent;for(;t[a].parent;)r.unshift(t[a].parent),o=i(n[t[a].parent][a],o),a=t[a].parent;return o.conversion=r,o}e.exports=function(e){const t=o(e),r={},n=Object.keys(t);for(let e=n.length,o=0;o<e;o++){const e=n[o];null!==t[e].parent&&(r[e]=a(e,t))}return r}},3608:e=>{"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},4510:(e,t,r)=>{var n=r(3608),o=r(5458),i=Object.hasOwnProperty,a=Object.create(null);for(var s in n)i.call(n,s)&&(a[n[s]]=s);var c=e.exports={to:{},get:{}};function u(e,t,r){return Math.min(Math.max(t,e),r)}function l(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}c.get=function(e){var t,r;switch(e.substring(0,3).toLowerCase()){case"hsl":t=c.get.hsl(e),r="hsl";break;case"hwb":t=c.get.hwb(e),r="hwb";break;default:t=c.get.rgb(e),r="rgb"}return t?{model:r,value:t}:null},c.get.rgb=function(e){if(!e)return null;var t,r,o,a=[0,0,0,1];if(t=e.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(o=t[2],t=t[1],r=0;r<3;r++){var s=2*r;a[r]=parseInt(t.slice(s,s+2),16)}o&&(a[3]=parseInt(o,16)/255)}else if(t=e.match(/^#([a-f0-9]{3,4})$/i)){for(o=(t=t[1])[3],r=0;r<3;r++)a[r]=parseInt(t[r]+t[r],16);o&&(a[3]=parseInt(o+o,16)/255)}else if(t=e.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(r=0;r<3;r++)a[r]=parseInt(t[r+1],0);t[4]&&(t[5]?a[3]=.01*parseFloat(t[4]):a[3]=parseFloat(t[4]))}else{if(!(t=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(t=e.match(/^(\w+)$/))?"transparent"===t[1]?[0,0,0,0]:i.call(n,t[1])?((a=n[t[1]])[3]=1,a):null:null;for(r=0;r<3;r++)a[r]=Math.round(2.55*parseFloat(t[r+1]));t[4]&&(t[5]?a[3]=.01*parseFloat(t[4]):a[3]=parseFloat(t[4]))}for(r=0;r<3;r++)a[r]=u(a[r],0,255);return a[3]=u(a[3],0,1),a},c.get.hsl=function(e){if(!e)return null;var t=e.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var r=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,u(parseFloat(t[2]),0,100),u(parseFloat(t[3]),0,100),u(isNaN(r)?1:r,0,1)]}return null},c.get.hwb=function(e){if(!e)return null;var t=e.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var r=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,u(parseFloat(t[2]),0,100),u(parseFloat(t[3]),0,100),u(isNaN(r)?1:r,0,1)]}return null},c.to.hex=function(){var e=o(arguments);return"#"+l(e[0])+l(e[1])+l(e[2])+(e[3]<1?l(Math.round(255*e[3])):"")},c.to.rgb=function(){var e=o(arguments);return e.length<4||1===e[3]?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"},c.to.rgb.percent=function(){var e=o(arguments),t=Math.round(e[0]/255*100),r=Math.round(e[1]/255*100),n=Math.round(e[2]/255*100);return e.length<4||1===e[3]?"rgb("+t+"%, "+r+"%, "+n+"%)":"rgba("+t+"%, "+r+"%, "+n+"%, "+e[3]+")"},c.to.hsl=function(){var e=o(arguments);return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},c.to.hwb=function(){var e=o(arguments),t="";return e.length>=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},c.to.keyword=function(e){return a[e.slice(0,3)]}},7851:(e,t,r)=>{const n=r(4510),o=r(1096),i=["keyword","gray","hex"],a={};for(const e of Object.keys(o))a[[...o[e].labels].sort().join("")]=e;const s={};function c(e,t){if(!(this instanceof c))return new c(e,t);if(t&&t in i&&(t=null),t&&!(t in o))throw new Error("Unknown model: "+t);let r,u;if(null==e)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof c)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if("string"==typeof e){const t=n.get(e);if(null===t)throw new Error("Unable to parse color from string: "+e);this.model=t.model,u=o[this.model].channels,this.color=t.value.slice(0,u),this.valpha="number"==typeof t.value[u]?t.value[u]:1}else if(e.length>0){this.model=t||"rgb",u=o[this.model].channels;const r=Array.prototype.slice.call(e,0,u);this.color=p(r,u),this.valpha="number"==typeof e[u]?e[u]:1}else if("number"==typeof e)this.model="rgb",this.color=[e>>16&255,e>>8&255,255&e],this.valpha=1;else{this.valpha=1;const t=Object.keys(e);"alpha"in e&&(t.splice(t.indexOf("alpha"),1),this.valpha="number"==typeof e.alpha?e.alpha:0);const n=t.sort().join("");if(!(n in a))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=a[n];const{labels:i}=o[this.model],s=[];for(r=0;r<i.length;r++)s.push(e[i[r]]);this.color=p(s)}if(s[this.model])for(u=o[this.model].channels,r=0;r<u;r++){const e=s[this.model][r];e&&(this.color[r]=e(this.color[r]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}c.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(e){let t=this.model in n.to?this:this.rgb();t=t.round("number"==typeof e?e:1);const r=1===t.valpha?t.color:[...t.color,this.valpha];return n.to[t.model](r)},percentString(e){const t=this.rgb().round("number"==typeof e?e:1),r=1===t.valpha?t.color:[...t.color,this.valpha];return n.to.rgb.percent(r)},array(){return 1===this.valpha?[...this.color]:[...this.color,this.valpha]},object(){const e={},{channels:t}=o[this.model],{labels:r}=o[this.model];for(let n=0;n<t;n++)e[r[n]]=this.color[n];return 1!==this.valpha&&(e.alpha=this.valpha),e},unitArray(){const e=this.rgb().color;return e[0]/=255,e[1]/=255,e[2]/=255,1!==this.valpha&&e.push(this.valpha),e},unitObject(){const e=this.rgb().object();return e.r/=255,e.g/=255,e.b/=255,1!==this.valpha&&(e.alpha=this.valpha),e},round(e){return e=Math.max(e||0,0),new c([...this.color.map(u(e)),this.valpha],this.model)},alpha(e){return void 0!==e?new c([...this.color,Math.max(0,Math.min(1,e))],this.model):this.valpha},red:l("rgb",0,f(255)),green:l("rgb",1,f(255)),blue:l("rgb",2,f(255)),hue:l(["hsl","hsv","hsl","hwb","hcg"],0,(e=>(e%360+360)%360)),saturationl:l("hsl",1,f(100)),lightness:l("hsl",2,f(100)),saturationv:l("hsv",1,f(100)),value:l("hsv",2,f(100)),chroma:l("hcg",1,f(100)),gray:l("hcg",2,f(100)),white:l("hwb",1,f(100)),wblack:l("hwb",2,f(100)),cyan:l("cmyk",0,f(100)),magenta:l("cmyk",1,f(100)),yellow:l("cmyk",2,f(100)),black:l("cmyk",3,f(100)),x:l("xyz",0,f(95.047)),y:l("xyz",1,f(100)),z:l("xyz",2,f(108.833)),l:l("lab",0,f(100)),a:l("lab",1),b:l("lab",2),keyword(e){return void 0!==e?new c(e):o[this.model].keyword(this.color)},hex(e){return void 0!==e?new c(e):n.to.hex(this.rgb().round().color)},hexa(e){if(void 0!==e)return new c(e);const t=this.rgb().round().color;let r=Math.round(255*this.valpha).toString(16).toUpperCase();return 1===r.length&&(r="0"+r),n.to.hex(t)+r},rgbNumber(){const e=this.rgb().color;return(255&e[0])<<16|(255&e[1])<<8|255&e[2]},luminosity(){const e=this.rgb().color,t=[];for(const[r,n]of e.entries()){const e=n/255;t[r]=e<=.04045?e/12.92:((e+.055)/1.055)**2.4}return.2126*t[0]+.7152*t[1]+.0722*t[2]},contrast(e){const t=this.luminosity(),r=e.luminosity();return t>r?(t+.05)/(r+.05):(r+.05)/(t+.05)},level(e){const t=this.contrast(e);return t>=7?"AAA":t>=4.5?"AA":""},isDark(){const e=this.rgb().color;return(2126*e[0]+7152*e[1]+722*e[2])/1e4<128},isLight(){return!this.isDark()},negate(){const e=this.rgb();for(let t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten(e){const t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken(e){const t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate(e){const t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate(e){const t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten(e){const t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken(e){const t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale(){const e=this.rgb().color,t=.3*e[0]+.59*e[1]+.11*e[2];return c.rgb(t,t,t)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){const t=this.hsl();let r=t.color[0];return r=(r+e)%360,r=r<0?360+r:r,t.color[0]=r,t},mix(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);const r=e.rgb(),n=this.rgb(),o=void 0===t?.5:t,i=2*o-1,a=r.alpha()-n.alpha(),s=((i*a==-1?i:(i+a)/(1+i*a))+1)/2,u=1-s;return c.rgb(s*r.red()+u*n.red(),s*r.green()+u*n.green(),s*r.blue()+u*n.blue(),r.alpha()*o+n.alpha()*(1-o))}};for(const e of Object.keys(o)){if(i.includes(e))continue;const{channels:t}=o[e];c.prototype[e]=function(...t){return this.model===e?new c(this):t.length>0?new c(t,e):new c([...h(o[this.model][e].raw(this.color)),this.valpha],e)},c[e]=function(...r){let n=r[0];return"number"==typeof n&&(n=p(r,t)),new c(n,e)}}function u(e){return function(t){return function(e,t){return Number(e.toFixed(t))}(t,e)}}function l(e,t,r){e=Array.isArray(e)?e:[e];for(const n of e)(s[n]||(s[n]=[]))[t]=r;return e=e[0],function(n){let o;return void 0!==n?(r&&(n=r(n)),o=this[e](),o.color[t]=n,o):(o=this[e]().color[t],r&&(o=r(o)),o)}}function f(e){return function(t){return Math.max(0,Math.min(e,t))}}function h(e){return Array.isArray(e)?e:[e]}function p(e,t){for(let r=0;r<t;r++)"number"!=typeof e[r]&&(e[r]=0);return e}e.exports=c},2427:(e,t,r)=>{var n=r(7389),o=r(4259),i=TypeError;e.exports=function(e){if(n(e))return e;throw i(o(e)+" is not a function")}},7752:(e,t,r)=>{var n=r(5615),o=r(4259),i=TypeError;e.exports=function(e){if(n(e))return e;throw i(o(e)+" is not a constructor")}},3693:(e,t,r)=>{var n=r(7389),o=String,i=TypeError;e.exports=function(e){if("object"==typeof e||n(e))return e;throw i("Can't set "+o(e)+" as a prototype")}},2921:(e,t,r)=>{var n=r(9163),o=r(2909),i=r(3015).f,a=n("unscopables"),s=Array.prototype;null==s[a]&&i(s,a,{configurable:!0,value:o(null)}),e.exports=function(e){s[a][e]=!0}},329:(e,t,r)=>{"use strict";var n=r(4003).charAt;e.exports=function(e,t,r){return t+(r?n(e,t).length:1)}},1167:(e,t,r)=>{var n=r(2378),o=TypeError;e.exports=function(e,t){if(n(t,e))return e;throw o("Incorrect invocation")}},6824:(e,t,r)=>{var n=r(2465),o=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw i(o(e)+" is not an object")}},1385:(e,t,r)=>{"use strict";var n=r(3250).forEach,o=r(8478)("forEach");e.exports=o?[].forEach:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0)}},6807:(e,t,r)=>{"use strict";var n=r(6748),o=r(1568),i=r(4247),a=r(6948),s=r(2464),c=r(5615),u=r(1166),l=r(7926),f=r(9119),h=r(9781),p=Array;e.exports=function(e){var t=i(e),r=c(this),d=arguments.length,m=d>1?arguments[1]:void 0,v=void 0!==m;v&&(m=n(m,d>2?arguments[2]:void 0));var g,y,b,w,x,E,k=h(t),S=0;if(!k||this===p&&s(k))for(g=u(t),y=r?new this(g):p(g);g>S;S++)E=v?m(t[S],S):t[S],l(y,S,E);else for(x=(w=f(t,k)).next,y=r?new this:[];!(b=o(x,w)).done;S++)E=v?a(w,m,[b.value,S],!0):b.value,l(y,S,E);return y.length=S,y}},9483:(e,t,r)=>{var n=r(2415),o=r(3041),i=r(1166),a=function(e){return function(t,r,a){var s,c=n(t),u=i(c),l=o(a,u);if(e&&r!=r){for(;u>l;)if((s=c[l++])!=s)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===r)return e||l||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},3250:(e,t,r)=>{var n=r(6748),o=r(764),i=r(2146),a=r(4247),s=r(1166),c=r(1780),u=o([].push),l=function(e){var t=1==e,r=2==e,o=3==e,l=4==e,f=6==e,h=7==e,p=5==e||f;return function(d,m,v,g){for(var y,b,w=a(d),x=i(w),E=n(m,v),k=s(x),S=0,D=g||c,P=t?D(d,k):r||h?D(d,0):void 0;k>S;S++)if((p||S in x)&&(b=E(y=x[S],S,w),e))if(t)P[S]=b;else if(b)switch(e){case 3:return!0;case 5:return y;case 6:return S;case 2:u(P,y)}else switch(e){case 4:return!1;case 7:u(P,y)}return f?-1:o||l?l:P}};e.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterReject:l(7)}},5815:(e,t,r)=>{var n=r(2170),o=r(9163),i=r(7098),a=o("species");e.exports=function(e){return i>=51||!n((function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},8478:(e,t,r)=>{"use strict";var n=r(2170);e.exports=function(e,t){var r=[][e];return!!r&&n((function(){r.call(null,t||function(){return 1},1)}))}},2005:(e,t,r)=>{var n=r(2427),o=r(4247),i=r(2146),a=r(1166),s=TypeError,c=function(e){return function(t,r,c,u){n(r);var l=o(t),f=i(l),h=a(l),p=e?h-1:0,d=e?-1:1;if(c<2)for(;;){if(p in f){u=f[p],p+=d;break}if(p+=d,e?p<0:h<=p)throw s("Reduce of empty array with no initial value")}for(;e?p>=0:h>p;p+=d)p in f&&(u=r(u,f[p],p,l));return u}};e.exports={left:c(!1),right:c(!0)}},9912:(e,t,r)=>{"use strict";var n=r(2404),o=r(5384),i=TypeError,a=Object.getOwnPropertyDescriptor,s=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=s?function(e,t){if(o(e)&&!a(e,"length").writable)throw i("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},6765:(e,t,r)=>{var n=r(3041),o=r(1166),i=r(7926),a=Array,s=Math.max;e.exports=function(e,t,r){for(var c=o(e),u=n(t,c),l=n(void 0===r?c:r,c),f=a(s(l-u,0)),h=0;u<l;u++,h++)i(f,h,e[u]);return f.length=h,f}},2980:(e,t,r)=>{var n=r(764);e.exports=n([].slice)},8110:(e,t,r)=>{var n=r(6765),o=Math.floor,i=function(e,t){var r=e.length,c=o(r/2);return r<8?a(e,t):s(e,i(n(e,0,c),t),i(n(e,c),t),t)},a=function(e,t){for(var r,n,o=e.length,i=1;i<o;){for(n=i,r=e[i];n&&t(e[n-1],r)>0;)e[n]=e[--n];n!==i++&&(e[n]=r)}return e},s=function(e,t,r,n){for(var o=t.length,i=r.length,a=0,s=0;a<o||s<i;)e[a+s]=a<o&&s<i?n(t[a],r[s])<=0?t[a++]:r[s++]:a<o?t[a++]:r[s++];return e};e.exports=i},2916:(e,t,r)=>{var n=r(5384),o=r(5615),i=r(2465),a=r(9163)("species"),s=Array;e.exports=function(e){var t;return n(e)&&(t=e.constructor,(o(t)&&(t===s||n(t.prototype))||i(t)&&null===(t=t[a]))&&(t=void 0)),void 0===t?s:t}},1780:(e,t,r)=>{var n=r(2916);e.exports=function(e,t){return new(n(e))(0===t?0:t)}},6948:(e,t,r)=>{var n=r(6824),o=r(3821);e.exports=function(e,t,r,i){try{return i?t(n(r)[0],r[1]):t(r)}catch(t){o(e,"throw",t)}}},9328:(e,t,r)=>{var n=r(9163)("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[n]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var r=!1;try{var i={};i[n]=function(){return{next:function(){return{done:r=!0}}}},e(i)}catch(e){}return r}},956:(e,t,r)=>{var n=r(764),o=n({}.toString),i=n("".slice);e.exports=function(e){return i(o(e),8,-1)}},9909:(e,t,r)=>{var n=r(7867),o=r(7389),i=r(956),a=r(9163)("toStringTag"),s=Object,c="Arguments"==i(function(){return arguments}());e.exports=n?i:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=s(e),a))?r:c?i(t):"Object"==(n=i(t))&&o(t.callee)?"Arguments":n}},9962:(e,t,r)=>{var n=r(627),o=r(2463),i=r(3178),a=r(3015);e.exports=function(e,t,r){for(var s=o(t),c=a.f,u=i.f,l=0;l<s.length;l++){var f=s[l];n(e,f)||r&&n(r,f)||c(e,f,u(t,f))}}},4749:(e,t,r)=>{var n=r(9163)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[n]=!1,"/./"[e](t)}catch(e){}}return!1}},2757:(e,t,r)=>{var n=r(2170);e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},5771:(e,t,r)=>{var n=r(764),o=r(8466),i=r(8943),a=/"/g,s=n("".replace);e.exports=function(e,t,r,n){var c=i(o(e)),u="<"+t;return""!==r&&(u+=" "+r+'="'+s(i(n),a,"&quot;")+'"'),u+">"+c+"</"+t+">"}},2229:e=>{e.exports=function(e,t){return{value:e,done:t}}},3085:(e,t,r)=>{var n=r(2404),o=r(3015),i=r(73);e.exports=n?function(e,t,r){return o.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},73:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},7926:(e,t,r)=>{"use strict";var n=r(1918),o=r(3015),i=r(73);e.exports=function(e,t,r){var a=n(t);a in e?o.f(e,a,i(0,r)):e[a]=r}},1571:(e,t,r)=>{var n=r(7841),o=r(3015);e.exports=function(e,t,r){return r.get&&n(r.get,t,{getter:!0}),r.set&&n(r.set,t,{setter:!0}),o.f(e,t,r)}},4519:(e,t,r)=>{var n=r(7389),o=r(3015),i=r(7841),a=r(7528);e.exports=function(e,t,r,s){s||(s={});var c=s.enumerable,u=void 0!==s.name?s.name:t;if(n(r)&&i(r,u,s),s.global)c?e[t]=r:a(t,r);else{try{s.unsafe?e[t]&&(c=!0):delete e[t]}catch(e){}c?e[t]=r:o.f(e,t,{value:r,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},8965:(e,t,r)=>{var n=r(4519);e.exports=function(e,t,r){for(var o in t)n(e,o,t[o],r);return e}},7528:(e,t,r)=>{var n=r(2019),o=Object.defineProperty;e.exports=function(e,t){try{o(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},2404:(e,t,r)=>{var n=r(2170);e.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},3398:e=>{var t="object"==typeof document&&document.all,r=void 0===t&&void 0!==t;e.exports={all:t,IS_HTMLDDA:r}},1220:(e,t,r)=>{var n=r(2019),o=r(2465),i=n.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},7711:e=>{var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}},2135:e=>{e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},5011:(e,t,r)=>{var n=r(1220)("span").classList,o=n&&n.constructor&&n.constructor.prototype;e.exports=o===Object.prototype?void 0:o},6786:(e,t,r)=>{var n=r(9384),o=r(5936);e.exports=!n&&!o&&"object"==typeof window&&"object"==typeof document},9384:e=>{e.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},9022:(e,t,r)=>{var n=r(5531);e.exports=/ipad|iphone|ipod/i.test(n)&&"undefined"!=typeof Pebble},7684:(e,t,r)=>{var n=r(5531);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)},5936:(e,t,r)=>{var n=r(4675),o=r(956);e.exports=void 0!==n&&"process"==o(n)},2173:(e,t,r)=>{var n=r(5531);e.exports=/web0s(?!.*chrome)/i.test(n)},5531:e=>{e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},7098:(e,t,r)=>{var n,o,i=r(2019),a=r(5531),s=i.process,c=i.Deno,u=s&&s.versions||c&&c.version,l=u&&u.v8;l&&(o=(n=l.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(o=+n[1]),e.exports=o},2197:e=>{e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},8936:(e,t,r)=>{var n=r(764),o=Error,i=n("".replace),a=String(o("zxcasd").stack),s=/\n\s*at [^:]*:[^\n]*/,c=s.test(a);e.exports=function(e,t){if(c&&"string"==typeof e&&!o.prepareStackTrace)for(;t--;)e=i(e,s,"");return e}},9235:(e,t,r)=>{var n=r(3085),o=r(8936),i=r(3358),a=Error.captureStackTrace;e.exports=function(e,t,r,s){i&&(a?a(e,t):n(e,"stack",o(r,s)))}},3358:(e,t,r)=>{var n=r(2170),o=r(73);e.exports=!n((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",o(1,7)),7!==e.stack)}))},123:(e,t,r)=>{"use strict";var n=r(2404),o=r(2170),i=r(6824),a=r(2909),s=r(4425),c=Error.prototype.toString,u=o((function(){if(n){var e=a(Object.defineProperty({},"name",{get:function(){return this===e}}));if("true"!==c.call(e))return!0}return"2: 1"!==c.call({message:1,name:2})||"Error"!==c.call({})}));e.exports=u?function(){var e=i(this),t=s(e.name,"Error"),r=s(e.message);return t?r?t+": "+r:t:r}:c},6367:(e,t,r)=>{var n=r(2019),o=r(3178).f,i=r(3085),a=r(4519),s=r(7528),c=r(9962),u=r(1323);e.exports=function(e,t){var r,l,f,h,p,d=e.target,m=e.global,v=e.stat;if(r=m?n:v?n[d]||s(d,{}):(n[d]||{}).prototype)for(l in t){if(h=t[l],f=e.dontCallGetSet?(p=o(r,l))&&p.value:r[l],!u(m?l:d+(v?".":"#")+l,e.forced)&&void 0!==f){if(typeof h==typeof f)continue;c(h,f)}(e.sham||f&&f.sham)&&i(h,"sham",!0),a(r,l,h,e)}}},2170:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},1705:(e,t,r)=>{"use strict";r(8664);var n=r(1889),o=r(4519),i=r(9338),a=r(2170),s=r(9163),c=r(3085),u=s("species"),l=RegExp.prototype;e.exports=function(e,t,r,f){var h=s(e),p=!a((function(){var t={};return t[h]=function(){return 7},7!=""[e](t)})),d=p&&!a((function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[u]=function(){return r},r.flags="",r[h]=/./[h]),r.exec=function(){return t=!0,null},r[h](""),!t}));if(!p||!d||r){var m=n(/./[h]),v=t(h,""[e],(function(e,t,r,o,a){var s=n(e),c=t.exec;return c===i||c===l.exec?p&&!a?{done:!0,value:m(t,r,o)}:{done:!0,value:s(r,t,o)}:{done:!1}}));o(String.prototype,e,v[0]),o(l,h,v[1])}f&&c(l[h],"sham",!0)}},1152:(e,t,r)=>{var n=r(3780),o=Function.prototype,i=o.apply,a=o.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?a.bind(i):function(){return a.apply(i,arguments)})},6748:(e,t,r)=>{var n=r(1889),o=r(2427),i=r(3780),a=n(n.bind);e.exports=function(e,t){return o(e),void 0===t?e:i?a(e,t):function(){return e.apply(t,arguments)}}},3780:(e,t,r)=>{var n=r(2170);e.exports=!n((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},8836:(e,t,r)=>{"use strict";var n=r(764),o=r(2427),i=r(2465),a=r(627),s=r(2980),c=r(3780),u=Function,l=n([].concat),f=n([].join),h={};e.exports=c?u.bind:function(e){var t=o(this),r=t.prototype,n=s(arguments,1),c=function(){var r=l(n,s(arguments));return this instanceof c?function(e,t,r){if(!a(h,t)){for(var n=[],o=0;o<t;o++)n[o]="a["+o+"]";h[t]=u("C,a","return new C("+f(n,",")+")")}return h[t](e,r)}(t,r.length,r):t.apply(e,r)};return i(r)&&(c.prototype=r),c}},1568:(e,t,r)=>{var n=r(3780),o=Function.prototype.call;e.exports=n?o.bind(o):function(){return o.apply(o,arguments)}},5114:(e,t,r)=>{var n=r(2404),o=r(627),i=Function.prototype,a=n&&Object.getOwnPropertyDescriptor,s=o(i,"name"),c=s&&"something"===function(){}.name,u=s&&(!n||n&&a(i,"name").configurable);e.exports={EXISTS:s,PROPER:c,CONFIGURABLE:u}},5904:(e,t,r)=>{var n=r(764),o=r(2427);e.exports=function(e,t,r){try{return n(o(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}}},1889:(e,t,r)=>{var n=r(956),o=r(764);e.exports=function(e){if("Function"===n(e))return o(e)}},764:(e,t,r)=>{var n=r(3780),o=Function.prototype,i=o.call,a=n&&o.bind.bind(i,i);e.exports=n?a:function(e){return function(){return i.apply(e,arguments)}}},3012:(e,t,r)=>{var n=r(2019),o=r(7389);e.exports=function(e,t){return arguments.length<2?(r=n[e],o(r)?r:void 0):n[e]&&n[e][t];var r}},9781:(e,t,r)=>{var n=r(9909),o=r(8453),i=r(2109),a=r(2311),s=r(9163)("iterator");e.exports=function(e){if(!i(e))return o(e,s)||o(e,"@@iterator")||a[n(e)]}},9119:(e,t,r)=>{var n=r(1568),o=r(2427),i=r(6824),a=r(4259),s=r(9781),c=TypeError;e.exports=function(e,t){var r=arguments.length<2?s(e):t;if(o(r))return i(n(r,e));throw c(a(e)+" is not iterable")}},3209:(e,t,r)=>{var n=r(764),o=r(5384),i=r(7389),a=r(956),s=r(8943),c=n([].push);e.exports=function(e){if(i(e))return e;if(o(e)){for(var t=e.length,r=[],n=0;n<t;n++){var u=e[n];"string"==typeof u?c(r,u):"number"!=typeof u&&"Number"!=a(u)&&"String"!=a(u)||c(r,s(u))}var l=r.length,f=!0;return function(e,t){if(f)return f=!1,t;if(o(this))return t;for(var n=0;n<l;n++)if(r[n]===e)return t}}}},8453:(e,t,r)=>{var n=r(2427),o=r(2109);e.exports=function(e,t){var r=e[t];return o(r)?void 0:n(r)}},2371:(e,t,r)=>{var n=r(764),o=r(4247),i=Math.floor,a=n("".charAt),s=n("".replace),c=n("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,r,n,f,h){var p=r+e.length,d=n.length,m=l;return void 0!==f&&(f=o(f),m=u),s(h,m,(function(o,s){var u;switch(a(s,0)){case"$":return"$";case"&":return e;case"`":return c(t,0,r);case"'":return c(t,p);case"<":u=f[c(s,1,-1)];break;default:var l=+s;if(0===l)return o;if(l>d){var h=i(l/10);return 0===h?o:h<=d?void 0===n[h-1]?a(s,1):n[h-1]+a(s,1):o}u=n[l-1]}return void 0===u?"":u}))}},2019:function(e,t,r){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||function(){return this}()||this||Function("return this")()},627:(e,t,r)=>{var n=r(764),o=r(4247),i=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(o(e),t)}},6508:e=>{e.exports={}},6666:e=>{e.exports=function(e,t){try{1==arguments.length?console.error(e):console.error(e,t)}catch(e){}}},3345:(e,t,r)=>{var n=r(3012);e.exports=n("document","documentElement")},8437:(e,t,r)=>{var n=r(2404),o=r(2170),i=r(1220);e.exports=!n&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},2146:(e,t,r)=>{var n=r(764),o=r(2170),i=r(956),a=Object,s=n("".split);e.exports=o((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?s(e,""):a(e)}:a},3661:(e,t,r)=>{var n=r(7389),o=r(2465),i=r(9125);e.exports=function(e,t,r){var a,s;return i&&n(a=t.constructor)&&a!==r&&o(s=a.prototype)&&s!==r.prototype&&i(e,s),e}},6070:(e,t,r)=>{var n=r(764),o=r(7389),i=r(2548),a=n(Function.toString);o(i.inspectSource)||(i.inspectSource=function(e){return a(e)}),e.exports=i.inspectSource},2534:(e,t,r)=>{var n=r(2465),o=r(3085);e.exports=function(e,t){n(t)&&"cause"in t&&o(e,"cause",t.cause)}},3292:(e,t,r)=>{var n,o,i,a=r(3018),s=r(2019),c=r(2465),u=r(3085),l=r(627),f=r(2548),h=r(19),p=r(6508),d="Object already initialized",m=s.TypeError,v=s.WeakMap;if(a||f.state){var g=f.state||(f.state=new v);g.get=g.get,g.has=g.has,g.set=g.set,n=function(e,t){if(g.has(e))throw m(d);return t.facade=e,g.set(e,t),t},o=function(e){return g.get(e)||{}},i=function(e){return g.has(e)}}else{var y=h("state");p[y]=!0,n=function(e,t){if(l(e,y))throw m(d);return t.facade=e,u(e,y,t),t},o=function(e){return l(e,y)?e[y]:{}},i=function(e){return l(e,y)}}e.exports={set:n,get:o,has:i,enforce:function(e){return i(e)?o(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!c(t)||(r=o(t)).type!==e)throw m("Incompatible receiver, "+e+" required");return r}}}},2464:(e,t,r)=>{var n=r(9163),o=r(2311),i=n("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[i]===e)}},5384:(e,t,r)=>{var n=r(956);e.exports=Array.isArray||function(e){return"Array"==n(e)}},7389:(e,t,r)=>{var n=r(3398),o=n.all;e.exports=n.IS_HTMLDDA?function(e){return"function"==typeof e||e===o}:function(e){return"function"==typeof e}},5615:(e,t,r)=>{var n=r(764),o=r(2170),i=r(7389),a=r(9909),s=r(3012),c=r(6070),u=function(){},l=[],f=s("Reflect","construct"),h=/^\s*(?:class|function)\b/,p=n(h.exec),d=!h.exec(u),m=function(e){if(!i(e))return!1;try{return f(u,l,e),!0}catch(e){return!1}},v=function(e){if(!i(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return d||!!p(h,c(e))}catch(e){return!0}};v.sham=!0,e.exports=!f||o((function(){var e;return m(m.call)||!m(Object)||!m((function(){e=!0}))||e}))?v:m},1323:(e,t,r)=>{var n=r(2170),o=r(7389),i=/#|\.prototype\./,a=function(e,t){var r=c[s(e)];return r==l||r!=u&&(o(t)?n(t):!!t)},s=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},c=a.data={},u=a.NATIVE="N",l=a.POLYFILL="P";e.exports=a},2109:e=>{e.exports=function(e){return null==e}},2465:(e,t,r)=>{var n=r(7389),o=r(3398),i=o.all;e.exports=o.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:n(e)||e===i}:function(e){return"object"==typeof e?null!==e:n(e)}},3709:e=>{e.exports=!1},5863:(e,t,r)=>{var n=r(2465),o=r(956),i=r(9163)("match");e.exports=function(e){var t;return n(e)&&(void 0!==(t=e[i])?!!t:"RegExp"==o(e))}},1666:(e,t,r)=>{var n=r(3012),o=r(7389),i=r(2378),a=r(8238),s=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return o(t)&&i(t.prototype,s(e))}},7626:(e,t,r)=>{var n=r(6748),o=r(1568),i=r(6824),a=r(4259),s=r(2464),c=r(1166),u=r(2378),l=r(9119),f=r(9781),h=r(3821),p=TypeError,d=function(e,t){this.stopped=e,this.result=t},m=d.prototype;e.exports=function(e,t,r){var v,g,y,b,w,x,E,k=r&&r.that,S=!(!r||!r.AS_ENTRIES),D=!(!r||!r.IS_RECORD),P=!(!r||!r.IS_ITERATOR),A=!(!r||!r.INTERRUPTED),C=n(t,k),O=function(e){return v&&h(v,"normal",e),new d(!0,e)},F=function(e){return S?(i(e),A?C(e[0],e[1],O):C(e[0],e[1])):A?C(e,O):C(e)};if(D)v=e.iterator;else if(P)v=e;else{if(!(g=f(e)))throw p(a(e)+" is not iterable");if(s(g)){for(y=0,b=c(e);b>y;y++)if((w=F(e[y]))&&u(m,w))return w;return new d(!1)}v=l(e,g)}for(x=D?e.next:v.next;!(E=o(x,v)).done;){try{w=F(E.value)}catch(e){h(v,"throw",e)}if("object"==typeof w&&w&&u(m,w))return w}return new d(!1)}},3821:(e,t,r)=>{var n=r(1568),o=r(6824),i=r(8453);e.exports=function(e,t,r){var a,s;o(e);try{if(!(a=i(e,"return"))){if("throw"===t)throw r;return r}a=n(a,e)}catch(e){s=!0,a=e}if("throw"===t)throw r;if(s)throw a;return o(a),r}},1395:(e,t,r)=>{"use strict";var n=r(641).IteratorPrototype,o=r(2909),i=r(73),a=r(9434),s=r(2311),c=function(){return this};e.exports=function(e,t,r,u){var l=t+" Iterator";return e.prototype=o(n,{next:i(+!u,r)}),a(e,l,!1,!0),s[l]=c,e}},8629:(e,t,r)=>{"use strict";var n=r(6367),o=r(1568),i=r(3709),a=r(5114),s=r(7389),c=r(1395),u=r(9710),l=r(9125),f=r(9434),h=r(3085),p=r(4519),d=r(9163),m=r(2311),v=r(641),g=a.PROPER,y=a.CONFIGURABLE,b=v.IteratorPrototype,w=v.BUGGY_SAFARI_ITERATORS,x=d("iterator"),E="keys",k="values",S="entries",D=function(){return this};e.exports=function(e,t,r,a,d,v,P){c(r,t,a);var A,C,O,F=function(e){if(e===d&&I)return I;if(!w&&e in _)return _[e];switch(e){case E:case k:case S:return function(){return new r(this,e)}}return function(){return new r(this)}},j=t+" Iterator",T=!1,_=e.prototype,R=_[x]||_["@@iterator"]||d&&_[d],I=!w&&R||F(d),L="Array"==t&&_.entries||R;if(L&&(A=u(L.call(new e)))!==Object.prototype&&A.next&&(i||u(A)===b||(l?l(A,b):s(A[x])||p(A,x,D)),f(A,j,!0,!0),i&&(m[j]=D)),g&&d==k&&R&&R.name!==k&&(!i&&y?h(_,"name",k):(T=!0,I=function(){return o(R,this)})),d)if(C={values:F(k),keys:v?I:F(E),entries:F(S)},P)for(O in C)(w||T||!(O in _))&&p(_,O,C[O]);else n({target:t,proto:!0,forced:w||T},C);return i&&!P||_[x]===I||p(_,x,I,{name:d}),m[t]=I,C}},641:(e,t,r)=>{"use strict";var n,o,i,a=r(2170),s=r(7389),c=r(2465),u=r(2909),l=r(9710),f=r(4519),h=r(9163),p=r(3709),d=h("iterator"),m=!1;[].keys&&("next"in(i=[].keys())?(o=l(l(i)))!==Object.prototype&&(n=o):m=!0),!c(n)||a((function(){var e={};return n[d].call(e)!==e}))?n={}:p&&(n=u(n)),s(n[d])||f(n,d,(function(){return this})),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:m}},2311:e=>{e.exports={}},1166:(e,t,r)=>{var n=r(6772);e.exports=function(e){return n(e.length)}},7841:(e,t,r)=>{var n=r(764),o=r(2170),i=r(7389),a=r(627),s=r(2404),c=r(5114).CONFIGURABLE,u=r(6070),l=r(3292),f=l.enforce,h=l.get,p=String,d=Object.defineProperty,m=n("".slice),v=n("".replace),g=n([].join),y=s&&!o((function(){return 8!==d((function(){}),"length",{value:8}).length})),b=String(String).split("String"),w=e.exports=function(e,t,r){"Symbol("===m(p(t),0,7)&&(t="["+v(p(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!a(e,"name")||c&&e.name!==t)&&(s?d(e,"name",{value:t,configurable:!0}):e.name=t),y&&r&&a(r,"arity")&&e.length!==r.arity&&d(e,"length",{value:r.arity});try{r&&a(r,"constructor")&&r.constructor?s&&d(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=f(e);return a(n,"source")||(n.source=g(b,"string"==typeof t?t:"")),e};Function.prototype.toString=w((function(){return i(this)&&h(this).source||u(this)}),"toString")},7951:e=>{var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?r:t)(n)}},174:(e,t,r)=>{var n,o,i,a,s,c=r(2019),u=r(6748),l=r(3178).f,f=r(6218).set,h=r(6884),p=r(7684),d=r(9022),m=r(2173),v=r(5936),g=c.MutationObserver||c.WebKitMutationObserver,y=c.document,b=c.process,w=c.Promise,x=l(c,"queueMicrotask"),E=x&&x.value;if(!E){var k=new h,S=function(){var e,t;for(v&&(e=b.domain)&&e.exit();t=k.get();)try{t()}catch(e){throw k.head&&n(),e}e&&e.enter()};p||v||m||!g||!y?!d&&w&&w.resolve?((a=w.resolve(void 0)).constructor=w,s=u(a.then,a),n=function(){s(S)}):v?n=function(){b.nextTick(S)}:(f=u(f,c),n=function(){f(S)}):(o=!0,i=y.createTextNode(""),new g(S).observe(i,{characterData:!0}),n=function(){i.data=o=!o}),E=function(e){k.head||n(),k.add(e)}}e.exports=E},8567:(e,t,r)=>{"use strict";var n=r(2427),o=TypeError,i=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw o("Bad Promise constructor");t=e,r=n})),this.resolve=n(t),this.reject=n(r)};e.exports.f=function(e){return new i(e)}},4425:(e,t,r)=>{var n=r(8943);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:n(e)}},8410:(e,t,r)=>{var n=r(5863),o=TypeError;e.exports=function(e){if(n(e))throw o("The method doesn't accept regular expressions");return e}},8340:(e,t,r)=>{"use strict";var n=r(2404),o=r(764),i=r(1568),a=r(2170),s=r(4329),c=r(8891),u=r(8327),l=r(4247),f=r(2146),h=Object.assign,p=Object.defineProperty,d=o([].concat);e.exports=!h||a((function(){if(n&&1!==h({b:1},h(p({},"a",{enumerable:!0,get:function(){p(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol(),o="abcdefghijklmnopqrst";return e[r]=7,o.split("").forEach((function(e){t[e]=e})),7!=h({},e)[r]||s(h({},t)).join("")!=o}))?function(e,t){for(var r=l(e),o=arguments.length,a=1,h=c.f,p=u.f;o>a;)for(var m,v=f(arguments[a++]),g=h?d(s(v),h(v)):s(v),y=g.length,b=0;y>b;)m=g[b++],n&&!i(p,v,m)||(r[m]=v[m]);return r}:h},2909:(e,t,r)=>{var n,o=r(6824),i=r(948),a=r(2197),s=r(6508),c=r(3345),u=r(1220),l=r(19),f="prototype",h="script",p=l("IE_PROTO"),d=function(){},m=function(e){return"<"+h+">"+e+"</"+h+">"},v=function(e){e.write(m("")),e.close();var t=e.parentWindow.Object;return e=null,t},g=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}var e,t,r;g="undefined"!=typeof document?document.domain&&n?v(n):(t=u("iframe"),r="java"+h+":",t.style.display="none",c.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(m("document.F=Object")),e.close(),e.F):v(n);for(var o=a.length;o--;)delete g[f][a[o]];return g()};s[p]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(d[f]=o(e),r=new d,d[f]=null,r[p]=e):r=g(),void 0===t?r:i.f(r,t)}},948:(e,t,r)=>{var n=r(2404),o=r(3939),i=r(3015),a=r(6824),s=r(2415),c=r(4329);t.f=n&&!o?Object.defineProperties:function(e,t){a(e);for(var r,n=s(t),o=c(t),u=o.length,l=0;u>l;)i.f(e,r=o[l++],n[r]);return e}},3015:(e,t,r)=>{var n=r(2404),o=r(8437),i=r(3939),a=r(6824),s=r(1918),c=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,f="enumerable",h="configurable",p="writable";t.f=n?i?function(e,t,r){if(a(e),t=s(t),a(r),"function"==typeof e&&"prototype"===t&&"value"in r&&p in r&&!r[p]){var n=l(e,t);n&&n[p]&&(e[t]=r.value,r={configurable:h in r?r[h]:n[h],enumerable:f in r?r[f]:n[f],writable:!1})}return u(e,t,r)}:u:function(e,t,r){if(a(e),t=s(t),a(r),o)try{return u(e,t,r)}catch(e){}if("get"in r||"set"in r)throw c("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},3178:(e,t,r)=>{var n=r(2404),o=r(1568),i=r(8327),a=r(73),s=r(2415),c=r(1918),u=r(627),l=r(8437),f=Object.getOwnPropertyDescriptor;t.f=n?f:function(e,t){if(e=s(e),t=c(t),l)try{return f(e,t)}catch(e){}if(u(e,t))return a(!o(i.f,e,t),e[t])}},6877:(e,t,r)=>{var n=r(956),o=r(2415),i=r(8290).f,a=r(6765),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return s&&"Window"==n(e)?function(e){try{return i(e)}catch(e){return a(s)}}(e):i(o(e))}},8290:(e,t,r)=>{var n=r(9814),o=r(2197).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,o)}},8891:(e,t)=>{t.f=Object.getOwnPropertySymbols},9710:(e,t,r)=>{var n=r(627),o=r(7389),i=r(4247),a=r(19),s=r(2757),c=a("IE_PROTO"),u=Object,l=u.prototype;e.exports=s?u.getPrototypeOf:function(e){var t=i(e);if(n(t,c))return t[c];var r=t.constructor;return o(r)&&t instanceof r?r.prototype:t instanceof u?l:null}},2378:(e,t,r)=>{var n=r(764);e.exports=n({}.isPrototypeOf)},9814:(e,t,r)=>{var n=r(764),o=r(627),i=r(2415),a=r(9483).indexOf,s=r(6508),c=n([].push);e.exports=function(e,t){var r,n=i(e),u=0,l=[];for(r in n)!o(s,r)&&o(n,r)&&c(l,r);for(;t.length>u;)o(n,r=t[u++])&&(~a(l,r)||c(l,r));return l}},4329:(e,t,r)=>{var n=r(9814),o=r(2197);e.exports=Object.keys||function(e){return n(e,o)}},8327:(e,t)=>{"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,o=n&&!r.call({1:2},1);t.f=o?function(e){var t=n(this,e);return!!t&&t.enumerable}:r},9125:(e,t,r)=>{var n=r(5904),o=r(6824),i=r(3693);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=n(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return o(r),i(n),t?e(r,n):r.__proto__=n,r}}():void 0)},3850:(e,t,r)=>{"use strict";var n=r(7867),o=r(9909);e.exports=n?{}.toString:function(){return"[object "+o(this)+"]"}},9276:(e,t,r)=>{var n=r(1568),o=r(7389),i=r(2465),a=TypeError;e.exports=function(e,t){var r,s;if("string"===t&&o(r=e.toString)&&!i(s=n(r,e)))return s;if(o(r=e.valueOf)&&!i(s=n(r,e)))return s;if("string"!==t&&o(r=e.toString)&&!i(s=n(r,e)))return s;throw a("Can't convert object to primitive value")}},2463:(e,t,r)=>{var n=r(3012),o=r(764),i=r(8290),a=r(8891),s=r(6824),c=o([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=i.f(s(e)),r=a.f;return r?c(t,r(e)):t}},9683:(e,t,r)=>{var n=r(2019);e.exports=n},481:e=>{e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},6069:(e,t,r)=>{var n=r(2019),o=r(1636),i=r(7389),a=r(1323),s=r(6070),c=r(9163),u=r(6786),l=r(9384),f=r(3709),h=r(7098),p=o&&o.prototype,d=c("species"),m=!1,v=i(n.PromiseRejectionEvent),g=a("Promise",(function(){var e=s(o),t=e!==String(o);if(!t&&66===h)return!0;if(f&&(!p.catch||!p.finally))return!0;if(!h||h<51||!/native code/.test(e)){var r=new o((function(e){e(1)})),n=function(e){e((function(){}),(function(){}))};if((r.constructor={})[d]=n,!(m=r.then((function(){}))instanceof n))return!0}return!t&&(u||l)&&!v}));e.exports={CONSTRUCTOR:g,REJECTION_EVENT:v,SUBCLASSING:m}},1636:(e,t,r)=>{var n=r(2019);e.exports=n.Promise},5777:(e,t,r)=>{var n=r(6824),o=r(2465),i=r(8567);e.exports=function(e,t){if(n(e),o(t)&&t.constructor===e)return t;var r=i.f(e);return(0,r.resolve)(t),r.promise}},3152:(e,t,r)=>{var n=r(1636),o=r(9328),i=r(6069).CONSTRUCTOR;e.exports=i||!o((function(e){n.all(e).then(void 0,(function(){}))}))},5981:(e,t,r)=>{var n=r(3015).f;e.exports=function(e,t,r){r in e||n(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})}},6884:e=>{var t=function(){this.head=null,this.tail=null};t.prototype={add:function(e){var t={item:e,next:null},r=this.tail;r?r.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}},e.exports=t},5198:(e,t,r)=>{var n=r(1568),o=r(6824),i=r(7389),a=r(956),s=r(9338),c=TypeError;e.exports=function(e,t){var r=e.exec;if(i(r)){var u=n(r,e,t);return null!==u&&o(u),u}if("RegExp"===a(e))return n(s,e,t);throw c("RegExp#exec called on incompatible receiver")}},9338:(e,t,r)=>{"use strict";var n,o,i=r(1568),a=r(764),s=r(8943),c=r(8811),u=r(5526),l=r(4558),f=r(2909),h=r(3292).get,p=r(2993),d=r(9953),m=l("native-string-replace",String.prototype.replace),v=RegExp.prototype.exec,g=v,y=a("".charAt),b=a("".indexOf),w=a("".replace),x=a("".slice),E=(o=/b*/g,i(v,n=/a/,"a"),i(v,o,"a"),0!==n.lastIndex||0!==o.lastIndex),k=u.BROKEN_CARET,S=void 0!==/()??/.exec("")[1];(E||S||k||p||d)&&(g=function(e){var t,r,n,o,a,u,l,p=this,d=h(p),D=s(e),P=d.raw;if(P)return P.lastIndex=p.lastIndex,t=i(g,P,D),p.lastIndex=P.lastIndex,t;var A=d.groups,C=k&&p.sticky,O=i(c,p),F=p.source,j=0,T=D;if(C&&(O=w(O,"y",""),-1===b(O,"g")&&(O+="g"),T=x(D,p.lastIndex),p.lastIndex>0&&(!p.multiline||p.multiline&&"\n"!==y(D,p.lastIndex-1))&&(F="(?: "+F+")",T=" "+T,j++),r=new RegExp("^(?:"+F+")",O)),S&&(r=new RegExp("^"+F+"$(?!\\s)",O)),E&&(n=p.lastIndex),o=i(v,C?r:p,T),C?o?(o.input=x(o.input,j),o[0]=x(o[0],j),o.index=p.lastIndex,p.lastIndex+=o[0].length):p.lastIndex=0:E&&o&&(p.lastIndex=p.global?o.index+o[0].length:n),S&&o&&o.length>1&&i(m,o[0],r,(function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(o[a]=void 0)})),o&&A)for(o.groups=u=f(null),a=0;a<A.length;a++)u[(l=A[a])[0]]=o[l[1]];return o}),e.exports=g},8811:(e,t,r)=>{"use strict";var n=r(6824);e.exports=function(){var e=n(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},6059:(e,t,r)=>{var n=r(1568),o=r(627),i=r(2378),a=r(8811),s=RegExp.prototype;e.exports=function(e){var t=e.flags;return void 0!==t||"flags"in s||o(e,"flags")||!i(s,e)?t:n(a,e)}},5526:(e,t,r)=>{var n=r(2170),o=r(2019).RegExp,i=n((function(){var e=o("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),a=i||n((function(){return!o("a","y").sticky})),s=i||n((function(){var e=o("^r","gy");return e.lastIndex=2,null!=e.exec("str")}));e.exports={BROKEN_CARET:s,MISSED_STICKY:a,UNSUPPORTED_Y:i}},2993:(e,t,r)=>{var n=r(2170),o=r(2019).RegExp;e.exports=n((function(){var e=o(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}))},9953:(e,t,r)=>{var n=r(2170),o=r(2019).RegExp;e.exports=n((function(){var e=o("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},8466:(e,t,r)=>{var n=r(2109),o=TypeError;e.exports=function(e){if(n(e))throw o("Can't call method on "+e);return e}},2977:e=>{e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},9229:(e,t,r)=>{"use strict";var n=r(3012),o=r(1571),i=r(9163),a=r(2404),s=i("species");e.exports=function(e){var t=n(e);a&&t&&!t[s]&&o(t,s,{configurable:!0,get:function(){return this}})}},9434:(e,t,r)=>{var n=r(3015).f,o=r(627),i=r(9163)("toStringTag");e.exports=function(e,t,r){e&&!r&&(e=e.prototype),e&&!o(e,i)&&n(e,i,{configurable:!0,value:t})}},19:(e,t,r)=>{var n=r(4558),o=r(8103),i=n("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},2548:(e,t,r)=>{var n=r(2019),o=r(7528),i="__core-js_shared__",a=n[i]||o(i,{});e.exports=a},4558:(e,t,r)=>{var n=r(3709),o=r(2548);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.31.0",mode:n?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.31.0/LICENSE",source:"https://github.com/zloirock/core-js"})},8256:(e,t,r)=>{var n=r(6824),o=r(7752),i=r(2109),a=r(9163)("species");e.exports=function(e,t){var r,s=n(e).constructor;return void 0===s||i(r=n(s)[a])?t:o(r)}},7241:(e,t,r)=>{var n=r(2170);e.exports=function(e){return n((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))}},4003:(e,t,r)=>{var n=r(764),o=r(6287),i=r(8943),a=r(8466),s=n("".charAt),c=n("".charCodeAt),u=n("".slice),l=function(e){return function(t,r){var n,l,f=i(a(t)),h=o(r),p=f.length;return h<0||h>=p?e?"":void 0:(n=c(f,h))<55296||n>56319||h+1===p||(l=c(f,h+1))<56320||l>57343?e?s(f,h):n:e?u(f,h,h+2):l-56320+(n-55296<<10)+65536}};e.exports={codeAt:l(!1),charAt:l(!0)}},5946:(e,t,r)=>{var n=r(764),o=2147483647,i=/[^\0-\u007E]/,a=/[.\u3002\uFF0E\uFF61]/g,s="Overflow: input needs wider integers to process",c=RangeError,u=n(a.exec),l=Math.floor,f=String.fromCharCode,h=n("".charCodeAt),p=n([].join),d=n([].push),m=n("".replace),v=n("".split),g=n("".toLowerCase),y=function(e){return e+22+75*(e<26)},b=function(e,t,r){var n=0;for(e=r?l(e/700):e>>1,e+=l(e/t);e>455;)e=l(e/35),n+=36;return l(n+36*e/(e+38))},w=function(e){var t=[];e=function(e){for(var t=[],r=0,n=e.length;r<n;){var o=h(e,r++);if(o>=55296&&o<=56319&&r<n){var i=h(e,r++);56320==(64512&i)?d(t,((1023&o)<<10)+(1023&i)+65536):(d(t,o),r--)}else d(t,o)}return t}(e);var r,n,i=e.length,a=128,u=0,m=72;for(r=0;r<e.length;r++)(n=e[r])<128&&d(t,f(n));var v=t.length,g=v;for(v&&d(t,"-");g<i;){var w=o;for(r=0;r<e.length;r++)(n=e[r])>=a&&n<w&&(w=n);var x=g+1;if(w-a>l((o-u)/x))throw c(s);for(u+=(w-a)*x,a=w,r=0;r<e.length;r++){if((n=e[r])<a&&++u>o)throw c(s);if(n==a){for(var E=u,k=36;;){var S=k<=m?1:k>=m+26?26:k-m;if(E<S)break;var D=E-S,P=36-S;d(t,f(y(S+D%P))),E=l(D/P),k+=36}d(t,f(y(E))),m=b(u,x,g==v),u=0,g++}}u++,a++}return p(t,"")};e.exports=function(e){var t,r,n=[],o=v(m(g(e),a,"."),".");for(t=0;t<o.length;t++)r=o[t],d(n,u(i,r)?"xn--"+w(r):r);return p(n,".")}},1582:(e,t,r)=>{var n=r(5114).PROPER,o=r(2170),i=r(2567);e.exports=function(e){return o((function(){return!!i[e]()||"​…᠎"!=="​…᠎"[e]()||n&&i[e].name!==e}))}},252:(e,t,r)=>{var n=r(764),o=r(8466),i=r(8943),a=r(2567),s=n("".replace),c=RegExp("^["+a+"]+"),u=RegExp("(^|[^"+a+"])["+a+"]+$"),l=function(e){return function(t){var r=i(o(t));return 1&e&&(r=s(r,c,"")),2&e&&(r=s(r,u,"$1")),r}};e.exports={start:l(1),end:l(2),trim:l(3)}},3488:(e,t,r)=>{var n=r(7098),o=r(2170),i=r(2019).String;e.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol();return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},2818:(e,t,r)=>{var n=r(1568),o=r(3012),i=r(9163),a=r(4519);e.exports=function(){var e=o("Symbol"),t=e&&e.prototype,r=t&&t.valueOf,s=i("toPrimitive");t&&!t[s]&&a(t,s,(function(e){return n(r,this)}),{arity:1})}},8463:(e,t,r)=>{var n=r(3488);e.exports=n&&!!Symbol.for&&!!Symbol.keyFor},6218:(e,t,r)=>{var n,o,i,a,s=r(2019),c=r(1152),u=r(6748),l=r(7389),f=r(627),h=r(2170),p=r(3345),d=r(2980),m=r(1220),v=r(3108),g=r(7684),y=r(5936),b=s.setImmediate,w=s.clearImmediate,x=s.process,E=s.Dispatch,k=s.Function,S=s.MessageChannel,D=s.String,P=0,A={},C="onreadystatechange";h((function(){n=s.location}));var O=function(e){if(f(A,e)){var t=A[e];delete A[e],t()}},F=function(e){return function(){O(e)}},j=function(e){O(e.data)},T=function(e){s.postMessage(D(e),n.protocol+"//"+n.host)};b&&w||(b=function(e){v(arguments.length,1);var t=l(e)?e:k(e),r=d(arguments,1);return A[++P]=function(){c(t,void 0,r)},o(P),P},w=function(e){delete A[e]},y?o=function(e){x.nextTick(F(e))}:E&&E.now?o=function(e){E.now(F(e))}:S&&!g?(a=(i=new S).port2,i.port1.onmessage=j,o=u(a.postMessage,a)):s.addEventListener&&l(s.postMessage)&&!s.importScripts&&n&&"file:"!==n.protocol&&!h(T)?(o=T,s.addEventListener("message",j,!1)):o=C in m("script")?function(e){p.appendChild(m("script"))[C]=function(){p.removeChild(this),O(e)}}:function(e){setTimeout(F(e),0)}),e.exports={set:b,clear:w}},3041:(e,t,r)=>{var n=r(6287),o=Math.max,i=Math.min;e.exports=function(e,t){var r=n(e);return r<0?o(r+t,0):i(r,t)}},2415:(e,t,r)=>{var n=r(2146),o=r(8466);e.exports=function(e){return n(o(e))}},6287:(e,t,r)=>{var n=r(7951);e.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}},6772:(e,t,r)=>{var n=r(6287),o=Math.min;e.exports=function(e){return e>0?o(n(e),9007199254740991):0}},4247:(e,t,r)=>{var n=r(8466),o=Object;e.exports=function(e){return o(n(e))}},4929:(e,t,r)=>{var n=r(1568),o=r(2465),i=r(1666),a=r(8453),s=r(9276),c=r(9163),u=TypeError,l=c("toPrimitive");e.exports=function(e,t){if(!o(e)||i(e))return e;var r,c=a(e,l);if(c){if(void 0===t&&(t="default"),r=n(c,e,t),!o(r)||i(r))return r;throw u("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},1918:(e,t,r)=>{var n=r(4929),o=r(1666);e.exports=function(e){var t=n(e,"string");return o(t)?t:t+""}},7867:(e,t,r)=>{var n={};n[r(9163)("toStringTag")]="z",e.exports="[object z]"===String(n)},8943:(e,t,r)=>{var n=r(9909),o=String;e.exports=function(e){if("Symbol"===n(e))throw TypeError("Cannot convert a Symbol value to a string");return o(e)}},4259:e=>{var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},8103:(e,t,r)=>{var n=r(764),o=0,i=Math.random(),a=n(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++o+i,36)}},5047:(e,t,r)=>{var n=r(2170),o=r(9163),i=r(2404),a=r(3709),s=o("iterator");e.exports=!n((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,r=new URLSearchParams("a=1&a=2"),n="";return e.pathname="c%20d",t.forEach((function(e,r){t.delete("b"),n+=r+e})),r.delete("a",2),a&&(!e.toJSON||!r.has("a",1)||r.has("a",2))||!t.size&&(a||!i)||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[s]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host}))},8238:(e,t,r)=>{var n=r(3488);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3939:(e,t,r)=>{var n=r(2404),o=r(2170);e.exports=n&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},3108:e=>{var t=TypeError;e.exports=function(e,r){if(e<r)throw t("Not enough arguments");return e}},3018:(e,t,r)=>{var n=r(2019),o=r(7389),i=n.WeakMap;e.exports=o(i)&&/native code/.test(String(i))},3758:(e,t,r)=>{var n=r(9683),o=r(627),i=r(3920),a=r(3015).f;e.exports=function(e){var t=n.Symbol||(n.Symbol={});o(t,e)||a(t,e,{value:i.f(e)})}},3920:(e,t,r)=>{var n=r(9163);t.f=n},9163:(e,t,r)=>{var n=r(2019),o=r(4558),i=r(627),a=r(8103),s=r(3488),c=r(8238),u=n.Symbol,l=o("wks"),f=c?u.for||u:u&&u.withoutSetter||a;e.exports=function(e){return i(l,e)||(l[e]=s&&i(u,e)?u[e]:f("Symbol."+e)),l[e]}},2567:e=>{e.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},5171:(e,t,r)=>{"use strict";var n=r(3012),o=r(627),i=r(3085),a=r(2378),s=r(9125),c=r(9962),u=r(5981),l=r(3661),f=r(4425),h=r(2534),p=r(9235),d=r(2404),m=r(3709);e.exports=function(e,t,r,v){var g="stackTraceLimit",y=v?2:1,b=e.split("."),w=b[b.length-1],x=n.apply(null,b);if(x){var E=x.prototype;if(!m&&o(E,"cause")&&delete E.cause,!r)return x;var k=n("Error"),S=t((function(e,t){var r=f(v?t:e,void 0),n=v?new x(e):new x;return void 0!==r&&i(n,"message",r),p(n,S,n.stack,2),this&&a(E,this)&&l(n,this,S),arguments.length>y&&h(n,arguments[y]),n}));if(S.prototype=E,"Error"!==w?s?s(S,k):c(S,k,{name:!0}):d&&g in x&&(u(S,x,g),u(S,x,"prepareStackTrace")),c(S,x),!m)try{E.name!==w&&i(E,"name",w),E.constructor=S}catch(e){}return S}}},7190:(e,t,r)=>{"use strict";var n=r(6367),o=r(2170),i=r(5384),a=r(2465),s=r(4247),c=r(1166),u=r(7711),l=r(7926),f=r(1780),h=r(5815),p=r(9163),d=r(7098),m=p("isConcatSpreadable"),v=d>=51||!o((function(){var e=[];return e[m]=!1,e.concat()[0]!==e})),g=function(e){if(!a(e))return!1;var t=e[m];return void 0!==t?!!t:i(e)};n({target:"Array",proto:!0,arity:1,forced:!v||!h("concat")},{concat:function(e){var t,r,n,o,i,a=s(this),h=f(a,0),p=0;for(t=-1,n=arguments.length;t<n;t++)if(g(i=-1===t?a:arguments[t]))for(o=c(i),u(p+o),r=0;r<o;r++,p++)r in i&&l(h,p,i[r]);else u(p+1),l(h,p++,i);return h.length=p,h}})},4703:(e,t,r)=>{"use strict";var n=r(6367),o=r(3250).filter;n({target:"Array",proto:!0,forced:!r(5815)("filter")},{filter:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},6230:(e,t,r)=>{"use strict";var n=r(6367),o=r(1385);n({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},2443:(e,t,r)=>{"use strict";var n=r(6367),o=r(9483).includes,i=r(2170),a=r(2921);n({target:"Array",proto:!0,forced:i((function(){return!Array(1).includes()}))},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},5591:(e,t,r)=>{"use strict";var n=r(2415),o=r(2921),i=r(2311),a=r(3292),s=r(3015).f,c=r(8629),u=r(2229),l=r(3709),f=r(2404),h="Array Iterator",p=a.set,d=a.getterFor(h);e.exports=c(Array,"Array",(function(e,t){p(this,{type:h,target:n(e),index:0,kind:t})}),(function(){var e=d(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,u(void 0,!0)):u("keys"==r?n:"values"==r?t[n]:[n,t[n]],!1)}),"values");var m=i.Arguments=i.Array;if(o("keys"),o("values"),o("entries"),!l&&f&&"values"!==m.name)try{s(m,"name",{value:"values"})}catch(e){}},888:(e,t,r)=>{"use strict";var n=r(6367),o=r(764),i=r(2146),a=r(2415),s=r(8478),c=o([].join);n({target:"Array",proto:!0,forced:i!=Object||!s("join",",")},{join:function(e){return c(a(this),void 0===e?",":e)}})},8213:(e,t,r)=>{"use strict";var n=r(6367),o=r(3250).map;n({target:"Array",proto:!0,forced:!r(5815)("map")},{map:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},5013:(e,t,r)=>{"use strict";var n=r(6367),o=r(4247),i=r(1166),a=r(9912),s=r(7711);n({target:"Array",proto:!0,arity:1,forced:r(2170)((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}()},{push:function(e){var t=o(this),r=i(t),n=arguments.length;s(r+n);for(var c=0;c<n;c++)t[r]=arguments[c],r++;return a(t,r),r}})},5041:(e,t,r)=>{"use strict";var n=r(6367),o=r(2005).left,i=r(8478),a=r(7098);n({target:"Array",proto:!0,forced:!r(5936)&&a>79&&a<83||!i("reduce")},{reduce:function(e){var t=arguments.length;return o(this,e,t,t>1?arguments[1]:void 0)}})},3934:(e,t,r)=>{"use strict";var n=r(6367),o=r(5384),i=r(5615),a=r(2465),s=r(3041),c=r(1166),u=r(2415),l=r(7926),f=r(9163),h=r(5815),p=r(2980),d=h("slice"),m=f("species"),v=Array,g=Math.max;n({target:"Array",proto:!0,forced:!d},{slice:function(e,t){var r,n,f,h=u(this),d=c(h),y=s(e,d),b=s(void 0===t?d:t,d);if(o(h)&&(r=h.constructor,(i(r)&&(r===v||o(r.prototype))||a(r)&&null===(r=r[m]))&&(r=void 0),r===v||void 0===r))return p(h,y,b);for(n=new(void 0===r?v:r)(g(b-y,0)),f=0;y<b;y++,f++)y in h&&l(n,f,h[y]);return n.length=f,n}})},3344:(e,t,r)=>{var n=r(764),o=r(4519),i=Date.prototype,a="Invalid Date",s="toString",c=n(i[s]),u=n(i.getTime);String(new Date(NaN))!=a&&o(i,s,(function(){var e=u(this);return e==e?c(this):a}))},7313:(e,t,r)=>{var n=r(6367),o=r(2019),i=r(1152),a=r(5171),s="WebAssembly",c=o[s],u=7!==Error("e",{cause:7}).cause,l=function(e,t){var r={};r[e]=a(e,t,u),n({global:!0,constructor:!0,arity:1,forced:u},r)},f=function(e,t){if(c&&c[e]){var r={};r[e]=a(s+"."+e,t,u),n({target:s,stat:!0,constructor:!0,arity:1,forced:u},r)}};l("Error",(function(e){return function(t){return i(e,this,arguments)}})),l("EvalError",(function(e){return function(t){return i(e,this,arguments)}})),l("RangeError",(function(e){return function(t){return i(e,this,arguments)}})),l("ReferenceError",(function(e){return function(t){return i(e,this,arguments)}})),l("SyntaxError",(function(e){return function(t){return i(e,this,arguments)}})),l("TypeError",(function(e){return function(t){return i(e,this,arguments)}})),l("URIError",(function(e){return function(t){return i(e,this,arguments)}})),f("CompileError",(function(e){return function(t){return i(e,this,arguments)}})),f("LinkError",(function(e){return function(t){return i(e,this,arguments)}})),f("RuntimeError",(function(e){return function(t){return i(e,this,arguments)}}))},1044:(e,t,r)=>{var n=r(4519),o=r(123),i=Error.prototype;i.toString!==o&&n(i,"toString",o)},3740:(e,t,r)=>{var n=r(2404),o=r(5114).EXISTS,i=r(764),a=r(1571),s=Function.prototype,c=i(s.toString),u=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,l=i(u.exec);n&&!o&&a(s,"name",{configurable:!0,get:function(){try{return l(u,c(this))[1]}catch(e){return""}}})},776:(e,t,r)=>{var n=r(6367),o=r(3012),i=r(1152),a=r(1568),s=r(764),c=r(2170),u=r(7389),l=r(1666),f=r(2980),h=r(3209),p=r(3488),d=String,m=o("JSON","stringify"),v=s(/./.exec),g=s("".charAt),y=s("".charCodeAt),b=s("".replace),w=s(1..toString),x=/[\uD800-\uDFFF]/g,E=/^[\uD800-\uDBFF]$/,k=/^[\uDC00-\uDFFF]$/,S=!p||c((function(){var e=o("Symbol")();return"[null]"!=m([e])||"{}"!=m({a:e})||"{}"!=m(Object(e))})),D=c((function(){return'"\\udf06\\ud834"'!==m("\udf06\ud834")||'"\\udead"'!==m("\udead")})),P=function(e,t){var r=f(arguments),n=h(t);if(u(n)||void 0!==e&&!l(e))return r[1]=function(e,t){if(u(n)&&(t=a(n,this,d(e),t)),!l(t))return t},i(m,null,r)},A=function(e,t,r){var n=g(r,t-1),o=g(r,t+1);return v(E,e)&&!v(k,o)||v(k,e)&&!v(E,n)?"\\u"+w(y(e,0),16):e};m&&n({target:"JSON",stat:!0,arity:3,forced:S||D},{stringify:function(e,t,r){var n=f(arguments),o=i(S?P:m,null,n);return D&&"string"==typeof o?b(o,x,A):o}})},4332:(e,t,r)=>{var n=r(6367),o=r(8340);n({target:"Object",stat:!0,arity:2,forced:Object.assign!==o},{assign:o})},7462:(e,t,r)=>{var n=r(6367),o=r(2404),i=r(948).f;n({target:"Object",stat:!0,forced:Object.defineProperties!==i,sham:!o},{defineProperties:i})},5148:(e,t,r)=>{var n=r(6367),o=r(2404),i=r(3015).f;n({target:"Object",stat:!0,forced:Object.defineProperty!==i,sham:!o},{defineProperty:i})},9855:(e,t,r)=>{var n=r(6367),o=r(2170),i=r(2415),a=r(3178).f,s=r(2404);n({target:"Object",stat:!0,forced:!s||o((function(){a(1)})),sham:!s},{getOwnPropertyDescriptor:function(e,t){return a(i(e),t)}})},5126:(e,t,r)=>{var n=r(6367),o=r(2404),i=r(2463),a=r(2415),s=r(3178),c=r(7926);n({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(e){for(var t,r,n=a(e),o=s.f,u=i(n),l={},f=0;u.length>f;)void 0!==(r=o(n,t=u[f++]))&&c(l,t,r);return l}})},1423:(e,t,r)=>{var n=r(6367),o=r(3488),i=r(2170),a=r(8891),s=r(4247);n({target:"Object",stat:!0,forced:!o||i((function(){a.f(1)}))},{getOwnPropertySymbols:function(e){var t=a.f;return t?t(s(e)):[]}})},5444:(e,t,r)=>{var n=r(6367),o=r(4247),i=r(4329);n({target:"Object",stat:!0,forced:r(2170)((function(){i(1)}))},{keys:function(e){return i(o(e))}})},3583:(e,t,r)=>{var n=r(7867),o=r(4519),i=r(3850);n||o(Object.prototype,"toString",i,{unsafe:!0})},2022:(e,t,r)=>{"use strict";var n=r(6367),o=r(1568),i=r(2427),a=r(8567),s=r(481),c=r(7626);n({target:"Promise",stat:!0,forced:r(3152)},{all:function(e){var t=this,r=a.f(t),n=r.resolve,u=r.reject,l=s((function(){var r=i(t.resolve),a=[],s=0,l=1;c(e,(function(e){var i=s++,c=!1;l++,o(r,t,e).then((function(e){c||(c=!0,a[i]=e,--l||n(a))}),u)})),--l||n(a)}));return l.error&&u(l.value),r.promise}})},7089:(e,t,r)=>{"use strict";var n=r(6367),o=r(3709),i=r(6069).CONSTRUCTOR,a=r(1636),s=r(3012),c=r(7389),u=r(4519),l=a&&a.prototype;if(n({target:"Promise",proto:!0,forced:i,real:!0},{catch:function(e){return this.then(void 0,e)}}),!o&&c(a)){var f=s("Promise").prototype.catch;l.catch!==f&&u(l,"catch",f,{unsafe:!0})}},898:(e,t,r)=>{"use strict";var n,o,i,a=r(6367),s=r(3709),c=r(5936),u=r(2019),l=r(1568),f=r(4519),h=r(9125),p=r(9434),d=r(9229),m=r(2427),v=r(7389),g=r(2465),y=r(1167),b=r(8256),w=r(6218).set,x=r(174),E=r(6666),k=r(481),S=r(6884),D=r(3292),P=r(1636),A=r(6069),C=r(8567),O="Promise",F=A.CONSTRUCTOR,j=A.REJECTION_EVENT,T=A.SUBCLASSING,_=D.getterFor(O),R=D.set,I=P&&P.prototype,L=P,B=I,M=u.TypeError,N=u.document,H=u.process,z=C.f,U=z,$=!!(N&&N.createEvent&&u.dispatchEvent),q="unhandledrejection",V=function(e){var t;return!(!g(e)||!v(t=e.then))&&t},G=function(e,t){var r,n,o,i=t.value,a=1==t.state,s=a?e.ok:e.fail,c=e.resolve,u=e.reject,f=e.domain;try{s?(a||(2===t.rejection&&Y(t),t.rejection=1),!0===s?r=i:(f&&f.enter(),r=s(i),f&&(f.exit(),o=!0)),r===e.promise?u(M("Promise-chain cycle")):(n=V(r))?l(n,r,c,u):c(r)):u(i)}catch(e){f&&!o&&f.exit(),u(e)}},W=function(e,t){e.notified||(e.notified=!0,x((function(){for(var r,n=e.reactions;r=n.get();)G(r,e);e.notified=!1,t&&!e.rejection&&Q(e)})))},K=function(e,t,r){var n,o;$?((n=N.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),u.dispatchEvent(n)):n={promise:t,reason:r},!j&&(o=u["on"+e])?o(n):e===q&&E("Unhandled promise rejection",r)},Q=function(e){l(w,u,(function(){var t,r=e.facade,n=e.value;if(Z(e)&&(t=k((function(){c?H.emit("unhandledRejection",n,r):K(q,r,n)})),e.rejection=c||Z(e)?2:1,t.error))throw t.value}))},Z=function(e){return 1!==e.rejection&&!e.parent},Y=function(e){l(w,u,(function(){var t=e.facade;c?H.emit("rejectionHandled",t):K("rejectionhandled",t,e.value)}))},X=function(e,t,r){return function(n){e(t,n,r)}},J=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,W(e,!0))},ee=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw M("Promise can't be resolved itself");var n=V(t);n?x((function(){var r={done:!1};try{l(n,t,X(ee,r,e),X(J,r,e))}catch(t){J(r,t,e)}})):(e.value=t,e.state=1,W(e,!1))}catch(t){J({done:!1},t,e)}}};if(F&&(B=(L=function(e){y(this,B),m(e),l(n,this);var t=_(this);try{e(X(ee,t),X(J,t))}catch(e){J(t,e)}}).prototype,(n=function(e){R(this,{type:O,done:!1,notified:!1,parent:!1,reactions:new S,rejection:!1,state:0,value:void 0})}).prototype=f(B,"then",(function(e,t){var r=_(this),n=z(b(this,L));return r.parent=!0,n.ok=!v(e)||e,n.fail=v(t)&&t,n.domain=c?H.domain:void 0,0==r.state?r.reactions.add(n):x((function(){G(n,r)})),n.promise})),o=function(){var e=new n,t=_(e);this.promise=e,this.resolve=X(ee,t),this.reject=X(J,t)},C.f=z=function(e){return e===L||undefined===e?new o(e):U(e)},!s&&v(P)&&I!==Object.prototype)){i=I.then,T||f(I,"then",(function(e,t){var r=this;return new L((function(e,t){l(i,r,e,t)})).then(e,t)}),{unsafe:!0});try{delete I.constructor}catch(e){}h&&h(I,B)}a({global:!0,constructor:!0,wrap:!0,forced:F},{Promise:L}),p(L,O,!1,!0),d(O)},7395:(e,t,r)=>{r(898),r(2022),r(7089),r(9795),r(5264),r(598)},9795:(e,t,r)=>{"use strict";var n=r(6367),o=r(1568),i=r(2427),a=r(8567),s=r(481),c=r(7626);n({target:"Promise",stat:!0,forced:r(3152)},{race:function(e){var t=this,r=a.f(t),n=r.reject,u=s((function(){var a=i(t.resolve);c(e,(function(e){o(a,t,e).then(r.resolve,n)}))}));return u.error&&n(u.value),r.promise}})},5264:(e,t,r)=>{"use strict";var n=r(6367),o=r(1568),i=r(8567);n({target:"Promise",stat:!0,forced:r(6069).CONSTRUCTOR},{reject:function(e){var t=i.f(this);return o(t.reject,void 0,e),t.promise}})},598:(e,t,r)=>{"use strict";var n=r(6367),o=r(3012),i=r(3709),a=r(1636),s=r(6069).CONSTRUCTOR,c=r(5777),u=o("Promise"),l=i&&!s;n({target:"Promise",stat:!0,forced:i||s},{resolve:function(e){return c(l&&this===u?a:this,e)}})},1333:(e,t,r)=>{var n=r(6367),o=r(3012),i=r(1152),a=r(8836),s=r(7752),c=r(6824),u=r(2465),l=r(2909),f=r(2170),h=o("Reflect","construct"),p=Object.prototype,d=[].push,m=f((function(){function e(){}return!(h((function(){}),[],e)instanceof e)})),v=!f((function(){h((function(){}))})),g=m||v;n({target:"Reflect",stat:!0,forced:g,sham:g},{construct:function(e,t){s(e),c(t);var r=arguments.length<3?e:s(arguments[2]);if(v&&!m)return h(e,t,r);if(e==r){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var n=[null];return i(d,n,t),new(i(a,e,n))}var o=r.prototype,f=l(u(o)?o:p),g=i(e,f,t);return u(g)?g:f}})},6585:(e,t,r)=>{var n=r(6367),o=r(2019),i=r(9434);n({global:!0},{Reflect:{}}),i(o.Reflect,"Reflect",!0)},3473:(e,t,r)=>{var n=r(2404),o=r(2019),i=r(764),a=r(1323),s=r(3661),c=r(3085),u=r(8290).f,l=r(2378),f=r(5863),h=r(8943),p=r(6059),d=r(5526),m=r(5981),v=r(4519),g=r(2170),y=r(627),b=r(3292).enforce,w=r(9229),x=r(9163),E=r(2993),k=r(9953),S=x("match"),D=o.RegExp,P=D.prototype,A=o.SyntaxError,C=i(P.exec),O=i("".charAt),F=i("".replace),j=i("".indexOf),T=i("".slice),_=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,R=/a/g,I=/a/g,L=new D(R)!==R,B=d.MISSED_STICKY,M=d.UNSUPPORTED_Y,N=n&&(!L||B||E||k||g((function(){return I[S]=!1,D(R)!=R||D(I)==I||"/a/i"!=D(R,"i")})));if(a("RegExp",N)){for(var H=function(e,t){var r,n,o,i,a,u,d=l(P,this),m=f(e),v=void 0===t,g=[],w=e;if(!d&&m&&v&&e.constructor===H)return e;if((m||l(P,e))&&(e=e.source,v&&(t=p(w))),e=void 0===e?"":h(e),t=void 0===t?"":h(t),w=e,E&&"dotAll"in R&&(n=!!t&&j(t,"s")>-1)&&(t=F(t,/s/g,"")),r=t,B&&"sticky"in R&&(o=!!t&&j(t,"y")>-1)&&M&&(t=F(t,/y/g,"")),k&&(i=function(e){for(var t,r=e.length,n=0,o="",i=[],a={},s=!1,c=!1,u=0,l="";n<=r;n++){if("\\"===(t=O(e,n)))t+=O(e,++n);else if("]"===t)s=!1;else if(!s)switch(!0){case"["===t:s=!0;break;case"("===t:C(_,T(e,n+1))&&(n+=2,c=!0),o+=t,u++;continue;case">"===t&&c:if(""===l||y(a,l))throw new A("Invalid capture group name");a[l]=!0,i[i.length]=[l,u],c=!1,l="";continue}c?l+=t:o+=t}return[o,i]}(e),e=i[0],g=i[1]),a=s(D(e,t),d?this:P,H),(n||o||g.length)&&(u=b(a),n&&(u.dotAll=!0,u.raw=H(function(e){for(var t,r=e.length,n=0,o="",i=!1;n<=r;n++)"\\"!==(t=O(e,n))?i||"."!==t?("["===t?i=!0:"]"===t&&(i=!1),o+=t):o+="[\\s\\S]":o+=t+O(e,++n);return o}(e),r)),o&&(u.sticky=!0),g.length&&(u.groups=g)),e!==w)try{c(a,"source",""===w?"(?:)":w)}catch(e){}return a},z=u(D),U=0;z.length>U;)m(H,D,z[U++]);P.constructor=H,H.prototype=P,v(o,"RegExp",H,{constructor:!0})}w("RegExp")},1913:(e,t,r)=>{var n=r(2404),o=r(2993),i=r(956),a=r(1571),s=r(3292).get,c=RegExp.prototype,u=TypeError;n&&o&&a(c,"dotAll",{configurable:!0,get:function(){if(this!==c){if("RegExp"===i(this))return!!s(this).dotAll;throw u("Incompatible receiver, RegExp required")}}})},8664:(e,t,r)=>{"use strict";var n=r(6367),o=r(9338);n({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},3050:(e,t,r)=>{var n=r(2404),o=r(5526).MISSED_STICKY,i=r(956),a=r(1571),s=r(3292).get,c=RegExp.prototype,u=TypeError;n&&o&&a(c,"sticky",{configurable:!0,get:function(){if(this!==c){if("RegExp"===i(this))return!!s(this).sticky;throw u("Incompatible receiver, RegExp required")}}})},532:(e,t,r)=>{"use strict";r(8664);var n,o,i=r(6367),a=r(1568),s=r(7389),c=r(6824),u=r(8943),l=(n=!1,(o=/[ac]/).exec=function(){return n=!0,/./.exec.apply(this,arguments)},!0===o.test("abc")&&n),f=/./.test;i({target:"RegExp",proto:!0,forced:!l},{test:function(e){var t=c(this),r=u(e),n=t.exec;if(!s(n))return a(f,t,r);var o=a(n,t,r);return null!==o&&(c(o),!0)}})},5251:(e,t,r)=>{"use strict";var n=r(5114).PROPER,o=r(4519),i=r(6824),a=r(8943),s=r(2170),c=r(6059),u="toString",l=RegExp.prototype[u],f=s((function(){return"/a/b"!=l.call({source:"a",flags:"b"})})),h=n&&l.name!=u;(f||h)&&o(RegExp.prototype,u,(function(){var e=i(this);return"/"+a(e.source)+"/"+a(c(e))}),{unsafe:!0})},2122:(e,t,r)=>{"use strict";var n=r(6367),o=r(764),i=r(8410),a=r(8466),s=r(8943),c=r(4749),u=o("".indexOf);n({target:"String",proto:!0,forced:!c("includes")},{includes:function(e){return!!~u(s(a(this)),s(i(e)),arguments.length>1?arguments[1]:void 0)}})},6853:(e,t,r)=>{"use strict";var n=r(4003).charAt,o=r(8943),i=r(3292),a=r(8629),s=r(2229),c="String Iterator",u=i.set,l=i.getterFor(c);a(String,"String",(function(e){u(this,{type:c,string:o(e),index:0})}),(function(){var e,t=l(this),r=t.string,o=t.index;return o>=r.length?s(void 0,!0):(e=n(r,o),t.index+=e.length,s(e,!1))}))},3915:(e,t,r)=>{"use strict";var n=r(6367),o=r(5771);n({target:"String",proto:!0,forced:r(7241)("link")},{link:function(e){return o(this,"a","href",e)}})},1228:(e,t,r)=>{"use strict";var n=r(1568),o=r(1705),i=r(6824),a=r(2109),s=r(6772),c=r(8943),u=r(8466),l=r(8453),f=r(329),h=r(5198);o("match",(function(e,t,r){return[function(t){var r=u(this),o=a(t)?void 0:l(t,e);return o?n(o,t,r):new RegExp(t)[e](c(r))},function(e){var n=i(this),o=c(e),a=r(t,n,o);if(a.done)return a.value;if(!n.global)return h(n,o);var u=n.unicode;n.lastIndex=0;for(var l,p=[],d=0;null!==(l=h(n,o));){var m=c(l[0]);p[d]=m,""===m&&(n.lastIndex=f(o,s(n.lastIndex),u)),d++}return 0===d?null:p}]}))},7915:(e,t,r)=>{"use strict";var n=r(1152),o=r(1568),i=r(764),a=r(1705),s=r(2170),c=r(6824),u=r(7389),l=r(2109),f=r(6287),h=r(6772),p=r(8943),d=r(8466),m=r(329),v=r(8453),g=r(2371),y=r(5198),b=r(9163)("replace"),w=Math.max,x=Math.min,E=i([].concat),k=i([].push),S=i("".indexOf),D=i("".slice),P="$0"==="a".replace(/./,"$0"),A=!!/./[b]&&""===/./[b]("a","$0");a("replace",(function(e,t,r){var i=A?"$":"$0";return[function(e,r){var n=d(this),i=l(e)?void 0:v(e,b);return i?o(i,e,n,r):o(t,p(n),e,r)},function(e,o){var a=c(this),s=p(e);if("string"==typeof o&&-1===S(o,i)&&-1===S(o,"$<")){var l=r(t,a,s,o);if(l.done)return l.value}var d=u(o);d||(o=p(o));var v=a.global;if(v){var b=a.unicode;a.lastIndex=0}for(var P=[];;){var A=y(a,s);if(null===A)break;if(k(P,A),!v)break;""===p(A[0])&&(a.lastIndex=m(s,h(a.lastIndex),b))}for(var C,O="",F=0,j=0;j<P.length;j++){for(var T=p((A=P[j])[0]),_=w(x(f(A.index),s.length),0),R=[],I=1;I<A.length;I++)k(R,void 0===(C=A[I])?C:String(C));var L=A.groups;if(d){var B=E([T],R,_,s);void 0!==L&&k(B,L);var M=p(n(o,void 0,B))}else M=g(T,s,_,R,L,o);_>=F&&(O+=D(s,F,_)+M,F=_+T.length)}return O+D(s,F)}]}),!!s((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!P||A)},7930:(e,t,r)=>{"use strict";var n=r(1568),o=r(1705),i=r(6824),a=r(2109),s=r(8466),c=r(2977),u=r(8943),l=r(8453),f=r(5198);o("search",(function(e,t,r){return[function(t){var r=s(this),o=a(t)?void 0:l(t,e);return o?n(o,t,r):new RegExp(t)[e](u(r))},function(e){var n=i(this),o=u(e),a=r(t,n,o);if(a.done)return a.value;var s=n.lastIndex;c(s,0)||(n.lastIndex=0);var l=f(n,o);return c(n.lastIndex,s)||(n.lastIndex=s),null===l?-1:l.index}]}))},9017:(e,t,r)=>{"use strict";var n,o=r(6367),i=r(1889),a=r(3178).f,s=r(6772),c=r(8943),u=r(8410),l=r(8466),f=r(4749),h=r(3709),p=i("".startsWith),d=i("".slice),m=Math.min,v=f("startsWith");o({target:"String",proto:!0,forced:!!(h||v||(n=a(String.prototype,"startsWith"),!n||n.writable))&&!v},{startsWith:function(e){var t=c(l(this));u(e);var r=s(m(arguments.length>1?arguments[1]:void 0,t.length)),n=c(e);return p?p(t,n,r):d(t,r,r+n.length)===n}})},8006:(e,t,r)=>{"use strict";var n=r(6367),o=r(764),i=r(8466),a=r(6287),s=r(8943),c=o("".slice),u=Math.max,l=Math.min;n({target:"String",proto:!0,forced:!"".substr||"b"!=="ab".substr(-1)},{substr:function(e,t){var r,n,o=s(i(this)),f=o.length,h=a(e);return h===1/0&&(h=0),h<0&&(h=u(f+h,0)),(r=void 0===t?f:a(t))<=0||r===1/0||h>=(n=l(h+r,f))?"":c(o,h,n)}})},3394:(e,t,r)=>{"use strict";var n=r(6367),o=r(252).trim;n({target:"String",proto:!0,forced:r(1582)("trim")},{trim:function(){return o(this)}})},2336:(e,t,r)=>{r(3758)("asyncIterator")},7187:(e,t,r)=>{"use strict";var n=r(6367),o=r(2019),i=r(1568),a=r(764),s=r(3709),c=r(2404),u=r(3488),l=r(2170),f=r(627),h=r(2378),p=r(6824),d=r(2415),m=r(1918),v=r(8943),g=r(73),y=r(2909),b=r(4329),w=r(8290),x=r(6877),E=r(8891),k=r(3178),S=r(3015),D=r(948),P=r(8327),A=r(4519),C=r(1571),O=r(4558),F=r(19),j=r(6508),T=r(8103),_=r(9163),R=r(3920),I=r(3758),L=r(2818),B=r(9434),M=r(3292),N=r(3250).forEach,H=F("hidden"),z="Symbol",U="prototype",$=M.set,q=M.getterFor(z),V=Object[U],G=o.Symbol,W=G&&G[U],K=o.TypeError,Q=o.QObject,Z=k.f,Y=S.f,X=x.f,J=P.f,ee=a([].push),te=O("symbols"),re=O("op-symbols"),ne=O("wks"),oe=!Q||!Q[U]||!Q[U].findChild,ie=c&&l((function(){return 7!=y(Y({},"a",{get:function(){return Y(this,"a",{value:7}).a}})).a}))?function(e,t,r){var n=Z(V,t);n&&delete V[t],Y(e,t,r),n&&e!==V&&Y(V,t,n)}:Y,ae=function(e,t){var r=te[e]=y(W);return $(r,{type:z,tag:e,description:t}),c||(r.description=t),r},se=function(e,t,r){e===V&&se(re,t,r),p(e);var n=m(t);return p(r),f(te,n)?(r.enumerable?(f(e,H)&&e[H][n]&&(e[H][n]=!1),r=y(r,{enumerable:g(0,!1)})):(f(e,H)||Y(e,H,g(1,{})),e[H][n]=!0),ie(e,n,r)):Y(e,n,r)},ce=function(e,t){p(e);var r=d(t),n=b(r).concat(he(r));return N(n,(function(t){c&&!i(ue,r,t)||se(e,t,r[t])})),e},ue=function(e){var t=m(e),r=i(J,this,t);return!(this===V&&f(te,t)&&!f(re,t))&&(!(r||!f(this,t)||!f(te,t)||f(this,H)&&this[H][t])||r)},le=function(e,t){var r=d(e),n=m(t);if(r!==V||!f(te,n)||f(re,n)){var o=Z(r,n);return!o||!f(te,n)||f(r,H)&&r[H][n]||(o.enumerable=!0),o}},fe=function(e){var t=X(d(e)),r=[];return N(t,(function(e){f(te,e)||f(j,e)||ee(r,e)})),r},he=function(e){var t=e===V,r=X(t?re:d(e)),n=[];return N(r,(function(e){!f(te,e)||t&&!f(V,e)||ee(n,te[e])})),n};u||(A(W=(G=function(){if(h(W,this))throw K("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?v(arguments[0]):void 0,t=T(e),r=function(e){this===V&&i(r,re,e),f(this,H)&&f(this[H],t)&&(this[H][t]=!1),ie(this,t,g(1,e))};return c&&oe&&ie(V,t,{configurable:!0,set:r}),ae(t,e)})[U],"toString",(function(){return q(this).tag})),A(G,"withoutSetter",(function(e){return ae(T(e),e)})),P.f=ue,S.f=se,D.f=ce,k.f=le,w.f=x.f=fe,E.f=he,R.f=function(e){return ae(_(e),e)},c&&(C(W,"description",{configurable:!0,get:function(){return q(this).description}}),s||A(V,"propertyIsEnumerable",ue,{unsafe:!0}))),n({global:!0,constructor:!0,wrap:!0,forced:!u,sham:!u},{Symbol:G}),N(b(ne),(function(e){I(e)})),n({target:z,stat:!0,forced:!u},{useSetter:function(){oe=!0},useSimple:function(){oe=!1}}),n({target:"Object",stat:!0,forced:!u,sham:!c},{create:function(e,t){return void 0===t?y(e):ce(y(e),t)},defineProperty:se,defineProperties:ce,getOwnPropertyDescriptor:le}),n({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:fe}),L(),B(G,z),j[H]=!0},337:(e,t,r)=>{"use strict";var n=r(6367),o=r(2404),i=r(2019),a=r(764),s=r(627),c=r(7389),u=r(2378),l=r(8943),f=r(1571),h=r(9962),p=i.Symbol,d=p&&p.prototype;if(o&&c(p)&&(!("description"in d)||void 0!==p().description)){var m={},v=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:l(arguments[0]),t=u(d,this)?new p(e):void 0===e?p():p(e);return""===e&&(m[t]=!0),t};h(v,p),v.prototype=d,d.constructor=v;var g="Symbol(test)"==String(p("test")),y=a(d.valueOf),b=a(d.toString),w=/^Symbol\((.*)\)[^)]+$/,x=a("".replace),E=a("".slice);f(d,"description",{configurable:!0,get:function(){var e=y(this);if(s(m,e))return"";var t=b(e),r=g?E(t,7,-1):x(t,w,"$1");return""===r?void 0:r}}),n({global:!0,constructor:!0,forced:!0},{Symbol:v})}},4944:(e,t,r)=>{var n=r(6367),o=r(3012),i=r(627),a=r(8943),s=r(4558),c=r(8463),u=s("string-to-symbol-registry"),l=s("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!c},{for:function(e){var t=a(e);if(i(u,t))return u[t];var r=o("Symbol")(t);return u[t]=r,l[r]=t,r}})},9778:(e,t,r)=>{r(3758)("iterator")},2814:(e,t,r)=>{r(7187),r(4944),r(7206),r(776),r(1423)},7206:(e,t,r)=>{var n=r(6367),o=r(627),i=r(1666),a=r(4259),s=r(4558),c=r(8463),u=s("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!c},{keyFor:function(e){if(!i(e))throw TypeError(a(e)+" is not a symbol");if(o(u,e))return u[e]}})},7607:(e,t,r)=>{var n=r(2019),o=r(2135),i=r(5011),a=r(1385),s=r(3085),c=function(e){if(e&&e.forEach!==a)try{s(e,"forEach",a)}catch(t){e.forEach=a}};for(var u in o)o[u]&&c(n[u]&&n[u].prototype);c(i)},8546:(e,t,r)=>{var n=r(2019),o=r(2135),i=r(5011),a=r(5591),s=r(3085),c=r(9163),u=c("iterator"),l=c("toStringTag"),f=a.values,h=function(e,t){if(e){if(e[u]!==f)try{s(e,u,f)}catch(t){e[u]=f}if(e[l]||s(e,l,t),o[t])for(var r in a)if(e[r]!==a[r])try{s(e,r,a[r])}catch(t){e[r]=a[r]}}};for(var p in o)h(n[p]&&n[p].prototype,p);h(i,"DOMTokenList")},3122:(e,t,r)=>{"use strict";r(5591);var n=r(6367),o=r(2019),i=r(1568),a=r(764),s=r(2404),c=r(5047),u=r(4519),l=r(1571),f=r(8965),h=r(9434),p=r(1395),d=r(3292),m=r(1167),v=r(7389),g=r(627),y=r(6748),b=r(9909),w=r(6824),x=r(2465),E=r(8943),k=r(2909),S=r(73),D=r(9119),P=r(9781),A=r(3108),C=r(9163),O=r(8110),F=C("iterator"),j="URLSearchParams",T=j+"Iterator",_=d.set,R=d.getterFor(j),I=d.getterFor(T),L=Object.getOwnPropertyDescriptor,B=function(e){if(!s)return o[e];var t=L(o,e);return t&&t.value},M=B("fetch"),N=B("Request"),H=B("Headers"),z=N&&N.prototype,U=H&&H.prototype,$=o.RegExp,q=o.TypeError,V=o.decodeURIComponent,G=o.encodeURIComponent,W=a("".charAt),K=a([].join),Q=a([].push),Z=a("".replace),Y=a([].shift),X=a([].splice),J=a("".split),ee=a("".slice),te=/\+/g,re=Array(4),ne=function(e){return re[e-1]||(re[e-1]=$("((?:%[\\da-f]{2}){"+e+"})","gi"))},oe=function(e){try{return V(e)}catch(t){return e}},ie=function(e){var t=Z(e,te," "),r=4;try{return V(t)}catch(e){for(;r;)t=Z(t,ne(r--),oe);return t}},ae=/[!'()~]|%20/g,se={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},ce=function(e){return se[e]},ue=function(e){return Z(G(e),ae,ce)},le=p((function(e,t){_(this,{type:T,iterator:D(R(e).entries),kind:t})}),"Iterator",(function(){var e=I(this),t=e.kind,r=e.iterator.next(),n=r.value;return r.done||(r.value="keys"===t?n.key:"values"===t?n.value:[n.key,n.value]),r}),!0),fe=function(e){this.entries=[],this.url=null,void 0!==e&&(x(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===W(e,0)?ee(e,1):e:E(e)))};fe.prototype={type:j,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,o,a,s,c,u=P(e);if(u)for(r=(t=D(e,u)).next;!(n=i(r,t)).done;){if(a=(o=D(w(n.value))).next,(s=i(a,o)).done||(c=i(a,o)).done||!i(a,o).done)throw q("Expected sequence with length 2");Q(this.entries,{key:E(s.value),value:E(c.value)})}else for(var l in e)g(e,l)&&Q(this.entries,{key:l,value:E(e[l])})},parseQuery:function(e){if(e)for(var t,r,n=J(e,"&"),o=0;o<n.length;)(t=n[o++]).length&&(r=J(t,"="),Q(this.entries,{key:ie(Y(r)),value:ie(K(r,"="))}))},serialize:function(){for(var e,t=this.entries,r=[],n=0;n<t.length;)e=t[n++],Q(r,ue(e.key)+"="+ue(e.value));return K(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var he=function(){m(this,pe);var e=_(this,new fe(arguments.length>0?arguments[0]:void 0));s||(this.size=e.entries.length)},pe=he.prototype;if(f(pe,{append:function(e,t){var r=R(this);A(arguments.length,2),Q(r.entries,{key:E(e),value:E(t)}),s||this.length++,r.updateURL()},delete:function(e){for(var t=R(this),r=A(arguments.length,1),n=t.entries,o=E(e),i=r<2?void 0:arguments[1],a=void 0===i?i:E(i),c=0;c<n.length;){var u=n[c];if(u.key!==o||void 0!==a&&u.value!==a)c++;else if(X(n,c,1),void 0!==a)break}s||(this.size=n.length),t.updateURL()},get:function(e){var t=R(this).entries;A(arguments.length,1);for(var r=E(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){var t=R(this).entries;A(arguments.length,1);for(var r=E(e),n=[],o=0;o<t.length;o++)t[o].key===r&&Q(n,t[o].value);return n},has:function(e){for(var t=R(this).entries,r=A(arguments.length,1),n=E(e),o=r<2?void 0:arguments[1],i=void 0===o?o:E(o),a=0;a<t.length;){var s=t[a++];if(s.key===n&&(void 0===i||s.value===i))return!0}return!1},set:function(e,t){var r=R(this);A(arguments.length,1);for(var n,o=r.entries,i=!1,a=E(e),c=E(t),u=0;u<o.length;u++)(n=o[u]).key===a&&(i?X(o,u--,1):(i=!0,n.value=c));i||Q(o,{key:a,value:c}),s||(this.size=o.length),r.updateURL()},sort:function(){var e=R(this);O(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,r=R(this).entries,n=y(e,arguments.length>1?arguments[1]:void 0),o=0;o<r.length;)n((t=r[o++]).value,t.key,this)},keys:function(){return new le(this,"keys")},values:function(){return new le(this,"values")},entries:function(){return new le(this,"entries")}},{enumerable:!0}),u(pe,F,pe.entries,{name:"entries"}),u(pe,"toString",(function(){return R(this).serialize()}),{enumerable:!0}),s&&l(pe,"size",{get:function(){return R(this).entries.length},configurable:!0,enumerable:!0}),h(he,j),n({global:!0,constructor:!0,forced:!c},{URLSearchParams:he}),!c&&v(H)){var de=a(U.has),me=a(U.set),ve=function(e){if(x(e)){var t,r=e.body;if(b(r)===j)return t=e.headers?new H(e.headers):new H,de(t,"content-type")||me(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),k(e,{body:S(0,E(r)),headers:S(0,t)})}return e};if(v(M)&&n({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return M(e,arguments.length>1?ve(arguments[1]):{})}}),v(N)){var ge=function(e){return m(this,z),new N(e,arguments.length>1?ve(arguments[1]):{})};z.constructor=ge,ge.prototype=z,n({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:ge})}}e.exports={URLSearchParams:he,getState:R}},8808:(e,t,r)=>{"use strict";var n=r(4519),o=r(764),i=r(8943),a=r(3108),s=URLSearchParams,c=s.prototype,u=o(c.append),l=o(c.delete),f=o(c.forEach),h=o([].push),p=new s("a=1&a=2");p.delete("a",1),p+""!="a=2"&&n(c,"delete",(function(e){var t=arguments.length,r=t<2?void 0:arguments[1];if(t&&void 0===r)return l(this,e);var n=[];f(this,(function(e,t){h(n,{key:t,value:e})})),a(t,1);for(var o,s=i(e),c=i(r),p=0,d=0,m=!1,v=n.length;p<v;)o=n[p++],m||o.key===s?(m=!0,l(this,o.key)):d++;for(;d<v;)(o=n[d++]).key===s&&o.value===c||u(this,o.key,o.value)}),{enumerable:!0,unsafe:!0})},9989:(e,t,r)=>{"use strict";var n=r(4519),o=r(764),i=r(8943),a=r(3108),s=URLSearchParams,c=s.prototype,u=o(c.getAll),l=o(c.has);new s("a=1").has("a",2)&&n(c,"has",(function(e){var t=arguments.length,r=t<2?void 0:arguments[1];if(t&&void 0===r)return l(this,e);var n=u(this,e);a(t,1);for(var o=i(r),s=0;s<n.length;)if(n[s++]===o)return!0;return!1}),{enumerable:!0,unsafe:!0})},7525:(e,t,r)=>{r(3122)},3882:(e,t,r)=>{"use strict";var n=r(2404),o=r(764),i=r(1571),a=URLSearchParams.prototype,s=o(a.forEach);n&&!("size"in a)&&i(a,"size",{get:function(){var e=0;return s(this,(function(){e++})),e},configurable:!0,enumerable:!0})},4167:(e,t,r)=>{"use strict";r(6853);var n,o=r(6367),i=r(2404),a=r(5047),s=r(2019),c=r(6748),u=r(764),l=r(4519),f=r(1571),h=r(1167),p=r(627),d=r(8340),m=r(6807),v=r(6765),g=r(4003).codeAt,y=r(5946),b=r(8943),w=r(9434),x=r(3108),E=r(3122),k=r(3292),S=k.set,D=k.getterFor("URL"),P=E.URLSearchParams,A=E.getState,C=s.URL,O=s.TypeError,F=s.parseInt,j=Math.floor,T=Math.pow,_=u("".charAt),R=u(/./.exec),I=u([].join),L=u(1..toString),B=u([].pop),M=u([].push),N=u("".replace),H=u([].shift),z=u("".split),U=u("".slice),$=u("".toLowerCase),q=u([].unshift),V="Invalid scheme",G="Invalid host",W="Invalid port",K=/[a-z]/i,Q=/[\d+-.a-z]/i,Z=/\d/,Y=/^0x/i,X=/^[0-7]+$/,J=/^\d+$/,ee=/^[\da-f]+$/i,te=/[\0\t\n\r #%/:<>?@[\\\]^|]/,re=/[\0\t\n\r #/:<>?@[\\\]^|]/,ne=/^[\u0000-\u0020]+/,oe=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,ie=/[\t\n\r]/g,ae=function(e){var t,r,n,o;if("number"==typeof e){for(t=[],r=0;r<4;r++)q(t,e%256),e=j(e/256);return I(t,".")}if("object"==typeof e){for(t="",n=function(e){for(var t=null,r=1,n=null,o=0,i=0;i<8;i++)0!==e[i]?(o>r&&(t=n,r=o),n=null,o=0):(null===n&&(n=i),++o);return o>r&&(t=n,r=o),t}(e),r=0;r<8;r++)o&&0===e[r]||(o&&(o=!1),n===r?(t+=r?":":"::",o=!0):(t+=L(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},se={},ce=d({},se,{" ":1,'"':1,"<":1,">":1,"`":1}),ue=d({},ce,{"#":1,"?":1,"{":1,"}":1}),le=d({},ue,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),fe=function(e,t){var r=g(e,0);return r>32&&r<127&&!p(t,e)?e:encodeURIComponent(e)},he={ftp:21,file:null,http:80,https:443,ws:80,wss:443},pe=function(e,t){var r;return 2==e.length&&R(K,_(e,0))&&(":"==(r=_(e,1))||!t&&"|"==r)},de=function(e){var t;return e.length>1&&pe(U(e,0,2))&&(2==e.length||"/"===(t=_(e,2))||"\\"===t||"?"===t||"#"===t)},me=function(e){return"."===e||"%2e"===$(e)},ve={},ge={},ye={},be={},we={},xe={},Ee={},ke={},Se={},De={},Pe={},Ae={},Ce={},Oe={},Fe={},je={},Te={},_e={},Re={},Ie={},Le={},Be=function(e,t,r){var n,o,i,a=b(e);if(t){if(o=this.parse(a))throw O(o);this.searchParams=null}else{if(void 0!==r&&(n=new Be(r,!0)),o=this.parse(a,null,n))throw O(o);(i=A(new P)).bindURL(this),this.searchParams=i}};Be.prototype={type:"URL",parse:function(e,t,r){var o,i,a,s,c,u=this,l=t||ve,f=0,h="",d=!1,g=!1,y=!1;for(e=b(e),t||(u.scheme="",u.username="",u.password="",u.host=null,u.port=null,u.path=[],u.query=null,u.fragment=null,u.cannotBeABaseURL=!1,e=N(e,ne,""),e=N(e,oe,"$1")),e=N(e,ie,""),o=m(e);f<=o.length;){switch(i=o[f],l){case ve:if(!i||!R(K,i)){if(t)return V;l=ye;continue}h+=$(i),l=ge;break;case ge:if(i&&(R(Q,i)||"+"==i||"-"==i||"."==i))h+=$(i);else{if(":"!=i){if(t)return V;h="",l=ye,f=0;continue}if(t&&(u.isSpecial()!=p(he,h)||"file"==h&&(u.includesCredentials()||null!==u.port)||"file"==u.scheme&&!u.host))return;if(u.scheme=h,t)return void(u.isSpecial()&&he[u.scheme]==u.port&&(u.port=null));h="","file"==u.scheme?l=Oe:u.isSpecial()&&r&&r.scheme==u.scheme?l=be:u.isSpecial()?l=ke:"/"==o[f+1]?(l=we,f++):(u.cannotBeABaseURL=!0,M(u.path,""),l=Re)}break;case ye:if(!r||r.cannotBeABaseURL&&"#"!=i)return V;if(r.cannotBeABaseURL&&"#"==i){u.scheme=r.scheme,u.path=v(r.path),u.query=r.query,u.fragment="",u.cannotBeABaseURL=!0,l=Le;break}l="file"==r.scheme?Oe:xe;continue;case be:if("/"!=i||"/"!=o[f+1]){l=xe;continue}l=Se,f++;break;case we:if("/"==i){l=De;break}l=_e;continue;case xe:if(u.scheme=r.scheme,i==n)u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=v(r.path),u.query=r.query;else if("/"==i||"\\"==i&&u.isSpecial())l=Ee;else if("?"==i)u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=v(r.path),u.query="",l=Ie;else{if("#"!=i){u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=v(r.path),u.path.length--,l=_e;continue}u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=v(r.path),u.query=r.query,u.fragment="",l=Le}break;case Ee:if(!u.isSpecial()||"/"!=i&&"\\"!=i){if("/"!=i){u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,l=_e;continue}l=De}else l=Se;break;case ke:if(l=Se,"/"!=i||"/"!=_(h,f+1))continue;f++;break;case Se:if("/"!=i&&"\\"!=i){l=De;continue}break;case De:if("@"==i){d&&(h="%40"+h),d=!0,a=m(h);for(var w=0;w<a.length;w++){var x=a[w];if(":"!=x||y){var E=fe(x,le);y?u.password+=E:u.username+=E}else y=!0}h=""}else if(i==n||"/"==i||"?"==i||"#"==i||"\\"==i&&u.isSpecial()){if(d&&""==h)return"Invalid authority";f-=m(h).length+1,h="",l=Pe}else h+=i;break;case Pe:case Ae:if(t&&"file"==u.scheme){l=je;continue}if(":"!=i||g){if(i==n||"/"==i||"?"==i||"#"==i||"\\"==i&&u.isSpecial()){if(u.isSpecial()&&""==h)return G;if(t&&""==h&&(u.includesCredentials()||null!==u.port))return;if(s=u.parseHost(h))return s;if(h="",l=Te,t)return;continue}"["==i?g=!0:"]"==i&&(g=!1),h+=i}else{if(""==h)return G;if(s=u.parseHost(h))return s;if(h="",l=Ce,t==Ae)return}break;case Ce:if(!R(Z,i)){if(i==n||"/"==i||"?"==i||"#"==i||"\\"==i&&u.isSpecial()||t){if(""!=h){var k=F(h,10);if(k>65535)return W;u.port=u.isSpecial()&&k===he[u.scheme]?null:k,h=""}if(t)return;l=Te;continue}return W}h+=i;break;case Oe:if(u.scheme="file","/"==i||"\\"==i)l=Fe;else{if(!r||"file"!=r.scheme){l=_e;continue}if(i==n)u.host=r.host,u.path=v(r.path),u.query=r.query;else if("?"==i)u.host=r.host,u.path=v(r.path),u.query="",l=Ie;else{if("#"!=i){de(I(v(o,f),""))||(u.host=r.host,u.path=v(r.path),u.shortenPath()),l=_e;continue}u.host=r.host,u.path=v(r.path),u.query=r.query,u.fragment="",l=Le}}break;case Fe:if("/"==i||"\\"==i){l=je;break}r&&"file"==r.scheme&&!de(I(v(o,f),""))&&(pe(r.path[0],!0)?M(u.path,r.path[0]):u.host=r.host),l=_e;continue;case je:if(i==n||"/"==i||"\\"==i||"?"==i||"#"==i){if(!t&&pe(h))l=_e;else if(""==h){if(u.host="",t)return;l=Te}else{if(s=u.parseHost(h))return s;if("localhost"==u.host&&(u.host=""),t)return;h="",l=Te}continue}h+=i;break;case Te:if(u.isSpecial()){if(l=_e,"/"!=i&&"\\"!=i)continue}else if(t||"?"!=i)if(t||"#"!=i){if(i!=n&&(l=_e,"/"!=i))continue}else u.fragment="",l=Le;else u.query="",l=Ie;break;case _e:if(i==n||"/"==i||"\\"==i&&u.isSpecial()||!t&&("?"==i||"#"==i)){if(".."===(c=$(c=h))||"%2e."===c||".%2e"===c||"%2e%2e"===c?(u.shortenPath(),"/"==i||"\\"==i&&u.isSpecial()||M(u.path,"")):me(h)?"/"==i||"\\"==i&&u.isSpecial()||M(u.path,""):("file"==u.scheme&&!u.path.length&&pe(h)&&(u.host&&(u.host=""),h=_(h,0)+":"),M(u.path,h)),h="","file"==u.scheme&&(i==n||"?"==i||"#"==i))for(;u.path.length>1&&""===u.path[0];)H(u.path);"?"==i?(u.query="",l=Ie):"#"==i&&(u.fragment="",l=Le)}else h+=fe(i,ue);break;case Re:"?"==i?(u.query="",l=Ie):"#"==i?(u.fragment="",l=Le):i!=n&&(u.path[0]+=fe(i,se));break;case Ie:t||"#"!=i?i!=n&&("'"==i&&u.isSpecial()?u.query+="%27":u.query+="#"==i?"%23":fe(i,se)):(u.fragment="",l=Le);break;case Le:i!=n&&(u.fragment+=fe(i,ce))}f++}},parseHost:function(e){var t,r,n;if("["==_(e,0)){if("]"!=_(e,e.length-1))return G;if(t=function(e){var t,r,n,o,i,a,s,c=[0,0,0,0,0,0,0,0],u=0,l=null,f=0,h=function(){return _(e,f)};if(":"==h()){if(":"!=_(e,1))return;f+=2,l=++u}for(;h();){if(8==u)return;if(":"!=h()){for(t=r=0;r<4&&R(ee,h());)t=16*t+F(h(),16),f++,r++;if("."==h()){if(0==r)return;if(f-=r,u>6)return;for(n=0;h();){if(o=null,n>0){if(!("."==h()&&n<4))return;f++}if(!R(Z,h()))return;for(;R(Z,h());){if(i=F(h(),10),null===o)o=i;else{if(0==o)return;o=10*o+i}if(o>255)return;f++}c[u]=256*c[u]+o,2!=++n&&4!=n||u++}if(4!=n)return;break}if(":"==h()){if(f++,!h())return}else if(h())return;c[u++]=t}else{if(null!==l)return;f++,l=++u}}if(null!==l)for(a=u-l,u=7;0!=u&&a>0;)s=c[u],c[u--]=c[l+a-1],c[l+--a]=s;else if(8!=u)return;return c}(U(e,1,-1)),!t)return G;this.host=t}else if(this.isSpecial()){if(e=y(e),R(te,e))return G;if(t=function(e){var t,r,n,o,i,a,s,c=z(e,".");if(c.length&&""==c[c.length-1]&&c.length--,(t=c.length)>4)return e;for(r=[],n=0;n<t;n++){if(""==(o=c[n]))return e;if(i=10,o.length>1&&"0"==_(o,0)&&(i=R(Y,o)?16:8,o=U(o,8==i?1:2)),""===o)a=0;else{if(!R(10==i?J:8==i?X:ee,o))return e;a=F(o,i)}M(r,a)}for(n=0;n<t;n++)if(a=r[n],n==t-1){if(a>=T(256,5-t))return null}else if(a>255)return null;for(s=B(r),n=0;n<r.length;n++)s+=r[n]*T(256,3-n);return s}(e),null===t)return G;this.host=t}else{if(R(re,e))return G;for(t="",r=m(e),n=0;n<r.length;n++)t+=fe(r[n],se);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return p(he,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"==this.scheme&&1==t&&pe(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,r=e.username,n=e.password,o=e.host,i=e.port,a=e.path,s=e.query,c=e.fragment,u=t+":";return null!==o?(u+="//",e.includesCredentials()&&(u+=r+(n?":"+n:"")+"@"),u+=ae(o),null!==i&&(u+=":"+i)):"file"==t&&(u+="//"),u+=e.cannotBeABaseURL?a[0]:a.length?"/"+I(a,"/"):"",null!==s&&(u+="?"+s),null!==c&&(u+="#"+c),u},setHref:function(e){var t=this.parse(e);if(t)throw O(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"==e)try{return new Me(e.path[0]).origin}catch(e){return"null"}return"file"!=e&&this.isSpecial()?e+"://"+ae(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(b(e)+":",ve)},getUsername:function(){return this.username},setUsername:function(e){var t=m(b(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<t.length;r++)this.username+=fe(t[r],le)}},getPassword:function(){return this.password},setPassword:function(e){var t=m(b(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<t.length;r++)this.password+=fe(t[r],le)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?ae(e):ae(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,Pe)},getHostname:function(){var e=this.host;return null===e?"":ae(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,Ae)},getPort:function(){var e=this.port;return null===e?"":b(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""==(e=b(e))?this.port=null:this.parse(e,Ce))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+I(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,Te))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""==(e=b(e))?this.query=null:("?"==_(e,0)&&(e=U(e,1)),this.query="",this.parse(e,Ie)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!=(e=b(e))?("#"==_(e,0)&&(e=U(e,1)),this.fragment="",this.parse(e,Le)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var Me=function(e){var t=h(this,Ne),r=x(arguments.length,1)>1?arguments[1]:void 0,n=S(t,new Be(e,!1,r));i||(t.href=n.serialize(),t.origin=n.getOrigin(),t.protocol=n.getProtocol(),t.username=n.getUsername(),t.password=n.getPassword(),t.host=n.getHost(),t.hostname=n.getHostname(),t.port=n.getPort(),t.pathname=n.getPathname(),t.search=n.getSearch(),t.searchParams=n.getSearchParams(),t.hash=n.getHash())},Ne=Me.prototype,He=function(e,t){return{get:function(){return D(this)[e]()},set:t&&function(e){return D(this)[t](e)},configurable:!0,enumerable:!0}};if(i&&(f(Ne,"href",He("serialize","setHref")),f(Ne,"origin",He("getOrigin")),f(Ne,"protocol",He("getProtocol","setProtocol")),f(Ne,"username",He("getUsername","setUsername")),f(Ne,"password",He("getPassword","setPassword")),f(Ne,"host",He("getHost","setHost")),f(Ne,"hostname",He("getHostname","setHostname")),f(Ne,"port",He("getPort","setPort")),f(Ne,"pathname",He("getPathname","setPathname")),f(Ne,"search",He("getSearch","setSearch")),f(Ne,"searchParams",He("getSearchParams")),f(Ne,"hash",He("getHash","setHash"))),l(Ne,"toJSON",(function(){return D(this).serialize()}),{enumerable:!0}),l(Ne,"toString",(function(){return D(this).serialize()}),{enumerable:!0}),C){var ze=C.createObjectURL,Ue=C.revokeObjectURL;ze&&l(Me,"createObjectURL",c(ze,C)),Ue&&l(Me,"revokeObjectURL",c(Ue,C))}w(Me,"URL"),o({global:!0,constructor:!0,forced:!a,sham:!i},{URL:Me})},6164:(e,t,r)=>{r(4167)},5729:function(e,t,r){var n;e.exports=(n=r(4180),r(7753),r(1883),r(2400),r(1821),function(){var e=n,t=e.lib.BlockCipher,r=e.algo,o=[],i=[],a=[],s=[],c=[],u=[],l=[],f=[],h=[],p=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var r=0,n=0;for(t=0;t<256;t++){var d=n^n<<1^n<<2^n<<3^n<<4;d=d>>>8^255&d^99,o[r]=d,i[d]=r;var m=e[r],v=e[m],g=e[v],y=257*e[d]^16843008*d;a[r]=y<<24|y>>>8,s[r]=y<<16|y>>>16,c[r]=y<<8|y>>>24,u[r]=y,y=16843009*g^65537*v^257*m^16843008*r,l[d]=y<<24|y>>>8,f[d]=y<<16|y>>>16,h[d]=y<<8|y>>>24,p[d]=y,r?(r=m^e[e[e[g^m]]],n^=e[e[n]]):r=n=1}}();var d=[0,1,2,4,8,16,32,64,128,27,54],m=r.AES=t.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=[],a=0;a<n;a++)a<r?i[a]=t[a]:(u=i[a-1],a%r?r>6&&a%r==4&&(u=o[u>>>24]<<24|o[u>>>16&255]<<16|o[u>>>8&255]<<8|o[255&u]):(u=o[(u=u<<8|u>>>24)>>>24]<<24|o[u>>>16&255]<<16|o[u>>>8&255]<<8|o[255&u],u^=d[a/r|0]<<24),i[a]=i[a-r]^u);for(var s=this._invKeySchedule=[],c=0;c<n;c++){if(a=n-c,c%4)var u=i[a];else u=i[a-4];s[c]=c<4||a<=4?u:l[o[u>>>24]]^f[o[u>>>16&255]]^h[o[u>>>8&255]]^p[o[255&u]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,a,s,c,u,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,l,f,h,p,i),r=e[t+1],e[t+1]=e[t+3],e[t+3]=r},_doCryptBlock:function(e,t,r,n,o,i,a,s){for(var c=this._nRounds,u=e[t]^r[0],l=e[t+1]^r[1],f=e[t+2]^r[2],h=e[t+3]^r[3],p=4,d=1;d<c;d++){var m=n[u>>>24]^o[l>>>16&255]^i[f>>>8&255]^a[255&h]^r[p++],v=n[l>>>24]^o[f>>>16&255]^i[h>>>8&255]^a[255&u]^r[p++],g=n[f>>>24]^o[h>>>16&255]^i[u>>>8&255]^a[255&l]^r[p++],y=n[h>>>24]^o[u>>>16&255]^i[l>>>8&255]^a[255&f]^r[p++];u=m,l=v,f=g,h=y}m=(s[u>>>24]<<24|s[l>>>16&255]<<16|s[f>>>8&255]<<8|s[255&h])^r[p++],v=(s[l>>>24]<<24|s[f>>>16&255]<<16|s[h>>>8&255]<<8|s[255&u])^r[p++],g=(s[f>>>24]<<24|s[h>>>16&255]<<16|s[u>>>8&255]<<8|s[255&l])^r[p++],y=(s[h>>>24]<<24|s[u>>>16&255]<<16|s[l>>>8&255]<<8|s[255&f])^r[p++],e[t]=m,e[t+1]=v,e[t+2]=g,e[t+3]=y},keySize:8});e.AES=t._createHelper(m)}(),n.AES)},1821:function(e,t,r){var n;e.exports=(n=r(4180),r(2400),void(n.lib.Cipher||function(e){var t=n,r=t.lib,o=r.Base,i=r.WordArray,a=r.BufferedBlockAlgorithm,s=t.enc,c=(s.Utf8,s.Base64),u=t.algo.EvpKDF,l=r.Cipher=a.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(){a.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?b:g}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)}}}}()}),f=(r.StreamCipher=l.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),t.mode={}),h=r.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=f.CBC=function(){var t=h.extend();function r(t,r,n){var o,i=this._iv;i?(o=i,this._iv=e):o=this._prevBlock;for(var a=0;a<n;a++)t[r+a]^=o[a]}return t.Encryptor=t.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)}}),t.Decryptor=t.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}}),t}(),d=(t.pad={}).Pkcs7={pad:function(e,t){for(var r=4*t,n=r-e.sigBytes%r,o=n<<24|n<<16|n<<8|n,a=[],s=0;s<n;s+=4)a.push(o);var c=i.create(a,n);e.concat(c)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},m=(r.BlockCipher=l.extend({cfg:l.cfg.extend({mode:p,padding:d}),reset:function(){var e;l.reset.call(this);var t=this.cfg,r=t.iv,n=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=n.createEncryptor:(e=n.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,r&&r.words):(this._mode=e.call(n,this,r&&r.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4}),r.CipherParams=o.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}})),v=(t.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})}},g=r.SerializableCipher=o.extend({cfg:o.extend({format:v}),encrypt:function(e,t,r,n){n=this.cfg.extend(n);var o=e.createEncryptor(r,n),i=o.finalize(t),a=o.cfg;return m.create({ciphertext:i,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=(t.kdf={}).OpenSSL={execute:function(e,t,r,n,o){if(n||(n=i.random(8)),o)a=u.create({keySize:t+r,hasher:o}).compute(e,n);else var a=u.create({keySize:t+r}).compute(e,n);var s=i.create(a.words.slice(t),4*r);return a.sigBytes=4*t,m.create({key:a,iv:s,salt:n})}},b=r.PasswordBasedCipher=g.extend({cfg:g.cfg.extend({kdf:y}),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=g.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,g.decrypt.call(this,e,t,o.key,n)}})}()))},4180:function(e,t,r){var n;e.exports=(n=n||function(e,t){var n;if("undefined"!=typeof window&&window.crypto&&(n=window.crypto),"undefined"!=typeof self&&self.crypto&&(n=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(n=globalThis.crypto),!n&&"undefined"!=typeof window&&window.msCrypto&&(n=window.msCrypto),!n&&void 0!==r.g&&r.g.crypto&&(n=r.g.crypto),!n)try{n=r(6728)}catch(e){}var o=function(){if(n){if("function"==typeof n.getRandomValues)try{return n.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof n.randomBytes)try{return n.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")},i=Object.create||function(){function e(){}return function(t){var r;return e.prototype=t,r=new e,e.prototype=null,r}}(),a={},s=a.lib={},c=s.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)}},u=s.WordArray=c.extend({init:function(e,r){e=this.words=e||[],this.sigBytes=r!=t?r:4*e.length},toString:function(e){return(e||f).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 a=r[i>>>2]>>>24-i%4*8&255;t[n+i>>>2]|=a<<24-(n+i)%4*8}else for(var s=0;s<o;s+=4)t[n+s>>>2]=r[s>>>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=c.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(o());return new u.init(t,e)}}),l=a.enc={},f=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 u.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 u.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)))}},d=s.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new u.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,o=n.words,i=n.sigBytes,a=this.blockSize,s=i/(4*a),c=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*a,l=e.min(4*c,i);if(c){for(var f=0;f<c;f+=a)this._doProcessBlock(o,f);r=o.splice(0,c),n.sigBytes-=l}return new u.init(r,l)},clone:function(){var e=c.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),m=(s.Hasher=d.extend({cfg:c.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){d.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 m.HMAC.init(e,r).finalize(t)}}}),a.algo={});return a}(Math),n)},7753:function(e,t,r){var n;e.exports=(n=r(4180),function(){var e=n,t=e.lib.WordArray;function r(e,r,n){for(var o=[],i=0,a=0;a<r;a++)if(a%4){var s=n[e.charCodeAt(a-1)]<<a%4*2|n[e.charCodeAt(a)]>>>6-a%4*2;o[i>>>2]|=s<<24-i%4*8,i++}return t.create(o,i)}e.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 a=(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,s=0;s<4&&i+.75*s<r;s++)o.push(n.charAt(a>>>6*(3-s)&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,n=this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var i=0;i<n.length;i++)o[n.charCodeAt(i)]=i}var a=n.charAt(64);if(a){var s=e.indexOf(a);-1!==s&&(t=s)}return r(e,t,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),n.enc.Base64)},6119:function(e,t,r){var n;e.exports=(n=r(4180),n.enc.Utf8)},2400:function(e,t,r){var n,o,i,a,s,c,u,l;e.exports=(l=r(4180),r(2568),r(2004),o=(n=l).lib,i=o.Base,a=o.WordArray,s=n.algo,c=s.MD5,u=s.EvpKDF=i.extend({cfg:i.extend({keySize:4,hasher:c,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(),i=a.create(),s=i.words,c=n.keySize,u=n.iterations;s.length<c;){r&&o.update(r),r=o.update(e).finalize(t),o.reset();for(var l=1;l<u;l++)r=o.finalize(r),o.reset();i.concat(r)}return i.sigBytes=4*c,i}}),n.EvpKDF=function(e,t,r){return u.create(r).compute(e,t)},l.EvpKDF)},2004:function(e,t,r){var n,o,i,a;e.exports=(n=r(4180),i=(o=n).lib.Base,a=o.enc.Utf8,void(o.algo.HMAC=i.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=a.parse(t));var r=e.blockSize,n=4*r;t.sigBytes>n&&(t=e.finalize(t)),t.clamp();for(var o=this._oKey=t.clone(),i=this._iKey=t.clone(),s=o.words,c=i.words,u=0;u<r;u++)s[u]^=1549556828,c[u]^=909522486;o.sigBytes=i.sigBytes=n,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))}})))},1883:function(e,t,r){var n;e.exports=(n=r(4180),function(e){var t=n,r=t.lib,o=r.WordArray,i=r.Hasher,a=t.algo,s=[];!function(){for(var t=0;t<64;t++)s[t]=4294967296*e.abs(e.sin(t+1))|0}();var c=a.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,a=e[t+0],c=e[t+1],p=e[t+2],d=e[t+3],m=e[t+4],v=e[t+5],g=e[t+6],y=e[t+7],b=e[t+8],w=e[t+9],x=e[t+10],E=e[t+11],k=e[t+12],S=e[t+13],D=e[t+14],P=e[t+15],A=i[0],C=i[1],O=i[2],F=i[3];A=u(A,C,O,F,a,7,s[0]),F=u(F,A,C,O,c,12,s[1]),O=u(O,F,A,C,p,17,s[2]),C=u(C,O,F,A,d,22,s[3]),A=u(A,C,O,F,m,7,s[4]),F=u(F,A,C,O,v,12,s[5]),O=u(O,F,A,C,g,17,s[6]),C=u(C,O,F,A,y,22,s[7]),A=u(A,C,O,F,b,7,s[8]),F=u(F,A,C,O,w,12,s[9]),O=u(O,F,A,C,x,17,s[10]),C=u(C,O,F,A,E,22,s[11]),A=u(A,C,O,F,k,7,s[12]),F=u(F,A,C,O,S,12,s[13]),O=u(O,F,A,C,D,17,s[14]),A=l(A,C=u(C,O,F,A,P,22,s[15]),O,F,c,5,s[16]),F=l(F,A,C,O,g,9,s[17]),O=l(O,F,A,C,E,14,s[18]),C=l(C,O,F,A,a,20,s[19]),A=l(A,C,O,F,v,5,s[20]),F=l(F,A,C,O,x,9,s[21]),O=l(O,F,A,C,P,14,s[22]),C=l(C,O,F,A,m,20,s[23]),A=l(A,C,O,F,w,5,s[24]),F=l(F,A,C,O,D,9,s[25]),O=l(O,F,A,C,d,14,s[26]),C=l(C,O,F,A,b,20,s[27]),A=l(A,C,O,F,S,5,s[28]),F=l(F,A,C,O,p,9,s[29]),O=l(O,F,A,C,y,14,s[30]),A=f(A,C=l(C,O,F,A,k,20,s[31]),O,F,v,4,s[32]),F=f(F,A,C,O,b,11,s[33]),O=f(O,F,A,C,E,16,s[34]),C=f(C,O,F,A,D,23,s[35]),A=f(A,C,O,F,c,4,s[36]),F=f(F,A,C,O,m,11,s[37]),O=f(O,F,A,C,y,16,s[38]),C=f(C,O,F,A,x,23,s[39]),A=f(A,C,O,F,S,4,s[40]),F=f(F,A,C,O,a,11,s[41]),O=f(O,F,A,C,d,16,s[42]),C=f(C,O,F,A,g,23,s[43]),A=f(A,C,O,F,w,4,s[44]),F=f(F,A,C,O,k,11,s[45]),O=f(O,F,A,C,P,16,s[46]),A=h(A,C=f(C,O,F,A,p,23,s[47]),O,F,a,6,s[48]),F=h(F,A,C,O,y,10,s[49]),O=h(O,F,A,C,D,15,s[50]),C=h(C,O,F,A,v,21,s[51]),A=h(A,C,O,F,k,6,s[52]),F=h(F,A,C,O,d,10,s[53]),O=h(O,F,A,C,x,15,s[54]),C=h(C,O,F,A,c,21,s[55]),A=h(A,C,O,F,b,6,s[56]),F=h(F,A,C,O,P,10,s[57]),O=h(O,F,A,C,g,15,s[58]),C=h(C,O,F,A,S,21,s[59]),A=h(A,C,O,F,m,6,s[60]),F=h(F,A,C,O,E,10,s[61]),O=h(O,F,A,C,p,15,s[62]),C=h(C,O,F,A,w,21,s[63]),i[0]=i[0]+A|0,i[1]=i[1]+C|0,i[2]=i[2]+O|0,i[3]=i[3]+F|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,o=8*t.sigBytes;r[o>>>5]|=128<<24-o%32;var i=e.floor(n/4294967296),a=n;r[15+(o+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),r[14+(o+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),t.sigBytes=4*(r.length+1),this._process();for(var s=this._hash,c=s.words,u=0;u<4;u++){var l=c[u];c[u]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8)}return s},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});function u(e,t,r,n,o,i,a){var s=e+(t&r|~t&n)+o+a;return(s<<i|s>>>32-i)+t}function l(e,t,r,n,o,i,a){var s=e+(t&n|r&~n)+o+a;return(s<<i|s>>>32-i)+t}function f(e,t,r,n,o,i,a){var s=e+(t^r^n)+o+a;return(s<<i|s>>>32-i)+t}function h(e,t,r,n,o,i,a){var s=e+(r^(t|~n))+o+a;return(s<<i|s>>>32-i)+t}t.MD5=i._createHelper(c),t.HmacMD5=i._createHmacHelper(c)}(Math),n.MD5)},2568:function(e,t,r){var n,o,i,a,s,c,u,l;e.exports=(l=r(4180),o=(n=l).lib,i=o.WordArray,a=o.Hasher,s=n.algo,c=[],u=s.SHA1=a.extend({_doReset:function(){this._hash=new i.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],s=r[4],u=0;u<80;u++){if(u<16)c[u]=0|e[t+u];else{var l=c[u-3]^c[u-8]^c[u-14]^c[u-16];c[u]=l<<1|l>>>31}var f=(n<<5|n>>>27)+s+c[u];f+=u<20?1518500249+(o&i|~o&a):u<40?1859775393+(o^i^a):u<60?(o&i|o&a|i&a)-1894007588:(o^i^a)-899497514,s=a,a=i,i=o<<30|o>>>2,o=n,n=f}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]+s|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=a.clone.call(this);return e._hash=this._hash.clone(),e}}),n.SHA1=a._createHelper(u),n.HmacSHA1=a._createHmacHelper(u),l.SHA1)},6018:e=>{"use strict";var t="%[a-f0-9]{2}",r=new RegExp("("+t+")|([^%]+?)","gi"),n=new RegExp("("+t+")+","gi");function o(e,t){try{return[decodeURIComponent(e.join(""))]}catch(e){}if(1===e.length)return e;t=t||1;var r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],o(r),o(n))}function i(e){try{return decodeURIComponent(e)}catch(i){for(var t=e.match(r)||[],n=1;n<t.length;n++)t=(e=o(t,n).join("")).match(r)||[];return e}}e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return function(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},r=n.exec(e);r;){try{t[r[0]]=decodeURIComponent(r[0])}catch(e){var o=i(r[0]);o!==r[0]&&(t[r[0]]=o)}r=n.exec(e)}t["%C2"]="�";for(var a=Object.keys(t),s=0;s<a.length;s++){var c=a[s];e=e.replace(new RegExp(c,"g"),t[c])}return e}(e)}}},4740:e=>{"use strict";var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},s=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},c=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,l,f=arguments[0],h=1,p=arguments.length,d=!1;for("boolean"==typeof f&&(d=f,f=arguments[1]||{},h=2),(null==f||"object"!=typeof f&&"function"!=typeof f)&&(f={});h<p;++h)if(null!=(t=arguments[h]))for(r in t)n=c(f,r),f!==(o=c(t,r))&&(d&&o&&(a(o)||(u=i(o)))?(u?(u=!1,l=n&&i(n)?n:[]):l=n&&a(n)?n:{},s(f,{name:r,newValue:e(d,l,o)})):void 0!==o&&s(f,{name:r,newValue:o}));return f}},5490:e=>{"use strict";e.exports=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 a=i[o];if(!e(t[a],r[a]))return!1}return!0}return t!=t&&r!=r}},6128:e=>{"use strict";e.exports=function(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});var r,n="boolean"==typeof t.cycles&&t.cycles,o=t.cmp&&(r=t.cmp,function(e){return function(t,n){var o={key:t,value:e[t]},i={key:n,value:e[n]};return r(o,i)}}),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 r,a;if(Array.isArray(t)){for(a="[",r=0;r<t.length;r++)r&&(a+=","),a+=e(t[r])||"null";return a+"]"}if(null===t)return"null";if(-1!==i.indexOf(t)){if(n)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var s=i.push(t)-1,c=Object.keys(t).sort(o&&o(t));for(a="",r=0;r<c.length;r++){var u=c[r],l=e(t[u]);l&&(a&&(a+=","),a+=JSON.stringify(u)+":"+l)}return i.splice(s,1),"{"+a+"}"}}(e)}},5739:e=>{"use strict";e.exports=function(e,t){for(var r={},n=Object.keys(e),o=Array.isArray(t),i=0;i<n.length;i++){var a=n[i],s=e[a];(o?-1!==t.indexOf(a):t(a,s,e))&&(r[a]=s)}return r}},8544:e=>{!function(){var t;function r(e){for(var t,r,n,o,i=1,a=[].slice.call(arguments),s=0,c=e.length,u="",l=!1,f=!1,h=function(){return a[i++]},p=function(){for(var r="";/\d/.test(e[s]);)r+=e[s++],t=e[s];return r.length>0?parseInt(r):null};s<c;++s)if(t=e[s],l)switch(l=!1,"."==t?(f=!1,t=e[++s]):"0"==t&&"."==e[s+1]?(f=!0,t=e[s+=2]):f=!0,o=p(),t){case"b":u+=parseInt(h(),10).toString(2);break;case"c":u+="string"==typeof(r=h())||r instanceof String?r:String.fromCharCode(parseInt(r,10));break;case"d":u+=parseInt(h(),10);break;case"f":n=String(parseFloat(h()).toFixed(o||6)),u+=f?n:n.replace(/^0/,"");break;case"j":u+=JSON.stringify(h());break;case"o":u+="0"+parseInt(h(),10).toString(8);break;case"s":u+=h();break;case"x":u+="0x"+parseInt(h(),10).toString(16);break;case"X":u+="0x"+parseInt(h(),10).toString(16).toUpperCase();break;default:u+=t}else"%"===t?l=!0:u+=t;return u}(t=e.exports=r).format=r,t.vsprintf=function(e,t){return r.apply(null,[e].concat(t))},"undefined"!=typeof console&&"function"==typeof console.log&&(t.printf=function(){console.log(r.apply(null,arguments))})}()},2827:(e,t,r)=>{"use strict";r.d(t,{Ep:()=>d,PP:()=>u,lX:()=>c});var n,o=r(5527);!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(n||(n={}));var i=function(e){return e};var a="beforeunload",s="popstate";function c(e){void 0===e&&(e={});var t=e.window,r=void 0===t?document.defaultView:t,c=r.history;function u(){var e=r.location,t=e.pathname,n=e.search,o=e.hash,a=c.state||{};return[a.idx,i({pathname:t,search:n,hash:o,state:a.usr||null,key:a.key||"default"})]}var l=null;r.addEventListener(s,(function(){if(l)x.call(l),l=null;else{var e=n.Pop,t=u(),r=t[0],o=t[1];if(x.length){if(null!=r){var i=y-r;i&&(l={action:e,location:o,retry:function(){A(-1*i)}},A(i))}}else P(e)}}));var v=n.Pop,g=u(),y=g[0],b=g[1],w=h(),x=h();function E(e){return"string"==typeof e?e:d(e)}function k(e,t){return void 0===t&&(t=null),i((0,o.Z)({pathname:b.pathname,hash:"",search:""},"string"==typeof e?m(e):e,{state:t,key:p()}))}function S(e,t){return[{usr:e.state,key:e.key,idx:t},E(e)]}function D(e,t,r){return!x.length||(x.call({action:e,location:t,retry:r}),!1)}function P(e){v=e;var t=u();y=t[0],b=t[1],w.call({action:v,location:b})}function A(e){c.go(e)}null==y&&(y=0,c.replaceState((0,o.Z)({},c.state,{idx:y}),""));var C={get action(){return v},get location(){return b},createHref:E,push:function e(t,o){var i=n.Push,a=k(t,o);if(D(i,a,(function(){e(t,o)}))){var s=S(a,y+1),u=s[0],l=s[1];try{c.pushState(u,"",l)}catch(e){r.location.assign(l)}P(i)}},replace:function e(t,r){var o=n.Replace,i=k(t,r);if(D(o,i,(function(){e(t,r)}))){var a=S(i,y),s=a[0],u=a[1];c.replaceState(s,"",u),P(o)}},go:A,back:function(){A(-1)},forward:function(){A(1)},listen:function(e){return w.push(e)},block:function(e){var t=x.push(e);return 1===x.length&&r.addEventListener(a,f),function(){t(),x.length||r.removeEventListener(a,f)}}};return C}function u(e){void 0===e&&(e={});var t=e,r=t.initialEntries,a=void 0===r?["/"]:r,s=t.initialIndex,c=a.map((function(e){return i((0,o.Z)({pathname:"/",search:"",hash:"",state:null,key:p()},"string"==typeof e?m(e):e))})),u=l(null==s?c.length-1:s,0,c.length-1),f=n.Pop,v=c[u],g=h(),y=h();function b(e,t){return void 0===t&&(t=null),i((0,o.Z)({pathname:v.pathname,search:"",hash:""},"string"==typeof e?m(e):e,{state:t,key:p()}))}function w(e,t,r){return!y.length||(y.call({action:e,location:t,retry:r}),!1)}function x(e,t){f=e,v=t,g.call({action:f,location:v})}function E(e){var t=l(u+e,0,c.length-1),r=n.Pop,o=c[t];w(r,o,(function(){E(e)}))&&(u=t,x(r,o))}var k={get index(){return u},get action(){return f},get location(){return v},createHref:function(e){return"string"==typeof e?e:d(e)},push:function e(t,r){var o=n.Push,i=b(t,r);w(o,i,(function(){e(t,r)}))&&(u+=1,c.splice(u,c.length,i),x(o,i))},replace:function e(t,r){var o=n.Replace,i=b(t,r);w(o,i,(function(){e(t,r)}))&&(c[u]=i,x(o,i))},go:E,back:function(){E(-1)},forward:function(){E(1)},listen:function(e){return g.push(e)},block:function(e){return y.push(e)}};return k}function l(e,t,r){return Math.min(Math.max(e,t),r)}function f(e){e.preventDefault(),e.returnValue=""}function h(){var e=[];return{get length(){return e.length},push:function(t){return e.push(t),function(){e=e.filter((function(e){return e!==t}))}},call:function(t){e.forEach((function(e){return e&&e(t)}))}}}function p(){return Math.random().toString(36).substr(2,8)}function d(e){var t=e.pathname,r=void 0===t?"/":t,n=e.search,o=void 0===n?"":n,i=e.hash,a=void 0===i?"":i;return o&&"?"!==o&&(r+="?"===o.charAt(0)?o:"?"+o),a&&"#"!==a&&(r+="#"===a.charAt(0)?a:"#"+a),r}function m(e){var t={};if(e){var r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));var n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}},6095:(e,t,r)=>{"use strict";var n=r(5566),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function c(e){return n.isMemo(e)?a:s[e.$$typeof]||o}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=a;var u=Object.defineProperty,l=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,d=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(d){var o=p(r);o&&o!==d&&e(t,o,n)}var a=l(r);f&&(a=a.concat(f(r)));for(var s=c(t),m=c(r),v=0;v<a.length;++v){var g=a[v];if(!(i[g]||n&&n[g]||m&&m[g]||s&&s[g])){var y=h(r,g);try{u(t,g,y)}catch(e){}}}}return t}},5110:(e,t,r)=>{"use strict";e.exports=r(6614)},9161:e=>{e.exports=function(e){return!(!e||"string"==typeof e)&&(e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&"String"!==e.constructor.name))}},276:e=>{"use strict";var t=e.exports=function(e,t,n){"function"==typeof t&&(n=t,t={}),r(t,"function"==typeof(n=t.cb||n)?n:n.pre||function(){},n.post||function(){},e,"",e)};function r(e,n,o,i,a,s,c,u,l,f){if(i&&"object"==typeof i&&!Array.isArray(i)){for(var h in n(i,a,s,c,u,l,f),i){var p=i[h];if(Array.isArray(p)){if(h in t.arrayKeywords)for(var d=0;d<p.length;d++)r(e,n,o,p[d],a+"/"+h+"/"+d,s,a,h,i,d)}else if(h in t.propsKeywords){if(p&&"object"==typeof p)for(var m in p)r(e,n,o,p[m],a+"/"+h+"/"+m.replace(/~/g,"~0").replace(/\//g,"~1"),s,a,h,i,m)}else(h in t.keywords||e.allKeys&&!(h in t.skipKeywords))&&r(e,n,o,p,a+"/"+h,s,a,h,i)}o(i,a,s,c,u,l,f)}}t.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0},t.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},t.propsKeywords={definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},t.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}},4636:function(e,t){var r,n,o;n=[],void 0===(o="function"==typeof(r=function(){var e=function(){},t={},r={},n={};function o(e,t){e=e.push?e:[e];var o,i,a,s=[],c=e.length,u=c;for(o=function(e,r){r.length&&s.push(e),--u||t(s)};c--;)i=e[c],(a=r[i])?o(i,a):(n[i]=n[i]||[]).push(o)}function i(e,t){if(e){var o=n[e];if(r[e]=t,o)for(;o.length;)o[0](e,t),o.splice(0,1)}}function a(t,r){t.call&&(t={success:t}),r.length?(t.error||e)(r):(t.success||e)(t)}function s(t,r,n,o){var i,a,c=document,u=n.async,l=(n.numRetries||0)+1,f=n.before||e,h=t.replace(/[\?|#].*$/,""),p=t.replace(/^(css|img)!/,"");o=o||0,/(^css!|\.css$)/.test(h)?((a=c.createElement("link")).rel="stylesheet",a.href=p,(i="hideFocus"in a)&&a.relList&&(i=0,a.rel="preload",a.as="style")):/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(h)?(a=c.createElement("img")).src=p:((a=c.createElement("script")).src=t,a.async=void 0===u||u),a.onload=a.onerror=a.onbeforeload=function(e){var c=e.type[0];if(i)try{a.sheet.cssText.length||(c="e")}catch(e){18!=e.code&&(c="e")}if("e"==c){if((o+=1)<l)return s(t,r,n,o)}else if("preload"==a.rel&&"style"==a.as)return a.rel="stylesheet";r(t,c,e.defaultPrevented)},!1!==f(t,a)&&c.head.appendChild(a)}function c(e,t,r){var n,o,i=(e=e.push?e:[e]).length,a=i,c=[];for(n=function(e,r,n){if("e"==r&&c.push(e),"b"==r){if(!n)return;c.push(e)}--i||t(c)},o=0;o<a;o++)s(e[o],n,r)}function u(e,r,n){var o,s;if(r&&r.trim&&(o=r),s=(o?n:r)||{},o){if(o in t)throw"LoadJS";t[o]=!0}function u(t,r){c(e,(function(e){a(s,e),t&&a({success:t,error:r},e),i(o,e)}),s)}if(s.returnPromise)return new Promise(u);u()}return u.ready=function(e,t){return o(e,(function(e){a(t,e)})),u},u.done=function(e){i(e,[])},u.reset=function(){t={},r={},n={}},u.isDefined=function(e){return e in t},u})?r.apply(t,n):r)||(e.exports=o)},1538:e=>{"use strict";
11
11
  /*
12
12
  object-assign
13
13
  (c) Sindre Sorhus
@@ -48,5 +48,5 @@ object-assign
48
48
  * LICENSE file in the root directory of this source tree.
49
49
  */var n=r(7363),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,r){var n,i={},u=null,l=null;for(n in void 0!==r&&(u=""+r),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(l=t.ref),t)a.call(t,n)&&!c.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===i[n]&&(i[n]=t[n]);return{$$typeof:o,type:e,key:u,ref:l,props:i,_owner:s.current}}t.Fragment=i,t.jsx=u,t.jsxs=u},5250:(e,t,r)=>{"use strict";e.exports=r(2875)},5218:e=>{e.exports=function(e,t,r,n){var o=r?r.call(n,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),c=0;c<i.length;c++){var u=i[c];if(!s(u))return!1;var l=e[u],f=t[u];if(!1===(o=r?r.call(n,l,f,u):void 0)||void 0===o&&l!==f)return!1}return!0}},5458:(e,t,r)=>{"use strict";var n=r(9161),o=Array.prototype.concat,i=Array.prototype.slice,a=e.exports=function(e){for(var t=[],r=0,a=e.length;r<a;r++){var s=e[r];n(s)?t=o.call(t,i.call(s)):t.push(s)}return t};a.wrap=function(e){return function(){return e(a(arguments))}}},8882:e=>{"use strict";e.exports=(e,t)=>{if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];const r=e.indexOf(t);return-1===r?[e]:[e.slice(0,r),e.slice(r+t.length)]}},3602:e=>{"use strict";e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`))},5648:function(e,t){
50
50
  /** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */
51
- !function(e){"use strict";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 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]",o="[0-9]",i=t(o,"[A-Fa-f]"),a=r(r("%[EFef]"+i+"%"+i+i+"%"+i+i)+"|"+r("%[89A-Fa-f]"+i+"%"+i+i)+"|"+r("%"+i+i)),s="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",c=t("[\\:\\/\\?\\#\\[\\]\\@]",s),u=e?"[\\uE000-\\uF8FF]":"[]",l=t(n,o,"[\\-\\.\\_\\~]",e?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]"),f=r(n+t(n,o,"[\\+\\-\\.]")+"*"),h=r(r(a+"|"+t(l,s,"[\\:]"))+"*"),p=(r(r("25[0-5]")+"|"+r("2[0-4]"+o)+"|"+r("1"+o+o)+"|"+r("[1-9]"+o)+"|"+o),r(r("25[0-5]")+"|"+r("2[0-4]"+o)+"|"+r("1"+o+o)+"|"+r("0?[1-9]"+o)+"|0?0?"+o)),d=r(p+"\\."+p+"\\."+p+"\\."+p),m=r(i+"{1,4}"),v=r(r(m+"\\:"+m)+"|"+d),g=r(r(m+"\\:")+"{6}"+v),y=r("\\:\\:"+r(m+"\\:")+"{5}"+v),b=r(r(m)+"?\\:\\:"+r(m+"\\:")+"{4}"+v),w=r(r(r(m+"\\:")+"{0,1}"+m)+"?\\:\\:"+r(m+"\\:")+"{3}"+v),x=r(r(r(m+"\\:")+"{0,2}"+m)+"?\\:\\:"+r(m+"\\:")+"{2}"+v),E=r(r(r(m+"\\:")+"{0,3}"+m)+"?\\:\\:"+m+"\\:"+v),k=r(r(r(m+"\\:")+"{0,4}"+m)+"?\\:\\:"+v),S=r(r(r(m+"\\:")+"{0,5}"+m)+"?\\:\\:"+m),D=r(r(r(m+"\\:")+"{0,6}"+m)+"?\\:\\:"),P=r([g,y,b,w,x,E,k,S,D].join("|")),A=r(r(l+"|"+a)+"+"),C=(r(P+"\\%25"+A),r(P+r("\\%25|\\%(?!"+i+"{2})")+A)),O=r("[vV]"+i+"+\\."+t(l,s,"[\\:]")+"+"),F=r("\\["+r(C+"|"+P+"|"+O)+"\\]"),j=r(r(a+"|"+t(l,s))+"*"),T=r(F+"|"+d+"(?!"+j+")|"+j),_=r(o+"*"),R=r(r(h+"@")+"?"+T+r("\\:"+_)+"?"),I=r(a+"|"+t(l,s,"[\\:\\@]")),L=r(I+"*"),B=r(I+"+"),M=r(r(a+"|"+t(l,s,"[\\@]"))+"+"),N=r(r("\\/"+L)+"*"),H=r("\\/"+r(B+N)+"?"),z=r(M+N),U=r(B+N),$="(?!"+I+")",q=(r(N+"|"+H+"|"+z+"|"+U+"|"+$),r(r(I+"|"+t("[\\/\\?]",u))+"*")),V=r(r(I+"|[\\/\\?]")+"*"),G=r(r("\\/\\/"+R+N)+"|"+H+"|"+U+"|"+$),W=r(f+"\\:"+G+r("\\?"+q)+"?"+r("\\#"+V)+"?"),K=r(r("\\/\\/"+R+N)+"|"+H+"|"+z+"|"+$),Q=r(K+r("\\?"+q)+"?"+r("\\#"+V)+"?");return r(W+"|"+Q),r(f+"\\:"+G+r("\\?"+q)+"?"),r(r("\\/\\/("+r("("+h+")@")+"?("+T+")"+r("\\:("+_+")")+"?)")+"?("+N+"|"+H+"|"+U+"|"+$+")"),r("\\?("+q+")"),r("\\#("+V+")"),r(r("\\/\\/("+r("("+h+")@")+"?("+T+")"+r("\\:("+_+")")+"?)")+"?("+N+"|"+H+"|"+z+"|"+$+")"),r("\\?("+q+")"),r("\\#("+V+")"),r(r("\\/\\/("+r("("+h+")@")+"?("+T+")"+r("\\:("+_+")")+"?)")+"?("+N+"|"+H+"|"+U+"|"+$+")"),r("\\?("+q+")"),r("\\#("+V+")"),r("("+h+")@"),r("\\:("+_+")"),{NOT_SCHEME:new RegExp(t("[^]",n,o,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(t("[^\\%\\:]",l,s),"g"),NOT_HOST:new RegExp(t("[^\\%\\[\\]\\:]",l,s),"g"),NOT_PATH:new RegExp(t("[^\\%\\/\\:\\@]",l,s),"g"),NOT_PATH_NOSCHEME:new RegExp(t("[^\\%\\/\\@]",l,s),"g"),NOT_QUERY:new RegExp(t("[^\\%]",l,s,"[\\:\\@\\/\\?]",u),"g"),NOT_FRAGMENT:new RegExp(t("[^\\%]",l,s,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(t("[^]",l,s),"g"),UNRESERVED:new RegExp(l,"g"),OTHER_CHARS:new RegExp(t("[^\\%]",l,c),"g"),PCT_ENCODED:new RegExp(a,"g"),IPV4ADDRESS:new RegExp("^("+d+")$"),IPV6ADDRESS:new RegExp("^\\[?("+P+")"+r(r("\\%25|\\%(?!"+i+"{2})")+"("+A+")")+"?\\]?$")}}var c=s(!1),u=s(!0),l=function(){function e(e,t){var r=[],n=!0,o=!1,i=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){o=!0,i=e}finally{try{!n&&s.return&&s.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")}}(),f=function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)},h=2147483647,p=36,d=1,m=26,v=38,g=700,y=72,b=128,w="-",x=/^xn--/,E=/[^\0-\x7E]/,k=/[\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"},D=p-d,P=Math.floor,A=String.fromCharCode;function C(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 F(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+O((e=e.replace(k,".")).split("."),t).join(".")}function j(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 T=function(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:p},_=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},R=function(e,t,r){var n=0;for(e=r?P(e/g):e>>1,e+=P(e/t);e>D*m>>1;n+=p)e=P(e/D);return P(n+(D+1)*e/(e+v))},I=function(e){var t=[],r=e.length,n=0,o=b,i=y,a=e.lastIndexOf(w);a<0&&(a=0);for(var s=0;s<a;++s)e.charCodeAt(s)>=128&&C("not-basic"),t.push(e.charCodeAt(s));for(var c=a>0?a+1:0;c<r;){for(var u=n,l=1,f=p;;f+=p){c>=r&&C("invalid-input");var v=T(e.charCodeAt(c++));(v>=p||v>P((h-n)/l))&&C("overflow"),n+=v*l;var g=f<=i?d:f>=i+m?m:f-i;if(v<g)break;var x=p-g;l>P(h/x)&&C("overflow"),l*=x}var E=t.length+1;i=R(n-u,E,0==u),P(n/E)>h-o&&C("overflow"),o+=P(n/E),n%=E,t.splice(n++,0,o)}return String.fromCodePoint.apply(String,t)},L=function(e){var t=[],r=(e=j(e)).length,n=b,o=0,i=y,a=!0,s=!1,c=void 0;try{for(var u,l=e[Symbol.iterator]();!(a=(u=l.next()).done);a=!0){var f=u.value;f<128&&t.push(A(f))}}catch(e){s=!0,c=e}finally{try{!a&&l.return&&l.return()}finally{if(s)throw c}}var v=t.length,g=v;for(v&&t.push(w);g<r;){var x=h,E=!0,k=!1,S=void 0;try{for(var D,O=e[Symbol.iterator]();!(E=(D=O.next()).done);E=!0){var F=D.value;F>=n&&F<x&&(x=F)}}catch(e){k=!0,S=e}finally{try{!E&&O.return&&O.return()}finally{if(k)throw S}}var T=g+1;x-n>P((h-o)/T)&&C("overflow"),o+=(x-n)*T,n=x;var I=!0,L=!1,B=void 0;try{for(var M,N=e[Symbol.iterator]();!(I=(M=N.next()).done);I=!0){var H=M.value;if(H<n&&++o>h&&C("overflow"),H==n){for(var z=o,U=p;;U+=p){var $=U<=i?d:U>=i+m?m:U-i;if(z<$)break;var q=z-$,V=p-$;t.push(A(_($+q%V,0))),z=P(q/V)}t.push(A(_(z,0))),i=R(o,T,g==v),o=0,++g}}}catch(e){L=!0,B=e}finally{try{!I&&N.return&&N.return()}finally{if(L)throw B}}++o,++n}return t.join("")},B=function(e){return F(e,(function(e){return x.test(e)?I(e.slice(4).toLowerCase()):e}))},M=function(e){return F(e,(function(e){return E.test(e)?"xn--"+L(e):e}))},N={version:"2.1.0",ucs2:{decode:j,encode:function(e){return String.fromCodePoint.apply(String,f(e))}},decode:I,encode:L,toASCII:M,toUnicode:B},H={};function z(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 U(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 a=parseInt(e.substr(r+4,2),16),s=parseInt(e.substr(r+7,2),16);t+=String.fromCharCode((15&o)<<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 $(e,t){function r(e){var r=U(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,z).replace(t.PCT_ENCODED,o)),void 0!==e.host&&(e.host=String(e.host).replace(t.PCT_ENCODED,r).toLowerCase().replace(t.NOT_HOST,z).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,z).replace(t.PCT_ENCODED,o)),void 0!==e.query&&(e.query=String(e.query).replace(t.PCT_ENCODED,r).replace(t.NOT_QUERY,z).replace(t.PCT_ENCODED,o)),void 0!==e.fragment&&(e.fragment=String(e.fragment).replace(t.PCT_ENCODED,r).replace(t.NOT_FRAGMENT,z).replace(t.PCT_ENCODED,o)),e}function q(e){return e.replace(/^0*(.*)/,"$1")||"0"}function V(e,t){var r=e.match(t.IPV4ADDRESS)||[],n=l(r,2)[1];return n?n.split(".").map(q).join("."):e}function G(e,t){var r=e.match(t.IPV6ADDRESS)||[],n=l(r,3),o=n[1],i=n[2];if(o){for(var a=o.toLowerCase().split("::").reverse(),s=l(a,2),c=s[0],u=s[1],f=u?u.split(":").map(q):[],h=c.split(":").map(q),p=t.IPV4ADDRESS.test(h[h.length-1]),d=p?7:8,m=h.length-d,v=Array(d),g=0;g<d;++g)v[g]=f[g]||h[m+g]||"";p&&(v[d-1]=V(v[d-1],t));var y=v.reduce((function(e,t,r){if(!t||"0"===t){var n=e[e.length-1];n&&n.index+n.length===r?n.length++:e.push({index:r,length:1})}return e}),[]).sort((function(e,t){return t.length-e.length}))[0],b=void 0;if(y&&y.length>1){var w=v.slice(0,y.index),x=v.slice(y.index+y.length);b=w.join(":")+"::"+x.join(":")}else b=v.join(":");return i&&(b+="%"+i),b}return e}var W=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,K=void 0==="".match(/(){0}/)[1];function Q(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={},n=!1!==t.iri?u:c;"suffix"===t.reference&&(e=(t.scheme?t.scheme+":":"")+"//"+e);var o=e.match(W);if(o){K?(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=G(V(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)$(r,n);else{if(r.host&&(t.domainHost||i&&i.domainHost))try{r.host=N.toASCII(r.host.replace(n.PCT_ENCODED,U).toLowerCase())}catch(e){r.error=r.error||"Host's domain name can not be converted to ASCII via punycode: "+e}$(r,c)}i&&i.parse&&i.parse(r,t)}else r.error=r.error||"URI can not be parsed.";return r}function Z(e,t){var r=!1!==t.iri?u:c,n=[];return void 0!==e.userinfo&&(n.push(e.userinfo),n.push("@")),void 0!==e.host&&n.push(G(V(String(e.host),r),r).replace(r.IPV6ADDRESS,(function(e,t,r){return"["+t+(r?"%25"+r:"")+"]"}))),"number"!=typeof e.port&&"string"!=typeof e.port||(n.push(":"),n.push(String(e.port))),n.length?n.join(""):void 0}var Y=/^\.\.?\//,X=/^\/\.(\/|$)/,J=/^\/\.\.(\/|$)/,ee=/^\/?(?:.|\n)*?(?=\/|$)/;function te(e){for(var t=[];e.length;)if(e.match(Y))e=e.replace(Y,"");else if(e.match(X))e=e.replace(X,"/");else if(e.match(J))e=e.replace(J,"/"),t.pop();else if("."===e||".."===e)e="";else{var r=e.match(ee);if(!r)throw new Error("Unexpected dot segment condition");var n=r[0];e=e.slice(n.length),t.push(n)}return t.join("")}function re(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.iri?u:c,n=[],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?N.toUnicode(e.host):N.toASCII(e.host.replace(r.PCT_ENCODED,U).toLowerCase())}catch(r){e.error=e.error||"Host's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+r}$(e,r),"suffix"!==t.reference&&e.scheme&&(n.push(e.scheme),n.push(":"));var i=Z(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 a=e.path;t.absolutePath||o&&o.absolutePath||(a=te(a)),void 0===i&&(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=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=a({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 ae(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 se(e,t){return e&&e.toString().replace(t&&t.iri?u.ESCAPE:c.ESCAPE,z)}function ce(e,t){return e&&e.toString().replace(t&&t.iri?u.PCT_ENCODED:c.PCT_ENCODED,U)}var ue={scheme:"http",domainHost:!0,parse:function(e,t){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e},serialize:function(e,t){var r="https"===String(e.scheme).toLowerCase();return e.port!==(r?443:80)&&""!==e.port||(e.port=void 0),e.path||(e.path="/"),e}},le={scheme:"https",domainHost:ue.domainHost,parse:ue.parse,serialize:ue.serialize};function fe(e){return"boolean"==typeof e.secure?e.secure:"wss"===String(e.scheme).toLowerCase()}var he={scheme:"ws",domainHost:!0,parse:function(e,t){var r=e;return r.secure=fe(r),r.resourceName=(r.path||"/")+(r.query?"?"+r.query:""),r.path=void 0,r.query=void 0,r},serialize:function(e,t){if(e.port!==(fe(e)?443:80)&&""!==e.port||(e.port=void 0),"boolean"==typeof e.secure&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){var r=e.resourceName.split("?"),n=l(r,2),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:he.domainHost,parse:he.parse,serialize:he.serialize},de={},me="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",ve="[0-9A-Fa-f]",ge=r(r("%[EFef]"+ve+"%"+ve+ve+"%"+ve+ve)+"|"+r("%[89A-Fa-f]"+ve+"%"+ve+ve)+"|"+r("%"+ve+ve)),ye="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",be=t("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),we="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",xe=new RegExp(me,"g"),Ee=new RegExp(ge,"g"),ke=new RegExp(t("[^]",ye,"[\\.]",'[\\"]',be),"g"),Se=new RegExp(t("[^]",me,we),"g"),De=Se;function Pe(e){var t=U(e);return t.match(xe)?t:e}var Ae={scheme:"mailto",parse:function(e,t){var r=e,n=r.to=r.path?r.path.split(","):[];if(r.path=void 0,r.query){for(var o=!1,i={},a=r.query.split("&"),s=0,c=a.length;s<c;++s){var u=a[s].split("=");switch(u[0]){case"to":for(var l=u[1].split(","),f=0,h=l.length;f<h;++f)n.push(l[f]);break;case"subject":r.subject=ce(u[1],t);break;case"body":r.body=ce(u[1],t);break;default:o=!0,i[ce(u[0],t)]=ce(u[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]=N.toASCII(ce(m[1],t).toLowerCase())}catch(e){r.error=r.error||"Email address's domain name can not be converted to ASCII via punycode: "+e}n[p]=m.join("@")}return r},serialize:function(e,t){var r=e,n=i(e.to);if(n){for(var a=0,s=n.length;a<s;++a){var c=String(n[a]),u=c.lastIndexOf("@"),l=c.slice(0,u).replace(Ee,Pe).replace(Ee,o).replace(ke,z),f=c.slice(u+1);try{f=t.iri?N.toUnicode(f):N.toASCII(ce(f,t).toLowerCase())}catch(e){r.error=r.error||"Email address's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+e}n[a]=l+"@"+f}r.path=n.join(",")}var h=e.headers=e.headers||{};e.subject&&(h.subject=e.subject),e.body&&(h.body=e.body);var p=[];for(var d in h)h[d]!==de[d]&&p.push(d.replace(Ee,Pe).replace(Ee,o).replace(Se,z)+"="+h[d].replace(Ee,Pe).replace(Ee,o).replace(De,z));return p.length&&(r.query=p.join("&")),r}},Ce=/^([^\:]+)\:(.*)/,Oe={scheme:"urn",parse:function(e,t){var r=e.path&&e.path.match(Ce),n=e;if(r){var o=t.scheme||n.scheme||"urn",i=r[1].toLowerCase(),a=r[2],s=o+":"+(t.nid||i),c=H[s];n.nid=i,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,o=r+":"+(t.nid||n),i=H[o];i&&(e=i.serialize(e,t));var a=e,s=e.nss;return a.path=(n||t.nid)+":"+s,a}},Fe=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,je={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(Fe)||(r.error=r.error||"UUID is not valid."),r},serialize:function(e,t){var r=e;return r.nss=(e.uuid||"").toLowerCase(),r}};H[ue.scheme]=ue,H[le.scheme]=le,H[he.scheme]=he,H[pe.scheme]=pe,H[Ae.scheme]=Ae,H[Oe.scheme]=Oe,H[je.scheme]=je,e.SCHEMES=H,e.pctEncChar=z,e.pctDecChars=U,e.parse=Q,e.removeDotSegments=te,e.serialize=re,e.resolveComponents=ne,e.resolve=oe,e.normalize=ie,e.equal=ae,e.escapeComponent=se,e.unescapeComponent=ce,Object.defineProperty(e,"__esModule",{value:!0})}(t)},3040:(e,t,r)=>{"use strict";var n=r(4870),o=r(4783);function i(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=b,t.resolve=function(e,t){return b(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?b(e,!1,!0).resolveObject(t):t},t.format=function(e){o.isString(e)&&(e=b(e));return e instanceof i?e.format():i.prototype.format.call(e)},t.Url=i;var a=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,c=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,u=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),l=["'"].concat(u),f=["%","/","?",";","#"].concat(l),h=["/","?","#"],p=/^[+a-z0-9A-Z_-]{0,63}$/,d=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,m={javascript:!0,"javascript:":!0},v={javascript:!0,"javascript:":!0},g={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},y=r(4415);function b(e,t,r){if(e&&o.isObject(e)&&e instanceof i)return e;var n=new i;return n.parse(e,t,r),n}i.prototype.parse=function(e,t,r){if(!o.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var i=e.indexOf("?"),s=-1!==i&&i<e.indexOf("#")?"?":"#",u=e.split(s);u[0]=u[0].replace(/\\/g,"/");var b=e=u.join(s);if(b=b.trim(),!r&&1===e.split("#").length){var w=c.exec(b);if(w)return this.path=b,this.href=b,this.pathname=w[1],w[2]?(this.search=w[2],this.query=t?y.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var x=a.exec(b);if(x){var E=(x=x[0]).toLowerCase();this.protocol=E,b=b.substr(x.length)}if(r||x||b.match(/^\/\/[^@\/]+@[^@\/]+/)){var k="//"===b.substr(0,2);!k||x&&v[x]||(b=b.substr(2),this.slashes=!0)}if(!v[x]&&(k||x&&!g[x])){for(var S,D,P=-1,A=0;A<h.length;A++){-1!==(C=b.indexOf(h[A]))&&(-1===P||C<P)&&(P=C)}-1!==(D=-1===P?b.lastIndexOf("@"):b.lastIndexOf("@",P))&&(S=b.slice(0,D),b=b.slice(D+1),this.auth=decodeURIComponent(S)),P=-1;for(A=0;A<f.length;A++){var C;-1!==(C=b.indexOf(f[A]))&&(-1===P||C<P)&&(P=C)}-1===P&&(P=b.length),this.host=b.slice(0,P),b=b.slice(P),this.parseHost(),this.hostname=this.hostname||"";var O="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!O)for(var F=this.hostname.split(/\./),j=(A=0,F.length);A<j;A++){var T=F[A];if(T&&!T.match(p)){for(var _="",R=0,I=T.length;R<I;R++)T.charCodeAt(R)>127?_+="x":_+=T[R];if(!_.match(p)){var L=F.slice(0,A),B=F.slice(A+1),M=T.match(d);M&&(L.push(M[1]),B.unshift(M[2])),B.length&&(b="/"+B.join(".")+b),this.hostname=L.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),O||(this.hostname=n.toASCII(this.hostname));var N=this.port?":"+this.port:"",H=this.hostname||"";this.host=H+N,this.href+=this.host,O&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==b[0]&&(b="/"+b))}if(!m[E])for(A=0,j=l.length;A<j;A++){var z=l[A];if(-1!==b.indexOf(z)){var U=encodeURIComponent(z);U===z&&(U=escape(z)),b=b.split(z).join(U)}}var $=b.indexOf("#");-1!==$&&(this.hash=b.substr($),b=b.slice(0,$));var q=b.indexOf("?");if(-1!==q?(this.search=b.substr(q),this.query=b.substr(q+1),t&&(this.query=y.parse(this.query)),b=b.slice(0,q)):t&&(this.search="",this.query={}),b&&(this.pathname=b),g[E]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){N=this.pathname||"";var V=this.search||"";this.path=N+V}return this.href=this.format(),this},i.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",r=this.pathname||"",n=this.hash||"",i=!1,a="";this.host?i=e+this.host:this.hostname&&(i=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&o.isObject(this.query)&&Object.keys(this.query).length&&(a=y.stringify(this.query));var s=this.search||a&&"?"+a||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||g[t])&&!1!==i?(i="//"+(i||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):i||(i=""),n&&"#"!==n.charAt(0)&&(n="#"+n),s&&"?"!==s.charAt(0)&&(s="?"+s),t+i+(r=r.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(s=s.replace("#","%23"))+n},i.prototype.resolve=function(e){return this.resolveObject(b(e,!1,!0)).format()},i.prototype.resolveObject=function(e){if(o.isString(e)){var t=new i;t.parse(e,!1,!0),e=t}for(var r=new i,n=Object.keys(this),a=0;a<n.length;a++){var s=n[a];r[s]=this[s]}if(r.hash=e.hash,""===e.href)return r.href=r.format(),r;if(e.slashes&&!e.protocol){for(var c=Object.keys(e),u=0;u<c.length;u++){var l=c[u];"protocol"!==l&&(r[l]=e[l])}return g[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r}if(e.protocol&&e.protocol!==r.protocol){if(!g[e.protocol]){for(var f=Object.keys(e),h=0;h<f.length;h++){var p=f[h];r[p]=e[p]}return r.href=r.format(),r}if(r.protocol=e.protocol,e.host||v[e.protocol])r.pathname=e.pathname;else{for(var d=(e.pathname||"").split("/");d.length&&!(e.host=d.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==d[0]&&d.unshift(""),d.length<2&&d.unshift(""),r.pathname=d.join("/")}if(r.search=e.search,r.query=e.query,r.host=e.host||"",r.auth=e.auth,r.hostname=e.hostname||e.host,r.port=e.port,r.pathname||r.search){var m=r.pathname||"",y=r.search||"";r.path=m+y}return r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var b=r.pathname&&"/"===r.pathname.charAt(0),w=e.host||e.pathname&&"/"===e.pathname.charAt(0),x=w||b||r.host&&e.pathname,E=x,k=r.pathname&&r.pathname.split("/")||[],S=(d=e.pathname&&e.pathname.split("/")||[],r.protocol&&!g[r.protocol]);if(S&&(r.hostname="",r.port=null,r.host&&(""===k[0]?k[0]=r.host:k.unshift(r.host)),r.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===d[0]?d[0]=e.host:d.unshift(e.host)),e.host=null),x=x&&(""===d[0]||""===k[0])),w)r.host=e.host||""===e.host?e.host:r.host,r.hostname=e.hostname||""===e.hostname?e.hostname:r.hostname,r.search=e.search,r.query=e.query,k=d;else if(d.length)k||(k=[]),k.pop(),k=k.concat(d),r.search=e.search,r.query=e.query;else if(!o.isNullOrUndefined(e.search)){if(S)r.hostname=r.host=k.shift(),(O=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=O.shift(),r.host=r.hostname=O.shift());return r.search=e.search,r.query=e.query,o.isNull(r.pathname)&&o.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!k.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var D=k.slice(-1)[0],P=(r.host||e.host||k.length>1)&&("."===D||".."===D)||""===D,A=0,C=k.length;C>=0;C--)"."===(D=k[C])?k.splice(C,1):".."===D?(k.splice(C,1),A++):A&&(k.splice(C,1),A--);if(!x&&!E)for(;A--;A)k.unshift("..");!x||""===k[0]||k[0]&&"/"===k[0].charAt(0)||k.unshift(""),P&&"/"!==k.join("/").substr(-1)&&k.push("");var O,F=""===k[0]||k[0]&&"/"===k[0].charAt(0);S&&(r.hostname=r.host=F?"":k.length?k.shift():"",(O=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=O.shift(),r.host=r.hostname=O.shift()));return(x=x||r.host&&k.length)&&!F&&k.unshift(""),k.length?r.pathname=k.join("/"):(r.pathname=null,r.path=null),o.isNull(r.pathname)&&o.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},i.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},4783:e=>{"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},7363:e=>{"use strict";e.exports=React},1533:e=>{"use strict";e.exports=ReactDOM},2611:e=>{"use strict";e.exports=_},6728:()=>{},9436:(e,t,r)=>{var n=r(4898);function o(e){var t,r;function o(t,r){try{var a=e[t](r),s=a.value,c=s instanceof n;Promise.resolve(c?s.v:s).then((function(r){if(c){var n="return"===t?"return":"next";if(!s.k||r.done)return o(n,r);r=e[n](r).value}i(a.done?"return":"normal",r)}),(function(e){o("throw",e)}))}catch(e){i("throw",e)}}function i(e,n){switch(e){case"return":t.resolve({value:n,done:!0});break;case"throw":t.reject(n);break;default:t.resolve({value:n,done:!1})}(t=t.next)?o(t.key,t.arg):r=null}this._invoke=function(e,n){return new Promise((function(i,a){var s={key:e,arg:n,resolve:i,reject:a,next:null};r?r=r.next=s:(t=r=s,o(e,n))}))},"function"!=typeof e.return&&(this.return=void 0)}o.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},o.prototype.next=function(e){return this._invoke("next",e)},o.prototype.throw=function(e){return this._invoke("throw",e)},o.prototype.return=function(e){return this._invoke("return",e)},e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},4898:e=>{e.exports=function(e,t){this.v=e,this.k=t},e.exports.__esModule=!0,e.exports.default=e.exports},6487:e=>{e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n},e.exports.__esModule=!0,e.exports.default=e.exports},9605:e=>{e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},5466:(e,t,r)=>{var n=r(6487);e.exports=function(e){if(Array.isArray(e))return n(e)},e.exports.__esModule=!0,e.exports.default=e.exports},4114:e=>{e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},3476:(e,t,r)=>{var n=r(4898);e.exports=function(e){var t={},r=!1;function o(t,o){return r=!0,o=new Promise((function(r){r(e[t](o))})),{done:!1,value:new n(o,1)}}return t["undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator"]=function(){return this},t.next=function(e){return r?(r=!1,e):o("next",e)},"function"==typeof e.throw&&(t.throw=function(e){if(r)throw r=!1,e;return o("throw",e)}),"function"==typeof e.return&&(t.return=function(e){return r?(r=!1,e):o("return",e)}),t},e.exports.__esModule=!0,e.exports.default=e.exports},7392:e=>{function t(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}e.exports=function(e){return function(){var r=this,n=arguments;return new Promise((function(o,i){var a=e.apply(r,n);function s(e){t(a,o,i,s,c,"next",e)}function c(e){t(a,o,i,s,c,"throw",e)}s(void 0)}))}},e.exports.__esModule=!0,e.exports.default=e.exports},2153:(e,t,r)=>{var n=r(4898);e.exports=function(e){return new n(e,0)},e.exports.__esModule=!0,e.exports.default=e.exports},7934:e=>{e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},1318:(e,t,r)=>{var n=r(7745),o=r(8228);function i(t,r,a){return o()?(e.exports=i=Reflect.construct.bind(),e.exports.__esModule=!0,e.exports.default=e.exports):(e.exports=i=function(e,t,r){var o=[null];o.push.apply(o,t);var i=new(Function.bind.apply(e,o));return r&&n(i,r.prototype),i},e.exports.__esModule=!0,e.exports.default=e.exports),i.apply(null,arguments)}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},1176:(e,t,r)=>{var n=r(652);function o(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,n(o.key),o)}}e.exports=function(e,t,r){return t&&o(e.prototype,t),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},9862:(e,t,r)=>{var n=r(652);e.exports=function(e,t,r){return(t=n(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports},1700:e=>{function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(this,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},2904:e=>{function t(r){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},5523:(e,t,r)=>{var n=r(7745);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&n(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},2519:(e,t,r)=>{var n=r(7745);e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,n(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},7606:e=>{e.exports=function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}},e.exports.__esModule=!0,e.exports.default=e.exports},8228:e=>{e.exports=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}},e.exports.__esModule=!0,e.exports.default=e.exports},2748:e=>{e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports},201:e=>{e.exports=function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}},e.exports.__esModule=!0,e.exports.default=e.exports},2725:e=>{e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},6207:e=>{e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},2416:e=>{e.exports=function(e){if(null==e)throw new TypeError("Cannot destructure "+e)},e.exports.__esModule=!0,e.exports.default=e.exports},1221:(e,t,r)=>{var n=r(4999);e.exports=function(e,t){if(null==e)return{};var r,o,i=n(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)r=a[o],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i},e.exports.__esModule=!0,e.exports.default=e.exports},4999:e=>{e.exports=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o},e.exports.__esModule=!0,e.exports.default=e.exports},5745:(e,t,r)=>{var n=r(6851).default,o=r(4114);e.exports=function(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return o(e)},e.exports.__esModule=!0,e.exports.default=e.exports},393:(e,t,r)=>{var n=r(6851).default;function o(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e.exports=o=function(){return r},e.exports.__esModule=!0,e.exports.default=e.exports;var t,r={},i=Object.prototype,a=i.hasOwnProperty,s=Object.defineProperty||function(e,t,r){e[t]=r.value},c="function"==typeof Symbol?Symbol:{},u=c.iterator||"@@iterator",l=c.asyncIterator||"@@asyncIterator",f=c.toStringTag||"@@toStringTag";function h(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{h({},"")}catch(t){h=function(e,t,r){return e[t]=r}}function p(e,t,r,n){var o=t&&t.prototype instanceof w?t:w,i=Object.create(o.prototype),a=new _(n||[]);return s(i,"_invoke",{value:O(e,r,a)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}r.wrap=p;var m="suspendedStart",v="suspendedYield",g="executing",y="completed",b={};function w(){}function x(){}function E(){}var k={};h(k,u,(function(){return this}));var S=Object.getPrototypeOf,D=S&&S(S(R([])));D&&D!==i&&a.call(D,u)&&(k=D);var P=E.prototype=w.prototype=Object.create(k);function A(e){["next","throw","return"].forEach((function(t){h(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function r(o,i,s,c){var u=d(e[o],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==n(f)&&a.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,s,c)}),(function(e){r("throw",e,s,c)})):t.resolve(f).then((function(e){l.value=e,s(l)}),(function(e){return r("throw",e,s,c)}))}c(u.arg)}var o;s(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}})}function O(e,r,n){var o=m;return function(i,a){if(o===g)throw new Error("Generator is already running");if(o===y){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var c=F(s,n);if(c){if(c===b)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===m)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=g;var u=d(e,r,n);if("normal"===u.type){if(o=n.done?y:v,u.arg===b)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=y,n.method="throw",n.arg=u.arg)}}}function F(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,F(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var i=d(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,b;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,b):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function _(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[u];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(a.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(n(e)+" is not iterable")}return x.prototype=E,s(P,"constructor",{value:E,configurable:!0}),s(E,"constructor",{value:x,configurable:!0}),x.displayName=h(E,f,"GeneratorFunction"),r.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===x||"GeneratorFunction"===(t.displayName||t.name))},r.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,E):(e.__proto__=E,h(e,f,"GeneratorFunction")),e.prototype=Object.create(P),e},r.awrap=function(e){return{__await:e}},A(C.prototype),h(C.prototype,l,(function(){return this})),r.AsyncIterator=C,r.async=function(e,t,n,o,i){void 0===i&&(i=Promise);var a=new C(p(e,t,n,o),i);return r.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},A(P),h(P,f,"Generator"),h(P,u,(function(){return this})),h(P,"toString",(function(){return"[object Generator]"})),r.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},r.values=R,_.prototype={constructor:_,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(T),!e)for(var r in this)"t"===r.charAt(0)&&a.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=a.call(i,"catchLoc"),u=a.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,b):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),b},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),T(r),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;T(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),b}},r}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},7745:e=>{function t(r,n){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r,n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},125:(e,t,r)=>{var n=r(9605),o=r(201),i=r(1229),a=r(2725);e.exports=function(e,t){return n(e)||o(e,t)||i(e,t)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},5225:e=>{e.exports=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))},e.exports.__esModule=!0,e.exports.default=e.exports},9294:(e,t,r)=>{var n=r(9605),o=r(2748),i=r(1229),a=r(2725);e.exports=function(e){return n(e)||o(e)||i(e)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},9664:(e,t,r)=>{var n=r(5466),o=r(2748),i=r(1229),a=r(6207);e.exports=function(e){return n(e)||o(e)||i(e)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},2523:(e,t,r)=>{var n=r(6851).default;e.exports=function(e,t){if("object"!==n(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!==n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},652:(e,t,r)=>{var n=r(6851).default,o=r(2523);e.exports=function(e){var t=o(e,"string");return"symbol"===n(t)?t:String(t)},e.exports.__esModule=!0,e.exports.default=e.exports},6851:e=>{function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},1229:(e,t,r)=>{var n=r(6487);e.exports=function(e,t){if(e){if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},9705:(e,t,r)=>{var n=r(9436);e.exports=function(e){return function(){return new n(e.apply(this,arguments))}},e.exports.__esModule=!0,e.exports.default=e.exports},9108:(e,t,r)=>{var n=r(2904),o=r(7745),i=r(7606),a=r(1318);function s(t){var r="function"==typeof Map?new Map:void 0;return e.exports=s=function(e){if(null===e||!i(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(e))return r.get(e);r.set(e,t)}function t(){return a(e,arguments,n(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),o(t,e)},e.exports.__esModule=!0,e.exports.default=e.exports,s(t)}e.exports=s,e.exports.__esModule=!0,e.exports.default=e.exports},5756:(e,t,r)=>{var n=r(393)();e.exports=n;try{regeneratorRuntime=n}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},4744:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(3659);function o(e,t,r){return(t=(0,n.Z)(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},5527:(e,t,r)=>{"use strict";function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},n.apply(this,arguments)}r.d(t,{Z:()=>n})},6673:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(4744);function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){(0,n.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}},3659:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(1062);function o(e){var t=function(e,t){if("object"!==(0,n.Z)(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!==(0,n.Z)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===(0,n.Z)(t)?t:String(t)}},1062:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}r.d(t,{Z:()=>n})},6065:(e,t,r)=>{"use strict";function n(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map((function(e){return"'"+e+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function o(e){return!!e&&!!e[V]}function i(e){var t;return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return r===Object||"function"==typeof r&&Function.toString.call(r)===G}(e)||Array.isArray(e)||!!e[q]||!!(null===(t=e.constructor)||void 0===t?void 0:t[q])||h(e)||p(e))}function a(e,t,r){void 0===r&&(r=!1),0===s(e)?(r?Object.keys:W)(e).forEach((function(n){r&&"symbol"==typeof n||t(n,e[n],e)})):e.forEach((function(r,n){return t(n,r,e)}))}function s(e){var t=e[V];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:h(e)?2:p(e)?3:0}function c(e,t){return 2===s(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function u(e,t){return 2===s(e)?e.get(t):e[t]}function l(e,t,r){var n=s(e);2===n?e.set(t,r):3===n?e.add(r):e[t]=r}function f(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function h(e){return H&&e instanceof Map}function p(e){return z&&e instanceof Set}function d(e){return e.o||e.t}function m(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=K(e);delete t[V];for(var r=W(t),n=0;n<r.length;n++){var o=r[n],i=t[o];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function v(e,t){return void 0===t&&(t=!1),y(e)||o(e)||!i(e)||(s(e)>1&&(e.set=e.add=e.clear=e.delete=g),Object.freeze(e),t&&a(e,(function(e,t){return v(t,!0)}),!0)),e}function g(){n(2)}function y(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function b(e){var t=Q[e];return t||n(18,e),t}function w(){return M}function x(e,t){t&&(b("Patches"),e.u=[],e.s=[],e.v=t)}function E(e){k(e),e.p.forEach(D),e.p=null}function k(e){e===M&&(M=e.l)}function S(e){return M={p:[],l:M,h:e,m:!0,_:0}}function D(e){var t=e[V];0===t.i||1===t.i?t.j():t.O=!0}function P(e,t){t._=t.p.length;var r=t.p[0],o=void 0!==e&&e!==r;return t.h.g||b("ES5").S(t,e,o),o?(r[V].P&&(E(t),n(4)),i(e)&&(e=A(t,e),t.l||O(t,e)),t.u&&b("Patches").M(r[V].t,e,t.u,t.s)):e=A(t,r,[]),E(t),t.u&&t.v(t.u,t.s),e!==$?e:void 0}function A(e,t,r){if(y(t))return t;var n=t[V];if(!n)return a(t,(function(o,i){return C(e,n,t,o,i,r)}),!0),t;if(n.A!==e)return t;if(!n.P)return O(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var o=4===n.i||5===n.i?n.o=m(n.k):n.o,i=o,s=!1;3===n.i&&(i=new Set(o),o.clear(),s=!0),a(i,(function(t,i){return C(e,n,o,t,i,r,s)})),O(e,o,!1),r&&e.u&&b("Patches").N(n,r,e.u,e.s)}return n.o}function C(e,t,r,n,a,s,u){if(o(a)){var f=A(e,a,s&&t&&3!==t.i&&!c(t.R,n)?s.concat(n):void 0);if(l(r,n,f),!o(f))return;e.m=!1}else u&&r.add(a);if(i(a)&&!y(a)){if(!e.h.D&&e._<1)return;A(e,a),t&&t.A.l||O(e,a)}}function O(e,t,r){void 0===r&&(r=!1),!e.l&&e.h.D&&e.m&&v(t,r)}function F(e,t){var r=e[V];return(r?d(r):e)[t]}function j(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function T(e){e.P||(e.P=!0,e.l&&T(e.l))}function _(e){e.o||(e.o=m(e.t))}function R(e,t,r){var n=h(t)?b("MapSet").F(t,r):p(t)?b("MapSet").T(t,r):e.g?function(e,t){var r=Array.isArray(e),n={i:r?1:0,A:t?t.A:w(),P:!1,I:!1,R:{},l:t,t:e,k:null,o:null,j:null,C:!1},o=n,i=Z;r&&(o=[n],i=Y);var a=Proxy.revocable(o,i),s=a.revoke,c=a.proxy;return n.k=c,n.j=s,c}(t,r):b("ES5").J(t,r);return(r?r.A:w()).p.push(n),n}function I(e){return o(e)||n(22,e),function e(t){if(!i(t))return t;var r,n=t[V],o=s(t);if(n){if(!n.P&&(n.i<4||!b("ES5").K(n)))return n.t;n.I=!0,r=L(t,o),n.I=!1}else r=L(t,o);return a(r,(function(t,o){n&&u(n.t,t)===o||l(r,t,e(o))})),3===o?new Set(r):r}(e)}function L(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return m(e)}r.d(t,{Fl:()=>te,Uy:()=>ee,sc:()=>q});var B,M,N="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),H="undefined"!=typeof Map,z="undefined"!=typeof Set,U="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,$=N?Symbol.for("immer-nothing"):((B={})["immer-nothing"]=!0,B),q=N?Symbol.for("immer-draftable"):"__$immer_draftable",V=N?Symbol.for("immer-state"):"__$immer_state",G=("undefined"!=typeof Symbol&&Symbol.iterator,""+Object.prototype.constructor),W="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,K=Object.getOwnPropertyDescriptors||function(e){var t={};return W(e).forEach((function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)})),t},Q={},Z={get:function(e,t){if(t===V)return e;var r=d(e);if(!c(r,t))return function(e,t,r){var n,o=j(t,r);return o?"value"in o?o.value:null===(n=o.get)||void 0===n?void 0:n.call(e.k):void 0}(e,r,t);var n=r[t];return e.I||!i(n)?n:n===F(e.t,t)?(_(e),e.o[t]=R(e.A.h,n,e)):n},has:function(e,t){return t in d(e)},ownKeys:function(e){return Reflect.ownKeys(d(e))},set:function(e,t,r){var n=j(d(e),t);if(null==n?void 0:n.set)return n.set.call(e.k,r),!0;if(!e.P){var o=F(d(e),t),i=null==o?void 0:o[V];if(i&&i.t===r)return e.o[t]=r,e.R[t]=!1,!0;if(f(r,o)&&(void 0!==r||c(e.t,t)))return!0;_(e),T(e)}return e.o[t]===r&&(void 0!==r||t in e.o)||Number.isNaN(r)&&Number.isNaN(e.o[t])||(e.o[t]=r,e.R[t]=!0),!0},deleteProperty:function(e,t){return void 0!==F(e.t,t)||t in e.t?(e.R[t]=!1,_(e),T(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=d(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:n.enumerable,value:r[t]}:n},defineProperty:function(){n(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){n(12)}},Y={};a(Z,(function(e,t){Y[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),Y.deleteProperty=function(e,t){return Y.set.call(this,e,t,void 0)},Y.set=function(e,t,r){return Z.set.call(this,e[0],t,r,e[0])};var X=function(){function e(e){var t=this;this.g=U,this.D=!0,this.produce=function(e,r,o){if("function"==typeof e&&"function"!=typeof r){var a=r;r=e;var s=t;return function(e){var t=this;void 0===e&&(e=a);for(var n=arguments.length,o=Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return s.produce(e,(function(e){var n;return(n=r).call.apply(n,[t,e].concat(o))}))}}var c;if("function"!=typeof r&&n(6),void 0!==o&&"function"!=typeof o&&n(7),i(e)){var u=S(t),l=R(t,e,void 0),f=!0;try{c=r(l),f=!1}finally{f?E(u):k(u)}return"undefined"!=typeof Promise&&c instanceof Promise?c.then((function(e){return x(u,o),P(e,u)}),(function(e){throw E(u),e})):(x(u,o),P(c,u))}if(!e||"object"!=typeof e){if(void 0===(c=r(e))&&(c=e),c===$&&(c=void 0),t.D&&v(c,!0),o){var h=[],p=[];b("Patches").M(e,c,h,p),o(h,p)}return c}n(21,e)},this.produceWithPatches=function(e,r){if("function"==typeof e)return function(r){for(var n=arguments.length,o=Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return t.produceWithPatches(r,(function(t){return e.apply(void 0,[t].concat(o))}))};var n,o,i=t.produce(e,r,(function(e,t){n=e,o=t}));return"undefined"!=typeof Promise&&i instanceof Promise?i.then((function(e){return[e,n,o]})):[i,n,o]},"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze)}var t=e.prototype;return t.createDraft=function(e){i(e)||n(8),o(e)&&(e=I(e));var t=S(this),r=R(this,e,void 0);return r[V].C=!0,k(t),r},t.finishDraft=function(e,t){var r=(e&&e[V]).A;return x(r,t),P(void 0,r)},t.setAutoFreeze=function(e){this.D=e},t.setUseProxies=function(e){e&&!U&&n(20),this.g=e},t.applyPatches=function(e,t){var r;for(r=t.length-1;r>=0;r--){var n=t[r];if(0===n.path.length&&"replace"===n.op){e=n.value;break}}r>-1&&(t=t.slice(r+1));var i=b("Patches").$;return o(e)?i(e,t):this.produce(e,(function(e){return i(e,t)}))},e}(),J=new X,ee=J.produce,te=(J.produceWithPatches.bind(J),J.setAutoFreeze.bind(J));J.setUseProxies.bind(J),J.applyPatches.bind(J),J.createDraft.bind(J),J.finishDraft.bind(J)},4862:e=>{"use strict";e.exports=JSON.parse('{"$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":false}')},4502:e=>{"use strict";e.exports=JSON.parse('{"$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":true,"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":true,"readOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"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":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"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":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"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":true}')},6614:e=>{"use strict";e.exports=JSON.parse('["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"]')},4147:e=>{"use strict";e.exports=JSON.parse('{"name":"@topwrite/reader","version":"1.0.68-alpha.2+a6d93dc","author":"yunwuxin <tzzhangyajun@qq.com> (https://github.com/yunwuxin)","license":"ISC","types":"types/index.d.ts","main":"dist/index.js","files":["dist","types"],"scripts":{"prebuild":"rimraf dist types","build":"webpack --progress","build:dev":"npm run build --env dev","serve":"webpack serve --env dev","extract":"formatjs extract src/**/*.{ts,tsx} --out-file src/lang/zh-CN.json --ignore src/global.d.ts --id-interpolation-pattern [sha512:contenthash:base64:6] --additional-function-names $t --format simple","prepack":"npm run build"},"dependencies":{"@topwrite/common":"^1.0.57-alpha.2+a6d93dc","@types/color":"^3.0.3","@types/lodash":"^4.14.168","@types/node":"^16.4.13","@types/react":"^18","@types/react-dom":"^18","color":"^4.2.3","history":"^5.0.0","immer":"^9.0.6"},"devDependencies":{"@docsearch/css":"^3.2.1","@formatjs/cli":"^5.0.2","@topthink/webpack-config-plugin":"^1.0.16","crypto-browserify":"^3.12.0","path-browserify":"^1.0.1","process":"^0.11.10","query-string":"^7.1.1","rc-tooltip":"^5.1.1","react-loading-bar":"^0.0.7","rimraf":"^3.0.2","stream-browserify":"^3.0.0","typescript":"^4.3.5","webpack":"^5.36.2","webpack-cli":"^4.7.0","webpack-dev-server":"^4.7.3"},"gitHead":"a6d93dc4ed04cc154feae2147a92922dea9b6ca2"}')}},i={};function a(e){var t=i[e];if(void 0!==t)return t.exports;var r=i[e]={id:e,loaded:!1,exports:{}};return o[e].call(r.exports,r,r.exports,a),r.loaded=!0,r.exports}a.m=o,a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,a.t=function(r,n){if(1&n&&(r=this(r)),8&n)return r;if("object"==typeof r&&r){if(4&n&&r.__esModule)return r;if(16&n&&"function"==typeof r.then)return r}var o=Object.create(null);a.r(o);var i={};e=e||[null,t({}),t([]),t(t)];for(var s=2&n&&r;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>i[e]=()=>r[e]));return i.default=()=>r,a.d(o,i),o},a.d=(e,t)=>{for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce(((t,r)=>(a.f[r](e,t),t)),[])),a.u=e=>e+"-"+{7:"646b8c",267:"b06d72",387:"02d8b5",452:"089cc0",809:"2eaa99",843:"6bc79e",945:"956f08"}[e]+".js",a.miniCssF=e=>e+".css",a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r={},n="@topwrite/reader:",a.l=(e,t,o,i)=>{if(r[e])r[e].push(t);else{var s,c;if(void 0!==o)for(var u=document.getElementsByTagName("script"),l=0;l<u.length;l++){var f=u[l];if(f.getAttribute("src")==e||f.getAttribute("data-webpack")==n+o){s=f;break}}s||(c=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,a.nc&&s.setAttribute("nonce",a.nc),s.setAttribute("data-webpack",n+o),s.src=e),r[e]=[t];var h=(t,n)=>{s.onerror=s.onload=null,clearTimeout(p);var o=r[e];if(delete r[e],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach((e=>e(n))),t)return t(n)},p=setTimeout(h.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=h.bind(null,s.onerror),s.onload=h.bind(null,s.onload),c&&document.head.appendChild(s)}},a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;a.g.importScripts&&(e=a.g.location+"");var t=a.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");r.length&&(e=r[r.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),a.p=e})(),(()=>{if("undefined"!=typeof document){var e=e=>new Promise(((t,r)=>{var n=a.miniCssF(e),o=a.p+n;if(((e,t)=>{for(var r=document.getElementsByTagName("link"),n=0;n<r.length;n++){var o=(a=r[n]).getAttribute("data-href")||a.getAttribute("href");if("stylesheet"===a.rel&&(o===e||o===t))return a}var i=document.getElementsByTagName("style");for(n=0;n<i.length;n++){var a;if((o=(a=i[n]).getAttribute("data-href"))===e||o===t)return a}})(n,o))return t();((e,t,r,n,o)=>{var i=document.createElement("link");i.rel="stylesheet",i.type="text/css",i.onerror=i.onload=r=>{if(i.onerror=i.onload=null,"load"===r.type)n();else{var a=r&&("load"===r.type?"missing":r.type),s=r&&r.target&&r.target.href||t,c=new Error("Loading CSS chunk "+e+" failed.\n("+s+")");c.code="CSS_CHUNK_LOAD_FAILED",c.type=a,c.request=s,i.parentNode&&i.parentNode.removeChild(i),o(c)}},i.href=t,r?r.parentNode.insertBefore(i,r.nextSibling):document.head.appendChild(i)})(e,o,null,t,r)})),t={826:0};a.f.miniCss=(r,n)=>{t[r]?n.push(t[r]):0!==t[r]&&{809:1,843:1,945:1}[r]&&n.push(t[r]=e(r).then((()=>{t[r]=0}),(e=>{throw delete t[r],e})))}}})(),(()=>{var e={826:0};a.f.j=(t,r)=>{var n=a.o(e,t)?e[t]:void 0;if(0!==n)if(n)r.push(n[2]);else{var o=new Promise(((r,o)=>n=e[t]=[r,o]));r.push(n[2]=o);var i=a.p+a.u(t),s=new Error;a.l(i,(r=>{if(a.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var o=r&&("load"===r.type?"missing":r.type),i=r&&r.target&&r.target.src;s.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",s.name="ChunkLoadError",s.type=o,s.request=i,n[1](s)}}),"chunk-"+t,t)}};var t=(t,r)=>{var n,o,[i,s,c]=r,u=0;if(i.some((t=>0!==e[t]))){for(n in s)a.o(s,n)&&(a.m[n]=s[n]);if(c)c(a)}for(t&&t(r);u<i.length;u++)o=i[u],a.o(e,o)&&e[o]&&e[o][0](),e[o]=0},r=self.webpackChunk_topwrite_reader=self.webpackChunk_topwrite_reader||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})(),a.nc=void 0;var s={};(()=>{"use strict";a.r(s),a.d(s,{Anchor:()=>$e.Z,Article:()=>kt,BaseConfig:()=>t.l_,Book:()=>t.fy,Breadcrumb:()=>Lt,Catalog:()=>Rt,CatalogItems:()=>jt,CompositionInput:()=>t.D7,Config:()=>t.De,File:()=>t.$B,Helmet:()=>t.ql,InjectedComponent:()=>t.cu,InjectedComponentSet:()=>t.IA,IntlContext:()=>t.fH,LetterAvatar:()=>t.$q,Level:()=>t.aC,Link:()=>_e.Z,LoadingBar:()=>Ue,LocalizeProvider:()=>t.Wp,Logo:()=>Te,Markdown:()=>vt,Model:()=>t.Hn,NavLink:()=>Le,PageLoader:()=>re,Plugin:()=>t.Sy,PoweredBy:()=>je,Search:()=>He,Summary:()=>t.ER,SummaryArticle:()=>t.oI,SummaryPart:()=>t.Lj,ThemeProvider:()=>t.f6,ToFirstArticle:()=>Bt,VERSION:()=>t.q4,aes:()=>t.rK,base64:()=>t.US,bootstrap:()=>De,createApplication:()=>t.W3,createComponentDescriptor:()=>t.nC,createGlobalStyle:()=>t.vJ,createMarkdownPlugin:()=>t.xg,createStorageSlot:()=>t.WA,css:()=>t.iv,defineMessage:()=>t.Em,defineMessages:()=>t.vU,getPayload:()=>t.He,getPublicPath:()=>t.Ak,history:()=>m.m8,isEncryptedData:()=>t.oe,isMac:()=>t.V5,isRequestError:()=>t.N0,isUrl:()=>t.CB,keyframes:()=>t.F4,listStorageKeys:()=>t._f,loadjs:()=>t.j0,markdown:()=>t.JH,md5:()=>t.FB,pluginCenter:()=>t.YB,request:()=>t.WY,styled:()=>t.zo,useActions:()=>t.ol,useArticle:()=>me.ZP,useAsset:()=>Ae,useAssetUrl:()=>Pe,useAsync:()=>t.r5,useAsyncCallback:()=>t.UK,useAsyncEffect:()=>t.bd,useAsyncFetchMore:()=>t.r3,useBook:()=>t.CQ,useDebounce:()=>t.Nr,useDocumentTitle:()=>t.jr,useEvent:()=>t.zX,useEventTarget:()=>t.Rs,useFile:()=>ae.Z,useHotkeys:()=>t.y1,useInPreview:()=>Fe,useIntl:()=>t.cw,useIntlContext:()=>t.mP,useLocalStorageState:()=>t.Rr,useLockBodyScroll:()=>Oe,useLogo:()=>ye,useModel:()=>t.tT,useNextArticle:()=>me.VI,useOptions:()=>t.D2,usePrevArticle:()=>me.ir,usePrevious:()=>t.D9,useSelector:()=>t.v9,useStateWithCallback:()=>t.CM,useThemeConfig:()=>t.LU,useThemeContext:()=>t.TC,useThrottle:()=>t.fB,useTitle:()=>de,useWindowSize:()=>Ce.Z,windowSizes:()=>Ce.D});var e={};a.r(e),a.d(e,{ask:()=>X,book:()=>A,page:()=>U,search:()=>G});a(3344),a(8664),a(532),a(7915),a(3473),a(1913),a(3050),a(5251),a(8006);Date.prototype.format=function(e){var t={"M+":this.getMonth()+1,"d+":this.getDate(),"h+":this.getHours(),"m+":this.getMinutes(),"s+":this.getSeconds(),"q+":Math.floor((this.getMonth()+3)/3),S:this.getMilliseconds()};for(var r in/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(this.getFullYear()+"").substr(4-RegExp.$1.length))),t)new RegExp("("+r+")").test(e)&&(e=e.replace(RegExp.$1,1==RegExp.$1.length?t[r]:("00"+t[r]).substr((""+t[r]).length)));return e};var t=a(6963),r=a(5250),n=a(1533),o=a(6065);t.$B.prototype[o.sc]=!0;var i=a(125),c=a.n(i),u=a(7392),l=a.n(u),f=a(5756),h=a.n(f),p=(a(1044),a(3583),a(7930),a(5591),a(7395),a(6853),a(8546),a(7363)),d=a.n(p),m=a(3714),v=(a(6585),a(1333),a(1176)),g=a.n(v),y=a(7934),b=a.n(y),w=a(5523),x=a.n(w),E=a(5745),k=a.n(E),S=a(2904),D=a.n(S);function P(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=D()(e);if(t){var o=D()(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return k()(this,r)}}var A=new(function(e){x()(r,e);var t=P(r);function r(){return b()(this,r),t.apply(this,arguments)}return g()(r)}(t.Hn)),C=a(4114),O=a.n(C),F=a(9862),j=a.n(F),T=a(9705),_=a.n(T),R=a(2153),I=a.n(R),L=a(3476),B=a.n(L);a(2814),a(337),a(2336),a(9778),a(7313),a(7190),a(1228),a(776);function M(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=D()(e);if(t){var o=D()(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return k()(this,r)}}function N(e){var t,r,n,o=2;for("undefined"!=typeof Symbol&&(r=Symbol.asyncIterator,n=Symbol.iterator);o--;){if(r&&null!=(t=e[r]))return t.call(e);if(n&&null!=(t=e[n]))return new H(t.call(e));r="@@asyncIterator",n="@@iterator"}throw new TypeError("Object is not async iterable")}function H(e){function t(e){if(Object(e)!==e)return Promise.reject(new TypeError(e+" is not an object."));var t=e.done;return Promise.resolve(e.value).then((function(e){return{value:e,done:t}}))}return H=function(e){this.s=e,this.n=e.next},H.prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var r=this.s.return;return void 0===r?Promise.resolve({value:e,done:!0}):t(r.apply(this.s,arguments))},throw:function(e){var r=this.s.return;return void 0===r?Promise.reject(e):t(r.apply(this.s,arguments))}},new H(e)}var z=function(e){x()(n,e);var r=M(n);function n(){var e;b()(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return e=r.call.apply(r,[this].concat(i)),j()(O()(e),"initialState",{loading:!1,request:t.WY.create(),config:{}}),e}return g()(n,[{key:"subscription",value:function(e){var t=e.fetch,r=m.m8.location;m.m8.listen((function(e){var n=e.location;r.pathname!==n.pathname&&(t(n.pathname),requestAnimationFrame((function(){window.scrollTo(0,0)}))),r=n}))}},{key:"fetch",value:function(e){var r=this;return _()(h().mark((function n(){var o,i,a,s,c,u,f,p,d,m,v,g;return h().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r.setState((function(e){e.loading=!0}));case 2:return n.delegateYield(B()(N(r.getState("book")),I()),"t0",3);case 3:return o=n.t0,n.delegateYield(B()(N(r.getState("page")),I()),"t1",5);case 5:if(i=n.t1,a=i.request,s=i.config,n.prev=8,u=decodeURI(e),f=function(){var e=l()(h().mark((function e(){var r,n;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a.get(u,s);case 2:return r=e.sent,n=r.data,e.abrupt("return","string"==typeof n?(0,t.He)(n):n);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),!o.sha||!("caches"in window)){n.next=30;break}return n.next=14,I()(caches.open("book-".concat(o.id,"-").concat(o.sha)));case 14:return p=n.sent,n.next=17,I()(p.match(u));case 17:if(!(d=n.sent)){n.next=22;break}return n.next=21,I()(d.json());case 21:c=n.sent;case 22:if(c){n.next=28;break}return n.next=25,I()(f());case 25:return c=n.sent,n.next=28,I()(p.put(u,new Response(JSON.stringify(c),{headers:{"Content-Type":"application/json"}})));case 28:n.next=33;break;case 30:return n.next=32,I()(f());case 32:c=n.sent;case 33:return v=(m=c).file,g=m.lfs,n.next=36,r.setState((function(e){e.file=new t.$B(v),e.lfs=g}));case 36:n.next=42;break;case 38:return n.prev=38,n.t2=n.catch(8),n.next=42,r.setState((function(e){e.error=n.t2}));case 42:return n.prev=42,n.next=45,r.setState((function(e){e.loading=!1}));case 45:return n.finish(42);case 46:case"end":return n.stop()}}),n,null,[[8,38,42,46]])})))()}},{key:"intercept",value:h().mark((function e(t){var r,n;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(this.getState("page"),"t0",1);case 1:r=e.t0,n=r.request,t(n.interceptors);case 4:case"end":return e.stop()}}),e,this)}))},{key:"updateConfig",value:h().mark((function e(t){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.setState((function(e){t(e.config)}));case 2:case"end":return e.stop()}}),e,this)}))}]),n}(t.Hn),U=new z;a(3394),a(2443),a(2122),a(5013);function $(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=D()(e);if(t){var o=D()(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return k()(this,r)}}function q(e){var t,r,n,o=2;for("undefined"!=typeof Symbol&&(r=Symbol.asyncIterator,n=Symbol.iterator);o--;){if(r&&null!=(t=e[r]))return t.call(e);if(n&&null!=(t=e[n]))return new V(t.call(e));r="@@asyncIterator",n="@@iterator"}throw new TypeError("Object is not async iterable")}function V(e){function t(e){if(Object(e)!==e)return Promise.reject(new TypeError(e+" is not an object."));var t=e.done;return Promise.resolve(e.value).then((function(e){return{value:e,done:t}}))}return V=function(e){this.s=e,this.n=e.next},V.prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var r=this.s.return;return void 0===r?Promise.resolve({value:e,done:!0}):t(r.apply(this.s,arguments))},throw:function(e){var r=this.s.return;return void 0===r?Promise.reject(e):t(r.apply(this.s,arguments))}},new V(e)}var G=new(function(e){x()(r,e);var t=$(r);function r(){var e;b()(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),j()(O()(e),"initialState",{status:"idle",results:[],query:""}),e}return g()(r,[{key:"fetch",value:function(e){var t=this;return _()(h().mark((function r(){var n,o,i,a,s,c;return h().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!(e=e.trim())){r.next=27;break}return r.next=4,t.setState((function(t){t.query=e,t.status="loading"}));case 4:return r.delegateYield(B()(q(t.getState("search")),I()),"t0",5);case 5:if(n=r.t0,o=n.handler,i=n.part,o){r.next=13;break}return r.delegateYield(B()(q(t.getState("book")),I()),"t1",10);case 10:a=r.t1,s=a.summary,o=function(){var t=[];return s.getArticle((function(r){var n=r.getPath();return r.title.includes(e)&&n&&t.push({title:r.title,path:n}),!1}),(function(e){return!i||e.level.toString()===i})),t};case 13:return r.prev=13,r.next=16,I()(o(e,i));case 16:return c=r.sent,r.next=19,t.setState((function(e){e.results=c,e.status="idle"}));case 19:r.next=25;break;case 21:return r.prev=21,r.t2=r.catch(13),r.next=25,t.setState((function(e){e.results=[],e.status="error"}));case 25:r.next=29;break;case 27:return r.next=29,t.setState((function(t){t.query=e,t.status="idle",t.results=[]}));case 29:case"end":return r.stop()}}),r,null,[[13,21]])})))()}},{key:"setPart",value:h().mark((function e(t){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.setState((function(e){t!==e.part&&(e.query="",e.status="idle",e.results=[],e.part=t)}));case 2:case"end":return e.stop()}}),e,this)}))},{key:"setHandler",value:h().mark((function e(t){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.setState((function(e){e.handler=t}));case 2:case"end":return e.stop()}}),e,this)}))}]),r}(t.Hn));function W(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=D()(e);if(t){var o=D()(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return k()(this,r)}}function K(e){var t,r,n,o=2;for("undefined"!=typeof Symbol&&(r=Symbol.asyncIterator,n=Symbol.iterator);o--;){if(r&&null!=(t=e[r]))return t.call(e);if(n&&null!=(t=e[n]))return new Q(t.call(e));r="@@asyncIterator",n="@@iterator"}throw new TypeError("Object is not async iterable")}function Q(e){function t(e){if(Object(e)!==e)return Promise.reject(new TypeError(e+" is not an object."));var t=e.done;return Promise.resolve(e.value).then((function(e){return{value:e,done:t}}))}return Q=function(e){this.s=e,this.n=e.next},Q.prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var r=this.s.return;return void 0===r?Promise.resolve({value:e,done:!0}):t(r.apply(this.s,arguments))},throw:function(e){var r=this.s.return;return void 0===r?Promise.reject(e):t(r.apply(this.s,arguments))}},new Q(e)}var Z,Y,X=new(function(e){x()(r,e);var t=W(r);function r(){var e;b()(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),j()(O()(e),"initialState",{enable:!1,status:"idle",query:"",answer:""}),e}return g()(r,[{key:"fetch",value:function(e){var t=this;return _()(h().mark((function r(){var n,o,i,a,s;return h().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!(e=e.trim())){r.next=30;break}return r.delegateYield(B()(K(t.getState("ask")),I()),"t0",3);case 3:if(n=r.t0,o=n.handler,i=n.part,!o){r.next=30;break}return r.prev=7,r.next=10,t.setState((function(t){t.query=e,t.status="loading",t.answer=""}));case 10:return r.next=12,I()(o(e,i));case 12:return a=r.sent,r.next=15,t.setState((function(e){e.status="stalled"}));case 15:s=h().mark((function e(){var r,n,o;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,I()(a.read());case 2:if(r=e.sent,n=r.done,o=r.value,!n){e.next=7;break}return e.abrupt("return",1);case 7:return e.next=9,t.setState((function(e){e.answer+=o}));case 9:case"end":return e.stop()}}),e)}));case 16:return r.delegateYield(s(),"t1",18);case 18:if(!r.t1){r.next=20;break}return r.abrupt("break",22);case 20:r.next=16;break;case 22:return r.next=24,t.setState((function(e){e.status="idle"}));case 24:r.next=30;break;case 26:return r.prev=26,r.t2=r.catch(7),r.next=30,t.setState((function(e){e.answer="",e.status="error"}));case 30:case"end":return r.stop()}}),r,null,[[7,26]])})))()}},{key:"setPart",value:h().mark((function e(t){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.setState((function(e){t!==e.part&&(e.query="",e.answer="",e.status="idle",e.part=t)}));case 2:case"end":return e.stop()}}),e,this)}))},{key:"setHandler",value:h().mark((function e(t){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.setState((function(e){e.handler=t,e.enable=!!t}));case 2:case"end":return e.stop()}}),e,this)}))}]),r}(t.Hn)),J=a(2815),ee=a(5225),te=a.n(ee);function re(){return(0,r.jsx)(ie,{children:(0,r.jsx)(oe,{})})}var ne,oe=t.zo.div(Z||(Z=te()(["\n @keyframes spinner-border {\n to {\n transform: rotate(360deg)\n }\n }\n\n display: inline-block;\n width: 2rem;\n height: 2rem;\n vertical-align: -0.125em;\n border: 0.25em solid #3c60ff;\n border-right-color: transparent;\n border-radius: 50%;\n animation: 0.75s linear infinite spinner-border;\n"]))),ie=t.zo.div(Y||(Y=te()(["\n position: fixed;\n top: 0;\n left: 0;\n height: 100vh;\n width: 100vw;\n display: flex;\n align-items: center;\n justify-content: center;\n"]))),ae=a(8709),se=a(7851),ce=a.n(se),ue=(0,p.createContext)(void 0);function le(e){var n=e.children,o=(0,ae.Z)(),i=(0,t.LU)(),a=(0,t.r5)(l()(h().mark((function e(){var r,n;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,t.WY)(o.relative(t.fy.style));case 2:return r=e.sent,n=r.data,e.abrupt("return",n);case 5:case"end":return e.stop()}}),e)}))),[]),s=a.result,c=a.loading,u=(0,p.useMemo)((function(){return{primaryColor:new(ce())(i.primaryColor)}}),[i]);return c?null:(0,r.jsx)(ue.Provider,{value:s,children:(0,r.jsxs)(t.f6,{theme:u,children:[(0,r.jsx)(fe,{}),n]})})}var fe=(0,t.vJ)(ne||(ne=te()(["\n :root {\n --ttw-primary-color: ",";\n }\n"])),(function(e){return e.theme.primaryColor.toString()}));var he=a(9294),pe=a.n(he);a(3934);function de(){var e=(0,t.cw)();return(0,t.CQ)().config.getValue("title",e.formatMessage({id:"n24ytq",defaultMessage:[{type:0,value:"未命名文档"}]}))}var me=a(9359),ve=(a(6164),a(7525),a(8808),a(9989),a(3882),(0,p.createContext)(void 0));function ge(e){var n=e.children,o=(0,p.useState)((function(){return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII="})),i=c()(o,2),a=i[0],s=i[1],u=(0,ae.Z)();return(0,p.useEffect)((function(){var e=u.relative(t.fy.logo),r=new Image;r.addEventListener("load",(function(){var e=document.createElement("canvas");e.height=this.height,e.width=this.width;var t=e.getContext("2d");t&&(t.drawImage(this,0,0),e.toBlob((function(e){e&&s(window.URL.createObjectURL(e))})))})),r.src=e}),[]),(0,r.jsx)(ve.Provider,{value:a,children:n})}function ye(){return(0,p.useContext)(ve)}var be=a(2827),we=d().lazy((function(){return Promise.all([a.e(452),a.e(945)]).then(a.bind(a,4945))}));function xe(){var e=(0,t.CQ)().summary,n=de(),o=(0,ae.Z)(),i=(0,p.useMemo)((function(){return e.getArticle((function(e){return e.getPath()===o.path}))}),[e,o]);(0,p.useEffect)((function(){window.parent!==window&&(window.addEventListener("message",(function(e){try{var t=pe()(e.data),r=t[0],n=t[1],o=t.slice(2);if("history"===r)switch(n){case"replace":m.m8.replace(o[0]);break;case"push":m.m8.push(o[0])}}catch(e){}})),m.m8.listen((function(e){var t="".concat(window.location.origin).concat((0,be.Ep)(e.location));window.parent.postMessage(["history",e.action.toLowerCase(),t],"*")})),window.parent.postMessage(["bootstrapped"],"*")),window.dispatchEvent(new Event("bootstrapped"))}),[]);var a=ye();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(t.ql,{children:[(0,r.jsx)("title",{children:"".concat(i?"".concat(i.title," - "):"").concat(n)}),(0,r.jsx)("link",{rel:"shortcut icon",href:a,type:"image/png"})]}),(0,r.jsxs)(me.Q3.Provider,{value:i,children:[(0,r.jsx)(t.cu,{role:"app"}),(0,r.jsx)(t.cu,{role:"page"}),(0,r.jsx)(d().Suspense,{fallback:null,children:(0,r.jsx)(t.cu,{role:"page:menu",component:we})})]})]})}function Ee(e){return ke.apply(this,arguments)}function ke(){return(ke=l()(h().mark((function e(t){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.t0=t,e.next="en"===e.t0?3:4;break;case 3:return e.abrupt("return",a.e(7).then(a.t.bind(a,2007,19)));case 4:return e.abrupt("return",a.e(267).then(a.t.bind(a,3267,19)));case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Se(){var n=(0,p.useState)(),o=c()(n,2),i=o[0],a=o[1];return(0,t.bd)(l()(h().mark((function n(){var o,i,s,c,u,l,f,p,d,v,g,y,b,w,x,E,k,S,D,P;return h().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(n.prev=0,o=(0,m.fi)(),i=o.location,s=(0,t.He)()){n.next=8;break}return n.next=6,t.WY.get(i.toString());case 6:c=n.sent,s=c.data;case 8:return l=(u=s).id,f=u.sha,p=u.summary,d=u.file,v=u.config,g=void 0===v?{}:v,y=u.options,b=void 0===y?{}:y,w=u.lfs,x=u.pluginsCenter,g=t.De.createFromObject(g),p=t.ER.create(p),E=new t.fy(l,g,p,f),k={page:{config:{params:J.parse(i.search)},file:new t.$B(d),lfs:w},options:b},n.next=15,(0,t.W3)("reader",E,e,k,Ee,x);case 15:S=n.sent,D=(0,r.jsx)(S,{children:(0,r.jsx)(ge,{children:(0,r.jsx)(le,{children:(0,r.jsx)(xe,{})})})}),a(D),n.next=24;break;case 20:n.prev=20,n.t0=n.catch(0),console.error(n.t0),t.WY.isAxiosError(n.t0)?a((null===(P=n.t0.response)||void 0===P?void 0:P.data)||n.t0.message):a(n.t0.message);case 24:case"end":return n.stop()}}),n,null,[[0,20]])}))),[]),i||(0,r.jsx)(re,{})}const De=function(){var e=document.getElementById("root");e&&(0,n.createRoot)(e).render((0,r.jsx)(Se,{}))};function Pe(e){var r=(0,t.v9)("page"),n=r.lfs,o=r.file;if(n){var i=n.url,a=n.files[e];if(a)return i.replace("{oid}",a)}return o.relative(e)}function Ae(){var e=(0,t.v9)("page"),r=e.lfs,n=e.file;return{getUrl:function(e){if((0,t.CB)(e))return e;if(r){var o=r.url,i=r.files[e];if(i)return o.replace("{oid}",i)}return n.relative(e)},upload:function(e,t){throw new Error("upload not support in reader context")}}}var Ce=a(8190);function Oe(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];(0,p.useEffect)((function(){if(e)return document.body.style.overflow="hidden",t&&window.scrollTo(0,0),function(){document.body.style.overflow="visible"}}),[e])}function Fe(){var e=(0,t.v9)("options").preview;return void 0!==e&&e}a(3915),a(3740);function je(e){var n=e.className,o=(0,t.cw)(),i=(0,t.v9)("options").poweredBy;return i?(0,r.jsx)("div",{className:n,children:o.formatMessage({id:"IHXx7d",defaultMessage:[{type:0,value:"本文档使用 "},{type:1,value:"link"},{type:0,value:" 构建"}]},{link:(0,r.jsx)("a",{href:i.link,target:"_blank",children:i.name})})}):null}function Te(e){var t=e.size,n=void 0===t?60:t,o=e.className,i=ye();return(0,r.jsx)("img",{className:o,src:i,width:n,height:n,alt:"logo"})}var _e=a(9900),Re=(a(9017),a(8887)),Ie=a.n(Re);function Le(e){var n=e.url,o=e.title,i=e.className,a=(0,t.CQ)().summary;if(!n.startsWith("http")&&".md"===Ie().extname(n)){var s=a.getArticle((function(e){return e.ref===n}));if(s)return(0,r.jsx)(_e.Z,{className:i,to:s,children:o})}return(0,r.jsx)("a",{className:i,href:n,target:"_blank",children:o})}a(5444),a(4703),a(9855),a(6230),a(7607),a(5126),a(7462),a(5148);function Be(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Me(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Be(Object(r),!0).forEach((function(t){j()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Be(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Ne=(0,p.lazy)((function(){return a.e(843).then(a.bind(a,5843))}));function He(e){return(0,r.jsx)(p.Suspense,{fallback:null,children:(0,r.jsx)(Ne,Me({},e))})}var ze=(0,p.lazy)((function(){return Promise.all([a.e(387),a.e(809)]).then(a.bind(a,1809))}));function Ue(){return(0,r.jsx)(p.Suspense,{fallback:null,children:(0,r.jsx)(ze,{})})}var $e=a(3973),qe=a(6851),Ve=a.n(qe),Ge=a(1221),We=a.n(Ge),Ke=["element","src"];function Qe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ze(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Qe(Object(r),!0).forEach((function(t){j()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ye(e){var n=e.element,o=e.src,i=We()(e,Ke),a=(0,t.v9)("page"),s=a.lfs,c=a.file;if(o&&s&&!(0,t.CB)(o)&&c){var u=s.url,l=s.files[c.resolve(decodeURIComponent(o))];l&&(o=u.replace("{oid}",l))}return(0,r.jsx)(t.cu,{role:"page:asset",props:Ze({src:o},i),component:n})}function Xe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Je(e){return(0,r.jsx)(Ye,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Xe(Object(r),!0).forEach((function(t){j()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({element:"img"},e))}function et(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function tt(e){return(0,r.jsx)(Ye,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?et(Object(r),!0).forEach((function(t){j()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):et(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({element:"t-attachment"},e))}function rt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function nt(e){return(0,r.jsx)(Ye,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?rt(Object(r),!0).forEach((function(t){j()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({element:"video"},e))}function ot(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function it(e){return(0,r.jsx)(Ye,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ot(Object(r),!0).forEach((function(t){j()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ot(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({element:"audio"},e))}function at(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function st(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?at(Object(r),!0).forEach((function(t){j()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):at(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ct(e){var t=(0,me.ZP)();return(0,r.jsx)($e.Z,st(st({},e),{},{base:t}))}var ut,lt,ft,ht,pt=["children","components"];function dt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function mt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?dt(Object(r),!0).forEach((function(t){j()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function vt(e){var n=e.children,o=e.components,i=We()(e,pt),a=(0,p.useContext)(ue);return(0,r.jsx)(t.UG,mt(mt({},i),{},{css:a,components:(0,p.useMemo)((function(){return mt({a:ct,img:Je,attachment:tt,video:nt,audio:it},o)}),[o]),children:n}))}var gt=["depth","id","children"],yt=["className","header","footer","offset","aside"];function bt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function wt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?bt(Object(r),!0).forEach((function(t){j()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var xt={heading:function(e){var t=e.depth,n=e.id,o=e.children,i=We()(e,gt);return n&&(o=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(St,{tabIndex:-1,id:n}),o]})),(0,p.createElement)("h".concat(t),i,o)}},Et=function(e){if(e){var t=document.getElementById(decodeURIComponent(e).substr(1));t&&window.scrollTo(0,t.offsetTop)}};function kt(e){var n=e.className,o=e.header,i=e.footer,a=e.offset,s=e.aside,c=void 0===s||s,u=We()(e,yt),l=(0,ae.Z)(),f=(0,me.ZP)();(0,p.useEffect)((function(){Et(m.m8.location.hash);var e=m.m8.listen((function(e){Et(e.location.hash)}));return function(){e()}}),[l.path]),void 0===o&&f&&(o=(0,r.jsx)(Pt,{children:f.title})),o=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(t.IA,{role:"page:article:before"}),o,(0,r.jsx)(t.IA,{role:"page:article:content:before"})]}),i=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(t.IA,{role:"page:article:content:after"}),i,(0,r.jsx)(t.IA,{role:"page:article:after"})]}),c&&(c={header:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(t.IA,{role:"page:article:aside:before"}),"object"===Ve()(c)&&c.header]}),footer:(0,r.jsxs)(r.Fragment,{children:["object"===Ve()(c)&&c.footer,(0,r.jsx)(t.IA,{role:"page:article:aside:after"})]})});var h=(0,r.jsx)(t.cu,{role:"page:article:markdown",component:vt,props:wt({header:o,footer:i,aside:c,children:l.content,components:xt},u)});return(0,r.jsx)(Dt,{className:n,offset:a,children:h},l.path)}var St=t.zo.a(ut||(ut=te()(["\n display: block;\n position: relative;\n top: -.5em;\n"]))),Dt=t.zo.div(lt||(lt=te()(["\n ","\n"])),(function(e){return e.offset&&(0,t.iv)(ft||(ft=te()(["\n "," {\n top: calc(-.5em - ","px);\n }\n "])),St,e.offset)})),Pt=t.zo.h1(ht||(ht=te()(["\n border-bottom: 1px solid #eee;\n font-size: 2em;\n line-height: 1.2;\n padding: 0 0 .5em;\n margin: 0 0 1em;\n font-weight: 400;\n"]))),At=a(2416),Ct=a.n(At),Ot=(a(8213),a(4332),function(e){var n=e.item,o=e.itemComponent,i=e.itemsComponent,a=(0,ae.Z)().path,s=(0,me.ZP)(),u=(0,t.LU)(),l=(0,p.useMemo)((function(){return Boolean(s&&n.getLevel().isDescendant(s.getLevel()))}),[n,s]),f=a===n.getPath(),h=(0,p.useState)((function(){return-1===u.expandLevel||u.expandLevel>=n.level.getDepth()||(l||f)})),d=c()(h,2),m=d[0],v=d[1];(0,p.useEffect)((function(){!m&&f&&v(!0)}),[f]),(0,p.useEffect)((function(){!m&&l&&v(!0)}),[l]);var g=n.children.length>0,y=!n.getPath(),b=g?(0,r.jsx)(jt,{itemsComponent:i,itemComponent:o,items:n.children}):null;return(0,r.jsx)(t.cu,{role:"catalog:item",props:{item:n,open:m,setOpen:v,active:f,disabled:y,activeDescendant:l,children:b},component:o})}),Ft=function(e){var t=e.children;return(0,r.jsx)("ul",{children:t})},jt=function(e){var n=e.items,o=e.part,i=e.itemsComponent,a=void 0===i?Ft:i,s=e.itemComponent,c=(0,r.jsx)(r.Fragment,{children:n.map((function(e){return(0,r.jsx)(Ot,{itemsComponent:a,itemComponent:s,item:e},e.level.toString())}))});return(0,r.jsx)(t.cu,{role:"catalog:items",props:{part:o,children:c},component:a})},Tt=function(e){var n=e.part,o=e.component,i=e.itemsComponent,a=e.itemComponent,s=(0,r.jsx)(jt,{itemsComponent:i,itemComponent:a,items:n.articles,part:n});return(0,r.jsx)(t.cu,{role:"catalog:part",props:{part:n,children:s},component:o})},_t=function(e){var t=e.summary,n=e.partComponent,o=e.itemsComponent,i=e.itemComponent;return t.isSinglePart()?(0,r.jsx)(jt,{itemsComponent:o,itemComponent:i,items:t.getLastPart().getArticles()}):(0,r.jsx)(r.Fragment,{children:t.parts.map((function(e){return(0,r.jsx)(Tt,{component:n,itemsComponent:o,itemComponent:i,part:e},e.level.toString())}))})};function Rt(e){var n=Object.assign({},(Ct()(e),e)),o=(0,t.v9)("book").summary,i=n.renderItem,a=n.renderPart;i&&(console.warn("renderItem deprecated"),n.itemComponent=i),a&&(console.warn("renderPart deprecated"),n.partComponent=a);var s=n.partComponent,c=n.itemsComponent,u=n.itemComponent;return(0,r.jsx)(_t,{summary:o,partComponent:s,itemsComponent:c,itemComponent:u})}a(5041);var It=function(e){return e instanceof t.oI?(0,r.jsx)(_e.Z,{to:e}):e.title};function Lt(e){var n=e.className,o=e.renderItem,i=void 0===o?It:o,a=(0,t.CQ)().summary,s=(0,me.ZP)(),c=(0,t.cw)().formatMessage({id:"4R5GEq",defaultMessage:[{type:0,value:"首页"}]}),u=[(0,r.jsx)("li",{children:(0,r.jsx)(_e.Z,{to:".",children:c})},"0")];if(s){var l=s.getLevel();l.data.reduce((function(e,n){e.push(n);var o,s=new t.aC(e),c=a.getByLevel(s);c&&(o=s.eq(l)?c.title:i(c),u.push((0,r.jsx)("li",{children:o},s.toString())));return e}),[])}return(0,r.jsx)("ol",{className:n,children:u})}function Bt(e){var r=e.children,n=(0,t.CQ)().summary,o=(0,me.ZP)(),i=(0,ae.Z)();return(0,p.useEffect)((function(){if(!o){var e=n.getFirstArticle();e&&m.m8.replace(i.relative(e.path))}}),[o]),o?r:null}!function(){console.log("%cWelcome to TopWrite!%c\n","padding-top: 0.5em; font-size: 2em;","padding-bottom: 0.5em;");var e=a(4147);console.log("[ua:version] ".concat(navigator.userAgent)),console.log("[client:version] v".concat(e.version))}()})(),window.TopWrite=s})();
51
+ !function(e){"use strict";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 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]",o="[0-9]",i=t(o,"[A-Fa-f]"),a=r(r("%[EFef]"+i+"%"+i+i+"%"+i+i)+"|"+r("%[89A-Fa-f]"+i+"%"+i+i)+"|"+r("%"+i+i)),s="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",c=t("[\\:\\/\\?\\#\\[\\]\\@]",s),u=e?"[\\uE000-\\uF8FF]":"[]",l=t(n,o,"[\\-\\.\\_\\~]",e?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]"),f=r(n+t(n,o,"[\\+\\-\\.]")+"*"),h=r(r(a+"|"+t(l,s,"[\\:]"))+"*"),p=(r(r("25[0-5]")+"|"+r("2[0-4]"+o)+"|"+r("1"+o+o)+"|"+r("[1-9]"+o)+"|"+o),r(r("25[0-5]")+"|"+r("2[0-4]"+o)+"|"+r("1"+o+o)+"|"+r("0?[1-9]"+o)+"|0?0?"+o)),d=r(p+"\\."+p+"\\."+p+"\\."+p),m=r(i+"{1,4}"),v=r(r(m+"\\:"+m)+"|"+d),g=r(r(m+"\\:")+"{6}"+v),y=r("\\:\\:"+r(m+"\\:")+"{5}"+v),b=r(r(m)+"?\\:\\:"+r(m+"\\:")+"{4}"+v),w=r(r(r(m+"\\:")+"{0,1}"+m)+"?\\:\\:"+r(m+"\\:")+"{3}"+v),x=r(r(r(m+"\\:")+"{0,2}"+m)+"?\\:\\:"+r(m+"\\:")+"{2}"+v),E=r(r(r(m+"\\:")+"{0,3}"+m)+"?\\:\\:"+m+"\\:"+v),k=r(r(r(m+"\\:")+"{0,4}"+m)+"?\\:\\:"+v),S=r(r(r(m+"\\:")+"{0,5}"+m)+"?\\:\\:"+m),D=r(r(r(m+"\\:")+"{0,6}"+m)+"?\\:\\:"),P=r([g,y,b,w,x,E,k,S,D].join("|")),A=r(r(l+"|"+a)+"+"),C=(r(P+"\\%25"+A),r(P+r("\\%25|\\%(?!"+i+"{2})")+A)),O=r("[vV]"+i+"+\\."+t(l,s,"[\\:]")+"+"),F=r("\\["+r(C+"|"+P+"|"+O)+"\\]"),j=r(r(a+"|"+t(l,s))+"*"),T=r(F+"|"+d+"(?!"+j+")|"+j),_=r(o+"*"),R=r(r(h+"@")+"?"+T+r("\\:"+_)+"?"),I=r(a+"|"+t(l,s,"[\\:\\@]")),L=r(I+"*"),B=r(I+"+"),M=r(r(a+"|"+t(l,s,"[\\@]"))+"+"),N=r(r("\\/"+L)+"*"),H=r("\\/"+r(B+N)+"?"),z=r(M+N),U=r(B+N),$="(?!"+I+")",q=(r(N+"|"+H+"|"+z+"|"+U+"|"+$),r(r(I+"|"+t("[\\/\\?]",u))+"*")),V=r(r(I+"|[\\/\\?]")+"*"),G=r(r("\\/\\/"+R+N)+"|"+H+"|"+U+"|"+$),W=r(f+"\\:"+G+r("\\?"+q)+"?"+r("\\#"+V)+"?"),K=r(r("\\/\\/"+R+N)+"|"+H+"|"+z+"|"+$),Q=r(K+r("\\?"+q)+"?"+r("\\#"+V)+"?");return r(W+"|"+Q),r(f+"\\:"+G+r("\\?"+q)+"?"),r(r("\\/\\/("+r("("+h+")@")+"?("+T+")"+r("\\:("+_+")")+"?)")+"?("+N+"|"+H+"|"+U+"|"+$+")"),r("\\?("+q+")"),r("\\#("+V+")"),r(r("\\/\\/("+r("("+h+")@")+"?("+T+")"+r("\\:("+_+")")+"?)")+"?("+N+"|"+H+"|"+z+"|"+$+")"),r("\\?("+q+")"),r("\\#("+V+")"),r(r("\\/\\/("+r("("+h+")@")+"?("+T+")"+r("\\:("+_+")")+"?)")+"?("+N+"|"+H+"|"+U+"|"+$+")"),r("\\?("+q+")"),r("\\#("+V+")"),r("("+h+")@"),r("\\:("+_+")"),{NOT_SCHEME:new RegExp(t("[^]",n,o,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(t("[^\\%\\:]",l,s),"g"),NOT_HOST:new RegExp(t("[^\\%\\[\\]\\:]",l,s),"g"),NOT_PATH:new RegExp(t("[^\\%\\/\\:\\@]",l,s),"g"),NOT_PATH_NOSCHEME:new RegExp(t("[^\\%\\/\\@]",l,s),"g"),NOT_QUERY:new RegExp(t("[^\\%]",l,s,"[\\:\\@\\/\\?]",u),"g"),NOT_FRAGMENT:new RegExp(t("[^\\%]",l,s,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(t("[^]",l,s),"g"),UNRESERVED:new RegExp(l,"g"),OTHER_CHARS:new RegExp(t("[^\\%]",l,c),"g"),PCT_ENCODED:new RegExp(a,"g"),IPV4ADDRESS:new RegExp("^("+d+")$"),IPV6ADDRESS:new RegExp("^\\[?("+P+")"+r(r("\\%25|\\%(?!"+i+"{2})")+"("+A+")")+"?\\]?$")}}var c=s(!1),u=s(!0),l=function(){function e(e,t){var r=[],n=!0,o=!1,i=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){o=!0,i=e}finally{try{!n&&s.return&&s.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")}}(),f=function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)},h=2147483647,p=36,d=1,m=26,v=38,g=700,y=72,b=128,w="-",x=/^xn--/,E=/[^\0-\x7E]/,k=/[\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"},D=p-d,P=Math.floor,A=String.fromCharCode;function C(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 F(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+O((e=e.replace(k,".")).split("."),t).join(".")}function j(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 T=function(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:p},_=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},R=function(e,t,r){var n=0;for(e=r?P(e/g):e>>1,e+=P(e/t);e>D*m>>1;n+=p)e=P(e/D);return P(n+(D+1)*e/(e+v))},I=function(e){var t=[],r=e.length,n=0,o=b,i=y,a=e.lastIndexOf(w);a<0&&(a=0);for(var s=0;s<a;++s)e.charCodeAt(s)>=128&&C("not-basic"),t.push(e.charCodeAt(s));for(var c=a>0?a+1:0;c<r;){for(var u=n,l=1,f=p;;f+=p){c>=r&&C("invalid-input");var v=T(e.charCodeAt(c++));(v>=p||v>P((h-n)/l))&&C("overflow"),n+=v*l;var g=f<=i?d:f>=i+m?m:f-i;if(v<g)break;var x=p-g;l>P(h/x)&&C("overflow"),l*=x}var E=t.length+1;i=R(n-u,E,0==u),P(n/E)>h-o&&C("overflow"),o+=P(n/E),n%=E,t.splice(n++,0,o)}return String.fromCodePoint.apply(String,t)},L=function(e){var t=[],r=(e=j(e)).length,n=b,o=0,i=y,a=!0,s=!1,c=void 0;try{for(var u,l=e[Symbol.iterator]();!(a=(u=l.next()).done);a=!0){var f=u.value;f<128&&t.push(A(f))}}catch(e){s=!0,c=e}finally{try{!a&&l.return&&l.return()}finally{if(s)throw c}}var v=t.length,g=v;for(v&&t.push(w);g<r;){var x=h,E=!0,k=!1,S=void 0;try{for(var D,O=e[Symbol.iterator]();!(E=(D=O.next()).done);E=!0){var F=D.value;F>=n&&F<x&&(x=F)}}catch(e){k=!0,S=e}finally{try{!E&&O.return&&O.return()}finally{if(k)throw S}}var T=g+1;x-n>P((h-o)/T)&&C("overflow"),o+=(x-n)*T,n=x;var I=!0,L=!1,B=void 0;try{for(var M,N=e[Symbol.iterator]();!(I=(M=N.next()).done);I=!0){var H=M.value;if(H<n&&++o>h&&C("overflow"),H==n){for(var z=o,U=p;;U+=p){var $=U<=i?d:U>=i+m?m:U-i;if(z<$)break;var q=z-$,V=p-$;t.push(A(_($+q%V,0))),z=P(q/V)}t.push(A(_(z,0))),i=R(o,T,g==v),o=0,++g}}}catch(e){L=!0,B=e}finally{try{!I&&N.return&&N.return()}finally{if(L)throw B}}++o,++n}return t.join("")},B=function(e){return F(e,(function(e){return x.test(e)?I(e.slice(4).toLowerCase()):e}))},M=function(e){return F(e,(function(e){return E.test(e)?"xn--"+L(e):e}))},N={version:"2.1.0",ucs2:{decode:j,encode:function(e){return String.fromCodePoint.apply(String,f(e))}},decode:I,encode:L,toASCII:M,toUnicode:B},H={};function z(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 U(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 a=parseInt(e.substr(r+4,2),16),s=parseInt(e.substr(r+7,2),16);t+=String.fromCharCode((15&o)<<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 $(e,t){function r(e){var r=U(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,z).replace(t.PCT_ENCODED,o)),void 0!==e.host&&(e.host=String(e.host).replace(t.PCT_ENCODED,r).toLowerCase().replace(t.NOT_HOST,z).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,z).replace(t.PCT_ENCODED,o)),void 0!==e.query&&(e.query=String(e.query).replace(t.PCT_ENCODED,r).replace(t.NOT_QUERY,z).replace(t.PCT_ENCODED,o)),void 0!==e.fragment&&(e.fragment=String(e.fragment).replace(t.PCT_ENCODED,r).replace(t.NOT_FRAGMENT,z).replace(t.PCT_ENCODED,o)),e}function q(e){return e.replace(/^0*(.*)/,"$1")||"0"}function V(e,t){var r=e.match(t.IPV4ADDRESS)||[],n=l(r,2)[1];return n?n.split(".").map(q).join("."):e}function G(e,t){var r=e.match(t.IPV6ADDRESS)||[],n=l(r,3),o=n[1],i=n[2];if(o){for(var a=o.toLowerCase().split("::").reverse(),s=l(a,2),c=s[0],u=s[1],f=u?u.split(":").map(q):[],h=c.split(":").map(q),p=t.IPV4ADDRESS.test(h[h.length-1]),d=p?7:8,m=h.length-d,v=Array(d),g=0;g<d;++g)v[g]=f[g]||h[m+g]||"";p&&(v[d-1]=V(v[d-1],t));var y=v.reduce((function(e,t,r){if(!t||"0"===t){var n=e[e.length-1];n&&n.index+n.length===r?n.length++:e.push({index:r,length:1})}return e}),[]).sort((function(e,t){return t.length-e.length}))[0],b=void 0;if(y&&y.length>1){var w=v.slice(0,y.index),x=v.slice(y.index+y.length);b=w.join(":")+"::"+x.join(":")}else b=v.join(":");return i&&(b+="%"+i),b}return e}var W=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,K=void 0==="".match(/(){0}/)[1];function Q(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={},n=!1!==t.iri?u:c;"suffix"===t.reference&&(e=(t.scheme?t.scheme+":":"")+"//"+e);var o=e.match(W);if(o){K?(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=G(V(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)$(r,n);else{if(r.host&&(t.domainHost||i&&i.domainHost))try{r.host=N.toASCII(r.host.replace(n.PCT_ENCODED,U).toLowerCase())}catch(e){r.error=r.error||"Host's domain name can not be converted to ASCII via punycode: "+e}$(r,c)}i&&i.parse&&i.parse(r,t)}else r.error=r.error||"URI can not be parsed.";return r}function Z(e,t){var r=!1!==t.iri?u:c,n=[];return void 0!==e.userinfo&&(n.push(e.userinfo),n.push("@")),void 0!==e.host&&n.push(G(V(String(e.host),r),r).replace(r.IPV6ADDRESS,(function(e,t,r){return"["+t+(r?"%25"+r:"")+"]"}))),"number"!=typeof e.port&&"string"!=typeof e.port||(n.push(":"),n.push(String(e.port))),n.length?n.join(""):void 0}var Y=/^\.\.?\//,X=/^\/\.(\/|$)/,J=/^\/\.\.(\/|$)/,ee=/^\/?(?:.|\n)*?(?=\/|$)/;function te(e){for(var t=[];e.length;)if(e.match(Y))e=e.replace(Y,"");else if(e.match(X))e=e.replace(X,"/");else if(e.match(J))e=e.replace(J,"/"),t.pop();else if("."===e||".."===e)e="";else{var r=e.match(ee);if(!r)throw new Error("Unexpected dot segment condition");var n=r[0];e=e.slice(n.length),t.push(n)}return t.join("")}function re(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.iri?u:c,n=[],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?N.toUnicode(e.host):N.toASCII(e.host.replace(r.PCT_ENCODED,U).toLowerCase())}catch(r){e.error=e.error||"Host's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+r}$(e,r),"suffix"!==t.reference&&e.scheme&&(n.push(e.scheme),n.push(":"));var i=Z(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 a=e.path;t.absolutePath||o&&o.absolutePath||(a=te(a)),void 0===i&&(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=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=a({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 ae(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 se(e,t){return e&&e.toString().replace(t&&t.iri?u.ESCAPE:c.ESCAPE,z)}function ce(e,t){return e&&e.toString().replace(t&&t.iri?u.PCT_ENCODED:c.PCT_ENCODED,U)}var ue={scheme:"http",domainHost:!0,parse:function(e,t){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e},serialize:function(e,t){var r="https"===String(e.scheme).toLowerCase();return e.port!==(r?443:80)&&""!==e.port||(e.port=void 0),e.path||(e.path="/"),e}},le={scheme:"https",domainHost:ue.domainHost,parse:ue.parse,serialize:ue.serialize};function fe(e){return"boolean"==typeof e.secure?e.secure:"wss"===String(e.scheme).toLowerCase()}var he={scheme:"ws",domainHost:!0,parse:function(e,t){var r=e;return r.secure=fe(r),r.resourceName=(r.path||"/")+(r.query?"?"+r.query:""),r.path=void 0,r.query=void 0,r},serialize:function(e,t){if(e.port!==(fe(e)?443:80)&&""!==e.port||(e.port=void 0),"boolean"==typeof e.secure&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){var r=e.resourceName.split("?"),n=l(r,2),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:he.domainHost,parse:he.parse,serialize:he.serialize},de={},me="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",ve="[0-9A-Fa-f]",ge=r(r("%[EFef]"+ve+"%"+ve+ve+"%"+ve+ve)+"|"+r("%[89A-Fa-f]"+ve+"%"+ve+ve)+"|"+r("%"+ve+ve)),ye="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",be=t("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),we="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",xe=new RegExp(me,"g"),Ee=new RegExp(ge,"g"),ke=new RegExp(t("[^]",ye,"[\\.]",'[\\"]',be),"g"),Se=new RegExp(t("[^]",me,we),"g"),De=Se;function Pe(e){var t=U(e);return t.match(xe)?t:e}var Ae={scheme:"mailto",parse:function(e,t){var r=e,n=r.to=r.path?r.path.split(","):[];if(r.path=void 0,r.query){for(var o=!1,i={},a=r.query.split("&"),s=0,c=a.length;s<c;++s){var u=a[s].split("=");switch(u[0]){case"to":for(var l=u[1].split(","),f=0,h=l.length;f<h;++f)n.push(l[f]);break;case"subject":r.subject=ce(u[1],t);break;case"body":r.body=ce(u[1],t);break;default:o=!0,i[ce(u[0],t)]=ce(u[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]=N.toASCII(ce(m[1],t).toLowerCase())}catch(e){r.error=r.error||"Email address's domain name can not be converted to ASCII via punycode: "+e}n[p]=m.join("@")}return r},serialize:function(e,t){var r=e,n=i(e.to);if(n){for(var a=0,s=n.length;a<s;++a){var c=String(n[a]),u=c.lastIndexOf("@"),l=c.slice(0,u).replace(Ee,Pe).replace(Ee,o).replace(ke,z),f=c.slice(u+1);try{f=t.iri?N.toUnicode(f):N.toASCII(ce(f,t).toLowerCase())}catch(e){r.error=r.error||"Email address's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+e}n[a]=l+"@"+f}r.path=n.join(",")}var h=e.headers=e.headers||{};e.subject&&(h.subject=e.subject),e.body&&(h.body=e.body);var p=[];for(var d in h)h[d]!==de[d]&&p.push(d.replace(Ee,Pe).replace(Ee,o).replace(Se,z)+"="+h[d].replace(Ee,Pe).replace(Ee,o).replace(De,z));return p.length&&(r.query=p.join("&")),r}},Ce=/^([^\:]+)\:(.*)/,Oe={scheme:"urn",parse:function(e,t){var r=e.path&&e.path.match(Ce),n=e;if(r){var o=t.scheme||n.scheme||"urn",i=r[1].toLowerCase(),a=r[2],s=o+":"+(t.nid||i),c=H[s];n.nid=i,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,o=r+":"+(t.nid||n),i=H[o];i&&(e=i.serialize(e,t));var a=e,s=e.nss;return a.path=(n||t.nid)+":"+s,a}},Fe=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,je={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(Fe)||(r.error=r.error||"UUID is not valid."),r},serialize:function(e,t){var r=e;return r.nss=(e.uuid||"").toLowerCase(),r}};H[ue.scheme]=ue,H[le.scheme]=le,H[he.scheme]=he,H[pe.scheme]=pe,H[Ae.scheme]=Ae,H[Oe.scheme]=Oe,H[je.scheme]=je,e.SCHEMES=H,e.pctEncChar=z,e.pctDecChars=U,e.parse=Q,e.removeDotSegments=te,e.serialize=re,e.resolveComponents=ne,e.resolve=oe,e.normalize=ie,e.equal=ae,e.escapeComponent=se,e.unescapeComponent=ce,Object.defineProperty(e,"__esModule",{value:!0})}(t)},3040:(e,t,r)=>{"use strict";var n=r(4870),o=r(4783);function i(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=b,t.resolve=function(e,t){return b(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?b(e,!1,!0).resolveObject(t):t},t.format=function(e){o.isString(e)&&(e=b(e));return e instanceof i?e.format():i.prototype.format.call(e)},t.Url=i;var a=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,c=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,u=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),l=["'"].concat(u),f=["%","/","?",";","#"].concat(l),h=["/","?","#"],p=/^[+a-z0-9A-Z_-]{0,63}$/,d=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,m={javascript:!0,"javascript:":!0},v={javascript:!0,"javascript:":!0},g={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},y=r(4415);function b(e,t,r){if(e&&o.isObject(e)&&e instanceof i)return e;var n=new i;return n.parse(e,t,r),n}i.prototype.parse=function(e,t,r){if(!o.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var i=e.indexOf("?"),s=-1!==i&&i<e.indexOf("#")?"?":"#",u=e.split(s);u[0]=u[0].replace(/\\/g,"/");var b=e=u.join(s);if(b=b.trim(),!r&&1===e.split("#").length){var w=c.exec(b);if(w)return this.path=b,this.href=b,this.pathname=w[1],w[2]?(this.search=w[2],this.query=t?y.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var x=a.exec(b);if(x){var E=(x=x[0]).toLowerCase();this.protocol=E,b=b.substr(x.length)}if(r||x||b.match(/^\/\/[^@\/]+@[^@\/]+/)){var k="//"===b.substr(0,2);!k||x&&v[x]||(b=b.substr(2),this.slashes=!0)}if(!v[x]&&(k||x&&!g[x])){for(var S,D,P=-1,A=0;A<h.length;A++){-1!==(C=b.indexOf(h[A]))&&(-1===P||C<P)&&(P=C)}-1!==(D=-1===P?b.lastIndexOf("@"):b.lastIndexOf("@",P))&&(S=b.slice(0,D),b=b.slice(D+1),this.auth=decodeURIComponent(S)),P=-1;for(A=0;A<f.length;A++){var C;-1!==(C=b.indexOf(f[A]))&&(-1===P||C<P)&&(P=C)}-1===P&&(P=b.length),this.host=b.slice(0,P),b=b.slice(P),this.parseHost(),this.hostname=this.hostname||"";var O="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!O)for(var F=this.hostname.split(/\./),j=(A=0,F.length);A<j;A++){var T=F[A];if(T&&!T.match(p)){for(var _="",R=0,I=T.length;R<I;R++)T.charCodeAt(R)>127?_+="x":_+=T[R];if(!_.match(p)){var L=F.slice(0,A),B=F.slice(A+1),M=T.match(d);M&&(L.push(M[1]),B.unshift(M[2])),B.length&&(b="/"+B.join(".")+b),this.hostname=L.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),O||(this.hostname=n.toASCII(this.hostname));var N=this.port?":"+this.port:"",H=this.hostname||"";this.host=H+N,this.href+=this.host,O&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==b[0]&&(b="/"+b))}if(!m[E])for(A=0,j=l.length;A<j;A++){var z=l[A];if(-1!==b.indexOf(z)){var U=encodeURIComponent(z);U===z&&(U=escape(z)),b=b.split(z).join(U)}}var $=b.indexOf("#");-1!==$&&(this.hash=b.substr($),b=b.slice(0,$));var q=b.indexOf("?");if(-1!==q?(this.search=b.substr(q),this.query=b.substr(q+1),t&&(this.query=y.parse(this.query)),b=b.slice(0,q)):t&&(this.search="",this.query={}),b&&(this.pathname=b),g[E]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){N=this.pathname||"";var V=this.search||"";this.path=N+V}return this.href=this.format(),this},i.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",r=this.pathname||"",n=this.hash||"",i=!1,a="";this.host?i=e+this.host:this.hostname&&(i=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&o.isObject(this.query)&&Object.keys(this.query).length&&(a=y.stringify(this.query));var s=this.search||a&&"?"+a||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||g[t])&&!1!==i?(i="//"+(i||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):i||(i=""),n&&"#"!==n.charAt(0)&&(n="#"+n),s&&"?"!==s.charAt(0)&&(s="?"+s),t+i+(r=r.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(s=s.replace("#","%23"))+n},i.prototype.resolve=function(e){return this.resolveObject(b(e,!1,!0)).format()},i.prototype.resolveObject=function(e){if(o.isString(e)){var t=new i;t.parse(e,!1,!0),e=t}for(var r=new i,n=Object.keys(this),a=0;a<n.length;a++){var s=n[a];r[s]=this[s]}if(r.hash=e.hash,""===e.href)return r.href=r.format(),r;if(e.slashes&&!e.protocol){for(var c=Object.keys(e),u=0;u<c.length;u++){var l=c[u];"protocol"!==l&&(r[l]=e[l])}return g[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r}if(e.protocol&&e.protocol!==r.protocol){if(!g[e.protocol]){for(var f=Object.keys(e),h=0;h<f.length;h++){var p=f[h];r[p]=e[p]}return r.href=r.format(),r}if(r.protocol=e.protocol,e.host||v[e.protocol])r.pathname=e.pathname;else{for(var d=(e.pathname||"").split("/");d.length&&!(e.host=d.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==d[0]&&d.unshift(""),d.length<2&&d.unshift(""),r.pathname=d.join("/")}if(r.search=e.search,r.query=e.query,r.host=e.host||"",r.auth=e.auth,r.hostname=e.hostname||e.host,r.port=e.port,r.pathname||r.search){var m=r.pathname||"",y=r.search||"";r.path=m+y}return r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var b=r.pathname&&"/"===r.pathname.charAt(0),w=e.host||e.pathname&&"/"===e.pathname.charAt(0),x=w||b||r.host&&e.pathname,E=x,k=r.pathname&&r.pathname.split("/")||[],S=(d=e.pathname&&e.pathname.split("/")||[],r.protocol&&!g[r.protocol]);if(S&&(r.hostname="",r.port=null,r.host&&(""===k[0]?k[0]=r.host:k.unshift(r.host)),r.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===d[0]?d[0]=e.host:d.unshift(e.host)),e.host=null),x=x&&(""===d[0]||""===k[0])),w)r.host=e.host||""===e.host?e.host:r.host,r.hostname=e.hostname||""===e.hostname?e.hostname:r.hostname,r.search=e.search,r.query=e.query,k=d;else if(d.length)k||(k=[]),k.pop(),k=k.concat(d),r.search=e.search,r.query=e.query;else if(!o.isNullOrUndefined(e.search)){if(S)r.hostname=r.host=k.shift(),(O=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=O.shift(),r.host=r.hostname=O.shift());return r.search=e.search,r.query=e.query,o.isNull(r.pathname)&&o.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!k.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var D=k.slice(-1)[0],P=(r.host||e.host||k.length>1)&&("."===D||".."===D)||""===D,A=0,C=k.length;C>=0;C--)"."===(D=k[C])?k.splice(C,1):".."===D?(k.splice(C,1),A++):A&&(k.splice(C,1),A--);if(!x&&!E)for(;A--;A)k.unshift("..");!x||""===k[0]||k[0]&&"/"===k[0].charAt(0)||k.unshift(""),P&&"/"!==k.join("/").substr(-1)&&k.push("");var O,F=""===k[0]||k[0]&&"/"===k[0].charAt(0);S&&(r.hostname=r.host=F?"":k.length?k.shift():"",(O=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=O.shift(),r.host=r.hostname=O.shift()));return(x=x||r.host&&k.length)&&!F&&k.unshift(""),k.length?r.pathname=k.join("/"):(r.pathname=null,r.path=null),o.isNull(r.pathname)&&o.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},i.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},4783:e=>{"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},7363:e=>{"use strict";e.exports=React},1533:e=>{"use strict";e.exports=ReactDOM},2611:e=>{"use strict";e.exports=_},6728:()=>{},9436:(e,t,r)=>{var n=r(4898);function o(e){var t,r;function o(t,r){try{var a=e[t](r),s=a.value,c=s instanceof n;Promise.resolve(c?s.v:s).then((function(r){if(c){var n="return"===t?"return":"next";if(!s.k||r.done)return o(n,r);r=e[n](r).value}i(a.done?"return":"normal",r)}),(function(e){o("throw",e)}))}catch(e){i("throw",e)}}function i(e,n){switch(e){case"return":t.resolve({value:n,done:!0});break;case"throw":t.reject(n);break;default:t.resolve({value:n,done:!1})}(t=t.next)?o(t.key,t.arg):r=null}this._invoke=function(e,n){return new Promise((function(i,a){var s={key:e,arg:n,resolve:i,reject:a,next:null};r?r=r.next=s:(t=r=s,o(e,n))}))},"function"!=typeof e.return&&(this.return=void 0)}o.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},o.prototype.next=function(e){return this._invoke("next",e)},o.prototype.throw=function(e){return this._invoke("throw",e)},o.prototype.return=function(e){return this._invoke("return",e)},e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},4898:e=>{e.exports=function(e,t){this.v=e,this.k=t},e.exports.__esModule=!0,e.exports.default=e.exports},6487:e=>{e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n},e.exports.__esModule=!0,e.exports.default=e.exports},9605:e=>{e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},5466:(e,t,r)=>{var n=r(6487);e.exports=function(e){if(Array.isArray(e))return n(e)},e.exports.__esModule=!0,e.exports.default=e.exports},4114:e=>{e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},3476:(e,t,r)=>{var n=r(4898);e.exports=function(e){var t={},r=!1;function o(t,o){return r=!0,o=new Promise((function(r){r(e[t](o))})),{done:!1,value:new n(o,1)}}return t["undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator"]=function(){return this},t.next=function(e){return r?(r=!1,e):o("next",e)},"function"==typeof e.throw&&(t.throw=function(e){if(r)throw r=!1,e;return o("throw",e)}),"function"==typeof e.return&&(t.return=function(e){return r?(r=!1,e):o("return",e)}),t},e.exports.__esModule=!0,e.exports.default=e.exports},7392:e=>{function t(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}e.exports=function(e){return function(){var r=this,n=arguments;return new Promise((function(o,i){var a=e.apply(r,n);function s(e){t(a,o,i,s,c,"next",e)}function c(e){t(a,o,i,s,c,"throw",e)}s(void 0)}))}},e.exports.__esModule=!0,e.exports.default=e.exports},2153:(e,t,r)=>{var n=r(4898);e.exports=function(e){return new n(e,0)},e.exports.__esModule=!0,e.exports.default=e.exports},7934:e=>{e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},1318:(e,t,r)=>{var n=r(7745),o=r(8228);function i(t,r,a){return o()?(e.exports=i=Reflect.construct.bind(),e.exports.__esModule=!0,e.exports.default=e.exports):(e.exports=i=function(e,t,r){var o=[null];o.push.apply(o,t);var i=new(Function.bind.apply(e,o));return r&&n(i,r.prototype),i},e.exports.__esModule=!0,e.exports.default=e.exports),i.apply(null,arguments)}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},1176:(e,t,r)=>{var n=r(652);function o(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,n(o.key),o)}}e.exports=function(e,t,r){return t&&o(e.prototype,t),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},9862:(e,t,r)=>{var n=r(652);e.exports=function(e,t,r){return(t=n(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports},1700:e=>{function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(this,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},2904:e=>{function t(r){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},5523:(e,t,r)=>{var n=r(7745);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&n(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},2519:(e,t,r)=>{var n=r(7745);e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,n(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},7606:e=>{e.exports=function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}},e.exports.__esModule=!0,e.exports.default=e.exports},8228:e=>{e.exports=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}},e.exports.__esModule=!0,e.exports.default=e.exports},2748:e=>{e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports},201:e=>{e.exports=function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}},e.exports.__esModule=!0,e.exports.default=e.exports},2725:e=>{e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},6207:e=>{e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},2416:e=>{e.exports=function(e){if(null==e)throw new TypeError("Cannot destructure "+e)},e.exports.__esModule=!0,e.exports.default=e.exports},1221:(e,t,r)=>{var n=r(4999);e.exports=function(e,t){if(null==e)return{};var r,o,i=n(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)r=a[o],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i},e.exports.__esModule=!0,e.exports.default=e.exports},4999:e=>{e.exports=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o},e.exports.__esModule=!0,e.exports.default=e.exports},5745:(e,t,r)=>{var n=r(6851).default,o=r(4114);e.exports=function(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return o(e)},e.exports.__esModule=!0,e.exports.default=e.exports},393:(e,t,r)=>{var n=r(6851).default;function o(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e.exports=o=function(){return r},e.exports.__esModule=!0,e.exports.default=e.exports;var t,r={},i=Object.prototype,a=i.hasOwnProperty,s=Object.defineProperty||function(e,t,r){e[t]=r.value},c="function"==typeof Symbol?Symbol:{},u=c.iterator||"@@iterator",l=c.asyncIterator||"@@asyncIterator",f=c.toStringTag||"@@toStringTag";function h(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{h({},"")}catch(t){h=function(e,t,r){return e[t]=r}}function p(e,t,r,n){var o=t&&t.prototype instanceof w?t:w,i=Object.create(o.prototype),a=new _(n||[]);return s(i,"_invoke",{value:O(e,r,a)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}r.wrap=p;var m="suspendedStart",v="suspendedYield",g="executing",y="completed",b={};function w(){}function x(){}function E(){}var k={};h(k,u,(function(){return this}));var S=Object.getPrototypeOf,D=S&&S(S(R([])));D&&D!==i&&a.call(D,u)&&(k=D);var P=E.prototype=w.prototype=Object.create(k);function A(e){["next","throw","return"].forEach((function(t){h(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function r(o,i,s,c){var u=d(e[o],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==n(f)&&a.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,s,c)}),(function(e){r("throw",e,s,c)})):t.resolve(f).then((function(e){l.value=e,s(l)}),(function(e){return r("throw",e,s,c)}))}c(u.arg)}var o;s(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}})}function O(e,r,n){var o=m;return function(i,a){if(o===g)throw new Error("Generator is already running");if(o===y){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var c=F(s,n);if(c){if(c===b)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===m)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=g;var u=d(e,r,n);if("normal"===u.type){if(o=n.done?y:v,u.arg===b)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=y,n.method="throw",n.arg=u.arg)}}}function F(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,F(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var i=d(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,b;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,b):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function _(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[u];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(a.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(n(e)+" is not iterable")}return x.prototype=E,s(P,"constructor",{value:E,configurable:!0}),s(E,"constructor",{value:x,configurable:!0}),x.displayName=h(E,f,"GeneratorFunction"),r.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===x||"GeneratorFunction"===(t.displayName||t.name))},r.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,E):(e.__proto__=E,h(e,f,"GeneratorFunction")),e.prototype=Object.create(P),e},r.awrap=function(e){return{__await:e}},A(C.prototype),h(C.prototype,l,(function(){return this})),r.AsyncIterator=C,r.async=function(e,t,n,o,i){void 0===i&&(i=Promise);var a=new C(p(e,t,n,o),i);return r.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},A(P),h(P,f,"Generator"),h(P,u,(function(){return this})),h(P,"toString",(function(){return"[object Generator]"})),r.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},r.values=R,_.prototype={constructor:_,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(T),!e)for(var r in this)"t"===r.charAt(0)&&a.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=a.call(i,"catchLoc"),u=a.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,b):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),b},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),T(r),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;T(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),b}},r}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},7745:e=>{function t(r,n){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r,n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},125:(e,t,r)=>{var n=r(9605),o=r(201),i=r(1229),a=r(2725);e.exports=function(e,t){return n(e)||o(e,t)||i(e,t)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},5225:e=>{e.exports=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))},e.exports.__esModule=!0,e.exports.default=e.exports},9294:(e,t,r)=>{var n=r(9605),o=r(2748),i=r(1229),a=r(2725);e.exports=function(e){return n(e)||o(e)||i(e)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},9664:(e,t,r)=>{var n=r(5466),o=r(2748),i=r(1229),a=r(6207);e.exports=function(e){return n(e)||o(e)||i(e)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},2523:(e,t,r)=>{var n=r(6851).default;e.exports=function(e,t){if("object"!==n(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!==n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},652:(e,t,r)=>{var n=r(6851).default,o=r(2523);e.exports=function(e){var t=o(e,"string");return"symbol"===n(t)?t:String(t)},e.exports.__esModule=!0,e.exports.default=e.exports},6851:e=>{function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},1229:(e,t,r)=>{var n=r(6487);e.exports=function(e,t){if(e){if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},9705:(e,t,r)=>{var n=r(9436);e.exports=function(e){return function(){return new n(e.apply(this,arguments))}},e.exports.__esModule=!0,e.exports.default=e.exports},9108:(e,t,r)=>{var n=r(2904),o=r(7745),i=r(7606),a=r(1318);function s(t){var r="function"==typeof Map?new Map:void 0;return e.exports=s=function(e){if(null===e||!i(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(e))return r.get(e);r.set(e,t)}function t(){return a(e,arguments,n(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),o(t,e)},e.exports.__esModule=!0,e.exports.default=e.exports,s(t)}e.exports=s,e.exports.__esModule=!0,e.exports.default=e.exports},5756:(e,t,r)=>{var n=r(393)();e.exports=n;try{regeneratorRuntime=n}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},4744:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(3659);function o(e,t,r){return(t=(0,n.Z)(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},5527:(e,t,r)=>{"use strict";function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},n.apply(this,arguments)}r.d(t,{Z:()=>n})},6673:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(4744);function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){(0,n.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}},3659:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(1062);function o(e){var t=function(e,t){if("object"!==(0,n.Z)(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!==(0,n.Z)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===(0,n.Z)(t)?t:String(t)}},1062:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}r.d(t,{Z:()=>n})},6065:(e,t,r)=>{"use strict";function n(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map((function(e){return"'"+e+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function o(e){return!!e&&!!e[V]}function i(e){var t;return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return r===Object||"function"==typeof r&&Function.toString.call(r)===G}(e)||Array.isArray(e)||!!e[q]||!!(null===(t=e.constructor)||void 0===t?void 0:t[q])||h(e)||p(e))}function a(e,t,r){void 0===r&&(r=!1),0===s(e)?(r?Object.keys:W)(e).forEach((function(n){r&&"symbol"==typeof n||t(n,e[n],e)})):e.forEach((function(r,n){return t(n,r,e)}))}function s(e){var t=e[V];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:h(e)?2:p(e)?3:0}function c(e,t){return 2===s(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function u(e,t){return 2===s(e)?e.get(t):e[t]}function l(e,t,r){var n=s(e);2===n?e.set(t,r):3===n?e.add(r):e[t]=r}function f(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function h(e){return H&&e instanceof Map}function p(e){return z&&e instanceof Set}function d(e){return e.o||e.t}function m(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=K(e);delete t[V];for(var r=W(t),n=0;n<r.length;n++){var o=r[n],i=t[o];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function v(e,t){return void 0===t&&(t=!1),y(e)||o(e)||!i(e)||(s(e)>1&&(e.set=e.add=e.clear=e.delete=g),Object.freeze(e),t&&a(e,(function(e,t){return v(t,!0)}),!0)),e}function g(){n(2)}function y(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function b(e){var t=Q[e];return t||n(18,e),t}function w(){return M}function x(e,t){t&&(b("Patches"),e.u=[],e.s=[],e.v=t)}function E(e){k(e),e.p.forEach(D),e.p=null}function k(e){e===M&&(M=e.l)}function S(e){return M={p:[],l:M,h:e,m:!0,_:0}}function D(e){var t=e[V];0===t.i||1===t.i?t.j():t.O=!0}function P(e,t){t._=t.p.length;var r=t.p[0],o=void 0!==e&&e!==r;return t.h.g||b("ES5").S(t,e,o),o?(r[V].P&&(E(t),n(4)),i(e)&&(e=A(t,e),t.l||O(t,e)),t.u&&b("Patches").M(r[V].t,e,t.u,t.s)):e=A(t,r,[]),E(t),t.u&&t.v(t.u,t.s),e!==$?e:void 0}function A(e,t,r){if(y(t))return t;var n=t[V];if(!n)return a(t,(function(o,i){return C(e,n,t,o,i,r)}),!0),t;if(n.A!==e)return t;if(!n.P)return O(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var o=4===n.i||5===n.i?n.o=m(n.k):n.o,i=o,s=!1;3===n.i&&(i=new Set(o),o.clear(),s=!0),a(i,(function(t,i){return C(e,n,o,t,i,r,s)})),O(e,o,!1),r&&e.u&&b("Patches").N(n,r,e.u,e.s)}return n.o}function C(e,t,r,n,a,s,u){if(o(a)){var f=A(e,a,s&&t&&3!==t.i&&!c(t.R,n)?s.concat(n):void 0);if(l(r,n,f),!o(f))return;e.m=!1}else u&&r.add(a);if(i(a)&&!y(a)){if(!e.h.D&&e._<1)return;A(e,a),t&&t.A.l||O(e,a)}}function O(e,t,r){void 0===r&&(r=!1),!e.l&&e.h.D&&e.m&&v(t,r)}function F(e,t){var r=e[V];return(r?d(r):e)[t]}function j(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function T(e){e.P||(e.P=!0,e.l&&T(e.l))}function _(e){e.o||(e.o=m(e.t))}function R(e,t,r){var n=h(t)?b("MapSet").F(t,r):p(t)?b("MapSet").T(t,r):e.g?function(e,t){var r=Array.isArray(e),n={i:r?1:0,A:t?t.A:w(),P:!1,I:!1,R:{},l:t,t:e,k:null,o:null,j:null,C:!1},o=n,i=Z;r&&(o=[n],i=Y);var a=Proxy.revocable(o,i),s=a.revoke,c=a.proxy;return n.k=c,n.j=s,c}(t,r):b("ES5").J(t,r);return(r?r.A:w()).p.push(n),n}function I(e){return o(e)||n(22,e),function e(t){if(!i(t))return t;var r,n=t[V],o=s(t);if(n){if(!n.P&&(n.i<4||!b("ES5").K(n)))return n.t;n.I=!0,r=L(t,o),n.I=!1}else r=L(t,o);return a(r,(function(t,o){n&&u(n.t,t)===o||l(r,t,e(o))})),3===o?new Set(r):r}(e)}function L(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return m(e)}r.d(t,{Fl:()=>te,Uy:()=>ee,sc:()=>q});var B,M,N="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),H="undefined"!=typeof Map,z="undefined"!=typeof Set,U="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,$=N?Symbol.for("immer-nothing"):((B={})["immer-nothing"]=!0,B),q=N?Symbol.for("immer-draftable"):"__$immer_draftable",V=N?Symbol.for("immer-state"):"__$immer_state",G=("undefined"!=typeof Symbol&&Symbol.iterator,""+Object.prototype.constructor),W="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,K=Object.getOwnPropertyDescriptors||function(e){var t={};return W(e).forEach((function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)})),t},Q={},Z={get:function(e,t){if(t===V)return e;var r=d(e);if(!c(r,t))return function(e,t,r){var n,o=j(t,r);return o?"value"in o?o.value:null===(n=o.get)||void 0===n?void 0:n.call(e.k):void 0}(e,r,t);var n=r[t];return e.I||!i(n)?n:n===F(e.t,t)?(_(e),e.o[t]=R(e.A.h,n,e)):n},has:function(e,t){return t in d(e)},ownKeys:function(e){return Reflect.ownKeys(d(e))},set:function(e,t,r){var n=j(d(e),t);if(null==n?void 0:n.set)return n.set.call(e.k,r),!0;if(!e.P){var o=F(d(e),t),i=null==o?void 0:o[V];if(i&&i.t===r)return e.o[t]=r,e.R[t]=!1,!0;if(f(r,o)&&(void 0!==r||c(e.t,t)))return!0;_(e),T(e)}return e.o[t]===r&&(void 0!==r||t in e.o)||Number.isNaN(r)&&Number.isNaN(e.o[t])||(e.o[t]=r,e.R[t]=!0),!0},deleteProperty:function(e,t){return void 0!==F(e.t,t)||t in e.t?(e.R[t]=!1,_(e),T(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=d(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:n.enumerable,value:r[t]}:n},defineProperty:function(){n(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){n(12)}},Y={};a(Z,(function(e,t){Y[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),Y.deleteProperty=function(e,t){return Y.set.call(this,e,t,void 0)},Y.set=function(e,t,r){return Z.set.call(this,e[0],t,r,e[0])};var X=function(){function e(e){var t=this;this.g=U,this.D=!0,this.produce=function(e,r,o){if("function"==typeof e&&"function"!=typeof r){var a=r;r=e;var s=t;return function(e){var t=this;void 0===e&&(e=a);for(var n=arguments.length,o=Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return s.produce(e,(function(e){var n;return(n=r).call.apply(n,[t,e].concat(o))}))}}var c;if("function"!=typeof r&&n(6),void 0!==o&&"function"!=typeof o&&n(7),i(e)){var u=S(t),l=R(t,e,void 0),f=!0;try{c=r(l),f=!1}finally{f?E(u):k(u)}return"undefined"!=typeof Promise&&c instanceof Promise?c.then((function(e){return x(u,o),P(e,u)}),(function(e){throw E(u),e})):(x(u,o),P(c,u))}if(!e||"object"!=typeof e){if(void 0===(c=r(e))&&(c=e),c===$&&(c=void 0),t.D&&v(c,!0),o){var h=[],p=[];b("Patches").M(e,c,h,p),o(h,p)}return c}n(21,e)},this.produceWithPatches=function(e,r){if("function"==typeof e)return function(r){for(var n=arguments.length,o=Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return t.produceWithPatches(r,(function(t){return e.apply(void 0,[t].concat(o))}))};var n,o,i=t.produce(e,r,(function(e,t){n=e,o=t}));return"undefined"!=typeof Promise&&i instanceof Promise?i.then((function(e){return[e,n,o]})):[i,n,o]},"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze)}var t=e.prototype;return t.createDraft=function(e){i(e)||n(8),o(e)&&(e=I(e));var t=S(this),r=R(this,e,void 0);return r[V].C=!0,k(t),r},t.finishDraft=function(e,t){var r=(e&&e[V]).A;return x(r,t),P(void 0,r)},t.setAutoFreeze=function(e){this.D=e},t.setUseProxies=function(e){e&&!U&&n(20),this.g=e},t.applyPatches=function(e,t){var r;for(r=t.length-1;r>=0;r--){var n=t[r];if(0===n.path.length&&"replace"===n.op){e=n.value;break}}r>-1&&(t=t.slice(r+1));var i=b("Patches").$;return o(e)?i(e,t):this.produce(e,(function(e){return i(e,t)}))},e}(),J=new X,ee=J.produce,te=(J.produceWithPatches.bind(J),J.setAutoFreeze.bind(J));J.setUseProxies.bind(J),J.applyPatches.bind(J),J.createDraft.bind(J),J.finishDraft.bind(J)},4862:e=>{"use strict";e.exports=JSON.parse('{"$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":false}')},4502:e=>{"use strict";e.exports=JSON.parse('{"$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":true,"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":true,"readOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"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":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"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":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"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":true}')},6614:e=>{"use strict";e.exports=JSON.parse('["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"]')},4147:e=>{"use strict";e.exports=JSON.parse('{"name":"@topwrite/reader","version":"1.0.68-alpha.3+679c61e","author":"yunwuxin <tzzhangyajun@qq.com> (https://github.com/yunwuxin)","license":"ISC","types":"types/index.d.ts","main":"dist/index.js","files":["dist","types"],"scripts":{"prebuild":"rimraf dist types","build":"webpack --progress","build:dev":"npm run build --env dev","serve":"webpack serve --env dev","extract":"formatjs extract src/**/*.{ts,tsx} --out-file src/lang/zh-CN.json --ignore src/global.d.ts --id-interpolation-pattern [sha512:contenthash:base64:6] --additional-function-names $t --format simple","prepack":"npm run build"},"dependencies":{"@topwrite/common":"^1.0.57-alpha.3+679c61e","@types/color":"^3.0.3","@types/lodash":"^4.14.168","@types/node":"^16.4.13","@types/react":"^18","@types/react-dom":"^18","color":"^4.2.3","history":"^5.0.0","immer":"^9.0.6"},"devDependencies":{"@docsearch/css":"^3.2.1","@formatjs/cli":"^5.0.2","@topthink/webpack-config-plugin":"^1.0.16","crypto-browserify":"^3.12.0","path-browserify":"^1.0.1","process":"^0.11.10","query-string":"^7.1.1","rc-tooltip":"^5.1.1","react-loading-bar":"^0.0.7","rimraf":"^3.0.2","stream-browserify":"^3.0.0","typescript":"^4.3.5","webpack":"^5.36.2","webpack-cli":"^4.7.0","webpack-dev-server":"^4.7.3"},"gitHead":"679c61efa7e196e6cf30ea19a3439f9e120e249d"}')}},i={};function a(e){var t=i[e];if(void 0!==t)return t.exports;var r=i[e]={id:e,loaded:!1,exports:{}};return o[e].call(r.exports,r,r.exports,a),r.loaded=!0,r.exports}a.m=o,a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,a.t=function(r,n){if(1&n&&(r=this(r)),8&n)return r;if("object"==typeof r&&r){if(4&n&&r.__esModule)return r;if(16&n&&"function"==typeof r.then)return r}var o=Object.create(null);a.r(o);var i={};e=e||[null,t({}),t([]),t(t)];for(var s=2&n&&r;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>i[e]=()=>r[e]));return i.default=()=>r,a.d(o,i),o},a.d=(e,t)=>{for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce(((t,r)=>(a.f[r](e,t),t)),[])),a.u=e=>e+"-"+{7:"646b8c",267:"b06d72",387:"02d8b5",452:"089cc0",809:"2eaa99",843:"6bc79e",945:"956f08"}[e]+".js",a.miniCssF=e=>e+".css",a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r={},n="@topwrite/reader:",a.l=(e,t,o,i)=>{if(r[e])r[e].push(t);else{var s,c;if(void 0!==o)for(var u=document.getElementsByTagName("script"),l=0;l<u.length;l++){var f=u[l];if(f.getAttribute("src")==e||f.getAttribute("data-webpack")==n+o){s=f;break}}s||(c=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,a.nc&&s.setAttribute("nonce",a.nc),s.setAttribute("data-webpack",n+o),s.src=e),r[e]=[t];var h=(t,n)=>{s.onerror=s.onload=null,clearTimeout(p);var o=r[e];if(delete r[e],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach((e=>e(n))),t)return t(n)},p=setTimeout(h.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=h.bind(null,s.onerror),s.onload=h.bind(null,s.onload),c&&document.head.appendChild(s)}},a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;a.g.importScripts&&(e=a.g.location+"");var t=a.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");r.length&&(e=r[r.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),a.p=e})(),(()=>{if("undefined"!=typeof document){var e=e=>new Promise(((t,r)=>{var n=a.miniCssF(e),o=a.p+n;if(((e,t)=>{for(var r=document.getElementsByTagName("link"),n=0;n<r.length;n++){var o=(a=r[n]).getAttribute("data-href")||a.getAttribute("href");if("stylesheet"===a.rel&&(o===e||o===t))return a}var i=document.getElementsByTagName("style");for(n=0;n<i.length;n++){var a;if((o=(a=i[n]).getAttribute("data-href"))===e||o===t)return a}})(n,o))return t();((e,t,r,n,o)=>{var i=document.createElement("link");i.rel="stylesheet",i.type="text/css",i.onerror=i.onload=r=>{if(i.onerror=i.onload=null,"load"===r.type)n();else{var a=r&&("load"===r.type?"missing":r.type),s=r&&r.target&&r.target.href||t,c=new Error("Loading CSS chunk "+e+" failed.\n("+s+")");c.code="CSS_CHUNK_LOAD_FAILED",c.type=a,c.request=s,i.parentNode&&i.parentNode.removeChild(i),o(c)}},i.href=t,r?r.parentNode.insertBefore(i,r.nextSibling):document.head.appendChild(i)})(e,o,null,t,r)})),t={826:0};a.f.miniCss=(r,n)=>{t[r]?n.push(t[r]):0!==t[r]&&{809:1,843:1,945:1}[r]&&n.push(t[r]=e(r).then((()=>{t[r]=0}),(e=>{throw delete t[r],e})))}}})(),(()=>{var e={826:0};a.f.j=(t,r)=>{var n=a.o(e,t)?e[t]:void 0;if(0!==n)if(n)r.push(n[2]);else{var o=new Promise(((r,o)=>n=e[t]=[r,o]));r.push(n[2]=o);var i=a.p+a.u(t),s=new Error;a.l(i,(r=>{if(a.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var o=r&&("load"===r.type?"missing":r.type),i=r&&r.target&&r.target.src;s.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",s.name="ChunkLoadError",s.type=o,s.request=i,n[1](s)}}),"chunk-"+t,t)}};var t=(t,r)=>{var n,o,[i,s,c]=r,u=0;if(i.some((t=>0!==e[t]))){for(n in s)a.o(s,n)&&(a.m[n]=s[n]);if(c)c(a)}for(t&&t(r);u<i.length;u++)o=i[u],a.o(e,o)&&e[o]&&e[o][0](),e[o]=0},r=self.webpackChunk_topwrite_reader=self.webpackChunk_topwrite_reader||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})(),a.nc=void 0;var s={};(()=>{"use strict";a.r(s),a.d(s,{Anchor:()=>$e.Z,Article:()=>kt,BaseConfig:()=>t.l_,Book:()=>t.fy,Breadcrumb:()=>Lt,Catalog:()=>Rt,CatalogItems:()=>jt,CompositionInput:()=>t.D7,Config:()=>t.De,File:()=>t.$B,Helmet:()=>t.ql,InjectedComponent:()=>t.cu,InjectedComponentSet:()=>t.IA,IntlContext:()=>t.fH,LetterAvatar:()=>t.$q,Level:()=>t.aC,Link:()=>_e.Z,LoadingBar:()=>Ue,LocalizeProvider:()=>t.Wp,Logo:()=>Te,Markdown:()=>vt,Model:()=>t.Hn,NavLink:()=>Le,PageLoader:()=>re,Plugin:()=>t.Sy,PoweredBy:()=>je,Search:()=>He,Summary:()=>t.ER,SummaryArticle:()=>t.oI,SummaryPart:()=>t.Lj,ThemeProvider:()=>t.f6,ToFirstArticle:()=>Bt,VERSION:()=>t.q4,aes:()=>t.rK,base64:()=>t.US,bootstrap:()=>De,createApplication:()=>t.W3,createComponentDescriptor:()=>t.nC,createGlobalStyle:()=>t.vJ,createMarkdownPlugin:()=>t.xg,createStorageSlot:()=>t.WA,css:()=>t.iv,defineMessage:()=>t.Em,defineMessages:()=>t.vU,getPayload:()=>t.He,getPublicPath:()=>t.Ak,history:()=>m.m8,isEncryptedData:()=>t.oe,isMac:()=>t.V5,isRequestError:()=>t.N0,isUrl:()=>t.CB,keyframes:()=>t.F4,listStorageKeys:()=>t._f,loadjs:()=>t.j0,markdown:()=>t.JH,md5:()=>t.FB,pluginCenter:()=>t.YB,request:()=>t.WY,styled:()=>t.zo,useActions:()=>t.ol,useArticle:()=>me.ZP,useAsset:()=>Ae,useAssetUrl:()=>Pe,useAsync:()=>t.r5,useAsyncCallback:()=>t.UK,useAsyncEffect:()=>t.bd,useAsyncFetchMore:()=>t.r3,useBook:()=>t.CQ,useDebounce:()=>t.Nr,useDocumentTitle:()=>t.jr,useEvent:()=>t.zX,useEventTarget:()=>t.Rs,useFile:()=>ae.Z,useHotkeys:()=>t.y1,useInPreview:()=>Fe,useIntl:()=>t.cw,useIntlContext:()=>t.mP,useLocalStorageState:()=>t.Rr,useLockBodyScroll:()=>Oe,useLogo:()=>ye,useModel:()=>t.tT,useNextArticle:()=>me.VI,useOptions:()=>t.D2,usePrevArticle:()=>me.ir,usePrevious:()=>t.D9,useSelector:()=>t.v9,useStateWithCallback:()=>t.CM,useThemeConfig:()=>t.LU,useThemeContext:()=>t.TC,useThrottle:()=>t.fB,useTitle:()=>de,useWindowSize:()=>Ce.Z,windowSizes:()=>Ce.D});var e={};a.r(e),a.d(e,{ask:()=>X,book:()=>A,page:()=>U,search:()=>G});a(3344),a(8664),a(532),a(7915),a(3473),a(1913),a(3050),a(5251),a(8006);Date.prototype.format=function(e){var t={"M+":this.getMonth()+1,"d+":this.getDate(),"h+":this.getHours(),"m+":this.getMinutes(),"s+":this.getSeconds(),"q+":Math.floor((this.getMonth()+3)/3),S:this.getMilliseconds()};for(var r in/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(this.getFullYear()+"").substr(4-RegExp.$1.length))),t)new RegExp("("+r+")").test(e)&&(e=e.replace(RegExp.$1,1==RegExp.$1.length?t[r]:("00"+t[r]).substr((""+t[r]).length)));return e};var t=a(6963),r=a(5250),n=a(1533),o=a(6065);t.$B.prototype[o.sc]=!0;var i=a(125),c=a.n(i),u=a(7392),l=a.n(u),f=a(5756),h=a.n(f),p=(a(1044),a(3583),a(7930),a(5591),a(7395),a(6853),a(8546),a(7363)),d=a.n(p),m=a(3714),v=(a(6585),a(1333),a(1176)),g=a.n(v),y=a(7934),b=a.n(y),w=a(5523),x=a.n(w),E=a(5745),k=a.n(E),S=a(2904),D=a.n(S);function P(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=D()(e);if(t){var o=D()(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return k()(this,r)}}var A=new(function(e){x()(r,e);var t=P(r);function r(){return b()(this,r),t.apply(this,arguments)}return g()(r)}(t.Hn)),C=a(4114),O=a.n(C),F=a(9862),j=a.n(F),T=a(9705),_=a.n(T),R=a(2153),I=a.n(R),L=a(3476),B=a.n(L);a(2814),a(337),a(2336),a(9778),a(7313),a(7190),a(1228),a(776);function M(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=D()(e);if(t){var o=D()(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return k()(this,r)}}function N(e){var t,r,n,o=2;for("undefined"!=typeof Symbol&&(r=Symbol.asyncIterator,n=Symbol.iterator);o--;){if(r&&null!=(t=e[r]))return t.call(e);if(n&&null!=(t=e[n]))return new H(t.call(e));r="@@asyncIterator",n="@@iterator"}throw new TypeError("Object is not async iterable")}function H(e){function t(e){if(Object(e)!==e)return Promise.reject(new TypeError(e+" is not an object."));var t=e.done;return Promise.resolve(e.value).then((function(e){return{value:e,done:t}}))}return H=function(e){this.s=e,this.n=e.next},H.prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var r=this.s.return;return void 0===r?Promise.resolve({value:e,done:!0}):t(r.apply(this.s,arguments))},throw:function(e){var r=this.s.return;return void 0===r?Promise.reject(e):t(r.apply(this.s,arguments))}},new H(e)}var z=function(e){x()(n,e);var r=M(n);function n(){var e;b()(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return e=r.call.apply(r,[this].concat(i)),j()(O()(e),"initialState",{loading:!1,request:t.WY.create(),config:{}}),e}return g()(n,[{key:"subscription",value:function(e){var t=e.fetch,r=m.m8.location;m.m8.listen((function(e){var n=e.location;r.pathname!==n.pathname&&(t(n.pathname),requestAnimationFrame((function(){window.scrollTo(0,0)}))),r=n}))}},{key:"fetch",value:function(e){var r=this;return _()(h().mark((function n(){var o,i,a,s,c,u,f,p,d,m,v,g;return h().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r.setState((function(e){e.loading=!0}));case 2:return n.delegateYield(B()(N(r.getState("book")),I()),"t0",3);case 3:return o=n.t0,n.delegateYield(B()(N(r.getState("page")),I()),"t1",5);case 5:if(i=n.t1,a=i.request,s=i.config,n.prev=8,u=decodeURI(e),f=function(){var e=l()(h().mark((function e(){var r,n;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a.get(u,s);case 2:return r=e.sent,n=r.data,e.abrupt("return","string"==typeof n?(0,t.He)(n):n);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),!o.sha||!("caches"in window)){n.next=30;break}return n.next=14,I()(caches.open("book-".concat(o.id,"-").concat(o.sha)));case 14:return p=n.sent,n.next=17,I()(p.match(u));case 17:if(!(d=n.sent)){n.next=22;break}return n.next=21,I()(d.json());case 21:c=n.sent;case 22:if(c){n.next=28;break}return n.next=25,I()(f());case 25:return c=n.sent,n.next=28,I()(p.put(u,new Response(JSON.stringify(c),{headers:{"Content-Type":"application/json"}})));case 28:n.next=33;break;case 30:return n.next=32,I()(f());case 32:c=n.sent;case 33:return v=(m=c).file,g=m.lfs,n.next=36,r.setState((function(e){e.file=new t.$B(v),e.lfs=g}));case 36:n.next=42;break;case 38:return n.prev=38,n.t2=n.catch(8),n.next=42,r.setState((function(e){e.error=n.t2}));case 42:return n.prev=42,n.next=45,r.setState((function(e){e.loading=!1}));case 45:return n.finish(42);case 46:case"end":return n.stop()}}),n,null,[[8,38,42,46]])})))()}},{key:"intercept",value:h().mark((function e(t){var r,n;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(this.getState("page"),"t0",1);case 1:r=e.t0,n=r.request,t(n.interceptors);case 4:case"end":return e.stop()}}),e,this)}))},{key:"updateConfig",value:h().mark((function e(t){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.setState((function(e){t(e.config)}));case 2:case"end":return e.stop()}}),e,this)}))}]),n}(t.Hn),U=new z;a(3394),a(2443),a(2122),a(5013);function $(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=D()(e);if(t){var o=D()(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return k()(this,r)}}function q(e){var t,r,n,o=2;for("undefined"!=typeof Symbol&&(r=Symbol.asyncIterator,n=Symbol.iterator);o--;){if(r&&null!=(t=e[r]))return t.call(e);if(n&&null!=(t=e[n]))return new V(t.call(e));r="@@asyncIterator",n="@@iterator"}throw new TypeError("Object is not async iterable")}function V(e){function t(e){if(Object(e)!==e)return Promise.reject(new TypeError(e+" is not an object."));var t=e.done;return Promise.resolve(e.value).then((function(e){return{value:e,done:t}}))}return V=function(e){this.s=e,this.n=e.next},V.prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var r=this.s.return;return void 0===r?Promise.resolve({value:e,done:!0}):t(r.apply(this.s,arguments))},throw:function(e){var r=this.s.return;return void 0===r?Promise.reject(e):t(r.apply(this.s,arguments))}},new V(e)}var G=new(function(e){x()(r,e);var t=$(r);function r(){var e;b()(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),j()(O()(e),"initialState",{status:"idle",results:[],query:""}),e}return g()(r,[{key:"fetch",value:function(e){var t=this;return _()(h().mark((function r(){var n,o,i,a,s,c;return h().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!(e=e.trim())){r.next=27;break}return r.next=4,t.setState((function(t){t.query=e,t.status="loading"}));case 4:return r.delegateYield(B()(q(t.getState("search")),I()),"t0",5);case 5:if(n=r.t0,o=n.handler,i=n.part,o){r.next=13;break}return r.delegateYield(B()(q(t.getState("book")),I()),"t1",10);case 10:a=r.t1,s=a.summary,o=function(){var t=[];return s.getArticle((function(r){var n=r.getPath();return r.title.includes(e)&&n&&t.push({title:r.title,path:n}),!1}),(function(e){return!i||e.level.toString()===i})),t};case 13:return r.prev=13,r.next=16,I()(o(e,i));case 16:return c=r.sent,r.next=19,t.setState((function(e){e.results=c,e.status="idle"}));case 19:r.next=25;break;case 21:return r.prev=21,r.t2=r.catch(13),r.next=25,t.setState((function(e){e.results=[],e.status="error"}));case 25:r.next=29;break;case 27:return r.next=29,t.setState((function(t){t.query=e,t.status="idle",t.results=[]}));case 29:case"end":return r.stop()}}),r,null,[[13,21]])})))()}},{key:"setPart",value:h().mark((function e(t){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.setState((function(e){t!==e.part&&(e.query="",e.status="idle",e.results=[],e.part=t)}));case 2:case"end":return e.stop()}}),e,this)}))},{key:"setHandler",value:h().mark((function e(t){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.setState((function(e){e.handler=t}));case 2:case"end":return e.stop()}}),e,this)}))}]),r}(t.Hn));function W(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=D()(e);if(t){var o=D()(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return k()(this,r)}}function K(e){var t,r,n,o=2;for("undefined"!=typeof Symbol&&(r=Symbol.asyncIterator,n=Symbol.iterator);o--;){if(r&&null!=(t=e[r]))return t.call(e);if(n&&null!=(t=e[n]))return new Q(t.call(e));r="@@asyncIterator",n="@@iterator"}throw new TypeError("Object is not async iterable")}function Q(e){function t(e){if(Object(e)!==e)return Promise.reject(new TypeError(e+" is not an object."));var t=e.done;return Promise.resolve(e.value).then((function(e){return{value:e,done:t}}))}return Q=function(e){this.s=e,this.n=e.next},Q.prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var r=this.s.return;return void 0===r?Promise.resolve({value:e,done:!0}):t(r.apply(this.s,arguments))},throw:function(e){var r=this.s.return;return void 0===r?Promise.reject(e):t(r.apply(this.s,arguments))}},new Q(e)}var Z,Y,X=new(function(e){x()(r,e);var t=W(r);function r(){var e;b()(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),j()(O()(e),"initialState",{enable:!1,status:"idle",query:"",answer:""}),e}return g()(r,[{key:"fetch",value:function(e){var t=this;return _()(h().mark((function r(){var n,o,i,a,s;return h().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!(e=e.trim())){r.next=30;break}return r.delegateYield(B()(K(t.getState("ask")),I()),"t0",3);case 3:if(n=r.t0,o=n.handler,i=n.part,!o){r.next=30;break}return r.prev=7,r.next=10,t.setState((function(t){t.query=e,t.status="loading",t.answer=""}));case 10:return r.next=12,I()(o(e,i));case 12:return a=r.sent,r.next=15,t.setState((function(e){e.status="stalled"}));case 15:s=h().mark((function e(){var r,n,o;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,I()(a.read());case 2:if(r=e.sent,n=r.done,o=r.value,!n){e.next=7;break}return e.abrupt("return",1);case 7:return e.next=9,t.setState((function(e){e.answer+=o}));case 9:case"end":return e.stop()}}),e)}));case 16:return r.delegateYield(s(),"t1",18);case 18:if(!r.t1){r.next=20;break}return r.abrupt("break",22);case 20:r.next=16;break;case 22:return r.next=24,t.setState((function(e){e.status="idle"}));case 24:r.next=30;break;case 26:return r.prev=26,r.t2=r.catch(7),r.next=30,t.setState((function(e){e.answer="",e.status="error"}));case 30:case"end":return r.stop()}}),r,null,[[7,26]])})))()}},{key:"setPart",value:h().mark((function e(t){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.setState((function(e){t!==e.part&&(e.query="",e.answer="",e.status="idle",e.part=t)}));case 2:case"end":return e.stop()}}),e,this)}))},{key:"setHandler",value:h().mark((function e(t){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.setState((function(e){e.handler=t,e.enable=!!t}));case 2:case"end":return e.stop()}}),e,this)}))}]),r}(t.Hn)),J=a(2815),ee=a(5225),te=a.n(ee);function re(){return(0,r.jsx)(ie,{children:(0,r.jsx)(oe,{})})}var ne,oe=t.zo.div(Z||(Z=te()(["\n @keyframes spinner-border {\n to {\n transform: rotate(360deg)\n }\n }\n\n display: inline-block;\n width: 2rem;\n height: 2rem;\n vertical-align: -0.125em;\n border: 0.25em solid #3c60ff;\n border-right-color: transparent;\n border-radius: 50%;\n animation: 0.75s linear infinite spinner-border;\n"]))),ie=t.zo.div(Y||(Y=te()(["\n position: fixed;\n top: 0;\n left: 0;\n height: 100vh;\n width: 100vw;\n display: flex;\n align-items: center;\n justify-content: center;\n"]))),ae=a(8709),se=a(7851),ce=a.n(se),ue=(0,p.createContext)(void 0);function le(e){var n=e.children,o=(0,ae.Z)(),i=(0,t.LU)(),a=(0,t.r5)(l()(h().mark((function e(){var r,n;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,t.WY)(o.relative(t.fy.style));case 2:return r=e.sent,n=r.data,e.abrupt("return",n);case 5:case"end":return e.stop()}}),e)}))),[]),s=a.result,c=a.loading,u=(0,p.useMemo)((function(){return{primaryColor:new(ce())(i.primaryColor)}}),[i]);return c?null:(0,r.jsx)(ue.Provider,{value:s,children:(0,r.jsxs)(t.f6,{theme:u,children:[(0,r.jsx)(fe,{}),n]})})}var fe=(0,t.vJ)(ne||(ne=te()(["\n :root {\n --ttw-primary-color: ",";\n }\n"])),(function(e){return e.theme.primaryColor.toString()}));var he=a(9294),pe=a.n(he);a(3934);function de(){var e=(0,t.cw)();return(0,t.CQ)().config.getValue("title",e.formatMessage({id:"n24ytq",defaultMessage:[{type:0,value:"未命名文档"}]}))}var me=a(9359),ve=(a(6164),a(7525),a(8808),a(9989),a(3882),(0,p.createContext)(void 0));function ge(e){var n=e.children,o=(0,p.useState)((function(){return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII="})),i=c()(o,2),a=i[0],s=i[1],u=(0,ae.Z)();return(0,p.useEffect)((function(){var e=u.relative(t.fy.logo),r=new Image;r.addEventListener("load",(function(){var e=document.createElement("canvas");e.height=this.height,e.width=this.width;var t=e.getContext("2d");t&&(t.drawImage(this,0,0),e.toBlob((function(e){e&&s(window.URL.createObjectURL(e))})))})),r.src=e}),[]),(0,r.jsx)(ve.Provider,{value:a,children:n})}function ye(){return(0,p.useContext)(ve)}var be=a(2827),we=d().lazy((function(){return Promise.all([a.e(452),a.e(945)]).then(a.bind(a,4945))}));function xe(){var e=(0,t.CQ)().summary,n=de(),o=(0,ae.Z)(),i=(0,p.useMemo)((function(){return e.getArticle((function(e){return e.getPath()===o.path}))}),[e,o]);(0,p.useEffect)((function(){window.parent!==window&&(window.addEventListener("message",(function(e){try{var t=pe()(e.data),r=t[0],n=t[1],o=t.slice(2);if("history"===r)switch(n){case"replace":m.m8.replace(o[0]);break;case"push":m.m8.push(o[0])}}catch(e){}})),m.m8.listen((function(e){var t="".concat(window.location.origin).concat((0,be.Ep)(e.location));window.parent.postMessage(["history",e.action.toLowerCase(),t],"*")})),window.parent.postMessage(["bootstrapped"],"*")),window.dispatchEvent(new Event("bootstrapped"))}),[]);var a=ye();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(t.ql,{children:[(0,r.jsx)("title",{children:"".concat(i?"".concat(i.title," - "):"").concat(n)}),(0,r.jsx)("link",{rel:"shortcut icon",href:a,type:"image/png"})]}),(0,r.jsxs)(me.Q3.Provider,{value:i,children:[(0,r.jsx)(t.cu,{role:"app"}),(0,r.jsx)(t.cu,{role:"page"}),(0,r.jsx)(d().Suspense,{fallback:null,children:(0,r.jsx)(t.cu,{role:"page:menu",component:we})})]})]})}function Ee(e){return ke.apply(this,arguments)}function ke(){return(ke=l()(h().mark((function e(t){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.t0=t,e.next="en"===e.t0?3:4;break;case 3:return e.abrupt("return",a.e(7).then(a.t.bind(a,2007,19)));case 4:return e.abrupt("return",a.e(267).then(a.t.bind(a,3267,19)));case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Se(){var n=(0,p.useState)(),o=c()(n,2),i=o[0],a=o[1];return(0,t.bd)(l()(h().mark((function n(){var o,i,s,c,u,l,f,p,d,v,g,y,b,w,x,E,k,S,D,P;return h().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(n.prev=0,o=(0,m.fi)(),i=o.location,s=(0,t.He)()){n.next=8;break}return n.next=6,t.WY.get(i.toString());case 6:c=n.sent,s=c.data;case 8:return l=(u=s).id,f=u.sha,p=u.summary,d=u.file,v=u.config,g=void 0===v?{}:v,y=u.options,b=void 0===y?{}:y,w=u.lfs,x=u.pluginsCenter,g=t.De.createFromObject(g),p=t.ER.create(p),E=new t.fy(l,g,p,f),k={page:{config:{params:J.parse(i.search)},file:new t.$B(d),lfs:w},options:b},n.next=15,(0,t.W3)("reader",E,e,k,Ee,x);case 15:S=n.sent,D=(0,r.jsx)(S,{children:(0,r.jsx)(ge,{children:(0,r.jsx)(le,{children:(0,r.jsx)(xe,{})})})}),a(D),n.next=24;break;case 20:n.prev=20,n.t0=n.catch(0),console.error(n.t0),t.WY.isAxiosError(n.t0)?a((null===(P=n.t0.response)||void 0===P?void 0:P.data)||n.t0.message):a(n.t0.message);case 24:case"end":return n.stop()}}),n,null,[[0,20]])}))),[]),i||(0,r.jsx)(re,{})}const De=function(){var e=document.getElementById("root");e&&(0,n.createRoot)(e).render((0,r.jsx)(Se,{}))};function Pe(e){var r=(0,t.v9)("page"),n=r.lfs,o=r.file;if(n){var i=n.url,a=n.files[e];if(a)return i.replace("{oid}",a)}return o.relative(e)}function Ae(){var e=(0,t.v9)("page"),r=e.lfs,n=e.file;return{getUrl:function(e){if((0,t.CB)(e))return e;if(r){var o=r.url,i=r.files[e];if(i)return o.replace("{oid}",i)}return n.relative(e)},upload:function(e,t){throw new Error("upload not support in reader context")}}}var Ce=a(8190);function Oe(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];(0,p.useEffect)((function(){if(e)return document.body.style.overflow="hidden",t&&window.scrollTo(0,0),function(){document.body.style.overflow="visible"}}),[e])}function Fe(){var e=(0,t.v9)("options").preview;return void 0!==e&&e}a(3915),a(3740);function je(e){var n=e.className,o=(0,t.cw)(),i=(0,t.v9)("options").poweredBy;return i?(0,r.jsx)("div",{className:n,children:o.formatMessage({id:"IHXx7d",defaultMessage:[{type:0,value:"本文档使用 "},{type:1,value:"link"},{type:0,value:" 构建"}]},{link:(0,r.jsx)("a",{href:i.link,target:"_blank",children:i.name})})}):null}function Te(e){var t=e.size,n=void 0===t?60:t,o=e.className,i=ye();return(0,r.jsx)("img",{className:o,src:i,width:n,height:n,alt:"logo"})}var _e=a(9900),Re=(a(9017),a(8887)),Ie=a.n(Re);function Le(e){var n=e.url,o=e.title,i=e.className,a=(0,t.CQ)().summary;if(!n.startsWith("http")&&".md"===Ie().extname(n)){var s=a.getArticle((function(e){return e.ref===n}));if(s)return(0,r.jsx)(_e.Z,{className:i,to:s,children:o})}return(0,r.jsx)("a",{className:i,href:n,target:"_blank",children:o})}a(5444),a(4703),a(9855),a(6230),a(7607),a(5126),a(7462),a(5148);function Be(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Me(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Be(Object(r),!0).forEach((function(t){j()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Be(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Ne=(0,p.lazy)((function(){return a.e(843).then(a.bind(a,5843))}));function He(e){return(0,r.jsx)(p.Suspense,{fallback:null,children:(0,r.jsx)(Ne,Me({},e))})}var ze=(0,p.lazy)((function(){return Promise.all([a.e(387),a.e(809)]).then(a.bind(a,1809))}));function Ue(){return(0,r.jsx)(p.Suspense,{fallback:null,children:(0,r.jsx)(ze,{})})}var $e=a(3973),qe=a(6851),Ve=a.n(qe),Ge=a(1221),We=a.n(Ge),Ke=["element","src"];function Qe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ze(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Qe(Object(r),!0).forEach((function(t){j()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ye(e){var n=e.element,o=e.src,i=We()(e,Ke),a=(0,t.v9)("page"),s=a.lfs,c=a.file;if(o&&s&&!(0,t.CB)(o)&&c){var u=s.url,l=s.files[c.resolve(decodeURIComponent(o))];l&&(o=u.replace("{oid}",l))}return(0,r.jsx)(t.cu,{role:"page:asset",props:Ze({src:o},i),component:n})}function Xe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Je(e){return(0,r.jsx)(Ye,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Xe(Object(r),!0).forEach((function(t){j()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({element:"img"},e))}function et(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function tt(e){return(0,r.jsx)(Ye,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?et(Object(r),!0).forEach((function(t){j()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):et(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({element:"t-attachment"},e))}function rt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function nt(e){return(0,r.jsx)(Ye,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?rt(Object(r),!0).forEach((function(t){j()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({element:"video"},e))}function ot(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function it(e){return(0,r.jsx)(Ye,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ot(Object(r),!0).forEach((function(t){j()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ot(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({element:"audio"},e))}function at(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function st(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?at(Object(r),!0).forEach((function(t){j()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):at(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ct(e){var t=(0,me.ZP)();return(0,r.jsx)($e.Z,st(st({},e),{},{base:t}))}var ut,lt,ft,ht,pt=["children","components"];function dt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function mt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?dt(Object(r),!0).forEach((function(t){j()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function vt(e){var n=e.children,o=e.components,i=We()(e,pt),a=(0,p.useContext)(ue);return(0,r.jsx)(t.UG,mt(mt({},i),{},{css:a,components:(0,p.useMemo)((function(){return mt({a:ct,img:Je,attachment:tt,video:nt,audio:it},o)}),[o]),children:n}))}var gt=["depth","id","children"],yt=["className","header","footer","offset","aside"];function bt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function wt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?bt(Object(r),!0).forEach((function(t){j()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var xt={heading:function(e){var t=e.depth,n=e.id,o=e.children,i=We()(e,gt);return n&&(o=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(St,{tabIndex:-1,id:n}),o]})),(0,p.createElement)("h".concat(t),i,o)}},Et=function(e){if(e){var t=document.getElementById(decodeURIComponent(e).substr(1));t&&window.scrollTo(0,t.offsetTop)}};function kt(e){var n=e.className,o=e.header,i=e.footer,a=e.offset,s=e.aside,c=void 0===s||s,u=We()(e,yt),l=(0,ae.Z)(),f=(0,me.ZP)();(0,p.useEffect)((function(){Et(m.m8.location.hash);var e=m.m8.listen((function(e){Et(e.location.hash)}));return function(){e()}}),[l.path]),void 0===o&&f&&(o=(0,r.jsx)(Pt,{children:f.title})),o=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(t.IA,{role:"page:article:before"}),o,(0,r.jsx)(t.IA,{role:"page:article:content:before"})]}),i=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(t.IA,{role:"page:article:content:after"}),i,(0,r.jsx)(t.IA,{role:"page:article:after"})]}),c&&(c={header:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(t.IA,{role:"page:article:aside:before"}),"object"===Ve()(c)&&c.header]}),footer:(0,r.jsxs)(r.Fragment,{children:["object"===Ve()(c)&&c.footer,(0,r.jsx)(t.IA,{role:"page:article:aside:after"})]})});var h=(0,r.jsx)(t.cu,{role:"page:article:markdown",component:vt,props:wt({header:o,footer:i,aside:c,children:l.content,components:xt},u)});return(0,r.jsx)(Dt,{className:n,offset:a,children:h},l.path)}var St=t.zo.a(ut||(ut=te()(["\n display: block;\n position: relative;\n top: -.5em;\n"]))),Dt=t.zo.div(lt||(lt=te()(["\n ","\n"])),(function(e){return e.offset&&(0,t.iv)(ft||(ft=te()(["\n "," {\n top: calc(-.5em - ","px);\n }\n "])),St,e.offset)})),Pt=t.zo.h1(ht||(ht=te()(["\n border-bottom: 1px solid #eee;\n font-size: 2em;\n line-height: 1.2;\n padding: 0 0 .5em;\n margin: 0 0 1em;\n font-weight: 400;\n"]))),At=a(2416),Ct=a.n(At),Ot=(a(8213),a(4332),function(e){var n=e.item,o=e.itemComponent,i=e.itemsComponent,a=(0,ae.Z)().path,s=(0,me.ZP)(),u=(0,t.LU)(),l=(0,p.useMemo)((function(){return Boolean(s&&n.getLevel().isDescendant(s.getLevel()))}),[n,s]),f=a===n.getPath(),h=(0,p.useState)((function(){return-1===u.expandLevel||u.expandLevel>=n.level.getDepth()||(l||f)})),d=c()(h,2),m=d[0],v=d[1];(0,p.useEffect)((function(){!m&&f&&v(!0)}),[f]),(0,p.useEffect)((function(){!m&&l&&v(!0)}),[l]);var g=n.children.length>0,y=!n.getPath(),b=g?(0,r.jsx)(jt,{itemsComponent:i,itemComponent:o,items:n.children}):null;return(0,r.jsx)(t.cu,{role:"catalog:item",props:{item:n,open:m,setOpen:v,active:f,disabled:y,activeDescendant:l,children:b},component:o})}),Ft=function(e){var t=e.children;return(0,r.jsx)("ul",{children:t})},jt=function(e){var n=e.items,o=e.part,i=e.itemsComponent,a=void 0===i?Ft:i,s=e.itemComponent,c=(0,r.jsx)(r.Fragment,{children:n.map((function(e){return(0,r.jsx)(Ot,{itemsComponent:a,itemComponent:s,item:e},e.level.toString())}))});return(0,r.jsx)(t.cu,{role:"catalog:items",props:{part:o,children:c},component:a})},Tt=function(e){var n=e.part,o=e.component,i=e.itemsComponent,a=e.itemComponent,s=(0,r.jsx)(jt,{itemsComponent:i,itemComponent:a,items:n.articles,part:n});return(0,r.jsx)(t.cu,{role:"catalog:part",props:{part:n,children:s},component:o})},_t=function(e){var t=e.summary,n=e.partComponent,o=e.itemsComponent,i=e.itemComponent;return t.isSinglePart()?(0,r.jsx)(jt,{itemsComponent:o,itemComponent:i,items:t.getLastPart().getArticles()}):(0,r.jsx)(r.Fragment,{children:t.parts.map((function(e){return(0,r.jsx)(Tt,{component:n,itemsComponent:o,itemComponent:i,part:e},e.level.toString())}))})};function Rt(e){var n=Object.assign({},(Ct()(e),e)),o=(0,t.v9)("book").summary,i=n.renderItem,a=n.renderPart;i&&(console.warn("renderItem deprecated"),n.itemComponent=i),a&&(console.warn("renderPart deprecated"),n.partComponent=a);var s=n.partComponent,c=n.itemsComponent,u=n.itemComponent;return(0,r.jsx)(_t,{summary:o,partComponent:s,itemsComponent:c,itemComponent:u})}a(5041);var It=function(e){return e instanceof t.oI?(0,r.jsx)(_e.Z,{to:e}):e.title};function Lt(e){var n=e.className,o=e.renderItem,i=void 0===o?It:o,a=(0,t.CQ)().summary,s=(0,me.ZP)(),c=(0,t.cw)().formatMessage({id:"4R5GEq",defaultMessage:[{type:0,value:"首页"}]}),u=[(0,r.jsx)("li",{children:(0,r.jsx)(_e.Z,{to:".",children:c})},"0")];if(s){var l=s.getLevel();l.data.reduce((function(e,n){e.push(n);var o,s=new t.aC(e),c=a.getByLevel(s);c&&(o=s.eq(l)?c.title:i(c),u.push((0,r.jsx)("li",{children:o},s.toString())));return e}),[])}return(0,r.jsx)("ol",{className:n,children:u})}function Bt(e){var r=e.children,n=(0,t.CQ)().summary,o=(0,me.ZP)(),i=(0,ae.Z)();return(0,p.useEffect)((function(){if(!o){var e=n.getFirstArticle();e&&m.m8.replace(i.relative(e.path))}}),[o]),o?r:null}!function(){console.log("%cWelcome to TopWrite!%c\n","padding-top: 0.5em; font-size: 2em;","padding-bottom: 0.5em;");var e=a(4147);console.log("[ua:version] ".concat(navigator.userAgent)),console.log("[client:version] v".concat(e.version))}()})(),window.TopWrite=s})();
52
52
  //# sourceMappingURL=index.js.map