diff --git a/asset-manifest.json b/asset-manifest.json index 11ea6173..031cce90 100644 --- a/asset-manifest.json +++ b/asset-manifest.json @@ -1,25 +1,25 @@ { "files": { "main.css": "/static/css/main.316054d1.css", - "main.js": "/static/js/main.651d8fed.js", + "main.js": "/static/js/main.75004f05.js", "refractor-prismjs-vendor.js": "/static/js/refractor-prismjs-vendor.a6176727.js", - "micromark-vendor.js": "/static/js/micromark-vendor.897142a2.js", - "parse5-vendor.js": "/static/js/parse5-vendor.359035f3.js", + "micromark-vendor.js": "/static/js/micromark-vendor.cd40cdcf.js", + "parse5-vendor.js": "/static/js/parse5-vendor.e2e55905.js", "react-vendor.js": "/static/js/react-vendor.5af0076e.js", "index.html": "/index.html", "main.316054d1.css.map": "/static/css/main.316054d1.css.map", - "main.651d8fed.js.map": "/static/js/main.651d8fed.js.map", + "main.75004f05.js.map": "/static/js/main.75004f05.js.map", "refractor-prismjs-vendor.a6176727.js.map": "/static/js/refractor-prismjs-vendor.a6176727.js.map", - "micromark-vendor.897142a2.js.map": "/static/js/micromark-vendor.897142a2.js.map", - "parse5-vendor.359035f3.js.map": "/static/js/parse5-vendor.359035f3.js.map", + "micromark-vendor.cd40cdcf.js.map": "/static/js/micromark-vendor.cd40cdcf.js.map", + "parse5-vendor.e2e55905.js.map": "/static/js/parse5-vendor.e2e55905.js.map", "react-vendor.5af0076e.js.map": "/static/js/react-vendor.5af0076e.js.map" }, "entrypoints": [ "static/js/refractor-prismjs-vendor.a6176727.js", - "static/js/micromark-vendor.897142a2.js", - "static/js/parse5-vendor.359035f3.js", + "static/js/micromark-vendor.cd40cdcf.js", + "static/js/parse5-vendor.e2e55905.js", "static/js/react-vendor.5af0076e.js", "static/css/main.316054d1.css", - "static/js/main.651d8fed.js" + "static/js/main.75004f05.js" ] } \ No newline at end of file diff --git a/index.html b/index.html index 41325bac..dbcba05e 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -HeatMap for React.
\ No newline at end of file +HeatMap for React.
\ No newline at end of file diff --git a/static/js/main.651d8fed.js b/static/js/main.651d8fed.js deleted file mode 100644 index 32819b14..00000000 --- a/static/js/main.651d8fed.js +++ /dev/null @@ -1,33 +0,0 @@ -/*! For license information please see main.651d8fed.js.LICENSE.txt */ -(()=>{var e={256:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=256,e.exports=t},5099:(e,t,r)=>{"use strict";var a=r(730),n=r(8102),s=r(9257);function o(e,t){return t||(t=e.slice(0)),e.raw=t,e}var i=r(7804);r(4441);var d=function(){return d=Object.assign||function(e){for(var t,r=1,a=arguments.length;r0?T(B,--N):0,I--,10===F&&(I=1,D--),F}function W(){return F=N2||V(F)>3?"":" "}function $(e,t){for(;--t&&W()&&!(F<48||F>102||F>57&&F<65||F>70&&F<97););return G(e,z()+(t<6&&32==H()&&32==W()))}function Q(e){for(;W();)switch(F){case e:return N;case 34:case 39:34!==e&&39!==e&&Q(F);break;case 40:41===e&&Q(e);break;case 92:W()}return N}function Z(e,t){for(;W()&&e+F!==57&&(e+F!==84||47!==H()););return"/*"+G(t,N-1)+"*"+x(47===e?e:W())}function ee(e){for(;!V(H());)W();return G(e,N)}function te(e,t){for(var r="",a=0;a6)switch(T(e,t+1)){case 109:if(45!==T(e,t+4))break;case 102:return j(e,/(.+:)(.+)-([^]+)/,"$1"+g+"$2-$3$1"+f+(108==T(e,t+3)?"$3":"$2-$3"))+e;case 115:return~S(e,"stretch")?ae(j(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return j(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,r,a,n,s,o,i){return p+r+":"+a+i+(n?p+r+"-span:"+(s?o:+o-+a)+i:"")+e}));case 4949:if(121===T(e,t+6))return j(e,":",":"+g)+e;break;case 6444:switch(T(e,45===T(e,14)?18:11)){case 120:return j(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+g+(45===T(e,14)?"inline-":"")+"box$3$1"+g+"$2$3$1"+p+"$2box$3")+e;case 100:return j(e,":",":"+p)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return j(e,"scroll-","scroll-snap-")+e}return e}function ne(e,t,r,a){if(e.length>-1&&!e.return)switch(e.type){case y:return void(e.return=ae(e.value,e.length,r));case b:return te([L(e,{value:j(e.value,"@","@"+g)})],a);case h:if(e.length)return function(e,t){return e.map(t).join("")}(r=e.props,(function(t){switch(E(t,a=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":U(L(e,{props:[j(t,/:(read-\w+)/,":-moz-$1")]})),U(L(e,{props:[t]})),R(e,{props:_(r,a)});break;case"::placeholder":U(L(e,{props:[j(t,/:(plac\w+)/,":"+g+"input-$1")]})),U(L(e,{props:[j(t,/:(plac\w+)/,":-moz-$1")]})),U(L(e,{props:[j(t,/:(plac\w+)/,p+"input-$1")]})),U(L(e,{props:[t]})),R(e,{props:_(r,a)})}return""}))}}function se(e){return Y(oe("",null,null,null,[""],e=K(e),0,[0],e))}function oe(e,t,r,a,n,s,o,i,d){for(var c=0,l=0,u=o,p=0,f=0,g=0,m=1,h=1,y=1,b=0,v="",R=n,w=s,E=a,A=v;h;)switch(g=b,b=W()){case 40:if(108!=g&&58==T(A,u-1)){-1!=S(A+=j(J(b),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:A+=J(b);break;case 9:case 10:case 13:case 32:A+=X(g);break;case 92:A+=$(z()-1,7);continue;case 47:switch(H()){case 42:case 47:P(de(Z(W(),z()),t,r,d),d);break;default:A+="/"}break;case 123*m:i[c++]=k(A)*y;case 125*m:case 59:case 0:switch(b){case 0:case 125:h=0;case 59+l:-1==y&&(A=j(A,/\f/g,"")),f>0&&k(A)-u&&P(f>32?ce(A+";",a,r,u-1,d):ce(j(A," ","")+";",a,r,u-2,d),d);break;case 59:A+=";";default:if(P(E=ie(A,t,r,c,l,n,i,v,R=[],w=[],u,s),s),123===b)if(0===l)oe(A,t,E,E,R,s,u,i,w);else switch(99===p&&110===T(A,3)?100:p){case 100:case 108:case 109:case 115:oe(e,E,E,a&&P(ie(e,E,E,0,0,n,i,v,n,R=[],u,w),w),n,w,u,i,a?R:w);break;default:oe(A,E,E,E,[""],w,0,i,w)}}c=l=f=0,m=y=1,v=A="",u=o;break;case 58:u=1+k(A),f=g;default:if(m<1)if(123==b)--m;else if(125==b&&0==m++&&125==q())continue;switch(A+=x(b),b*m){case 38:y=l>0?1:(A+="\f",-1);break;case 44:i[c++]=(k(A)-1)*y,y=1;break;case 64:45===H()&&(A+=J(W())),p=H(),l=u=k(v=A+=ee(z())),b++;break;case 45:45===g&&2==k(A)&&(m=0)}}return s}function ie(e,t,r,a,n,s,o,i,d,c,l,u){for(var p=n-1,f=0===n?s:[""],g=C(f),m=0,y=0,b=0;m0?f[x]+" "+R:j(R,/&\f/g,f[x])))&&(d[b++]=E);return M(e,t,r,0===n?h:i,d,c,l,u)}function de(e,t,r,a){return M(e,t,r,m,x(F),A(e,2,-2),0,a)}function ce(e,t,r,a,n){return M(e,t,r,y,A(e,0,a),A(e,a+1,-1),a,n)}const le={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};var ue=r(8790),pe="undefined"!=typeof ue&&void 0!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}&&({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.REACT_APP_SC_ATTR||{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.SC_ATTR)||"data-styled",fe="active",ge="data-styled-version",me="6.1.3",he="/*!sc*/\n",ye="undefined"!=typeof window&&"HTMLElement"in window,be=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof ue&&void 0!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}&&void 0!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.REACT_APP_SC_DISABLE_SPEEDY&&""!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.REACT_APP_SC_DISABLE_SPEEDY?"false"!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.REACT_APP_SC_DISABLE_SPEEDY&&{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof ue&&void 0!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}&&void 0!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.SC_DISABLE_SPEEDY&&""!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.SC_DISABLE_SPEEDY&&("false"!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.SC_DISABLE_SPEEDY&&{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.SC_DISABLE_SPEEDY)),ve=(new Set,Object.freeze([])),xe=Object.freeze({});function Re(e,t,r){return void 0===r&&(r=xe),e.theme!==r.theme&&e.theme||t||r.theme}var we=new Set(["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","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","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","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),Ee=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,je=/(^-|-$)/g;function Se(e){return e.replace(Ee,"-").replace(je,"")}var Te=/(a)(d)/gi,Ae=function(e){return String.fromCharCode(e+(e>25?39:97))};function ke(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=Ae(t%52)+r;return(Ae(t%52)+r).replace(Te,"$1-$2")}var Ce,Pe=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},_e=function(e){return Pe(5381,e)};function De(e){return ke(_e(e)>>>0)}function Ie(e){return e.displayName||e.name||"Component"}function Oe(e){return"string"==typeof e&&!0}var Ne="function"==typeof Symbol&&Symbol.for,Fe=Ne?Symbol.for("react.memo"):60115,Be=Ne?Symbol.for("react.forward_ref"):60112,Me={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Le={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Ue={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},qe=((Ce={})[Be]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Ce[Fe]=Ue,Ce);function We(e){return("type"in(t=e)&&t.type.$$typeof)===Fe?Ue:"$$typeof"in e?qe[e.$$typeof]:Me;var t}var He=Object.defineProperty,ze=Object.getOwnPropertyNames,Ge=Object.getOwnPropertySymbols,Ve=Object.getOwnPropertyDescriptor,Ke=Object.getPrototypeOf,Ye=Object.prototype;function Je(e,t,r){if("string"!=typeof t){if(Ye){var a=Ke(t);a&&a!==Ye&&Je(e,a,r)}var n=ze(t);Ge&&(n=n.concat(Ge(t)));for(var s=We(e),o=We(t),i=0;i0?" Args: ".concat(t.join(", ")):""))}var nt=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,r=0;r=this.groupSizes.length){for(var r=this.groupSizes,a=r.length,n=a;e>=n;)if((n<<=1)<0)throw at(16,"".concat(e));this.groupSizes=new Uint32Array(n),this.groupSizes.set(r),this.length=n;for(var s=a;s=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],a=this.indexOfGroup(e),n=a+r,s=a;s=0){var r=document.createTextNode(t);return this.element.insertBefore(r,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e0&&(d+="".concat(e,","))})),a+="".concat(o).concat(i,'{content:"').concat(d,'"}').concat(he)},s=0;s0?".".concat(t):e},l=d.slice();l.push((function(e){e.type===h&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(wt,r).replace(a,c))})),o.prefix&&l.push(ne),l.push(re);var u=function(e,n,s,i){void 0===n&&(n=""),void 0===s&&(s=""),void 0===i&&(i="&"),t=i,r=n,a=new RegExp("\\".concat(r,"\\b"),"g");var d=e.replace(Et,""),c=se(s||n?"".concat(s," ").concat(n," { ").concat(d," }"):d);o.namespace&&(c=jt(c,o.namespace));var u,p=[];return te(c,function(e){var t=C(e);return function(r,a,n,s){for(var o="",i=0;i="A"&&e<="Z"};function Ot(e){for(var t="",r=0;r>>0);if(!t.hasNameForId(this.componentId,s)){var o=r(n,".".concat(s),void 0,this.componentId);t.insertRules(this.componentId,s,o)}a=Qe(a,s),this.staticRulesId=s}else{for(var i=Pe(this.baseHash,r.hash),d="",c=0;c>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,r(d,".".concat(p),void 0,this.componentId)),a=Qe(a,p)}}return a},e}(),qt=i.createContext(void 0);qt.Consumer;var Wt={};new Set;function Ht(e,t,r){var a=$e(e),n=e,s=!Oe(e),o=t.attrs,c=void 0===o?ve:o,l=t.componentId,u=void 0===l?function(e,t){var r="string"!=typeof e?"sc":Se(e);Wt[r]=(Wt[r]||0)+1;var a="".concat(r,"-").concat(De(me+r+Wt[r]));return t?"".concat(t,"-").concat(a):a}(t.displayName,t.parentComponentId):l,p=t.displayName,f=void 0===p?function(e){return Oe(e)?"styled.".concat(e):"Styled(".concat(Ie(e),")")}(e):p,g=t.displayName&&t.componentId?"".concat(Se(t.displayName),"-").concat(t.componentId):t.componentId||u,m=a&&n.attrs?n.attrs.concat(c).filter(Boolean):c,h=t.shouldForwardProp;if(a&&n.shouldForwardProp){var y=n.shouldForwardProp;if(t.shouldForwardProp){var b=t.shouldForwardProp;h=function(e,t){return y(e,t)&&b(e,t)}}else h=y}var v=new Ut(r,g,a?n.componentStyle:void 0);function x(e,t){return function(e,t,r){var a=e.attrs,n=e.componentStyle,s=e.defaultProps,o=e.foldedComponentIds,c=e.styledComponentId,l=e.target,u=i.useContext(qt),p=Pt(),f=e.shouldForwardProp||p.shouldForwardProp,g=function(e,t,r){for(var a,n=d(d({},t),{className:void 0,theme:r}),s=0;s2&&Rt.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,a)}}();(function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString(),r=gt(),a=Ze([r&&'nonce="'.concat(r,'"'),"".concat(pe,'="true"'),"".concat(ge,'="').concat(me,'"')].filter(Boolean)," ");return"")},this.getStyleTags=function(){if(e.sealed)throw at(2);return e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)throw at(2);var r=((t={})[pe]="",t[ge]=me,t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),a=gt();return a&&(r.nonce=a),[i.createElement("style",d({},r,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new Rt({isServer:!0}),this.sealed=!1}e.prototype.collectStyles=function(e){if(this.sealed)throw at(2);return i.createElement(_t,{sheet:this.instance},e)},e.prototype.interleaveWithNodeStream=function(e){throw at(3)}})(),"__sc-".concat(pe,"__");var Xt=r(9424),$t=["className","prefixCls","element","top","size","strokeWidth","smooth","hideProgress","children"],Qt={position:"sticky",bottom:15,right:15,visibility:"visible",opacity:0,transition:"visibility 0.3s linear 0s, opacity 0.3s linear 0s",cursor:"pointer",userSelect:"none"},Zt={display:"block",transform:"rotate(-90deg)"},er={transition:"stroke-dashoffset 0.3s linear 0s"},tr={position:"absolute",top:0,display:"flex",height:"100%",width:"100%",alignItems:"center",justifyContent:"center",color:"#fff",fontSize:12},rr=document.documentElement;function ar(e){void 0===e&&(e={});var{className:t,prefixCls:r="w-back-to-up",element:a=rr,top:o=120,size:d=35,strokeWidth:c=3,smooth:l=!0,hideProgress:u=!1,children:p}=e,f=(0,s.A)(e,$t),g=(0,i.useRef)(null),m=[t,r].filter(Boolean).join(" "),h=Object.assign({},Qt,{position:a===rr?"fixed":"sticky"},f.style,{width:d,height:d,opacity:0===o?1:0}),y=(0,i.useMemo)((()=>d/2),[d]),b=(0,i.useMemo)((()=>d/2-c/2),[d,c]),v=(0,i.useMemo)((()=>Math.PI*b*2),[b]),[x,R]=(0,i.useState)(v||0),w=e=>{var{clientHeight:t,scrollHeight:r,scrollTop:n}=a||rr;R(v-v*(n/(r-t))||0),g.current&&o>0&&(g.current.style.opacity=n>o?"1":"0")};(0,i.useEffect)((()=>{var e=a===rr?document:a;return e&&e.addEventListener("scroll",w,{passive:!0}),()=>{e&&e.removeEventListener("scroll",w)}}),[a]);return(0,Xt.jsxs)("div",(0,n.A)({className:m,ref:g},f,{onClick:e=>{a.scrollTo({top:0,behavior:l?"smooth":"auto"})},style:h,children:[!u&&(0,Xt.jsxs)("svg",{viewBox:"0 0 "+d+" "+d,width:d,height:d,focusable:"false",style:Zt,children:[(0,Xt.jsx)("circle",{fill:"rgb(0 0 0 / 75%)",stroke:"rgb(200 200 200 / 85%)",strokeWidth:c,r:b,cx:y,cy:y}),(0,Xt.jsx)("circle",{fill:"none",stroke:"rgb(0 0 0 / 50%)",strokeWidth:c,r:b,cx:y,cy:y,strokeDasharray:v,strokeDashoffset:x||0,style:er})]}),p&&(0,Xt.jsx)("div",{style:tr,children:p})]}))}var nr={corners:{fixed:!0,target:"__blank",zIndex:10},darkMode:{permanent:!0,dark:"Dark",light:"Light"},example:null},sr=[],or={setCorners(e){nr=(0,n.A)({},nr,{corners:(0,n.A)({},nr.corners,e)}),cr()},setDarkMode(e){nr=(0,n.A)({},nr,{darkMode:(0,n.A)({},nr.darkMode,e)}),cr()},setExample(e){nr=(0,n.A)({},nr,{example:e}),cr()},setNavMenu(e){nr=(0,n.A)({},nr,{navMenu:(0,n.A)({},nr.navMenu,e)}),cr()}};function ir(){return nr}function dr(e){return sr=[...sr,e],()=>{sr=sr.filter((t=>t!==e))}}function cr(){for(var e of sr)e()}function lr(){return(0,i.useSyncExternalStore)(dr,ir)}const ur=document.createElement("template");ur.innerHTML='\n\n\n';class pr extends HTMLElement{static get observedAttributes(){return["style","z-index","target","height","width","href","color","fill","position","top","left","right","bottom","transform"]}constructor(){super(),this.right="0",this.shadow=this.attachShadow({mode:"open"}),this.shadow.appendChild(this.ownerDocument.importNode(ur.content,!0)),this.update()}setAttr(e,t){const r=this.shadow.querySelector("svg");/(href)/.test(e.toLocaleLowerCase())?r.lastElementChild.setAttribute("xlink:href",t):/(color|fill)/.test(e.toLocaleLowerCase())?r.firstElementChild.style[e]=t:/(z-index|position|top|left|right|bottom|transform)/.test(e.toLocaleLowerCase())?r.style[e]=t:r.setAttribute(e,t)}update(){[...this.getAttributeNames(),"right"].forEach((e=>{const t=this.getAttribute(e)||this[e]||"";this.setAttr(e,t)}))}attributeChangedCallback(e,t,r){t!==r&&this.setAttr(e,r)}}customElements.define("github-corners",pr);var fr,gr,mr=["size","fixed","bottom","zIndex","className","style","bgColor","color","position"];function hr(e){var{size:t=80,fixed:r=!1,bottom:a,zIndex:o,style:i,bgColor:d="#151513",color:c="#fff",position:l="right"}=e,u=(0,s.A)(e,mr),p="left"===l?{left:0,right:"initial",transform:"scale(-1, 1)"}:{right:0,left:"initial",transform:"scale(1, 1)"};return a?(p.bottom=0,p.top="initial",p.transform="left"===l?"scale(-1, -1)":"scale(1, -1)"):(p.bottom="initial",p.top=0),(0,Xt.jsx)("github-corners",(0,n.A)({target:"__blank",width:t,height:t,href:e.href,position:r?"fixed":"absolute","z-index":o,style:i,fill:d,color:c},p,u))}var yr,br,vr,xr,Rr,wr,Er=function(e){for(var t=[],r=1;r(0,Xt.jsx)(i.Fragment,{children:e},t))),!r&&(0,Xt.jsx)(_r,{href:o.corners.href,target:"_blank",rel:"noopener noreferrer",children:(0,Xt.jsx)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",width:"18px",strokeLinecap:"round",strokeLinejoin:"round",children:(0,Xt.jsx)("path",{d:"M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22"})})}),!t&&(0,Xt.jsx)("dark-mode",(0,n.A)({permanent:!0,style:{fontSize:19}},o.darkMode))]})]})}):(0,Xt.jsxs)(i.Fragment,{children:[!t&&(0,Xt.jsx)("dark-mode",(0,n.A)({permanent:!0,style:{position:"fixed",top:8,left:12,zIndex:99,fontSize:28}},o.darkMode)),!r&&(0,Xt.jsx)(hr,(0,n.A)({fixed:!0,target:"__blank",zIndex:10},o.corners))]})}var Ir={},Or=(0,i.createContext)({}),Nr=(e,t)=>(0,n.A)({},e,t),Fr=e=>{var{children:t,value:r}=e,[a,s]=(0,i.useReducer)(Nr,(0,n.A)({},Ir,r));return(0,Xt.jsx)(Or.Provider,{value:(0,n.A)({},a,{dispatch:s}),children:t})},Br=["tagName","className","children"],Mr=i.forwardRef(((e,t)=>{var{tagName:r="div",className:a,children:o}=e,d=(0,s.A)(e,Br),c=[Xr+"-code",a].filter(Boolean).join(" ").trim();if((0,i.useContext)(Or).collapse)return null;var l=e.href&&"string"===typeof r?"a":r,u=(0,n.A)({},d,{className:c,ref:t});return i.createElement(l,u,o)}));Mr.displayName="uiw.CodeLayoutCode";var Lr=["className","children"],Ur=i.forwardRef(((e,t)=>{var{className:r,children:a}=e,o=(0,s.A)(e,Lr),i=[Xr+"-preview",r].filter(Boolean).join(" ").trim();return(0,Xt.jsx)("div",(0,n.A)({},o,{className:i,ref:t,children:a}))}));Ur.displayName="uiw.Preview";var qr=r(8474),Wr=r.n(qr),Hr=e=>(0,Xt.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:(0,Xt.jsx)("path",{d:"M8.64 5.23a1 1 0 0 0-1.41.13l-5 6a1 1 0 0 0 0 1.27l4.83 6a1 1 0 0 0 .78.37 1 1 0 0 0 .78-1.63L4.29 12l4.48-5.36a1 1 0 0 0-.13-1.41zm13.14 6.14-4.78-6a1 1 0 0 0-1.41-.15 1 1 0 0 0-.15 1.41L19.71 12l-4.48 5.37a1 1 0 0 0 .13 1.41A1 1 0 0 0 16 19a1 1 0 0 0 .77-.36l5-6a1 1 0 0 0 .01-1.27z","data-name":"code"})}),zr=e=>(0,Xt.jsxs)("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:[(0,Xt.jsx)("path",{d:"M18 21h-6a3 3 0 0 1-3-3v-6a3 3 0 0 1 3-3h6a3 3 0 0 1 3 3v6a3 3 0 0 1-3 3zm-6-10a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1v-6a1 1 0 0 0-1-1z"}),(0,Xt.jsx)("path",{d:"M9.73 15H5.67A2.68 2.68 0 0 1 3 12.33V5.67A2.68 2.68 0 0 1 5.67 3h6.66A2.68 2.68 0 0 1 15 5.67V9.4h-2V5.67a.67.67 0 0 0-.67-.67H5.67a.67.67 0 0 0-.67.67v6.66a.67.67 0 0 0 .67.67h4.06z"})]}),Gr=e=>(0,Xt.jsxs)("svg",{viewBox:"0 0 24 24",fill:"green",children:[(0,Xt.jsx)("path",{d:"M9.71 11.29a1 1 0 0 0-1.42 1.42l3 3A1 1 0 0 0 12 16a1 1 0 0 0 .72-.34l7-8a1 1 0 0 0-1.5-1.32L12 13.54z"}),(0,Xt.jsx)("path",{d:"M21 11a1 1 0 0 0-1 1 8 8 0 0 1-8 8A8 8 0 0 1 6.33 6.36 7.93 7.93 0 0 1 12 4a8.79 8.79 0 0 1 1.9.22 1 1 0 1 0 .47-1.94A10.54 10.54 0 0 0 12 2a10 10 0 0 0-7 17.09A9.93 9.93 0 0 0 12 22a10 10 0 0 0 10-10 1 1 0 0 0-1-1z"})]}),Vr=e=>{var[t,r]=(0,i.useState)(!1);return(0,Xt.jsx)("button",{onClick:()=>{r(!0),Wr()(e.text||"",(()=>{var e=setTimeout((()=>{r(!1),clearTimeout(e)}),2e3)}))},children:t?(0,Xt.jsx)(Gr,{}):(0,Xt.jsx)(zr,{})})},Kr=["className","children","extra","text","copied","collapse","visibleButton","visible"],Yr=i.forwardRef(((e,t)=>{var{className:r,children:a,extra:o,text:d="",copied:c=!0,collapse:l=!0,visibleButton:u=!0,visible:p=!0}=e,f=(0,s.A)(e,Kr),g=(0,i.useContext)(Or),m=[Xr+"-toolbar",r].filter(Boolean).join(" ").trim();if((0,i.useEffect)((()=>g.dispatch({collapse:l})),[l]),!p)return null;return(0,Xt.jsxs)("div",(0,n.A)({className:m},f,{ref:t,children:[(0,Xt.jsx)("div",{className:Xr+"-title",children:a}),(0,Xt.jsxs)("div",{className:Xr+"-extra",children:[o,c&&(0,Xt.jsx)(Vr,{text:d}),u&&(0,Xt.jsx)("button",{onClick:()=>g.dispatch({collapse:!g.collapse}),children:(0,Xt.jsx)(Hr,{})})]})]}))}));Yr.displayName="uiw.Toolbar";var Jr=["children","prefixCls","className","bordered","disableCheckered"],Xr="w-rcpl",$r=i.forwardRef(((e,t)=>{var{children:r,prefixCls:a=Xr,className:o,bordered:d=!0,disableCheckered:c}=e,l=(0,s.A)(e,Jr),u=[a,o,d?"w-bordered":null,c?"w-disable-checkered":null].filter(Boolean).join(" ").trim();return(0,Xt.jsx)("div",(0,n.A)({ref:t},l,{className:u,children:i.Children.map(r,((e,t)=>i.isValidElement(e)?i.cloneElement(e,(0,n.A)({},e.props,{key:t})):e))}))})),Qr=i.forwardRef(((e,t)=>(0,Xt.jsx)(Fr,{value:{collapse:!1},children:(0,Xt.jsx)($r,(0,n.A)({},e,{ref:t}))})));Qr.Preview=Ur,Qr.Toolbar=Yr,Qr.Code=Mr;const Zr=Qr;r(3521),r(3132),r(8108),r(9050);var ea=e=>{for(var t,r=/([^?=&]+)=([^&]*)/g,a={};t=r.exec(e);)a[t[1]]=t[2];return a},ta=function(e){void 0===e&&(e="");var[t=""]=/mdx:(.[\w|:]+)/i.exec(e)||[];return t.replace(/^mdx:preview:?/,"")},ra=function(e){return void 0===e&&(e=""),e&&e.includes("mdx:preview")};const aa=function(e){if(null===e||void 0===e)return sa;if("function"===typeof e)return na(e);if("object"===typeof e)return Array.isArray(e)?function(e){const t=[];let r=-1;for(;++r":"")+")"})}return l;function l(){let c,l,u,p=ia;if((!t||s(n,i,d[d.length-1]||void 0))&&(p=function(e){if(Array.isArray(e))return e;if("number"===typeof e)return[da,e];return null===e||void 0===e?ia:[e]}(r(n,d)),p[0]===ca))return p;if("children"in n&&n.children){const t=n;if(t.children&&p[0]!==la)for(l=(a?t.children.length:-1)+o,u=d.concat(t);l>-1&&l0&&0===o.length)return}const i={};let d;for(d in t)ha.call(t,d)&&(i[d]="children"===d?o:t[d]);return i}(e)}var ba=r(9386),va=r(1689),xa=r(2564);function Ra(){Ra=function(e,t){return new r(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function r(e,a,n){var s=new RegExp(e,a);return t.set(s,n||t.get(e)),wa(s,r.prototype)}function a(e,r){var a=t.get(r);return Object.keys(a).reduce((function(t,r){var n=a[r];if("number"==typeof n)t[r]=e[n];else{for(var s=0;void 0===e[n[s]]&&s+1]+)>/g,(function(e,t){var r=s[t];return"$"+(Array.isArray(r)?r.join("$"):r)})))}if("function"==typeof n){var o=this;return e[Symbol.replace].call(this,r,(function(){var e=arguments;return"object"!=typeof e[e.length-1]&&(e=[].slice.call(e)).push(a(e,o)),n.apply(this,e)}))}return e[Symbol.replace].call(this,r,n)},Ra.apply(this,arguments)}function wa(e,t){return wa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},wa(e,t)}function Ea(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r=e.length?{done:!0}:{done:!1,value:e[a++]}}}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 Sa=function(e){return function(t){return void 0===t&&(t={}),function(e,t){if(t&&!e.registered(t))throw new Error('The default language "'+t+'" is not registered with refractor.')}(e,t.defaultLanguage),function(e){pa(e,"element",r)};function r(r,a,n){var s,o;if(n&&"pre"===n.tagName&&"code"===r.tagName){var i=(null==r||null==(s=r.data)?void 0:s.meta)||(null==r||null==(o=r.properties)?void 0:o.metastring)||"";r.properties.className?"boolean"==typeof r.properties.className?r.properties.className=[]:Array.isArray(r.properties.className)||(r.properties.className=[r.properties.className]):r.properties.className=[];var d,c,l=function(e){for(var t,r=ja(e.properties.className);!(t=r()).done;){var a=t.value;if("language-"===a.slice(0,9))return a.slice(9).toLowerCase()}return null}(r);if(!l&&t.defaultLanguage&&r.properties.className.push("language-"+(l=t.defaultLanguage)),r.properties.className.push("code-highlight"),l)try{var u,p;p=null!=(u=l)&&u.includes("diff-")?l.split("-")[1]:l,d=e.highlight(fa(r),p),n.properties.className=(n.properties.className||[]).concat("language-"+p)}catch(x){if(!t.ignoreMissing||!/Unknown language/.test(x.message))throw x;d=r}else d=r;d.children=(c=1,function e(t){return t.reduce((function(t,r){if("text"===r.type){var a=r.value,n=(a.match(/\n/g)||"").length;if(0===n)r.position={start:{line:c,column:1},end:{line:c,column:1}},t.push(r);else for(var s,o=a.split("\n"),i=ja(o.entries());!(s=i()).done;){var d=s.value,l=d[0],u=d[1];t.push({type:"text",value:l===o.length-1?u:u+"\n",position:{start:{line:c+l,column:1},end:{line:c+l,column:1}}})}return c+=n,t}if(Object.prototype.hasOwnProperty.call(r,"children")){var p=c;return r.children=e(r.children),t.push(r),r.position={start:{line:p,column:1},end:{line:c,column:1}},t}return t.push(r),t}),[])})(d.children),d.position=d.children.length>0?{start:{line:d.children[0].position.start.line,column:0},end:{line:d.children[d.children.length-1].position.end.line,column:0}}:{start:{line:0,column:0},end:{line:0,column:0}};for(var f,g=function(e){var t=/{([\d,-]+)}/,r=e.split(",").map((function(e){return e.trim()})).join();if(t.test(r)){var a=t.exec(r)[1],n=ba(a);return function(e){return n.includes(e+1)}}return function(){return!1}}(i),m=function(e){var t=Ra(/showLineNumbers=(\d+)/i,{lines:1});if(t.test(e)){var r=t.exec(e);return Number(r.groups.lines)}return 1}(i),h=function(e){for(var t=new Array(e),r=0;r=n+1}));s.children=o.children,!i.toLowerCase().includes("showLineNumbers".toLowerCase())&&!t.showLineNumbers||y.some((function(e){return i.toLowerCase().includes(e)}))||(s.properties.line=[(n+m).toString()],s.properties.className.push("line-number")),g(n)&&s.properties.className.push("highlight-line"),("diff"===l||null!=(e=l)&&e.includes("diff-"))&&"-"===fa(s).substring(0,1)?s.properties.className.push("deleted"):("diff"===l||null!=(r=l)&&r.includes("diff-"))&&"+"===fa(s).substring(0,1)&&s.properties.className.push("inserted")},v=ja(h.entries());!(f=v()).done;)b();h.length>0&&""===fa(h[h.length-1]).trim()&&h.pop(),r.children=h}}}},Ta=(Sa(va.L),Sa(xa.L)),Aa=r(5294),ka={},Ca={};function Pa(e,t){for(var r=t,a=0;a","+"],attributes:{unknownCaseSensitivityModifiers:"reject",operators:["=","~=","|="]},pseudoElements:{definitions:["before","after"]},pseudoClasses:{unknown:"reject",definitions:{NoArgument:["hover","focus","first-child"],String:["lang"]}}}),Xa=Ka(Ja,{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"]}}}),$a=Ka(Xa,{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"]}}}),Qa={css1:Ya,css2:Ja,css3:Xa,"selectors-3":Xa,"selectors-4":$a,latest:$a,progressive:Ka($a,{pseudoElements:{unknown:"accept"},pseudoClasses:{unknown:"accept"},attributes:{unknownCaseSensitivityModifiers:"accept"}})};function Za(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||"-"===e||"_"===e||"\\"===e||e>="\xa0"}function en(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||"-"===e||"_"===e||e>="\xa0"}function tn(e){return e>="a"&&e<="f"||e>="A"&&e<="F"||e>="0"&&e<="9"}var rn={" ":!0,"\t":!0,"\n":!0,"\r":!0,"\f":!0},an={'"':!0,"'":!0},nn={0:!0,1:!0,2:!0,3:!0,4:!0,5:!0,6:!0,7:!0,8:!0,9:!0};var sn="css-selector-parser parse error: ";var on=function(){return on=Object.assign||function(e){for(var t,r=1,a=arguments.length;r0,E=o.pseudoClasses?[!0,o.pseudoClasses.definitions?Fa(o.pseudoClasses.definitions):Ia,"accept"===o.pseudoClasses.unknown]:[!1,Ia,!1],j=E[0],S=E[1],T=E[2],A=o.pseudoElements?[!0,"singleColon"===o.pseudoElements.notation||"both"===o.pseudoElements.notation,!o.pseudoElements.notation||"doubleColon"===o.pseudoElements.notation||"both"===o.pseudoElements.notation,o.pseudoElements.definitions?Fa(Array.isArray(o.pseudoElements.definitions)?{NoArgument:o.pseudoElements.definitions}:o.pseudoElements.definitions):Ia,"accept"===o.pseudoElements.unknown]:[!1,!1,!1,Ia,!1],k=A[0],C=A[1],P=A[2],_=A[3],D=A[4],I="",O=I.length,N=0,F="",B=function(e){return F===e},M=function(){return B("*")||Za(F)},L=function(e){N=e,F=I.charAt(N)},U=function(){N++,F=I.charAt(N)},q=function(){var e=F;return N++,F=I.charAt(N),e};function W(e){var t=Math.min(O-1,N),r=new Error("".concat(sn).concat(e," Pos: ").concat(t,"."));throw r.position=t,r.name="ParserError",r}function H(e,t){if(!e)return W(t)}var z=function(){H(N=O},V=function(e){H(N=2&&W("Identifiers cannot start with two hyphens with strict mode on."),nn[F]&&W("Identifiers cannot start with hyphens followed by digits.");N0)return(t.commaSeparated?yn.A:vn.A)(e)}}(t.properties[a.property],a);if(!e.value)return void 0!==n;e.value.type;let s=e.value.value;if("i"===e.caseSensitivityModifier&&(s=s.toLowerCase(),n&&(n=n.toLowerCase())),void 0!==n)switch(e.operator){case"=":return s===n;case"$=":return s===n.slice(-s.length);case"*=":return n.includes(s);case"^=":return s===n.slice(0,s.length);case"|=":return s===n||s===n.slice(0,s.length)&&"-"===n.charAt(s.length);case"~=":return s===n||vn.q(n).includes(s)}return!1}const Rn=[];function wn(e,t){return(t.properties.className||Rn).includes(e.name)}function En(e,t){return t.properties.id===e.name}function jn(e,t){return e.name===t.tagName}function Sn(e,t){return function(r,a){let n=An(r,"tag");const s=An(null===a||void 0===a?"*":a,"range"),o=[];let i=-1;for(;++ie<=r;if(0===t)return e=>e===r;if(1===t)return r<0?Fn.trueFunc:e=>e>=r;const a=Math.abs(t),n=(r%a+a)%a;return t>1?e=>e>=r&&e%a===n:e=>e<=r&&e%a===n}(function(e){if("even"===(e=e.trim().toLowerCase()))return[2,0];if("odd"===e)return[2,1];let t=0,r=0,a=s(),n=o();if(t=On&&e.charCodeAt(t)<=Nn;)a=10*a+(e.charCodeAt(t)-On),t++;return t===r?null:a}function i(){for(;t1?s-1:0),i=1;i0},is:Gn,lang:function(e,t,r,a,n){return e.argument,e.argument.type,""!==n.language&&void 0!==n.language&&Tn(n.language,(0,yn.q)(e.argument.value)).length>0},"last-child":function(e,t,r,a,n){return Wn(n,e),Boolean(n.elementCount&&n.elementIndex===n.elementCount-1)},"last-of-type":function(e,t,r,a,n){return Wn(n,e),"number"===typeof n.typeIndex&&"number"===typeof n.typeCount&&n.typeIndex===n.typeCount-1},not:function(e,t,r,a,n){return!Gn(e,t,r,a,n)},"nth-child":function(e,t,r,a,n){const s=zn(e);return Wn(n,e),"number"===typeof n.elementIndex&&s(n.elementIndex)},"nth-last-child":function(e,t,r,a,n){const s=zn(e);return Wn(n,e),Boolean("number"===typeof n.elementCount&&"number"===typeof n.elementIndex&&s(n.elementCount-n.elementIndex-1))},"nth-last-of-type":function(e,t,r,a,n){const s=zn(e);return Wn(n,e),"number"===typeof n.typeCount&&"number"===typeof n.typeIndex&&s(n.typeCount-1-n.typeIndex)},"nth-of-type":function(e,t,r,a,n){const s=zn(e);return Wn(n,e),"number"===typeof n.typeIndex&&s(n.typeIndex)},"only-child":function(e,t,r,a,n){return Wn(n,e),1===n.elementCount},"only-of-type":function(e,t,r,a,n){return Wn(n,e),1===n.typeCount},optional:function(e,t){return!Kn(e,t)},"read-only":function(e,t,r,a,n){return!Vn(e,t,r,a,n)},"read-write":Vn,required:Kn,root:function(e,t,r,a,n){return Boolean((!a||"root"===a.type)&&n.schema&&("html"===n.schema.space||"svg"===n.schema.space)&&("html"===t.tagName||"svg"===t.tagName))},scope:function(e,t,r,a,n){return n.scopeElements.includes(t)}},invalid:function(){},unknown:function(e){throw new Error("Unknown pseudo-selector `"+e.name+"`")}});function Wn(e,t){if(e.shallow)throw new Error("Cannot use `:"+t.name+"` without parent")}function Hn(e,t){return("button"===t.tagName||"input"===t.tagName||"select"===t.tagName||"textarea"===t.tagName||"optgroup"===t.tagName||"option"===t.tagName||"menuitem"===t.tagName||"fieldset"===t.tagName)&&Cn(t,"disabled")}function zn(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=Un(r.a+"n+"+r.b),e._cachedFn=t}return t}function Gn(e,t,r,a,n){e.argument,e.argument.type;const s={...n,found:!1,one:!0,results:[],rootQuery:e.argument,scopeElements:[t],shallow:!1};return $n(s,t),s.results[0]===t}function Vn(e,t,r,a,n){return"input"===t.tagName||"textarea"===t.tagName?!Cn(t,"readOnly")&&!Cn(t,"disabled"):Boolean(n.editableOrEditingHost)}function Kn(e,t){return("input"===t.tagName||"textarea"===t.tagName||"select"===t.tagName)&&Cn(t,"required")}function Yn(e,t){const r=e.children;let a=-1;for(;++a0&&t.length>0?[...e,...t]:e&&e.length>0?e:t&&t.length>0?t:Xn}function es(e,t){if("element"===t.type){const r=t.tagName.toUpperCase(),a=(e.types.get(r)||0)+1;e.count++,e.types.set(r,a)}}function ts(e,t,r,a,n,s){let o={adjacentSibling:void 0,descendant:void 0,directChild:void 0,generalSibling:void 0};const i=function(e,t){const r=e.schema,a=e.language,n=e.direction,s=e.editableOrEditingHost;let o;if("element"===t.type){const a=t.properties.xmlLang||t.properties.lang,n=t.properties.type||"text",s=hn(t);null!==a&&void 0!==a&&(e.language=String(a)),r&&"html"===r.space?("true"===t.properties.contentEditable&&(e.editableOrEditingHost=!0),"svg"===t.tagName&&(e.schema=Aa.JW),"rtl"===s?o=s:"ltr"===s||"auto"!==s&&"html"===t.tagName||"auto"!==s&&"input"===t.tagName&&"tel"===n?o="ltr":"auto"!==s&&"bdi"!==t.tagName||("textarea"===t.tagName?o=mn(fa(t)):"input"!==t.tagName||"email"!==n&&"search"!==n&&"tel"!==n&&"text"!==n?pa(t,(function(e){return"text"===e.type?(o=mn(e.value),o?ca:void 0):e===t||"element"!==e.type||"bdi"!==e.tagName&&"script"!==e.tagName&&"style"!==e.tagName&&"textare"!==e.tagName&&!hn(e)?void 0:la})):o=t.properties.value?mn(String(t.properties.value)):"ltr"),o&&(e.direction=o)):e.editableOrEditingHost&&(e.editableOrEditingHost=!1)}return function(){e.schema=r,e.language=a,e.direction=n,e.editableOrEditingHost=s}}(e,r);if("element"===r.type){let i=e.rootQuery.rules;n&&n!==s&&(i=e.rootQuery.rules.filter((e=>void 0===e.combinator||">"===e.combinator&&n===s))),o=function(e,t,r,a,n){const s={adjacentSibling:void 0,descendant:void 0,directChild:void 0,generalSibling:void 0};let o=-1;for(;++o"===t.combinator?"directChild":"descendant",t):(e.found=!0,e.results.includes(r)||e.results.push(r))}void 0===i.combinator?Qn(s,"descendant",i):"~"===i.combinator&&Qn(s,"generalSibling",i)}return s}(e,Zn(t,i),r,a,n)}return!("children"in r)||e.shallow||e.one&&e.found||function(e,t,r,a){const n=Zn(t.descendant,t.directChild);let s,o=-1;const i={count:0,types:new Map},d={count:0,types:new Map};for(;++o1&&void 0!==arguments[1]?arguments[1]:"";return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((t=>{"text"===t.type?e+=t.value:"element"===t.type&&t.children&&Array.isArray(t.children)&&(e+=as(t.children))})),e},ns=e=>{const{selector:t,rewrite:r}=e||{};return e=>{if(r&&"function"===typeof r)if(t&&"string"===typeof t){const a=function(e,t,r){const a=rs(e,t,r);return $n(a,t||void 0),a.results}(t,e);a&&a.length>0&&pa(e,a,((e,t,a)=>{r(e,t,a)}))}else pa(e,((e,t,a)=>{r(e,t,a)}))}},ss=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,a=arguments.length>1?arguments[1]:void 0;for(;a/,"$2")||""))return;if(r){if(ss(e,a,"pre",r))return;return t.value=(t.value||"").replace(/^(\n|\s)+/,""),t}return t.value=(t.value||"").replace(/^(\n|\s)+/,""),t}}},os=e=>{let{value:t=""}=e;const r=function(){return((arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").match(/([^?=&]+)(=([^&]*))/g)||[]).reduce(((e,t)=>(e[t.slice(0,t.indexOf("="))]=t.slice(t.indexOf("=")+1),e)),{})}(t.replace(/^/,"$1").replace(/^rehype:/,""));return Object.keys(r).forEach((e=>{"true"===r[e]&&(r[e]=!0),"false"===r[e]&&(r[e]=!1),"string"!==typeof r[e]||/^0/.test(r[e])||isNaN(+r[e])||(r[e]=+r[e])})),r},is=(e,t,r)=>"string"===r?{...e,"data-config":JSON.stringify({...t,rehyp:!0})}:"attr"===r?{...e,...t}:{...e,"data-config":{...t,rehyp:!0}},ds=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{properties:t="data",codeBlockParames:r=!0}=e;return e=>{pa(e,"element",((e,a,n)=>{if(r&&"pre"===e.tagName&&e&&Array.isArray(e.children)&&n&&Array.isArray(n.children)&&n.children.length>1){const r=e.children[0];if(r&&"code"===r.tagName&&"number"===typeof a){const s=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;for(;t>-1;){if(t--,!e[t])return;if(e[t]&&e[t].value&&""!==e[t].value.replace(/(\n|\s)/g,"")||"text"!==e[t].type){if(!/^rehype:/.test(e[t].value)||"comment"!==e[t].type)return;return e[t]}}}(n.children,a);if(s){const a=os(s);Object.keys(a).length>0&&(e.properties={...e.properties,"data-type":"rehyp"},r.properties=is(r.properties,a,t))}}}if(/^(em|strong|b|a|i|p|pre|kbd|blockquote|h(1|2|3|4|5|6)|code|table|img|del|ul|ol)$/.test(e.tagName)&&n&&Array.isArray(n.children)&&"number"===typeof a){const s=ss(n.children,a,"",r);if(s){const r=os(s);Object.keys(r).length>0&&(e.properties=is(e.properties,r,t))}}}))}},cs="object"===typeof self?self:globalThis,ls=e=>((e,t)=>{const r=(t,r)=>(e.set(r,t),t),a=n=>{if(e.has(n))return e.get(n);const[s,o]=t[n];switch(s){case 0:case-1:return r(o,n);case 1:{const e=r([],n);for(const t of o)e.push(a(t));return e}case 2:{const e=r({},n);for(const[t,r]of o)e[a(t)]=a(r);return e}case 3:return r(new Date(o),n);case 4:{const{source:e,flags:t}=o;return r(new RegExp(e,t),n)}case 5:{const e=r(new Map,n);for(const[t,r]of o)e.set(a(t),a(r));return e}case 6:{const e=r(new Set,n);for(const t of o)e.add(a(t));return e}case 7:{const{name:e,message:t}=o;return r(new cs[e](t),n)}case 8:return r(BigInt(o),n);case"BigInt":return r(Object(BigInt(o)),n)}return r(new cs[s](o),n)};return a})(new Map,e)(0),us="",{toString:ps}={},{keys:fs}=Object,gs=e=>{const t=typeof e;if("object"!==t||!e)return[0,t];const r=ps.call(e).slice(8,-1);switch(r){case"Array":return[1,us];case"Object":return[2,us];case"Date":return[3,us];case"RegExp":return[4,us];case"Map":return[5,us];case"Set":return[6,us]}return r.includes("Array")?[1,r]:r.includes("Error")?[7,r]:[2,r]},ms=e=>{let[t,r]=e;return 0===t&&("function"===r||"symbol"===r)},hs=function(e){let{json:t,lossy:r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const a=[];return((e,t,r,a)=>{const n=(e,t)=>{const n=a.push(e)-1;return r.set(t,n),n},s=a=>{if(r.has(a))return r.get(a);let[o,i]=gs(a);switch(o){case 0:{let t=a;switch(i){case"bigint":o=8,t=a.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+i);t=null;break;case"undefined":return n([-1],a)}return n([o,t],a)}case 1:{if(i)return n([i,[...a]],a);const e=[],t=n([o,e],a);for(const r of a)e.push(s(r));return t}case 2:{if(i)switch(i){case"BigInt":return n([i,a.toString()],a);case"Boolean":case"Number":case"String":return n([i,a.valueOf()],a)}if(t&&"toJSON"in a)return s(a.toJSON());const r=[],d=n([o,r],a);for(const t of fs(a))!e&&ms(gs(a[t]))||r.push([s(t),s(a[t])]);return d}case 3:return n([o,a.toISOString()],a);case 4:{const{source:e,flags:t}=a;return n([o,{source:e,flags:t}],a)}case 5:{const t=[],r=n([o,t],a);for(const[n,o]of a)(e||!ms(gs(n))&&!ms(gs(o)))&&t.push([s(n),s(o)]);return r}case 6:{const t=[],r=n([o,t],a);for(const n of a)!e&&ms(gs(n))||t.push(s(n));return r}}const{message:d}=a;return n([o,{name:i,message:d}],a)};return s})(!(t||r),!!t,new Map,a)(e),a},ys="function"===typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?ls(hs(e,t)):structuredClone(e):(e,t)=>ls(hs(e,t)),bs=/[#.]/g;var vs=r(1141);const xs={}.hasOwnProperty;function Rs(e,t,r){const a=r&&function(e){const t={};let r=-1;for(;++r2?i-2:0),c=2;c1?r[e.line-2]:0)+e.column-1;if(a-1&&e<=t.length){let a=0;for(;;){let n=r[a];if(void 0===n){const e=As(t,r[a-1]);n=-1===e?t.length+1:e+1,r[a]=n}if(n>e)return{line:a+1,column:e-(a>0?r[a-1]:0)+1,offset:e};a++}}}}}(t),n=a.toPoint(0),s=a.toPoint(t.length);r.position={start:n,end:s}}return r}case"#documentType":return r={type:"doctype"},Is(e,t,r),r;case"#text":{const a=t;return r={type:"text",value:a.value},Is(e,a,r),r}default:return r=function(e,t){const r=e.schema;e.schema=t.namespaceURI===ks.svg?Aa.JW:Aa.qy;let a=-1;const n={};for(;++a0&&"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 Ks=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,Ys=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),Js={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function Xs(e,t){const r=function(e){const t="root"===e.type?e.children[0]:e;return Boolean(t&&("doctype"===t.type||"element"===t.type&&"html"===t.tagName.toLowerCase()))}(e),a=Ln("type",{handlers:{root:Qs,element:Zs,text:eo,comment:ao,doctype:to,raw:no},unknown:so}),n={parser:r?new Hs.iX(Js):Hs.iX.getFragmentParser(void 0,Js),handle(e){a(e,n)},stitches:!1,options:t||{}};a(e,n),oo(n,Gs());const s=function(e,t){const r=t||{};return _s({file:r.file||void 0,location:!1,schema:"svg"===r.space?Aa.JW:Aa.qy,verbose:r.verbose||!1},e)}(r?n.parser.document:n.parser.getFragment(),{file:n.options.file});return n.stitches&&pa(s,"comment",(function(e,t,r){const a=e;if(a.value.stitch&&r&&void 0!==t){return r.children[t]=a.value.stitch,t}})),"root"===s.type&&1===s.children.length&&s.children[0].type===e.type?s.children[0]:s}function $s(e,t){let r=-1;if(e)for(;++r4&&(t.parser.tokenizer.state=0);const r={type:Hs.ou.k.CHARACTER,chars:e.value,location:co(e)};oo(t,Gs(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function to(e,t){const r={type:Hs.ou.k.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:co(e)};oo(t,Gs(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function ro(e,t){t.stitches=!0;const r=function(e){return ys("children"in e?{...e,children:[]}:e)}(e);if("children"in e&&"children"in r){const a=Xs({type:"root",children:e.children},t.options);r.children=a.children}ao({type:"comment",value:{stitch:r}},t)}function ao(e,t){const r=e.value,a={type:Hs.ou.k.COMMENT,data:r,location:co(e)};oo(t,Gs(e)),t.parser.currentToken=a,t.parser._processToken(t.parser.currentToken)}function no(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,io(t,Gs(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(Ks,"<$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),72===t.parser.tokenizer.state||78===t.parser.tokenizer.state){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const e=t.parser.tokenizer._consume();t.parser.tokenizer._callState(e)}}function so(e,t){const r=e;if(!t.options.passThrough||!t.options.passThrough.includes(r.type)){let e="";throw Ys.has(r.type)&&(e=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+r.type+"` node"+e)}ro(r,t)}function oo(e,t){io(e,t);const r=e.parser.tokenizer.currentCharacterToken;r&&r.location&&(r.location.endLine=e.parser.tokenizer.preprocessor.line,r.location.endCol=e.parser.tokenizer.preprocessor.col+1,r.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=r,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=Hs.V_.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function io(e,t){if(t&&void 0!==t.offset){const r={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=1-t.column,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=r}}function co(e){const t=Gs(e)||{line:void 0,column:void 0,offset:void 0},r=zs(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:r.line,endCol:r.column,endOffset:r.offset}}function lo(e){return function(t,r){return Xs(t,{...e,file:r})}}const uo=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,po=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,fo={};function go(e,t){return((t||fo).jsx?po:uo).test(e)}const mo={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var ho=r(1581);const yo=ho.default||ho;function bo(e){return e&&"object"===typeof e?"position"in e||"type"in e?xo(e.position):"start"in e||"end"in e?xo(e):"line"in e||"column"in e?vo(e):"":""}function vo(e){return Ro(e&&e.line)+":"+Ro(e&&e.column)}function xo(e){return vo(e&&e.start)+"-"+vo(e&&e.end)}function Ro(e){return e&&"number"===typeof e?e:1}class wo extends Error{constructor(e,t,r){super(),"string"===typeof t&&(r=t,t=void 0);let a="",n={},s=!1;if(t&&(n="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?a=e:!n.cause&&e&&(s=!0,a=e.message,n.cause=e),!n.ruleId&&!n.source&&"string"===typeof r){const e=r.indexOf(":");-1===e?n.ruleId=r:(n.source=r.slice(0,e),n.ruleId=r.slice(e+1))}if(!n.place&&n.ancestors&&n.ancestors){const e=n.ancestors[n.ancestors.length-1];e&&(n.place=e.position)}const o=n.place&&"start"in n.place?n.place.start:n.place;this.ancestors=n.ancestors||void 0,this.cause=n.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file,this.message=a,this.line=o?o.line:void 0,this.name=bo(n.place)||"1:1",this.place=n.place||void 0,this.reason=this.message,this.ruleId=n.ruleId||void 0,this.source=n.source||void 0,this.stack=s&&n.cause&&"string"===typeof n.cause.stack?n.cause.stack:"",this.actual,this.expected,this.note,this.url}}wo.prototype.file="",wo.prototype.name="",wo.prototype.reason="",wo.prototype.message="",wo.prototype.stack="",wo.prototype.column=void 0,wo.prototype.line=void 0,wo.prototype.ancestors=void 0,wo.prototype.cause=void 0,wo.prototype.fatal=void 0,wo.prototype.place=void 0,wo.prototype.ruleId=void 0,wo.prototype.source=void 0;const Eo={}.hasOwnProperty,jo=new Map,So=/[A-Z]/g,To=/-([a-z])/g,Ao=new Set(["table","tbody","thead","tfoot","tr"]),ko=new Set(["td","th"]),Co="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Po(e,t){if(!t||void 0===t.Fragment)throw new TypeError("Expected `Fragment` in options");const r=t.filePath||void 0;let a;if(t.development){if("function"!==typeof t.jsxDEV)throw new TypeError("Expected `jsxDEV` in options when `development: true`");a=function(e,t){return r;function r(r,a,n,s){const o=Array.isArray(n.children),i=Gs(r);return t(a,n,s,o,{columnNumber:i?i.column-1:void 0,fileName:e,lineNumber:i?i.line:void 0},void 0)}}(r,t.jsxDEV)}else{if("function"!==typeof t.jsx)throw new TypeError("Expected `jsx` in production options");if("function"!==typeof t.jsxs)throw new TypeError("Expected `jsxs` in production options");a=function(e,t,r){return a;function a(e,a,n,s){const o=Array.isArray(n.children)?r:t;return s?o(a,n,s):o(a,n)}}(0,t.jsx,t.jsxs)}const n={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:a,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?Aa.JW:Aa.qy,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},s=_o(n,e,void 0);return s&&"string"!==typeof s?s:n.create(e,n.Fragment,{children:s||void 0},void 0)}function _o(e,t,r){return"element"===t.type?function(e,t,r){const a=e.schema;let n=a;"svg"===t.tagName.toLowerCase()&&"html"===a.space&&(n=Aa.JW,e.schema=n);e.ancestors.push(t);const s=Fo(e,t.tagName,!1),o=function(e,t){const r={};let a,n;for(n in t.properties)if("children"!==n&&Eo.call(t.properties,n)){const s=No(e,n,t.properties[n]);if(s){const[n,o]=s;e.tableCellAlignToStyle&&"align"===n&&"string"===typeof o&&ko.has(t.tagName)?a=o:r[n]=o}}if(a){(r.style||(r.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=a}return r}(e,t);let i=Oo(e,t);Ao.has(t.tagName)&&(i=i.filter((function(e){return"string"!==typeof e||!_n(e)})));return Do(e,o,s,t),Io(o,i),e.ancestors.pop(),e.schema=a,e.create(t,s,o,r)}(e,t,r):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Bo(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,r){const a=e.schema;let n=a;"svg"===t.name&&"html"===a.space&&(n=Aa.JW,e.schema=n);e.ancestors.push(t);const s=null===t.name?e.Fragment:Fo(e,t.name,!0),o=function(e,t){const r={};for(const a of t.attributes)if("mdxJsxExpressionAttribute"===a.type)if(a.data&&a.data.estree&&e.evaluater){const t=a.data.estree.body[0];t.type;const n=t.expression;n.type;const s=n.properties[0];s.type,Object.assign(r,e.evaluater.evaluateExpression(s.argument))}else Bo(e,t.position);else{const n=a.name;let s;if(a.value&&"object"===typeof a.value)if(a.value.data&&a.value.data.estree&&e.evaluater){const t=a.value.data.estree.body[0];t.type,s=e.evaluater.evaluateExpression(t.expression)}else Bo(e,t.position);else s=null===a.value||a.value;r[n]=s}return r}(e,t),i=Oo(e,t);return Do(e,o,s,t),Io(o,i),e.ancestors.pop(),e.schema=a,e.create(t,s,o,r)}(e,t,r):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Bo(e,t.position)}(e,t):"root"===t.type?function(e,t,r){const a={};return Io(a,Oo(e,t)),e.create(t,e.Fragment,a,r)}(e,t,r):"text"===t.type?function(e,t){return t.value}(0,t):void 0}function Do(e,t,r,a){"string"!==typeof r&&r!==e.Fragment&&e.passNode&&(t.node=a)}function Io(e,t){if(t.length>0){const r=t.length>1?t:t[0];r&&(e.children=r)}}function Oo(e,t){const r=[];let a=-1;const n=e.passKeys?new Map:jo;for(;++a13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||65535===(65535&r)||65534===(65535&r)||r>1114111?"\ufffd":String.fromCodePoint(r)}var Xo=r(7018);const $o=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Qo(e,t,r){if(t)return t;if(35===r.charCodeAt(0)){const e=r.charCodeAt(1),t=120===e||88===e;return Jo(r.slice(t?2:1),t?16:10)}return(0,Xo.s)(r)||e}var Zo=r(4618);const ei={}.hasOwnProperty;function ti(e,t,r){return"string"!==typeof t&&(r=t,t=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(te),autolinkProtocol:S,autolinkEmail:S,atxHeading:s($),blockQuote:s(V),characterEscape:S,characterReference:S,codeFenced:s(K),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:s(K,o),codeText:s(Y,o),codeTextData:S,data:S,codeFlowValue:S,definition:s(J),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:s(X),hardBreakEscape:s(Q),hardBreakTrailing:s(Q),htmlFlow:s(Z,o),htmlFlowData:S,htmlText:s(Z,o),htmlTextData:S,image:s(ee),label:o,link:s(te),listItem:s(ae),listItemValue:p,listOrdered:s(re,u),listUnordered:s(re),paragraph:s(ne),reference:L,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:s($),strong:s(se),thematicBreak:s(ie)},exit:{atxHeading:d(),atxHeadingSequence:R,autolink:d(),autolinkEmail:G,autolinkProtocol:z,blockQuote:d(),characterEscapeValue:T,characterReferenceMarkerHexadecimal:q,characterReferenceMarkerNumeric:q,characterReferenceValue:W,characterReference:H,codeFenced:d(h),codeFencedFence:m,codeFencedFenceInfo:f,codeFencedFenceMeta:g,codeFlowValue:T,codeIndented:d(y),codeText:d(_),codeTextData:T,data:T,definition:d(),definitionDestinationString:x,definitionLabelString:b,definitionTitleString:v,emphasis:d(),hardBreakEscape:d(k),hardBreakTrailing:d(k),htmlFlow:d(C),htmlFlowData:T,htmlText:d(P),htmlTextData:T,image:d(I),label:N,labelText:O,lineEnding:A,link:d(D),listItem:d(),listOrdered:d(),listUnordered:d(),paragraph:d(),referenceString:U,resourceDestinationString:F,resourceTitleString:B,resource:M,setextHeading:d(j),setextHeadingLineSequence:E,setextHeadingText:w,strong:d(),thematicBreak:d()}};ai(t,(e||{}).mdastExtensions||[]);const r={};return a;function a(e){let a={type:"root",children:[]};const s={stack:[a],tokenStack:[],config:t,enter:i,exit:c,buffer:o,resume:l,data:r},d=[];let u=-1;for(;++u0){const e=s.tokenStack[s.tokenStack.length-1];(e[1]||si).call(s,void 0,e[0])}for(a.position={start:ri(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:ri(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},u=-1;++u55295&&s<57344){const t=e.charCodeAt(r+1);s<56320&&t>56319&&t<57344?(o=String.fromCharCode(s,t),n=1):o="\ufffd"}else o=String.fromCharCode(s);o&&(t.push(e.slice(a,r),encodeURIComponent(o)),a=r+n+1,o=""),n&&(r+=n,n=0)}return t.join("")+e.slice(a)}function ci(e,t){const r=[{type:"text",value:"\u21a9"}];return t>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),r}function li(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function ui(e,t){const r=t.referenceType;let a="]";if("collapsed"===r?a+="[]":"full"===r&&(a+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+a}];const n=e.all(t),s=n[0];s&&"text"===s.type?s.value="["+s.value:n.unshift({type:"text",value:"["});const o=n[n.length-1];return o&&"text"===o.type?o.value+=a:n.push({type:"text",value:a}),n}function pi(e){const t=e.spread;return null===t||void 0===t?e.children.length>1:t}function fi(e){const t=String(e),r=/\r?\n|\r/g;let a=r.exec(t),n=0;const s=[];for(;a;)s.push(gi(t.slice(n,a.index),n>0,!0),a[0]),n=a.index+a[0].length,a=r.exec(t);return s.push(gi(t.slice(n),n>0,!1)),s.join("")}function gi(e,t,r){let a=0,n=e.length;if(t){let t=e.codePointAt(a);for(;9===t||32===t;)a++,t=e.codePointAt(a)}if(r){let t=e.codePointAt(n-1);for(;9===t||32===t;)n--,t=e.codePointAt(n-1)}return n>a?e.slice(a,n):""}const mi={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":"",a={};t.lang&&(a.className=["language-"+t.lang]);let n={type:"element",tagName:"code",properties:a,children:[{type:"text",value:r}]};return t.meta&&(n.data={meta:t.meta}),e.patch(t,n),n=e.applyData(t,n),n={type:"element",tagName:"pre",properties:{},children:[n]},e.patch(t,n),n},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-",a=String(t.identifier).toUpperCase(),n=di(a.toLowerCase()),s=e.footnoteOrder.indexOf(a);let o,i=e.footnoteCounts.get(a);void 0===i?(i=0,e.footnoteOrder.push(a),o=e.footnoteOrder.length):o=s+1,i+=1,e.footnoteCounts.set(a,i);const d={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+n,id:r+"fnref-"+n+(i>1?"-"+i:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,d);const c={type:"element",tagName:"sup",properties:{},children:[d]};return e.patch(t,c),e.applyData(t,c)},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(),a=e.definitionById.get(r);if(!a)return ui(e,t);const n={src:di(a.url||""),alt:t.alt};null!==a.title&&void 0!==a.title&&(n.title=a.title);const s={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,s),e.applyData(t,s)},image:function(e,t){const r={src:di(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 a={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,a),e.applyData(t,a)},inlineCode:function(e,t){const r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);const a={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,a),e.applyData(t,a)},linkReference:function(e,t){const r=String(t.identifier).toUpperCase(),a=e.definitionById.get(r);if(!a)return ui(e,t);const n={href:di(a.url||"")};null!==a.title&&void 0!==a.title&&(n.title=a.title);const s={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,s),e.applyData(t,s)},link:function(e,t){const r={href:di(t.url)};null!==t.title&&void 0!==t.title&&(r.title=t.title);const a={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)},listItem:function(e,t,r){const a=e.all(t),n=r?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;const r=e.children;let a=-1;for(;!t&&++a0&&r.children.unshift({type:"text",value:" "}),r.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),s.className=["task-list-item"]}let i=-1;for(;++i0){const a={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},s=Gs(t.children[1]),o=zs(t.children[t.children.length-1]);s&&o&&(a.position={start:s,end:o}),n.push(a)}const s={type:"element",tagName:"table",properties:{},children:e.wrap(n,!0)};return e.patch(t,s),e.applyData(t,s)},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 a=r?r.children:void 0,n=0===(a?a.indexOf(t):1)?"th":"td",s=r&&"table"===r.type?r.align:void 0,o=s?s.length:t.children.length;let i=-1;const d=[];for(;++i0&&r.push({type:"text",value:"\n"}),r}function Ei(e){let t=0,r=e.charCodeAt(t);for(;9===r||32===r;)t++,r=e.charCodeAt(t);return e.slice(t)}function ji(e,t){const r=function(e,t){const r=t||bi,a=new Map,n=new Map,s=new Map,o={...mi,...r.handlers},i={all:function(e){const t=[];if("children"in e){const r=e.children;let a=-1;for(;++a0&&u.push({type:"text",value:" "});let e="string"===typeof r?r:r(d,l);"string"===typeof e&&(e={type:"text",value:e}),u.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+c+(l>1?"-"+l:""),dataFootnoteBackref:"",ariaLabel:"string"===typeof a?a:a(d,l),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}const f=s[s.length-1];if(f&&"element"===f.type&&"p"===f.tagName){const e=f.children[f.children.length-1];e&&"text"===e.type?e.value+=" ":f.children.push({type:"text",value:" "}),f.children.push(...u)}else s.push(...u);const g={type:"element",tagName:"li",properties:{id:t+"fn-"+c},children:e.wrap(s,!0)};e.patch(n,g),i.push(g)}if(0!==i.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:{...ys(o),id:"footnote-label"},children:[{type:"text",value:n}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(i,!0)},{type:"text",value:"\n"}]}}(r),s=Array.isArray(a)?{type:"root",children:a}:a||{type:"root",children:[]};return n&&s.children.push({type:"text",value:"\n"},n),s}function Si(e,t){return e&&"run"in e?async function(r,a){const n=ji(r,{file:a,...t});await e.run(n,a)}:function(r,a){return ji(r,{file:a,...e||t})}}function Ti(e){if(e)throw e}var Ai=r(1761);function ki(e){if("object"!==typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Ci(){const e=[],t={run:function(){for(var t=arguments.length,r=new Array(t),a=0;a1?d-1:0),l=1;ln.length;let c;d&&n.push(s);try{c=e.apply(this,n)}catch(a){if(d&&r)throw a;return s(a)}d||(c&&c.then&&"function"===typeof c.then?c.then(o,s):c instanceof Error?s(c):o(c))}function s(e){if(!r){r=!0;for(var a=arguments.length,n=new Array(a>1?a-1:0),s=1;se.length){for(;s--;)if(47===e.codePointAt(s)){if(r){a=s+1;break}}else n<0&&(r=!0,n=s+1);return n<0?"":e.slice(a,n)}if(t===e)return"";let o=-1,i=t.length-1;for(;s--;)if(47===e.codePointAt(s)){if(r){a=s+1;break}}else o<0&&(r=!0,o=s+1),i>-1&&(e.codePointAt(s)===t.codePointAt(i--)?i<0&&(n=s):(i=-1,n=o));a===n?n=o:n<0&&(n=e.length);return e.slice(a,n)},dirname:function(e){if(_i(e),0===e.length)return".";let t,r=-1,a=e.length;for(;--a;)if(47===e.codePointAt(a)){if(t){r=a;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){_i(e);let t,r=e.length,a=-1,n=0,s=-1,o=0;for(;r--;){const i=e.codePointAt(r);if(47!==i)a<0&&(t=!0,a=r+1),46===i?s<0?s=r:1!==o&&(o=1):s>-1&&(o=-1);else if(t){n=r+1;break}}if(s<0||a<0||0===o||1===o&&s===a-1&&s===n+1)return"";return e.slice(s,a)},join:function(){let e,t=-1;for(var r=arguments.length,a=new Array(r),n=0;n2){if(a=n.lastIndexOf("/"),a!==n.length-1){a<0?(n="",s=0):(n=n.slice(0,a),s=n.length-1-n.lastIndexOf("/")),o=d,i=0;continue}}else if(n.length>0){n="",s=0,o=d,i=0;continue}t&&(n=n.length>0?n+"/..":"..",s=2)}else n.length>0?n+="/"+e.slice(o+1,d):n=e.slice(o+1,d),s=d-o-1;o=d,i=0}else 46===r&&i>-1?i++:i=-1}return n}(e,!t);0!==r.length||t||(r=".");r.length>0&&47===e.codePointAt(e.length-1)&&(r+="/");return t?"/"+r:r}(e)},sep:"/"};function _i(e){if("string"!==typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Di={cwd:function(){return"/"}};function Ii(e){return Boolean(null!==e&&"object"===typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}function Oi(e){if("string"===typeof e)e=new URL(e);else if(!Ii(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(;++r1?a-1:0),s=1;s0){let[a,...s]=r;const o=t[n][1];ki(o)&&ki(a)&&(a=Ai(!0,o,a)),t[n]=[e,a,...s]}}}}const Hi=(new Wi).freeze();function zi(e,t){if("function"!==typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function Gi(e,t){if("function"!==typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function Vi(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 Ki(e){if(!ki(e)||"string"!==typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function Yi(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Ji(e){return function(e){return Boolean(e&&"object"===typeof e&&"message"in e&&"messages"in e)}(e)?e:new Fi(e)}const Xi=[],$i={allowDangerousHtml:!0},Qi=/^(https?|ircs?|mailto|xmpp)$/i,Zi=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function ed(e){const t=e.allowedElements,r=e.allowElement,a=e.children||"",n=e.className,s=e.components,o=e.disallowedElements,i=e.rehypePlugins||Xi,d=e.remarkPlugins||Xi,c=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...$i}:$i,l=e.skipHtml,u=e.unwrapDisallowed,p=e.urlTransform||td,f=Hi().use(oi).use(d).use(Si,c).use(i),g=new Fi;"string"===typeof a&&(g.value=a);for(const y of Zi)Object.hasOwn(e,y.from)&&(y.from,y.to&&y.to,y.id);const m=f.parse(g);let h=f.runSync(m,g);return n&&(h={type:"element",tagName:"div",properties:{className:n},children:"root"===h.type?h.children:[h]}),pa(h,(function(e,a,n){if("raw"===e.type&&n&&"number"===typeof a)return l?n.children.splice(a,1):n.children[a]={type:"text",value:e.value},a;if("element"===e.type){let t;for(t in qo)if(Object.hasOwn(qo,t)&&Object.hasOwn(e.properties,t)){const r=e.properties[t],a=qo[t];(null===a||a.includes(e.tagName))&&(e.properties[t]=p(String(r||""),t,e))}}if("element"===e.type){let s=t?!t.includes(e.tagName):!!o&&o.includes(e.tagName);if(!s&&r&&"number"===typeof a&&(s=!r(e,a,n)),s&&n&&"number"===typeof a)return u&&e.children?n.children.splice(a,1,...e.children):n.children.splice(a,1),a}})),Po(h,{Fragment:Xt.Fragment,components:s,ignoreInvalidStyle:!0,jsx:Xt.jsx,jsxs:Xt.jsxs,passKeys:!0,passNode:!0})}function td(e){const t=e.indexOf(":"),r=e.indexOf("?"),a=e.indexOf("#"),n=e.indexOf("/");return t<0||n>-1&&t>n||r>-1&&t>r||a>-1&&t>a||Qi.test(e.slice(0,t))?e:""}function rd(e,t){const r=String(e);if("string"!==typeof t)throw new TypeError("Expected character");let a=0,n=r.indexOf(t);for(;-1!==n;)a++,n=r.indexOf(t,n+t.length);return a}function ad(e,t,r){const a=aa((r||{}).ignore||[]),n=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 a=-1;for(;++a0?{type:"text",value:s}:void 0),!1===s?a.lastIndex=r+1:(i!==r&&l.push({type:"text",value:e.value.slice(i,r)}),Array.isArray(s)?l.push(...s):s&&l.push(s),i=r+u[0].length,c=!0),!a.global)break;u=a.exec(e.value)}c?(i?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let r=t[0],a=r.indexOf(")");const n=rd(e,"(");let s=rd(e,")");for(;-1!==a&&n>s;)e+=r.slice(0,a+1),r=r.slice(a+1),a=r.indexOf(")"),s++;return[e,r]}(r+a);if(!o[0])return!1;const i={type:"link",title:null,url:s+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[i,{type:"text",value:o[1]}]:i}function hd(e,t,r,a){return!(!yd(a,!0)||/[-\d_]$/.test(r))&&{type:"link",title:null,url:"mailto:"+t+"@"+r,children:[{type:"text",value:t+"@"+r}]}}function yd(e,t){const r=e.input.charCodeAt(e.index-1);return(0===e.index||(0,ii.Ny)(r)||(0,ii.es)(r))&&(!t||47!==r)}function bd(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function vd(){this.buffer()}function xd(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.label=t,r.identifier=(0,Zo.B)(this.sliceSerialize(e)).toLowerCase()}function Rd(e){this.exit(e)}function wd(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Ed(){this.buffer()}function jd(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.label=t,r.identifier=(0,Zo.B)(this.sliceSerialize(e)).toLowerCase()}function Sd(e){this.exit(e)}function Td(e,t,r,a){const n=r.createTracker(a);let s=n.move("[^");const o=r.enter("footnoteReference"),i=r.enter("reference");return s+=n.move(r.safe(r.associationId(e),{...n.current(),before:s,after:"]"})),i(),o(),s+=n.move("]"),s}function Ad(e,t,r,a){const n=r.createTracker(a);let s=n.move("[^");const o=r.enter("footnoteDefinition"),i=r.enter("label");return s+=n.move(r.safe(r.associationId(e),{...n.current(),before:s,after:"]"})),i(),s+=n.move("]:"+(e.children&&e.children.length>0?" ":"")),n.shift(4),s+=n.move(r.indentLines(r.containerFlow(e,n.current()),kd)),o(),s}function kd(e,t,r){return 0===t?e:(r?"":" ")+e}Td.peek=function(){return"["};const Cd=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function Pd(e){this.enter({type:"delete",children:[]},e)}function _d(e){this.exit(e)}function Dd(e,t,r,a){const n=r.createTracker(a),s=r.enter("strikethrough");let o=n.move("~~");return o+=r.containerPhrasing(e,{...n.current(),before:o,after:"~"}),o+=n.move("~~"),s(),o}function Id(e){return e.length}function Od(e){return null===e||void 0===e?"":String(e)}function Nd(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 Fd(e,t,r){return">"+(r?"":" ")+e}function Bd(e,t,r){if("string"===typeof t&&(t=[t]),!t||0===t.length)return r;let a=-1;for(;++a",...d.current()})),c+=d.move(">")):(i=r.enter("destinationRaw"),c+=d.move(r.safe(e.url,{before:c,after:e.title?" ":")",...d.current()}))),i(),e.title&&(i=r.enter(`title${s}`),c+=d.move(" "+n),c+=d.move(r.safe(e.title,{before:c,after:n,...d.current()})),c+=d.move(n),i()),c+=d.move(")"),o(),c}function Kd(e,t,r,a){const n=e.referenceType,s=r.enter("imageReference");let o=r.enter("label");const i=r.createTracker(a);let d=i.move("![");const c=r.safe(e.alt,{before:d,after:"]",...i.current()});d+=i.move(c+"]["),o();const l=r.stack;r.stack=[],o=r.enter("reference");const u=r.safe(r.associationId(e),{before:d,after:"]",...i.current()});return o(),r.stack=l,s(),"full"!==n&&c&&c===u?"shortcut"===n?d=d.slice(0,-1):d+=i.move("]"):d+=i.move(u+"]"),d}function Yd(e,t,r){let a=e.value||"",n="`",s=-1;for(;new RegExp("(^|[^`])"+n+"([^`]|$)").test(a);)n+="`";for(/[^ \r\n]/.test(a)&&(/^[ \r\n]/.test(a)&&/[ \r\n]$/.test(a)||/^`|`$/.test(a))&&(a=" "+a+" ");++s\u007F]/.test(e.url))}function Xd(e,t,r,a){const n=Ud(r),s='"'===n?"Quote":"Apostrophe",o=r.createTracker(a);let i,d;if(Jd(e,r)){const t=r.stack;r.stack=[],i=r.enter("autolink");let a=o.move("<");return a+=o.move(r.containerPhrasing(e,{before:a,after:">",...o.current()})),a+=o.move(">"),i(),r.stack=t,a}i=r.enter("link"),d=r.enter("label");let c=o.move("[");return c+=o.move(r.containerPhrasing(e,{before:c,after:"](",...o.current()})),c+=o.move("]("),d(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(d=r.enter("destinationLiteral"),c+=o.move("<"),c+=o.move(r.safe(e.url,{before:c,after:">",...o.current()})),c+=o.move(">")):(d=r.enter("destinationRaw"),c+=o.move(r.safe(e.url,{before:c,after:e.title?" ":")",...o.current()}))),d(),e.title&&(d=r.enter(`title${s}`),c+=o.move(" "+n),c+=o.move(r.safe(e.title,{before:c,after:n,...o.current()})),c+=o.move(n),d()),c+=o.move(")"),i(),c}function $d(e,t,r,a){const n=e.referenceType,s=r.enter("linkReference");let o=r.enter("label");const i=r.createTracker(a);let d=i.move("[");const c=r.containerPhrasing(e,{before:d,after:"]",...i.current()});d+=i.move(c+"]["),o();const l=r.stack;r.stack=[],o=r.enter("reference");const u=r.safe(r.associationId(e),{before:d,after:"]",...i.current()});return o(),r.stack=l,s(),"full"!==n&&c&&c===u?"shortcut"===n?d=d.slice(0,-1):d+=i.move("]"):d+=i.move(u+"]"),d}function Qd(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 Zd(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}zd.peek=function(e,t,r){return r.options.emphasis||"*"},Gd.peek=function(){return"<"},Vd.peek=function(){return"!"},Kd.peek=function(){return"!"},Yd.peek=function(){return"`"},Xd.peek=function(e,t,r){return Jd(e,r)?"<":"["},$d.peek=function(){return"["};const ec=aa(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function tc(e,t,r,a){const n=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),s=r.enter("strong"),o=r.createTracker(a),i=o.move(n+n);let d=o.move(r.containerPhrasing(e,{after:n,before:i,...o.current()}));const c=d.charCodeAt(0),l=Hd(a.before.charCodeAt(a.before.length-1),c,n);l.inside&&(d=qd(c)+d.slice(1));const u=d.charCodeAt(d.length-1),p=Hd(a.after.charCodeAt(0),u,n);p.inside&&(d=d.slice(0,-1)+qd(u));const f=o.move(n+n);return s(),r.attentionEncodeSurroundingInfo={after:p.outside,before:l.outside},i+d+f}tc.peek=function(e,t,r){return r.options.strong||"*"};const rc={blockquote:function(e,t,r,a){const n=r.enter("blockquote"),s=r.createTracker(a);s.move("> "),s.shift(2);const o=r.indentLines(r.containerFlow(e,s.current()),Fd);return n(),o},break:Md,code:function(e,t,r,a){const n=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),s=e.value||"",o="`"===n?"GraveAccent":"Tilde";if(function(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))}(e,r)){const e=r.enter("codeIndented"),t=r.indentLines(s,Ld);return e(),t}const i=r.createTracker(a),d=n.repeat(Math.max(function(e,t){const r=String(e);let a=r.indexOf(t),n=a,s=0,o=0;if("string"!==typeof t)throw new TypeError("Expected substring");for(;-1!==a;)a===n?++s>o&&(o=s):s=1,n=a+t.length,a=r.indexOf(t,n);return o}(s,n)+1,3)),c=r.enter("codeFenced");let l=i.move(d);if(e.lang){const t=r.enter(`codeFencedLang${o}`);l+=i.move(r.safe(e.lang,{before:l,after:" ",encode:["`"],...i.current()})),t()}if(e.lang&&e.meta){const t=r.enter(`codeFencedMeta${o}`);l+=i.move(" "),l+=i.move(r.safe(e.meta,{before:l,after:"\n",encode:["`"],...i.current()})),t()}return l+=i.move("\n"),s&&(l+=i.move(s+"\n")),l+=i.move(d),c(),l},definition:function(e,t,r,a){const n=Ud(r),s='"'===n?"Quote":"Apostrophe",o=r.enter("definition");let i=r.enter("label");const d=r.createTracker(a);let c=d.move("[");return c+=d.move(r.safe(r.associationId(e),{before:c,after:"]",...d.current()})),c+=d.move("]: "),i(),!e.url||/[\0- \u007F]/.test(e.url)?(i=r.enter("destinationLiteral"),c+=d.move("<"),c+=d.move(r.safe(e.url,{before:c,after:">",...d.current()})),c+=d.move(">")):(i=r.enter("destinationRaw"),c+=d.move(r.safe(e.url,{before:c,after:e.title?" ":"\n",...d.current()}))),i(),e.title&&(i=r.enter(`title${s}`),c+=d.move(" "+n),c+=d.move(r.safe(e.title,{before:c,after:n,...d.current()})),c+=d.move(n),i()),o(),c},emphasis:zd,hardBreak:Md,heading:function(e,t,r,a){const n=Math.max(Math.min(6,e.depth||1),1),s=r.createTracker(a);if(function(e,t){let r=!1;return pa(e,(function(e){if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return r=!0,ca})),Boolean((!e.depth||e.depth<3)&&Ho(e)&&(t.options.setext||r))}(e,r)){const t=r.enter("headingSetext"),a=r.enter("phrasing"),o=r.containerPhrasing(e,{...s.current(),before:"\n",after:"\n"});return a(),t(),o+"\n"+(1===n?"=":"-").repeat(o.length-(Math.max(o.lastIndexOf("\r"),o.lastIndexOf("\n"))+1))}const o="#".repeat(n),i=r.enter("headingAtx"),d=r.enter("phrasing");s.move(o+" ");let c=r.containerPhrasing(e,{before:"# ",after:"\n",...s.current()});return/^[\t ]/.test(c)&&(c=qd(c.charCodeAt(0))+c.slice(1)),c=c?o+" "+c:o,r.options.closeAtx&&(c+=" "+o),d(),i(),c},html:Gd,image:Vd,imageReference:Kd,inlineCode:Yd,link:Xd,linkReference:$d,list:function(e,t,r,a){const n=r.enter("list"),s=r.bulletCurrent;let o=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):Qd(r);const i=e.ordered?"."===o?")":".":function(e){const t=Qd(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 d=!(!t||!r.bulletLastUsed)&&o===r.bulletLastUsed;if(!e.ordered){const t=e.children?e.children[0]:void 0;if("*"!==o&&"-"!==o||!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]||(d=!0),Zd(r)===o&&t){let t=-1;for(;++t-1?t.start:1)+(!1===r.options.incrementListMarker?0:t.children.indexOf(e))+s);let o=s.length+1;("tab"===n||"mixed"===n&&(t&&"list"===t.type&&t.spread||e.spread))&&(o=4*Math.ceil(o/4));const i=r.createTracker(a);i.move(s+" ".repeat(o-s.length)),i.shift(o);const d=r.enter("listItem"),c=r.indentLines(r.containerFlow(e,i.current()),(function(e,t,r){if(t)return(r?"":" ".repeat(o))+e;return(r?s:s+" ".repeat(o-s.length))+e}));return d(),c},paragraph:function(e,t,r,a){const n=r.enter("paragraph"),s=r.enter("phrasing"),o=r.containerPhrasing(e,a);return s(),n(),o},root:function(e,t,r,a){return(e.children.some((function(e){return ec(e)}))?r.containerPhrasing:r.containerFlow).call(r,e,a)},strong:tc,text:function(e,t,r,a){return r.safe(e.value,a)},thematicBreak:function(e,t,r){const a=(Zd(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?a.slice(0,-1):a}};function ac(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 nc(e){this.exit(e),this.data.inTable=void 0}function sc(e){this.enter({type:"tableRow",children:[]},e)}function oc(e){this.exit(e)}function ic(e){this.enter({type:"tableCell",children:[]},e)}function dc(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,cc));const r=this.stack[this.stack.length-1];r.type,r.value=t,this.exit(e)}function cc(e,t){return"|"===t?t:e}function lc(e){const t=e||{},r=t.tableCellPadding,a=t.tablePipeAlign,n=t.stringLength,s=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 a=rc.inlineCode(e,t,r);r.stack.includes("tableCell")&&(a=a.replace(/\|/g,"\\$&"));return a},table:function(e,t,r,a){return i(function(e,t,r){const a=e.children;let n=-1;const s=[],o=t.enter("table");for(;++nc&&(c=e[l].length);++sd[s])&&(d[s]=e)}t.push(o)}o[l]=t,i[l]=a}let u=-1;if("object"===typeof a&&"length"in a)for(;++ud[u]&&(d[u]=n),f[u]=n),p[u]=o}o.splice(1,0,p),i.splice(1,0,f),l=-1;const g=[];for(;++l0&&!r&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}Ec[43]=wc,Ec[45]=wc,Ec[46]=wc,Ec[95]=wc,Ec[72]=[wc,Rc],Ec[104]=[wc,Rc],Ec[87]=[wc,xc],Ec[119]=[wc,xc];var Pc=r(1231),_c=r(7245);const Dc={tokenize:function(e,t,r){const a=this;return(0,_c.N)(e,(function(e){const n=a.events[a.events.length-1];return n&&"gfmFootnoteDefinitionIndent"===n[1].type&&4===n[2].sliceSerialize(n[1],!0).length?t(e):r(e)}),"gfmFootnoteDefinitionIndent",5)},partial:!0};function Ic(e,t,r){const a=this;let n=a.events.length;const s=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let o;for(;n--;){const e=a.events[n][1];if("labelImage"===e.type){o=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(n){if(!o||!o._balanced)return r(n);const i=(0,Zo.B)(a.sliceSerialize({start:o.end,end:a.now()}));if(94!==i.codePointAt(0)||!s.includes(i.slice(1)))return r(n);return e.enter("gfmFootnoteCallLabelMarker"),e.consume(n),e.exit("gfmFootnoteCallLabelMarker"),t(n)}}function Oc(e,t){let r,a=e.length;for(;a--;)if("labelImage"===e[a][1].type&&"enter"===e[a][0]){r=e[a][1];break}e[a+1][1].type="data",e[a+3][1].type="gfmFootnoteCallLabelMarker";const n={type:"gfmFootnoteCall",start:Object.assign({},e[a+3][1].start),end:Object.assign({},e[e.length-1][1].end)},s={type:"gfmFootnoteCallMarker",start:Object.assign({},e[a+3][1].end),end:Object.assign({},e[a+3][1].end)};s.end.column++,s.end.offset++,s.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},s.end),end:Object.assign({},e[e.length-1][1].start)},i={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},d=[e[a+1],e[a+2],["enter",n,t],e[a+3],e[a+4],["enter",s,t],["exit",s,t],["enter",o,t],["enter",i,t],["exit",i,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",n,t]];return e.splice(a,e.length-a+1,...d),e}function Nc(e,t,r){const a=this,n=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let s,o=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),i};function i(t){return 94!==t?r(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",d)}function d(i){if(o>999||93===i&&!s||null===i||91===i||(0,ii.Ee)(i))return r(i);if(93===i){e.exit("chunkString");const s=e.exit("gfmFootnoteCallString");return n.includes((0,Zo.B)(a.sliceSerialize(s)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(i),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):r(i)}return(0,ii.Ee)(i)||(s=!0),o++,e.consume(i),92===i?c:d}function c(t){return 91===t||92===t||93===t?(e.consume(t),o++,d):d(t)}}function Fc(e,t,r){const a=this,n=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let s,o,i=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),d};function d(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):r(t)}function c(t){if(i>999||93===t&&!o||null===t||91===t||(0,ii.Ee)(t))return r(t);if(93===t){e.exit("chunkString");const r=e.exit("gfmFootnoteDefinitionLabelString");return s=(0,Zo.B)(a.sliceSerialize(r)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),u}return(0,ii.Ee)(t)||(o=!0),i++,e.consume(t),92===t?l:c}function l(t){return 91===t||92===t||93===t?(e.consume(t),i++,c):c(t)}function u(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),n.includes(s)||n.push(s),(0,_c.N)(e,p,"gfmFootnoteDefinitionWhitespace")):r(t)}function p(e){return t(e)}}function Bc(e,t,r){return e.check(Pc.B,t,e.attempt(Dc,t,r))}function Mc(e){e.exit("gfmFootnoteDefinition")}var Lc=r(2373),Uc=r(9723);function qc(e){let t=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:function(e,r,a){const n=this.previous,s=this.events;let o=0;return function(t){if(126===n&&"characterEscape"!==s[s.length-1][1].type)return a(t);return e.enter("strikethroughSequenceTemporary"),i(t)};function i(s){const d=(0,Wd.S)(n);if(126===s)return o>1?a(s):(e.consume(s),o++,i);if(o<2&&!t)return a(s);const c=e.exit("strikethroughSequenceTemporary"),l=(0,Wd.S)(s);return c._open=!l||2===l&&Boolean(d),c._close=!d||2===d&&Boolean(l),r(s)}},resolveAll:function(e,t){let r=-1;for(;++r0;)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 a=r.pop();for(;a;)e.push(...a),a=r.pop();this.map.length=0}}function Hc(e,t){let r=!1;const a=[];for(;t-1;){const e=a.events[t][1].type;if("lineEnding"!==e&&"linePrefix"!==e)break;t--}const n=t>-1?a.events[t][1].type:null,s="tableHead"===n||"tableRow"===n?x:i;if(s===x&&a.parser.lazy[a.now().line])return r(e);return s(e)};function i(t){return e.enter("tableHead"),e.enter("tableRow"),function(e){if(124===e)return d(e);return n=!0,o+=1,d(e)}(t)}function d(t){return null===t?r(t):(0,ii.HP)(t)?o>1?(o=0,a.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),u):r(t):(0,ii.On)(t)?(0,_c.N)(e,d,"whitespace")(t):(o+=1,n&&(n=!1,s+=1),124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),n=!0,d):(e.enter("data"),c(t)))}function c(t){return null===t||124===t||(0,ii.Ee)(t)?(e.exit("data"),d(t)):(e.consume(t),92===t?l:c)}function l(t){return 92===t||124===t?(e.consume(t),c):c(t)}function u(t){return a.interrupt=!1,a.parser.lazy[a.now().line]?r(t):(e.enter("tableDelimiterRow"),n=!1,(0,ii.On)(t)?(0,_c.N)(e,p,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):p(t))}function p(t){return 45===t||58===t?g(t):124===t?(n=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),f):v(t)}function f(t){return(0,ii.On)(t)?(0,_c.N)(e,g,"whitespace")(t):g(t)}function g(t){return 58===t?(o+=1,n=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),m):45===t?(o+=1,m(t)):null===t||(0,ii.HP)(t)?b(t):v(t)}function m(t){return 45===t?(e.enter("tableDelimiterFiller"),h(t)):v(t)}function h(t){return 45===t?(e.consume(t),h):58===t?(n=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),y):(e.exit("tableDelimiterFiller"),y(t))}function y(t){return(0,ii.On)(t)?(0,_c.N)(e,b,"whitespace")(t):b(t)}function b(r){return 124===r?p(r):(null===r||(0,ii.HP)(r))&&n&&s===o?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(r)):v(r)}function v(e){return r(e)}function x(t){return e.enter("tableRow"),R(t)}function R(r){return 124===r?(e.enter("tableCellDivider"),e.consume(r),e.exit("tableCellDivider"),R):null===r||(0,ii.HP)(r)?(e.exit("tableRow"),t(r)):(0,ii.On)(r)?(0,_c.N)(e,R,"whitespace")(r):(e.enter("data"),w(r))}function w(t){return null===t||124===t||(0,ii.Ee)(t)?(e.exit("data"),R(t)):(e.consume(t),92===t?E:w)}function E(t){return 92===t||124===t?(e.consume(t),w):w(t)}}function Gc(e,t){let r,a,n,s=-1,o=!0,i=0,d=[0,0,0,0],c=[0,0,0,0],l=!1,u=0;const p=new Wc;for(;++sr[2]+1){const t=r[2]+1,a=r[3]-r[2]-1;e.add(t,a,[])}}e.add(r[3]+1,0,[["exit",o,t]])}return void 0!==n&&(s.end=Object.assign({},Yc(t.events,n)),e.add(n,0,[["exit",s,t]]),s=void 0),s}function Kc(e,t,r,a,n){const s=[],o=Yc(t.events,r);n&&(n.end=Object.assign({},o),s.push(["exit",n,t])),a.end=Object.assign({},o),s.push(["exit",a,t]),e.add(r+1,0,s)}function Yc(e,t){const r=e[t],a="enter"===r[0]?"start":"end";return r[1][a]}const Jc={name:"tasklistCheck",tokenize:function(e,t,r){const a=this;return function(t){if(null!==a.previous||!a._gfmTasklistFirstContentOfListItem)return r(t);return e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),n};function n(t){return(0,ii.Ee)(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),s):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),s):r(t)}function s(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):r(t)}function o(a){return(0,ii.HP)(a)?t(a):(0,ii.On)(a)?e.check({tokenize:Xc},t,r)(a):r(a)}}};function Xc(e,t,r){return(0,_c.N)(e,(function(e){return null===e?r(e):t(e)}),"whitespace")}const $c={};function Qc(e){const t=e||$c,r=this.data(),a=r.micromarkExtensions||(r.micromarkExtensions=[]),n=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),s=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);a.push(function(e){return(0,gc.y)([{text:Ec},{document:{91:{name:"gfmFootnoteDefinition",tokenize:Fc,continuation:{tokenize:Bc},exit:Mc}},text:{91:{name:"gfmFootnoteCall",tokenize:Nc},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Ic,resolveTo:Oc}}},qc(e),{flow:{null:{name:"table",tokenize:zc,resolveAll:Gc}}},{text:{91:Jc}}])}(t)),n.push([{transforms:[gd],enter:{literalAutolink:dd,literalAutolinkEmail:cd,literalAutolinkHttp:cd,literalAutolinkWww:cd},exit:{literalAutolink:fd,literalAutolinkEmail:pd,literalAutolinkHttp:ld,literalAutolinkWww:ud}},{enter:{gfmFootnoteDefinition:bd,gfmFootnoteDefinitionLabelString:vd,gfmFootnoteCall:wd,gfmFootnoteCallString:Ed},exit:{gfmFootnoteDefinition:Rd,gfmFootnoteDefinitionLabelString:xd,gfmFootnoteCall:Sd,gfmFootnoteCallString:jd}},{canContainEols:["delete"],enter:{strikethrough:Pd},exit:{strikethrough:_d}},{enter:{table:ac,tableData:ic,tableHeader:ic,tableRow:sc},exit:{codeText:dc,table:nc,tableData:oc,tableHeader:oc,tableRow:oc}},{exit:{taskListCheckValueChecked:uc,taskListCheckValueUnchecked:uc,paragraph:pc}}]),s.push(function(e){return{extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:od,notInConstruct:id},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:od,notInConstruct:id},{character:":",before:"[ps]",after:"\\/",inConstruct:od,notInConstruct:id}]},{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:Ad,footnoteReference:Td}},{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Cd}],handlers:{delete:Dd}},lc(e),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:fc}}]}}(t))}const Zc=/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)\]/i,el=/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)(\/.*)?\]/i,tl=function(){let{legacyTitle:e=!1,tagName:t="div"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r=>{pa(r,"blockquote",((r,a,n)=>{let s="",o="",i=!0,d=r.children.map((t=>{if(i&&"paragraph"===t.type){const r=t.children[0],a="text"===r.type?r.value:"",n=e?el:Zc,d=a.match(n);if(d&&(i=!1,s=d[1].toLocaleLowerCase(),o=e&&d[2]||s.toLocaleUpperCase(),a.includes("\n")&&(t.children[0]={type:"text",value:a.replace(n,"").replace(/^\n+/,"")}),!a.includes("\n"))){const e=[];t.children.forEach(((t,r)=>{0!=r&&(1==r&&"break"===t.type||e.push(t))})),t.children=[...e]}}return t}));s&&(r.data={hName:t,hProperties:{class:`markdown-alert markdown-alert-${s}`,dir:"auto"}},d.unshift({type:"paragraph",children:[rl(s),{type:"text",value:o.replace(/^\//,"")}],data:{hProperties:{class:"markdown-alert-title",dir:"auto"}}})),r.children=[...d]}))}};function rl(e){return{type:"emphasis",data:{hName:"svg",hProperties:{class:"octicon",viewBox:"0 0 16 16",width:"16",height:"16",ariaHidden:"true"}},children:[{type:"emphasis",data:{hName:"path",hProperties:{d:al[e]??""}},children:[]}]}}const al={note:"M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z",tip:"M8 1.5c-2.363 0-4 1.69-4 3.75 0 .984.424 1.625.984 2.304l.214.253c.223.264.47.556.673.848.284.411.537.896.621 1.49a.75.75 0 0 1-1.484.211c-.04-.282-.163-.547-.37-.847a8.456 8.456 0 0 0-.542-.68c-.084-.1-.173-.205-.268-.32C3.201 7.75 2.5 6.766 2.5 5.25 2.5 2.31 4.863 0 8 0s5.5 2.31 5.5 5.25c0 1.516-.701 2.5-1.328 3.259-.095.115-.184.22-.268.319-.207.245-.383.453-.541.681-.208.3-.33.565-.37.847a.751.751 0 0 1-1.485-.212c.084-.593.337-1.078.621-1.489.203-.292.45-.584.673-.848.075-.088.147-.173.213-.253.561-.679.985-1.32.985-2.304 0-2.06-1.637-3.75-4-3.75ZM5.75 12h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5ZM6 15.25a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 0 1.5h-2.5a.75.75 0 0 1-.75-.75Z",important:"M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v9.5A1.75 1.75 0 0 1 14.25 13H8.06l-2.573 2.573A1.458 1.458 0 0 1 3 14.543V13H1.75A1.75 1.75 0 0 1 0 11.25Zm1.75-.25a.25.25 0 0 0-.25.25v9.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h6.5a.25.25 0 0 0 .25-.25v-9.5a.25.25 0 0 0-.25-.25Zm7 2.25v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 9a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",warning:"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",caution:"M4.47.22A.749.749 0 0 1 5 0h6c.199 0 .389.079.53.22l4.25 4.25c.141.14.22.331.22.53v6a.749.749 0 0 1-.22.53l-4.25 4.25A.749.749 0 0 1 11 16H5a.749.749 0 0 1-.53-.22L.22 11.53A.749.749 0 0 1 0 11V5c0-.199.079-.389.22-.53Zm.84 1.28L1.5 5.31v5.38l3.81 3.81h5.38l3.81-3.81V5.31L10.69 1.5ZM8 4a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 8 4Zm0 8a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"};function nl(e){if(!e)return null;var t=e;return t.dataset.code&&t.classList.contains("copied")?t:t.parentElement?nl(t.parentElement):null}function sl(e){var t=e=>{var t=nl(e.target);t&&(t.classList.add("active"),Wr()(t.dataset.code,(function(){setTimeout((()=>{t.classList.remove("active")}),2e3)})))};(0,i.useEffect)((()=>{var r,a;return null==(r=e.current)||r.removeEventListener("click",t,!1),null==(a=e.current)||a.addEventListener("click",t,!1),()=>{var r;null==(r=e.current)||r.removeEventListener("click",t,!1)}}),[e])}var ol=["prefixCls","className","source","style","disableCopy","skipHtml","onScroll","onMouseOver","pluginsFilter","rehypeRewrite","wrapperElement","warpperElement","urlTransform"],il=e=>e;const dl=i.forwardRef(((e,t)=>{var{prefixCls:r="wmde-markdown wmde-markdown-color",className:a,source:o,style:d,disableCopy:c=!1,skipHtml:l=!0,onScroll:u,onMouseOver:p,pluginsFilter:f,wrapperElement:g={},warpperElement:m={},urlTransform:h}=e,y=(0,s.A)(e,ol),b=i.useRef(null);(0,i.useImperativeHandle)(t,(()=>(0,n.A)({},e,{mdp:b})),[b,e]);var v=(r||"")+" "+(a||"");sl(b);var x=[...y.rehypePlugins||[]],R={allowElement:(e,t,r)=>y.allowElement?y.allowElement(e,t,r):/^[A-Za-z0-9]+$/.test(e.tagName)};l&&x.push(lo);var w=[tl,...y.remarkPlugins||[],Qc],E=(0,n.A)({},m,g);return(0,Xt.jsx)("div",(0,n.A)({ref:b,onScroll:u,onMouseOver:p},E,{className:v,style:d,children:(0,Xt.jsx)(ed,(0,n.A)({},R,y,{skipHtml:l,urlTransform:h||il,rehypePlugins:f?f("rehype",x):x,remarkPlugins:f?f("remark",w):w,children:o||""}))}))}));var cl=function(e){return void 0===e&&(e={}),e=>{pa(e,(e=>{"element"===e.type&&"code"===e.tagName&&e.data&&e.data.meta&&(e.properties=(0,n.A)({},e.properties,{"data-meta":String(e.data.meta)}))}))}},ll=function(e){return void 0===e&&(e={}),e=>{pa(e,(e=>{if("element"===e.type&&"code"===e.tagName&&e.properties&&e.properties.dataMeta){e.data||(e.data={});var t=e.properties.dataMeta;"string"===typeof t&&(e.data.meta=t),delete e.properties.dataMeta}}))}};const ul=/[\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,pl=Object.hasOwnProperty;function fl(e){const t="element"===e.type?e.tagName.toLowerCase():"",r=2===t.length&&104===t.charCodeAt(0)?t.charCodeAt(1):0;return r>48&&r<55?r-48:void 0}const gl={},ml=new class{constructor(){this.occurrences,this.reset()}slug(e,t){const r=this;let a=function(e,t){if("string"!==typeof e)return"";t||(e=e.toLowerCase());return e.replace(ul,"").replace(/ /g,"-")}(e,!0===t);const n=a;for(;pl.call(r.occurrences,a);)r.occurrences[n]++,a=n+"-"+r.occurrences[n];return r.occurrences[a]=0,a}reset(){this.occurrences=Object.create(null)}};const hl=function(e){if(null===e||void 0===e)return bl;if("string"===typeof e)return function(e){return yl(t);function t(t){return t.tagName===e}}(e);if("object"===typeof e)return function(e){const t=[];let r=-1;for(;++r0&&void 0!==arguments[0]?arguments[0]:{};const{openDelimiter:t="rehype:ignore:start",closeDelimiter:r="rehype:ignore:end"}=e;return e=>{pa(e,((e,a,n)=>{if("element"===e.type||"root"===e.type){let a=!1;e.children=e.children.filter((e=>{if("raw"===e.type||"comment"===e.type){let n=(e.value||"").trim();if(n=n.replace(/^/,"$1"),n===t)return a=!0,!1;if(n===r)return a=!1,!1}return!a}))}}))}};var kl={type:"element",tagName:"svg",properties:{className:"octicon octicon-link",viewBox:"0 0 16 16",version:"1.1",width:"16",height:"16",ariaHidden:"true"},children:[{type:"element",tagName:"path",children:[],properties:{fillRule:"evenodd",d:"M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"}}]};var Cl=[function(e){const t=(e||gl).prefix||"";return function(e){ml.reset(),pa(e,"element",(function(e){fl(e)&&!e.properties.id&&(e.properties.id=t+ml.slug(fa(e)))}))}},function(e){const t=e||Rl;let r=t.properties;const a=t.headingProperties,n=t.behavior||"prepend",s=t.content,o=t.group,i=hl(t.test);let d;return"after"===n||"before"===n?d=function(e,t,a){if("number"!==typeof t||!a)return;const i=jl(s||xl,e),d=El(e,Tl(r,e),i);let c="before"===n?[d,e]:[e,d];if(o){const t=Sl(o,e);t&&!Array.isArray(t)&&"element"===t.type&&(t.children=c,c=[t])}return a.children.splice(t,1,...c),[la,t+c.length]}:"wrap"===n?d=function(e){let t=e.children,a=[];"function"===typeof s?(t=[],a=s(e)):s&&(a=wl(s));return e.children=[El(e,Tl(r,e),Array.isArray(a)?[...t,...a]:[...t,a])],[la]}:(d=function(e){const t=jl(s||xl,e);return e.children["prepend"===n?"unshift":"push"](El(e,Tl(r,e),t)),[la]},r||(r={ariaHidden:"true",tabIndex:-1})),function(e){pa(e,"element",(function(e,t,r){if(fl(e)&&e.properties.id&&i(e,t,r))return Object.assign(e.properties,Tl(a,e)),d(e,t,r)}))}},Al];const Pl=i.forwardRef(((e,t)=>{var r,a,s,o=[cl,lo,ll,...Cl,[ns,{rewrite:(a=null!=(r=e.disableCopy)&&r,s=e.rehypeRewrite,(e,t,r)=>{if("element"===e.type&&r&&"root"===r.type&&/h(1|2|3|4|5|6)/.test(e.tagName)){var o=e.children&&e.children[0];o&&o.properties&&"true"===o.properties.ariaHidden&&(o.properties=(0,n.A)({class:"anchor"},o.properties),o.children=[kl])}if("element"===e.type&&"pre"===e.tagName&&!a){var i=as(e.children);e.children.push((void 0===(d=i)&&(d=""),{type:"element",tagName:"div",properties:{class:"copied","data-code":d},children:[{type:"element",tagName:"svg",properties:{className:"octicon-copy",ariaHidden:"true",viewBox:"0 0 16 16",fill:"currentColor",height:12,width:12},children:[{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 010 1.5h-1.5a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-1.5a.75.75 0 011.5 0v1.5A1.75 1.75 0 019.25 16h-7.5A1.75 1.75 0 010 14.25v-7.5z"},children:[]},{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0114.25 11h-7.5A1.75 1.75 0 015 9.25v-7.5zm1.75-.25a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-7.5a.25.25 0 00-.25-.25h-7.5z"},children:[]}]},{type:"element",tagName:"svg",properties:{className:"octicon-check",ariaHidden:"true",viewBox:"0 0 16 16",fill:"currentColor",height:12,width:12},children:[{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"},children:[]}]}]}))}var d;s&&s(e,null===t?void 0:t,null===r?void 0:r)})}],[ds,{properties:"attr"}],...e.rehypePlugins||[],[Ta,{ignoreMissing:!0}]];return(0,Xt.jsx)(dl,(0,n.A)({},e,{rehypePlugins:o,ref:t}))}));var _l,Dl=["components","data","node"],Il=["source","components","data","rehypeRewrite"],Ol=Zr.Preview,Nl=Zr.Code,Fl=Zr.Toolbar,Bl=Jt(Pl)(_l||(_l=o(["\n margin: 0 auto;\n box-shadow:\n rgb(8 15 41 / 8%) 0.5rem 0.5rem 2rem 0px,\n rgb(8 15 41 / 8%) 0px 0px 1px 0px;\n border: 1px solid var(--color-border-default, #30363d);\n text-align: left;\n max-width: 56rem;\n overflow: auto;\n padding: 2rem;\n border-radius: 0.55rem;\n"]))),Ml=e=>{var{components:t,data:r,node:a}=e,o=(0,s.A)(e,Dl);if(a&&"element"===a.type&&"pre"===a.tagName){var i,d,c,l=a.children[0];if(!l)return(0,Xt.jsx)("pre",(0,n.A)({},o));var u=(null==(i=l.data)?void 0:i.meta)||(null==(d=l.properties)?void 0:d.dataMeta);if(!ra(u))return(0,Xt.jsx)("pre",(0,n.A)({},o));var p=null==a||null==(c=a.position)?void 0:c.start.line,f=ta(u)||String(p),g=t[""+f];if(f&&"function"===typeof g){var m=r[f].value||"",{title:h,boreder:y=1,checkered:b=1,code:v=1,toolbar:x=1}=ea(u||"");return(0,Xt.jsxs)(Zr,{bordered:!!Number(y),disableCheckered:!Number(b),style:{marginBottom:16},children:[(0,Xt.jsx)(Ol,{children:(0,Xt.jsx)(g,{})}),!!Number(x)&&(0,Xt.jsx)(Fl,{text:m,visibleButton:!!Number(v),children:h||"Code Example"}),!!Number(v)&&(0,Xt.jsx)(Nl,{tagName:"pre",style:{marginBottom:0},className:o.className,children:o.children})]})}}return(0,Xt.jsx)("code",(0,n.A)({},o))};function Ll(e){var{components:t,data:r}=e,a=(0,s.A)(e,Il);return(0,Xt.jsx)(Bl,(0,n.A)({disableCopy:!0,rehypePlugins:[Al,...a.rehypePlugins||[]]},a,{source:r.source,components:(0,n.A)({},t,{pre:e=>(0,Xt.jsx)(Ml,(0,n.A)({},e,{components:r.components,data:r.data}))})}))}var Ul,ql,Wl,Hl,zl,Gl=["version","title","description","source","logo","components","data","markdownProps","exampleProps","className","children","disableCorners","disableDarkMode","disableHeader","disableBackToUp"],Vl=Jt.div(Ul||(Ul=o(["\n max-width: 56rem;\n margin: 0 auto;\n padding: 2.3rem 3rem;\n display: flex;\n justify-content: center;\n"]))),Kl=Jt.div(ql||(ql=o(["\n padding-bottom: 12rem;\n"]))),Yl=Jt.header(Wl||(Wl=o(["\n padding: 9rem 0 2rem 0;\n text-align: center;\n h1 {\n font-weight: 900;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif,\n 'Apple Color Emoji', 'Segoe UI Emoji';\n }\n"]))),Jl=Jt.sup(Hl||(Hl=o(["\n font-weight: 200;\n font-size: 0.78rem;\n margin-left: 0.5em;\n margin-top: -0.3em;\n position: absolute;\n white-space: nowrap;\n"]))),Xl=Jt.p(zl||(zl=o(["\n max-width: 460px;\n margin: 0 auto;\n color: var(--color-fg-subtle, #6e7781);\n"]))),$l=(0,i.forwardRef)(((e,t)=>{var{version:r,title:a,description:o,source:i,logo:d=Sr,components:c,data:l,markdownProps:u,exampleProps:p,className:f="",children:g,disableCorners:m=!1,disableDarkMode:h=!1,disableHeader:y=!1,disableBackToUp:b=!1}=e,v=(0,s.A)(e,Gl),x=lr();return(0,Xt.jsxs)(Kl,(0,n.A)({className:"wmde-markdown-var "+f},v,{children:[(0,Xt.jsx)(Dr,{version:r,logo:d,disableDarkMode:h,disableCorners:m}),!y&&(0,Xt.jsxs)(Yl,{children:[d,a&&(0,Xt.jsxs)("h1",{children:[a,r&&(0,Xt.jsx)(Jl,{children:r})]}),o&&(0,Xt.jsx)(Xl,{children:o})]}),x.example&&(0,Xt.jsx)(Vl,(0,n.A)({},p,{children:x.example})),(0,Xt.jsx)(Ll,(0,n.A)({},u,{source:i,data:{data:l,components:c,source:i}})),g,!b&&(0,Xt.jsx)(ar,{children:"Top"})]}))})),Ql=$l;Ql.Github=function(e){return(0,i.useEffect)((()=>or.setCorners((0,n.A)({},e))),[e]),null},Ql.Corners=function(e){return(0,i.useEffect)((()=>or.setDarkMode((0,n.A)({},e))),[e]),null},Ql.Example=function(e){var{children:t}=e;return(0,i.useEffect)((()=>or.setExample(t)),[t]),null},Ql.NavMenu=function(e){return(0,i.useEffect)((()=>or.setNavMenu(e)),[e]),null};const Zl=Ql,eu={components:{35:function(){var e=a(r(7804)),t=a(r(6204));function a(e){return e&&e.__esModule?e:{default:e}}function n(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var r={}.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)?s(e,t):void 0}}(e)||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.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=Array(t);re.length)&&(t=e.length);for(var r=0,a=Array(t);re.length)&&(t=e.length);for(var r=0,a=Array(t);re.length)&&(t=e.length);for(var r=0,a=Array(t);re.length)&&(t=e.length);for(var r=0,a=Array(t);r r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nvar value = [{\n date: \'2016/01/11\',\n count: 2\n}, {\n date: \'2016/01/12\',\n count: 20\n}, {\n date: \'2016/01/13\',\n count: 10\n}].concat(_toConsumableArray(_toConsumableArray(Array(17)).map(function (_, idx) {\n return {\n date: "2016/02/".concat(idx + 10),\n count: idx,\n content: \'\'\n };\n})), [{\n date: \'2016/04/11\',\n count: 2\n}, {\n date: \'2016/05/01\',\n count: 5\n}, {\n date: \'2016/05/02\',\n count: 5\n}, {\n date: \'2016/05/04\',\n count: 11\n}]);\nvar Demo = function Demo() {\n return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_reactHeatMap["default"], {\n value: value,\n weekLabels: [\'\', \'Mon\', \'\', \'Wed\', \'\', \'Fri\', \'\'],\n startDate: new Date(\'2016/01/01\')\n }));\n};\nreturn Demo;',language:"jsx",value:"import React from 'react';\nimport HeatMap from '@uiw/react-heat-map';\n\nconst value = [\n { date: '2016/01/11', count: 2 },\n { date: '2016/01/12', count: 20 },\n { date: '2016/01/13', count: 10 },\n ...[...Array(17)].map((_, idx) => ({\n date: `2016/02/${idx + 10}`, count: idx, content: ''\n })),\n { date: '2016/04/11', count: 2 },\n { date: '2016/05/01', count: 5 },\n { date: '2016/05/02', count: 5 },\n { date: '2016/05/04', count: 11 },\n];\n\nconst Demo = () => {\n return (\n
\n \n
\n )\n};\n\nexport default Demo"},71:{name:71,meta:{},code:"\"use strict\";\n\nvar _react = _interopRequireDefault(require(\"react\"));\nvar _reactHeatMap = _interopRequireDefault(require(\"@uiw/react-heat-map\"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { \"default\": e }; }\nvar value = [{\n date: '2016/01/11',\n count: 2\n}, {\n date: '2016/04/12',\n count: 2\n}, {\n date: '2016/05/01',\n count: 17\n}, {\n date: '2016/05/02',\n count: 5\n}, {\n date: '2016/05/03',\n count: 27\n}, {\n date: '2016/05/04',\n count: 11\n}, {\n date: '2016/05/08',\n count: 32\n}];\nvar Demo = function Demo() {\n return /*#__PURE__*/_react[\"default\"].createElement(_reactHeatMap[\"default\"], {\n value: value,\n width: 600,\n style: {\n color: '#ad001d',\n '--rhm-rect-active': 'red'\n },\n startDate: new Date('2016/01/01'),\n panelColors: {\n 0: '#f4decd',\n 7: '#e4b293',\n 14: '#d48462',\n 21: '#c2533a',\n 28: '#ad001d',\n 35: '#6c0012'\n }\n });\n};\nreturn Demo;",language:"jsx",value:"import React from 'react';\nimport HeatMap from '@uiw/react-heat-map';\n\nconst value = [\n { date: '2016/01/11', count:2 },\n { date: '2016/04/12', count:2 },\n { date: '2016/05/01', count:17 },\n { date: '2016/05/02', count:5 },\n { date: '2016/05/03', count:27 },\n { date: '2016/05/04', count:11 },\n { date: '2016/05/08', count:32 },\n];\n\nconst Demo = () => {\n return (\n \n )\n};\nexport default Demo"},108:{name:108,meta:{},code:"\"use strict\";\n\nvar _react = _interopRequireDefault(require(\"react\"));\nvar _reactHeatMap = _interopRequireDefault(require(\"@uiw/react-heat-map\"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { \"default\": e }; }\nvar value = [{\n date: '2016/01/11',\n count: 2\n}, {\n date: '2016/04/12',\n count: 2\n}, {\n date: '2016/05/01',\n count: 17\n}, {\n date: '2016/05/02',\n count: 5\n}, {\n date: '2016/05/03',\n count: 27\n}, {\n date: '2016/05/04',\n count: 11\n}, {\n date: '2016/05/08',\n count: 32\n}];\nvar Demo = function Demo() {\n return /*#__PURE__*/_react[\"default\"].createElement(_reactHeatMap[\"default\"], {\n value: value,\n width: 600,\n style: {\n color: '#ad001d',\n '--rhm-rect-active': 'red'\n },\n startDate: new Date('2016/01/01'),\n panelColors: ['#f4decd', '#e4b293', '#d48462', '#c2533a', '#ad001d', '#6c0012']\n });\n};\nreturn Demo;",language:"jsx",value:"import React from 'react';\nimport HeatMap from '@uiw/react-heat-map';\n\nconst value = [\n { date: '2016/01/11', count:2 },\n { date: '2016/04/12', count:2 },\n { date: '2016/05/01', count:17 },\n { date: '2016/05/02', count:5 },\n { date: '2016/05/03', count:27 },\n { date: '2016/05/04', count:11 },\n { date: '2016/05/08', count:32 },\n];\n\nconst Demo = () => {\n return (\n \n )\n};\nexport default Demo"},140:{name:140,meta:{},code:'"use strict";\n\nfunction _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }\nvar _react = _interopRequireWildcard(require("react"));\nvar _reactHeatMap = _interopRequireDefault(require("@uiw/react-heat-map"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }\nfunction _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }\nfunction _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nfunction _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }\nfunction _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }\nfunction _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nvar value = [{\n date: \'2016/01/11\',\n count: 2\n}].concat(_toConsumableArray(_toConsumableArray(Array(17)).map(function (_, idx) {\n return {\n date: "2016/01/".concat(idx + 10),\n count: idx\n };\n})), _toConsumableArray(_toConsumableArray(Array(17)).map(function (_, idx) {\n return {\n date: "2016/02/".concat(idx + 10),\n count: idx\n };\n})), [{\n date: \'2016/04/12\',\n count: 2\n}, {\n date: \'2016/05/01\',\n count: 5\n}, {\n date: \'2016/05/02\',\n count: 5\n}, {\n date: \'2016/05/03\',\n count: 1\n}, {\n date: \'2016/05/04\',\n count: 11\n}, {\n date: \'2016/05/08\',\n count: 32\n}]);\nvar Demo = function Demo() {\n var _useState = (0, _react.useState)(5),\n _useState2 = _slicedToArray(_useState, 2),\n range = _useState2[0],\n setRange = _useState2[1];\n return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("input", {\n type: "range",\n min: "0",\n max: "5",\n step: "0.1",\n value: range,\n onChange: function onChange(e) {\n return setRange(e.target.value);\n }\n }), " ", range, /*#__PURE__*/_react["default"].createElement(_reactHeatMap["default"], {\n value: value,\n width: 600,\n style: {\n \'--rhm-rect\': \'#b9b9b9\'\n },\n startDate: new Date(\'2016/01/01\'),\n legendRender: function legendRender(props) {\n return /*#__PURE__*/_react["default"].createElement("rect", _extends({}, props, {\n y: props.y + 10,\n rx: range\n }));\n },\n rectProps: {\n rx: range\n }\n }));\n};\nreturn Demo;',language:"jsx",value:"import React, { useState } from 'react';\nimport HeatMap from '@uiw/react-heat-map';\n\nconst value = [\n { date: '2016/01/11', count:2 },\n ...[...Array(17)].map((_, idx) => ({ date: `2016/01/${idx + 10}`, count: idx })),\n ...[...Array(17)].map((_, idx) => ({ date: `2016/02/${idx + 10}`, count: idx })),\n { date: '2016/04/12', count:2 },\n { date: '2016/05/01', count:5 },\n { date: '2016/05/02', count:5 },\n { date: '2016/05/03', count:1 },\n { date: '2016/05/04', count:11 },\n { date: '2016/05/08', count:32 },\n];\n\nconst Demo = () => {\n const [range, setRange] = useState(5)\n return (\n
\n setRange(e.target.value)}\n /> {range}\n }\n rectProps={{\n rx: range\n }}\n />\n
\n )\n};\nexport default Demo"},188:{name:188,meta:{},code:'"use strict";\n\nvar _react = _interopRequireDefault(require("react"));\nvar _reactTooltip = _interopRequireDefault(require("@uiw/react-tooltip"));\nvar _reactHeatMap = _interopRequireDefault(require("@uiw/react-heat-map"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }\nfunction _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }\nfunction _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }\nfunction _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nvar value = [{\n date: \'2016/01/11\',\n count: 2\n}].concat(_toConsumableArray(_toConsumableArray(Array(17)).map(function (_, idx) {\n return {\n date: "2016/01/".concat(idx + 10),\n count: idx\n };\n})), _toConsumableArray(_toConsumableArray(Array(17)).map(function (_, idx) {\n return {\n date: "2016/02/".concat(idx + 10),\n count: idx\n };\n})), [{\n date: \'2016/04/12\',\n count: 2\n}, {\n date: \'2016/05/01\',\n count: 5\n}, {\n date: \'2016/05/02\',\n count: 5\n}, {\n date: \'2016/05/03\',\n count: 1\n}, {\n date: \'2016/05/04\',\n count: 11\n}, {\n date: \'2016/05/08\',\n count: 32\n}]);\nvar Demo = function Demo() {\n return /*#__PURE__*/_react["default"].createElement(_reactHeatMap["default"], {\n value: value,\n width: 600,\n startDate: new Date(\'2016/01/01\'),\n rectRender: function rectRender(props, data) {\n // if (!data.count) return ;\n return /*#__PURE__*/_react["default"].createElement(_reactTooltip["default"], {\n placement: "top",\n content: "count: ".concat(data.count || 0)\n }, /*#__PURE__*/_react["default"].createElement("rect", props));\n }\n });\n};\nreturn Demo;',language:"jsx",value:"import React from 'react';\nimport Tooltip from '@uiw/react-tooltip';\nimport HeatMap from '@uiw/react-heat-map';\n\nconst value = [\n { date: '2016/01/11', count:2 },\n ...[...Array(17)].map((_, idx) => ({ date: `2016/01/${idx + 10}`, count: idx, })),\n ...[...Array(17)].map((_, idx) => ({ date: `2016/02/${idx + 10}`, count: idx, })),\n { date: '2016/04/12', count:2 },\n { date: '2016/05/01', count:5 },\n { date: '2016/05/02', count:5 },\n { date: '2016/05/03', count:1 },\n { date: '2016/05/04', count:11 },\n { date: '2016/05/08', count:32 },\n];\n\nconst Demo = () => {\n return (\n {\n // if (!data.count) return ;\n return (\n \n \n \n );\n }}\n />\n )\n};\nexport default Demo"},227:{name:227,meta:{},code:'"use strict";\n\nfunction _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }\nvar _react = _interopRequireWildcard(require("react"));\nvar _reactHeatMap = _interopRequireDefault(require("@uiw/react-heat-map"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }\nfunction _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nfunction _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }\nfunction _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }\nfunction _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nvar value = [{\n date: \'2016/01/11\',\n count: 2\n}].concat(_toConsumableArray(_toConsumableArray(Array(17)).map(function (_, idx) {\n return {\n date: "2016/01/".concat(idx + 10),\n count: idx\n };\n})), _toConsumableArray(_toConsumableArray(Array(17)).map(function (_, idx) {\n return {\n date: "2016/02/".concat(idx + 10),\n count: idx\n };\n})), [{\n date: \'2016/04/12\',\n count: 2\n}, {\n date: \'2016/05/01\',\n count: 5\n}, {\n date: \'2016/05/02\',\n count: 5\n}, {\n date: \'2016/05/03\',\n count: 1\n}, {\n date: \'2016/05/04\',\n count: 11\n}, {\n date: \'2016/05/08\',\n count: 32\n}]);\nvar Demo = function Demo() {\n var _useState = (0, _react.useState)(0),\n _useState2 = _slicedToArray(_useState, 2),\n size = _useState2[0],\n setSize = _useState2[1];\n return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("label", {\n style: {\n userSelect: \'none\'\n }\n }, /*#__PURE__*/_react["default"].createElement("input", {\n type: "checkbox",\n checked: size === 0,\n onChange: function onChange(e) {\n return setSize(e.target.checked ? 0 : 12);\n }\n }), size === 0 ? \' Hide\' : \' Show\', " Legend"), /*#__PURE__*/_react["default"].createElement(_reactHeatMap["default"], {\n width: 600,\n value: value,\n legendCellSize: size,\n startDate: new Date(\'2016/01/01\')\n }));\n};\nreturn Demo;',language:"jsx",value:"import React, { useState } from 'react';\nimport HeatMap from '@uiw/react-heat-map';\n\nconst value = [\n { date: '2016/01/11', count:2 },\n ...[...Array(17)].map((_, idx) => ({ date: `2016/01/${idx + 10}`, count: idx })),\n ...[...Array(17)].map((_, idx) => ({ date: `2016/02/${idx + 10}`, count: idx })),\n { date: '2016/04/12', count:2 },\n { date: '2016/05/01', count:5 },\n { date: '2016/05/02', count:5 },\n { date: '2016/05/03', count:1 },\n { date: '2016/05/04', count:11 },\n { date: '2016/05/08', count:32 },\n];\n\nconst Demo = () => {\n const [size, setSize] = useState(0)\n return (\n
\n \n \n
\n )\n};\nexport default Demo"},269:{name:269,meta:{},code:'"use strict";\n\nfunction _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }\nvar _react = _interopRequireWildcard(require("react"));\nvar _reactHeatMap = _interopRequireDefault(require("@uiw/react-heat-map"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }\nfunction _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }\nfunction _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nfunction _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }\nfunction _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }\nfunction _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nvar value = [{\n date: \'2016/01/11\',\n count: 2\n}].concat(_toConsumableArray(_toConsumableArray(Array(17)).map(function (_, idx) {\n return {\n date: "2016/01/".concat(idx + 10),\n count: idx\n };\n})), _toConsumableArray(_toConsumableArray(Array(17)).map(function (_, idx) {\n return {\n date: "2016/02/".concat(idx + 10),\n count: idx\n };\n})), [{\n date: \'2016/04/12\',\n count: 2\n}, {\n date: \'2016/05/01\',\n count: 5\n}, {\n date: \'2016/05/02\',\n count: 5\n}, {\n date: \'2016/05/03\',\n count: 1\n}, {\n date: \'2016/05/04\',\n count: 11\n}, {\n date: \'2016/05/08\',\n count: 32\n}]);\nvar Demo = function Demo() {\n var _useState = (0, _react.useState)(\'\'),\n _useState2 = _slicedToArray(_useState, 2),\n selected = _useState2[0],\n setSelected = _useState2[1];\n return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_reactHeatMap["default"], {\n width: 600,\n value: value,\n startDate: new Date(\'2016/01/01\'),\n rectRender: function rectRender(props, data) {\n if (selected !== \'\') {\n props.opacity = data.date === selected ? 1 : 0.45;\n }\n return /*#__PURE__*/_react["default"].createElement("rect", _extends({}, props, {\n onClick: function onClick() {\n setSelected(data.date === selected ? \'\' : data.date);\n }\n }));\n }\n }));\n};\nreturn Demo;',language:"jsx",value:"import React, { useState } from 'react';\nimport HeatMap from '@uiw/react-heat-map';\n\nconst value = [\n { date: '2016/01/11', count:2 },\n ...[...Array(17)].map((_, idx) => ({ date: `2016/01/${idx + 10}`, count: idx })),\n ...[...Array(17)].map((_, idx) => ({ date: `2016/02/${idx + 10}`, count: idx })),\n { date: '2016/04/12', count:2 },\n { date: '2016/05/01', count:5 },\n { date: '2016/05/02', count:5 },\n { date: '2016/05/03', count:1 },\n { date: '2016/05/04', count:11 },\n { date: '2016/05/08', count:32 },\n];\n\nconst Demo = () => {\n const [selected, setSelected] = useState('')\n return (\n
\n {\n if (selected !== '') {\n props.opacity = data.date === selected ? 1 : 0.45\n }\n return (\n {\n setSelected(data.date === selected ? '' : data.date);\n }} />\n );\n }}\n />\n
\n )\n};\nexport default Demo"}},source:"HeatMap \u65e5\u5386\u70ed\u56fe\n===\n\x3c!--rehype:style=text-align: center;--\x3e\n\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\n[![Build & Deploy](https://github.com/uiwjs/react-heat-map/actions/workflows/ci.yml/badge.svg)](https://github.com/uiwjs/react-heat-map/actions/workflows/ci.yml)\n[![Coverage Status](https://img.shields.io/npm/dm/@uiw/react-heat-map.svg?style=flat)](https://www.npmjs.com/package/@uiw/react-heat-map)\n[![npm version](https://img.shields.io/npm/v/@uiw/react-heat-map.svg)](https://www.npmjs.com/package/@uiw/react-heat-map)\n[![npm bundle size](https://img.shields.io/bundlephobia/minzip/@uiw/react-heat-map)](https://bundlephobia.com/result?p=@uiw/react-heat-map)\n[![Open in Gitpod](https://shields.io/badge/Open%20in-Gitpod-green?logo=Gitpod)](https://gitpod.io/#https://github.com/uiwjs/react-codemirror)\n\x3c!--rehype:style=text-align: center;--\x3e\n\nA lightweight calendar heatmap react component built on SVG, customizable version of GitHub's contribution graph. Try it out on [website example](https://uiwjs.github.io/react-heat-map/).\n\n\x3c!--rehype:ignore:start--\x3e\n\n[![](https://user-images.githubusercontent.com/1680273/186116433-d58c2b6d-8468-4322-943c-9b63c2e447e4.png)](https://uiwjs.github.io/react-heat-map)\n\n\x3c!--rehype:ignore:end--\x3e\n\n## Install\n\n```bash\n# Not dependent on uiw.\nnpm install @uiw/react-heat-map --save\n```\nIf using Next.js, you will need to use the [`next-remove-imports`](https://www.npmjs.com/package/next-remove-imports) package to avoid errors, see [issue #69](https://github.com/uiwjs/react-heat-map/issues/69).\n\n## Basic Usage\n\nBasic usage example, Please pay warning to the time setting.\n\n\u26a0\ufe0f Example: ~~`2016-01-11`\x3c!--rehype:style=color: red;background-color: #ffd8d8;--\x3e~~ -> `2016/01/11`\x3c!--rehype:style=color: green;background: #a7e4b5;--\x3e, Support `Safari`\x3c!--rehype:style=background-color: #87d499;--\x3e\n\n```jsx mdx:preview\nimport React from 'react';\nimport HeatMap from '@uiw/react-heat-map';\n\nconst value = [\n { date: '2016/01/11', count: 2 },\n { date: '2016/01/12', count: 20 },\n { date: '2016/01/13', count: 10 },\n ...[...Array(17)].map((_, idx) => ({\n date: `2016/02/${idx + 10}`, count: idx, content: ''\n })),\n { date: '2016/04/11', count: 2 },\n { date: '2016/05/01', count: 5 },\n { date: '2016/05/02', count: 5 },\n { date: '2016/05/04', count: 11 },\n];\n\nconst Demo = () => {\n return (\n
\n \n
\n )\n};\n\nexport default Demo\n```\n\n## Set Color\n\nSet the theme color style.\n\n```jsx mdx:preview\nimport React from 'react';\nimport HeatMap from '@uiw/react-heat-map';\n\nconst value = [\n { date: '2016/01/11', count:2 },\n { date: '2016/04/12', count:2 },\n { date: '2016/05/01', count:17 },\n { date: '2016/05/02', count:5 },\n { date: '2016/05/03', count:27 },\n { date: '2016/05/04', count:11 },\n { date: '2016/05/08', count:32 },\n];\n\nconst Demo = () => {\n return (\n \n )\n};\nexport default Demo\n```\n\nDynamic color based on maximum value\n\n```jsx mdx:preview\nimport React from 'react';\nimport HeatMap from '@uiw/react-heat-map';\n\nconst value = [\n { date: '2016/01/11', count:2 },\n { date: '2016/04/12', count:2 },\n { date: '2016/05/01', count:17 },\n { date: '2016/05/02', count:5 },\n { date: '2016/05/03', count:27 },\n { date: '2016/05/04', count:11 },\n { date: '2016/05/08', count:32 },\n];\n\nconst Demo = () => {\n return (\n \n )\n};\nexport default Demo\n```\n\n## Set Rect Style\n\nSet the radius of the rect.\n\n```jsx mdx:preview\nimport React, { useState } from 'react';\nimport HeatMap from '@uiw/react-heat-map';\n\nconst value = [\n { date: '2016/01/11', count:2 },\n ...[...Array(17)].map((_, idx) => ({ date: `2016/01/${idx + 10}`, count: idx })),\n ...[...Array(17)].map((_, idx) => ({ date: `2016/02/${idx + 10}`, count: idx })),\n { date: '2016/04/12', count:2 },\n { date: '2016/05/01', count:5 },\n { date: '2016/05/02', count:5 },\n { date: '2016/05/03', count:1 },\n { date: '2016/05/04', count:11 },\n { date: '2016/05/08', count:32 },\n];\n\nconst Demo = () => {\n const [range, setRange] = useState(5)\n return (\n
\n setRange(e.target.value)}\n /> {range}\n }\n rectProps={{\n rx: range\n }}\n />\n
\n )\n};\nexport default Demo\n```\n\n## Tooltip\n\nA simple text popup tip.\n\n```jsx mdx:preview\nimport React from 'react';\nimport Tooltip from '@uiw/react-tooltip';\nimport HeatMap from '@uiw/react-heat-map';\n\nconst value = [\n { date: '2016/01/11', count:2 },\n ...[...Array(17)].map((_, idx) => ({ date: `2016/01/${idx + 10}`, count: idx, })),\n ...[...Array(17)].map((_, idx) => ({ date: `2016/02/${idx + 10}`, count: idx, })),\n { date: '2016/04/12', count:2 },\n { date: '2016/05/01', count:5 },\n { date: '2016/05/02', count:5 },\n { date: '2016/05/03', count:1 },\n { date: '2016/05/04', count:11 },\n { date: '2016/05/08', count:32 },\n];\n\nconst Demo = () => {\n return (\n {\n // if (!data.count) return ;\n return (\n \n \n \n );\n }}\n />\n )\n};\nexport default Demo\n```\n\n## Show/Hide Legend\n\n```jsx mdx:preview\nimport React, { useState } from 'react';\nimport HeatMap from '@uiw/react-heat-map';\n\nconst value = [\n { date: '2016/01/11', count:2 },\n ...[...Array(17)].map((_, idx) => ({ date: `2016/01/${idx + 10}`, count: idx })),\n ...[...Array(17)].map((_, idx) => ({ date: `2016/02/${idx + 10}`, count: idx })),\n { date: '2016/04/12', count:2 },\n { date: '2016/05/01', count:5 },\n { date: '2016/05/02', count:5 },\n { date: '2016/05/03', count:1 },\n { date: '2016/05/04', count:11 },\n { date: '2016/05/08', count:32 },\n];\n\nconst Demo = () => {\n const [size, setSize] = useState(0)\n return (\n
\n \n \n
\n )\n};\nexport default Demo\n```\n\n## Selected Rect\n\n```jsx mdx:preview\nimport React, { useState } from 'react';\nimport HeatMap from '@uiw/react-heat-map';\n\nconst value = [\n { date: '2016/01/11', count:2 },\n ...[...Array(17)].map((_, idx) => ({ date: `2016/01/${idx + 10}`, count: idx })),\n ...[...Array(17)].map((_, idx) => ({ date: `2016/02/${idx + 10}`, count: idx })),\n { date: '2016/04/12', count:2 },\n { date: '2016/05/01', count:5 },\n { date: '2016/05/02', count:5 },\n { date: '2016/05/03', count:1 },\n { date: '2016/05/04', count:11 },\n { date: '2016/05/08', count:32 },\n];\n\nconst Demo = () => {\n const [selected, setSelected] = useState('')\n return (\n
\n {\n if (selected !== '') {\n props.opacity = data.date === selected ? 1 : 0.45\n }\n return (\n {\n setSelected(data.date === selected ? '' : data.date);\n }} />\n );\n }}\n />\n
\n )\n};\nexport default Demo\n```\n\n## Props\n\n| Property | Description | Type | Default |\n| ---- | ---- | ---- | ---- |\n| `value` | Data to be displayed, **required** | Array | `[]` |\n| `rectSize` | Grid size | number | `11` |\n| `legendCellSize` | Size of the legend cells, in pixel. Value equal to `0` hide legend. | number | `11` |\n| `startDate` | Start date | Date | `new Date()` |\n| `endDate` | End date | Date | - |\n| `space` | Interval between grid sizes | number | `2` | \n| `monthPlacement` | position of month labels | `'top' | 'bottom'` | `top` | \n| `rectProps` | Grid node attribute settings | `React.SVGProps` | `2` |\n| `weekLabels` | Week display | string[] | `['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']` | \n| `monthLabels` | Month display | string[] | `['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']` | \n| `panelColors` | Backgroud color of active colors | `Record` \\| `string[]` | `['var(--rhm-rect, #EBEDF0)','#C6E48B','#7BC96F', '#239A3B', '#196127']` | \n| `rectRender` | Single `day` block re-render | `(data: E & { key: number }, valueItem: HeatMapValue & { date: string, column: number, row: number, index: number }) => React.ReactElement` | - |\n| `legendRender` | Single `legend` block re-render | `(props: React.SVGProps) => React.ReactNode` | - |\n\n## Development\n\n**`development`**\n\nRuns the project in development mode. \n\n```bash\nnpm install\n```\n\n```bash\n# Step 1, run first, listen to the component compile and output the .js file\n# listen for compilation output type .d.ts file\nnpm run watch\n# Step 2, development mode, listen to compile preview website instance\nnpm run start\n```\n\n**`production`**\n\nBuilds the app for production to the build folder.\n\n```bash\nnpm run build\nnpm run doc\n```\n\nThe build is minified and the filenames include the hashes.\nYour app is ready to be deployed!\n\n## Contributors\n\nAs always, thanks to our amazing contributors!\n\n\n \n\n\nMade with [github-action-contributors](https://github.com/jaywcjlove/github-action-contributors).\n\n## License\n\nLicensed under the MIT License.\n\n",headings:[],headingsList:[]};var tu=r(2073),ru=r(6204);const au=Jt.div` - background-color: #fff; - border-radius: 5px; - box-shadow: 0 0 0 1px rgb(16 22 26 / 10%), 0 0 0 rgb(16 22 26 / 0%), 0 1px 1px rgb(16 22 26 / 20%); - margin: 0 auto; - margin-top: 70px; - width: 663px; - svg { - border-radius: 5px; - } -`,nu=Jt.div` - user-select: none; - font-size: 12px; - margin-top: 10px !important; - padding: 10px; - padding-left: 0px; - border-radius: 5px; - width: 663px; - margin: 0 auto; - label { - display: flex; - align-items: center; - input { - margin-right: 5px; - margin-left: 10px; - } - } -`,su=Jt.div` - display: flex; - flex-direction: column; -`,ou=[{date:"2016/01/11",count:2,content:""},...[...Array(17)].map(((e,t)=>({date:`2016/02/${t+10}`,count:t,content:""}))),{date:"2016/03/02",count:5,content:""},{date:"2016/03/04",count:11,content:""},{date:"2016/03/14",count:31,content:""},{date:"2016/03/16",count:2,content:""},{date:"2016/04/11",count:2,content:""},{date:"2016/05/01",count:5,content:""},{date:"2016/05/02",count:5,content:""},{date:"2016/05/04",count:11,content:""},{date:"2016/05/14",count:31,content:""},{date:"2016/05/16",count:2,content:""},{date:"2016/05/17",count:2,content:""},{date:"2016/05/18",count:2,content:""},{date:"2016/05/19",count:8,content:""},{date:"2016/05/20",count:6,content:""},{date:"2016/05/21",count:41,content:""},{date:"2016/05/22",count:6,content:""},{date:"2016/06/11",count:2,content:""},{date:"2016/07/01",count:5,content:""},{date:"2016/07/02",count:5,content:""},{date:"2016/07/04",count:11,content:""},{date:"2016/07/14",count:31,content:""},{date:"2016/07/16",count:2,content:""},{date:"2016/07/17",count:2,content:""},{date:"2016/07/18",count:2,content:""},{date:"2016/07/19",count:8,content:""},{date:"2016/07/20",count:6,content:""},{date:"2016/07/21",count:41,content:""},{date:"2016/07/22",count:6,content:""},...[...Array(17)].map(((e,t)=>({date:`2016/08/${t+10}`,count:t,content:""})))],iu=[{date:"2016/04/02",count:5,content:""},{date:"2016/04/04",count:11,content:""},{date:"2016/04/14",count:31,content:""},{date:"2016/04/16",count:2,content:""},{date:"2016/04/17",count:2,content:""},{date:"2016/04/18",count:2,content:""},{date:"2016/04/19",count:8,content:""},{date:"2016/04/11",count:2,content:""},{date:"2016/04/01",count:5,content:""},{date:"2016/04/02",count:5,content:""},{date:"2016/04/04",count:11,content:""},{date:"2016/04/14",count:31,content:""},{date:"2016/04/16",count:2,content:""},{date:"2016/04/17",count:2,content:""},{date:"2016/04/18",count:2,content:""},{date:"2016/04/19",count:8,content:""},{date:"2016/04/20",count:6,content:""},{date:"2016/04/21",count:41,content:""},{date:"2016/04/22",count:6,content:""}],du={0:"rgb(255 255 255 / 25%)",8:"#7BC96F",4:"#C6E48B",12:"#239A3B",32:"#ff7b00"};function cu(){const[e,t]=(0,i.useState)(ou),[r,a]=(0,i.useState)(),[n,s]=(0,i.useState)(!1),[o,d]=(0,i.useState)(!1),[c,l]=(0,i.useState)(!1),[u,p]=(0,i.useState)(11),[f,g]=(0,i.useState)("top"),[m,h]=(0,i.useState)(),[y,b]=(0,i.useState)(void 0),[v,x]=(0,i.useState)(void 0);return(0,Xt.jsxs)(su,{children:[(0,Xt.jsx)(au,{children:(0,Xt.jsx)(ru.default,{style:{backgroundColor:o?"#000":"#fff",color:o?"#888":"#000"},panelColors:o?du:void 0,width:663,rectSize:u,legendCellSize:m,weekLabels:y,monthLabels:v,startDate:new Date("2016/01/01"),endDate:n?new Date("2016/6/01"):void 0,monthPlacement:f,value:e,rectProps:{rx:c?5:0,onClick:e=>{a(e.target.dataset.date)}},legendRender:e=>(0,i.createElement)("rect",{...e,key:e.key,rx:c?5:0}),rectRender:(e,t)=>(0,Xt.jsx)(tu.default,{placement:"top",content:`count: ${t.count||0}`,children:(0,Xt.jsx)("rect",{...e})},t.index)})}),(0,Xt.jsxs)(nu,{children:[(0,Xt.jsxs)("div",{style:{paddingLeft:10,paddingBottom:20},children:[(0,Xt.jsx)("button",{onClick:()=>t(ou),children:"Value 1"}),(0,Xt.jsx)("button",{onClick:()=>t(iu),children:"Value 2"}),(0,Xt.jsx)("span",{children:r})]}),(0,Xt.jsxs)("label",{children:[(0,Xt.jsx)("input",{type:"checkbox",checked:n,onChange:e=>s(e.target.checked)}),"endDate = ",n?"2016/6/01":"undefined"]}),(0,Xt.jsxs)("label",{children:[(0,Xt.jsx)("input",{type:"checkbox",checked:o,onChange:e=>d(e.target.checked)}),o?"Dark":"Light"]}),(0,Xt.jsxs)("label",{children:[(0,Xt.jsx)("input",{type:"checkbox",checked:c,onChange:e=>l(e.target.checked)}),c?"Circle":"Rect"]}),(0,Xt.jsxs)("label",{style:{marginTop:15},children:[(0,Xt.jsx)("input",{type:"radio",name:"weekLabels",checked:void 0===y,onChange:e=>b(void 0)}),"weekLabels = undefined, Default: ",JSON.stringify(["Sun","Mon","Tue","Wed","Thu","Fri","Sat"])]}),(0,Xt.jsxs)("label",{children:[(0,Xt.jsx)("input",{type:"radio",name:"weekLabels",checked:!1===y,onChange:e=>b(!1)}),"weekLabels = false"]}),(0,Xt.jsxs)("label",{children:[(0,Xt.jsx)("input",{type:"radio",name:"weekLabels",checked:Array.isArray(y),onChange:e=>b(["\u65e5","\u4e00","","\u4e09","","\u4e94","\u516d"])}),"weekLabels = ",JSON.stringify(["\u65e5","\u4e00","","\u4e09","","\u4e94","\u516d"])]}),(0,Xt.jsxs)("label",{style:{marginTop:15},children:[(0,Xt.jsx)("input",{type:"radio",name:"monthLabels",checked:void 0===v,onChange:e=>x(void 0)}),"monthLabels = undefined, Default:"," ",JSON.stringify(["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"])]}),(0,Xt.jsxs)("label",{children:[(0,Xt.jsx)("input",{type:"radio",name:"monthLabels",checked:!1===v,onChange:e=>x(!1)}),"monthLabels = false"]}),(0,Xt.jsxs)("label",{children:[(0,Xt.jsx)("input",{type:"radio",name:"monthLabels",checked:Array.isArray(v),onChange:e=>x(["\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d","\u4e03","\u516b","\u4e5d","\u5341","\u5341\u4e00","\u5341\u4e8c"])}),"monthLabels = ",JSON.stringify(["\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d","\u4e03","\u516b","\u4e5d","\u5341","\u5341\u4e00","\u5341\u4e8c"])]}),(0,Xt.jsxs)("div",{style:{display:"flex",marginTop:10},children:[(0,Xt.jsxs)("label",{children:[(0,Xt.jsx)("input",{type:"radio",name:"rectSize",checked:11===u,onChange:e=>p(11)}),"rectSize = 11"]}),(0,Xt.jsxs)("label",{children:[(0,Xt.jsx)("input",{type:"radio",name:"rectSize",checked:12===u,onChange:e=>p(12)}),"rectSize = 12"]}),(0,Xt.jsxs)("label",{children:[(0,Xt.jsx)("input",{type:"radio",name:"rectSize",checked:14===u,onChange:e=>p(14)}),"rectSize = 14"]})]}),(0,Xt.jsxs)("div",{style:{display:"flex",marginTop:16},children:[(0,Xt.jsx)("label",{children:(0,Xt.jsxs)("select",{value:f,onChange:e=>g(e.target.value),children:[(0,Xt.jsx)("option",{value:"top",children:"monthPlacement = top"}),(0,Xt.jsx)("option",{value:"bottom",children:"monthPlacement = bottom"})]})}),(0,Xt.jsxs)("label",{children:[(0,Xt.jsx)("input",{type:"number",value:m||"",onChange:e=>h(Number(e.target.value)||0)}),"legendCellSize = ",m]})]})]})]})}const lu=Zl.Github,uu=Zl.Example,pu=document.getElementById("root");(0,a.H)(pu).render((0,Xt.jsxs)(Zl,{source:eu.source,components:eu.components,data:eu.data,title:"HeatMap for React",description:"React component create calendar heatmap to visualize time series data, a la github contribution graph.",version:"v2.3.1",children:[(0,Xt.jsx)(lu,{href:"https://github.com/uiwjs/react-heat-map"}),(0,Xt.jsx)(uu,{children:(0,Xt.jsx)(cu,{})})]}))},6204:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>w});var a=r(8102),n=r(9257),s=r(7804),o=r(9424),i={textAnchor:"middle",fontSize:"inherit",fill:"currentColor"},d=e=>{var{weekLabels:t=[],rectSize:r=0,topPad:a=0,space:n=0}=e;return(0,s.useMemo)((()=>(0,o.jsx)(s.Fragment,{children:[...Array(7)].map(((e,s)=>t&&t[s]?(0,o.jsx)("text",{className:"w-heatmap-week",x:15,y:a,dy:(s+1)*(r+n)-5,style:i,children:t[s]},s):null))})),[r,n,a,t])},c=864e5;function l(e){return e instanceof Date&&!isNaN(e.getTime())}function u(e){return e.getFullYear()+"/"+(e.getMonth()+1)+"/"+e.getDate()}var p=(e,t)=>{var r=Math.ceil(t/(e.length-1)),a={};return e.forEach(((e,t)=>{a[t*r]=e})),a},f=e=>{var{monthLabels:t=[],rectSize:r=0,space:a=0,leftPad:n=0,colNum:d=0,rectY:l=15,startDate:u}=e,p=(0,s.useMemo)((()=>!1===t||d<1?[]:[...Array(7*d)].map(((e,r)=>{if(r/7%1===0){var a=new Date(u.getTime()+r*c),n=a.getMonth();return{col:r/7,index:r,month:n,day:a.getDate(),monthStr:t[n],date:a}}return null})).filter(Boolean).filter(((e,t,r)=>r[t-1]&&r[t-1].month!==e.month))),[d,t,u]);return(0,o.jsx)(s.Fragment,{children:[...p].map(((e,t)=>(0,o.jsx)("text",{"data-size":r,x:n+a+a,y:l,dx:e.col*(r+a),textAnchor:"start",style:i,children:e.monthStr},t)))})},g=["style","value","render","key"],m=e=>{var{style:t,value:r,render:i}=e,d=(0,n.A)(e,g),c=(0,a.A)({},d,{style:(0,a.A)({display:"block",cursor:"pointer"},t)});if(i&&"function"===typeof i){var l=i((0,a.A)({},c),r);if(l&&s.isValidElement(l))return l}return(0,o.jsx)("rect",(0,a.A)({},c))},h=["panelColors","leftPad","topPad","rectY","space","rectSize","legendCellSize","legendRender"];function y(e){var{panelColors:t,leftPad:r=0,topPad:i=0,rectY:d=15,space:c=0,rectSize:l=0,legendCellSize:u=0,legendRender:p}=e,f=(0,n.A)(e,h),g=u||l;return(0,s.useMemo)((()=>(0,o.jsx)(s.Fragment,{children:Object.keys(t||{}).map(((e,n)=>{var o=(0,a.A)({},f,{key:n,x:(g+1)*n+r,y:d,fill:t[Number(e)],width:g,height:g});return p?p(o):(0,s.createElement)(m,(0,a.A)({},o,{key:n}))}))})),[t,f,g,d,r,l,p])}var b=e=>{var{transform:t,gridNum:r=0,startY:n=0,panelColors:i={},initStartDate:d,space:p=2,value:f=[],rectSize:g=11,endDate:h,rectProps:y,rectRender:b}=e,v=(0,s.useMemo)((()=>function(e){void 0===e&&(e=[]);var t={};return e.forEach((e=>{e.date&&l(new Date(e.date))&&(e.date=u(new Date(e.date)),t[e.date]=e)})),t}(f)),[f]),x=(0,s.useMemo)((()=>{return void 0===(e=Object.keys(i).map((e=>parseInt(e,10))))&&(e=[]),e.sort(((e,t)=>et?1:0));var e}),[i]);return(0,o.jsx)("g",{transform:t,children:r>0&&[...Array(r)].map(((e,t)=>(0,o.jsx)("g",{"data-column":t,children:[...Array(7)].map(((e,r)=>{var n=new Date(d.getTime()+c*(7*t+r)),o=u(n),l=(0,a.A)({},v[o],{date:o,row:r,column:t,index:7*t+r}),f=(0,a.A)({},y,{fill:"var(--rhm-rect, #EBEDF0)",width:g,height:g,x:t*(g+p),y:(g+p)*r,render:b,value:l});return h instanceof Date&&n.getTime()>h.getTime()?null:(o&&v[o]&&i&&Object.keys(i).length>0?f.fill=function(e,t,r){void 0===e&&(e=0),void 0===r&&(r={});for(var a="",n=0;ne){a=r[t[n]];break}a=r[t[n]]}return a}(v[o].count||0,x,i):i&&i[0]&&(f.fill=i[0]),(0,s.createElement)(m,(0,a.A)({},f,{key:r,value:l,"data-date":o,"data-index":l.index,"data-row":l.row,"data-column":l.column})))}))},t)))})},v=["rectSize","legendCellSize","space","monthPlacement","startDate","endDate","rectProps","rectRender","legendRender","value","weekLabels","monthLabels","panelColors","style"];function x(e){var t=e||{},{rectSize:r=11,legendCellSize:i=11,space:u=2,monthPlacement:g="top",startDate:m=new Date,endDate:h,rectProps:x,rectRender:R,legendRender:w,value:E=[],weekLabels:j=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],monthLabels:S=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],panelColors:T=["var(--rhm-rect, #EBEDF0)","#C6E48B","#7BC96F","#239A3B","#196127"],style:A}=t,k=(0,n.A)(t,v),C=Math.max(...E.map((e=>e.count)),0),P=Array.isArray(T)?p(T,C):T,[_,D]=(0,s.useState)(0),[I,O]=(0,s.useState)(j?28:5),N="top"===g?20:5,[F,B]=(0,s.useState)(S?N:5),M=s.createRef();(0,s.useEffect)((()=>O(j?28:5)),[j]),(0,s.useEffect)((()=>{if(M.current){var e=M.current.clientWidth-I||0;D(Math.floor(e/(r+u))||0)}}),[r,M,u,I]),(0,s.useEffect)((()=>{B(S?N:5)}),[S]);var L=(0,s.useMemo)((()=>{if(l(m))return m.getDay()?new Date(m.getTime()-m.getDay()*c):m;var e=new Date;return new Date(e.getTime()-e.getDay()*c)}),[m]),U="top"===g?15:105+u,q="top"===g?F+8*r+6:(S?F+r+u:F)+8*r+6;return(0,o.jsxs)("svg",(0,a.A)({ref:M,style:(0,a.A)({},{color:"var(--rhm-text-color, #24292e)",userSelect:"none",display:"block",fontSize:10},A)},k,{children:[0!==i&&(0,o.jsx)(y,{legendRender:w,panelColors:P,rectSize:r,rectY:q,legendCellSize:i,leftPad:I,topPad:F,space:u}),(0,o.jsx)(d,{weekLabels:j,rectSize:r,space:u,topPad:F}),(0,o.jsx)(f,{monthLabels:S,rectSize:r,space:u,leftPad:I,colNum:_,rectY:U,startDate:L}),(0,o.jsx)(b,{transform:"translate("+I+", "+F+")",gridNum:_,initStartDate:L,endDate:h,rectProps:x,rectSize:r,rectRender:R,panelColors:P,value:E,space:u})]}))}var R=["prefixCls","className"];function w(e){var{prefixCls:t="w-heatmap",className:r}=e,s=(0,n.A)(e,R),i=[r,t].filter(Boolean).join(" ");return(0,o.jsx)(x,(0,a.A)({className:i},s))}},8474:function(e){e.exports=function(){"use strict";function e(e,t){if("undefined"===typeof document)return;const r=document.createElement("textarea");r.value=e,r.setAttribute("readonly",""),r.style={position:"absolute",left:"-9999px"},document.body.appendChild(r);const a=document.getSelection().rangeCount>0&&document.getSelection().getRangeAt(0);r.select();let n=!1;try{n=!!document.execCommand("copy")}catch(s){n=!1}document.body.removeChild(r),a&&document.getSelection&&(document.getSelection().removeAllRanges(),document.getSelection().addRange(a)),t&&t(n)}return e}()},2073:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>K});var a=r(8102),n=r(9257),s=r(7804);function o(){}function i(e,t){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},i(e,t)}function d(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,i(e,t)}function c(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var l=r(4689);const u=!1,p=s.createContext(null);var f=function(e){return e.scrollTop},g="unmounted",m="exited",h="entering",y="entered",b="exiting",v=function(e){function t(t,r){var a;a=e.call(this,t,r)||this;var n,s=r&&!r.isMounting?t.enter:t.appear;return a.appearStatus=null,t.in?s?(n=m,a.appearStatus=h):n=y:n=t.unmountOnExit||t.mountOnEnter?g:m,a.state={status:n},a.nextCallback=null,a}d(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===g?{status:m}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==h&&r!==y&&(t=h):r!==h&&r!==y||(t=b)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,r,a=this.props.timeout;return e=t=r=a,null!=a&&"number"!==typeof a&&(e=a.exit,t=a.enter,r=void 0!==a.appear?a.appear:t),{exit:e,enter:t,appear:r}},r.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===h){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:l.findDOMNode(this);r&&f(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===m&&this.setState({status:g})},r.performEnter=function(e){var t=this,r=this.props.enter,a=this.context?this.context.isMounting:e,n=this.props.nodeRef?[a]:[l.findDOMNode(this),a],s=n[0],o=n[1],i=this.getTimeouts(),d=a?i.appear:i.enter;!e&&!r||u?this.safeSetState({status:y},(function(){t.props.onEntered(s)})):(this.props.onEnter(s,o),this.safeSetState({status:h},(function(){t.props.onEntering(s,o),t.onTransitionEnd(d,(function(){t.safeSetState({status:y},(function(){t.props.onEntered(s,o)}))}))})))},r.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),a=this.props.nodeRef?void 0:l.findDOMNode(this);t&&!u?(this.props.onExit(a),this.safeSetState({status:b},(function(){e.props.onExiting(a),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:m},(function(){e.props.onExited(a)}))}))}))):this.safeSetState({status:m},(function(){e.props.onExited(a)}))},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(a){r&&(r=!1,t.nextCallback=null,e(a))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:l.findDOMNode(this),a=null==e&&!this.props.addEndListener;if(r&&!a){if(this.props.addEndListener){var n=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],s=n[0],o=n[1];this.props.addEndListener(s,o)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},r.render=function(){var e=this.state.status;if(e===g)return null;var t=this.props,r=t.children,a=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,n.A)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return s.createElement(p.Provider,{value:null},"function"===typeof r?r(e,a):s.cloneElement(s.Children.only(r),a))},t}(s.Component);function x(){}v.contextType=p,v.propTypes={},v.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:x,onEntering:x,onEntered:x,onExit:x,onExiting:x,onExited:x},v.UNMOUNTED=g,v.EXITED=m,v.ENTERING=h,v.ENTERED=y,v.EXITING=b;const R=v;var w=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return a=t,void((r=e).classList?r.classList.remove(a):"string"===typeof r.className?r.className=c(r.className,a):r.setAttribute("class",c(r.className&&r.className.baseVal||"",a)));var r,a}))},E=function(e){function t(){for(var t,r=arguments.length,a=new Array(r),n=0;n()=>{r.current&&a.current&&(a.current.removeChild(r.current),r.current=void 0)}),[]),S?(a.current||(a.current=document.body),r.current||(r.current=document.createElement("div"),a.current.appendChild(r.current)),l.createPortal(e.children,r.current)):null}var A=r(9424),k=["className","style","isOpen","prefixCls","usePortal","maskClosable","backdropProps","portalProps","hasBackdrop","unmountOnExit","timeout","transitionName","onOpening","onOpened","onClosing","onClosed","onClose","onEnter","onExiting","onEntering","onEntered","onExit","children","dialogProps"];function C(e){var{className:t,style:r,isOpen:i=!1,prefixCls:d="w-overlay",usePortal:c=!0,maskClosable:l=!0,backdropProps:u={},portalProps:p={},hasBackdrop:f=!0,unmountOnExit:g=!0,timeout:m=300,transitionName:h="w-overlay",onOpening:y=o,onOpened:b=o,onClosing:v=o,onClosed:x=o,onClose:R=o,onEnter:w=o,onExiting:E=o,onEntering:S=o,onEntered:C=o,onExit:P=o,children:_,dialogProps:D={}}=e,I=(0,n.A)(e,k),[O,N]=(0,s.useState)(),[F,B]=(0,s.useState)(!1),M=(0,s.useRef)(null),L=(0,s.useRef)(null);(0,s.useEffect)((()=>{O!==e.isOpen&&e.isOpen&&B(!0),O===e.isOpen||e.isOpen||(W(),N(!1))}),[e.isOpen]),(0,s.useEffect)((()=>{F&&(f&&c&&document.body.classList.add(d+"-open"),N(!0))}),[F]);var U="object"===typeof _?(0,s.cloneElement)(_,(0,a.A)({},D,{style:(0,a.A)({},_.props.style,D.style),className:[_.props.className,d+"-content"].filter(Boolean).join(" ").trim(),tabIndex:0})):(0,A.jsx)("span",(0,a.A)({},D,{className:d+"-content",children:_}));function q(e){e.target!==M.current&&c||(l&&f&&(W(),N(!1),R&&R(e)),u&&u.onMouseDown&&u.onMouseDown(e))}function W(){f&&c&&document.body.classList.remove(d+"-open")}var H=(0,A.jsx)(j,(0,a.A)({classNames:h,unmountOnExit:g,timeout:m,in:O,onEnter:e=>{w(L.current,e)},onEntering:e=>{y(L.current,e),S(L.current)},onEntered:e=>{b(L.current,e),C(L.current)},onExiting:()=>{v(L.current),E(L.current)},onExited:()=>{var e;e=L.current,B(!1),x&&x(e),P(L.current)},nodeRef:L},I,{children:e=>(0,A.jsxs)("div",{style:r,ref:L,className:[d,t,c?null:d+"-inline",O?d+"-enter-done":null].filter(Boolean).join(" ").trim(),children:[f&&(0,s.cloneElement)((0,A.jsx)("div",{}),(0,a.A)({},u,{onMouseDown:q,className:[d+"-backdrop",u.className].filter(Boolean).join(" ").trim(),tabIndex:l?0:null})),c?(0,A.jsx)("div",{ref:M,onMouseDown:q,className:d+"-container",children:(0,s.cloneElement)(U,{"data-status":e})}):(0,s.cloneElement)(U,{"data-status":e})]})}));return F&&c?(0,A.jsx)(T,(0,a.A)({},(0,a.A)({},p),{children:H})):H}function P(e,t){if(t)do{if(t===e)return!0}while(t=t.parentNode);return!1}function _(e){return"function"===typeof HTMLElement?e instanceof HTMLElement:e&&"object"===typeof e&&1===e.nodeType&&"string"===typeof e.nodeName}const D=!("undefined"===typeof window||!window.document||!window.document.createElement)?function(e,t){return e&&e.contains&&"function"===typeof e.contains&&_(t)?e.contains(t):e&&e.compareDocumentPosition&&_(t)?e===t||!!e.compareDocumentPosition(t):P(e,t)}:P;function I(e,t){if("undefined"===typeof window)return 0;var r=t?"scrollTop":"scrollLeft",a=e===window,n=a?e[t?"pageYOffset":"pageXOffset"]:e[r];return a&&"number"!==typeof n&&(n=document.documentElement[r]),n}function O(e,t){var r="x"===t?"Left":"Top",a="Left"===r?"Right":"Bottom";return parseFloat(e["border"+r+"Width"])+parseFloat(e["border"+a+"Width"])}const N="undefined"!==typeof window&&"undefined"!==typeof document;var F=N&&!(!window.MSInputMethodContext||!document.documentMode),B=N&&/MSIE 10/.test(navigator.userAgent);function M(e){return 11===e?F:10===e?B:F||B}function L(e,t,r,a){return Math.max(t["offset"+e],t["scroll"+e],r["client"+e],r["offset"+e],r["scroll"+e],M(10)?parseInt(r["offset"+e],10)+parseInt(a["margin"+("Height"===e?"Top":"Left")],10)+parseInt(a["margin"+("Height"===e?"Bottom":"Right")],10):0)}function U(e){var t={};try{if(M(10)){t=e.getBoundingClientRect();var r=I(e,!0),n=I(e);t.top+=r,t.left+=n,t.bottom+=r,t.right+=n}else t=e.getBoundingClientRect()}catch(f){}var s,o={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},i="HTML"===e.nodeName?function(e){var t=e.body,r=e.documentElement,a=getComputedStyle(r);return{height:L("Height",t,r,a),width:L("Width",t,r,a)}}(e.ownerDocument):{},d=i.width||e.clientWidth||o.right-o.left,c=i.height||e.clientHeight||o.bottom-o.top,l=e.offsetWidth-d,u=e.offsetHeight-c;if(o.offsetLeft=e.offsetLeft||e.scrollLeft||0,o.offsetTop=e.offsetTop||e.offsetTop||0,l||u){var p=function(e,t){if(1!==e.nodeType)return[];var r=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?r[t]:r}(e);l-=O(p,"x"),u-=O(p,"y"),o.width-=l,o.height-=u}return s=o,(0,a.A)({},s,{right:s.left+s.width,bottom:s.top+s.height})}function q(e){var t=e.getBoundingClientRect();return{width:e.offsetWidth||e.scrollWidth||t.width||0,height:e.offsetHeight||e.scrollHeight||t.height||0}}function W(e){var{trigger:t,popup:r,placement:n,usePortal:s,autoAdjustOverflow:o}=e||{},i={left:0,top:0,placement:n};if(!t||!r||!document)return i;var d=Math.max(document.documentElement.clientHeight,window.innerHeight||0),c=Math.max(document.documentElement.clientWidth,window.innerWidth||0);i.placement=n;var l=I(t.ownerDocument.documentElement,!0),u=I(t.ownerDocument.documentElement),p=(0,a.A)({},U(t),q(t)),f=(0,a.A)({},U(r),q(r)),g=d-p.bottom,m=c-p.left-p.width;switch(i.top=p.top+l,i.left=p.left,s||(i.top=p.offsetTop,i.left=p.offsetLeft),n&&/^(top)/.test(n)&&(i.top-=f.height),n&&/^(right)/.test(n)&&(i.left+=p.width),n&&/^(bottom)/.test(n)&&(i.top+=p.height),n&&/^(left)/.test(n)&&(i.left-=f.width),i.placement){case"bottomLeft":case"topLeft":case"rightTop":case"leftTop":default:break;case"bottom":case"top":i.left=i.left-(f.width-p.width)/2;break;case"bottomRight":case"topRight":i.left=i.left+u+p.width-f.width;break;case"right":case"left":i.top=i.top-(f.height-p.height)/2;break;case"rightBottom":case"leftBottom":i.top=i.top-f.height+p.height}return o&&(n&&/^(top)/.test(n)&&p.topf.height&&(i.placement=n.replace(/^top/,"bottom"),i.top=i.top+f.height+p.height),n&&/^(bottom)/.test(n)&&gf.height&&(i.placement=n.replace(/^bottom/,"top"),i.top=i.top-f.height-p.height),n&&/^(right)/.test(n)&&me&&"object"===typeof e?e:{show:e,hide:e};const G=s.forwardRef(((e,t)=>{var r,{className:i,prefixCls:d="w-overlay-trigger",usePortal:c=!0,isOutside:l=!1,isClickOutside:u=!0,disabled:p=!1,isOpen:f=!1,trigger:g="hover",placement:m="top",autoAdjustOverflow:h,transitionName:y,children:b,overlay:v,onVisibleChange:x=o,onEnter:R=o}=e,w=(0,n.A)(e,H),E=(0,s.useRef)(999),j=(0,s.useRef)(),S=(0,s.useRef)(),T=(0,s.useRef)([]),k=(0,s.useRef)(null),[P,_]=(0,s.useState)(!!e.isOpen),[I,O]=(0,s.useState)({placement:m,top:0,bottom:0,left:0,right:0,zIndex:E.current});(0,s.useImperativeHandle)(t,(()=>({hide:()=>K(),show:()=>Y(),overlayDom:S})));var N=s.Children.only(b),F=(0,a.A)({},w,{placement:m,isOpen:P,dialogProps:{}}),B={};(0,s.useEffect)((()=>(u&&P&&(document&&document.addEventListener("mousedown",L),window.addEventListener("resize",M)),()=>{document&&u&&document.removeEventListener("mousedown",L),window.removeEventListener("resize",M)})),[P]),(0,s.useEffect)((()=>{e.isOpen!==P&&_(!!e.isOpen)}),[e.isOpen]),(0,s.useEffect)((()=>{var e=W({placement:I.placement||m,trigger:j.current,popup:S.current,usePortal:c,autoAdjustOverflow:h});O((0,a.A)({},e,{zIndex:E.current})),x(P)}),[P]);var M=()=>{P&&(E.current-=1,_(!1),x&&x(!1))},L=e=>{var t=S.current,r=j.current;t&&r&&e.target&&!D(t,e.target)&&!D(r,e.target)&&(E.current-=1,_(!1),x&&x(!1))};function U(){if(T.current.length>0){for(var e of T.current)window.clearTimeout(e);T.current=[]}}function q(){var t;U(),k.current="show";var r=z(e.delay);if(r.show||null!=(t=e.children)&&t.props.disabled){var a=window.setTimeout((()=>{"show"===k.current&&Y()}),r.show);clearTimeout(a),T.current.push(a)}else Y()}function G(t){if(U(),t||!e.isOutside){k.current="hide";var r=z(e.delay);if(r.hide){var a=window.setTimeout((()=>{"hide"===k.current&&K()}),r.hide);T.current.push(a)}else K()}}function V(e,t,r){var a=t.currentTarget,n=t.relatedTarget||t.nativeEvent[r],s=!0;(S.current&&D(S.current,n)||j.current&&D(j.current,n))&&(s=!1),n&&n===a||D(a,n)||e(s,t)}function K(){P&&(E.current<=999?E.current=999:E.current-=1,_(!1))}function Y(){var e;if(!P){var t=null==(e=j.current)?void 0:e.style.zIndex;t?E.current=Number(t)+1:E.current+=1,_(!0)}}return"click"!==g||p||(B.onClick=e=>{var{onClick:t}=N&&s.isValidElement(N)?N.props:{};P?K():Y(),t&&t(e,!P)}),"focus"!==g||p||(B.onFocus=()=>q()),"hover"!==g||p||(B.onMouseOver=B.onMouseEnter=e=>{V(q,e,"fromElement")},B.onMouseOut=B.onMouseLeave=e=>{V(G,e,"toElement")},F.dialogProps&&(F.dialogProps.onMouseLeave=e=>{V(G,e,"toElement")})),F.style=(0,a.A)({},F.style,I),(0,A.jsxs)(s.Fragment,{children:[(0,s.cloneElement)(N,Object.assign({},N.props,(0,a.A)({},B,{ref:j,style:(0,a.A)({},null==(r=N.props)?void 0:r.style,{zIndex:E.current}),className:[N.props.className,p?d+"-disabled":null].filter(Boolean).join(" ").trim()}))),(0,A.jsx)(C,(0,a.A)({},F,{style:(0,a.A)({},F.style,I),onEnter:function(e,t){R&&R(e,t);var r=W({placement:I.placement||m,trigger:j.current,popup:S.current,usePortal:c,autoAdjustOverflow:h});O((0,a.A)({},r,{zIndex:E.current}))},className:[d,i,I.placement].filter(Boolean).join(" ").trim(),usePortal:c,transitionName:y,isOpen:P,hasBackdrop:!1,children:(0,s.cloneElement)(v,Object.assign((0,a.A)({},v.props,{ref:S,className:[v.props&&v.props.className,m].filter(Boolean).join(" ").trim()})))}))]})}));var V=["prefixCls","className","placement","isOpen","trigger","delay","usePortal","visibleArrow","onVisibleChange"];const K=function(e){void 0===e&&(e={});var{prefixCls:t="w-tooltip",className:r,placement:s="top",isOpen:o=!1,trigger:i,delay:d,usePortal:c=!0,visibleArrow:l=!0,onVisibleChange:u}=e,p=(0,n.A)(e,V),f=[t,r,l?null:"no-arrow"].filter(Boolean).join(" ").trim();return(0,A.jsx)(G,(0,a.A)({usePortal:c,isOpen:o,trigger:i,delay:d,onVisibleChange:u,placement:s},p,{overlay:(0,A.jsxs)("div",{className:f,children:[l&&(0,A.jsx)("div",{className:t+"-arrow"}),(0,A.jsx)("div",{className:t+"-inner",children:e.content})]}),children:"object"===typeof e.children?e.children:(0,A.jsx)("span",{children:e.children})}))}},4441:()=>{const e=document,t="_dark_mode_theme_",r="permanent",a="colorschemechange",n="light",s="dark",o=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t;Object.defineProperty(e,r,{enumerable:!0,get(){const e=this.getAttribute(t);return null===e?"":e},set(e){this.setAttribute(t,e)}})};class i extends HTMLElement{static get observedAttributes(){return["mode",n,s,r]}LOCAL_NANE=(()=>t)();constructor(){super(),this.t()}connectedCallback(){o(this,"mode"),o(this,s),o(this,n),function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t;Object.defineProperty(e,r,{enumerable:!0,get(){return this.hasAttribute(t)},set(e){e?this.setAttribute(t,""):this.removeAttribute(t)}})}(this,r);const i=localStorage.getItem(t);i&&[n,s].includes(i)&&(this.mode=i,this.permanent=!0),this.permanent&&!i&&localStorage.setItem(t,this.mode);const d=[n,s].includes(i);this.permanent&&i?this.o():(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches&&(this.mode=s,this.o()),window.matchMedia&&window.matchMedia("(prefers-color-scheme: light)").matches&&(this.mode=n,this.o())),this.permanent||d||(window.matchMedia("(prefers-color-scheme: light)").onchange=e=>{this.mode=e.matches?n:s,this.o()},window.matchMedia("(prefers-color-scheme: dark)").onchange=e=>{this.mode=e.matches?s:n,this.o()});new MutationObserver(((r,n)=>{this.mode=e.documentElement.dataset.colorMode,this.permanent&&d&&(localStorage.setItem(t,this.mode),this.i("permanentcolorscheme",{permanent:this.permanent})),this.h(),this.i(a,{colorScheme:this.mode})})).observe(e.documentElement,{attributes:!0}),this.i(a,{colorScheme:this.mode}),this.h()}attributeChangedCallback(e,r,a){if("mode"===e&&r!==a&&[n,s].includes(a)){const e=localStorage.getItem(t);this.mode===e?(this.mode=a,this.h(),this.o()):this.mode&&this.mode!==e&&(this.h(),this.o())}else e!==n&&e!==s||r===a||this.h();"permanent"===e&&"boolean"===typeof this.permanent&&(this.permanent?localStorage.setItem(t,this.mode):localStorage.removeItem(t))}o(){e.documentElement.setAttribute("data-color-mode",this.mode)}h(){this.icon.textContent=this.mode===n?"\ud83c\udf12":"\ud83c\udf1e",this.text.textContent=this.mode===n?this.getAttribute(s):this.getAttribute(n),!this.text.textContent&&this.text.parentElement&&this.text&&this.text.parentElement.removeChild(this.text)}t(){var r=this.attachShadow({mode:"open"});this.label=e.createElement("span"),this.label.setAttribute("class","wrapper"),this.label.onclick=()=>{this.mode=this.mode===n?s:n,this.permanent&&localStorage.setItem(t,this.mode),this.o(),this.h()},r.appendChild(this.label),this.icon=e.createElement("span"),this.label.appendChild(this.icon),this.text=e.createElement("span"),this.label.appendChild(this.text);const a="_dark_mode_style_";if(!e.getElementById(a)){var o=e.createElement("style");o.id=a,o.textContent="\n[data-color-mode*='dark'], [data-color-mode*='dark'] body {\n color-scheme: dark;\n --color-theme-bg: #0d1117;\n --color-theme-text: #c9d1d9;\n background-color: var(--color-theme-bg);\n color: var(--color-theme-text);\n}\n\n[data-color-mode*='light'], [data-color-mode*='light'] body {\n color-scheme: light;\n --color-theme-bg: #fff;\n --color-theme-text: #24292f;\n background-color: var(--color-theme-bg);\n color: var(--color-theme-text);\n}",e.head.appendChild(o)}var i=e.createElement("style");i.textContent="\n .wrapper { cursor: pointer; user-select: none; position: relative; }\n .wrapper > span + span { margin-left: .4rem; }\n ",r.appendChild(i)}i(e,t){this.dispatchEvent(new CustomEvent(e,{bubbles:!0,composed:!0,detail:t}))}}customElements.define("dark-mode",i)},8108:(e,t)=>{"use strict";function r(e,t){return(Array.isArray(t)?t:[t]).some((function(t){return"string"===typeof t&&(t=new RegExp(t)),t.test(e||"")}))}},9050:(e,t)=>{"use strict"},144:e=>{e.exports={trueFunc:function(){return!0},falseFunc:function(){return!1}}},1761:e=>{"use strict";var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,a=Object.defineProperty,n=Object.getOwnPropertyDescriptor,s=function(e){return"function"===typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},o=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var a,n=t.call(e,"constructor"),s=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!s)return!1;for(a in e);return"undefined"===typeof a||t.call(e,a)},i=function(e,t){a&&"__proto__"===t.name?a(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},d=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(n)return n(e,r).value}return e[r]};e.exports=function e(){var t,r,a,n,c,l,u=arguments[0],p=1,f=arguments.length,g=!1;for("boolean"===typeof u&&(g=u,u=arguments[1]||{},p=2),(null==u||"object"!==typeof u&&"function"!==typeof u)&&(u={});p{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,a=/^\s*/,n=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,i=/^[;\s]*/,d=/^\s+|\s+$/g,c="";function l(e){return e?e.replace(d,c):c}e.exports=function(e,d){if("string"!==typeof e)throw new TypeError("First argument must be a string");if(!e)return[];d=d||{};var u=1,p=1;function f(e){var t=e.match(r);t&&(u+=t.length);var a=e.lastIndexOf("\n");p=~a?e.length-a:p+e.length}function g(){var e={line:u,column:p};return function(t){return t.position=new m(e),v(),t}}function m(e){this.start=e,this.end={line:u,column:p},this.source=d.source}m.prototype.content=e;var h=[];function y(t){var r=new Error(d.source+":"+u+":"+p+": "+t);if(r.reason=t,r.filename=d.source,r.line=u,r.column=p,r.source=e,!d.silent)throw r;h.push(r)}function b(t){var r=t.exec(e);if(r){var a=r[0];return f(a),e=e.slice(a.length),r}}function v(){b(a)}function x(e){var t;for(e=e||[];t=R();)!1!==t&&e.push(t);return e}function R(){var t=g();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var r=2;c!=e.charAt(r)&&("*"!=e.charAt(r)||"/"!=e.charAt(r+1));)++r;if(r+=2,c===e.charAt(r-1))return y("End of comment missing");var a=e.slice(2,r-2);return p+=2,f(a),e=e.slice(r),p+=2,t({type:"comment",comment:a})}}function w(){var e=g(),r=b(n);if(r){if(R(),!b(s))return y("property missing ':'");var a=b(o),d=e({type:"declaration",property:l(r[0].replace(t,c)),value:a?l(a[0].replace(t,c)):c});return b(i),d}}return v(),function(){var e,t=[];for(x(t);e=w();)!1!==e&&(t.push(e),x(t));return t}()}},3670:e=>{e.exports=function(e){return null!=e&&null!=e.constructor&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},9386:(e,t)=>{function r(e){let t,r=[];for(let a of e.split(",").map((e=>e.trim())))if(/^-?\d+$/.test(a))r.push(parseInt(a,10));else if(t=a.match(/^(-?\d+)(-|\.\.\.?|\u2025|\u2026|\u22EF)(-?\d+)$/)){let[e,a,n,s]=t;if(a&&s){a=parseInt(a),s=parseInt(s);const e=a{var t,r,a=e.exports={};function n(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function o(e){if(t===setTimeout)return setTimeout(e,0);if((t===n||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"===typeof setTimeout?setTimeout:n}catch(e){t=n}try{r="function"===typeof clearTimeout?clearTimeout:s}catch(e){r=s}}();var i,d=[],c=!1,l=-1;function u(){c&&i&&(c=!1,i.length?d=i.concat(d):l=-1,d.length&&p())}function p(){if(!c){var e=o(u);c=!0;for(var t=d.length;t;){for(i=d,d=[];++l1)for(var r=1;r{"use strict";e.exports=function(e){var t=this;this.Compiler=function(r){return a(r,Object.assign({},t.data("settings"),e,{extensions:t.data("toMarkdownExtensions")||[]}))}};var a=r(7503)},4014:e=>{"use strict";e.exports=function(e,t){var r,a,n=0,s=0;if("string"!==typeof t||1!==t.length)throw new Error("Expected character");e=String(e),a=e.indexOf(t),r=a;for(;-1!==a;)n++,a===r?n>s&&(s=n):n=1,r=a+1,a=e.indexOf(t,r);return s}},7503:(e,t,r)=>{e.exports=r(4127)},3927:e=>{e.exports=function e(t,r){var a,n=-1;if(r.extensions)for(;++n{e.exports=function(e,t,r){var o=r.enter("blockquote"),i=n(a(e,r),s);return o(),i};var a=r(9960),n=r(6242);function s(e,t,r){return">"+(r?"":" ")+e}},5301:(e,t,r)=>{e.exports=function(e,t,r,n){var s=-1;for(;++s{e.exports=function(e,t,r){var l,u,p,f,g=o(r),m=e.value||"",h="`"===g?"GraveAccent":"Tilde";s(e,r)?(p=r.enter("codeIndented"),l=i(m,c)):(u=a(g,Math.max(n(m,g)+1,3)),p=r.enter("codeFenced"),l=u,e.lang&&(f=r.enter("codeFencedLang"+h),l+=d(r,e.lang,{before:"`",after:" ",encode:["`"]}),f()),e.lang&&e.meta&&(f=r.enter("codeFencedMeta"+h),l+=" "+d(r,e.meta,{before:" ",after:"\n",encode:["`"]}),f()),l+="\n",m&&(l+=m+"\n"),l+=u);return p(),l};var a=r(6040),n=r(4014),s=r(3342),o=r(7156),i=r(6242),d=r(8671);function c(e,t,r){return(r?"":" ")+e}},6141:(e,t,r)=>{e.exports=function(e,t,r){var o=n(r),i='"'===o?"Quote":"Apostrophe",d=r.enter("definition"),c=r.enter("label"),l="["+s(r,a(e),{before:"[",after:"]"})+"]: ";c(),!e.url||/[ \t\r\n]/.test(e.url)?(c=r.enter("destinationLiteral"),l+="<"+s(r,e.url,{before:"<",after:">"})+">"):(c=r.enter("destinationRaw"),l+=s(r,e.url,{before:" ",after:" "}));c(),e.title&&(c=r.enter("title"+i),l+=" "+o+s(r,e.title,{before:o,after:o})+o,c());return d(),l};var a=r(6755),n=r(1989),s=r(8671)},6490:(e,t,r)=>{e.exports=s,s.peek=function(e,t,r){return r.options.emphasis||"*"};var a=r(6451),n=r(4046);function s(e,t,r){var s=a(r),o=r.enter("emphasis"),i=n(e,r,{before:s,after:s});return o(),s+i+s}},1384:(e,t,r)=>{e.exports=function(e,t,r){var o,i,d,c,l=Math.max(Math.min(6,e.depth||1),1);if(n(e,r))return o=r.enter("headingSetext"),i=r.enter("phrasing"),d=s(e,r,{before:"\n",after:"\n"}),i(),o(),d+"\n"+a(1===l?"=":"-",d.length-(Math.max(d.lastIndexOf("\r"),d.lastIndexOf("\n"))+1));c=a("#",l),o=r.enter("headingAtx"),i=r.enter("phrasing"),d=(d=s(e,r,{before:"# ",after:"\n"}))?c+" "+d:c,r.options.closeAtx&&(d+=" "+c);return i(),o(),d};var a=r(6040),n=r(723),s=r(4046)},3437:e=>{function t(e){return e.value||""}e.exports=t,t.peek=function(){return"<"}},6951:(e,t,r)=>{e.exports=s,s.peek=function(){return"!"};var a=r(6755),n=r(8671);function s(e,t,r){var s,o,i=e.referenceType,d=r.enter("imageReference"),c=r.enter("label"),l=n(r,e.alt,{before:"[",after:"]"}),u="!["+l+"]";return c(),o=r.stack,r.stack=[],c=r.enter("reference"),s=n(r,a(e),{before:"[",after:"]"}),c(),r.stack=o,d(),"full"!==i&&l&&l===s?"shortcut"!==i&&(u+="[]"):u+="["+s+"]",u}},3179:(e,t,r)=>{e.exports=s,s.peek=function(){return"!"};var a=r(1989),n=r(8671);function s(e,t,r){var s=a(r),o='"'===s?"Quote":"Apostrophe",i=r.enter("image"),d=r.enter("label"),c="!["+n(r,e.alt,{before:"[",after:"]"})+"](";return d(),!e.url&&e.title||/[ \t\r\n]/.test(e.url)?(d=r.enter("destinationLiteral"),c+="<"+n(r,e.url,{before:"<",after:">"})+">"):(d=r.enter("destinationRaw"),c+=n(r,e.url,{before:"(",after:e.title?" ":")"})),d(),e.title&&(d=r.enter("title"+o),c+=" "+s+n(r,e.title,{before:s,after:s})+s,d()),c+=")",i(),c}},6438:(e,t,r)=>{t.blockquote=r(2939),t.break=r(5301),t.code=r(1873),t.definition=r(6141),t.emphasis=r(6490),t.hardBreak=r(5301),t.heading=r(1384),t.html=r(3437),t.image=r(3179),t.imageReference=r(6951),t.inlineCode=r(1951),t.link=r(6296),t.linkReference=r(1220),t.list=r(8948),t.listItem=r(4246),t.paragraph=r(8336),t.root=r(4368),t.strong=r(2855),t.text=r(6847),t.thematicBreak=r(6749)},1951:(e,t,r)=>{e.exports=n,n.peek=function(){return"`"};var a=r(4186);function n(e,t,r){for(var n,s,o,i,d=e.value||"",c="`",l=-1;new RegExp("(^|[^`])"+c+"([^`]|$)").test(d);)c+="`";for(/[^ \r\n]/.test(d)&&(/[ \r\n`]/.test(d.charAt(0))||/[ \r\n`]/.test(d.charAt(d.length-1)))&&(d=" "+d+" ");++l{e.exports=o,o.peek=function(){return"["};var a=r(6755),n=r(4046),s=r(8671);function o(e,t,r){var o,i,d=e.referenceType,c=r.enter("linkReference"),l=r.enter("label"),u=n(e,r,{before:"[",after:"]"}),p="["+u+"]";return l(),i=r.stack,r.stack=[],l=r.enter("reference"),o=s(r,a(e),{before:"[",after:"]"}),l(),r.stack=i,c(),"full"!==d&&u&&u===o?"shortcut"!==d&&(p+="[]"):p+="["+o+"]",p}},6296:(e,t,r)=>{e.exports=i,i.peek=function(e,t,r){return n(e,r)?"<":"["};var a=r(1989),n=r(1455),s=r(4046),o=r(8671);function i(e,t,r){var i,d,c,l,u=a(r),p='"'===u?"Quote":"Apostrophe";return n(e,r)?(l=r.stack,r.stack=[],i=r.enter("autolink"),c="<"+s(e,r,{before:"<",after:">"})+">",i(),r.stack=l,c):(i=r.enter("link"),d=r.enter("label"),c="["+s(e,r,{before:"[",after:"]"})+"](",d(),!e.url&&e.title||/[ \t\r\n]/.test(e.url)?(d=r.enter("destinationLiteral"),c+="<"+o(r,e.url,{before:"<",after:">"})+">"):(d=r.enter("destinationRaw"),c+=o(r,e.url,{before:"(",after:e.title?" ":")"})),d(),e.title&&(d=r.enter("title"+p),c+=" "+u+o(r,e.title,{before:u,after:u})+u,d()),c+=")",i(),c)}},4246:(e,t,r)=>{e.exports=function(e,t,r){var d,c,l,u=n(r),p=s(r);t&&t.ordered&&(u=(t.start>-1?t.start:1)+(!1===r.options.incrementListMarker?0:t.children.indexOf(e))+".");d=u.length+1,("tab"===p||"mixed"===p&&(t&&t.spread||e.spread))&&(d=4*Math.ceil(d/4));return l=r.enter("listItem"),c=i(o(e,r),(function(e,t,r){if(t)return(r?"":a(" ",d))+e;return(r?u:u+a(" ",d-u.length))+e})),l(),c};var a=r(6040),n=r(6261),s=r(9972),o=r(9960),i=r(6242)},8948:(e,t,r)=>{e.exports=function(e,t,r){var n=r.enter("list"),s=a(e,r);return n(),s};var a=r(9960)},8336:(e,t,r)=>{e.exports=function(e,t,r){var n=r.enter("paragraph"),s=r.enter("phrasing"),o=a(e,r,{before:"\n",after:"\n"});return s(),n(),o};var a=r(4046)},4368:(e,t,r)=>{e.exports=function(e,t,r){return a(e,r)};var a=r(9960)},2855:(e,t,r)=>{e.exports=s,s.peek=function(e,t,r){return r.options.strong||"*"};var a=r(3298),n=r(4046);function s(e,t,r){var s=a(r),o=r.enter("strong"),i=n(e,r,{before:s,after:s});return o(),s+s+i+s+s}},6847:(e,t,r)=>{e.exports=function(e,t,r,n){return a(r,e.value,n)};var a=r(8671)},6749:(e,t,r)=>{e.exports=function(e,t,r){var o=a(s(r)+(r.options.ruleSpaces?" ":""),n(r));return r.options.ruleSpaces?o.slice(0,-1):o};var a=r(6040),n=r(3516),s=r(2647)},4127:(e,t,r)=>{e.exports=function(e,t){var r,u=t||{},p={enter:function(e){return p.stack.push(e),t;function t(){p.stack.pop()}},stack:[],unsafe:[],join:[],handlers:{},options:{}};n(p,{unsafe:i,join:o,handlers:s}),n(p,u),p.options.tightDefinitions&&(p.join=[l].concat(p.join));p.handle=a("type",{invalid:d,unknown:c,handlers:p.handlers}),(r=p.handle(e,null,p,{before:"\n",after:"\n"}))&&10!==r.charCodeAt(r.length-1)&&13!==r.charCodeAt(r.length-1)&&(r+="\n");return r};var a=r(5040),n=r(3927),s=r(6438),o=r(1131),i=r(341);function d(e){throw new Error("Cannot handle value `"+e+"`, expected node")}function c(e){throw new Error("Cannot handle unknown node `"+e.type+"`")}function l(e,t){if("definition"===e.type&&e.type===t.type)return 0}},1131:(e,t,r)=>{e.exports=[function(e,t,r,s){if("list"===t.type&&t.type===e.type&&Boolean(e.ordered)===Boolean(t.ordered)||"code"===t.type&&a(t,s)&&("list"===e.type||e.type===t.type&&a(e,s)))return!1;if("boolean"===typeof r.spread){if("paragraph"===e.type&&(e.type===t.type||"definition"===t.type||"heading"===t.type&&n(t,s)))return;return r.spread?1:0}}];var a=r(3342),n=r(723)},341:e=>{e.exports=[{character:"\t",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"\r",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:"\n",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"!",after:"\\[",inConstruct:"phrasing"},{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"},{atBreak:!0,before:"\\d+",character:")"},{character:")",inConstruct:"destinationRaw"},{atBreak:!0,character:"*"},{character:"*",inConstruct:"phrasing"},{atBreak:!0,character:"+"},{atBreak:!0,character:"-"},{atBreak:!0,before:"\\d+",character:".",after:"(?:[ \t\r\n]|$)"},{atBreak:!0,character:"<",after:"[!/?A-Za-z]"},{character:"<",after:"[!/?A-Za-z]",inConstruct:"phrasing"},{character:"<",inConstruct:"destinationLiteral"},{atBreak:!0,character:"="},{atBreak:!0,character:">"},{character:">",inConstruct:"destinationLiteral"},{atBreak:!0,character:"["},{character:"[",inConstruct:["phrasing","label","reference"]},{character:"\\",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"]",inConstruct:["label","reference"]},{atBreak:!0,character:"_"},{before:"[^A-Za-z]",character:"_",inConstruct:"phrasing"},{character:"_",after:"[^A-Za-z]",inConstruct:"phrasing"},{atBreak:!0,character:"`"},{character:"`",inConstruct:["codeFencedLangGraveAccent","codeFencedMetaGraveAccent","phrasing"]},{atBreak:!0,character:"~"}]},6755:(e,t,r)=>{e.exports=function(e){if(e.label||!e.identifier)return e.label||"";return e.identifier.replace(n,"$1").replace(s,o)};var a=r(8976),n=/\\([!-/:-@[-`{-~])/g,s=/&(#(\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function o(e,t){return a(t)||e}},6261:e=>{e.exports=function(e){var t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}},6451:e=>{e.exports=function(e){var t=e.options.emphasis||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}},7156:e=>{e.exports=function(e){var t=e.options.fence||"`";if("`"!==t&&"~"!==t)throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}},9972:e=>{e.exports=function(e){var t=e.options.listItemIndent||"tab";if(1===t||"1"===t)return"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}},1989:e=>{e.exports=function(e){var t=e.options.quote||'"';if('"'!==t&&"'"!==t)throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}},3516:e=>{e.exports=function(e){var 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}},2647:e=>{e.exports=function(e){var t=e.options.rule||"*";if("*"!==t&&"-"!==t&&"_"!==t)throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}},3298:e=>{e.exports=function(e){var t=e.options.strong||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}},9960:(e,t,r)=>{e.exports=function(e,t){var r,n=e.children||[],s=[],o=-1;for(;++o{e.exports=function(e,t,r){var a,n,s,o=e.children||[],i=[],d=-1,c=r.before;for(;++d0&&("\r"===c||"\n"===c)&&"html"===s.type&&(i[i.length-1]=i[i.length-1].replace(/(\r?\n|\r)$/," "),c=" "),i.push(t.handle(s,e,t,{before:c,after:a})),c=i[i.length-1].slice(-1);return i.join("")}},3342:e=>{e.exports=function(e,t){return!t.options.fences&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value)}},723:(e,t,r)=>{e.exports=function(e,t){return t.options.setext&&(!e.depth||e.depth<3)&&a(e)};var a=r(6619)},1455:(e,t,r)=>{e.exports=function(e,t){var r=a(e);return!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)};var a=r(6619)},6242:e=>{e.exports=function(e,r){var a,n=[],s=0,o=0;for(;a=t.exec(e);)i(e.slice(s,a.index)),n.push(a[0]),s=a.index+a[0].length,o++;return i(e.slice(s)),n.join("");function i(e){n.push(r(e,o,!e))}};var t=/\r?\n|\r/g},4186:e=>{e.exports=function(e){var t,r;e._compiled||(t=e.before?"(?:"+e.before+")":"",r=e.after?"(?:"+e.after+")":"",e.atBreak&&(t="[\\r\\n][\\t ]*"+t),e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(r||""),"g"));return e._compiled}},9753:e=>{function t(e,t,r){var a;if(!t)return r;for("string"===typeof t&&(t=[t]),a=-1;++a{e.exports=function(e,t,r){var i,d,c,l,u,p,f,g,m=(r.before||"")+(t||"")+(r.after||""),h=[],y=[],b={},v=-1;for(;++v=g||c+1{"use strict";function t(e){return e&&(e.value||e.alt||e.title||"children"in e&&r(e.children)||"length"in e&&r(e))||""}function r(e){for(var r=[],a=-1;++a{"use strict";var t;e.exports=function(e){var r,a="&"+e+";";if((t=t||document.createElement("i")).innerHTML=a,59===(r=t.textContent).charCodeAt(r.length-1)&&"semi"!==e)return!1;return r!==a&&r}},5040:e=>{"use strict";e.exports=function(e,a){var n=a||{};function s(a){var n=s.invalid,o=s.handlers;return a&&r.call(a,e)&&(n=r.call(o,a[e])?o[a[e]]:s.unknown),(n||t).apply(this,arguments)}return s.handlers=n.handlers||{},s.invalid=n.invalid,s.unknown=n.unknown,s};var t=Function.prototype,r={}.hasOwnProperty},3521:(e,t,r)=>{"use strict";var a=r(8617),n=r(2155),s=r(4957);e.exports=a().use(n).use(s).freeze()},6157:e=>{"use strict";e.exports=function(e){if(e)throw e}},9580:e=>{"use strict";e.exports=e=>{if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}},5117:(e,t,r)=>{"use strict";e.exports=function(e,t,r){"string"!==typeof t&&(r=t,t=void 0);return function(e){var t=e||{},r=function(e,t){var r=-1;for(;++r-1&&(B.call(this,e),M.call(this,e))}function U(){g("atHardBreak",!0)}function q(){var e=this.resume();this.stack[this.stack.length-1].value=e}function W(){var e=this.resume();this.stack[this.stack.length-1].value=e}function H(){var e=this.resume();this.stack[this.stack.length-1].value=e}function z(){var e=this.stack[this.stack.length-1];m("inReference")?(e.type+="Reference",e.referenceType=m("referenceType")||"shortcut",delete e.url,delete e.title):(delete e.identifier,delete e.label,delete e.referenceType),g("referenceType")}function G(){var e=this.stack[this.stack.length-1];m("inReference")?(e.type+="Reference",e.referenceType=m("referenceType")||"shortcut",delete e.url,delete e.title):(delete e.identifier,delete e.label,delete e.referenceType),g("referenceType")}function V(e){this.stack[this.stack.length-2].identifier=o(this.sliceSerialize(e)).toLowerCase()}function K(){var e=this.stack[this.stack.length-1],t=this.resume();this.stack[this.stack.length-1].label=t,g("inReference",!0),"link"===this.stack[this.stack.length-1].type?this.stack[this.stack.length-1].children=e.children:this.stack[this.stack.length-1].alt=t}function Y(){var e=this.resume();this.stack[this.stack.length-1].url=e}function J(){var e=this.resume();this.stack[this.stack.length-1].title=e}function X(){g("inReference")}function $(){g("referenceType","collapsed")}function Q(e){var t=this.resume();this.stack[this.stack.length-1].label=t,this.stack[this.stack.length-1].identifier=o(this.sliceSerialize(e)).toLowerCase(),g("referenceType","full")}function Z(e){g("characterReferenceType",e.type)}function ee(e){var t,r,a=this.sliceSerialize(e),n=m("characterReferenceType");n?(t=i(a,"characterReferenceMarkerNumeric"===n?10:16),g("characterReferenceType")):t=u(a),(r=this.stack.pop()).value+=t,r.position.end=h(e.end)}function te(e){M.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)}function re(e){M.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)}function ae(){return{type:"blockquote",children:[]}}function ne(){return{type:"code",lang:null,meta:null,value:""}}function se(){return{type:"inlineCode",value:""}}function oe(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function ie(){return{type:"emphasis",children:[]}}function de(){return{type:"heading",depth:void 0,children:[]}}function ce(){return{type:"break"}}function le(){return{type:"html",value:""}}function ue(){return{type:"image",title:null,url:"",alt:null}}function pe(){return{type:"link",title:null,url:"",children:[]}}function fe(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}function ge(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}function me(){return{type:"paragraph",children:[]}}function he(){return{type:"strong",children:[]}}function ye(){return{type:"text",value:""}}function be(){return{type:"thematicBreak"}}}(r)(l(d(r).document().write(c()(e,t,!0))))};var a=r(439),n=r(3175),s=r(4915),o=r(8419),i=r(7012),d=r(1140),c=r(2961),l=r(1188),u=r(1580),p=r(3215);function f(e,t){var r,a;for(r in t)a=s.call(e,r)?e[r]:e[r]={},"canContainEols"===r||"transforms"===r?e[r]=[].concat(a,t[r]):Object.assign(a,t[r])}},1900:(e,t,r)=>{"use strict";e.exports=r(5117)},439:e=>{"use strict";function t(e){return e&&(e.value||e.alt||e.title||"children"in e&&r(e.children)||"length"in e&&r(e))||""}function r(e){for(var r=[],a=-1;++a{"use strict";var t;e.exports=function(e){var r,a="&"+e+";";if((t=t||document.createElement("i")).innerHTML=a,59===(r=t.textContent).charCodeAt(r.length-1)&&"semi"!==e)return!1;return r!==a&&r}},2155:(e,t,r)=>{"use strict";e.exports=function(e){var t=this;this.Parser=function(r){return a(r,Object.assign({},t.data("settings"),e,{extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]}))}};var a=r(1900)},8952:(e,t,r)=>{"use strict";var a=r(7222);e.exports=s,s.wrap=a;var n=[].slice;function s(){var e=[],t={run:function(){var t=-1,r=n.call(arguments,0,-1),s=arguments[arguments.length-1];if("function"!==typeof s)throw new Error("Expected function as last argument, not "+s);(function o(i){var d=e[++t],c=n.call(arguments,0).slice(1),l=r.length,u=-1;if(i)s(i);else{for(;++u{"use strict";var t=[].slice;e.exports=function(e,r){var a;return function(){var r,o=t.call(arguments,0),i=e.length>o.length;i&&o.push(n);try{r=e.apply(null,o)}catch(d){if(i&&a)throw d;return n(d)}i||(r&&"function"===typeof r.then?r.then(s,n):r instanceof Error?n(r):s(r))};function n(){a||(a=!0,r.apply(null,arguments))}function s(e){n(null,e)}}},8617:(e,t,r)=>{"use strict";var a=r(6157),n=r(3670),s=r(1761),o=r(9580),i=r(8952),d=r(2063);e.exports=function e(){var t,r=[],n=i(),b={},v=-1;return x.data=function(e,r){if("string"===typeof e)return 2===arguments.length?(m("data",t),b[e]=r,x):l.call(b,e)&&b[e]||null;if(e)return m("data",t),b=e,x;return b},x.freeze=R,x.attachers=r,x.use=function(e){var a;if(m("use",t),null===e||void 0===e);else if("function"===typeof e)l.apply(null,arguments);else{if("object"!==typeof e)throw new Error("Expected usable value, not `"+e+"`");"length"in e?d(e):n(e)}a&&(b.settings=s(b.settings||{},a));return x;function n(e){d(e.plugins),e.settings&&(a=s(a||{},e.settings))}function i(e){if("function"===typeof e)l(e);else{if("object"!==typeof e)throw new Error("Expected usable value, not `"+e+"`");"length"in e?l.apply(null,e):n(e)}}function d(e){var t=-1;if(null===e||void 0===e);else{if("object"!==typeof e||!("length"in e))throw new Error("Expected a list of plugins, not `"+e+"`");for(;++t{"use strict";var t={}.hasOwnProperty;function r(e){return e&&"object"===typeof e||(e={}),n(e.line)+":"+n(e.column)}function a(e){return e&&"object"===typeof e||(e={}),r(e.start)+"-"+r(e.end)}function n(e){return e&&"number"===typeof e?e:1}e.exports=function(e){if(!e||"object"!==typeof e)return"";if(t.call(e,"position")||t.call(e,"type"))return a(e.position);if(t.call(e,"start")||t.call(e,"end"))return a(e);if(t.call(e,"line")||t.call(e,"column"))return r(e);return""}},4449:(e,t,r)=>{"use strict";var a=r(3215);function n(){}e.exports=o,n.prototype=Error.prototype,o.prototype=new n;var s=o.prototype;function o(e,t,r){var n,s,o;"string"===typeof t&&(r=t,t=null),n=function(e){var t,r=[null,null];"string"===typeof e&&(-1===(t=e.indexOf(":"))?r[1]=e:(r[0]=e.slice(0,t),r[1]=e.slice(t+1)));return r}(r),s=a(t)||"1:1",o={start:{line:null,column:null},end:{line:null,column:null}},t&&t.position&&(t=t.position),t&&(t.start?(o=t,t=t.start):o.start=t),e.stack&&(this.stack=e.stack,e=e.message),this.message=e,this.name=s,this.reason=e,this.line=t?t.line:null,this.column=t?t.column:null,this.location=o,this.source=n[0],this.ruleId=n[1]}s.file="",s.name="",s.reason="",s.message="",s.stack="",s.fatal=null,s.column=null,s.line=null},2063:(e,t,r)=>{"use strict";e.exports=r(207)},2088:(e,t,r)=>{"use strict";var a=r(7986),n=r(5657),s=r(3670);e.exports=d;var o={}.hasOwnProperty,i=["history","path","basename","stem","extname","dirname"];function d(e){var t,r;if(e){if("string"===typeof e||s(e))e={contents:e};else if("message"in e&&"messages"in e)return e}else e={};if(!(this instanceof d))return new d(e);for(this.data={},this.messages=[],this.history=[],this.cwd=n.cwd(),r=-1;++r-1)throw new Error("`"+t+"` cannot be a path: did not expect `"+a.sep+"`")}function l(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function u(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}d.prototype.toString=function(e){return(this.contents||"").toString(e)},Object.defineProperty(d.prototype,"path",{get:function(){return this.history[this.history.length-1]},set:function(e){l(e,"path"),this.path!==e&&this.history.push(e)}}),Object.defineProperty(d.prototype,"dirname",{get:function(){return"string"===typeof this.path?a.dirname(this.path):void 0},set:function(e){u(this.path,"dirname"),this.path=a.join(e||"",this.basename)}}),Object.defineProperty(d.prototype,"basename",{get:function(){return"string"===typeof this.path?a.basename(this.path):void 0},set:function(e){l(e,"basename"),c(e,"basename"),this.path=a.join(this.dirname||"",e)}}),Object.defineProperty(d.prototype,"extname",{get:function(){return"string"===typeof this.path?a.extname(this.path):void 0},set:function(e){if(c(e,"extname"),u(this.path,"extname"),e){if(46!==e.charCodeAt(0))throw new Error("`extname` must start with `.`");if(e.indexOf(".",1)>-1)throw new Error("`extname` cannot contain multiple dots")}this.path=a.join(this.dirname,this.stem+(e||""))}}),Object.defineProperty(d.prototype,"stem",{get:function(){return"string"===typeof this.path?a.basename(this.path,this.extname):void 0},set:function(e){l(e,"stem"),c(e,"stem"),this.path=a.join(this.dirname||"",e+(this.extname||""))}})},207:(e,t,r)=>{"use strict";var a=r(4449),n=r(2088);e.exports=n,n.prototype.message=function(e,t,r){var n=new a(e,t,r);this.path&&(n.name=this.path+":"+n.name,n.file=this.path);return n.fatal=!1,this.messages.push(n),n},n.prototype.info=function(){var e=this.message.apply(this,arguments);return e.fatal=null,e},n.prototype.fail=function(){var e=this.message.apply(this,arguments);throw e.fatal=!0,e}},7986:(e,t)=>{"use strict";function r(e){if("string"!==typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}t.basename=function(e,t){var a,n,s,o,i=0,d=-1;if(void 0!==t&&"string"!==typeof t)throw new TypeError('"ext" argument must be a string');if(r(e),a=e.length,void 0===t||!t.length||t.length>e.length){for(;a--;)if(47===e.charCodeAt(a)){if(s){i=a+1;break}}else d<0&&(s=!0,d=a+1);return d<0?"":e.slice(i,d)}if(t===e)return"";n=-1,o=t.length-1;for(;a--;)if(47===e.charCodeAt(a)){if(s){i=a+1;break}}else n<0&&(s=!0,n=a+1),o>-1&&(e.charCodeAt(a)===t.charCodeAt(o--)?o<0&&(d=a):(o=-1,d=n));i===d?d=n:d<0&&(d=e.length);return e.slice(i,d)},t.dirname=function(e){var t,a,n;if(r(e),!e.length)return".";t=-1,n=e.length;for(;--n;)if(47===e.charCodeAt(n)){if(a){t=n;break}}else a||(a=!0);return t<0?47===e.charCodeAt(0)?"/":".":1===t&&47===e.charCodeAt(0)?"//":e.slice(0,t)},t.extname=function(e){var t,a,n,s=-1,o=0,i=-1,d=0;r(e),n=e.length;for(;n--;)if(47!==(a=e.charCodeAt(n)))i<0&&(t=!0,i=n+1),46===a?s<0?s=n:1!==d&&(d=1):s>-1&&(d=-1);else if(t){o=n+1;break}if(s<0||i<0||0===d||1===d&&s===i-1&&s===o+1)return"";return e.slice(s,i)},t.join=function(){var e,t=-1;for(;++t2){if((a=n.lastIndexOf("/"))!==n.length-1){a<0?(n="",s=0):s=(n=n.slice(0,a)).length-1-n.lastIndexOf("/"),o=d,i=0;continue}}else if(n.length){n="",s=0,o=d,i=0;continue}t&&(n=n.length?n+"/..":"..",s=2)}else n.length?n+="/"+e.slice(o+1,d):n=e.slice(o+1,d),s=d-o-1;o=d,i=0}else 46===r&&i>-1?i++:i=-1}return n}(e,!t),a.length||t||(a=".");a.length&&47===e.charCodeAt(e.length-1)&&(a+="/");return t?"/"+a:a}(e)},t.sep="/"},5657:(e,t)=>{"use strict";t.cwd=function(){return"/"}},6040:e=>{"use strict";var t,r="";e.exports=function(e,a){if("string"!==typeof e)throw new TypeError("expected a string");if(1===a)return e;if(2===a)return e+e;var n=e.length*a;if(t!==e||"undefined"===typeof t)t=e,r="";else if(r.length>=n)return r.substr(0,n);for(;n>r.length&&a>1;)1&a&&(r+=e),a>>=1,e+=e;return r=(r+=e).substr(0,n)}},1863:(e,t)=>{"use strict";function r(e,t){var r=e.length;e.push(t);e:for(;0>>1,n=e[a];if(!(0>>1;as(d,r))cs(l,d)?(e[a]=l,e[c]=r,a=c):(e[a]=d,e[i]=r,a=i);else{if(!(cs(l,r)))break e;e[a]=l,e[c]=r,a=c}}}return t}function s(e,t){var r=e.sortIndex-t.sortIndex;return 0!==r?r:e.id-t.id}if("object"===typeof performance&&"function"===typeof performance.now){var o=performance;t.unstable_now=function(){return o.now()}}else{var i=Date,d=i.now();t.unstable_now=function(){return i.now()-d}}var c=[],l=[],u=1,p=null,f=3,g=!1,m=!1,h=!1,y="function"===typeof setTimeout?setTimeout:null,b="function"===typeof clearTimeout?clearTimeout:null,v="undefined"!==typeof setImmediate?setImmediate:null;function x(e){for(var t=a(l);null!==t;){if(null===t.callback)n(l);else{if(!(t.startTime<=e))break;n(l),t.sortIndex=t.expirationTime,r(c,t)}t=a(l)}}function R(e){if(h=!1,x(e),!m)if(null!==a(c))m=!0,I(w);else{var t=a(l);null!==t&&O(R,t.startTime-e)}}function w(e,r){m=!1,h&&(h=!1,b(T),T=-1),g=!0;var s=f;try{for(x(r),p=a(c);null!==p&&(!(p.expirationTime>r)||e&&!C());){var o=p.callback;if("function"===typeof o){p.callback=null,f=p.priorityLevel;var i=o(p.expirationTime<=r);r=t.unstable_now(),"function"===typeof i?p.callback=i:p===a(c)&&n(c),x(r)}else n(c);p=a(c)}if(null!==p)var d=!0;else{var u=a(l);null!==u&&O(R,u.startTime-r),d=!1}return d}finally{p=null,f=s,g=!1}}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var E,j=!1,S=null,T=-1,A=5,k=-1;function C(){return!(t.unstable_now()-ke||125o?(e.sortIndex=s,r(l,e),null===a(c)&&e===a(l)&&(h?(b(T),T=-1):h=!0,O(R,s-o))):(e.sortIndex=i,r(c,e),m||g||(m=!0,I(w))),e},t.unstable_shouldYield=C,t.unstable_wrapCallback=function(e){var t=f;return function(){var r=f;f=t;try{return e.apply(this,arguments)}finally{f=r}}}},7710:(e,t,r)=>{"use strict";e.exports=r(1863)},3569:e=>{e.exports=function(e,t,r,a){var n=r?r.call(a,e,t):void 0;if(void 0!==n)return!!n;if(e===t)return!0;if("object"!==typeof e||!e||"object"!==typeof t||!t)return!1;var s=Object.keys(e),o=Object.keys(t);if(s.length!==o.length)return!1;for(var i=Object.prototype.hasOwnProperty.bind(t),d=0;de.length)&&(t=e.length);for(var r=0,a=Array(t);r=e.length?{done:!0}:{done:!1,value:e[a++]}}}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 f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function g(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&&j(e,t)}function m(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(h=function(){return!!e})()}function y(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function b(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a,n,s,o,i=[],d=!0,c=!1;try{if(s=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;d=!1}else for(;!(d=(a=s.call(r)).done)&&(i.push(a.value),i.length!==t);d=!0);}catch(e){c=!0,n=e}finally{try{if(!d&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw n}}return i}}function v(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function x(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function R(e,t){if(null==e)return{};var r,a,n=w(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a=0;--s){var o=this.tryEntries[s],i=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var d=a.call(o,"catchLoc"),c=a.call(o,"finallyLoc");if(d&&c){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),P(r),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var a=r.completion;if("throw"===a.type){var n=a.arg;P(r)}return n}}throw Error("illegal catch attempt")},delegateYield:function(t,r,a){return this.delegate={iterator:D(t),resultName:r,nextLoc:a},"next"===this.method&&(this.arg=e),h}},t}function j(e,t){return j=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},j(e,t)}function S(e,t){return s(e)||b(e,t)||P(e,t)||v()}function T(e,t){return t||(t=e.slice(0)),e.raw=t,e}function A(e){return o(e)||y(e)||P(e)||x()}function k(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,t);if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function C(e){var t=k(e,"string");return"symbol"==typeof t?t:t+""}function P(e,t){if(e){if("string"==typeof e)return n(e,t);var r={}.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}}function _(e){var t="function"==typeof Map?new Map:void 0;return _=function(e){if(null===e||!m(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return c(e,arguments,f(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),j(r,e)},_(e)}var D="undefined"!==typeof r.g?r.g:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{};function I(){throw new Error("setTimeout has not been defined")}function O(){throw new Error("clearTimeout has not been defined")}var N=I,F=O;function B(e){if(N===setTimeout)return setTimeout(e,0);if((N===I||!N)&&setTimeout)return N=setTimeout,setTimeout(e,0);try{return N(e,0)}catch(t){try{return N.call(null,e,0)}catch(t){return N.call(this,e,0)}}}function M(e){if(F===clearTimeout)return clearTimeout(e);if((F===O||!F)&&clearTimeout)return F=clearTimeout,clearTimeout(e);try{return F(e)}catch(t){try{return F.call(null,e)}catch(t){return F.call(this,e)}}}"function"===typeof D.setTimeout&&(N=setTimeout),"function"===typeof D.clearTimeout&&(F=clearTimeout);var L,U=[],q=!1,W=-1;function H(){q&&L&&(q=!1,L.length?U=L.concat(U):W=-1,U.length&&z())}function z(){if(!q){var e=B(H);q=!0;for(var t=U.length;t;){for(L=U,U=[];++W1)for(var r=1;rn.length)return!1;for(var o=0,i=s.length-1;oe)return!1;if((r+=t[a+1])>=e)return!0}return!1}function vo(e){return e<65?36===e:e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&go.test(String.fromCharCode(e)):bo(e,ho)))}function xo(e){return e<48?36===e:e<58||!(e<65)&&(e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&mo.test(String.fromCharCode(e)):bo(e,ho)||bo(e,yo))))}function Ro(e){for(var t=!0,r=0;r=48&&e<=57},Io={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},Oo={bin:function(e){return 48===e||49===e},oct:function(e){return e>=48&&e<=55},dec:function(e){return e>=48&&e<=57},hex:function(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}};function No(e,t,r,a,n,s){for(var o=r,i=a,d=n,c="",l=null,u=r,p=t.length;;){if(r>=p){s.unterminated(o,i,d),c+=t.slice(u,r);break}var f=t.charCodeAt(r);if(Fo(e,f,t,r)){c+=t.slice(u,r);break}if(92===f){c+=t.slice(u,r);var g=Bo(t,r,a,n,"template"===e,s);null!==g.ch||l?c+=g.ch:l={pos:r,lineStart:a,curLine:n},r=g.pos,a=g.lineStart,n=g.curLine,u=r}else 8232===f||8233===f?(++n,a=++r):10===f||13===f?"template"===e?(c+=t.slice(u,r)+"\n",++r,13===f&&10===t.charCodeAt(r)&&++r,++n,u=a=r):s.unterminated(o,i,d):++r}return{pos:r,str:c,firstInvalidLoc:l,lineStart:a,curLine:n,containsInvalid:!!l}}function Fo(e,t,r,a){return"template"===e?96===t||36===t&&123===r.charCodeAt(a+1):t===("double"===e?34:39)}function Bo(e,t,r,a,n,s){var o=!n;t++;var i=function(e){return{pos:t,ch:e,lineStart:r,curLine:a}},d=e.charCodeAt(t++);switch(d){case 110:return i("\n");case 114:return i("\r");case 120:var c,l=Mo(e,t,r,a,2,!1,o,s);return c=l.code,t=l.pos,i(null===c?null:String.fromCharCode(c));case 117:var u,p=Uo(e,t,r,a,o,s);return u=p.code,t=p.pos,i(null===u?null:String.fromCodePoint(u));case 116:return i("\t");case 98:return i("\b");case 118:return i("\v");case 102:return i("\f");case 13:10===e.charCodeAt(t)&&++t;case 10:r=t,++a;case 8232:case 8233:return i("");case 56:case 57:if(n)return i(null);s.strictNumericEscape(t-1,r,a);default:if(d>=48&&d<=55){var f=t-1,g=/^[0-7]+/.exec(e.slice(f,t+2))[0],m=parseInt(g,8);m>255&&(g=g.slice(0,-1),m=parseInt(g,8)),t+=g.length-1;var h=e.charCodeAt(t);if("0"!==g||56===h||57===h){if(n)return i(null);s.strictNumericEscape(f,r,a)}return i(String.fromCharCode(m))}return i(String.fromCharCode(d))}}function Mo(e,t,r,a,n,s,o,i){var d,c=t,l=Lo(e,t,r,a,16,n,s,!1,i,!o);return d=l.n,t=l.pos,null===d&&(o?i.invalidEscapeSequence(c,r,a):t=c-1),{code:d,pos:t}}function Lo(e,t,r,a,n,s,o,i,d,c){for(var l=t,u=16===n?Io.hex:Io.decBinOct,p=16===n?Oo.hex:10===n?Oo.dec:8===n?Oo.oct:Oo.bin,f=!1,g=0,m=0,h=null==s?1/0:s;m=97?y-97+10:y>=65?y-65+10:Do(y)?y-48:1/0)>=n){if(b<=9&&c)return{n:null,pos:t};if(b<=9&&d.invalidDigit(t,r,a,n))b=0;else{if(!o)break;b=0,f=!0}}++t,g=g*n+b}else{var v=e.charCodeAt(t-1),x=e.charCodeAt(t+1);if(i){if(Number.isNaN(x)||!p(x)||u.has(v)||u.has(x)){if(c)return{n:null,pos:t};d.unexpectedNumericSeparator(t,r,a)}}else{if(c)return{n:null,pos:t};d.numericSeparatorInEscapeSequence(t,r,a)}++t}}return t===l||null!=s&&t-l!==s||f?{n:null,pos:t}:{n:g,pos:t}}function Uo(e,t,r,a,n,s){var o;if(123===e.charCodeAt(t)){var i=Mo(e,++t,r,a,e.indexOf("}",t)-t,!0,n,s);if(o=i.code,t=i.pos,++t,null!==o&&o>1114111){if(!n)return{code:null,pos:t};s.invalidCodePoint(t,r,a)}}else{var d=Mo(e,t,r,a,4,!1,n,s);o=d.code,t=d.pos}return{code:o,pos:t}}var qo=["consequent","body","alternate"],Wo=["body","expressions"],Ho=["left","init"],zo=["leadingComments","trailingComments","innerComments"],Go=["||","&&","??"],Vo=["++","--"],Ko=[">","<",">=","<="],Yo=["==","===","!=","!=="],Jo=[].concat(Yo,["in","instanceof"]),Xo=[].concat(A(Jo),Ko),$o=["-","/","%","*","**","&","|",">>",">>>","<<","^"],Qo=["+"].concat($o,A(Xo),["|>"]),Zo=["=","+="].concat(A($o.map((function(e){return e+"="}))),A(Go.map((function(e){return e+"="})))),ei=["delete","!"],ti=["+","-","~"],ri=["typeof"],ai=["void","throw"].concat(ei,ti,ri),ni={optional:["typeAnnotation","typeParameters","returnType"],force:["start","loc","end"]},si=Symbol.for("var used to be block scoped"),oi=Symbol.for("should not be considered a local binding"),ii={},di={},ci={},li={},ui={},pi={},fi={};function gi(e){return Array.isArray(e)?"array":null===e?"null":typeof e}function mi(e){return{validate:e}}function hi(){return mi(ji.apply(void 0,arguments))}function yi(e){return{validate:e,optional:!0}}function bi(){return{validate:ji.apply(void 0,arguments),optional:!0}}function vi(e){return Ci(Ti("array"),wi(e))}function xi(){return vi(ji.apply(void 0,arguments))}function Ri(){return mi(xi.apply(void 0,arguments))}function wi(e){var t=ve.env.BABEL_TYPES_8_BREAKING?yd:function(){};function r(r,a,n){if(Array.isArray(n))for(var s=0;s=2&&"type"in t[0]&&"array"===t[0].type&&!("each"in t[1]))throw new Error('An assertValueType("array") validator can only be followed by an assertEach(...) validator.');return a}var Pi=new Set(["aliases","builder","deprecatedAlias","fields","inherits","visitor","validate"]),_i=new Set(["default","optional","deprecated","validate"]),Di={};function Ii(){for(var e=arguments.length,t=new Array(e),r=0;r0:d&&"object"===typeof d)throw new Error("field defaults can only be primitives or empty arrays currently");a[o]={default:Array.isArray(d)?[]:d,optional:i.optional,deprecated:i.deprecated,validate:i.validate}}for(var c=t.visitor||r.visitor||[],l=t.aliases||r.aliases||[],u=t.builder||r.builder||t.visitor||[],f=0,g=Object.keys(t);f+s+1)throw new TypeError("RestElement must be last element of "+n)}:void 0}),Ni("ReturnStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:ji("Expression"),optional:!0}}}),Ni("SequenceExpression",{visitor:["expressions"],fields:{expressions:Ri("Expression")},aliases:["Expression"]}),Ni("ParenthesizedExpression",{visitor:["expression"],aliases:["Expression","ExpressionWrapper"],fields:{expression:{validate:ji("Expression")}}}),Ni("SwitchCase",{visitor:["test","consequent"],fields:{test:{validate:ji("Expression"),optional:!0},consequent:Ri("Statement")}}),Ni("SwitchStatement",{visitor:["discriminant","cases"],aliases:["Statement","BlockParent","Scopable"],fields:{discriminant:{validate:ji("Expression")},cases:Ri("SwitchCase")}}),Ni("ThisExpression",{aliases:["Expression"]}),Ni("ThrowStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:ji("Expression")}}}),Ni("TryStatement",{visitor:["block","handler","finalizer"],aliases:["Statement"],fields:{block:{validate:ve.env.BABEL_TYPES_8_BREAKING?Ci(ji("BlockStatement"),Object.assign((function(e){if(!e.handler&&!e.finalizer)throw new TypeError("TryStatement expects either a handler or finalizer, or both")}),{oneOfNodeTypes:["BlockStatement"]})):ji("BlockStatement")},handler:{optional:!0,validate:ji("CatchClause")},finalizer:{optional:!0,validate:ji("BlockStatement")}}}),Ni("UnaryExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!0},argument:{validate:ji("Expression")},operator:{validate:Ei.apply(void 0,A(ai))}},visitor:["argument"],aliases:["UnaryLike","Expression"]}),Ni("UpdateExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!1},argument:{validate:ve.env.BABEL_TYPES_8_BREAKING?ji("Identifier","MemberExpression"):ji("Expression")},operator:{validate:Ei.apply(void 0,A(Vo))}},visitor:["argument"],aliases:["Expression"]}),Ni("VariableDeclaration",{builder:["kind","declarations"],visitor:["declarations"],aliases:["Statement","Declaration"],fields:{declare:{validate:Ti("boolean"),optional:!0},kind:{validate:Ei("var","let","const","using","await using")},declarations:Ri("VariableDeclarator")},validate:ve.env.BABEL_TYPES_8_BREAKING?function(){var e=ji("Identifier");return function(t,r,a){if(uo("ForXStatement",t,{left:a})){if(1!==a.declarations.length)throw new TypeError("Exactly one VariableDeclarator is required in the VariableDeclaration of a "+t.type)}else a.declarations.forEach((function(t){t.init||e(t,"id",t.id)}))}}():void 0}),Ni("VariableDeclarator",{visitor:["id","init"],fields:{id:{validate:ve.env.BABEL_TYPES_8_BREAKING?ji("Identifier","ArrayPattern","ObjectPattern"):ji("LVal")},definite:{optional:!0,validate:Ti("boolean")},init:{optional:!0,validate:ji("Expression")}}}),Ni("WhileStatement",{visitor:["test","body"],aliases:["Statement","BlockParent","Loop","While","Scopable"],fields:{test:{validate:ji("Expression")},body:{validate:ji("Statement")}}}),Ni("WithStatement",{visitor:["object","body"],aliases:["Statement"],fields:{object:{validate:ji("Expression")},body:{validate:ji("Statement")}}}),Ni("AssignmentPattern",{visitor:["left","right","decorators"],builder:["left","right"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},Li(),{left:{validate:ji("Identifier","ObjectPattern","ArrayPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression")},right:{validate:ji("Expression")},decorators:{validate:xi("Decorator"),optional:!0}})}),Ni("ArrayPattern",{visitor:["elements","typeAnnotation"],builder:["elements"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},Li(),{elements:{validate:Ci(Ti("array"),wi(Si("null","PatternLike","LVal")))}})}),Ni("ArrowFunctionExpression",{builder:["params","body","async"],visitor:["typeParameters","params","returnType","body"],aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},Fi(),Bi(),{expression:{validate:Ti("boolean")},body:{validate:ji("BlockStatement","Expression")},predicate:{validate:ji("DeclaredPredicate","InferredPredicate"),optional:!0}})}),Ni("ClassBody",{visitor:["body"],fields:{body:Ri("ClassMethod","ClassPrivateMethod","ClassProperty","ClassPrivateProperty","ClassAccessorProperty","TSDeclareMethod","TSIndexSignature","StaticBlock")}}),Ni("ClassExpression",{builder:["id","superClass","body","decorators"],visitor:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body"],aliases:["Scopable","Class","Expression"],fields:{id:{validate:ji("Identifier"),optional:!0},typeParameters:{validate:ji("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:ji("ClassBody")},superClass:{optional:!0,validate:ji("Expression")},superTypeParameters:{validate:ji("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:xi("TSExpressionWithTypeArguments","ClassImplements"),optional:!0},decorators:{validate:xi("Decorator"),optional:!0},mixins:{validate:ji("InterfaceExtends"),optional:!0}}}),Ni("ClassDeclaration",{inherits:"ClassExpression",aliases:["Scopable","Class","Statement","Declaration"],fields:{id:{validate:ji("Identifier"),optional:!0},typeParameters:{validate:ji("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:ji("ClassBody")},superClass:{optional:!0,validate:ji("Expression")},superTypeParameters:{validate:ji("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:xi("TSExpressionWithTypeArguments","ClassImplements"),optional:!0},decorators:{validate:xi("Decorator"),optional:!0},mixins:{validate:ji("InterfaceExtends"),optional:!0},declare:{validate:Ti("boolean"),optional:!0},abstract:{validate:Ti("boolean"),optional:!0}},validate:ve.env.BABEL_TYPES_8_BREAKING?function(){var e=ji("Identifier");return function(t,r,a){uo("ExportDefaultDeclaration",t)||e(a,"id",a.id)}}():void 0});var Ui={attributes:{optional:!0,validate:xi("ImportAttribute")},assertions:{deprecated:!0,optional:!0,validate:xi("ImportAttribute")}};Ni("ExportAllDeclaration",{builder:["source"],visitor:["source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:Object.assign({source:{validate:ji("StringLiteral")},exportKind:yi(Ei("type","value"))},Ui)}),Ni("ExportDefaultDeclaration",{visitor:["declaration"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:{declaration:hi("TSDeclareFunction","FunctionDeclaration","ClassDeclaration","Expression"),exportKind:yi(Ei("value"))}}),Ni("ExportNamedDeclaration",{builder:["declaration","specifiers","source"],visitor:ve.env?["declaration","specifiers","source","attributes"]:["declaration","specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:Object.assign({declaration:{optional:!0,validate:ve.env.BABEL_TYPES_8_BREAKING?Ci(ji("Declaration"),Object.assign((function(e,t,r){if(r&&e.specifiers.length)throw new TypeError("Only declaration or specifiers is allowed on ExportNamedDeclaration");if(r&&e.source)throw new TypeError("Cannot export a declaration from a source")}),{oneOfNodeTypes:["Declaration"]})):ji("Declaration")}},Ui,{specifiers:{default:[],validate:vi(function(){var e=ji("ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"),t=ji("ExportSpecifier");return ve.env.BABEL_TYPES_8_BREAKING?Object.assign((function(r,a,n){(r.source?e:t)(r,a,n)}),{oneOfNodeTypes:["ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"]}):e}())},source:{validate:ji("StringLiteral"),optional:!0},exportKind:yi(Ei("type","value"))})}),Ni("ExportSpecifier",{visitor:["local","exported"],aliases:["ModuleSpecifier"],fields:{local:{validate:ji("Identifier")},exported:{validate:ji("Identifier","StringLiteral")},exportKind:{validate:Ei("type","value"),optional:!0}}}),Ni("ForOfStatement",{visitor:["left","right","body"],builder:["left","right","body","await"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:function(){if(!ve.env.BABEL_TYPES_8_BREAKING)return ji("VariableDeclaration","LVal");var e=ji("VariableDeclaration"),t=ji("Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression");return Object.assign((function(r,a,n){uo("VariableDeclaration",n)?e(r,a,n):t(r,a,n)}),{oneOfNodeTypes:["VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"]})}()},right:{validate:ji("Expression")},body:{validate:ji("Statement")},await:{default:!1}}}),Ni("ImportDeclaration",{builder:["specifiers","source"],visitor:["specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration"],fields:Object.assign({},Ui,{module:{optional:!0,validate:Ti("boolean")},phase:{default:null,validate:Ei("source","defer")},specifiers:Ri("ImportSpecifier","ImportDefaultSpecifier","ImportNamespaceSpecifier"),source:{validate:ji("StringLiteral")},importKind:{validate:Ei("type","typeof","value"),optional:!0}})}),Ni("ImportDefaultSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:ji("Identifier")}}}),Ni("ImportNamespaceSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:ji("Identifier")}}}),Ni("ImportSpecifier",{visitor:["imported","local"],builder:["local","imported"],aliases:["ModuleSpecifier"],fields:{local:{validate:ji("Identifier")},imported:{validate:ji("Identifier","StringLiteral")},importKind:{validate:Ei("type","typeof","value"),optional:!0}}}),Ni("ImportExpression",{visitor:["source","options"],aliases:["Expression"],fields:{phase:{default:null,validate:Ei("source","defer")},source:{validate:ji("Expression")},options:{validate:ji("Expression"),optional:!0}}}),Ni("MetaProperty",{visitor:["meta","property"],aliases:["Expression"],fields:{meta:{validate:ve.env.BABEL_TYPES_8_BREAKING?Ci(ji("Identifier"),Object.assign((function(e,t,r){var a;switch(r.name){case"function":a="sent";break;case"new":a="target";break;case"import":a="meta"}if(!uo("Identifier",e.property,{name:a}))throw new TypeError("Unrecognised MetaProperty")}),{oneOfNodeTypes:["Identifier"]})):ji("Identifier")},property:{validate:ji("Identifier")}}});var qi=function(){return{abstract:{validate:Ti("boolean"),optional:!0},accessibility:{validate:Ei("public","private","protected"),optional:!0},static:{default:!1},override:{default:!1},computed:{default:!1},optional:{validate:Ti("boolean"),optional:!0},key:{validate:Ci(function(){var e=ji("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),t=ji("Expression");return function(r,a,n){(r.computed?t:e)(r,a,n)}}(),ji("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression"))}}},Wi=function(){return Object.assign({},Fi(),qi(),{params:Ri("Identifier","Pattern","RestElement","TSParameterProperty"),kind:{validate:Ei("get","set","method","constructor"),default:"method"},access:{validate:Ci(Ti("string"),Ei("public","private","protected")),optional:!0},decorators:{validate:xi("Decorator"),optional:!0}})};Ni("ClassMethod",{aliases:["Function","Scopable","BlockParent","FunctionParent","Method"],builder:["kind","key","params","body","computed","static","generator","async"],visitor:["decorators","key","typeParameters","params","returnType","body"],fields:Object.assign({},Wi(),Bi(),{body:{validate:ji("BlockStatement")}})}),Ni("ObjectPattern",{visitor:["properties","typeAnnotation","decorators"],builder:["properties"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},Li(),{properties:Ri("RestElement","ObjectProperty")})}),Ni("SpreadElement",{visitor:["argument"],aliases:["UnaryLike"],deprecatedAlias:"SpreadProperty",fields:{argument:{validate:ji("Expression")}}}),Ni("Super",{aliases:["Expression"]}),Ni("TaggedTemplateExpression",{visitor:["tag","typeParameters","quasi"],builder:["tag","quasi"],aliases:["Expression"],fields:{tag:{validate:ji("Expression")},quasi:{validate:ji("TemplateLiteral")},typeParameters:{validate:ji("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}}),Ni("TemplateElement",{builder:["value","tail"],fields:{value:{validate:Ci(Ai({raw:{validate:Ti("string")},cooked:{validate:Ti("string"),optional:!0}}),(function(e){var t=e.value.raw,r=!1,a=function(){throw new Error("Internal @babel/types error.")},n=No("template",t,0,0,0,{unterminated:function(){r=!0},strictNumericEscape:a,invalidEscapeSequence:a,numericSeparatorInEscapeSequence:a,unexpectedNumericSeparator:a,invalidDigit:a,invalidCodePoint:a}),s=n.str,o=n.firstInvalidLoc;if(!r)throw new Error("Invalid raw");e.value.cooked=o?null:s}))},tail:{default:!1}}}),Ni("TemplateLiteral",{visitor:["quasis","expressions"],aliases:["Expression","Literal"],fields:{quasis:Ri("TemplateElement"),expressions:{validate:Ci(Ti("array"),wi(ji("Expression","TSType")),(function(e,t,r){if(e.quasis.length!==r.length+1)throw new TypeError("Number of "+e.type+" quasis should be exactly one more than the number of expressions.\nExpected "+(r.length+1)+" quasis but got "+e.quasis.length)}))}}}),Ni("YieldExpression",{builder:["argument","delegate"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{delegate:{validate:ve.env.BABEL_TYPES_8_BREAKING?Ci(Ti("boolean"),Object.assign((function(e,t,r){if(r&&!e.argument)throw new TypeError("Property delegate of YieldExpression cannot be true if there is no argument")}),{type:"boolean"})):Ti("boolean"),default:!1},argument:{optional:!0,validate:ji("Expression")}}}),Ni("AwaitExpression",{builder:["argument"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{argument:{validate:ji("Expression")}}}),Ni("Import",{aliases:["Expression"]}),Ni("BigIntLiteral",{builder:["value"],fields:{value:{validate:Ti("string")}},aliases:["Expression","Pureish","Literal","Immutable"]}),Ni("ExportNamespaceSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:ji("Identifier")}}}),Ni("OptionalMemberExpression",{builder:["object","property","computed","optional"],visitor:["object","property"],aliases:["Expression"],fields:{object:{validate:ji("Expression")},property:{validate:function(){var e=ji("Identifier"),t=ji("Expression"),r=Object.assign((function(r,a,n){(r.computed?t:e)(r,a,n)}),{oneOfNodeTypes:["Expression","Identifier"]});return r}()},computed:{default:!1},optional:{validate:ve.env.BABEL_TYPES_8_BREAKING?Ci(Ti("boolean"),ki()):Ti("boolean")}}}),Ni("OptionalCallExpression",{visitor:["callee","arguments","typeParameters","typeArguments"],builder:["callee","arguments","optional"],aliases:["Expression"],fields:{callee:{validate:ji("Expression")},arguments:Ri("Expression","SpreadElement","ArgumentPlaceholder"),optional:{validate:ve.env.BABEL_TYPES_8_BREAKING?Ci(Ti("boolean"),ki()):Ti("boolean")},typeArguments:{validate:ji("TypeParameterInstantiation"),optional:!0},typeParameters:{validate:ji("TSTypeParameterInstantiation"),optional:!0}}}),Ni("ClassProperty",{visitor:["decorators","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property"],fields:Object.assign({},qi(),{value:{validate:ji("Expression"),optional:!0},definite:{validate:Ti("boolean"),optional:!0},typeAnnotation:{validate:ji("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:xi("Decorator"),optional:!0},readonly:{validate:Ti("boolean"),optional:!0},declare:{validate:Ti("boolean"),optional:!0},variance:{validate:ji("Variance"),optional:!0}})}),Ni("ClassAccessorProperty",{visitor:["decorators","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property","Accessor"],fields:Object.assign({},qi(),{key:{validate:Ci(function(){var e=ji("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","PrivateName"),t=ji("Expression");return function(r,a,n){(r.computed?t:e)(r,a,n)}}(),ji("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression","PrivateName"))},value:{validate:ji("Expression"),optional:!0},definite:{validate:Ti("boolean"),optional:!0},typeAnnotation:{validate:ji("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:xi("Decorator"),optional:!0},readonly:{validate:Ti("boolean"),optional:!0},declare:{validate:Ti("boolean"),optional:!0},variance:{validate:ji("Variance"),optional:!0}})}),Ni("ClassPrivateProperty",{visitor:["decorators","key","typeAnnotation","value"],builder:["key","value","decorators","static"],aliases:["Property","Private"],fields:{key:{validate:ji("PrivateName")},value:{validate:ji("Expression"),optional:!0},typeAnnotation:{validate:ji("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:xi("Decorator"),optional:!0},static:{validate:Ti("boolean"),default:!1},readonly:{validate:Ti("boolean"),optional:!0},definite:{validate:Ti("boolean"),optional:!0},variance:{validate:ji("Variance"),optional:!0}}}),Ni("ClassPrivateMethod",{builder:["kind","key","params","body","static"],visitor:["decorators","key","typeParameters","params","returnType","body"],aliases:["Function","Scopable","BlockParent","FunctionParent","Method","Private"],fields:Object.assign({},Wi(),Bi(),{kind:{validate:Ei("get","set","method"),default:"method"},key:{validate:ji("PrivateName")},body:{validate:ji("BlockStatement")}})}),Ni("PrivateName",{visitor:["id"],aliases:["Private"],fields:{id:{validate:ji("Identifier")}}}),Ni("StaticBlock",{visitor:["body"],fields:{body:Ri("Statement")},aliases:["Scopable","BlockParent","FunctionParent"]});var Hi=Ii("Flow"),zi=function(e){var t="DeclareClass"===e;Hi(e,{builder:["id","typeParameters","extends","body"],visitor:["id","typeParameters","extends"].concat(A(t?["mixins","implements"]:[]),["body"]),aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({id:hi("Identifier"),typeParameters:bi("TypeParameterDeclaration"),extends:yi(xi("InterfaceExtends"))},t?{mixins:yi(xi("InterfaceExtends")),implements:yi(xi("ClassImplements"))}:{},{body:hi("ObjectTypeAnnotation")})})};Hi("AnyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),Hi("ArrayTypeAnnotation",{visitor:["elementType"],aliases:["FlowType"],fields:{elementType:hi("FlowType")}}),Hi("BooleanTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),Hi("BooleanLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:mi(Ti("boolean"))}}),Hi("NullLiteralTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),Hi("ClassImplements",{visitor:["id","typeParameters"],fields:{id:hi("Identifier"),typeParameters:bi("TypeParameterInstantiation")}}),zi("DeclareClass"),Hi("DeclareFunction",{visitor:["id"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:hi("Identifier"),predicate:bi("DeclaredPredicate")}}),zi("DeclareInterface"),Hi("DeclareModule",{builder:["id","body","kind"],visitor:["id","body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:hi("Identifier","StringLiteral"),body:hi("BlockStatement"),kind:yi(Ei("CommonJS","ES"))}}),Hi("DeclareModuleExports",{visitor:["typeAnnotation"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{typeAnnotation:hi("TypeAnnotation")}}),Hi("DeclareTypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:hi("Identifier"),typeParameters:bi("TypeParameterDeclaration"),right:hi("FlowType")}}),Hi("DeclareOpaqueType",{visitor:["id","typeParameters","supertype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:hi("Identifier"),typeParameters:bi("TypeParameterDeclaration"),supertype:bi("FlowType"),impltype:bi("FlowType")}}),Hi("DeclareVariable",{visitor:["id"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:hi("Identifier")}}),Hi("DeclareExportDeclaration",{visitor:["declaration","specifiers","source","attributes"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({declaration:bi("Flow"),specifiers:yi(xi("ExportSpecifier","ExportNamespaceSpecifier")),source:bi("StringLiteral"),default:yi(Ti("boolean"))},Ui)}),Hi("DeclareExportAllDeclaration",{visitor:["source","attributes"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({source:hi("StringLiteral"),exportKind:yi(Ei("type","value"))},Ui)}),Hi("DeclaredPredicate",{visitor:["value"],aliases:["FlowPredicate"],fields:{value:hi("Flow")}}),Hi("ExistsTypeAnnotation",{aliases:["FlowType"]}),Hi("FunctionTypeAnnotation",{visitor:["typeParameters","params","rest","returnType"],aliases:["FlowType"],fields:{typeParameters:bi("TypeParameterDeclaration"),params:Ri("FunctionTypeParam"),rest:bi("FunctionTypeParam"),this:bi("FunctionTypeParam"),returnType:hi("FlowType")}}),Hi("FunctionTypeParam",{visitor:["name","typeAnnotation"],fields:{name:bi("Identifier"),typeAnnotation:hi("FlowType"),optional:yi(Ti("boolean"))}}),Hi("GenericTypeAnnotation",{visitor:["id","typeParameters"],aliases:["FlowType"],fields:{id:hi("Identifier","QualifiedTypeIdentifier"),typeParameters:bi("TypeParameterInstantiation")}}),Hi("InferredPredicate",{aliases:["FlowPredicate"]}),Hi("InterfaceExtends",{visitor:["id","typeParameters"],fields:{id:hi("Identifier","QualifiedTypeIdentifier"),typeParameters:bi("TypeParameterInstantiation")}}),zi("InterfaceDeclaration"),Hi("InterfaceTypeAnnotation",{visitor:["extends","body"],aliases:["FlowType"],fields:{extends:yi(xi("InterfaceExtends")),body:hi("ObjectTypeAnnotation")}}),Hi("IntersectionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:mi(xi("FlowType"))}}),Hi("MixedTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),Hi("EmptyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),Hi("NullableTypeAnnotation",{visitor:["typeAnnotation"],aliases:["FlowType"],fields:{typeAnnotation:hi("FlowType")}}),Hi("NumberLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:mi(Ti("number"))}}),Hi("NumberTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),Hi("ObjectTypeAnnotation",{visitor:["properties","indexers","callProperties","internalSlots"],aliases:["FlowType"],builder:["properties","indexers","callProperties","internalSlots","exact"],fields:{properties:mi(xi("ObjectTypeProperty","ObjectTypeSpreadProperty")),indexers:{validate:xi("ObjectTypeIndexer"),optional:!0,default:[]},callProperties:{validate:xi("ObjectTypeCallProperty"),optional:!0,default:[]},internalSlots:{validate:xi("ObjectTypeInternalSlot"),optional:!0,default:[]},exact:{validate:Ti("boolean"),default:!1},inexact:yi(Ti("boolean"))}}),Hi("ObjectTypeInternalSlot",{visitor:["id","value"],builder:["id","value","optional","static","method"],aliases:["UserWhitespacable"],fields:{id:hi("Identifier"),value:hi("FlowType"),optional:mi(Ti("boolean")),static:mi(Ti("boolean")),method:mi(Ti("boolean"))}}),Hi("ObjectTypeCallProperty",{visitor:["value"],aliases:["UserWhitespacable"],fields:{value:hi("FlowType"),static:mi(Ti("boolean"))}}),Hi("ObjectTypeIndexer",{visitor:["variance","id","key","value"],builder:["id","key","value","variance"],aliases:["UserWhitespacable"],fields:{id:bi("Identifier"),key:hi("FlowType"),value:hi("FlowType"),static:mi(Ti("boolean")),variance:bi("Variance")}}),Hi("ObjectTypeProperty",{visitor:["key","value","variance"],aliases:["UserWhitespacable"],fields:{key:hi("Identifier","StringLiteral"),value:hi("FlowType"),kind:mi(Ei("init","get","set")),static:mi(Ti("boolean")),proto:mi(Ti("boolean")),optional:mi(Ti("boolean")),variance:bi("Variance"),method:mi(Ti("boolean"))}}),Hi("ObjectTypeSpreadProperty",{visitor:["argument"],aliases:["UserWhitespacable"],fields:{argument:hi("FlowType")}}),Hi("OpaqueType",{visitor:["id","typeParameters","supertype","impltype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:hi("Identifier"),typeParameters:bi("TypeParameterDeclaration"),supertype:bi("FlowType"),impltype:hi("FlowType")}}),Hi("QualifiedTypeIdentifier",{visitor:["qualification","id"],builder:["id","qualification"],fields:{id:hi("Identifier"),qualification:hi("Identifier","QualifiedTypeIdentifier")}}),Hi("StringLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:mi(Ti("string"))}}),Hi("StringTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),Hi("SymbolTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),Hi("ThisTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),Hi("TupleTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:mi(xi("FlowType"))}}),Hi("TypeofTypeAnnotation",{visitor:["argument"],aliases:["FlowType"],fields:{argument:hi("FlowType")}}),Hi("TypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:hi("Identifier"),typeParameters:bi("TypeParameterDeclaration"),right:hi("FlowType")}}),Hi("TypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:hi("FlowType")}}),Hi("TypeCastExpression",{visitor:["expression","typeAnnotation"],aliases:["ExpressionWrapper","Expression"],fields:{expression:hi("Expression"),typeAnnotation:hi("TypeAnnotation")}}),Hi("TypeParameter",{visitor:["bound","default","variance"],fields:{name:mi(Ti("string")),bound:bi("TypeAnnotation"),default:bi("FlowType"),variance:bi("Variance")}}),Hi("TypeParameterDeclaration",{visitor:["params"],fields:{params:mi(xi("TypeParameter"))}}),Hi("TypeParameterInstantiation",{visitor:["params"],fields:{params:mi(xi("FlowType"))}}),Hi("UnionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:mi(xi("FlowType"))}}),Hi("Variance",{builder:["kind"],fields:{kind:mi(Ei("minus","plus"))}}),Hi("VoidTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),Hi("EnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{id:hi("Identifier"),body:hi("EnumBooleanBody","EnumNumberBody","EnumStringBody","EnumSymbolBody")}}),Hi("EnumBooleanBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:mi(Ti("boolean")),members:Ri("EnumBooleanMember"),hasUnknownMembers:mi(Ti("boolean"))}}),Hi("EnumNumberBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:mi(Ti("boolean")),members:Ri("EnumNumberMember"),hasUnknownMembers:mi(Ti("boolean"))}}),Hi("EnumStringBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:mi(Ti("boolean")),members:Ri("EnumStringMember","EnumDefaultedMember"),hasUnknownMembers:mi(Ti("boolean"))}}),Hi("EnumSymbolBody",{aliases:["EnumBody"],visitor:["members"],fields:{members:Ri("EnumDefaultedMember"),hasUnknownMembers:mi(Ti("boolean"))}}),Hi("EnumBooleanMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:hi("Identifier"),init:hi("BooleanLiteral")}}),Hi("EnumNumberMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:hi("Identifier"),init:hi("NumericLiteral")}}),Hi("EnumStringMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:hi("Identifier"),init:hi("StringLiteral")}}),Hi("EnumDefaultedMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:hi("Identifier")}}),Hi("IndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:hi("FlowType"),indexType:hi("FlowType")}}),Hi("OptionalIndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:hi("FlowType"),indexType:hi("FlowType"),optional:mi(Ti("boolean"))}});var Gi=Ii("JSX");Gi("JSXAttribute",{visitor:["name","value"],aliases:["Immutable"],fields:{name:{validate:ji("JSXIdentifier","JSXNamespacedName")},value:{optional:!0,validate:ji("JSXElement","JSXFragment","StringLiteral","JSXExpressionContainer")}}}),Gi("JSXClosingElement",{visitor:["name"],aliases:["Immutable"],fields:{name:{validate:ji("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")}}}),Gi("JSXElement",{builder:["openingElement","closingElement","children","selfClosing"],visitor:["openingElement","children","closingElement"],aliases:["Immutable","Expression"],fields:Object.assign({openingElement:{validate:ji("JSXOpeningElement")},closingElement:{optional:!0,validate:ji("JSXClosingElement")},children:Ri("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")},{selfClosing:{validate:Ti("boolean"),optional:!0}})}),Gi("JSXEmptyExpression",{}),Gi("JSXExpressionContainer",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:ji("Expression","JSXEmptyExpression")}}}),Gi("JSXSpreadChild",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:ji("Expression")}}}),Gi("JSXIdentifier",{builder:["name"],fields:{name:{validate:Ti("string")}}}),Gi("JSXMemberExpression",{visitor:["object","property"],fields:{object:{validate:ji("JSXMemberExpression","JSXIdentifier")},property:{validate:ji("JSXIdentifier")}}}),Gi("JSXNamespacedName",{visitor:["namespace","name"],fields:{namespace:{validate:ji("JSXIdentifier")},name:{validate:ji("JSXIdentifier")}}}),Gi("JSXOpeningElement",{builder:["name","attributes","selfClosing"],visitor:["name","attributes"],aliases:["Immutable"],fields:{name:{validate:ji("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")},selfClosing:{default:!1},attributes:Ri("JSXAttribute","JSXSpreadAttribute"),typeParameters:{validate:ji("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}}),Gi("JSXSpreadAttribute",{visitor:["argument"],fields:{argument:{validate:ji("Expression")}}}),Gi("JSXText",{aliases:["Immutable"],builder:["value"],fields:{value:{validate:Ti("string")}}}),Gi("JSXFragment",{builder:["openingFragment","closingFragment","children"],visitor:["openingFragment","children","closingFragment"],aliases:["Immutable","Expression"],fields:{openingFragment:{validate:ji("JSXOpeningFragment")},closingFragment:{validate:ji("JSXClosingFragment")},children:Ri("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")}}),Gi("JSXOpeningFragment",{aliases:["Immutable"]}),Gi("JSXClosingFragment",{aliases:["Immutable"]});for(var Vi=["Identifier","StringLiteral","Expression","Statement","Declaration","BlockStatement","ClassBody","Pattern"],Ki={Declaration:["Statement"],Pattern:["PatternLike","LVal"]},Yi=0,Ji=Vi;Yi=Number.MAX_SAFE_INTEGER?Ex.uid=0:Ex.uid++};var Sx=Function.call.bind(Object.prototype.toString);function Tx(e){return"[object RegExp]"===Sx(e)}function Ax(e){if("object"!==typeof e||null===e||"[object Object]"!==Object.prototype.toString.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||null===Object.getPrototypeOf(t)}function kx(e){if(void 0===e)return qd("undefined");if(!0===e||!1===e)return Kd(e);if(null===e)return Vd();if("string"===typeof e)return zd(e);var t;if("number"===typeof e)return t=Number.isFinite(e)?Gd(Math.abs(e)):wd("/",Number.isNaN(e)?Gd(0):Gd(1),Gd(0)),(e<0||Object.is(e,-0))&&(t=uc("-",t)),t;if(Tx(e))return Yd(e.source,/\/([a-z]*)$/.exec(e.toString())[1]);if(Array.isArray(e))return xd(e.map(kx));if(Ax(e)){for(var r=[],a=0,n=Object.keys(e);a1?e:e[0]})),aR=tR((function(e){return e})),nR=tR((function(e){if(0===e.length)throw new Error("Found nothing to return.");if(e.length>1)throw new Error("Found multiple statements but wanted one");return e[0]})),sR={code:function(e){return"(\n"+e+"\n)"},validate:function(e){if(e.program.body.length>1)throw new Error("Found multiple statements but wanted one");if(0===sR.unwrap(e).start)throw new Error("Parse result included parens.")},unwrap:function(e){var t=S(e.program.body,1)[0];return eR(t),t.expression}},oR={code:function(e){return e},validate:function(){},unwrap:function(e){return e.program}},iR=["placeholderWhitelist","placeholderPattern","preserveComments","syntacticPlaceholders"];function dR(e,t){var r=t.placeholderWhitelist,a=void 0===r?e.placeholderWhitelist:r,n=t.placeholderPattern,s=void 0===n?e.placeholderPattern:n,o=t.preserveComments,i=void 0===o?e.preserveComments:o,d=t.syntacticPlaceholders,c=void 0===d?e.syntacticPlaceholders:d;return{parser:Object.assign({},e.parser,t.parser),placeholderWhitelist:a,placeholderPattern:s,preserveComments:i,syntacticPlaceholders:c}}function cR(e){if(null!=e&&"object"!==typeof e)throw new Error("Unknown template options.");var t=e||{},r=t.placeholderWhitelist,a=t.placeholderPattern,n=t.preserveComments,s=t.syntacticPlaceholders,o=w(t,iR);if(null!=r&&!(r instanceof Set))throw new Error("'.placeholderWhitelist' must be a Set, null, or undefined");if(null!=a&&!(a instanceof RegExp)&&!1!==a)throw new Error("'.placeholderPattern' must be a RegExp, false, null, or undefined");if(null!=n&&"boolean"!==typeof n)throw new Error("'.preserveComments' must be a boolean, null, or undefined");if(null!=s&&"boolean"!==typeof s)throw new Error("'.syntacticPlaceholders' must be a boolean, null, or undefined");if(!0===s&&(null!=r||null!=a))throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'");return{parser:o,placeholderWhitelist:r||void 0,placeholderPattern:null==a?void 0:a,preserveComments:null==n?void 0:n,syntacticPlaceholders:null==s?void 0:s}}function lR(e){if(Array.isArray(e))return e.reduce((function(e,t,r){return e["$"+r]=t,e}),{});if("object"===typeof e||null==e)return e||void 0;throw new Error("Template replacements must be an array, object, null, or undefined")}var uR=u((function(e,t,r){this.line=void 0,this.column=void 0,this.index=void 0,this.line=e,this.column=t,this.index=r})),pR=u((function(e,t){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=e,this.end=t}));function fR(e,t){var r=e.line,a=e.column,n=e.index;return new uR(r,a+t,n+t)}var gR,mR="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",hR={ImportMetaOutsideModule:{message:"import.meta may appear only with 'sourceType: \"module\"'",code:mR},ImportOutsideModule:{message:"'import' and 'export' may appear only with 'sourceType: \"module\"'",code:mR}},yR={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},bR=function(e){return"UpdateExpression"===e.type?yR.UpdateExpression[""+e.prefix]:yR[e.type]},vR={AccessorIsGenerator:function(e){return"A "+e.kind+"ter cannot be a generator."},ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncFunction:"'await' is only allowed within async functions.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:function(e){return"Missing initializer in "+e.kind+" declaration."},DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeferImportRequiresNamespace:'Only `import defer * as x from "./module"` is valid.',DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:function(e){return"`"+e.exportName+"` has already been exported. Exported identifiers must be unique."},DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",DynamicImportPhaseRequiresImportExpressions:function(e){return"'import."+e.phase+"(...)' can only be parsed when using the 'createImportExpressions' option."},ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:function(e){return"A string literal cannot be used as an exported binding without `from`.\n- Did you mean `export { '"+e.localName+"' as '"+e.exportName+"' } from 'some-module'`?"},ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:function(e){return"'"+("ForInStatement"===e.type?"for-in":"for-of")+"' loop variable declaration may not have an initializer."},ForInUsing:"For-in loop may not start with 'using' declaration.",ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:function(e){return"Unsyntactic "+("BreakStatement"===e.type?"break":"continue")+"."},IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportAttributesUseAssert:"The `assert` keyword in import attributes is deprecated and it has been replaced by the `with` keyword. You can enable the `deprecatedImportAssert` parser plugin to suppress this error.",ImportBindingIsString:function(e){return'A string literal cannot be used as an imported binding.\n- Did you mean `import { "'+e.importName+'" as foo }`?'},ImportCallArity:"`import()` requires exactly one or two arguments.",ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:function(e){return"Expected number in radix "+e.radix+"."},InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:function(e){return"Escape sequence in keyword "+e.reservedWord+"."},InvalidIdentifier:function(e){return"Invalid identifier "+e.identifierName+"."},InvalidLhs:function(e){var t=e.ancestor;return"Invalid left-hand side in "+bR(t)+"."},InvalidLhsBinding:function(e){var t=e.ancestor;return"Binding invalid left-hand side in "+bR(t)+"."},InvalidLhsOptionalChaining:function(e){var t=e.ancestor;return"Invalid optional chaining in the left-hand side of "+bR(t)+"."},InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:function(e){return"Unexpected character '"+e.unexpected+"'."},InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:function(e){return"Private name #"+e.identifierName+" is not defined."},InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:function(e){return"Label '"+e.labelName+"' is already declared."},LetInLexicalBinding:"'let' is disallowed as a lexically bound name.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:function(e){return"This experimental syntax requires enabling the parser plugin: "+e.missingPlugin.map((function(e){return JSON.stringify(e)})).join(", ")+"."},MissingOneOfPlugins:function(e){return"This experimental syntax requires enabling one of the following parser plugin(s): "+e.missingPlugin.map((function(e){return JSON.stringify(e)})).join(", ")+"."},MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:function(e){return'Duplicate key "'+e.key+'" is not allowed in module attributes.'},ModuleExportNameHasLoneSurrogate:function(e){return"An export name cannot include a lone surrogate, found '\\u"+e.surrogateCharCode.toString(16)+"'."},ModuleExportUndefined:function(e){return"Export '"+e.localName+"' is not defined."},MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PrivateInExpectedIn:function(e){var t=e.identifierName;return"Private names are only allowed in property accesses (`obj.#"+t+"`) or in `in` expressions (`#"+t+" in obj`)."},PrivateNameRedeclaration:function(e){return"Duplicate private name #"+e.identifierName+"."},RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",RecordNoProto:"'__proto__' is not allowed in Record expressions.",RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level or inside a block.",SloppyFunctionAnnexB:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",SourcePhaseImportRequiresDefault:'Only `import source x from "./module"` is valid.',StaticPrototype:"Classes may not have static property named prototype.",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:function(e){return"Unexpected keyword '"+e.keyword+"'."},UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:function(e){return"Unexpected reserved word '"+e.reservedWord+"'."},UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:function(e){var t=e.expected,r=e.unexpected;return"Unexpected token"+(r?" '"+r+"'.":"")+(t?', expected "'+t+'"':"")},UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script`.",UnsupportedBind:"Binding should be performed on object property.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:function(e){var t=e.target;return"The only valid meta property for "+t+" is "+t+"."+e.onlyValidPropertyName+"."},UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",UsingDeclarationExport:"Using declaration cannot be exported.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:function(e){return"Identifier '"+e.identifierName+"' has already been declared."},YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."},xR={StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:function(e){return"Assigning to '"+e.referenceName+"' in strict mode."},StrictEvalArgumentsBinding:function(e){return"Binding '"+e.bindingName+"' in strict mode."},StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block.",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'.",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode.",StrictWith:"'with' in strict mode."},RR=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),wR={PipeBodyIsTighter:"Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",PipeTopicRequiresHackPipes:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:function(e){var t=e.token;return"Invalid topic token "+t+". In order to use "+t+' as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "'+t+'" }.'},PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:function(e){var t=e.type;return"Hack-style pipe body cannot be an unparenthesized "+bR({type:t})+"; please wrap it in parentheses."},PipelineBodyNoArrow:'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.',PipelineBodySequenceExpression:"Pipeline body may not be a comma-separated sequence expression.",PipelineHeadSequenceExpression:"Pipeline head should not be a comma-separated sequence expression.",PipelineTopicUnused:"Pipeline is in topic style but does not use topic reference.",PrimaryTopicNotAllowed:"Topic reference was used in a lexical context without topic binding.",PrimaryTopicRequiresSmartPipeline:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.'},ER=["message"];function jR(e,t,r){Object.defineProperty(e,t,{enumerable:!1,configurable:!0,value:r})}function SR(e){var t=e.toMessage,r=e.code,a=e.reasonCode,n=e.syntaxPlugin,s="MissingPlugin"===a||"MissingOneOfPlugins"===a,o={AccessorCannotDeclareThisParameter:"AccesorCannotDeclareThisParameter",AccessorCannotHaveTypeParameters:"AccesorCannotHaveTypeParameters",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference",SetAccessorCannotHaveOptionalParameter:"SetAccesorCannotHaveOptionalParameter",SetAccessorCannotHaveRestParameter:"SetAccesorCannotHaveRestParameter",SetAccessorCannotHaveReturnType:"SetAccesorCannotHaveReturnType"};return o[a]&&(a=o[a]),function e(o,i){var d=new SyntaxError;return d.code=r,d.reasonCode=a,d.loc=o,d.pos=o.index,d.syntaxPlugin=n,s&&(d.missingPlugin=i.missingPlugin),jR(d,"clone",(function(t){var r;void 0===t&&(t={});var a=null!=(r=t.loc)?r:o,n=a.line,s=a.column,d=a.index;return e(new uR(n,s,d),Object.assign({},i,t.details))})),jR(d,"details",i),Object.defineProperty(d,"message",{configurable:!0,get:function(){var e=t(i)+" ("+o.line+":"+o.column+")";return this.message=e,e},set:function(e){Object.defineProperty(this,"message",{value:e,writable:!0})}}),d}}function TR(e,t){if(Array.isArray(e))return function(t){return TR(t,e[0])};for(var r={},a=function(){var a=s[n],o=e[a],i="string"===typeof o?{message:function(){return o}}:"function"===typeof o?{message:o}:o,d=i.message,c=w(i,ER),l="string"===typeof d?function(){return d}:d;r[a]=SR(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:a,toMessage:l},t?{syntaxPlugin:t}:{},c))},n=0,s=Object.keys(e);n0&&o.start===n.start&&this.resetStartLocation(n,a)}return n},r.parseSubscript=function(t,r,a,n){var s=e.prototype.parseSubscript.call(this,t,r,a,n);if(n.optionalChainMember){if("OptionalMemberExpression"!==s.type&&"OptionalCallExpression"!==s.type||(s.type=s.type.substring(8)),n.stop){var o=this.startNodeAtNode(s);return o.expression=s,this.finishNode(o,"ChainExpression")}}else"MemberExpression"!==s.type&&"CallExpression"!==s.type||(s.optional=!1);return s},r.isOptionalMemberExpression=function(t){return"ChainExpression"===t.type?"MemberExpression"===t.expression.type:e.prototype.isOptionalMemberExpression.call(this,t)},r.hasPropertyAsPrivateName=function(t){return"ChainExpression"===t.type&&(t=t.expression),e.prototype.hasPropertyAsPrivateName.call(this,t)},r.isObjectProperty=function(e){return"Property"===e.type&&"init"===e.kind&&!e.method},r.isObjectMethod=function(e){return"Property"===e.type&&(e.method||"get"===e.kind||"set"===e.kind)},r.finishNodeAt=function(t,r,a){return PR(e.prototype.finishNodeAt.call(this,t,r,a))},r.resetStartLocation=function(t,r){e.prototype.resetStartLocation.call(this,t,r),PR(t)},r.resetEndLocation=function(t,r){void 0===r&&(r=this.state.lastTokEndLoc),e.prototype.resetEndLocation.call(this,t,r),PR(t)},u(t)}(e)},DR=u((function(e,t){this.token=void 0,this.preserveSpace=void 0,this.token=e,this.preserveSpace=!!t})),IR={brace:new DR("{"),j_oTag:new DR("...",!0)};IR.template=new DR("`",!0);var OR=!0,NR=!0,FR=!0,BR=!0,MR=!0,LR=!0,UR=u((function(e,t){void 0===t&&(t={}),this.label=void 0,this.keyword=void 0,this.beforeExpr=void 0,this.startsExpr=void 0,this.rightAssociative=void 0,this.isLoop=void 0,this.isAssign=void 0,this.prefix=void 0,this.postfix=void 0,this.binop=void 0,this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.rightAssociative=!!t.rightAssociative,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=null!=t.binop?t.binop:null,this.updateContext=null})),qR=new Map;function WR(e,t){void 0===t&&(t={}),t.keyword=e;var r=$R(e,t);return qR.set(e,r),r}function HR(e,t){return $R(e,{beforeExpr:OR,binop:t})}var zR=-1,GR=[],VR=[],KR=[],YR=[],JR=[],XR=[];function $R(e,t){var r,a,n,s;return void 0===t&&(t={}),++zR,VR.push(e),KR.push(null!=(r=t.binop)?r:-1),YR.push(null!=(a=t.beforeExpr)&&a),JR.push(null!=(n=t.startsExpr)&&n),XR.push(null!=(s=t.prefix)&&s),GR.push(new UR(e,t)),zR}function QR(e,t){var r,a,n,s;return void 0===t&&(t={}),++zR,qR.set(e,zR),VR.push(e),KR.push(null!=(r=t.binop)?r:-1),YR.push(null!=(a=t.beforeExpr)&&a),JR.push(null!=(n=t.startsExpr)&&n),XR.push(null!=(s=t.prefix)&&s),GR.push(new UR("name",t)),zR}var ZR={bracketL:$R("[",{beforeExpr:OR,startsExpr:NR}),bracketHashL:$R("#[",{beforeExpr:OR,startsExpr:NR}),bracketBarL:$R("[|",{beforeExpr:OR,startsExpr:NR}),bracketR:$R("]"),bracketBarR:$R("|]"),braceL:$R("{",{beforeExpr:OR,startsExpr:NR}),braceBarL:$R("{|",{beforeExpr:OR,startsExpr:NR}),braceHashL:$R("#{",{beforeExpr:OR,startsExpr:NR}),braceR:$R("}"),braceBarR:$R("|}"),parenL:$R("(",{beforeExpr:OR,startsExpr:NR}),parenR:$R(")"),comma:$R(",",{beforeExpr:OR}),semi:$R(";",{beforeExpr:OR}),colon:$R(":",{beforeExpr:OR}),doubleColon:$R("::",{beforeExpr:OR}),dot:$R("."),question:$R("?",{beforeExpr:OR}),questionDot:$R("?."),arrow:$R("=>",{beforeExpr:OR}),template:$R("template"),ellipsis:$R("...",{beforeExpr:OR}),backQuote:$R("`",{startsExpr:NR}),dollarBraceL:$R("${",{beforeExpr:OR,startsExpr:NR}),templateTail:$R("...`",{startsExpr:NR}),templateNonTail:$R("...${",{beforeExpr:OR,startsExpr:NR}),at:$R("@"),hash:$R("#",{startsExpr:NR}),interpreterDirective:$R("#!..."),eq:$R("=",{beforeExpr:OR,isAssign:BR}),assign:$R("_=",{beforeExpr:OR,isAssign:BR}),slashAssign:$R("_=",{beforeExpr:OR,isAssign:BR}),xorAssign:$R("_=",{beforeExpr:OR,isAssign:BR}),moduloAssign:$R("_=",{beforeExpr:OR,isAssign:BR}),incDec:$R("++/--",{prefix:MR,postfix:LR,startsExpr:NR}),bang:$R("!",{beforeExpr:OR,prefix:MR,startsExpr:NR}),tilde:$R("~",{beforeExpr:OR,prefix:MR,startsExpr:NR}),doubleCaret:$R("^^",{startsExpr:NR}),doubleAt:$R("@@",{startsExpr:NR}),pipeline:HR("|>",0),nullishCoalescing:HR("??",1),logicalOR:HR("||",1),logicalAND:HR("&&",2),bitwiseOR:HR("|",3),bitwiseXOR:HR("^",4),bitwiseAND:HR("&",5),equality:HR("==/!=/===/!==",6),lt:HR("/<=/>=",7),gt:HR("/<=/>=",7),relational:HR("/<=/>=",7),bitShift:HR("<>/>>>",8),bitShiftL:HR("<>/>>>",8),bitShiftR:HR("<>/>>>",8),plusMin:$R("+/-",{beforeExpr:OR,binop:9,prefix:MR,startsExpr:NR}),modulo:$R("%",{binop:10,startsExpr:NR}),star:$R("*",{binop:10}),slash:HR("/",10),exponent:$R("**",{beforeExpr:OR,binop:11,rightAssociative:!0}),_in:WR("in",{beforeExpr:OR,binop:7}),_instanceof:WR("instanceof",{beforeExpr:OR,binop:7}),_break:WR("break"),_case:WR("case",{beforeExpr:OR}),_catch:WR("catch"),_continue:WR("continue"),_debugger:WR("debugger"),_default:WR("default",{beforeExpr:OR}),_else:WR("else",{beforeExpr:OR}),_finally:WR("finally"),_function:WR("function",{startsExpr:NR}),_if:WR("if"),_return:WR("return",{beforeExpr:OR}),_switch:WR("switch"),_throw:WR("throw",{beforeExpr:OR,prefix:MR,startsExpr:NR}),_try:WR("try"),_var:WR("var"),_const:WR("const"),_with:WR("with"),_new:WR("new",{beforeExpr:OR,startsExpr:NR}),_this:WR("this",{startsExpr:NR}),_super:WR("super",{startsExpr:NR}),_class:WR("class",{startsExpr:NR}),_extends:WR("extends",{beforeExpr:OR}),_export:WR("export"),_import:WR("import",{startsExpr:NR}),_null:WR("null",{startsExpr:NR}),_true:WR("true",{startsExpr:NR}),_false:WR("false",{startsExpr:NR}),_typeof:WR("typeof",{beforeExpr:OR,prefix:MR,startsExpr:NR}),_void:WR("void",{beforeExpr:OR,prefix:MR,startsExpr:NR}),_delete:WR("delete",{beforeExpr:OR,prefix:MR,startsExpr:NR}),_do:WR("do",{isLoop:FR,beforeExpr:OR}),_for:WR("for",{isLoop:FR}),_while:WR("while",{isLoop:FR}),_as:QR("as",{startsExpr:NR}),_assert:QR("assert",{startsExpr:NR}),_async:QR("async",{startsExpr:NR}),_await:QR("await",{startsExpr:NR}),_defer:QR("defer",{startsExpr:NR}),_from:QR("from",{startsExpr:NR}),_get:QR("get",{startsExpr:NR}),_let:QR("let",{startsExpr:NR}),_meta:QR("meta",{startsExpr:NR}),_of:QR("of",{startsExpr:NR}),_sent:QR("sent",{startsExpr:NR}),_set:QR("set",{startsExpr:NR}),_source:QR("source",{startsExpr:NR}),_static:QR("static",{startsExpr:NR}),_using:QR("using",{startsExpr:NR}),_yield:QR("yield",{startsExpr:NR}),_asserts:QR("asserts",{startsExpr:NR}),_checks:QR("checks",{startsExpr:NR}),_exports:QR("exports",{startsExpr:NR}),_global:QR("global",{startsExpr:NR}),_implements:QR("implements",{startsExpr:NR}),_intrinsic:QR("intrinsic",{startsExpr:NR}),_infer:QR("infer",{startsExpr:NR}),_is:QR("is",{startsExpr:NR}),_mixins:QR("mixins",{startsExpr:NR}),_proto:QR("proto",{startsExpr:NR}),_require:QR("require",{startsExpr:NR}),_satisfies:QR("satisfies",{startsExpr:NR}),_keyof:QR("keyof",{startsExpr:NR}),_readonly:QR("readonly",{startsExpr:NR}),_unique:QR("unique",{startsExpr:NR}),_abstract:QR("abstract",{startsExpr:NR}),_declare:QR("declare",{startsExpr:NR}),_enum:QR("enum",{startsExpr:NR}),_module:QR("module",{startsExpr:NR}),_namespace:QR("namespace",{startsExpr:NR}),_interface:QR("interface",{startsExpr:NR}),_type:QR("type",{startsExpr:NR}),_opaque:QR("opaque",{startsExpr:NR}),name:$R("name",{startsExpr:NR}),placeholder:$R("%%",{startsExpr:!0}),string:$R("string",{startsExpr:NR}),num:$R("num",{startsExpr:NR}),bigint:$R("bigint",{startsExpr:NR}),decimal:$R("decimal",{startsExpr:NR}),regexp:$R("regexp",{startsExpr:NR}),privateName:$R("#name",{startsExpr:NR}),eof:$R("eof"),jsxName:$R("jsxName"),jsxText:$R("jsxText",{beforeExpr:!0}),jsxTagStart:$R("jsxTagStart",{startsExpr:!0}),jsxTagEnd:$R("jsxTagEnd")};function ew(e){return e>=93&&e<=133}function tw(e){return e<=92}function rw(e){return e>=58&&e<=133}function aw(e){return e>=58&&e<=137}function nw(e){return YR[e]}function sw(e){return JR[e]}function ow(e){return e>=29&&e<=33}function iw(e){return e>=129&&e<=131}function dw(e){return e>=90&&e<=92}function cw(e){return e>=58&&e<=92}function lw(e){return e>=39&&e<=59}function uw(e){return 34===e}function pw(e){return XR[e]}function fw(e){return e>=121&&e<=123}function gw(e){return e>=124&&e<=130}function mw(e){return VR[e]}function hw(e){return KR[e]}function yw(e){return 57===e}function bw(e){return e>=24&&e<=25}function vw(e){return GR[e]}function xw(e,t,r){return 64===e&&64===t&&vo(r)}GR[8].updateContext=function(e){e.pop()},GR[5].updateContext=GR[7].updateContext=GR[23].updateContext=function(e){e.push(IR.brace)},GR[22].updateContext=function(e){e[e.length-1]===IR.template?e.pop():e.push(IR.template)},GR[143].updateContext=function(e){e.push(IR.j_expr,IR.j_oTag)};var Rw=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete","implements","interface","let","package","private","protected","public","static","yield","eval","arguments","enum","await"]);function ww(e){return Rw.has(e)}var Ew={OTHER:0,PROGRAM:1,FUNCTION:2,ARROW:4,SIMPLE_CATCH:8,SUPER:16,DIRECT_SUPER:32,CLASS:64,STATIC_BLOCK:128,TS_MODULE:256,VAR:387},jw={KIND_VALUE:1,KIND_TYPE:2,SCOPE_VAR:4,SCOPE_LEXICAL:8,SCOPE_FUNCTION:16,SCOPE_OUTSIDE:32,FLAG_NONE:64,FLAG_CLASS:128,FLAG_TS_ENUM:256,FLAG_TS_CONST_ENUM:512,FLAG_TS_EXPORT_ONLY:1024,FLAG_FLOW_DECLARE_FN:2048,FLAG_TS_IMPORT:4096,FLAG_NO_LET_IN_LEXICAL:8192,TYPE_CLASS:8331,TYPE_LEXICAL:8201,TYPE_CATCH_PARAM:9,TYPE_VAR:5,TYPE_FUNCTION:17,TYPE_TS_INTERFACE:130,TYPE_TS_TYPE:2,TYPE_TS_ENUM:8459,TYPE_TS_AMBIENT:1024,TYPE_NONE:64,TYPE_OUTSIDE:65,TYPE_TS_CONST_ENUM:8971,TYPE_TS_NAMESPACE:1024,TYPE_TS_TYPE_IMPORT:4098,TYPE_TS_VALUE_IMPORT:4096,TYPE_FLOW_DECLARE_FN:2048},Sw={OTHER:0,FLAG_STATIC:4,KIND_GETTER:2,KIND_SETTER:1,KIND_ACCESSOR:3,STATIC_GETTER:6,STATIC_SETTER:5,INSTANCE_GETTER:2,INSTANCE_SETTER:1},Tw={Var:1,Lexical:2,Function:4},Aw=u((function(e){this.flags=0,this.names=new Map,this.firstLexicalName="",this.flags=e})),kw=function(){function e(e,t){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=e,this.inModule=t}var t=e.prototype;return t.createScope=function(e){return new Aw(e)},t.enter=function(e){this.scopeStack.push(this.createScope(e))},t.exit=function(){return this.scopeStack.pop().flags},t.treatFunctionsAsVarInScope=function(e){return!!(e.flags&(Ew.FUNCTION|Ew.STATIC_BLOCK)||!this.parser.inModule&&e.flags&Ew.PROGRAM)},t.declareName=function(e,t,r){var a=this.currentScope();if(t&jw.SCOPE_LEXICAL||t&jw.SCOPE_FUNCTION){this.checkRedeclarationInScope(a,e,t,r);var n=a.names.get(e)||0;t&jw.SCOPE_FUNCTION?n|=Tw.Function:(a.firstLexicalName||(a.firstLexicalName=e),n|=Tw.Lexical),a.names.set(e,n),t&jw.SCOPE_LEXICAL&&this.maybeExportDefined(a,e)}else if(t&jw.SCOPE_VAR)for(var s=this.scopeStack.length-1;s>=0&&(a=this.scopeStack[s],this.checkRedeclarationInScope(a,e,t,r),a.names.set(e,(a.names.get(e)||0)|Tw.Var),this.maybeExportDefined(a,e),!(a.flags&Ew.VAR));--s);this.parser.inModule&&a.flags&Ew.PROGRAM&&this.undefinedExports.delete(e)},t.maybeExportDefined=function(e,t){this.parser.inModule&&e.flags&Ew.PROGRAM&&this.undefinedExports.delete(t)},t.checkRedeclarationInScope=function(e,t,r,a){this.isRedeclaredInScope(e,t,r)&&this.parser.raise(AR.VarRedeclaration,a,{identifierName:t})},t.isRedeclaredInScope=function(e,t,r){if(!(r&jw.KIND_VALUE))return!1;if(r&jw.SCOPE_LEXICAL)return e.names.has(t);var a=e.names.get(t);return r&jw.SCOPE_FUNCTION?(a&Tw.Lexical)>0||!this.treatFunctionsAsVarInScope(e)&&(a&Tw.Var)>0:(a&Tw.Lexical)>0&&!(e.flags&Ew.SIMPLE_CATCH&&e.firstLexicalName===t)||!this.treatFunctionsAsVarInScope(e)&&(a&Tw.Function)>0},t.checkLocalExport=function(e){var t=e.name;this.scopeStack[0].names.has(t)||this.undefinedExports.set(t,e.loc.start)},t.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},t.currentVarScopeFlags=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e].flags;if(t&Ew.VAR)return t}},t.currentThisScopeFlags=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e].flags;if(t&(Ew.VAR|Ew.CLASS)&&!(t&Ew.ARROW))return t}},u(e,[{key:"inTopLevel",get:function(){return(this.currentScope().flags&Ew.PROGRAM)>0}},{key:"inFunction",get:function(){return(this.currentVarScopeFlags()&Ew.FUNCTION)>0}},{key:"allowSuper",get:function(){return(this.currentThisScopeFlags()&Ew.SUPER)>0}},{key:"allowDirectSuper",get:function(){return(this.currentThisScopeFlags()&Ew.DIRECT_SUPER)>0}},{key:"inClass",get:function(){return(this.currentThisScopeFlags()&Ew.CLASS)>0}},{key:"inClassAndNotInNonArrowFunction",get:function(){var e=this.currentThisScopeFlags();return(e&Ew.CLASS)>0&&0===(e&Ew.FUNCTION)}},{key:"inStaticBlock",get:function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e].flags;if(t&Ew.STATIC_BLOCK)return!0;if(t&(Ew.VAR|Ew.CLASS))return!1}}},{key:"inNonArrowFunction",get:function(){return(this.currentThisScopeFlags()&Ew.FUNCTION)>0}},{key:"treatFunctionsAsVar",get:function(){return this.treatFunctionsAsVarInScope(this.currentScope())}}])}(),Cw=function(e){function t(){for(var t,r=arguments.length,a=new Array(r),n=0;n0||(n&Tw.Lexical)>0}return!1},r.checkLocalExport=function(t){this.scopeStack[0].declareFunctions.has(t.name)||e.prototype.checkLocalExport.call(this,t)},u(t)}(kw);function _w(e,t){var r;void 0===e.trailingComments?e.trailingComments=t:(r=e.trailingComments).unshift.apply(r,t)}function Dw(e,t){var r;void 0===e.leadingComments?e.leadingComments=t:(r=e.leadingComments).unshift.apply(r,t)}function Iw(e,t){var r;void 0===e.innerComments?e.innerComments=t:(r=e.innerComments).unshift.apply(r,t)}function Ow(e,t,r){for(var a=null,n=t.length;null===a&&n>0;)a=t[--n];null===a||a.start>r.start?Iw(e,r.comments):_w(a,r.comments)}var Nw=function(e){function t(){return e.apply(this,arguments)||this}g(t,e);var r=t.prototype;return r.addComment=function(e){this.filename&&(e.loc.filename=this.filename);var t=this.state.commentsLen;this.comments.length!==t&&(this.comments.length=t),this.comments.push(e),this.state.commentsLen++},r.processComment=function(e){var t=this.state.commentStack,r=t.length;if(0!==r){var a=r-1,n=t[a];n.start===e.end&&(n.leadingNode=e,a--);for(var s=e.start;a>=0;a--){var o=t[a],i=o.end;if(!(i>s)){i===s&&(o.trailingNode=e);break}o.containingNode=e,this.finalizeComment(o),t.splice(a,1)}}},r.finalizeComment=function(e){var t=e.comments;if(null!==e.leadingNode||null!==e.trailingNode)null!==e.leadingNode&&_w(e.leadingNode,t),null!==e.trailingNode&&Dw(e.trailingNode,t);else{var r=e.containingNode,a=e.start;if(44===this.input.charCodeAt(this.offsetToSourcePos(a)-1))switch(r.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":Ow(r,r.properties,e);break;case"CallExpression":case"OptionalCallExpression":Ow(r,r.arguments,e);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":Ow(r,r.params,e);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":Ow(r,r.elements,e);break;case"ExportNamedDeclaration":case"ImportDeclaration":Ow(r,r.specifiers,e);break;default:Iw(r,t)}else Iw(r,t)}},r.finalizeRemainingComments=function(){for(var e=this.state.commentStack,t=e.length-1;t>=0;t--)this.finalizeComment(e[t]);this.state.commentStack=[]},r.resetPreviousNodeTrailingComments=function(e){var t=this.state.commentStack,r=t.length;if(0!==r){var a=t[r-1];a.leadingNode===e&&(a.leadingNode=null)}},r.resetPreviousIdentifierLeadingComments=function(e){var t=this.state.commentStack,r=t.length;0!==r&&(t[r-1].trailingNode===e?t[r-1].trailingNode=null:r>=2&&t[r-2].trailingNode===e&&(t[r-2].trailingNode=null))},r.takeSurroundingComments=function(e,t,r){var a=this.state.commentStack,n=a.length;if(0!==n)for(var s=n-1;s>=0;s--){var o=a[s],i=o.end;if(o.start===r)o.leadingNode=e;else if(i===t)o.trailingNode=e;else if(i0},set:function(e){e?this.flags|=1:this.flags&=-2}},{key:"maybeInArrowParameters",get:function(){return(2&this.flags)>0},set:function(e){e?this.flags|=2:this.flags&=-3}},{key:"inType",get:function(){return(4&this.flags)>0},set:function(e){e?this.flags|=4:this.flags&=-5}},{key:"noAnonFunctionType",get:function(){return(8&this.flags)>0},set:function(e){e?this.flags|=8:this.flags&=-9}},{key:"hasFlowComment",get:function(){return(16&this.flags)>0},set:function(e){e?this.flags|=16:this.flags&=-17}},{key:"isAmbientContext",get:function(){return(32&this.flags)>0},set:function(e){e?this.flags|=32:this.flags&=-33}},{key:"inAbstractClass",get:function(){return(64&this.flags)>0},set:function(e){e?this.flags|=64:this.flags&=-65}},{key:"inDisallowConditionalTypesContext",get:function(){return(128&this.flags)>0},set:function(e){e?this.flags|=128:this.flags&=-129}},{key:"soloAwait",get:function(){return(256&this.flags)>0},set:function(e){e?this.flags|=256:this.flags&=-257}},{key:"inFSharpPipelineDirectBody",get:function(){return(512&this.flags)>0},set:function(e){e?this.flags|=512:this.flags&=-513}},{key:"canStartJSXElement",get:function(){return(1024&this.flags)>0},set:function(e){e?this.flags|=1024:this.flags&=-1025}},{key:"containsEsc",get:function(){return(2048&this.flags)>0},set:function(e){e?this.flags|=2048:this.flags&=-2049}},{key:"hasTopLevelAwait",get:function(){return(4096&this.flags)>0},set:function(e){e?this.flags|=4096:this.flags&=-4097}}])}();function zw(e,t,r){return new uR(r,e-t,e)}var Gw=new Set([103,109,115,105,121,117,100,118]),Vw=u((function(e){var t=e.startIndex||0;this.type=e.type,this.value=e.value,this.start=t+e.start,this.end=t+e.end,this.loc=new pR(e.startLoc,e.endLoc)})),Kw=function(e){function t(t,r){var a;return(a=e.call(this)||this).isLookahead=void 0,a.tokens=[],a.errorHandlers_readInt={invalidDigit:function(e,t,r,n){return!!a.options.errorRecovery&&(a.raise(AR.InvalidDigit,zw(e,t,r),{radix:n}),!0)},numericSeparatorInEscapeSequence:a.errorBuilder(AR.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:a.errorBuilder(AR.UnexpectedNumericSeparator)},a.errorHandlers_readCodePoint=Object.assign({},a.errorHandlers_readInt,{invalidEscapeSequence:a.errorBuilder(AR.InvalidEscapeSequence),invalidCodePoint:a.errorBuilder(AR.InvalidCodePoint)}),a.errorHandlers_readStringContents_string=Object.assign({},a.errorHandlers_readCodePoint,{strictNumericEscape:function(e,t,r){a.recordStrictModeErrors(AR.StrictNumericEscape,zw(e,t,r))},unterminated:function(e,t,r){throw a.raise(AR.UnterminatedString,zw(e-1,t,r))}}),a.errorHandlers_readStringContents_template=Object.assign({},a.errorHandlers_readCodePoint,{strictNumericEscape:a.errorBuilder(AR.StrictNumericEscape),unterminated:function(e,t,r){throw a.raise(AR.UnterminatedTemplate,zw(e,t,r))}}),a.state=new Hw,a.state.init(t),a.input=r,a.length=r.length,a.comments=[],a.isLookahead=!1,a}g(t,e);var r=t.prototype;return r.pushToken=function(e){this.tokens.length=this.state.tokensLength,this.tokens.push(e),++this.state.tokensLength},r.next=function(){this.checkKeywordEscapes(),this.options.tokens&&this.pushToken(new Vw(this.state)),this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()},r.eat=function(e){return!!this.match(e)&&(this.next(),!0)},r.match=function(e){return this.state.type===e},r.createLookaheadState=function(e){return{pos:e.pos,value:null,type:e.type,start:e.start,end:e.end,context:[this.curContext()],inType:e.inType,startLoc:e.startLoc,lastTokEndLoc:e.lastTokEndLoc,curLine:e.curLine,lineStart:e.lineStart,curPosition:e.curPosition}},r.lookahead=function(){var e=this.state;this.state=this.createLookaheadState(e),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;var t=this.state;return this.state=e,t},r.nextTokenStart=function(){return this.nextTokenStartSince(this.state.pos)},r.nextTokenStartSince=function(e){return Lw.lastIndex=e,Lw.test(this.input)?Lw.lastIndex:e},r.lookaheadCharCode=function(){return this.input.charCodeAt(this.nextTokenStart())},r.nextTokenInLineStart=function(){return this.nextTokenInLineStartSince(this.state.pos)},r.nextTokenInLineStartSince=function(e){return Uw.lastIndex=e,Uw.test(this.input)?Uw.lastIndex:e},r.lookaheadInLineCharCode=function(){return this.input.charCodeAt(this.nextTokenInLineStart())},r.codePointAtPos=function(e){var t=this.input.charCodeAt(e);if(55296===(64512&t)&&++e=this.length?this.finishToken(140):this.getTokenFromCode(this.codePointAtPos(this.state.pos))},r.skipBlockComment=function(e){var t;this.isLookahead||(t=this.state.curPosition());var r=this.state.pos,a=this.input.indexOf(e,r+2);if(-1===a)throw this.raise(AR.UnterminatedComment,this.state.curPosition());for(this.state.pos=a+e.length,Fw.lastIndex=r+2;Fw.test(this.input)&&Fw.lastIndex<=a;)++this.state.curLine,this.state.lineStart=Fw.lastIndex;if(!this.isLookahead){var n={type:"CommentBlock",value:this.input.slice(r+2,a),start:this.sourceToOffsetPos(r),end:this.sourceToOffsetPos(a+e.length),loc:new pR(t,this.state.curPosition())};return this.options.tokens&&this.pushToken(n),n}},r.skipLineComment=function(e){var t,r=this.state.pos;this.isLookahead||(t=this.state.curPosition());var a=this.input.charCodeAt(this.state.pos+=e);if(this.state.pose))break e;var o=this.skipLineComment(3);void 0!==o&&(this.addComment(o),this.options.attachComment&&t.push(o))}else{if(60!==r||this.inModule||!this.options.annexB)break e;var i=this.state.pos;if(33!==this.input.charCodeAt(i+1)||45!==this.input.charCodeAt(i+2)||45!==this.input.charCodeAt(i+3))break e;var d=this.skipLineComment(4);void 0!==d&&(this.addComment(d),this.options.attachComment&&t.push(d))}}}if(t.length>0){var c=this.state.pos,l={start:this.sourceToOffsetPos(e),end:this.sourceToOffsetPos(c),comments:t,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(l)}},r.finishToken=function(e,t){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();var r=this.state.type;this.state.type=e,this.state.value=t,this.isLookahead||this.updateContext(r)},r.replaceToken=function(e){this.state.type=e,this.updateContext()},r.readToken_numberSign=function(){if(0!==this.state.pos||!this.readToken_interpreter()){var e=this.state.pos+1,t=this.codePointAtPos(e);if(t>=48&&t<=57)throw this.raise(AR.UnexpectedDigitAfterHash,this.state.curPosition());if(123===t||91===t&&this.hasPlugin("recordAndTuple")){if(this.expectPlugin("recordAndTuple"),"bar"===this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(123===t?AR.RecordExpressionHashIncorrectStartSyntaxType:AR.TupleExpressionHashIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,123===t?this.finishToken(7):this.finishToken(1)}else vo(t)?(++this.state.pos,this.finishToken(139,this.readWord1(t))):92===t?(++this.state.pos,this.finishToken(139,this.readWord1())):this.finishOp(27,1)}},r.readToken_dot=function(){var e=this.input.charCodeAt(this.state.pos+1);e>=48&&e<=57?this.readNumber(!0):46===e&&46===this.input.charCodeAt(this.state.pos+2)?(this.state.pos+=3,this.finishToken(21)):(++this.state.pos,this.finishToken(16))},r.readToken_slash=function(){61===this.input.charCodeAt(this.state.pos+1)?this.finishOp(31,2):this.finishOp(56,1)},r.readToken_interpreter=function(){if(0!==this.state.pos||this.length<2)return!1;var e=this.input.charCodeAt(this.state.pos+1);if(33!==e)return!1;var t=this.state.pos;for(this.state.pos+=1;!Bw(e)&&++this.state.pos=48&&t<=57?(++this.state.pos,this.finishToken(17)):(this.state.pos+=2,this.finishToken(18))},r.getTokenFromCode=function(e){switch(e){case 46:return void this.readToken_dot();case 40:return++this.state.pos,void this.finishToken(10);case 41:return++this.state.pos,void this.finishToken(11);case 59:return++this.state.pos,void this.finishToken(13);case 44:return++this.state.pos,void this.finishToken(12);case 91:if(this.hasPlugin("recordAndTuple")&&124===this.input.charCodeAt(this.state.pos+1)){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(AR.TupleExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(2)}else++this.state.pos,this.finishToken(0);return;case 93:return++this.state.pos,void this.finishToken(3);case 123:if(this.hasPlugin("recordAndTuple")&&124===this.input.charCodeAt(this.state.pos+1)){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(AR.RecordExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(6)}else++this.state.pos,this.finishToken(5);return;case 125:return++this.state.pos,void this.finishToken(8);case 58:return void(this.hasPlugin("functionBind")&&58===this.input.charCodeAt(this.state.pos+1)?this.finishOp(15,2):(++this.state.pos,this.finishToken(14)));case 63:return void this.readToken_question();case 96:return void this.readTemplateToken();case 48:var t=this.input.charCodeAt(this.state.pos+1);if(120===t||88===t)return void this.readRadixNumber(16);if(111===t||79===t)return void this.readRadixNumber(8);if(98===t||66===t)return void this.readRadixNumber(2);case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return void this.readNumber(!1);case 34:case 39:return void this.readString(e);case 47:return void this.readToken_slash();case 37:case 42:return void this.readToken_mult_modulo(e);case 124:case 38:return void this.readToken_pipe_amp(e);case 94:return void this.readToken_caret();case 43:case 45:return void this.readToken_plus_min(e);case 60:return void this.readToken_lt();case 62:return void this.readToken_gt();case 61:case 33:return void this.readToken_eq_excl(e);case 126:return void this.finishOp(36,1);case 64:return void this.readToken_atSign();case 35:return void this.readToken_numberSign();case 92:return void this.readWord();default:if(vo(e))return void this.readWord(e)}throw this.raise(AR.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(e)})},r.finishOp=function(e,t){var r=this.input.slice(this.state.pos,this.state.pos+t);this.state.pos+=t,this.finishToken(e,r)},r.readRegexp=function(){for(var e,t,r=this.state.startLoc,a=this.state.start+1,n=this.state.pos;;++n){if(n>=this.length)throw this.raise(AR.UnterminatedRegExp,fR(r,1));var s=this.input.charCodeAt(n);if(Bw(s))throw this.raise(AR.UnterminatedRegExp,fR(r,1));if(e)e=!1;else{if(91===s)t=!0;else if(93===s&&t)t=!1;else if(47===s&&!t)break;e=92===s}}var o=this.input.slice(a,n);++n;for(var i="",d=function(){return fR(r,n+2-a)};n=2&&48===this.input.charCodeAt(t);if(i){var d=this.input.slice(t,this.state.pos);if(this.recordStrictModeErrors(AR.StrictOctalLiteral,r),!this.state.strict){var c=d.indexOf("_");c>0&&this.raise(AR.ZeroDigitNumericSeparator,fR(r,c))}o=i&&!/[89]/.test(d)}var l=this.input.charCodeAt(this.state.pos);if(46!==l||o||(++this.state.pos,this.readInt(10),a=!0,l=this.input.charCodeAt(this.state.pos)),69!==l&&101!==l||o||(43!==(l=this.input.charCodeAt(++this.state.pos))&&45!==l||++this.state.pos,null===this.readInt(10)&&this.raise(AR.InvalidOrMissingExponent,r),a=!0,s=!0,l=this.input.charCodeAt(this.state.pos)),110===l&&((a||i)&&this.raise(AR.InvalidBigIntLiteral,r),++this.state.pos,n=!0),109===l){this.expectPlugin("decimal",this.state.curPosition()),(s||i)&&this.raise(AR.InvalidDecimal,r),++this.state.pos;var u=!0}if(vo(this.codePointAtPos(this.state.pos)))throw this.raise(AR.NumberIdentifier,this.state.curPosition());var p=this.input.slice(t,this.state.pos).replace(/[_mn]/g,"");if(n)this.finishToken(136,p);else if(u)this.finishToken(137,p);else{var f=o?parseInt(p,8):parseFloat(p);this.finishToken(135,f)}},r.readCodePoint=function(e){var t=Uo(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,this.errorHandlers_readCodePoint),r=t.code,a=t.pos;return this.state.pos=a,r},r.readString=function(e){var t=No(34===e?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string),r=t.str,a=t.pos,n=t.curLine,s=t.lineStart;this.state.pos=a+1,this.state.lineStart=s,this.state.curLine=n,this.finishToken(134,r)},r.readTemplateContinuation=function(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken()},r.readTemplateToken=function(){var e=this.input[this.state.pos],t=No("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template),r=t.str,a=t.firstInvalidLoc,n=t.pos,s=t.curLine,o=t.lineStart;this.state.pos=n+1,this.state.lineStart=o,this.state.curLine=s,a&&(this.state.firstInvalidTemplateEscapePos=new uR(a.curLine,a.pos-a.lineStart,this.sourceToOffsetPos(a.pos))),96===this.input.codePointAt(n)?this.finishToken(24,a?null:e+r+"`"):(this.state.pos++,this.finishToken(25,a?null:e+r+"${"))},r.recordStrictModeErrors=function(e,t){var r=t.index;this.state.strict&&!this.state.strictErrors.has(r)?this.raise(e,t):this.state.strictErrors.set(r,[e,t])},r.readWord1=function(e){this.state.containsEsc=!1;var t="",r=this.state.pos,a=this.state.pos;for(void 0!==e&&(this.state.pos+=e<=65535?1:2);this.state.pos=0;o--){var i=s[o];if(i.loc.index===n)return s[o]=e(a,r);if(i.loc.index0}},{key:"hasYield",get:function(){return(this.currentFlags()&aE.PARAM_YIELD)>0}},{key:"hasReturn",get:function(){return(this.currentFlags()&aE.PARAM_RETURN)>0}},{key:"hasIn",get:function(){return(this.currentFlags()&aE.PARAM_IN)>0}}])}();function sE(e,t){return(e?aE.PARAM_AWAIT:0)|(t?aE.PARAM_YIELD:0)}var oE=function(e){function t(){return e.apply(this,arguments)||this}g(t,e);var r=t.prototype;return r.addExtra=function(e,t,r,a){if(void 0===a&&(a=!0),e){var n=e.extra;null==n&&(n={},e.extra=n),a?n[t]=r:Object.defineProperty(n,t,{enumerable:a,value:r})}},r.isContextual=function(e){return this.state.type===e&&!this.state.containsEsc},r.isUnparsedContextual=function(e,t){var r=e+t.length;if(this.input.slice(e,r)===t){var a=this.input.charCodeAt(r);return!(xo(a)||55296===(64512&a))}return!1},r.isLookaheadContextual=function(e){var t=this.nextTokenStart();return this.isUnparsedContextual(t,e)},r.eatContextual=function(e){return!!this.isContextual(e)&&(this.next(),!0)},r.expectContextual=function(e,t){if(!this.eatContextual(e)){if(null!=t)throw this.raise(t,this.state.startLoc);this.unexpected(null,e)}},r.canInsertSemicolon=function(){return this.match(140)||this.match(8)||this.hasPrecedingLineBreak()},r.hasPrecedingLineBreak=function(){return Mw(this.input,this.offsetToSourcePos(this.state.lastTokEndLoc.index),this.state.start)},r.hasFollowingLineBreak=function(){return Mw(this.input,this.state.end,this.nextTokenStart())},r.isLineTerminator=function(){return this.eat(13)||this.canInsertSemicolon()},r.semicolon=function(e){void 0===e&&(e=!0),(e?this.isLineTerminator():this.eat(13))||this.raise(AR.MissingSemicolon,this.state.lastTokEndLoc)},r.expect=function(e,t){this.eat(e)||this.unexpected(t,e)},r.tryParse=function(e,t){void 0===t&&(t=this.state.clone());var r={node:null};try{var a=e((function(e){throw void 0===e&&(e=null),r.node=e,r}));if(this.state.errors.length>t.errors.length){var n=this.state;return this.state=t,this.state.tokensLength=n.tokensLength,{node:a,error:n.errors[t.errors.length],thrown:!1,aborted:!1,failState:n}}return{node:a,error:null,thrown:!1,aborted:!1,failState:null}}catch(SX){var s=this.state;if(this.state=t,SX instanceof SyntaxError)return{node:null,error:SX,thrown:!0,aborted:!1,failState:s};if(SX===r)return{node:r.node,error:null,thrown:!1,aborted:!0,failState:s};throw SX}},r.checkExpressionErrors=function(e,t){if(!e)return!1;var r=e.shorthandAssignLoc,a=e.doubleProtoLoc,n=e.privateKeyLoc,s=e.optionalParametersLoc;if(!t)return!!r||!!a||!!s||!!n;null!=r&&this.raise(AR.InvalidCoverInitializedName,r),null!=a&&this.raise(AR.DuplicateProto,a),null!=n&&this.raise(AR.UnexpectedPrivateField,n),null!=s&&this.unexpected(s)},r.isLiteralPropertyName=function(){return aw(this.state.type)},r.isPrivateName=function(e){return"PrivateName"===e.type},r.getPrivateNameSV=function(e){return e.id.name},r.hasPropertyAsPrivateName=function(e){return("MemberExpression"===e.type||"OptionalMemberExpression"===e.type)&&this.isPrivateName(e.property)},r.isObjectProperty=function(e){return"ObjectProperty"===e.type},r.isObjectMethod=function(e){return"ObjectMethod"===e.type},r.initializeScopes=function(e){var t=this;void 0===e&&(e="module"===this.options.sourceType);var r=this.state.labels;this.state.labels=[];var a=this.exportedIdentifiers;this.exportedIdentifiers=new Set;var n=this.inModule;this.inModule=e;var s=this.scope,o=this.getScopeHandler();this.scope=new o(this,e);var i=this.prodParam;this.prodParam=new nE;var d=this.classScope;this.classScope=new Jw(this);var c=this.expressionScope;return this.expressionScope=new Qw(this),function(){t.state.labels=r,t.exportedIdentifiers=a,t.inModule=n,t.scope=s,t.prodParam=i,t.classScope=d,t.expressionScope=c}},r.enterInitialScopes=function(){var e=aE.PARAM;this.inModule&&(e|=aE.PARAM_AWAIT),this.scope.enter(Ew.PROGRAM),this.prodParam.enter(e)},r.checkDestructuringPrivate=function(e){var t=e.privateKeyLoc;null!==t&&this.expectPlugin("destructuringPrivate",t)},u(t)}(Kw),iE=u((function(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null})),dE=u((function(e,t,r){this.type="",this.start=t,this.end=0,this.loc=new pR(r),null!=e&&e.options.ranges&&(this.range=[t,0]),null!=e&&e.filename&&(this.loc.filename=e.filename)})),cE=dE.prototype;function lE(e){return uE(e)}function uE(e){var t=e.type,r=e.start,a=e.end,n=e.loc,s=e.range,o=e.extra,i=e.name,d=Object.create(cE);return d.type=t,d.start=r,d.end=a,d.loc=n,d.range=s,d.extra=o,d.name=i,"Placeholder"===t&&(d.expectedNode=e.expectedNode),d}function pE(e){var t=e.type,r=e.start,a=e.end,n=e.loc,s=e.range,o=e.extra;if("Placeholder"===t)return lE(e);var i=Object.create(cE);return i.type=t,i.start=r,i.end=a,i.loc=n,i.range=s,void 0!==e.raw?i.raw=e.raw:i.extra=o,i.value=e.value,i}cE.__clone=function(){for(var e=new dE(void 0,this.start,this.loc.start),t=Object.keys(this),r=0,a=t.length;r async () => {}`, use `async () => {}`.",UnsupportedDeclareExportKind:function(e){return"`declare export "+e.unsupportedExportKind+"` is not supported. Use `"+e.suggestion+"` instead."},UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function yE(e){return"DeclareExportAllDeclaration"===e.type||"DeclareExportDeclaration"===e.type&&(!e.declaration||"TypeAlias"!==e.declaration.type&&"InterfaceDeclaration"!==e.declaration.type)}function bE(e){return"type"===e.importKind||"typeof"===e.importKind}var vE={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};function xE(e,t){for(var r=[],a=[],n=0;nr.index+1&&this.raise(hE.UnexpectedSpaceBetweenModuloChecks,r),this.eat(10)?(t.value=e.prototype.parseExpression.call(this),this.expect(11),this.finishNode(t,"DeclaredPredicate")):this.finishNode(t,"InferredPredicate")},r.flowParseTypeAndPredicateInitialiser=function(){var e=this.state.inType;this.state.inType=!0,this.expect(14);var t=null,r=null;return this.match(54)?(this.state.inType=e,r=this.flowParsePredicate()):(t=this.flowParseType(),this.state.inType=e,this.match(54)&&(r=this.flowParsePredicate())),[t,r]},r.flowParseDeclareClass=function(e){return this.next(),this.flowParseInterfaceish(e,!0),this.finishNode(e,"DeclareClass")},r.flowParseDeclareFunction=function(e){this.next();var t=e.id=this.parseIdentifier(),r=this.startNode(),a=this.startNode();this.match(47)?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,this.expect(10);var n=this.flowParseFunctionTypeParams();r.params=n.params,r.rest=n.rest,r.this=n._this,this.expect(11);var s=this.flowParseTypeAndPredicateInitialiser();return r.returnType=s[0],e.predicate=s[1],a.typeAnnotation=this.finishNode(r,"FunctionTypeAnnotation"),t.typeAnnotation=this.finishNode(a,"TypeAnnotation"),this.resetEndLocation(t),this.semicolon(),this.scope.declareName(e.id.name,jw.TYPE_FLOW_DECLARE_FN,e.id.loc.start),this.finishNode(e,"DeclareFunction")},r.flowParseDeclare=function(e,t){return this.match(80)?this.flowParseDeclareClass(e):this.match(68)?this.flowParseDeclareFunction(e):this.match(74)?this.flowParseDeclareVariable(e):this.eatContextual(127)?this.match(16)?this.flowParseDeclareModuleExports(e):(t&&this.raise(hE.NestedDeclareModule,this.state.lastTokStartLoc),this.flowParseDeclareModule(e)):this.isContextual(130)?this.flowParseDeclareTypeAlias(e):this.isContextual(131)?this.flowParseDeclareOpaqueType(e):this.isContextual(129)?this.flowParseDeclareInterface(e):this.match(82)?this.flowParseDeclareExportDeclaration(e,t):void this.unexpected()},r.flowParseDeclareVariable=function(e){return this.next(),e.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(e.id.name,jw.TYPE_VAR,e.id.loc.start),this.semicolon(),this.finishNode(e,"DeclareVariable")},r.flowParseDeclareModule=function(t){var r=this;this.scope.enter(Ew.OTHER),this.match(134)?t.id=e.prototype.parseExprAtom.call(this):t.id=this.parseIdentifier();var a=t.body=this.startNode(),n=a.body=[];for(this.expect(5);!this.match(8);){var s=this.startNode();this.match(83)?(this.next(),this.isContextual(130)||this.match(87)||this.raise(hE.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc),e.prototype.parseImport.call(this,s)):(this.expectContextual(125,hE.UnsupportedStatementInDeclareModule),s=this.flowParseDeclare(s,!0)),n.push(s)}this.scope.exit(),this.expect(8),this.finishNode(a,"BlockStatement");var o=null,i=!1;return n.forEach((function(e){yE(e)?("CommonJS"===o&&r.raise(hE.AmbiguousDeclareModuleKind,e),o="ES"):"DeclareModuleExports"===e.type&&(i&&r.raise(hE.DuplicateDeclareModuleExports,e),"ES"===o&&r.raise(hE.AmbiguousDeclareModuleKind,e),o="CommonJS",i=!0)})),t.kind=o||"CommonJS",this.finishNode(t,"DeclareModule")},r.flowParseDeclareExportDeclaration=function(e,t){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?e.declaration=this.flowParseDeclare(this.startNode()):(e.declaration=this.flowParseType(),this.semicolon()),e.default=!0,this.finishNode(e,"DeclareExportDeclaration");if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!t){var r=this.state.value;throw this.raise(hE.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:r,suggestion:vE[r]})}return this.match(74)||this.match(68)||this.match(80)||this.isContextual(131)?(e.declaration=this.flowParseDeclare(this.startNode()),e.default=!1,this.finishNode(e,"DeclareExportDeclaration")):this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131)?("ExportNamedDeclaration"===(e=this.parseExport(e,null)).type&&(e.type="ExportDeclaration",e.default=!1,delete e.exportKind),e.type="Declare"+e.type,e):void this.unexpected()},r.flowParseDeclareModuleExports=function(e){return this.next(),this.expectContextual(111),e.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(e,"DeclareModuleExports")},r.flowParseDeclareTypeAlias=function(e){this.next();var t=this.flowParseTypeAlias(e);return t.type="DeclareTypeAlias",t},r.flowParseDeclareOpaqueType=function(e){this.next();var t=this.flowParseOpaqueType(e,!0);return t.type="DeclareOpaqueType",t},r.flowParseDeclareInterface=function(e){return this.next(),this.flowParseInterfaceish(e,!1),this.finishNode(e,"DeclareInterface")},r.flowParseInterfaceish=function(e,t){if(e.id=this.flowParseRestrictedIdentifier(!t,!0),this.scope.declareName(e.id.name,t?jw.TYPE_FUNCTION:jw.TYPE_LEXICAL,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.extends=[],this.eat(81))do{e.extends.push(this.flowParseInterfaceExtends())}while(!t&&this.eat(12));if(t){if(e.implements=[],e.mixins=[],this.eatContextual(117))do{e.mixins.push(this.flowParseInterfaceExtends())}while(this.eat(12));if(this.eatContextual(113))do{e.implements.push(this.flowParseInterfaceExtends())}while(this.eat(12))}e.body=this.flowParseObjectType({allowStatic:t,allowExact:!1,allowSpread:!1,allowProto:t,allowInexact:!1})},r.flowParseInterfaceExtends=function(){var e=this.startNode();return e.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,this.finishNode(e,"InterfaceExtends")},r.flowParseInterface=function(e){return this.flowParseInterfaceish(e,!1),this.finishNode(e,"InterfaceDeclaration")},r.checkNotUnderscore=function(e){"_"===e&&this.raise(hE.UnexpectedReservedUnderscore,this.state.startLoc)},r.checkReservedType=function(e,t,r){mE.has(e)&&this.raise(r?hE.AssignReservedType:hE.UnexpectedReservedType,t,{reservedType:e})},r.flowParseRestrictedIdentifier=function(e,t){return this.checkReservedType(this.state.value,this.state.startLoc,t),this.parseIdentifier(e)},r.flowParseTypeAlias=function(e){return e.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(e.id.name,jw.TYPE_LEXICAL,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(e,"TypeAlias")},r.flowParseOpaqueType=function(e,t){return this.expectContextual(130),e.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(e.id.name,jw.TYPE_LEXICAL,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.supertype=null,this.match(14)&&(e.supertype=this.flowParseTypeInitialiser(14)),e.impltype=null,t||(e.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(e,"OpaqueType")},r.flowParseTypeParameter=function(e){void 0===e&&(e=!1);var t=this.state.startLoc,r=this.startNode(),a=this.flowParseVariance(),n=this.flowParseTypeAnnotatableIdentifier();return r.name=n.name,r.variance=a,r.bound=n.typeAnnotation,this.match(29)?(this.eat(29),r.default=this.flowParseType()):e&&this.raise(hE.MissingTypeParamDefault,t),this.finishNode(r,"TypeParameter")},r.flowParseTypeParameterDeclaration=function(){var e=this.state.inType,t=this.startNode();t.params=[],this.state.inType=!0,this.match(47)||this.match(143)?this.next():this.unexpected();var r=!1;do{var a=this.flowParseTypeParameter(r);t.params.push(a),a.default&&(r=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=e,this.finishNode(t,"TypeParameterDeclaration")},r.flowParseTypeParameterInstantiation=function(){var e=this.startNode(),t=this.state.inType;e.params=[],this.state.inType=!0,this.expect(47);var r=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)e.params.push(this.flowParseType()),this.match(48)||this.expect(12);return this.state.noAnonFunctionType=r,this.expect(48),this.state.inType=t,this.finishNode(e,"TypeParameterInstantiation")},r.flowParseTypeParameterInstantiationCallOrNew=function(){var e=this.startNode(),t=this.state.inType;for(e.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)e.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=t,this.finishNode(e,"TypeParameterInstantiation")},r.flowParseInterfaceType=function(){var e=this.startNode();if(this.expectContextual(129),e.extends=[],this.eat(81))do{e.extends.push(this.flowParseInterfaceExtends())}while(this.eat(12));return e.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(e,"InterfaceTypeAnnotation")},r.flowParseObjectPropertyKey=function(){return this.match(135)||this.match(134)?e.prototype.parseExprAtom.call(this):this.parseIdentifier(!0)},r.flowParseObjectTypeIndexer=function(e,t,r){return e.static=t,14===this.lookahead().type?(e.id=this.flowParseObjectPropertyKey(),e.key=this.flowParseTypeInitialiser()):(e.id=null,e.key=this.flowParseType()),this.expect(3),e.value=this.flowParseTypeInitialiser(),e.variance=r,this.finishNode(e,"ObjectTypeIndexer")},r.flowParseObjectTypeInternalSlot=function(e,t){return e.static=t,e.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(e.method=!0,e.optional=!1,e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start))):(e.method=!1,this.eat(17)&&(e.optional=!0),e.value=this.flowParseTypeInitialiser()),this.finishNode(e,"ObjectTypeInternalSlot")},r.flowParseObjectTypeMethodish=function(e){for(e.params=[],e.rest=null,e.typeParameters=null,e.this=null,this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(e.this=this.flowParseFunctionTypeParam(!0),e.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)e.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(e.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),e.returnType=this.flowParseTypeInitialiser(),this.finishNode(e,"FunctionTypeAnnotation")},r.flowParseObjectTypeCallProperty=function(e,t){var r=this.startNode();return e.static=t,e.value=this.flowParseObjectTypeMethodish(r),this.finishNode(e,"ObjectTypeCallProperty")},r.flowParseObjectType=function(e){var t=e.allowStatic,r=e.allowExact,a=e.allowSpread,n=e.allowProto,s=e.allowInexact,o=this.state.inType;this.state.inType=!0;var i,d,c=this.startNode();c.callProperties=[],c.properties=[],c.indexers=[],c.internalSlots=[];var l=!1;for(r&&this.match(6)?(this.expect(6),i=9,d=!0):(this.expect(5),i=8,d=!1),c.exact=d;!this.match(i);){var u=!1,p=null,f=null,g=this.startNode();if(n&&this.isContextual(118)){var m=this.lookahead();14!==m.type&&17!==m.type&&(this.next(),p=this.state.startLoc,t=!1)}if(t&&this.isContextual(106)){var h=this.lookahead();14!==h.type&&17!==h.type&&(this.next(),u=!0)}var y=this.flowParseVariance();if(this.eat(0))null!=p&&this.unexpected(p),this.eat(0)?(y&&this.unexpected(y.loc.start),c.internalSlots.push(this.flowParseObjectTypeInternalSlot(g,u))):c.indexers.push(this.flowParseObjectTypeIndexer(g,u,y));else if(this.match(10)||this.match(47))null!=p&&this.unexpected(p),y&&this.unexpected(y.loc.start),c.callProperties.push(this.flowParseObjectTypeCallProperty(g,u));else{var b="init";(this.isContextual(99)||this.isContextual(104))&&aw(this.lookahead().type)&&(b=this.state.value,this.next());var v=this.flowParseObjectTypeProperty(g,u,p,y,b,a,null!=s?s:!d);null===v?(l=!0,f=this.state.lastTokStartLoc):c.properties.push(v)}this.flowObjectTypeSemicolon(),!f||this.match(8)||this.match(9)||this.raise(hE.UnexpectedExplicitInexactInObject,f)}this.expect(i),a&&(c.inexact=l);var x=this.finishNode(c,"ObjectTypeAnnotation");return this.state.inType=o,x},r.flowParseObjectTypeProperty=function(e,t,r,a,n,s,o){if(this.eat(21))return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(s?o||this.raise(hE.InexactInsideExact,this.state.lastTokStartLoc):this.raise(hE.InexactInsideNonObject,this.state.lastTokStartLoc),a&&this.raise(hE.InexactVariance,a),null):(s||this.raise(hE.UnexpectedSpreadType,this.state.lastTokStartLoc),null!=r&&this.unexpected(r),a&&this.raise(hE.SpreadVariance,a),e.argument=this.flowParseType(),this.finishNode(e,"ObjectTypeSpreadProperty"));e.key=this.flowParseObjectPropertyKey(),e.static=t,e.proto=null!=r,e.kind=n;var i=!1;return this.match(47)||this.match(10)?(e.method=!0,null!=r&&this.unexpected(r),a&&this.unexpected(a.loc.start),e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start)),"get"!==n&&"set"!==n||this.flowCheckGetterSetterParams(e),!s&&"constructor"===e.key.name&&e.value.this&&this.raise(hE.ThisParamBannedInConstructor,e.value.this)):("init"!==n&&this.unexpected(),e.method=!1,this.eat(17)&&(i=!0),e.value=this.flowParseTypeInitialiser(),e.variance=a),e.optional=i,this.finishNode(e,"ObjectTypeProperty")},r.flowCheckGetterSetterParams=function(e){var t="get"===e.kind?0:1,r=e.value.params.length+(e.value.rest?1:0);e.value.this&&this.raise("get"===e.kind?hE.GetterMayNotHaveThisParam:hE.SetterMayNotHaveThisParam,e.value.this),r!==t&&this.raise("get"===e.kind?AR.BadGetterArity:AR.BadSetterArity,e),"set"===e.kind&&e.value.rest&&this.raise(AR.BadSetterRestParameter,e)},r.flowObjectTypeSemicolon=function(){this.eat(13)||this.eat(12)||this.match(8)||this.match(9)||this.unexpected()},r.flowParseQualifiedTypeIdentifier=function(e,t){null!=e||(e=this.state.startLoc);for(var r=t||this.flowParseRestrictedIdentifier(!0);this.eat(16);){var a=this.startNodeAt(e);a.qualification=r,a.id=this.flowParseRestrictedIdentifier(!0),r=this.finishNode(a,"QualifiedTypeIdentifier")}return r},r.flowParseGenericType=function(e,t){var r=this.startNodeAt(e);return r.typeParameters=null,r.id=this.flowParseQualifiedTypeIdentifier(e,t),this.match(47)&&(r.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(r,"GenericTypeAnnotation")},r.flowParseTypeofType=function(){var e=this.startNode();return this.expect(87),e.argument=this.flowParsePrimaryType(),this.finishNode(e,"TypeofTypeAnnotation")},r.flowParseTupleType=function(){var e=this.startNode();for(e.types=[],this.expect(0);this.state.pos0){var g=[].concat(o);if(f.length>0){this.state=s,this.state.noArrowAt=g;for(var m=0;m1&&this.raise(hE.AmbiguousConditionalArrow,s.startLoc),l&&1===p.length){this.state=s,g.push(p[0].start),this.state.noArrowAt=g;var b=this.tryParseConditionalConsequent();c=b.consequent,l=b.failed}}return this.getArrowLikeExpressions(c,!0),this.state.noArrowAt=o,this.expect(14),i.test=e,i.consequent=c,i.alternate=this.forwardNoArrowParamsConversionAt(i,(function(){return a.parseMaybeAssign(void 0,void 0)})),this.finishNode(i,"ConditionalExpression")},r.tryParseConditionalConsequent=function(){this.state.noArrowParamsConversionAt.push(this.state.start);var e=this.parseMaybeAssignAllowIn(),t=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:e,failed:t}},r.getArrowLikeExpressions=function(e,t){for(var r=this,a=[e],n=[];0!==a.length;){var s=a.pop();"ArrowFunctionExpression"===s.type&&"BlockStatement"!==s.body.type?(s.typeParameters||!s.returnType?this.finishArrowValidation(s):n.push(s),a.push(s.body)):"ConditionalExpression"===s.type&&(a.push(s.consequent),a.push(s.alternate))}return t?(n.forEach((function(e){return r.finishArrowValidation(e)})),[n,[]]):xE(n,(function(e){return e.params.every((function(e){return r.isAssignable(e,!0)}))}))},r.finishArrowValidation=function(t){var r;this.toAssignableList(t.params,null==(r=t.extra)?void 0:r.trailingCommaLoc,!1),this.scope.enter(Ew.FUNCTION|Ew.ARROW),e.prototype.checkParams.call(this,t,!1,!0),this.scope.exit()},r.forwardNoArrowParamsConversionAt=function(e,t){var r;return this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start))?(this.state.noArrowParamsConversionAt.push(this.state.start),r=t(),this.state.noArrowParamsConversionAt.pop()):r=t(),r},r.parseParenItem=function(t,r){var a=e.prototype.parseParenItem.call(this,t,r);if(this.eat(17)&&(a.optional=!0,this.resetEndLocation(t)),this.match(14)){var n=this.startNodeAt(r);return n.expression=a,n.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(n,"TypeCastExpression")}return a},r.assertModuleNodeAllowed=function(t){"ImportDeclaration"===t.type&&("type"===t.importKind||"typeof"===t.importKind)||"ExportNamedDeclaration"===t.type&&"type"===t.exportKind||"ExportAllDeclaration"===t.type&&"type"===t.exportKind||e.prototype.assertModuleNodeAllowed.call(this,t)},r.parseExportDeclaration=function(t){if(this.isContextual(130)){t.exportKind="type";var r=this.startNode();return this.next(),this.match(5)?(t.specifiers=this.parseExportSpecifiers(!0),e.prototype.parseExportFrom.call(this,t),null):this.flowParseTypeAlias(r)}if(this.isContextual(131)){t.exportKind="type";var a=this.startNode();return this.next(),this.flowParseOpaqueType(a,!1)}if(this.isContextual(129)){t.exportKind="type";var n=this.startNode();return this.next(),this.flowParseInterface(n)}if(this.isContextual(126)){t.exportKind="value";var s=this.startNode();return this.next(),this.flowParseEnumDeclaration(s)}return e.prototype.parseExportDeclaration.call(this,t)},r.eatExportStar=function(t){return!!e.prototype.eatExportStar.call(this,t)||!(!this.isContextual(130)||55!==this.lookahead().type)&&(t.exportKind="type",this.next(),this.next(),!0)},r.maybeParseExportNamespaceSpecifier=function(t){var r=this.state.startLoc,a=e.prototype.maybeParseExportNamespaceSpecifier.call(this,t);return a&&"type"===t.exportKind&&this.unexpected(r),a},r.parseClassId=function(t,r,a){e.prototype.parseClassId.call(this,t,r,a),this.match(47)&&(t.typeParameters=this.flowParseTypeParameterDeclaration())},r.parseClassMember=function(t,r,a){var n=this.state.startLoc;if(this.isContextual(125)){if(e.prototype.parseClassMemberFromModifier.call(this,t,r))return;r.declare=!0}e.prototype.parseClassMember.call(this,t,r,a),r.declare&&("ClassProperty"!==r.type&&"ClassPrivateProperty"!==r.type&&"PropertyDefinition"!==r.type?this.raise(hE.DeclareClassElement,n):r.value&&this.raise(hE.DeclareClassFieldInitializer,r.value))},r.isIterator=function(e){return"iterator"===e||"asyncIterator"===e},r.readIterator=function(){var t=e.prototype.readWord1.call(this),r="@@"+t;this.isIterator(t)&&this.state.inType||this.raise(AR.InvalidIdentifier,this.state.curPosition(),{identifierName:r}),this.finishToken(132,r)},r.getTokenFromCode=function(t){var r=this.input.charCodeAt(this.state.pos+1);123===t&&124===r?this.finishOp(6,2):!this.state.inType||62!==t&&60!==t?this.state.inType&&63===t?46===r?this.finishOp(18,2):this.finishOp(17,1):xw(t,r,this.input.charCodeAt(this.state.pos+2))?(this.state.pos+=2,this.readIterator()):e.prototype.getTokenFromCode.call(this,t):this.finishOp(62===t?48:47,1)},r.isAssignable=function(t,r){return"TypeCastExpression"===t.type?this.isAssignable(t.expression,r):e.prototype.isAssignable.call(this,t,r)},r.toAssignable=function(t,r){void 0===r&&(r=!1),r||"AssignmentExpression"!==t.type||"TypeCastExpression"!==t.left.type||(t.left=this.typeCastToParameter(t.left)),e.prototype.toAssignable.call(this,t,r)},r.toAssignableList=function(t,r,a){for(var n=0;n1)&&t||this.raise(hE.TypeCastInPattern,n.typeAnnotation)}return e},r.parseArrayLike=function(t,r,a,n){var s=e.prototype.parseArrayLike.call(this,t,r,a,n);return r&&!this.state.maybeInArrowParameters&&this.toReferencedList(s.elements),s},r.isValidLVal=function(t,r,a){return"TypeCastExpression"===t||e.prototype.isValidLVal.call(this,t,r,a)},r.parseClassProperty=function(t){return this.match(14)&&(t.typeAnnotation=this.flowParseTypeAnnotation()),e.prototype.parseClassProperty.call(this,t)},r.parseClassPrivateProperty=function(t){return this.match(14)&&(t.typeAnnotation=this.flowParseTypeAnnotation()),e.prototype.parseClassPrivateProperty.call(this,t)},r.isClassMethod=function(){return this.match(47)||e.prototype.isClassMethod.call(this)},r.isClassProperty=function(){return this.match(14)||e.prototype.isClassProperty.call(this)},r.isNonstaticConstructor=function(t){return!this.match(14)&&e.prototype.isNonstaticConstructor.call(this,t)},r.pushClassMethod=function(t,r,a,n,s,o){if(r.variance&&this.unexpected(r.variance.loc.start),delete r.variance,this.match(47)&&(r.typeParameters=this.flowParseTypeParameterDeclaration()),e.prototype.pushClassMethod.call(this,t,r,a,n,s,o),r.params&&s){var i=r.params;i.length>0&&this.isThisParam(i[0])&&this.raise(hE.ThisParamBannedInConstructor,r)}else if("MethodDefinition"===r.type&&s&&r.value.params){var d=r.value.params;d.length>0&&this.isThisParam(d[0])&&this.raise(hE.ThisParamBannedInConstructor,r)}},r.pushClassPrivateMethod=function(t,r,a,n){r.variance&&this.unexpected(r.variance.loc.start),delete r.variance,this.match(47)&&(r.typeParameters=this.flowParseTypeParameterDeclaration()),e.prototype.pushClassPrivateMethod.call(this,t,r,a,n)},r.parseClassSuper=function(t){if(e.prototype.parseClassSuper.call(this,t),t.superClass&&this.match(47)&&(t.superTypeParameters=this.flowParseTypeParameterInstantiation()),this.isContextual(113)){this.next();var r=t.implements=[];do{var a=this.startNode();a.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?a.typeParameters=this.flowParseTypeParameterInstantiation():a.typeParameters=null,r.push(this.finishNode(a,"ClassImplements"))}while(this.eat(12))}},r.checkGetterSetterParams=function(t){e.prototype.checkGetterSetterParams.call(this,t);var r=this.getObjectOrClassMethodParams(t);if(r.length>0){var a=r[0];this.isThisParam(a)&&"get"===t.kind?this.raise(hE.GetterMayNotHaveThisParam,a):this.isThisParam(a)&&this.raise(hE.SetterMayNotHaveThisParam,a)}},r.parsePropertyNamePrefixOperator=function(e){e.variance=this.flowParseVariance()},r.parseObjPropValue=function(t,r,a,n,s,o,i){var d;t.variance&&this.unexpected(t.variance.loc.start),delete t.variance,this.match(47)&&!o&&(d=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());var c=e.prototype.parseObjPropValue.call(this,t,r,a,n,s,o,i);return d&&((c.value||c).typeParameters=d),c},r.parseFunctionParamType=function(e){return this.eat(17)&&("Identifier"!==e.type&&this.raise(hE.PatternIsOptional,e),this.isThisParam(e)&&this.raise(hE.ThisParamMayNotBeOptional,e),e.optional=!0),this.match(14)?e.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(e)&&this.raise(hE.ThisParamAnnotationRequired,e),this.match(29)&&this.isThisParam(e)&&this.raise(hE.ThisParamNoDefault,e),this.resetEndLocation(e),e},r.parseMaybeDefault=function(t,r){var a=e.prototype.parseMaybeDefault.call(this,t,r);return"AssignmentPattern"===a.type&&a.typeAnnotation&&a.right.start0&&this.raise(hE.ThisParamMustBeFirst,t.params[s]);e.prototype.checkParams.call(this,t,r,a,n)}},r.parseParenAndDistinguishExpression=function(t){return e.prototype.parseParenAndDistinguishExpression.call(this,t&&!this.state.noArrowAt.includes(this.sourceToOffsetPos(this.state.start)))},r.parseSubscripts=function(t,r,a){var n=this;if("Identifier"===t.type&&"async"===t.name&&this.state.noArrowAt.includes(r.index)){this.next();var s=this.startNodeAt(r);s.callee=t,s.arguments=e.prototype.parseCallExpressionArguments.call(this,11),t=this.finishNode(s,"CallExpression")}else if("Identifier"===t.type&&"async"===t.name&&this.match(47)){var o=this.state.clone(),i=this.tryParse((function(e){return n.parseAsyncArrowWithTypeParameters(r)||e()}),o);if(!i.error&&!i.aborted)return i.node;var d=this.tryParse((function(){return e.prototype.parseSubscripts.call(n,t,r,a)}),o);if(d.node&&!d.error)return d.node;if(i.node)return this.state=i.failState,i.node;if(d.node)return this.state=d.failState,d.node;throw i.error||d.error}return e.prototype.parseSubscripts.call(this,t,r,a)},r.parseSubscript=function(t,r,a,n){var s=this;if(this.match(18)&&this.isLookaheadToken_lt()){if(n.optionalChainMember=!0,a)return n.stop=!0,t;this.next();var o=this.startNodeAt(r);return o.callee=t,o.typeArguments=this.flowParseTypeParameterInstantiation(),this.expect(10),o.arguments=this.parseCallExpressionArguments(11),o.optional=!0,this.finishCallExpression(o,!0)}if(!a&&this.shouldParseTypes()&&this.match(47)){var i=this.startNodeAt(r);i.callee=t;var d=this.tryParse((function(){return i.typeArguments=s.flowParseTypeParameterInstantiationCallOrNew(),s.expect(10),i.arguments=e.prototype.parseCallExpressionArguments.call(s,11),n.optionalChainMember&&(i.optional=!1),s.finishCallExpression(i,n.optionalChainMember)}));if(d.node)return d.error&&(this.state=d.failState),d.node}return e.prototype.parseSubscript.call(this,t,r,a,n)},r.parseNewCallee=function(t){var r=this;e.prototype.parseNewCallee.call(this,t);var a=null;this.shouldParseTypes()&&this.match(47)&&(a=this.tryParse((function(){return r.flowParseTypeParameterInstantiationCallOrNew()})).node),t.typeArguments=a},r.parseAsyncArrowWithTypeParameters=function(t){var r=this.startNodeAt(t);if(this.parseFunctionParams(r,!1),this.parseArrow(r))return e.prototype.parseArrowExpression.call(this,r,void 0,!0)},r.readToken_mult_modulo=function(t){var r=this.input.charCodeAt(this.state.pos+1);if(42===t&&47===r&&this.state.hasFlowComment)return this.state.hasFlowComment=!1,this.state.pos+=2,void this.nextToken();e.prototype.readToken_mult_modulo.call(this,t)},r.readToken_pipe_amp=function(t){var r=this.input.charCodeAt(this.state.pos+1);124!==t||125!==r?e.prototype.readToken_pipe_amp.call(this,t):this.finishOp(9,2)},r.parseTopLevel=function(t,r){var a=e.prototype.parseTopLevel.call(this,t,r);return this.state.hasFlowComment&&this.raise(hE.UnterminatedFlowComment,this.state.curPosition()),a},r.skipBlockComment=function(){if(!this.hasPlugin("flowComments")||!this.skipFlowComment())return e.prototype.skipBlockComment.call(this,this.state.hasFlowComment?"*-/":"*/");if(this.state.hasFlowComment)throw this.raise(hE.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();var t=this.skipFlowComment();t&&(this.state.pos+=t,this.state.hasFlowComment=!0)},r.skipFlowComment=function(){for(var e=this.state.pos,t=2;[32,9].includes(this.input.charCodeAt(e+t));)t++;var r=this.input.charCodeAt(t+e),a=this.input.charCodeAt(t+e+1);return 58===r&&58===a?t+2:"flow-include"===this.input.slice(t+e,t+e+12)?t+12:58===r&&58!==a&&t},r.hasFlowCommentCompletion=function(){if(-1===this.input.indexOf("*/",this.state.pos))throw this.raise(AR.UnterminatedComment,this.state.curPosition())},r.flowEnumErrorBooleanMemberNotInitialized=function(e,t){var r=t.enumName,a=t.memberName;this.raise(hE.EnumBooleanMemberNotInitialized,e,{memberName:a,enumName:r})},r.flowEnumErrorInvalidMemberInitializer=function(e,t){return this.raise(t.explicitType?"symbol"===t.explicitType?hE.EnumInvalidMemberInitializerSymbolType:hE.EnumInvalidMemberInitializerPrimaryType:hE.EnumInvalidMemberInitializerUnknownType,e,t)},r.flowEnumErrorNumberMemberNotInitialized=function(e,t){this.raise(hE.EnumNumberMemberNotInitialized,e,t)},r.flowEnumErrorStringMemberInconsistentlyInitialized=function(e,t){this.raise(hE.EnumStringMemberInconsistentlyInitialized,e,t)},r.flowEnumMemberInit=function(){var e=this,t=this.state.startLoc,r=function(){return e.match(12)||e.match(8)};switch(this.state.type){case 135:var a=this.parseNumericLiteral(this.state.value);return r()?{type:"number",loc:a.loc.start,value:a}:{type:"invalid",loc:t};case 134:var n=this.parseStringLiteral(this.state.value);return r()?{type:"string",loc:n.loc.start,value:n}:{type:"invalid",loc:t};case 85:case 86:var s=this.parseBooleanLiteral(this.match(85));return r()?{type:"boolean",loc:s.loc.start,value:s}:{type:"invalid",loc:t};default:return{type:"invalid",loc:t}}},r.flowEnumMemberRaw=function(){var e=this.state.startLoc;return{id:this.parseIdentifier(!0),init:this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:e}}},r.flowEnumCheckExplicitTypeMismatch=function(e,t,r){var a=t.explicitType;null!==a&&a!==r&&this.flowEnumErrorInvalidMemberInitializer(e,t)},r.flowEnumMembers=function(e){for(var t=e.enumName,r=e.explicitType,a=new Set,n={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]},s=!1;!this.match(8);){if(this.eat(21)){s=!0;break}var o=this.startNode(),i=this.flowEnumMemberRaw(),d=i.id,c=i.init,l=d.name;if(""!==l){/^[a-z]/.test(l)&&this.raise(hE.EnumInvalidMemberName,d,{memberName:l,suggestion:l[0].toUpperCase()+l.slice(1),enumName:t}),a.has(l)&&this.raise(hE.EnumDuplicateMemberName,d,{memberName:l,enumName:t}),a.add(l);var u={enumName:t,explicitType:r,memberName:l};switch(o.id=d,c.type){case"boolean":this.flowEnumCheckExplicitTypeMismatch(c.loc,u,"boolean"),o.init=c.value,n.booleanMembers.push(this.finishNode(o,"EnumBooleanMember"));break;case"number":this.flowEnumCheckExplicitTypeMismatch(c.loc,u,"number"),o.init=c.value,n.numberMembers.push(this.finishNode(o,"EnumNumberMember"));break;case"string":this.flowEnumCheckExplicitTypeMismatch(c.loc,u,"string"),o.init=c.value,n.stringMembers.push(this.finishNode(o,"EnumStringMember"));break;case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(c.loc,u);case"none":switch(r){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(c.loc,u);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(c.loc,u);break;default:n.defaultedMembers.push(this.finishNode(o,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}}return{members:n,hasUnknownMembers:s}},r.flowEnumStringMembers=function(e,t,r){var a=r.enumName;if(0===e.length)return t;if(0===t.length)return e;if(t.length>e.length){for(var n=0;n=f){for(var g=0,m=i.defaultedMembers;g=f){for(var y=0,b=i.defaultedMembers;y",nbsp:"\xa0",iexcl:"\xa1",cent:"\xa2",pound:"\xa3",curren:"\xa4",yen:"\xa5",brvbar:"\xa6",sect:"\xa7",uml:"\xa8",copy:"\xa9",ordf:"\xaa",laquo:"\xab",not:"\xac",shy:"\xad",reg:"\xae",macr:"\xaf",deg:"\xb0",plusmn:"\xb1",sup2:"\xb2",sup3:"\xb3",acute:"\xb4",micro:"\xb5",para:"\xb6",middot:"\xb7",cedil:"\xb8",sup1:"\xb9",ordm:"\xba",raquo:"\xbb",frac14:"\xbc",frac12:"\xbd",frac34:"\xbe",iquest:"\xbf",Agrave:"\xc0",Aacute:"\xc1",Acirc:"\xc2",Atilde:"\xc3",Auml:"\xc4",Aring:"\xc5",AElig:"\xc6",Ccedil:"\xc7",Egrave:"\xc8",Eacute:"\xc9",Ecirc:"\xca",Euml:"\xcb",Igrave:"\xcc",Iacute:"\xcd",Icirc:"\xce",Iuml:"\xcf",ETH:"\xd0",Ntilde:"\xd1",Ograve:"\xd2",Oacute:"\xd3",Ocirc:"\xd4",Otilde:"\xd5",Ouml:"\xd6",times:"\xd7",Oslash:"\xd8",Ugrave:"\xd9",Uacute:"\xda",Ucirc:"\xdb",Uuml:"\xdc",Yacute:"\xdd",THORN:"\xde",szlig:"\xdf",agrave:"\xe0",aacute:"\xe1",acirc:"\xe2",atilde:"\xe3",auml:"\xe4",aring:"\xe5",aelig:"\xe6",ccedil:"\xe7",egrave:"\xe8",eacute:"\xe9",ecirc:"\xea",euml:"\xeb",igrave:"\xec",iacute:"\xed",icirc:"\xee",iuml:"\xef",eth:"\xf0",ntilde:"\xf1",ograve:"\xf2",oacute:"\xf3",ocirc:"\xf4",otilde:"\xf5",ouml:"\xf6",divide:"\xf7",oslash:"\xf8",ugrave:"\xf9",uacute:"\xfa",ucirc:"\xfb",uuml:"\xfc",yacute:"\xfd",thorn:"\xfe",yuml:"\xff",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02c6",tilde:"\u02dc",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039a",Lambda:"\u039b",Mu:"\u039c",Nu:"\u039d",Xi:"\u039e",Omicron:"\u039f",Pi:"\u03a0",Rho:"\u03a1",Sigma:"\u03a3",Tau:"\u03a4",Upsilon:"\u03a5",Phi:"\u03a6",Chi:"\u03a7",Psi:"\u03a8",Omega:"\u03a9",alpha:"\u03b1",beta:"\u03b2",gamma:"\u03b3",delta:"\u03b4",epsilon:"\u03b5",zeta:"\u03b6",eta:"\u03b7",theta:"\u03b8",iota:"\u03b9",kappa:"\u03ba",lambda:"\u03bb",mu:"\u03bc",nu:"\u03bd",xi:"\u03be",omicron:"\u03bf",pi:"\u03c0",rho:"\u03c1",sigmaf:"\u03c2",sigma:"\u03c3",tau:"\u03c4",upsilon:"\u03c5",phi:"\u03c6",chi:"\u03c7",psi:"\u03c8",omega:"\u03c9",thetasym:"\u03d1",upsih:"\u03d2",piv:"\u03d6",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200c",zwj:"\u200d",lrm:"\u200e",rlm:"\u200f",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201a",ldquo:"\u201c",rdquo:"\u201d",bdquo:"\u201e",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203a",oline:"\u203e",frasl:"\u2044",euro:"\u20ac",image:"\u2111",weierp:"\u2118",real:"\u211c",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21b5",lArr:"\u21d0",uArr:"\u21d1",rArr:"\u21d2",dArr:"\u21d3",hArr:"\u21d4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220b",prod:"\u220f",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221a",prop:"\u221d",infin:"\u221e",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222a",int:"\u222b",there4:"\u2234",sim:"\u223c",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22a5",sdot:"\u22c5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230a",rfloor:"\u230b",lang:"\u2329",rang:"\u232a",loz:"\u25ca",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666"},SE=TR(RE||(RE=T(["jsx"])))({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:function(e){return"Expected corresponding JSX closing tag for <"+e.openingTagName+">."},MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>.",UnexpectedSequenceExpression:"Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",UnexpectedToken:function(e){var t=e.unexpected;return"Unexpected token `"+t+"`. Did you mean `"+e.HTMLEntity+"` or `{'"+t+"'}`?"},UnsupportedJsxValue:"JSX value should be either an expression or a quoted JSX text.",UnterminatedJsxContent:"Unterminated JSX contents.",UnwrappedAdjacentJSXElements:"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...?"});function TE(e){return!!e&&("JSXOpeningFragment"===e.type||"JSXClosingFragment"===e.type)}function AE(e){if("JSXIdentifier"===e.type)return e.name;if("JSXNamespacedName"===e.type)return e.namespace.name+":"+e.name.name;if("JSXMemberExpression"===e.type)return AE(e.object)+"."+AE(e.property);throw new Error("Node had unexpected type: "+e.type)}var kE,CE=function(e){return function(e){function t(){return e.apply(this,arguments)||this}g(t,e);var r=t.prototype;return r.jsxReadToken=function(){for(var t="",r=this.state.pos;;){if(this.state.pos>=this.length)throw this.raise(SE.UnterminatedJsxContent,this.state.startLoc);var a=this.input.charCodeAt(this.state.pos);switch(a){case 60:case 123:return this.state.pos===this.state.start?void(60===a&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(143)):e.prototype.getTokenFromCode.call(this,a)):(t+=this.input.slice(r,this.state.pos),void this.finishToken(142,t));case 38:t+=this.input.slice(r,this.state.pos),t+=this.jsxReadEntity(),r=this.state.pos;break;default:Bw(a)?(t+=this.input.slice(r,this.state.pos),t+=this.jsxReadNewLine(!0),r=this.state.pos):++this.state.pos}}},r.jsxReadNewLine=function(e){var t,r=this.input.charCodeAt(this.state.pos);return++this.state.pos,13===r&&10===this.input.charCodeAt(this.state.pos)?(++this.state.pos,t=e?"\n":"\r\n"):t=String.fromCharCode(r),++this.state.curLine,this.state.lineStart=this.state.pos,t},r.jsxReadString=function(e){for(var t="",r=++this.state.pos;;){if(this.state.pos>=this.length)throw this.raise(AR.UnterminatedString,this.state.startLoc);var a=this.input.charCodeAt(this.state.pos);if(a===e)break;38===a?(t+=this.input.slice(r,this.state.pos),t+=this.jsxReadEntity(),r=this.state.pos):Bw(a)?(t+=this.input.slice(r,this.state.pos),t+=this.jsxReadNewLine(!1),r=this.state.pos):++this.state.pos}t+=this.input.slice(r,this.state.pos++),this.finishToken(134,t)},r.jsxReadEntity=function(){var e=++this.state.pos;if(35===this.codePointAtPos(this.state.pos)){++this.state.pos;var t=10;120===this.codePointAtPos(this.state.pos)&&(t=16,++this.state.pos);var r=this.readInt(t,void 0,!1,"bail");if(null!==r&&59===this.codePointAtPos(this.state.pos))return++this.state.pos,String.fromCodePoint(r)}else{for(var a=0,n=!1;a++<10&&this.state.pos1)for(var a=0;a0?!(a&jw.FLAG_TS_ENUM)||!!(a&jw.FLAG_TS_CONST_ENUM)!==(4&n)>0:a&jw.FLAG_CLASS&&(8&n)>0?!!(t.names.get(r)&Tw.Lexical)&&!!(a&jw.KIND_VALUE):!!(a&jw.KIND_TYPE&&(1&n)>0)||e.prototype.isRedeclaredInScope.call(this,t,r,a)},r.checkLocalExport=function(t){var r=t.name;if(!this.hasImport(r)){for(var a=this.scopeStack.length-1;a>=0;a--){var n=this.scopeStack[a].tsNames.get(r);if((1&n)>0||(16&n)>0)return}e.prototype.checkLocalExport.call(this,t)}},u(t)}(kw),DE=function(e){return"ParenthesizedExpression"===e.type?DE(e.expression):e},IE={ALLOW_EMPTY:1,IS_FUNCTION_PARAMS:2,IS_CONSTRUCTOR_PARAMS:4},OE=function(e){function t(){return e.apply(this,arguments)||this}g(t,e);var r=t.prototype;return r.toAssignable=function(e,t){var r,a;void 0===t&&(t=!1);var n=void 0;switch(("ParenthesizedExpression"===e.type||null!=(r=e.extra)&&r.parenthesized)&&(n=DE(e),t?"Identifier"===n.type?this.expressionScope.recordArrowParameterBindingError(AR.InvalidParenthesizedAssignment,e):"MemberExpression"===n.type||this.isOptionalMemberExpression(n)||this.raise(AR.InvalidParenthesizedAssignment,e):this.raise(AR.InvalidParenthesizedAssignment,e)),e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern";for(var s=0,o=e.properties.length,i=o-1;s() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccessorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccessorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccessorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:function(e){var t=e.typeParameterName;return"Single type parameter "+t+" should have a trailing comma. Example usage: <"+t+",>."},StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TupleOptionalAfterType:"A labeled tuple optional element must be declared using a question mark after the name and before the colon (`name?: type`), rather than after the type (`name: type?`).",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:function(e){return"Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got "+e.type+"."}});function ME(e){switch(e){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return}}function LE(e){return"private"===e||"public"===e||"protected"===e}function UE(e){return"in"===e||"out"===e}var qE,WE=function(e){return function(e){function t(){for(var t,r=arguments.length,a=new Array(r),n=0;n0&&(this.raise(AR.BadGetterArity,this.state.curPosition()),this.isThisParam(a[n][0])&&this.raise(BE.AccessorCannotDeclareThisParameter,this.state.curPosition()));else if("set"===a.kind){if(1!==a[n].length)this.raise(AR.BadSetterArity,this.state.curPosition());else{var o=a[n][0];this.isThisParam(o)&&this.raise(BE.AccessorCannotDeclareThisParameter,this.state.curPosition()),"Identifier"===o.type&&o.optional&&this.raise(BE.SetAccessorCannotHaveOptionalParameter,this.state.curPosition()),"RestElement"===o.type&&this.raise(BE.SetAccessorCannotHaveRestParameter,this.state.curPosition())}a[s]&&this.raise(BE.SetAccessorCannotHaveReturnType,a[s])}else a.kind="method";return this.finishNode(a,"TSMethodSignature")}var i=r;t&&(i.readonly=!0);var d=this.tsTryParseTypeAnnotation();return d&&(i.typeAnnotation=d),this.tsParseTypeMemberSemicolon(),this.finishNode(i,"TSPropertySignature")},r.tsParseTypeMember=function(){var t=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",t);if(this.match(77)){var r=this.startNode();return this.next(),this.match(10)||this.match(47)?this.tsParseSignatureMember("TSConstructSignatureDeclaration",t):(t.key=this.createIdentifier(r,"new"),this.tsParsePropertyOrMethodSignature(t,!1))}this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},t);var a=this.tsTryParseIndexSignature(t);return a||(e.prototype.parsePropertyName.call(this,t),t.computed||"Identifier"!==t.key.type||"get"!==t.key.name&&"set"!==t.key.name||!this.tsTokenCanFollowModifier()||(t.kind=t.key.name,e.prototype.parsePropertyName.call(this,t)),this.tsParsePropertyOrMethodSignature(t,!!t.readonly))},r.tsParseTypeLiteral=function(){var e=this.startNode();return e.members=this.tsParseObjectTypeMembers(),this.finishNode(e,"TSTypeLiteral")},r.tsParseObjectTypeMembers=function(){this.expect(5);var e=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),e},r.tsIsStartOfMappedType=function(){return this.next(),this.eat(53)?this.isContextual(122):(this.isContextual(122)&&this.next(),!!this.match(0)&&(this.next(),!!this.tsIsIdentifier()&&(this.next(),this.match(58))))},r.tsParseMappedType=function(){var e=this.startNode();this.expect(5),this.match(53)?(e.readonly=this.state.value,this.next(),this.expectContextual(122)):this.eatContextual(122)&&(e.readonly=!0),this.expect(0);var t=this.startNode();return t.name=this.tsParseTypeParameterName(),t.constraint=this.tsExpectThenParseType(58),e.typeParameter=this.finishNode(t,"TSTypeParameter"),e.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53)?(e.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(e.optional=!0),e.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(e,"TSMappedType")},r.tsParseTupleType=function(){var e=this,t=this.startNode();t.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);var r=!1;return t.elementTypes.forEach((function(t){var a=t.type;!r||"TSRestType"===a||"TSOptionalType"===a||"TSNamedTupleMember"===a&&t.optional||e.raise(BE.OptionalTypeBeforeRequired,t),r||(r="TSNamedTupleMember"===a&&t.optional||"TSOptionalType"===a)})),this.finishNode(t,"TSTupleType")},r.tsParseTupleElementType=function(){var e,t,r,a,n,s=this.state.startLoc,o=this.eat(21),i=rw(this.state.type)?this.lookaheadCharCode():null;if(58===i)e=!0,r=!1,t=this.parseIdentifier(!0),this.expect(14),a=this.tsParseType();else if(63===i){r=!0;var d=this.state.startLoc,c=this.state.value,l=this.tsParseNonArrayType();58===this.lookaheadCharCode()?(e=!0,t=this.createIdentifier(this.startNodeAt(d),c),this.expect(17),this.expect(14),a=this.tsParseType()):(e=!1,a=l,this.expect(17))}else a=this.tsParseType(),r=this.eat(17),e=this.eat(14);if(e)t?((n=this.startNodeAtNode(t)).optional=r,n.label=t,n.elementType=a,this.eat(17)&&(n.optional=!0,this.raise(BE.TupleOptionalAfterType,this.state.lastTokStartLoc))):((n=this.startNodeAtNode(a)).optional=r,this.raise(BE.InvalidTupleMemberLabel,a),n.label=a,n.elementType=this.tsParseType()),a=this.finishNode(n,"TSNamedTupleMember");else if(r){var u=this.startNodeAtNode(a);u.typeAnnotation=a,a=this.finishNode(u,"TSOptionalType")}if(o){var p=this.startNodeAt(s);p.typeAnnotation=a,a=this.finishNode(p,"TSRestType")}return a},r.tsParseParenthesizedType=function(){var e=this.startNode();return this.expect(10),e.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(e,"TSParenthesizedType")},r.tsParseFunctionOrConstructorType=function(e,t){var r=this,a=this.startNode();return"TSConstructorType"===e&&(a.abstract=!!t,t&&this.next(),this.next()),this.tsInAllowConditionalTypesContext((function(){return r.tsFillSignature(19,a)})),this.finishNode(a,e)},r.tsParseLiteralTypeNode=function(){var t=this.startNode();switch(this.state.type){case 135:case 136:case 134:case 85:case 86:t.literal=e.prototype.parseExprAtom.call(this);break;default:this.unexpected()}return this.finishNode(t,"TSLiteralType")},r.tsParseTemplateLiteralType=function(){var t=this.startNode();return t.literal=e.prototype.parseTemplate.call(this,!1),this.finishNode(t,"TSLiteralType")},r.parseTemplateSubstitution=function(){return this.state.inType?this.tsParseType():e.prototype.parseTemplateSubstitution.call(this)},r.tsParseThisTypeOrThisTypePredicate=function(){var e=this.tsParseThisTypeNode();return this.isContextual(116)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(e):e},r.tsParseNonArrayType=function(){switch(this.state.type){case 134:case 135:case 136:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if("-"===this.state.value){var e=this.startNode(),t=this.lookahead();return 135!==t.type&&136!==t.type&&this.unexpected(),e.literal=this.parseMaybeUnary(),this.finishNode(e,"TSLiteralType")}break;case 78:return this.tsParseThisTypeOrThisTypePredicate();case 87:return this.tsParseTypeQuery();case 83:return this.tsParseImportType();case 5:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 10:return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:var r=this.state.type;if(ew(r)||88===r||84===r){var a=88===r?"TSVoidKeyword":84===r?"TSNullKeyword":ME(this.state.value);if(void 0!==a&&46!==this.lookaheadCharCode()){var n=this.startNode();return this.next(),this.finishNode(n,a)}return this.tsParseTypeReference()}}this.unexpected()},r.tsParseArrayTypeOrHigher=function(){for(var e=this.tsParseNonArrayType();!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){var t=this.startNodeAtNode(e);t.elementType=e,this.expect(3),e=this.finishNode(t,"TSArrayType")}else{var r=this.startNodeAtNode(e);r.objectType=e,r.indexType=this.tsParseType(),this.expect(3),e=this.finishNode(r,"TSIndexedAccessType")}return e},r.tsParseTypeOperator=function(){var e=this.startNode(),t=this.state.value;return this.next(),e.operator=t,e.typeAnnotation=this.tsParseTypeOperatorOrHigher(),"readonly"===t&&this.tsCheckTypeAnnotationForReadOnly(e),this.finishNode(e,"TSTypeOperator")},r.tsCheckTypeAnnotationForReadOnly=function(e){switch(e.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(BE.UnexpectedReadonly,e)}},r.tsParseInferType=function(){var e=this,t=this.startNode();this.expectContextual(115);var r=this.startNode();return r.name=this.tsParseTypeParameterName(),r.constraint=this.tsTryParse((function(){return e.tsParseConstraintForInferType()})),t.typeParameter=this.finishNode(r,"TSTypeParameter"),this.finishNode(t,"TSInferType")},r.tsParseConstraintForInferType=function(){var e=this;if(this.eat(81)){var t=this.tsInDisallowConditionalTypesContext((function(){return e.tsParseType()}));if(this.state.inDisallowConditionalTypesContext||!this.match(17))return t}},r.tsParseTypeOperatorOrHigher=function(){var e=this;return fw(this.state.type)&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext((function(){return e.tsParseArrayTypeOrHigher()}))},r.tsParseUnionOrIntersectionType=function(e,t,r){var a=this.startNode(),n=this.eat(r),s=[];do{s.push(t())}while(this.eat(r));return 1!==s.length||n?(a.types=s,this.finishNode(a,e)):s[0]},r.tsParseIntersectionTypeOrHigher=function(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),45)},r.tsParseUnionTypeOrHigher=function(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),43)},r.tsIsStartOfFunctionType=function(){return!!this.match(47)||this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))},r.tsSkipParameterStart=function(){if(ew(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){var t=this.state.errors,r=t.length;try{return this.parseObjectLike(8,!0),t.length===r}catch(s){return!1}}if(this.match(0)){this.next();var a=this.state.errors,n=a.length;try{return e.prototype.parseBindingList.call(this,3,93,IE.ALLOW_EMPTY),a.length===n}catch(o){return!1}}return!1},r.tsIsUnambiguouslyStartOfFunctionType=function(){if(this.next(),this.match(11)||this.match(21))return!0;if(this.tsSkipParameterStart()){if(this.match(14)||this.match(12)||this.match(17)||this.match(29))return!0;if(this.match(11)&&(this.next(),this.match(19)))return!0}return!1},r.tsParseTypeOrTypePredicateAnnotation=function(e){var t=this;return this.tsInType((function(){var r=t.startNode();t.expect(e);var a=t.startNode(),n=!!t.tsTryParse(t.tsParseTypePredicateAsserts.bind(t));if(n&&t.match(78)){var s=t.tsParseThisTypeOrThisTypePredicate();return"TSThisType"===s.type?(a.parameterName=s,a.asserts=!0,a.typeAnnotation=null,s=t.finishNode(a,"TSTypePredicate")):(t.resetStartLocationFromNode(s,a),s.asserts=!0),r.typeAnnotation=s,t.finishNode(r,"TSTypeAnnotation")}var o=t.tsIsIdentifier()&&t.tsTryParse(t.tsParseTypePredicatePrefix.bind(t));if(!o)return n?(a.parameterName=t.parseIdentifier(),a.asserts=n,a.typeAnnotation=null,r.typeAnnotation=t.finishNode(a,"TSTypePredicate"),t.finishNode(r,"TSTypeAnnotation")):t.tsParseTypeAnnotation(!1,r);var i=t.tsParseTypeAnnotation(!1);return a.parameterName=o,a.typeAnnotation=i,a.asserts=n,r.typeAnnotation=t.finishNode(a,"TSTypePredicate"),t.finishNode(r,"TSTypeAnnotation")}))},r.tsTryParseTypeOrTypePredicateAnnotation=function(){if(this.match(14))return this.tsParseTypeOrTypePredicateAnnotation(14)},r.tsTryParseTypeAnnotation=function(){if(this.match(14))return this.tsParseTypeAnnotation()},r.tsTryParseType=function(){return this.tsEatThenParseType(14)},r.tsParseTypePredicatePrefix=function(){var e=this.parseIdentifier();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.next(),e},r.tsParseTypePredicateAsserts=function(){if(109!==this.state.type)return!1;var e=this.state.containsEsc;return this.next(),!(!ew(this.state.type)&&!this.match(78))&&(e&&this.raise(AR.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:"asserts"}),!0)},r.tsParseTypeAnnotation=function(e,t){var r=this;return void 0===e&&(e=!0),void 0===t&&(t=this.startNode()),this.tsInType((function(){e&&r.expect(14),t.typeAnnotation=r.tsParseType()})),this.finishNode(t,"TSTypeAnnotation")},r.tsParseType=function(){var e=this;FE(this.state.inType);var t=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return t;var r=this.startNodeAtNode(t);return r.checkType=t,r.extendsType=this.tsInDisallowConditionalTypesContext((function(){return e.tsParseNonConditionalType()})),this.expect(17),r.trueType=this.tsInAllowConditionalTypesContext((function(){return e.tsParseType()})),this.expect(14),r.falseType=this.tsInAllowConditionalTypesContext((function(){return e.tsParseType()})),this.finishNode(r,"TSConditionalType")},r.isAbstractConstructorSignature=function(){return this.isContextual(124)&&77===this.lookahead().type},r.tsParseNonConditionalType=function(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(77)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()},r.tsParseTypeAssertion=function(){var e=this;this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(BE.ReservedTypeAssertion,this.state.startLoc);var t=this.startNode();return t.typeAnnotation=this.tsInType((function(){return e.next(),e.match(75)?e.tsParseTypeReference():e.tsParseType()})),this.expect(48),t.expression=this.parseMaybeUnary(),this.finishNode(t,"TSTypeAssertion")},r.tsParseHeritageClause=function(e){var t=this,r=this.state.startLoc,a=this.tsParseDelimitedList("HeritageClauseElement",(function(){var e=t.startNode();return e.expression=t.tsParseEntityName(),t.match(47)&&(e.typeParameters=t.tsParseTypeArguments()),t.finishNode(e,"TSExpressionWithTypeArguments")}));return a.length||this.raise(BE.EmptyHeritageClauseType,r,{token:e}),a},r.tsParseInterfaceDeclaration=function(e,t){if(void 0===t&&(t={}),this.hasFollowingLineBreak())return null;this.expectContextual(129),t.declare&&(e.declare=!0),ew(this.state.type)?(e.id=this.parseIdentifier(),this.checkIdentifier(e.id,jw.TYPE_TS_INTERFACE)):(e.id=null,this.raise(BE.MissingInterfaceName,this.state.startLoc)),e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81)&&(e.extends=this.tsParseHeritageClause("extends"));var r=this.startNode();return r.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),e.body=this.finishNode(r,"TSInterfaceBody"),this.finishNode(e,"TSInterfaceDeclaration")},r.tsParseTypeAliasDeclaration=function(e){var t=this;return e.id=this.parseIdentifier(),this.checkIdentifier(e.id,jw.TYPE_TS_TYPE),e.typeAnnotation=this.tsInType((function(){if(e.typeParameters=t.tsTryParseTypeParameters(t.tsParseInOutModifiers),t.expect(29),t.isContextual(114)&&16!==t.lookahead().type){var r=t.startNode();return t.next(),t.finishNode(r,"TSIntrinsicKeyword")}return t.tsParseType()})),this.semicolon(),this.finishNode(e,"TSTypeAliasDeclaration")},r.tsInNoContext=function(e){var t=this.state.context;this.state.context=[t[0]];try{return e()}finally{this.state.context=t}},r.tsInType=function(e){var t=this.state.inType;this.state.inType=!0;try{return e()}finally{this.state.inType=t}},r.tsInDisallowConditionalTypesContext=function(e){var t=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return e()}finally{this.state.inDisallowConditionalTypesContext=t}},r.tsInAllowConditionalTypesContext=function(e){var t=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return e()}finally{this.state.inDisallowConditionalTypesContext=t}},r.tsEatThenParseType=function(e){if(this.match(e))return this.tsNextThenParseType()},r.tsExpectThenParseType=function(e){var t=this;return this.tsInType((function(){return t.expect(e),t.tsParseType()}))},r.tsNextThenParseType=function(){var e=this;return this.tsInType((function(){return e.next(),e.tsParseType()}))},r.tsParseEnumMember=function(){var t=this.startNode();return t.id=this.match(134)?e.prototype.parseStringLiteral.call(this,this.state.value):this.parseIdentifier(!0),this.eat(29)&&(t.initializer=e.prototype.parseMaybeAssignAllowIn.call(this)),this.finishNode(t,"TSEnumMember")},r.tsParseEnumDeclaration=function(e,t){return void 0===t&&(t={}),t.const&&(e.const=!0),t.declare&&(e.declare=!0),this.expectContextual(126),e.id=this.parseIdentifier(),this.checkIdentifier(e.id,e.const?jw.TYPE_TS_CONST_ENUM:jw.TYPE_TS_ENUM),this.expect(5),e.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(e,"TSEnumDeclaration")},r.tsParseModuleBlock=function(){var t=this.startNode();return this.scope.enter(Ew.OTHER),this.expect(5),e.prototype.parseBlockOrModuleBlockBody.call(this,t.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(t,"TSModuleBlock")},r.tsParseModuleOrNamespaceDeclaration=function(e,t){if(void 0===t&&(t=!1),e.id=this.parseIdentifier(),t||this.checkIdentifier(e.id,jw.TYPE_TS_NAMESPACE),this.eat(16)){var r=this.startNode();this.tsParseModuleOrNamespaceDeclaration(r,!0),e.body=r}else this.scope.enter(Ew.TS_MODULE),this.prodParam.enter(aE.PARAM),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(e,"TSModuleDeclaration")},r.tsParseAmbientExternalModuleDeclaration=function(t){return this.isContextual(112)?(t.kind="global",t.global=!0,t.id=this.parseIdentifier()):this.match(134)?(t.kind="module",t.id=e.prototype.parseStringLiteral.call(this,this.state.value)):this.unexpected(),this.match(5)?(this.scope.enter(Ew.TS_MODULE),this.prodParam.enter(aE.PARAM),t.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(t,"TSModuleDeclaration")},r.tsParseImportEqualsDeclaration=function(e,t,r){e.isExport=r||!1,e.id=t||this.parseIdentifier(),this.checkIdentifier(e.id,jw.TYPE_TS_VALUE_IMPORT),this.expect(29);var a=this.tsParseModuleReference();return"type"===e.importKind&&"TSExternalModuleReference"!==a.type&&this.raise(BE.ImportAliasHasImportType,a),e.moduleReference=a,this.semicolon(),this.finishNode(e,"TSImportEqualsDeclaration")},r.tsIsExternalModuleReference=function(){return this.isContextual(119)&&40===this.lookaheadCharCode()},r.tsParseModuleReference=function(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)},r.tsParseExternalModuleReference=function(){var t=this.startNode();return this.expectContextual(119),this.expect(10),this.match(134)||this.unexpected(),t.expression=e.prototype.parseExprAtom.call(this),this.expect(11),this.sawUnambiguousESM=!0,this.finishNode(t,"TSExternalModuleReference")},r.tsLookAhead=function(e){var t=this.state.clone(),r=e();return this.state=t,r},r.tsTryParseAndCatch=function(e){var t=this.tryParse((function(t){return e()||t()}));if(!t.aborted&&t.node)return t.error&&(this.state=t.failState),t.node},r.tsTryParse=function(e){var t=this.state.clone(),r=e();if(void 0!==r&&!1!==r)return r;this.state=t},r.tsTryParseDeclare=function(t){var r=this;if(!this.isLineTerminator()){var a,n=this.state.type;return this.isContextual(100)&&(n=74,a="let"),this.tsInAmbientContext((function(){switch(n){case 68:return t.declare=!0,e.prototype.parseFunctionStatement.call(r,t,!1,!1);case 80:return t.declare=!0,r.parseClass(t,!0,!1);case 126:return r.tsParseEnumDeclaration(t,{declare:!0});case 112:return r.tsParseAmbientExternalModuleDeclaration(t);case 75:case 74:return r.match(75)&&r.isLookaheadContextual("enum")?(r.expect(75),r.tsParseEnumDeclaration(t,{const:!0,declare:!0})):(t.declare=!0,r.parseVarStatement(t,a||r.state.value,!0));case 129:var s=r.tsParseInterfaceDeclaration(t,{declare:!0});if(s)return s;default:if(ew(n))return r.tsParseDeclaration(t,r.state.value,!0,null)}}))}},r.tsTryParseExportDeclaration=function(){return this.tsParseDeclaration(this.startNode(),this.state.value,!0,null)},r.tsParseExpressionStatement=function(e,t,r){switch(t.name){case"declare":var a=this.tsTryParseDeclare(e);return a&&(a.declare=!0),a;case"global":if(this.match(5)){this.scope.enter(Ew.TS_MODULE),this.prodParam.enter(aE.PARAM);var n=e;return n.kind="global",n.global=!0,n.id=t,n.body=this.tsParseModuleBlock(),this.scope.exit(),this.prodParam.exit(),this.finishNode(n,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(e,t.name,!1,r)}},r.tsParseDeclaration=function(e,t,r,a){switch(t){case"abstract":if(this.tsCheckLineTerminator(r)&&(this.match(80)||ew(this.state.type)))return this.tsParseAbstractDeclaration(e,a);break;case"module":if(this.tsCheckLineTerminator(r)){if(this.match(134))return this.tsParseAmbientExternalModuleDeclaration(e);if(ew(this.state.type))return e.kind="module",this.tsParseModuleOrNamespaceDeclaration(e)}break;case"namespace":if(this.tsCheckLineTerminator(r)&&ew(this.state.type))return e.kind="namespace",this.tsParseModuleOrNamespaceDeclaration(e);break;case"type":if(this.tsCheckLineTerminator(r)&&ew(this.state.type))return this.tsParseTypeAliasDeclaration(e)}},r.tsCheckLineTerminator=function(e){return e?!this.hasFollowingLineBreak()&&(this.next(),!0):!this.isLineTerminator()},r.tsTryParseGenericAsyncArrowFunction=function(t){var r=this;if(this.match(47)){var a=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;var n=this.tsTryParseAndCatch((function(){var a=r.startNodeAt(t);return a.typeParameters=r.tsParseTypeParameters(r.tsParseConstModifier),e.prototype.parseFunctionParams.call(r,a),a.returnType=r.tsTryParseTypeOrTypePredicateAnnotation(),r.expect(19),a}));if(this.state.maybeInArrowParameters=a,n)return e.prototype.parseArrowExpression.call(this,n,null,!0)}},r.tsParseTypeArgumentsInExpression=function(){if(47===this.reScan_lt())return this.tsParseTypeArguments()},r.tsParseTypeArguments=function(){var e=this,t=this.startNode();return t.params=this.tsInType((function(){return e.tsInNoContext((function(){return e.expect(47),e.tsParseDelimitedList("TypeParametersOrArguments",e.tsParseType.bind(e))}))})),0===t.params.length?this.raise(BE.EmptyTypeArguments,t):this.state.inType||this.curContext()!==IR.brace||this.reScan_lt_gt(),this.expect(48),this.finishNode(t,"TSTypeParameterInstantiation")},r.tsIsDeclarationStart=function(){return gw(this.state.type)},r.isExportDefaultSpecifier=function(){return!this.tsIsDeclarationStart()&&e.prototype.isExportDefaultSpecifier.call(this)},r.parseAssignableListItem=function(e,t){var r=this.state.startLoc,a={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},a);var n=a.accessibility,s=a.override,o=a.readonly;e&IE.IS_CONSTRUCTOR_PARAMS||!(n||o||s)||this.raise(BE.UnexpectedParameterModifier,r);var i=this.parseMaybeDefault();e&IE.IS_FUNCTION_PARAMS&&this.parseFunctionParamType(i);var d=this.parseMaybeDefault(i.loc.start,i);if(n||o||s){var c=this.startNodeAt(r);return t.length&&(c.decorators=t),n&&(c.accessibility=n),o&&(c.readonly=o),s&&(c.override=s),"Identifier"!==d.type&&"AssignmentPattern"!==d.type&&this.raise(BE.UnsupportedParameterPropertyKind,c),c.parameter=d,this.finishNode(c,"TSParameterProperty")}return t.length&&(i.decorators=t),d},r.isSimpleParameter=function(t){return"TSParameterProperty"===t.type&&e.prototype.isSimpleParameter.call(this,t.parameter)||e.prototype.isSimpleParameter.call(this,t)},r.tsDisallowOptionalPattern=function(e){for(var t=0,r=e.params;ta&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(n=this.isContextual(120)))){var o=this.startNodeAt(r);return o.expression=t,o.typeAnnotation=this.tsInType((function(){return s.next(),s.match(75)?(n&&s.raise(AR.UnexpectedKeyword,s.state.startLoc,{keyword:"const"}),s.tsParseTypeReference()):s.tsParseType()})),this.finishNode(o,n?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(o,r,a)}return e.prototype.parseExprOp.call(this,t,r,a)},r.checkReservedWord=function(t,r,a,n){this.state.isAmbientContext||e.prototype.checkReservedWord.call(this,t,r,a,n)},r.checkImportReflection=function(t){e.prototype.checkImportReflection.call(this,t),t.module&&"value"!==t.importKind&&this.raise(BE.ImportReflectionHasImportType,t.specifiers[0].loc.start)},r.checkDuplicateExports=function(){},r.isPotentialImportPhase=function(t){if(e.prototype.isPotentialImportPhase.call(this,t))return!0;if(this.isContextual(130)){var r=this.lookaheadCharCode();return t?123===r||42===r:61!==r}return!t&&this.isContextual(87)},r.applyImportPhase=function(t,r,a,n){e.prototype.applyImportPhase.call(this,t,r,a,n),r?t.exportKind="type"===a?"type":"value":t.importKind="type"===a||"typeof"===a?a:"value"},r.parseImport=function(t){if(this.match(134))return t.importKind="value",e.prototype.parseImport.call(this,t);var r;if(ew(this.state.type)&&61===this.lookaheadCharCode())return t.importKind="value",this.tsParseImportEqualsDeclaration(t);if(this.isContextual(130)){var a=this.parseMaybeImportPhase(t,!1);if(61===this.lookaheadCharCode())return this.tsParseImportEqualsDeclaration(t,a);r=e.prototype.parseImportSpecifiersAndAfter.call(this,t,a)}else r=e.prototype.parseImport.call(this,t);return"type"===r.importKind&&r.specifiers.length>1&&"ImportDefaultSpecifier"===r.specifiers[0].type&&this.raise(BE.TypeImportCannotSpecifyDefaultAndNamed,r),r},r.parseExport=function(t,r){if(this.match(83)){this.next();var a=t,n=null;return this.isContextual(130)&&this.isPotentialImportPhase(!1)?n=this.parseMaybeImportPhase(a,!1):a.importKind="value",this.tsParseImportEqualsDeclaration(a,n,!0)}if(this.eat(29)){var s=t;return s.expression=e.prototype.parseExpression.call(this),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(s,"TSExportAssignment")}if(this.eatContextual(93)){var o=t;return this.expectContextual(128),o.id=this.parseIdentifier(),this.semicolon(),this.finishNode(o,"TSNamespaceExportDeclaration")}return e.prototype.parseExport.call(this,t,r)},r.isAbstractClass=function(){return this.isContextual(124)&&80===this.lookahead().type},r.parseExportDefaultExpression=function(){if(this.isAbstractClass()){var t=this.startNode();return this.next(),t.abstract=!0,this.parseClass(t,!0,!0)}if(this.match(129)){var r=this.tsParseInterfaceDeclaration(this.startNode());if(r)return r}return e.prototype.parseExportDefaultExpression.call(this)},r.parseVarStatement=function(t,r,a){void 0===a&&(a=!1);var n=this.state.isAmbientContext,s=e.prototype.parseVarStatement.call(this,t,r,a||n);if(!n)return s;for(var o=0,i=s.declarations;o0))&&KE(e.object)}function zE(e,t){var r,a=e.type;if(null!=(r=e.extra)&&r.parenthesized)return!1;if(t){if("Literal"===a){var n=e.value;if("string"===typeof n||"boolean"===typeof n)return!0}}else if("StringLiteral"===a||"BooleanLiteral"===a)return!0;return!(!GE(e,t)&&!VE(e,t))||"TemplateLiteral"===a&&0===e.expressions.length||!!HE(e)}function GE(e,t){return t?"Literal"===e.type&&("number"===typeof e.value||"bigint"in e):"NumericLiteral"===e.type||"BigIntLiteral"===e.type}function VE(e,t){if("UnaryExpression"===e.type){var r=e.operator,a=e.argument;if("-"===r&&GE(a,t))return!0}return!1}function KE(e){return"Identifier"===e.type||"MemberExpression"===e.type&&!e.computed&&KE(e.object)}var YE=TR(qE||(qE=T(["placeholders"])))({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."}),JE=function(e){return function(e){function t(){return e.apply(this,arguments)||this}g(t,e);var r=t.prototype;return r.parsePlaceholder=function(t){if(this.match(133)){var r=this.startNode();return this.next(),this.assertNoSpace(),r.name=e.prototype.parseIdentifier.call(this,!0),this.assertNoSpace(),this.expect(133),this.finishPlaceholder(r,t)}},r.finishPlaceholder=function(e,t){var r=e;return r.expectedNode&&r.type||(r=this.finishNode(r,"Placeholder")),r.expectedNode=t,r},r.getTokenFromCode=function(t){37===t&&37===this.input.charCodeAt(this.state.pos+1)?this.finishOp(133,2):e.prototype.getTokenFromCode.call(this,t)},r.parseExprAtom=function(t){return this.parsePlaceholder("Expression")||e.prototype.parseExprAtom.call(this,t)},r.parseIdentifier=function(t){return this.parsePlaceholder("Identifier")||e.prototype.parseIdentifier.call(this,t)},r.checkReservedWord=function(t,r,a,n){void 0!==t&&e.prototype.checkReservedWord.call(this,t,r,a,n)},r.parseBindingAtom=function(){return this.parsePlaceholder("Pattern")||e.prototype.parseBindingAtom.call(this)},r.isValidLVal=function(t,r,a){return"Placeholder"===t||e.prototype.isValidLVal.call(this,t,r,a)},r.toAssignable=function(t,r){t&&"Placeholder"===t.type&&"Expression"===t.expectedNode?t.expectedNode="Pattern":e.prototype.toAssignable.call(this,t,r)},r.chStartsBindingIdentifier=function(t,r){return!!e.prototype.chStartsBindingIdentifier.call(this,t,r)||133===this.lookahead().type},r.verifyBreakContinue=function(t,r){t.label&&"Placeholder"===t.label.type||e.prototype.verifyBreakContinue.call(this,t,r)},r.parseExpressionStatement=function(t,r){var a;if("Placeholder"!==r.type||null!=(a=r.extra)&&a.parenthesized)return e.prototype.parseExpressionStatement.call(this,t,r);if(this.match(14)){var n=t;return n.label=this.finishPlaceholder(r,"Identifier"),this.next(),n.body=e.prototype.parseStatementOrSloppyAnnexBFunctionDeclaration.call(this),this.finishNode(n,"LabeledStatement")}this.semicolon();var s=t;return s.name=r.name,this.finishPlaceholder(s,"Statement")},r.parseBlock=function(t,r,a){return this.parsePlaceholder("BlockStatement")||e.prototype.parseBlock.call(this,t,r,a)},r.parseFunctionId=function(t){return this.parsePlaceholder("Identifier")||e.prototype.parseFunctionId.call(this,t)},r.parseClass=function(t,r,a){var n=r?"ClassDeclaration":"ClassExpression";this.next();var s=this.state.strict,o=this.parsePlaceholder("Identifier");if(o){if(!(this.match(81)||this.match(133)||this.match(5))){if(a||!r)return t.id=null,t.body=this.finishPlaceholder(o,"ClassBody"),this.finishNode(t,n);throw this.raise(YE.ClassNameIsRequired,this.state.startLoc)}t.id=o}else this.parseClassId(t,r,a);return e.prototype.parseClassSuper.call(this,t),t.body=this.parsePlaceholder("ClassBody")||e.prototype.parseClassBody.call(this,!!t.superClass,s),this.finishNode(t,n)},r.parseExport=function(t,r){var a=this.parsePlaceholder("Identifier");if(!a)return e.prototype.parseExport.call(this,t,r);var n=t;if(!this.isContextual(98)&&!this.match(12))return n.specifiers=[],n.source=null,n.declaration=this.finishPlaceholder(a,"Declaration"),this.finishNode(n,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");var s=this.startNode();return s.exported=a,n.specifiers=[this.finishNode(s,"ExportDefaultSpecifier")],e.prototype.parseExport.call(this,n,r)},r.isExportDefaultSpecifier=function(){if(this.match(65)){var t=this.nextTokenStart();if(this.isUnparsedContextual(t,"from")&&this.input.startsWith(mw(133),this.nextTokenStartSince(t+4)))return!0}return e.prototype.isExportDefaultSpecifier.call(this)},r.maybeParseExportDefaultSpecifier=function(t,r){var a;return!(null==(a=t.specifiers)||!a.length)||e.prototype.maybeParseExportDefaultSpecifier.call(this,t,r)},r.checkExport=function(t){var r=t.specifiers;null!=r&&r.length&&(t.specifiers=r.filter((function(e){return"Placeholder"===e.exported.type}))),e.prototype.checkExport.call(this,t),t.specifiers=r},r.parseImport=function(t){var r=this.parsePlaceholder("Identifier");if(!r)return e.prototype.parseImport.call(this,t);if(t.specifiers=[],!this.isContextual(98)&&!this.match(12))return t.source=this.finishPlaceholder(r,"StringLiteral"),this.semicolon(),this.finishNode(t,"ImportDeclaration");var a=this.startNodeAtNode(r);return a.local=r,t.specifiers.push(this.finishNode(a,"ImportDefaultSpecifier")),this.eat(12)&&(this.maybeParseStarImportSpecifier(t)||this.parseNamedImportSpecifiers(t)),this.expectContextual(98),t.source=this.parseImportSource(),this.semicolon(),this.finishNode(t,"ImportDeclaration")},r.parseImportSource=function(){return this.parsePlaceholder("StringLiteral")||e.prototype.parseImportSource.call(this)},r.assertNoSpace=function(){this.state.start>this.offsetToSourcePos(this.state.lastTokEndLoc.index)&&this.raise(YE.UnexpectedSpace,this.state.lastTokEndLoc)},u(t)}(e)},XE=function(e){return function(e){function t(){return e.apply(this,arguments)||this}g(t,e);var r=t.prototype;return r.parseV8Intrinsic=function(){if(this.match(54)){var e=this.state.startLoc,t=this.startNode();if(this.next(),ew(this.state.type)){var r=this.parseIdentifierName(),a=this.createIdentifier(t,r);if(a.type="V8IntrinsicIdentifier",this.match(10))return a}this.unexpected(e)}},r.parseExprAtom=function(t){return this.parseV8Intrinsic()||e.prototype.parseExprAtom.call(this,t)},u(t)}(e)},$E=["minimal","fsharp","hack","smart"],QE=["^^","@@","^","%","#"];function ZE(e){if(e.has("decorators")){if(e.has("decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");var t=e.get("decorators").decoratorsBeforeExport;if(null!=t&&"boolean"!==typeof t)throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.");var r=e.get("decorators").allowCallParenthesized;if(null!=r&&"boolean"!==typeof r)throw new Error("'allowCallParenthesized' must be a boolean.")}if(e.has("flow")&&e.has("typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(e.has("placeholders")&&e.has("v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(e.has("pipelineOperator")){var a,n=e.get("pipelineOperator").proposal;if(!$E.includes(n)){var s=$E.map((function(e){return'"'+e+'"'})).join(", ");throw new Error('"pipelineOperator" requires "proposal" option whose value must be one of: '+s+".")}var o="hash"===(null==(a=e.get("recordAndTuple"))?void 0:a.syntaxType);if("hack"===n){if(e.has("placeholders"))throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");if(e.has("v8intrinsic"))throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");var i=e.get("pipelineOperator").topicToken;if(!QE.includes(i)){var d=QE.map((function(e){return'"'+e+'"'})).join(", ");throw new Error('"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: '+d+".")}if("#"===i&&o)throw new Error('Plugin conflict between `["pipelineOperator", { proposal: "hack", topicToken: "#" }]` and `'+JSON.stringify(["recordAndTuple",e.get("recordAndTuple")])+"`.")}else if("smart"===n&&o)throw new Error('Plugin conflict between `["pipelineOperator", { proposal: "smart" }]` and `'+JSON.stringify(["recordAndTuple",e.get("recordAndTuple")])+"`.")}if(e.has("moduleAttributes")){if(e.has("deprecatedImportAssert")||e.has("importAssertions"))throw new Error("Cannot combine importAssertions, deprecatedImportAssert and moduleAttributes plugins.");if("may-2020"!==e.get("moduleAttributes").version)throw new Error("The 'moduleAttributes' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is 'may-2020'.")}if(e.has("importAssertions")&&e.has("deprecatedImportAssert"))throw new Error("Cannot combine importAssertions and deprecatedImportAssert plugins.");if(!e.has("deprecatedImportAssert")&&e.has("importAttributes")&&e.get("importAttributes").deprecatedAssertSyntax&&e.set("deprecatedImportAssert",{}),e.has("recordAndTuple")){var c=e.get("recordAndTuple").syntaxType;if(null!=c){var l=["hash","bar"];if(!l.includes(c))throw new Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: "+l.map((function(e){return"'"+e+"'"})).join(", "))}}if(e.has("asyncDoExpressions")&&!e.has("doExpressions")){var u=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw u.missingPlugins="doExpressions",u}if(e.has("optionalChainingAssign")&&"2023-07"!==e.get("optionalChainingAssign").version)throw new Error("The 'optionalChainingAssign' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is '2023-07'.")}var ej={estree:_R,jsx:CE,flow:EE,typescript:WE,v8intrinsic:XE,placeholders:JE},tj=Object.keys(ej);function rj(){return{sourceType:"script",sourceFilename:void 0,startIndex:0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,plugins:[],strictMode:null,ranges:!1,tokens:!1,createImportExpressions:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0}}function aj(e){var t=rj();if(null==e)return t;if(null!=e.annexB&&!1!==e.annexB)throw new Error("The `annexB` option can only be set to `false`.");for(var r=0,a=Object.keys(t);r0?t.startIndex=t.startColumn:null==e.startColumn&&t.startIndex>0&&(t.startColumn=t.startIndex);else if((null==e.startColumn||null==e.startIndex)&&null!=e.startIndex)throw new Error("With a `startLine > 1` you must also specify `startIndex` and `startColumn`.");return t}var nj=function(e){function t(){return e.apply(this,arguments)||this}g(t,e);var r=t.prototype;return r.checkProto=function(e,t,r,a){if(!("SpreadElement"===e.type||this.isObjectMethod(e)||e.computed||e.shorthand)){var n=e.key;if("__proto__"===("Identifier"===n.type?n.name:n.value)){if(t)return void this.raise(AR.RecordNoProto,n);r.used&&(a?null===a.doubleProtoLoc&&(a.doubleProtoLoc=n.loc.start):this.raise(AR.DuplicateProto,n)),r.used=!0}}},r.shouldExitDescending=function(e,t){return"ArrowFunctionExpression"===e.type&&this.offsetToSourcePos(e.start)===t},r.getExpression=function(){this.enterInitialScopes(),this.nextToken();var e=this.parseExpression();return this.match(140)||this.unexpected(),this.finalizeRemainingComments(),e.comments=this.comments,e.errors=this.state.errors,this.options.tokens&&(e.tokens=this.tokens),e},r.parseExpression=function(e,t){var r=this;return e?this.disallowInAnd((function(){return r.parseExpressionBase(t)})):this.allowInAnd((function(){return r.parseExpressionBase(t)}))},r.parseExpressionBase=function(e){var t=this.state.startLoc,r=this.parseMaybeAssign(e);if(this.match(12)){var a=this.startNodeAt(t);for(a.expressions=[r];this.eat(12);)a.expressions.push(this.parseMaybeAssign(e));return this.toReferencedList(a.expressions),this.finishNode(a,"SequenceExpression")}return r},r.parseMaybeAssignDisallowIn=function(e,t){var r=this;return this.disallowInAnd((function(){return r.parseMaybeAssign(e,t)}))},r.parseMaybeAssignAllowIn=function(e,t){var r=this;return this.allowInAnd((function(){return r.parseMaybeAssign(e,t)}))},r.setOptionalParametersError=function(e,t){var r;e.optionalParametersLoc=null!=(r=null==t?void 0:t.loc)?r:this.state.startLoc},r.parseMaybeAssign=function(e,t){var r,a=this.state.startLoc;if(this.isContextual(108)&&this.prodParam.hasYield){var n=this.parseYield();return t&&(n=t.call(this,n,a)),n}e?r=!1:(e=new iE,r=!0);var s=this.state.type;(10===s||ew(s))&&(this.state.potentialArrowAt=this.state.start);var o=this.parseMaybeConditional(e);if(t&&(o=t.call(this,o,a)),ow(this.state.type)){var i=this.startNodeAt(a),d=this.state.value;if(i.operator=d,this.match(29)){this.toAssignable(o,!0),i.left=o;var c=a.index;null!=e.doubleProtoLoc&&e.doubleProtoLoc.index>=c&&(e.doubleProtoLoc=null),null!=e.shorthandAssignLoc&&e.shorthandAssignLoc.index>=c&&(e.shorthandAssignLoc=null),null!=e.privateKeyLoc&&e.privateKeyLoc.index>=c&&(this.checkDestructuringPrivate(e),e.privateKeyLoc=null)}else i.left=o;return this.next(),i.right=this.parseMaybeAssign(),this.checkLVal(o,this.finishNode(i,"AssignmentExpression")),i}return r&&this.checkExpressionErrors(e,!0),o},r.parseMaybeConditional=function(e){var t=this.state.startLoc,r=this.state.potentialArrowAt,a=this.parseExprOps(e);return this.shouldExitDescending(a,r)?a:this.parseConditional(a,t,e)},r.parseConditional=function(e,t,r){if(this.eat(17)){var a=this.startNodeAt(t);return a.test=e,a.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),a.alternate=this.parseMaybeAssign(),this.finishNode(a,"ConditionalExpression")}return e},r.parseMaybeUnaryOrPrivate=function(e){return this.match(139)?this.parsePrivateName():this.parseMaybeUnary(e)},r.parseExprOps=function(e){var t=this.state.startLoc,r=this.state.potentialArrowAt,a=this.parseMaybeUnaryOrPrivate(e);return this.shouldExitDescending(a,r)?a:this.parseExprOp(a,t,-1)},r.parseExprOp=function(e,t,r){if(this.isPrivateName(e)){var a=this.getPrivateNameSV(e);(r>=hw(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(AR.PrivateInExpectedIn,e,{identifierName:a}),this.classScope.usePrivateName(a,e.loc.start)}var n=this.state.type;if(lw(n)&&(this.prodParam.hasIn||!this.match(58))){var s=hw(n);if(s>r){if(39===n){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return e;this.checkPipelineAtInfixOperator(e,t)}var o=this.startNodeAt(t);o.left=e,o.operator=this.state.value;var i=41===n||42===n,d=40===n;if(d&&(s=hw(42)),this.next(),39===n&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])&&96===this.state.type&&this.prodParam.hasAwait)throw this.raise(AR.UnexpectedAwaitAfterPipelineBody,this.state.startLoc);o.right=this.parseExprOpRightExpr(n,s);var c=this.finishNode(o,i||d?"LogicalExpression":"BinaryExpression"),l=this.state.type;if(d&&(41===l||42===l)||i&&40===l)throw this.raise(AR.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(c,t,r)}}return e},r.parseExprOpRightExpr=function(e,t){var r=this,a=this.state.startLoc;if(39===e)switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext((function(){return r.parseHackPipeBody()}));case"smart":return this.withTopicBindingContext((function(){if(r.prodParam.hasYield&&r.isContextual(108))throw r.raise(AR.PipeBodyIsTighter,r.state.startLoc);return r.parseSmartPipelineBodyInStyle(r.parseExprOpBaseRightExpr(e,t),a)}));case"fsharp":return this.withSoloAwaitPermittingContext((function(){return r.parseFSharpPipelineBody(t)}))}return this.parseExprOpBaseRightExpr(e,t)},r.parseExprOpBaseRightExpr=function(e,t){var r=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),r,yw(e)?t-1:t)},r.parseHackPipeBody=function(){var e,t=this.state.startLoc,r=this.parseMaybeAssign();return!RR.has(r.type)||null!=(e=r.extra)&&e.parenthesized||this.raise(AR.PipeUnparenthesizedBody,t,{type:r.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(AR.PipeTopicUnused,t),r},r.checkExponentialAfterUnary=function(e){this.match(57)&&this.raise(AR.UnexpectedTokenUnaryExponentiation,e.argument)},r.parseMaybeUnary=function(e,t){var r=this.state.startLoc,a=this.isContextual(96);if(a&&this.recordAwaitIfAllowed()){this.next();var n=this.parseAwait(r);return t||this.checkExponentialAfterUnary(n),n}var s=this.match(34),o=this.startNode();if(pw(this.state.type)){o.operator=this.state.value,o.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");var i=this.match(89);if(this.next(),o.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(e,!0),this.state.strict&&i){var d=o.argument;"Identifier"===d.type?this.raise(AR.StrictDelete,o):this.hasPropertyAsPrivateName(d)&&this.raise(AR.DeletePrivateField,o)}if(!s)return t||this.checkExponentialAfterUnary(o),this.finishNode(o,"UnaryExpression")}var c=this.parseUpdate(o,s,e);if(a){var l=this.state.type;if((this.hasPlugin("v8intrinsic")?sw(l):sw(l)&&!this.match(54))&&!this.isAmbiguousAwait())return this.raiseOverwrite(AR.AwaitNotInAsyncContext,r),this.parseAwait(r)}return c},r.parseUpdate=function(e,t,r){if(t){var a=e;return this.checkLVal(a.argument,this.finishNode(a,"UpdateExpression")),e}var n=this.state.startLoc,s=this.parseExprSubscripts(r);if(this.checkExpressionErrors(r,!1))return s;for(;uw(this.state.type)&&!this.canInsertSemicolon();){var o=this.startNodeAt(n);o.operator=this.state.value,o.prefix=!1,o.argument=s,this.next(),this.checkLVal(s,s=this.finishNode(o,"UpdateExpression"))}return s},r.parseExprSubscripts=function(e){var t=this.state.startLoc,r=this.state.potentialArrowAt,a=this.parseExprAtom(e);return this.shouldExitDescending(a,r)?a:this.parseSubscripts(a,t)},r.parseSubscripts=function(e,t,r){var a={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(e),stop:!1};do{e=this.parseSubscript(e,t,r,a),a.maybeAsyncArrow=!1}while(!a.stop);return e},r.parseSubscript=function(e,t,r,a){var n=this.state.type;if(!r&&15===n)return this.parseBind(e,t,r,a);if(bw(n))return this.parseTaggedTemplateExpression(e,t,a);var s=!1;if(18===n){if(r&&(this.raise(AR.OptionalChainingNoNew,this.state.startLoc),40===this.lookaheadCharCode()))return a.stop=!0,e;a.optionalChainMember=s=!0,this.next()}if(!r&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(e,t,a,s);var o=this.eat(0);return o||s||this.eat(16)?this.parseMember(e,t,a,o,s):(a.stop=!0,e)},r.parseMember=function(e,t,r,a,n){var s=this.startNodeAt(t);return s.object=e,s.computed=a,a?(s.property=this.parseExpression(),this.expect(3)):this.match(139)?("Super"===e.type&&this.raise(AR.SuperPrivateField,t),this.classScope.usePrivateName(this.state.value,this.state.startLoc),s.property=this.parsePrivateName()):s.property=this.parseIdentifier(!0),r.optionalChainMember?(s.optional=n,this.finishNode(s,"OptionalMemberExpression")):this.finishNode(s,"MemberExpression")},r.parseBind=function(e,t,r,a){var n=this.startNodeAt(t);return n.object=e,this.next(),n.callee=this.parseNoCallExpr(),a.stop=!0,this.parseSubscripts(this.finishNode(n,"BindExpression"),t,r)},r.parseCoverCallAndAsyncArrowHead=function(e,t,r,a){var n=this.state.maybeInArrowParameters,s=null;this.state.maybeInArrowParameters=!0,this.next();var o=this.startNodeAt(t);o.callee=e;var i=r.maybeAsyncArrow,d=r.optionalChainMember;i&&(this.expressionScope.enter(tE()),s=new iE),d&&(o.optional=a),o.arguments=a?this.parseCallExpressionArguments(11):this.parseCallExpressionArguments(11,"Super"!==e.type,o,s);var c=this.finishCallExpression(o,d);return i&&this.shouldParseAsyncArrow()&&!a?(r.stop=!0,this.checkDestructuringPrivate(s),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),c=this.parseAsyncArrowFromCallExpression(this.startNodeAt(t),c)):(i&&(this.checkExpressionErrors(s,!0),this.expressionScope.exit()),this.toReferencedArguments(c)),this.state.maybeInArrowParameters=n,c},r.toReferencedArguments=function(e,t){this.toReferencedListDeep(e.arguments,t)},r.parseTaggedTemplateExpression=function(e,t,r){var a=this.startNodeAt(t);return a.tag=e,a.quasi=this.parseTemplate(!0),r.optionalChainMember&&this.raise(AR.OptionalChainingNoTemplate,t),this.finishNode(a,"TaggedTemplateExpression")},r.atPossibleAsyncArrow=function(e){return"Identifier"===e.type&&"async"===e.name&&this.state.lastTokEndLoc.index===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.offsetToSourcePos(e.start)===this.state.potentialArrowAt},r.finishCallExpression=function(e,t){if("Import"===e.callee.type)if(0===e.arguments.length||e.arguments.length>2)this.raise(AR.ImportCallArity,e);else for(var r=0,a=e.arguments;r1?((t=this.startNodeAt(i)).expressions=d,this.finishNode(t,"SequenceExpression"),this.resetEndLocation(t,p)):t=d[0],this.wrapParenthesis(r,t))},r.wrapParenthesis=function(e,t){if(!this.options.createParenthesizedExpressions)return this.addExtra(t,"parenthesized",!0),this.addExtra(t,"parenStart",e.index),this.takeSurroundingComments(t,e.index,this.state.lastTokEndLoc.index),t;var r=this.startNodeAt(e);return r.expression=t,this.finishNode(r,"ParenthesizedExpression")},r.shouldParseArrow=function(e){return!this.canInsertSemicolon()},r.parseArrow=function(e){if(this.eat(19))return e},r.parseParenItem=function(e,t){return e},r.parseNewOrNewTarget=function(){var e=this.startNode();if(this.next(),this.match(16)){var t=this.createIdentifier(this.startNodeAtNode(e),"new");this.next();var r=this.parseMetaProperty(e,t,"target");return this.scope.inNonArrowFunction||this.scope.inClass||this.options.allowNewTargetOutsideFunction||this.raise(AR.UnexpectedNewTarget,r),r}return this.parseNew(e)},r.parseNew=function(e){if(this.parseNewCallee(e),this.eat(10)){var t=this.parseExprList(11);this.toReferencedList(t),e.arguments=t}else e.arguments=[];return this.finishNode(e,"NewExpression")},r.parseNewCallee=function(e){var t=this.match(83),r=this.parseNoCallExpr();e.callee=r,!t||"Import"!==r.type&&"ImportExpression"!==r.type||this.raise(AR.ImportCallNotNewExpression,r)},r.parseTemplateElement=function(e){var t=this.state,r=t.start,a=t.startLoc,n=t.end,s=t.value,o=r+1,i=this.startNodeAt(fR(a,1));null===s&&(e||this.raise(AR.InvalidEscapeSequenceTemplate,fR(this.state.firstInvalidTemplateEscapePos,1)));var d=this.match(24),c=d?-1:-2,l=n+c;i.value={raw:this.input.slice(o,l).replace(/\r\n?/g,"\n"),cooked:null===s?null:s.slice(1,c)},i.tail=d,this.next();var u=this.finishNode(i,"TemplateElement");return this.resetEndLocation(u,fR(this.state.lastTokEndLoc,c)),u},r.parseTemplate=function(e){for(var t=this.startNode(),r=this.parseTemplateElement(e),a=[r],n=[];!r.tail;)n.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),a.push(r=this.parseTemplateElement(e));return t.expressions=n,t.quasis=a,this.finishNode(t,"TemplateLiteral")},r.parseTemplateSubstitution=function(){return this.parseExpression()},r.parseObjectLike=function(e,t,r,a){r&&this.expectPlugin("recordAndTuple");var n=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;var s=Object.create(null),o=!0,i=this.startNode();for(i.properties=[],this.next();!this.match(e);){if(o)o=!1;else if(this.expect(12),this.match(e)){this.addTrailingCommaExtraToNode(i);break}var d=void 0;t?d=this.parseBindingProperty():(d=this.parsePropertyDefinition(a),this.checkProto(d,r,s,a)),r&&!this.isObjectProperty(d)&&"SpreadElement"!==d.type&&this.raise(AR.InvalidRecordProperty,d),d.shorthand&&this.addExtra(d,"shorthand",!0),i.properties.push(d)}this.next(),this.state.inFSharpPipelineDirectBody=n;var c="ObjectExpression";return t?c="ObjectPattern":r&&(c="RecordExpression"),this.finishNode(i,c)},r.addTrailingCommaExtraToNode=function(e){this.addExtra(e,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(e,"trailingCommaLoc",this.state.lastTokStartLoc,!1)},r.maybeAsyncOrAccessorProp=function(e){return!e.computed&&"Identifier"===e.key.type&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))},r.parsePropertyDefinition=function(e){var t=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(AR.UnsupportedPropertyDecorator,this.state.startLoc);this.match(26);)t.push(this.parseDecorator());var r,a=this.startNode(),n=!1,s=!1;if(this.match(21))return t.length&&this.unexpected(),this.parseSpread();t.length&&(a.decorators=t,t=[]),a.method=!1,e&&(r=this.state.startLoc);var o=this.eat(55);this.parsePropertyNamePrefixOperator(a);var i=this.state.containsEsc;if(this.parsePropertyName(a,e),!o&&!i&&this.maybeAsyncOrAccessorProp(a)){var d=a.key,c=d.name;"async"!==c||this.hasPrecedingLineBreak()||(n=!0,this.resetPreviousNodeTrailingComments(d),o=this.eat(55),this.parsePropertyName(a)),"get"!==c&&"set"!==c||(s=!0,this.resetPreviousNodeTrailingComments(d),a.kind=c,this.match(55)&&(o=!0,this.raise(AR.AccessorIsGenerator,this.state.curPosition(),{kind:c}),this.next()),this.parsePropertyName(a))}return this.parseObjPropValue(a,r,o,n,!1,s,e)},r.getGetterSetterExpectedParamCount=function(e){return"get"===e.kind?0:1},r.getObjectOrClassMethodParams=function(e){return e.params},r.checkGetterSetterParams=function(e){var t,r=this.getGetterSetterExpectedParamCount(e),a=this.getObjectOrClassMethodParams(e);a.length!==r&&this.raise("get"===e.kind?AR.BadGetterArity:AR.BadSetterArity,e),"set"===e.kind&&"RestElement"===(null==(t=a[a.length-1])?void 0:t.type)&&this.raise(AR.BadSetterRestParameter,e)},r.parseObjectMethod=function(e,t,r,a,n){if(n){var s=this.parseMethod(e,t,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(s),s}if(r||t||this.match(10))return a&&this.unexpected(),e.kind="method",e.method=!0,this.parseMethod(e,t,r,!1,!1,"ObjectMethod")},r.parseObjectProperty=function(e,t,r,a){if(e.shorthand=!1,this.eat(14))return e.value=r?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowIn(a),this.finishNode(e,"ObjectProperty");if(!e.computed&&"Identifier"===e.key.type){if(this.checkReservedWord(e.key.name,e.key.loc.start,!0,!1),r)e.value=this.parseMaybeDefault(t,uE(e.key));else if(this.match(29)){var n=this.state.startLoc;null!=a?null===a.shorthandAssignLoc&&(a.shorthandAssignLoc=n):this.raise(AR.InvalidCoverInitializedName,n),e.value=this.parseMaybeDefault(t,uE(e.key))}else e.value=uE(e.key);return e.shorthand=!0,this.finishNode(e,"ObjectProperty")}},r.parseObjPropValue=function(e,t,r,a,n,s,o){var i=this.parseObjectMethod(e,r,a,n,s)||this.parseObjectProperty(e,t,n,o);return i||this.unexpected(),i},r.parsePropertyName=function(e,t){if(this.eat(0))e.computed=!0,e.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{var r,a=this.state,n=a.type,s=a.value;if(rw(n))r=this.parseIdentifier(!0);else switch(n){case 135:r=this.parseNumericLiteral(s);break;case 134:r=this.parseStringLiteral(s);break;case 136:r=this.parseBigIntLiteral(s);break;case 139:var o=this.state.startLoc;null!=t?null===t.privateKeyLoc&&(t.privateKeyLoc=o):this.raise(AR.UnexpectedPrivateField,o),r=this.parsePrivateName();break;default:if(137===n){r=this.parseDecimalLiteral(s);break}this.unexpected()}e.key=r,139!==n&&(e.computed=!1)}},r.initFunction=function(e,t){e.id=null,e.generator=!1,e.async=t},r.parseMethod=function(e,t,r,a,n,s,o){void 0===o&&(o=!1),this.initFunction(e,r),e.generator=t,this.scope.enter(Ew.FUNCTION|Ew.SUPER|(o?Ew.CLASS:0)|(n?Ew.DIRECT_SUPER:0)),this.prodParam.enter(sE(r,e.generator)),this.parseFunctionParams(e,a);var i=this.parseFunctionBodyAndFinish(e,s,!0);return this.prodParam.exit(),this.scope.exit(),i},r.parseArrayLike=function(e,t,r,a){r&&this.expectPlugin("recordAndTuple");var n=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;var s=this.startNode();return this.next(),s.elements=this.parseExprList(e,!r,a,s),this.state.inFSharpPipelineDirectBody=n,this.finishNode(s,r?"TupleExpression":"ArrayExpression")},r.parseArrowExpression=function(e,t,r,a){this.scope.enter(Ew.FUNCTION|Ew.ARROW);var n=sE(r,!1);!this.match(5)&&this.prodParam.hasIn&&(n|=aE.PARAM_IN),this.prodParam.enter(n),this.initFunction(e,r);var s=this.state.maybeInArrowParameters;return t&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(e,t,a)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(e,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=s,this.finishNode(e,"ArrowFunctionExpression")},r.setArrowFunctionParameters=function(e,t,r){this.toAssignableList(t,r,!1),e.params=t},r.parseFunctionBodyAndFinish=function(e,t,r){return void 0===r&&(r=!1),this.parseFunctionBody(e,!1,r),this.finishNode(e,t)},r.parseFunctionBody=function(e,t,r){var a=this;void 0===r&&(r=!1);var n=t&&!this.match(5);if(this.expressionScope.enter(rE()),n)e.body=this.parseMaybeAssign(),this.checkParams(e,!1,t,!1);else{var s=this.state.strict,o=this.state.labels;this.state.labels=[],this.prodParam.enter(this.prodParam.currentFlags()|aE.PARAM_RETURN),e.body=this.parseBlock(!0,!1,(function(n){var o=!a.isSimpleParamList(e.params);n&&o&&a.raise(AR.IllegalLanguageModeDirective,"method"!==e.kind&&"constructor"!==e.kind||!e.key?e:e.key.loc.end);var i=!s&&a.state.strict;a.checkParams(e,!a.state.strict&&!t&&!r&&!o,t,i),a.state.strict&&e.id&&a.checkIdentifier(e.id,jw.TYPE_OUTSIDE,i)})),this.prodParam.exit(),this.state.labels=o}this.expressionScope.exit()},r.isSimpleParameter=function(e){return"Identifier"===e.type},r.isSimpleParamList=function(e){for(var t=0,r=e.length;t10)&&ww(e))if(r&&Po(e))this.raise(AR.UnexpectedKeyword,t,{keyword:e});else if((this.state.strict?a?Co:Ao:To)(e,this.inModule))this.raise(AR.UnexpectedReservedWord,t,{reservedWord:e});else if("yield"===e){if(this.prodParam.hasYield)return void this.raise(AR.YieldBindingIdentifier,t)}else if("await"===e){if(this.prodParam.hasAwait)return void this.raise(AR.AwaitBindingIdentifier,t);if(this.scope.inStaticBlock)return void this.raise(AR.AwaitBindingIdentifierInStaticBlock,t);this.expressionScope.recordAsyncArrowParametersError(t)}else if("arguments"===e&&this.scope.inClassAndNotInNonArrowFunction)return void this.raise(AR.ArgumentsInClass,t)},r.recordAwaitIfAllowed=function(){var e=this.prodParam.hasAwait||this.options.allowAwaitOutsideFunction&&!this.scope.inFunction;return e&&!this.scope.inFunction&&(this.state.hasTopLevelAwait=!0),e},r.parseAwait=function(e){var t=this.startNodeAt(e);return this.expressionScope.recordParameterInitializerError(AR.AwaitExpressionFormalParameter,t),this.eat(55)&&this.raise(AR.ObsoleteAwaitStar,t),this.scope.inFunction||this.options.allowAwaitOutsideFunction||(this.isAmbiguousAwait()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(t.argument=this.parseMaybeUnary(null,!0)),this.finishNode(t,"AwaitExpression")},r.isAmbiguousAwait=function(){if(this.hasPrecedingLineBreak())return!0;var e=this.state.type;return 53===e||10===e||0===e||bw(e)||102===e&&!this.state.containsEsc||138===e||56===e||this.hasPlugin("v8intrinsic")&&54===e},r.parseYield=function(){var e=this.startNode();this.expressionScope.recordParameterInitializerError(AR.YieldInParameter,e),this.next();var t=!1,r=null;if(!this.hasPrecedingLineBreak())switch(t=this.eat(55),this.state.type){case 13:case 140:case 8:case 11:case 3:case 9:case 14:case 12:if(!t)break;default:r=this.parseMaybeAssign()}return e.delegate=t,e.argument=r,this.finishNode(e,"YieldExpression")},r.parseImportCall=function(e){if(this.next(),e.source=this.parseMaybeAssignAllowIn(),e.options=null,this.eat(12)&&!this.match(11)&&(e.options=this.parseMaybeAssignAllowIn(),this.eat(12)&&!this.match(11))){do{this.parseMaybeAssignAllowIn()}while(this.eat(12)&&!this.match(11));this.raise(AR.ImportCallArity,e)}return this.expect(11),this.finishNode(e,"ImportExpression")},r.checkPipelineAtInfixOperator=function(e,t){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&"SequenceExpression"===e.type&&this.raise(AR.PipelineHeadSequenceExpression,t)},r.parseSmartPipelineBodyInStyle=function(e,t){if(this.isSimpleReference(e)){var r=this.startNodeAt(t);return r.callee=e,this.finishNode(r,"PipelineBareFunction")}var a=this.startNodeAt(t);return this.checkSmartPipeTopicBodyEarlyErrors(t),a.expression=e,this.finishNode(a,"PipelineTopicExpression")},r.isSimpleReference=function(e){switch(e.type){case"MemberExpression":return!e.computed&&this.isSimpleReference(e.object);case"Identifier":return!0;default:return!1}},r.checkSmartPipeTopicBodyEarlyErrors=function(e){if(this.match(19))throw this.raise(AR.PipelineBodyNoArrow,this.state.startLoc);this.topicReferenceWasUsedInCurrentContext()||this.raise(AR.PipelineTopicUnused,e)},r.withTopicBindingContext=function(e){var t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}},r.withSmartMixTopicForbiddingContext=function(e){if(!this.hasPlugin(["pipelineOperator",{proposal:"smart"}]))return e();var t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}},r.withSoloAwaitPermittingContext=function(e){var t=this.state.soloAwait;this.state.soloAwait=!0;try{return e()}finally{this.state.soloAwait=t}},r.allowInAnd=function(e){var t=this.prodParam.currentFlags();if(aE.PARAM_IN&~t){this.prodParam.enter(t|aE.PARAM_IN);try{return e()}finally{this.prodParam.exit()}}return e()},r.disallowInAnd=function(e){var t=this.prodParam.currentFlags();if(aE.PARAM_IN&t){this.prodParam.enter(t&~aE.PARAM_IN);try{return e()}finally{this.prodParam.exit()}}return e()},r.registerTopicReference=function(){this.state.topicContext.maxTopicIndex=0},r.topicReferenceIsAllowedInCurrentContext=function(){return this.state.topicContext.maxNumOfResolvableTopics>=1},r.topicReferenceWasUsedInCurrentContext=function(){return null!=this.state.topicContext.maxTopicIndex&&this.state.topicContext.maxTopicIndex>=0},r.parseFSharpPipelineBody=function(e){var t=this.state.startLoc;this.state.potentialArrowAt=this.state.start;var r=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;var a=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),t,e);return this.state.inFSharpPipelineDirectBody=r,a},r.parseModuleExpression=function(){this.expectPlugin("moduleBlocks");var e=this.startNode();this.next(),this.match(5)||this.unexpected(null,5);var t=this.startNodeAt(this.state.endLoc);this.next();var r=this.initializeScopes(!0);this.enterInitialScopes();try{e.body=this.parseProgram(t,8,"module")}finally{r()}return this.finishNode(e,"ModuleExpression")},r.parsePropertyNamePrefixOperator=function(e){},u(t)}(OE),sj={kind:Ww.Loop},oj={kind:Ww.Switch},ij={Expression:0,Declaration:1,HangingDeclaration:2,NullableId:4,Async:8},dj={StatementOnly:0,AllowImportExport:1,AllowDeclaration:2,AllowFunctionDeclaration:4,AllowLabeledFunction:8},cj=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,lj=new RegExp("in(?:stanceof)?","y");function uj(e,t,r){for(var a=0;a0)for(var a=0,n=Array.from(this.scope.undefinedExports);a0?("boolean"!==typeof this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(AR.DecoratorsBeforeAfterExport,t.decorators[0]),(a=t.decorators).unshift.apply(a,e)):t.decorators=e,this.resetStartLocationFromNode(t,e[0]),r&&this.resetStartLocationFromNode(r,t));return t},r.canHaveLeadingDecorator=function(){return this.match(80)},r.parseDecorators=function(e){var t=[];do{t.push(this.parseDecorator())}while(this.match(26));if(this.match(82))e||this.unexpected(),this.decoratorsEnabledBeforeExport()||this.raise(AR.DecoratorExportClass,this.state.startLoc);else if(!this.canHaveLeadingDecorator())throw this.raise(AR.UnexpectedLeadingDecorator,this.state.startLoc);return t},r.parseDecorator=function(){this.expectOnePlugin(["decorators","decorators-legacy"]);var e=this.startNode();if(this.next(),this.hasPlugin("decorators")){var t,r=this.state.startLoc;if(this.match(10)){var a=this.state.startLoc;this.next(),t=this.parseExpression(),this.expect(11),t=this.wrapParenthesis(a,t);var n=this.state.startLoc;e.expression=this.parseMaybeDecoratorArguments(t),!1===this.getPluginOption("decorators","allowCallParenthesized")&&e.expression!==t&&this.raise(AR.DecoratorArgumentsOutsideParentheses,n)}else{for(t=this.parseIdentifier(!1);this.eat(16);){var s=this.startNodeAt(r);s.object=t,this.match(139)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),s.property=this.parsePrivateName()):s.property=this.parseIdentifier(!0),s.computed=!1,t=this.finishNode(s,"MemberExpression")}e.expression=this.parseMaybeDecoratorArguments(t)}}else e.expression=this.parseExprSubscripts();return this.finishNode(e,"Decorator")},r.parseMaybeDecoratorArguments=function(e){if(this.eat(10)){var t=this.startNodeAtNode(e);return t.callee=e,t.arguments=this.parseCallExpressionArguments(11),this.toReferencedList(t.arguments),this.finishNode(t,"CallExpression")}return e},r.parseBreakContinueStatement=function(e,t){return this.next(),this.isLineTerminator()?e.label=null:(e.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(e,t),this.finishNode(e,t?"BreakStatement":"ContinueStatement")},r.verifyBreakContinue=function(e,t){var r;for(r=0;r=0;i--){var d=this.state.labels[i];if(d.statementStart!==e.start)break;d.statementStart=this.sourceToOffsetPos(this.state.start),d.kind=o}return this.state.labels.push({name:t,kind:o,statementStart:this.sourceToOffsetPos(this.state.start)}),e.body=a&dj.AllowLabeledFunction?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),e.label=r,this.finishNode(e,"LabeledStatement")},r.parseExpressionStatement=function(e,t,r){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},r.parseBlock=function(e,t,r){void 0===e&&(e=!1),void 0===t&&(t=!0);var a=this.startNode();return e&&this.state.strictErrors.clear(),this.expect(5),t&&this.scope.enter(Ew.OTHER),this.parseBlockBody(a,e,!1,8,r),t&&this.scope.exit(),this.finishNode(a,"BlockStatement")},r.isValidDirective=function(e){return"ExpressionStatement"===e.type&&"StringLiteral"===e.expression.type&&!e.expression.extra.parenthesized},r.parseBlockBody=function(e,t,r,a,n){var s=e.body=[],o=e.directives=[];this.parseBlockOrModuleBlockBody(s,t?o:void 0,r,a,n)},r.parseBlockOrModuleBlockBody=function(e,t,r,a,n){for(var s=this.state.strict,o=!1,i=!1;!this.match(a);){var d=r?this.parseModuleItem():this.parseStatementListItem();if(t&&!i){if(this.isValidDirective(d)){var c=this.stmtToDirective(d);t.push(c),o||"use strict"!==c.value.value||(o=!0,this.setStrict(!0));continue}i=!0,this.state.strictErrors.clear()}e.push(d)}null==n||n.call(this,o),s||this.setStrict(!1),this.next()},r.parseFor=function(e,t){var r=this;return e.init=t,this.semicolon(!1),e.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),e.update=this.match(11)?null:this.parseExpression(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext((function(){return r.parseStatement()})),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,"ForStatement")},r.parseForIn=function(e,t,r){var a=this,n=this.match(58);return this.next(),n?null!==r&&this.unexpected(r):e.await=null!==r,"VariableDeclaration"!==t.type||null==t.declarations[0].init||n&&this.options.annexB&&!this.state.strict&&"var"===t.kind&&"Identifier"===t.declarations[0].id.type||this.raise(AR.ForInOfLoopInitializer,t,{type:n?"ForInStatement":"ForOfStatement"}),"AssignmentPattern"===t.type&&this.raise(AR.InvalidLhs,t,{ancestor:{type:"ForStatement"}}),e.left=t,e.right=n?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext((function(){return a.parseStatement()})),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,n?"ForInStatement":"ForOfStatement")},r.parseVar=function(e,t,r,a){void 0===a&&(a=!1);var n=e.declarations=[];for(e.kind=r;;){var s=this.startNode();if(this.parseVarId(s,r),s.init=this.eat(29)?t?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,null!==s.init||a||("Identifier"===s.id.type||t&&(this.match(58)||this.isContextual(102))?"const"!==r&&"using"!==r&&"await using"!==r||this.match(58)||this.isContextual(102)||this.raise(AR.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:r}):this.raise(AR.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"})),n.push(this.finishNode(s,"VariableDeclarator")),!this.eat(12))break}return e},r.parseVarId=function(e,t){var r=this.parseBindingAtom();"using"!==t&&"await using"!==t||"ArrayPattern"!==r.type&&"ObjectPattern"!==r.type||this.raise(AR.UsingDeclarationHasBindingPattern,r.loc.start),this.checkLVal(r,{type:"VariableDeclarator"},"var"===t?jw.TYPE_VAR:jw.TYPE_LEXICAL),e.id=r},r.parseAsyncFunctionExpression=function(e){return this.parseFunction(e,ij.Async)},r.parseFunction=function(e,t){var r=this;void 0===t&&(t=ij.Expression);var a=t&ij.HangingDeclaration,n=!!(t&ij.Declaration),s=n&&!(t&ij.NullableId),o=!!(t&ij.Async);this.initFunction(e,o),this.match(55)&&(a&&this.raise(AR.GeneratorInSingleStatementContext,this.state.startLoc),this.next(),e.generator=!0),n&&(e.id=this.parseFunctionId(s));var i=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(Ew.FUNCTION),this.prodParam.enter(sE(o,e.generator)),n||(e.id=this.parseFunctionId()),this.parseFunctionParams(e,!1),this.withSmartMixTopicForbiddingContext((function(){r.parseFunctionBodyAndFinish(e,n?"FunctionDeclaration":"FunctionExpression")})),this.prodParam.exit(),this.scope.exit(),n&&!a&&this.registerFunctionStatementId(e),this.state.maybeInArrowParameters=i,e},r.parseFunctionId=function(e){return e||ew(this.state.type)?this.parseIdentifier():null},r.parseFunctionParams=function(e,t){this.expect(10),this.expressionScope.enter(Zw()),e.params=this.parseBindingList(11,41,IE.IS_FUNCTION_PARAMS|(t?IE.IS_CONSTRUCTOR_PARAMS:0)),this.expressionScope.exit()},r.registerFunctionStatementId=function(e){e.id&&this.scope.declareName(e.id.name,!this.options.annexB||this.state.strict||e.generator||e.async?this.scope.treatFunctionsAsVar?jw.TYPE_VAR:jw.TYPE_LEXICAL:jw.TYPE_FUNCTION,e.id.loc.start)},r.parseClass=function(e,t,r){this.next();var a=this.state.strict;return this.state.strict=!0,this.parseClassId(e,t,r),this.parseClassSuper(e),e.body=this.parseClassBody(!!e.superClass,a),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")},r.isClassProperty=function(){return this.match(29)||this.match(13)||this.match(8)},r.isClassMethod=function(){return this.match(10)},r.nameIsConstructor=function(e){return"Identifier"===e.type&&"constructor"===e.name||"StringLiteral"===e.type&&"constructor"===e.value},r.isNonstaticConstructor=function(e){return!e.computed&&!e.static&&this.nameIsConstructor(e.key)},r.parseClassBody=function(e,t){var r=this;this.classScope.enter();var a={hadConstructor:!1,hadSuperClass:e},n=[],s=this.startNode();if(s.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext((function(){for(;!r.match(8);)if(r.eat(13)){if(n.length>0)throw r.raise(AR.DecoratorSemicolon,r.state.lastTokEndLoc)}else if(r.match(26))n.push(r.parseDecorator());else{var e=r.startNode();n.length&&(e.decorators=n,r.resetStartLocationFromNode(e,n[0]),n=[]),r.parseClassMember(s,e,a),"constructor"===e.kind&&e.decorators&&e.decorators.length>0&&r.raise(AR.DecoratorConstructor,e)}})),this.state.strict=t,this.next(),n.length)throw this.raise(AR.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(s,"ClassBody")},r.parseClassMemberFromModifier=function(e,t){var r=this.parseIdentifier(!0);if(this.isClassMethod()){var a=t;return a.kind="method",a.computed=!1,a.key=r,a.static=!1,this.pushClassMethod(e,a,!1,!1,!1,!1),!0}if(this.isClassProperty()){var n=t;return n.computed=!1,n.key=r,n.static=!1,e.body.push(this.parseClassProperty(n)),!0}return this.resetPreviousNodeTrailingComments(r),!1},r.parseClassMember=function(e,t,r){var a=this.isContextual(106);if(a){if(this.parseClassMemberFromModifier(e,t))return;if(this.eat(5))return void this.parseClassStaticBlock(e,t)}this.parseClassMemberWithIsStatic(e,t,r,a)},r.parseClassMemberWithIsStatic=function(e,t,r,a){var n=t,s=t,o=t,i=t,d=t,c=n,l=n;if(t.static=a,this.parsePropertyNamePrefixOperator(t),this.eat(55)){c.kind="method";var u=this.match(139);return this.parseClassElementName(c),u?void this.pushClassPrivateMethod(e,s,!0,!1):(this.isNonstaticConstructor(n)&&this.raise(AR.ConstructorIsGenerator,n.key),void this.pushClassMethod(e,n,!0,!1,!1,!1))}var p=!this.state.containsEsc&&ew(this.state.type),f=this.parseClassElementName(t),g=p?f.name:null,m=this.isPrivateName(f),h=this.state.startLoc;if(this.parsePostMemberNameModifiers(l),this.isClassMethod()){if(c.kind="method",m)return void this.pushClassPrivateMethod(e,s,!1,!1);var y=this.isNonstaticConstructor(n),b=!1;y&&(n.kind="constructor",r.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(AR.DuplicateConstructor,f),y&&this.hasPlugin("typescript")&&t.override&&this.raise(AR.OverrideOnConstructor,f),r.hadConstructor=!0,b=r.hadSuperClass),this.pushClassMethod(e,n,!1,!1,y,b)}else if(this.isClassProperty())m?this.pushClassPrivateProperty(e,i):this.pushClassProperty(e,o);else if("async"!==g||this.isLineTerminator())if("get"!==g&&"set"!==g||this.match(55)&&this.isLineTerminator())if("accessor"!==g||this.isLineTerminator())this.isLineTerminator()?m?this.pushClassPrivateProperty(e,i):this.pushClassProperty(e,o):this.unexpected();else{this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(f);var v=this.match(139);this.parseClassElementName(o),this.pushClassAccessorProperty(e,d,v)}else{this.resetPreviousNodeTrailingComments(f),c.kind=g;var x=this.match(139);this.parseClassElementName(n),x?this.pushClassPrivateMethod(e,s,!1,!1):(this.isNonstaticConstructor(n)&&this.raise(AR.ConstructorIsAccessor,n.key),this.pushClassMethod(e,n,!1,!1,!1,!1)),this.checkGetterSetterParams(n)}else{this.resetPreviousNodeTrailingComments(f);var R=this.eat(55);l.optional&&this.unexpected(h),c.kind="method";var w=this.match(139);this.parseClassElementName(c),this.parsePostMemberNameModifiers(l),w?this.pushClassPrivateMethod(e,s,R,!0):(this.isNonstaticConstructor(n)&&this.raise(AR.ConstructorIsAsync,n.key),this.pushClassMethod(e,n,R,!0,!1,!1))}},r.parseClassElementName=function(e){var t=this.state,r=t.type,a=t.value;if(132!==r&&134!==r||!e.static||"prototype"!==a||this.raise(AR.StaticPrototype,this.state.startLoc),139===r){"constructor"===a&&this.raise(AR.ConstructorClassPrivateField,this.state.startLoc);var n=this.parsePrivateName();return e.key=n,n}return this.parsePropertyName(e),e.key},r.parseClassStaticBlock=function(e,t){var r;this.scope.enter(Ew.CLASS|Ew.STATIC_BLOCK|Ew.SUPER);var a=this.state.labels;this.state.labels=[],this.prodParam.enter(aE.PARAM);var n=t.body=[];this.parseBlockOrModuleBlockBody(n,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=a,e.body.push(this.finishNode(t,"StaticBlock")),null!=(r=t.decorators)&&r.length&&this.raise(AR.DecoratorStaticBlock,t)},r.pushClassProperty=function(e,t){!t.computed&&this.nameIsConstructor(t.key)&&this.raise(AR.ConstructorClassField,t.key),e.body.push(this.parseClassProperty(t))},r.pushClassPrivateProperty=function(e,t){var r=this.parseClassPrivateProperty(t);e.body.push(r),this.classScope.declarePrivateName(this.getPrivateNameSV(r.key),Sw.OTHER,r.key.loc.start)},r.pushClassAccessorProperty=function(e,t,r){r||t.computed||!this.nameIsConstructor(t.key)||this.raise(AR.ConstructorClassField,t.key);var a=this.parseClassAccessorProperty(t);e.body.push(a),r&&this.classScope.declarePrivateName(this.getPrivateNameSV(a.key),Sw.OTHER,a.key.loc.start)},r.pushClassMethod=function(e,t,r,a,n,s){e.body.push(this.parseMethod(t,r,a,n,s,"ClassMethod",!0))},r.pushClassPrivateMethod=function(e,t,r,a){var n=this.parseMethod(t,r,a,!1,!1,"ClassPrivateMethod",!0);e.body.push(n);var s="get"===n.kind?n.static?Sw.STATIC_GETTER:Sw.INSTANCE_GETTER:"set"===n.kind?n.static?Sw.STATIC_SETTER:Sw.INSTANCE_SETTER:Sw.OTHER;this.declareClassPrivateMethodInScope(n,s)},r.declareClassPrivateMethodInScope=function(e,t){this.classScope.declarePrivateName(this.getPrivateNameSV(e.key),t,e.key.loc.start)},r.parsePostMemberNameModifiers=function(e){},r.parseClassPrivateProperty=function(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassPrivateProperty")},r.parseClassProperty=function(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassProperty")},r.parseClassAccessorProperty=function(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassAccessorProperty")},r.parseInitializer=function(e){this.scope.enter(Ew.CLASS|Ew.SUPER),this.expressionScope.enter(rE()),this.prodParam.enter(aE.PARAM),e.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()},r.parseClassId=function(e,t,r,a){if(void 0===a&&(a=jw.TYPE_CLASS),ew(this.state.type))e.id=this.parseIdentifier(),t&&this.declareNameFromIdentifier(e.id,a);else{if(!r&&t)throw this.raise(AR.MissingClassName,this.state.startLoc);e.id=null}},r.parseClassSuper=function(e){e.superClass=this.eat(81)?this.parseExprSubscripts():null},r.parseExport=function(e,t){var r=this.parseMaybeImportPhase(e,!0),a=this.maybeParseExportDefaultSpecifier(e,r),n=!a||this.eat(12),s=n&&this.eatExportStar(e),o=s&&this.maybeParseExportNamespaceSpecifier(e),i=n&&(!o||this.eat(12)),d=a||s;if(s&&!o){if(a&&this.unexpected(),t)throw this.raise(AR.UnsupportedDecoratorExport,e);return this.parseExportFrom(e,!0),this.finishNode(e,"ExportAllDeclaration")}var c,l=this.maybeParseExportNamedSpecifiers(e);if(a&&n&&!s&&!l&&this.unexpected(null,5),o&&i&&this.unexpected(null,98),d||l){if(c=!1,t)throw this.raise(AR.UnsupportedDecoratorExport,e);this.parseExportFrom(e,d)}else c=this.maybeParseExportDeclaration(e);if(d||l||c){var u,p=e;if(this.checkExport(p,!0,!1,!!p.source),"ClassDeclaration"===(null==(u=p.declaration)?void 0:u.type))this.maybeTakeDecorators(t,p.declaration,p);else if(t)throw this.raise(AR.UnsupportedDecoratorExport,e);return this.finishNode(p,"ExportNamedDeclaration")}if(this.eat(65)){var f=e,g=this.parseExportDefaultExpression();if(f.declaration=g,"ClassDeclaration"===g.type)this.maybeTakeDecorators(t,g,f);else if(t)throw this.raise(AR.UnsupportedDecoratorExport,e);return this.checkExport(f,!0,!0),this.finishNode(f,"ExportDefaultDeclaration")}this.unexpected(null,5)},r.eatExportStar=function(e){return this.eat(55)},r.maybeParseExportDefaultSpecifier=function(e,t){if(t||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",null==t?void 0:t.loc.start);var r=t||this.parseIdentifier(!0),a=this.startNodeAtNode(r);return a.exported=r,e.specifiers=[this.finishNode(a,"ExportDefaultSpecifier")],!0}return!1},r.maybeParseExportNamespaceSpecifier=function(e){if(this.isContextual(93)){var t;null!=(t=e).specifiers||(t.specifiers=[]);var r=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),r.exported=this.parseModuleExportName(),e.specifiers.push(this.finishNode(r,"ExportNamespaceSpecifier")),!0}return!1},r.maybeParseExportNamedSpecifiers=function(e){if(this.match(5)){var t,r=e;r.specifiers||(r.specifiers=[]);var a="type"===r.exportKind;return(t=r.specifiers).push.apply(t,this.parseExportSpecifiers(a)),r.source=null,r.declaration=null,this.hasPlugin("importAssertions")&&(r.assertions=[]),!0}return!1},r.maybeParseExportDeclaration=function(e){return!!this.shouldParseExportDeclaration()&&(e.specifiers=[],e.source=null,this.hasPlugin("importAssertions")&&(e.assertions=[]),e.declaration=this.parseExportDeclaration(e),!0)},r.isAsyncFunction=function(){if(!this.isContextual(95))return!1;var e=this.nextTokenInLineStart();return this.isUnparsedContextual(e,"function")},r.parseExportDefaultExpression=function(){var e=this.startNode();if(this.match(68))return this.next(),this.parseFunction(e,ij.Declaration|ij.NullableId);if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(e,ij.Declaration|ij.NullableId|ij.Async);if(this.match(80))return this.parseClass(e,!0,!0);if(this.match(26))return this.hasPlugin("decorators")&&!0===this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(AR.DecoratorBeforeExport,this.state.startLoc),this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0);if(this.match(75)||this.match(74)||this.isLet())throw this.raise(AR.UnsupportedDefaultExport,this.state.startLoc);var t=this.parseMaybeAssignAllowIn();return this.semicolon(),t},r.parseExportDeclaration=function(e){return this.match(80)?this.parseClass(this.startNode(),!0,!1):this.parseStatementListItem()},r.isExportDefaultSpecifier=function(){var e=this.state.type;if(ew(e)){if(95===e&&!this.state.containsEsc||100===e)return!1;if((130===e||129===e)&&!this.state.containsEsc){var t=this.lookahead().type;if(ew(t)&&98!==t||5===t)return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;var r=this.nextTokenStart(),a=this.isUnparsedContextual(r,"from");if(44===this.input.charCodeAt(r)||ew(this.state.type)&&a)return!0;if(this.match(65)&&a){var n=this.input.charCodeAt(this.nextTokenStartSince(r+4));return 34===n||39===n}return!1},r.parseExportFrom=function(e,t){this.eatContextual(98)?(e.source=this.parseImportSource(),this.checkExport(e),this.maybeParseImportAttributes(e),this.checkJSONModuleImport(e)):t&&this.unexpected(),this.semicolon()},r.shouldParseExportDeclaration=function(){var e=this.state.type;return 26===e&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))?(!0===this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(AR.DecoratorBeforeExport,this.state.startLoc),!0):this.isContextual(107)||this.isContextual(96)&&this.startsAwaitUsing()?(this.raise(AR.UsingDeclarationExport,this.state.startLoc),!0):74===e||75===e||68===e||80===e||this.isLet()||this.isAsyncFunction()},r.checkExport=function(e,t,r,a){var n;if(t)if(r){if(this.checkDuplicateExports(e,"default"),this.hasPlugin("exportDefaultFrom")){var s,o=e.declaration;"Identifier"!==o.type||"from"!==o.name||o.end-o.start!==4||null!=(s=o.extra)&&s.parenthesized||this.raise(AR.ExportDefaultFromAsIdentifier,o)}}else if(null!=(n=e.specifiers)&&n.length)for(var i=0,d=e.specifiers;i0&&this.raise(AR.ImportReflectionHasAssertion,t[0].loc.start)}},r.checkJSONModuleImport=function(e){if(this.isJSONModuleImport(e)&&"ExportAllDeclaration"!==e.type){var t=e.specifiers;if(null!=t){var r=t.find((function(e){var t;if("ExportSpecifier"===e.type?t=e.local:"ImportSpecifier"===e.type&&(t=e.imported),void 0!==t)return"Identifier"===t.type?"default"!==t.name:"default"!==t.value}));void 0!==r&&this.raise(AR.ImportJSONBindingNotDefault,r.loc.start)}}},r.isPotentialImportPhase=function(e){return!e&&(this.isContextual(105)||this.isContextual(97)||this.isContextual(127))},r.applyImportPhase=function(e,t,r,a){t||("module"===r?(this.expectPlugin("importReflection",a),e.module=!0):this.hasPlugin("importReflection")&&(e.module=!1),"source"===r?(this.expectPlugin("sourcePhaseImports",a),e.phase="source"):"defer"===r?(this.expectPlugin("deferredImportEvaluation",a),e.phase="defer"):this.hasPlugin("sourcePhaseImports")&&(e.phase=null))},r.parseMaybeImportPhase=function(e,t){if(!this.isPotentialImportPhase(t))return this.applyImportPhase(e,t,null),null;var r=this.parseIdentifier(!0),a=this.state.type;return(rw(a)?98!==a||102===this.lookaheadCharCode():12!==a)?(this.resetPreviousIdentifierLeadingComments(r),this.applyImportPhase(e,t,r.name,r.loc.start),null):(this.applyImportPhase(e,t,null),r)},r.isPrecedingIdImportPhase=function(e){var t=this.state.type;return ew(t)?98!==t||102===this.lookaheadCharCode():12!==t},r.parseImport=function(e){return this.match(134)?this.parseImportSourceAndAttributes(e):this.parseImportSpecifiersAndAfter(e,this.parseMaybeImportPhase(e,!1))},r.parseImportSpecifiersAndAfter=function(e,t){e.specifiers=[];var r=!this.maybeParseDefaultImportSpecifier(e,t)||this.eat(12),a=r&&this.maybeParseStarImportSpecifier(e);return r&&!a&&this.parseNamedImportSpecifiers(e),this.expectContextual(98),this.parseImportSourceAndAttributes(e)},r.parseImportSourceAndAttributes=function(e){return null!=e.specifiers||(e.specifiers=[]),e.source=this.parseImportSource(),this.maybeParseImportAttributes(e),this.checkImportReflection(e),this.checkJSONModuleImport(e),this.semicolon(),this.finishNode(e,"ImportDeclaration")},r.parseImportSource=function(){return this.match(134)||this.unexpected(),this.parseExprAtom()},r.parseImportSpecifierLocal=function(e,t,r){t.local=this.parseIdentifier(),e.specifiers.push(this.finishImportSpecifier(t,r))},r.finishImportSpecifier=function(e,t,r){return void 0===r&&(r=jw.TYPE_LEXICAL),this.checkLVal(e.local,{type:t},r),this.finishNode(e,t)},r.parseImportAttributes=function(){this.expect(5);var e=[],t=new Set;do{if(this.match(8))break;var r=this.startNode(),a=this.state.value;if(t.has(a)&&this.raise(AR.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:a}),t.add(a),this.match(134)?r.key=this.parseStringLiteral(a):r.key=this.parseIdentifier(!0),this.expect(14),!this.match(134))throw this.raise(AR.ModuleAttributeInvalidValue,this.state.startLoc);r.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(r,"ImportAttribute"))}while(this.eat(12));return this.expect(8),e},r.parseModuleAttributes=function(){var e=[],t=new Set;do{var r=this.startNode();if(r.key=this.parseIdentifier(!0),"type"!==r.key.name&&this.raise(AR.ModuleAttributeDifferentFromType,r.key),t.has(r.key.name)&&this.raise(AR.ModuleAttributesWithDuplicateKeys,r.key,{key:r.key.name}),t.add(r.key.name),this.expect(14),!this.match(134))throw this.raise(AR.ModuleAttributeInvalidValue,this.state.startLoc);r.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(r,"ImportAttribute"))}while(this.eat(12));return e},r.maybeParseImportAttributes=function(e){var t,r=!1;if(this.match(76)){if(this.hasPrecedingLineBreak()&&40===this.lookaheadCharCode())return;this.next(),t=this.hasPlugin("moduleAttributes")?this.parseModuleAttributes():this.parseImportAttributes(),r=!0}else this.isContextual(94)&&!this.hasPrecedingLineBreak()?(this.hasPlugin("deprecatedImportAssert")||this.hasPlugin("importAssertions")||this.raise(AR.ImportAttributesUseAssert,this.state.startLoc),this.hasPlugin("importAssertions")||this.addExtra(e,"deprecatedAssertSyntax",!0),this.next(),t=this.parseImportAttributes()):t=[];!r&&this.hasPlugin("importAssertions")?e.assertions=t:e.attributes=t},r.maybeParseDefaultImportSpecifier=function(e,t){if(t){var r=this.startNodeAtNode(t);return r.local=t,e.specifiers.push(this.finishImportSpecifier(r,"ImportDefaultSpecifier")),!0}return!!rw(this.state.type)&&(this.parseImportSpecifierLocal(e,this.startNode(),"ImportDefaultSpecifier"),!0)},r.maybeParseStarImportSpecifier=function(e){if(this.match(55)){var t=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(e,t,"ImportNamespaceSpecifier"),!0}return!1},r.parseNamedImportSpecifiers=function(e){var t=!0;for(this.expect(5);!this.eat(8);){if(t)t=!1;else{if(this.eat(14))throw this.raise(AR.DestructureNamedImport,this.state.startLoc);if(this.expect(12),this.eat(8))break}var r=this.startNode(),a=this.match(134),n=this.isContextual(130);r.imported=this.parseModuleExportName();var s=this.parseImportSpecifier(r,a,"type"===e.importKind||"typeof"===e.importKind,n,void 0);e.specifiers.push(s)}},r.parseImportSpecifier=function(e,t,r,a,n){if(this.eatContextual(93))e.local=this.parseIdentifier();else{var s=e.imported;if(t)throw this.raise(AR.ImportBindingIsString,e,{importName:s.value});this.checkReservedWord(s.name,e.loc.start,!0,!0),e.local||(e.local=uE(s))}return this.finishImportSpecifier(e,"ImportSpecifier",n)},r.isThisParam=function(e){return"Identifier"===e.type&&"this"===e.name},u(t)}(nj),fj=function(e){function t(t,r,a){var n;return t=aj(t),(n=e.call(this,t,r)||this).options=t,n.initializeScopes(),n.plugins=a,n.filename=t.sourceFilename,n.startIndex=t.startIndex,n}g(t,e);var r=t.prototype;return r.getScopeHandler=function(){return kw},r.parse=function(){this.enterInitialScopes();var e=this.startNode(),t=this.startNode();return this.nextToken(),e.errors=null,this.parseTopLevel(e,t),e.errors=this.state.errors,e.comments.length=this.state.commentsLen,e},u(t)}(pj);function gj(e,t){var r;if("unambiguous"!==(null==(r=t)?void 0:r.sourceType))return bj(t,e).parse();t=Object.assign({},t);try{t.sourceType="module";var a=bj(t,e),n=a.parse();if(a.sawUnambiguousESM)return n;if(a.ambiguousScriptDifferentAst)try{return t.sourceType="script",bj(t,e).parse()}catch(s){}else n.program.sourceType="script";return n}catch(o){try{return t.sourceType="script",bj(t,e).parse()}catch(i){}throw o}}function mj(e,t){var r=bj(t,e);return r.options.strictMode&&(r.state.strict=!0),r.getExpression()}function hj(e){for(var t={},r=0,a=Object.keys(e);r!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g,Fj.matchToToken=function(e){var t={type:"invalid",value:e[0],closed:void 0};return e[1]?(t.type="string",t.closed=!(!e[3]&&!e[4])):e[5]?t.type="comment":e[6]?(t.type="comment",t.closed=!!e[7]):e[8]?t.type="regex":e[9]?t.type="number":e[10]?t.type="name":e[11]?t.type="punctuator":e[12]&&(t.type="whitespace"),t}),Fj}function Mj(e){return null!=e&&e&&"false"!==e&&"0"!==e}var Lj,Uj=(Mj(ve.env.BABEL_8_BREAKING),Bj()),qj=new Set(["as","async","from","get","of","set"]),Wj=/\r\n|[\n\r\u2028\u2029]/,Hj=/^[()[\]{}]$/,zj=/^[a-z][\w-]*$/i,Gj=function(e,t,r){if("name"===e.type){if(Po(e.value)||Ao(e.value,!0)||qj.has(e.value))return"keyword";if(zj.test(e.value)&&("<"===r[t-1]||""),n.gutter(s),e.length>0?" "+e:"",u].join("")}return" "+n.gutter(s)+(e.length>0?" "+e:"")})).join("\n");return r.message&&!c&&(u=""+" ".repeat(l+1)+r.message+"\n"+u),a?n.reset(u):u}var Xj=De,$j=Le,Qj=xs,Zj=Ge,eS=Ra,tS=tt,rS=_a,aS=us,nS=Ye,sS=wx,oS=Lx,iS=/^[_$A-Z0-9]+$/;function dS(e,t,r){var a=r.placeholderWhitelist,n=r.placeholderPattern,s=r.preserveComments,o=r.syntacticPlaceholders,i=uS(t,r.parser,o);sS(i,{preserveComments:s}),e.validate(i);var d={syntactic:{placeholders:[],placeholderNames:new Set},legacy:{placeholders:[],placeholderNames:new Set},placeholderWhitelist:a,placeholderPattern:n,syntacticPlaceholders:o};return oS(i,cS,d),Object.assign({ast:i},d.syntactic.placeholders.length?d.syntactic:d.legacy)}function cS(e,t,r){var a,n,s=r.syntactic.placeholders.length>0;if(rS(e)){if(!1===r.syntacticPlaceholders)throw new Error("%%foo%%-style placeholders can't be used when '.syntacticPlaceholders' is false.");n=e.name.name,s=!0}else{if(s||r.syntacticPlaceholders)return;if(Zj(e)||eS(e))n=e.name;else{if(!nS(e))return;n=e.value}}if(s&&(null!=r.placeholderPattern||null!=r.placeholderWhitelist))throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'");if(s||!1!==r.placeholderPattern&&(r.placeholderPattern||iS).test(n)||null!=(a=r.placeholderWhitelist)&&a.has(n)){var o,i=(t=t.slice())[t.length-1],d=i.node,c=i.key;nS(e)||rS(e,{expectedNode:"StringLiteral"})?o="string":tS(d)&&"arguments"===c||Xj(d)&&"arguments"===c||Qj(d)&&"params"===c?o="param":$j(d)&&!rS(e)?(o="statement",t=t.slice(0,-1)):o=aS(e)&&rS(e)?"statement":"other";var l=s?r.syntactic:r.legacy,u=l.placeholders,p=l.placeholderNames;u.push({name:n,type:o,resolve:function(e){return lS(e,t)},isDuplicate:p.has(n)}),p.add(n)}}function lS(e,t){for(var r=e,a=0;a1?a-1:0),o=1;o1)throw new Error("Unexpected extra params.");return CS(ES(e,t,dR(n,cR(s[0]))))}if(Array.isArray(t)){var i=r.get(t);return i||(i=jS(e,t,n),r.set(t,i)),CS(i(s))}if("object"===typeof t&&t){if(s.length>0)throw new Error("Unexpected extra params.");return kS(e,dR(n,cR(t)))}throw new Error("Unexpected template param "+typeof t)}),{ast:function(t){for(var r=arguments.length,s=new Array(r>1?r-1:0),o=1;o1)throw new Error("Unexpected extra params.");return ES(e,t,dR(dR(n,cR(s[0])),AS))()}if(Array.isArray(t)){var i=a.get(t);return i||(i=jS(e,t,dR(n,AS)),a.set(t,i)),i(s)()}throw new Error("Unexpected template param "+typeof t)}})}function CS(e){var t="";try{throw new Error}catch(SX){SX.stack&&(t=SX.stack.split("\n").slice(3).join("\n"))}return function(r){try{return e(r)}catch(a){throw a.stack+="\n =============\n"+t,a}}}var PS=kS(rR),_S=kS(nR),DS=kS(aR),IS=kS(sR),OS=kS(oR),NS=Object.assign(PS.bind(void 0),{smart:PS,statement:_S,statements:DS,expression:IS,program:OS,ast:PS.ast}),FS=Object.freeze({__proto__:null,default:NS,expression:IS,program:OS,smart:PS,statement:_S,statements:DS});function BS(e,t,r){return Object.freeze({minVersion:e,ast:function(){return NS.program.ast(t,{preserveComments:!0})},metadata:r})}var MS={__proto__:null,OverloadYield:BS("7.18.14","function _OverloadYield(e,d){this.v=e,this.k=d}",{globals:[],locals:{_OverloadYield:["body.0.id"]},exportBindingAssignments:[],exportName:"_OverloadYield",dependencies:{}}),applyDecoratedDescriptor:BS("7.0.0-beta.0",'function _applyDecoratedDescriptor(i,e,r,n,l){var a={};return Object.keys(n).forEach((function(i){a[i]=n[i]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=r.slice().reverse().reduce((function(r,n){return n(i,e,r)||r}),a),l&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(l):void 0,a.initializer=void 0),void 0===a.initializer?(Object.defineProperty(i,e,a),null):a}',{globals:["Object"],locals:{_applyDecoratedDescriptor:["body.0.id"]},exportBindingAssignments:[],exportName:"_applyDecoratedDescriptor",dependencies:{}}),applyDecs2311:BS("7.24.0",'function applyDecs2311(e,t,n,r,o,i){var a,c,u,s,f,l,p,d=Symbol.metadata||Symbol.for("Symbol.metadata"),m=Object.defineProperty,h=Object.create,y=[h(null),h(null)],v=t.length;function g(t,n,r){return function(o,i){n&&(i=o,o=e);for(var a=0;a=0;O-=n?2:1){var T=b(h[O],"A decorator","be",!0),z=n?h[O-1]:void 0,A={},H={kind:["field","accessor","method","getter","setter","class"][o],name:r,metadata:a,addInitializer:function(e,t){if(e.v)throw new TypeError("attempted to call addInitializer after decoration was finished");b(t,"An initializer","be",!0),i.push(t)}.bind(null,A)};if(w)c=T.call(z,N,H),A.v=1,b(c,"class decorators","return")&&(N=c);else if(H.static=s,H.private=f,c=H.access={has:f?p.bind():function(e){return r in e}},j||(c.get=f?E?function(e){return d(e),P.value}:I("get",0,d):function(e){return e[r]}),E||S||(c.set=f?I("set",0,d):function(e,t){e[r]=t}),N=T.call(z,D?{get:P.get,set:P.set}:P[F],H),A.v=1,D){if("object"==typeof N&&N)(c=b(N.get,"accessor.get"))&&(P.get=c),(c=b(N.set,"accessor.set"))&&(P.set=c),(c=b(N.init,"accessor.init"))&&k.unshift(c);else if(void 0!==N)throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined")}else b(N,(l?"field":"method")+" decorators","return")&&(l?k.unshift(N):P[F]=N)}return o<2&&u.push(g(k,s,1),g(i,s,0)),l||w||(f?D?u.splice(-1,0,I("get",s),I("set",s)):u.push(E?P[F]:b.call.bind(P[F])):m(e,r,P)),N}function w(e){return m(e,d,{configurable:!0,enumerable:!0,value:a})}return void 0!==i&&(a=i[d]),a=h(null==a?null:a),f=[],l=function(e){e&&f.push(g(e))},p=function(t,r){for(var i=0;ir.length)&&(a=r.length);for(var e=0,n=Array(a);e=r.length?{done:!0}:{done:!1,value:r[n++]}},e:function(r){throw r},f:F}}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 o,a=!0,u=!1;return{s:function(){t=t.call(r)},n:function(){var r=t.next();return a=r.done,r},e:function(r){u=!0,o=r},f:function(){try{a||null==t.return||t.return()}finally{if(u)throw o}}}}',{globals:["Symbol","Array","TypeError"],locals:{_createForOfIteratorHelper:["body.0.id"]},exportBindingAssignments:[],exportName:"_createForOfIteratorHelper",dependencies:{unsupportedIterableToArray:["body.0.body.body.1.consequent.body.0.test.left.right.right.callee"]}}),createForOfIteratorHelperLoose:BS("7.9.0",'function _createForOfIteratorHelperLoose(r,e){var t="undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(t)return(t=t.call(r)).next.bind(t);if(Array.isArray(r)||(t=unsupportedIterableToArray(r))||e&&r&&"number"==typeof r.length){t&&(r=t);var o=0;return function(){return o>=r.length?{done:!0}:{done:!1,value:r[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.")}',{globals:["Symbol","Array","TypeError"],locals:{_createForOfIteratorHelperLoose:["body.0.id"]},exportBindingAssignments:[],exportName:"_createForOfIteratorHelperLoose",dependencies:{unsupportedIterableToArray:["body.0.body.body.2.test.left.right.right.callee"]}}),createSuper:BS("7.9.0","function _createSuper(t){var r=isNativeReflectConstruct();return function(){var e,o=getPrototypeOf(t);if(r){var s=getPrototypeOf(this).constructor;e=Reflect.construct(o,arguments,s)}else e=o.apply(this,arguments);return possibleConstructorReturn(this,e)}}",{globals:["Reflect"],locals:{_createSuper:["body.0.id"]},exportBindingAssignments:[],exportName:"_createSuper",dependencies:{getPrototypeOf:["body.0.body.body.1.argument.body.body.0.declarations.1.init.callee","body.0.body.body.1.argument.body.body.1.consequent.body.0.declarations.0.init.object.callee"],isNativeReflectConstruct:["body.0.body.body.0.declarations.0.init.callee"],possibleConstructorReturn:["body.0.body.body.1.argument.body.body.2.argument.callee"]}}),decorate:BS("7.1.5",'function _decorate(e,r,t,i){var o=_getDecoratorsApi();if(i)for(var n=0;n=0;n--){var s=r[e.placement];s.splice(s.indexOf(e.key),1);var a=this.fromElementDescriptor(e),l=this.toElementFinisherExtras((0,o[n])(a)||a);e=l.element,this.addElementPlacement(e,r),l.finisher&&i.push(l.finisher);var c=l.extras;if(c){for(var p=0;p=0;i--){var o=this.fromClassDescriptor(e),n=this.toClassDescriptor((0,r[i])(o)||o);if(void 0!==n.finisher&&t.push(n.finisher),void 0!==n.elements){e=n.elements;for(var s=0;s1){for(var t=Array(n),f=0;f=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}',{globals:["Object","Symbol","Error","TypeError","isNaN","Promise"],locals:{_regeneratorRuntime:["body.0.id","body.0.body.body.0.expression.left"]},exportBindingAssignments:["body.0.body.body.0.expression"],exportName:"_regeneratorRuntime",dependencies:{}}),set:BS("7.0.0-beta.0",'function set(e,r,t,o){return set="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(e,r,t,o){var f,i=superPropBase(e,r);if(i){if((f=Object.getOwnPropertyDescriptor(i,r)).set)return f.set.call(o,t),!0;if(!f.writable)return!1}if(f=Object.getOwnPropertyDescriptor(o,r)){if(!f.writable)return!1;f.value=t,Object.defineProperty(o,r,f)}else defineProperty(o,r,t);return!0},set(e,r,t,o)}function _set(e,r,t,o,f){if(!set(e,r,t,o||e)&&f)throw new TypeError("failed to set property");return t}',{globals:["Reflect","Object","TypeError"],locals:{set:["body.0.id","body.0.body.body.0.argument.expressions.1.callee","body.1.body.body.0.test.left.argument.callee","body.0.body.body.0.argument.expressions.0.left"],_set:["body.1.id"]},exportBindingAssignments:[],exportName:"_set",dependencies:{superPropBase:["body.0.body.body.0.argument.expressions.0.right.alternate.body.body.0.declarations.1.init.callee"],defineProperty:["body.0.body.body.0.argument.expressions.0.right.alternate.body.body.2.alternate.expression.callee"]}}),setFunctionName:BS("7.23.6",'function setFunctionName(e,t,n){"symbol"==typeof t&&(t=(t=t.description)?"["+t+"]":"");try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+" "+t:t})}catch(e){}return e}',{globals:["Object"],locals:{setFunctionName:["body.0.id"]},exportBindingAssignments:[],exportName:"setFunctionName",dependencies:{}}),setPrototypeOf:BS("7.0.0-beta.0","function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},_setPrototypeOf(t,e)}",{globals:["Object"],locals:{_setPrototypeOf:["body.0.id","body.0.body.body.0.argument.expressions.1.callee","body.0.body.body.0.argument.expressions.0.left"]},exportBindingAssignments:["body.0.body.body.0.argument.expressions.0"],exportName:"_setPrototypeOf",dependencies:{}}),skipFirstGeneratorNext:BS("7.0.0-beta.0","function _skipFirstGeneratorNext(t){return function(){var r=t.apply(this,arguments);return r.next(),r}}",{globals:[],locals:{_skipFirstGeneratorNext:["body.0.id"]},exportBindingAssignments:[],exportName:"_skipFirstGeneratorNext",dependencies:{}}),slicedToArray:BS("7.0.0-beta.0","function _slicedToArray(r,e){return arrayWithHoles(r)||iterableToArrayLimit(r,e)||unsupportedIterableToArray(r,e)||nonIterableRest()}",{globals:[],locals:{_slicedToArray:["body.0.id"]},exportBindingAssignments:[],exportName:"_slicedToArray",dependencies:{arrayWithHoles:["body.0.body.body.0.argument.left.left.left.callee"],iterableToArrayLimit:["body.0.body.body.0.argument.left.left.right.callee"],unsupportedIterableToArray:["body.0.body.body.0.argument.left.right.callee"],nonIterableRest:["body.0.body.body.0.argument.right.callee"]}}),superPropBase:BS("7.0.0-beta.0","function _superPropBase(t,o){for(;!{}.hasOwnProperty.call(t,o)&&null!==(t=getPrototypeOf(t)););return t}",{globals:[],locals:{_superPropBase:["body.0.id"]},exportBindingAssignments:[],exportName:"_superPropBase",dependencies:{getPrototypeOf:["body.0.body.body.0.test.right.right.right.callee"]}}),superPropGet:BS("7.25.0",'function _superPropGet(t,o,e,r){var p=get(getPrototypeOf(1&r?t.prototype:t),o,e);return 2&r&&"function"==typeof p?function(t){return p.apply(e,t)}:p}',{globals:[],locals:{_superPropGet:["body.0.id"]},exportBindingAssignments:[],exportName:"_superPropGet",dependencies:{get:["body.0.body.body.0.declarations.0.init.callee"],getPrototypeOf:["body.0.body.body.0.declarations.0.init.arguments.0.callee"]}}),superPropSet:BS("7.25.0","function _superPropSet(t,e,o,r,p,f){return set(getPrototypeOf(f?t.prototype:t),e,o,r,p)}",{globals:[],locals:{_superPropSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_superPropSet",dependencies:{set:["body.0.body.body.0.argument.callee"],getPrototypeOf:["body.0.body.body.0.argument.arguments.0.callee"]}}),taggedTemplateLiteral:BS("7.0.0-beta.0","function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}",{globals:["Object"],locals:{_taggedTemplateLiteral:["body.0.id"]},exportBindingAssignments:[],exportName:"_taggedTemplateLiteral",dependencies:{}}),taggedTemplateLiteralLoose:BS("7.0.0-beta.0","function _taggedTemplateLiteralLoose(e,t){return t||(t=e.slice(0)),e.raw=t,e}",{globals:[],locals:{_taggedTemplateLiteralLoose:["body.0.id"]},exportBindingAssignments:[],exportName:"_taggedTemplateLiteralLoose",dependencies:{}}),tdz:BS("7.5.5",'function _tdzError(e){throw new ReferenceError(e+" is not defined - temporal dead zone")}',{globals:["ReferenceError"],locals:{_tdzError:["body.0.id"]},exportBindingAssignments:[],exportName:"_tdzError",dependencies:{}}),temporalRef:BS("7.0.0-beta.0","function _temporalRef(r,e){return r===undef?err(e):r}",{globals:[],locals:{_temporalRef:["body.0.id"]},exportBindingAssignments:[],exportName:"_temporalRef",dependencies:{temporalUndefined:["body.0.body.body.0.argument.test.right"],tdz:["body.0.body.body.0.argument.consequent.callee"]}}),temporalUndefined:BS("7.0.0-beta.0","function _temporalUndefined(){}",{globals:[],locals:{_temporalUndefined:["body.0.id"]},exportBindingAssignments:[],exportName:"_temporalUndefined",dependencies:{}}),toArray:BS("7.0.0-beta.0","function _toArray(r){return arrayWithHoles(r)||iterableToArray(r)||unsupportedIterableToArray(r)||nonIterableRest()}",{globals:[],locals:{_toArray:["body.0.id"]},exportBindingAssignments:[],exportName:"_toArray",dependencies:{arrayWithHoles:["body.0.body.body.0.argument.left.left.left.callee"],iterableToArray:["body.0.body.body.0.argument.left.left.right.callee"],unsupportedIterableToArray:["body.0.body.body.0.argument.left.right.callee"],nonIterableRest:["body.0.body.body.0.argument.right.callee"]}}),toConsumableArray:BS("7.0.0-beta.0","function _toConsumableArray(r){return arrayWithoutHoles(r)||iterableToArray(r)||unsupportedIterableToArray(r)||nonIterableSpread()}",{globals:[],locals:{_toConsumableArray:["body.0.id"]},exportBindingAssignments:[],exportName:"_toConsumableArray",dependencies:{arrayWithoutHoles:["body.0.body.body.0.argument.left.left.left.callee"],iterableToArray:["body.0.body.body.0.argument.left.left.right.callee"],unsupportedIterableToArray:["body.0.body.body.0.argument.left.right.callee"],nonIterableSpread:["body.0.body.body.0.argument.right.callee"]}}),toPrimitive:BS("7.1.5",'function toPrimitive(t,r){if("object"!=typeof t||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}',{globals:["Symbol","TypeError","String","Number"],locals:{toPrimitive:["body.0.id"]},exportBindingAssignments:[],exportName:"toPrimitive",dependencies:{}}),toPropertyKey:BS("7.1.5",'function toPropertyKey(t){var i=toPrimitive(t,"string");return"symbol"==typeof i?i:i+""}',{globals:[],locals:{toPropertyKey:["body.0.id"]},exportBindingAssignments:[],exportName:"toPropertyKey",dependencies:{toPrimitive:["body.0.body.body.0.declarations.0.init.callee"]}}),toSetter:BS("7.24.0",'function _toSetter(t,e,n){e||(e=[]);var r=e.length++;return Object.defineProperty({},"_",{set:function(o){e[r]=o,t.apply(n,e)}})}',{globals:["Object"],locals:{_toSetter:["body.0.id"]},exportBindingAssignments:[],exportName:"_toSetter",dependencies:{}}),typeof:BS("7.0.0-beta.0",'function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}',{globals:["Symbol"],locals:{_typeof:["body.0.id","body.0.body.body.0.argument.expressions.1.callee","body.0.body.body.0.argument.expressions.0.left"]},exportBindingAssignments:["body.0.body.body.0.argument.expressions.0"],exportName:"_typeof",dependencies:{}}),unsupportedIterableToArray:BS("7.9.0",'function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?arrayLikeToArray(r,a):void 0}}',{globals:["Array"],locals:{_unsupportedIterableToArray:["body.0.id"]},exportBindingAssignments:[],exportName:"_unsupportedIterableToArray",dependencies:{arrayLikeToArray:["body.0.body.body.0.consequent.body.0.consequent.argument.callee","body.0.body.body.0.consequent.body.2.argument.expressions.1.alternate.consequent.callee"]}}),usingCtx:BS("7.23.9",'function _usingCtx(){var r="function"==typeof SuppressedError?SuppressedError:function(r,e){var n=Error();return n.name="SuppressedError",n.error=r,n.suppressed=e,n},e={},n=[];function using(r,e){if(null!=e){if(Object(e)!==e)throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");if(r)var o=e[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(void 0===o&&(o=e[Symbol.dispose||Symbol.for("Symbol.dispose")],r))var t=o;if("function"!=typeof o)throw new TypeError("Object is not disposable.");t&&(o=function(){try{t.call(e)}catch(r){return Promise.reject(r)}}),n.push({v:e,d:o,a:r})}else r&&n.push({d:e,a:r});return e}return{e:e,u:using.bind(null,!1),a:using.bind(null,!0),d:function(){var o,t=this.e,s=0;function next(){for(;o=n.pop();)try{if(!o.a&&1===s)return s=0,n.push(o),Promise.resolve().then(next);if(o.d){var r=o.d.call(o.v);if(o.a)return s|=2,Promise.resolve(r).then(next,err)}else s|=1}catch(r){return err(r)}if(1===s)return t!==e?Promise.reject(t):Promise.resolve();if(t!==e)throw t}function err(n){return t=t!==e?new r(n,t):n,next()}return next()}}}',{globals:["SuppressedError","Error","Object","TypeError","Symbol","Promise"],locals:{_usingCtx:["body.0.id"]},exportBindingAssignments:[],exportName:"_usingCtx",dependencies:{}}),wrapAsyncGenerator:BS("7.0.0-beta.0",'function _wrapAsyncGenerator(e){return function(){return new AsyncGenerator(e.apply(this,arguments))}}function AsyncGenerator(e){var r,t;function resume(r,t){try{var n=e[r](t),o=n.value,u=o instanceof OverloadYield;Promise.resolve(u?o.v:o).then((function(t){if(u){var i="return"===r?"return":"next";if(!o.k||t.done)return resume(i,t);t=e[i](t).value}settle(n.done?"return":"normal",t)}),(function(e){resume("throw",e)}))}catch(e){settle("throw",e)}}function settle(e,n){switch(e){case"return":r.resolve({value:n,done:!0});break;case"throw":r.reject(n);break;default:r.resolve({value:n,done:!1})}(r=r.next)?resume(r.key,r.arg):t=null}this._invoke=function(e,n){return new Promise((function(o,u){var i={key:e,arg:n,resolve:o,reject:u,next:null};t?t=t.next=i:(r=t=i,resume(e,n))}))},"function"!=typeof e.return&&(this.return=void 0)}AsyncGenerator.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},AsyncGenerator.prototype.next=function(e){return this._invoke("next",e)},AsyncGenerator.prototype.throw=function(e){return this._invoke("throw",e)},AsyncGenerator.prototype.return=function(e){return this._invoke("return",e)};',{globals:["Promise","Symbol"],locals:{_wrapAsyncGenerator:["body.0.id"],AsyncGenerator:["body.1.id","body.0.body.body.0.argument.body.body.0.argument.callee","body.2.expression.expressions.0.left.object.object","body.2.expression.expressions.1.left.object.object","body.2.expression.expressions.2.left.object.object","body.2.expression.expressions.3.left.object.object"]},exportBindingAssignments:[],exportName:"_wrapAsyncGenerator",dependencies:{OverloadYield:["body.1.body.body.1.body.body.0.block.body.0.declarations.2.init.right"]}}),wrapNativeSuper:BS("7.0.0-beta.0",'function _wrapNativeSuper(t){var r="function"==typeof Map?new Map:void 0;return _wrapNativeSuper=function(t){if(null===t||!isNativeFunction(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(t))return r.get(t);r.set(t,Wrapper)}function Wrapper(){return construct(t,arguments,getPrototypeOf(this).constructor)}return Wrapper.prototype=Object.create(t.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),setPrototypeOf(Wrapper,t)},_wrapNativeSuper(t)}',{globals:["Map","TypeError","Object"],locals:{_wrapNativeSuper:["body.0.id","body.0.body.body.1.argument.expressions.1.callee","body.0.body.body.1.argument.expressions.0.left"]},exportBindingAssignments:["body.0.body.body.1.argument.expressions.0"],exportName:"_wrapNativeSuper",dependencies:{getPrototypeOf:["body.0.body.body.1.argument.expressions.0.right.body.body.3.body.body.0.argument.arguments.2.object.callee"],setPrototypeOf:["body.0.body.body.1.argument.expressions.0.right.body.body.4.argument.expressions.1.callee"],isNativeFunction:["body.0.body.body.1.argument.expressions.0.right.body.body.0.test.right.argument.callee"],construct:["body.0.body.body.1.argument.expressions.0.right.body.body.3.body.body.0.argument.callee"]}}),wrapRegExp:BS("7.19.0",'function _wrapRegExp(){_wrapRegExp=function(e,r){return new BabelRegExp(e,void 0,r)};var e=RegExp.prototype,r=new WeakMap;function BabelRegExp(e,t,p){var o=RegExp(e,t);return r.set(o,p||r.get(e)),setPrototypeOf(o,BabelRegExp.prototype)}function buildGroups(e,t){var p=r.get(t);return Object.keys(p).reduce((function(r,t){var o=p[t];if("number"==typeof o)r[t]=e[o];else{for(var i=0;void 0===e[o[i]]&&i+1]+)>/g,(function(e,r){var t=o[r];return"$"+(Array.isArray(t)?t.join("$"):t)})))}if("function"==typeof p){var i=this;return e[Symbol.replace].call(this,t,(function(){var e=arguments;return"object"!=typeof e[e.length-1]&&(e=[].slice.call(e)).push(buildGroups(e,i)),p.apply(this,e)}))}return e[Symbol.replace].call(this,t,p)},_wrapRegExp.apply(this,arguments)}',{globals:["RegExp","WeakMap","Object","Symbol","Array"],locals:{_wrapRegExp:["body.0.id","body.0.body.body.4.argument.expressions.3.callee.object","body.0.body.body.0.expression.left"]},exportBindingAssignments:["body.0.body.body.0.expression"],exportName:"_wrapRegExp",dependencies:{setPrototypeOf:["body.0.body.body.2.body.body.1.argument.expressions.1.callee"],inherits:["body.0.body.body.4.argument.expressions.0.callee"]}}),writeOnlyError:BS("7.12.13","function _writeOnlyError(r){throw new TypeError('\"'+r+'\" is write-only')}",{globals:["TypeError"],locals:{_writeOnlyError:["body.0.id"]},exportBindingAssignments:[],exportName:"_writeOnlyError",dependencies:{}})};Object.assign(MS,{AwaitValue:BS("7.0.0-beta.0","function _AwaitValue(t){this.wrapped=t}",{globals:[],locals:{_AwaitValue:["body.0.id"]},exportBindingAssignments:[],exportName:"_AwaitValue",dependencies:{}}),applyDecs:BS("7.17.8",'function old_createMetadataMethodsForProperty(e,t,a,r){return{getMetadata:function(o){old_assertNotFinished(r,"getMetadata"),old_assertMetadataKey(o);var i=e[o];if(void 0!==i)if(1===t){var n=i.public;if(void 0!==n)return n[a]}else if(2===t){var l=i.private;if(void 0!==l)return l.get(a)}else if(Object.hasOwnProperty.call(i,"constructor"))return i.constructor},setMetadata:function(o,i){old_assertNotFinished(r,"setMetadata"),old_assertMetadataKey(o);var n=e[o];if(void 0===n&&(n=e[o]={}),1===t){var l=n.public;void 0===l&&(l=n.public={}),l[a]=i}else if(2===t){var s=n.priv;void 0===s&&(s=n.private=new Map),s.set(a,i)}else n.constructor=i}}}function old_convertMetadataMapToFinal(e,t){var a=e[Symbol.metadata||Symbol.for("Symbol.metadata")],r=Object.getOwnPropertySymbols(t);if(0!==r.length){for(var o=0;o=0;m--){var b;void 0!==(p=old_memberDec(h[m],r,c,l,s,o,i,n,f))&&(old_assertValidReturnValue(o,p),0===o?b=p:1===o?(b=old_getInit(p),v=p.get||f.get,y=p.set||f.set,f={get:v,set:y}):f=p,void 0!==b&&(void 0===d?d=b:"function"==typeof d?d=[d,b]:d.push(b)))}if(0===o||1===o){if(void 0===d)d=function(e,t){return t};else if("function"!=typeof d){var g=d;d=function(e,t){for(var a=t,r=0;r3,m=v>=5;if(m?(u=t,f=r,0!=(v-=5)&&(p=n=n||[])):(u=t.prototype,f=a,0!==v&&(p=i=i||[])),0!==v&&!h){var b=m?s:l,g=b.get(y)||0;if(!0===g||3===g&&4!==v||4===g&&3!==v)throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+y);!g&&v>2?b.set(y,v):b.set(y,!0)}old_applyMemberDec(e,u,d,y,v,m,h,f,p)}}old_pushInitializers(e,i),old_pushInitializers(e,n)}function old_pushInitializers(e,t){t&&e.push((function(e){for(var a=0;a0){for(var o=[],i=t,n=t.name,l=r.length-1;l>=0;l--){var s={v:!1};try{var c=Object.assign({kind:"class",name:n,addInitializer:old_createAddInitializerMethod(o,s)},old_createMetadataMethodsForProperty(a,0,n,s)),d=r[l](i,c)}finally{s.v=!0}void 0!==d&&(old_assertValidReturnValue(10,d),i=d)}e.push(i,(function(){for(var e=0;e=0;v--){var g;void 0!==(f=memberDec(h[v],a,c,o,n,i,s,u))&&(assertValidReturnValue(n,f),0===n?g=f:1===n?(g=f.init,p=f.get||u.get,d=f.set||u.set,u={get:p,set:d}):u=f,void 0!==g&&(void 0===l?l=g:"function"==typeof l?l=[l,g]:l.push(g)))}if(0===n||1===n){if(void 0===l)l=function(e,t){return t};else if("function"!=typeof l){var y=l;l=function(e,t){for(var r=t,a=0;a3,h=f>=5;if(h?(l=t,0!=(f-=5)&&(u=n=n||[])):(l=t.prototype,0!==f&&(u=a=a||[])),0!==f&&!d){var v=h?s:i,g=v.get(p)||0;if(!0===g||3===g&&4!==f||4===g&&3!==f)throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+p);!g&&f>2?v.set(p,f):v.set(p,!0)}applyMemberDec(e,l,c,p,f,h,d,u)}}pushInitializers(e,a),pushInitializers(e,n)}(a,e,t),function(e,t,r){if(r.length>0){for(var a=[],n=t,i=t.name,s=r.length-1;s>=0;s--){var o={v:!1};try{var c=r[s](n,{kind:"class",name:i,addInitializer:createAddInitializerMethod(a,o)})}finally{o.v=!0}void 0!==c&&(assertValidReturnValue(10,c),n=c)}e.push(n,(function(){for(var e=0;e=0;g--){var y;void 0!==(p=memberDec(v[g],n,c,s,a,i,o,f))&&(assertValidReturnValue(a,p),0===a?y=p:1===a?(y=p.init,d=p.get||f.get,h=p.set||f.set,f={get:d,set:h}):f=p,void 0!==y&&(void 0===l?l=y:"function"==typeof l?l=[l,y]:l.push(y)))}if(0===a||1===a){if(void 0===l)l=function(e,t){return t};else if("function"!=typeof l){var m=l;l=function(e,t){for(var r=t,n=0;n3,h=f>=5;if(h?(l=e,0!=(f-=5)&&(u=n=n||[])):(l=e.prototype,0!==f&&(u=r=r||[])),0!==f&&!d){var v=h?o:i,g=v.get(p)||0;if(!0===g||3===g&&4!==f||4===g&&3!==f)throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+p);!g&&f>2?v.set(p,f):v.set(p,!0)}applyMemberDec(a,l,c,p,f,h,d,u)}}return pushInitializers(a,r),pushInitializers(a,n),a}function pushInitializers(e,t){t&&e.push((function(e){for(var r=0;r0){for(var r=[],n=e,a=e.name,i=t.length-1;i>=0;i--){var o={v:!1};try{var s=t[i](n,{kind:"class",name:a,addInitializer:createAddInitializerMethod(r,o)})}finally{o.v=!0}void 0!==s&&(assertValidReturnValue(10,s),n=s)}return[n,function(){for(var e=0;e=0;m--){var b;void 0!==(h=memberDec(g[m],n,u,o,a,i,s,p,c))&&(assertValidReturnValue(a,h),0===a?b=h:1===a?(b=h.init,v=h.get||p.get,y=h.set||p.set,p={get:v,set:y}):p=h,void 0!==b&&(void 0===l?l=b:"function"==typeof l?l=[l,b]:l.push(b)))}if(0===a||1===a){if(void 0===l)l=function(e,t){return t};else if("function"!=typeof l){var I=l;l=function(e,t){for(var r=t,n=0;n3,y=d>=5,g=r;if(y?(f=e,0!=(d-=5)&&(p=a=a||[]),v&&!i&&(i=function(t){return checkInRHS(t)===e}),g=i):(f=e.prototype,0!==d&&(p=n=n||[])),0!==d&&!v){var m=y?c:o,b=m.get(h)||0;if(!0===b||3===b&&4!==d||4===b&&3!==d)throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+h);!b&&d>2?m.set(h,d):m.set(h,!0)}applyMemberDec(s,f,l,h,d,y,v,p,g)}}return pushInitializers(s,n),pushInitializers(s,a),s}function pushInitializers(e,t){t&&e.push((function(e){for(var r=0;r0){for(var r=[],n=e,a=e.name,i=t.length-1;i>=0;i--){var s={v:!1};try{var o=t[i](n,{kind:"class",name:a,addInitializer:createAddInitializerMethod(r,s)})}finally{s.v=!0}void 0!==o&&(assertValidReturnValue(10,o),n=o)}return[n,function(){for(var e=0;e=0;j-=r?2:1){var D=v[j],E=r?v[j-1]:void 0,I={},O={kind:["field","accessor","method","getter","setter","class"][o],name:n,metadata:a,addInitializer:function(e,t){if(e.v)throw Error("attempted to call addInitializer after decoration was finished");s(t,"An initializer","be",!0),c.push(t)}.bind(null,I)};try{if(b)(y=s(D.call(E,P,O),"class decorators","return"))&&(P=y);else{var k,F;O.static=l,O.private=f,f?2===o?k=function(e){return m(e),w.value}:(o<4&&(k=i(w,"get",m)),3!==o&&(F=i(w,"set",m))):(k=function(e){return e[n]},(o<2||4===o)&&(F=function(e,t){e[n]=t}));var N=O.access={has:f?h.bind():function(e){return n in e}};if(k&&(N.get=k),F&&(N.set=F),P=D.call(E,d?{get:w.get,set:w.set}:w[A],O),d){if("object"==typeof P&&P)(y=s(P.get,"accessor.get"))&&(w.get=y),(y=s(P.set,"accessor.set"))&&(w.set=y),(y=s(P.init,"accessor.init"))&&S.push(y);else if(void 0!==P)throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0")}else s(P,(p?"field":"method")+" decorators","return")&&(p?S.push(P):w[A]=P)}}finally{I.v=!0}}return(p||d)&&u.push((function(e,t){for(var r=S.length-1;r>=0;r--)t=S[r].call(e,t);return t})),p||b||(f?d?u.push(i(w,"get"),i(w,"set")):u.push(2===o?w[A]:i.call.bind(w[A])):Object.defineProperty(e,n,w)),P}function u(e,t){return Object.defineProperty(e,Symbol.metadata||Symbol.for("Symbol.metadata"),{configurable:!0,enumerable:!0,value:t})}if(arguments.length>=6)var l=a[Symbol.metadata||Symbol.for("Symbol.metadata")];var f=Object.create(null==l?null:l),p=function(e,t,r,n){var o,a,i=[],s=function(t){return checkInRHS(t)===e},u=new Map;function l(e){e&&i.push(c.bind(null,e))}for(var f=0;f3,y=16&d,v=!!(8&d),g=0==(d&=7),b=h+"/"+v;if(!g&&!m){var w=u.get(b);if(!0===w||3===w&&4!==d||4===w&&3!==d)throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+h);u.set(b,!(d>2)||d)}applyDec(v?e:e.prototype,p,y,m?"#"+h:toPropertyKey(h),d,n,v?a=a||[]:o=o||[],i,v,m,g,1===d,v&&m?s:r)}}return l(o),l(a),i}(e,t,o,f);return r.length||u(e,f),{e:p,get c(){var t=[];return r.length&&[u(applyDec(e,[r],n,e.name,5,f,t),f),c.bind(null,t,e)]}}}',{globals:["TypeError","Array","Object","Error","Symbol","Map"],locals:{applyDecs2305:["body.0.id"]},exportBindingAssignments:[],exportName:"applyDecs2305",dependencies:{checkInRHS:["body.0.body.body.6.declarations.1.init.callee.body.body.0.declarations.3.init.body.body.0.argument.left.callee"],setFunctionName:["body.0.body.body.3.body.body.2.consequent.body.2.expression.consequent.expressions.0.consequent.right.properties.0.value.callee","body.0.body.body.3.body.body.2.consequent.body.2.expression.consequent.expressions.1.right.callee"],toPropertyKey:["body.0.body.body.6.declarations.1.init.callee.body.body.2.body.body.1.consequent.body.2.expression.arguments.3.alternate.callee"]}}),classApplyDescriptorDestructureSet:BS("7.13.10",'function _classApplyDescriptorDestructureSet(e,t){if(t.set)return"__destrObj"in t||(t.__destrObj={set value(r){t.set.call(e,r)}}),t.__destrObj;if(!t.writable)throw new TypeError("attempted to set read only private field");return t}',{globals:["TypeError"],locals:{_classApplyDescriptorDestructureSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classApplyDescriptorDestructureSet",dependencies:{}}),classApplyDescriptorGet:BS("7.13.10","function _classApplyDescriptorGet(e,t){return t.get?t.get.call(e):t.value}",{globals:[],locals:{_classApplyDescriptorGet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classApplyDescriptorGet",dependencies:{}}),classApplyDescriptorSet:BS("7.13.10",'function _classApplyDescriptorSet(e,t,l){if(t.set)t.set.call(e,l);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=l}}',{globals:["TypeError"],locals:{_classApplyDescriptorSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classApplyDescriptorSet",dependencies:{}}),classCheckPrivateStaticAccess:BS("7.13.10","function _classCheckPrivateStaticAccess(s,a,r){return assertClassBrand(a,s,r)}",{globals:[],locals:{_classCheckPrivateStaticAccess:["body.0.id"]},exportBindingAssignments:[],exportName:"_classCheckPrivateStaticAccess",dependencies:{assertClassBrand:["body.0.body.body.0.argument.callee"]}}),classCheckPrivateStaticFieldDescriptor:BS("7.13.10",'function _classCheckPrivateStaticFieldDescriptor(t,e){if(void 0===t)throw new TypeError("attempted to "+e+" private static field before its declaration")}',{globals:["TypeError"],locals:{_classCheckPrivateStaticFieldDescriptor:["body.0.id"]},exportBindingAssignments:[],exportName:"_classCheckPrivateStaticFieldDescriptor",dependencies:{}}),classExtractFieldDescriptor:BS("7.13.10","function _classExtractFieldDescriptor(e,t){return classPrivateFieldGet2(t,e)}",{globals:[],locals:{_classExtractFieldDescriptor:["body.0.id"]},exportBindingAssignments:[],exportName:"_classExtractFieldDescriptor",dependencies:{classPrivateFieldGet2:["body.0.body.body.0.argument.callee"]}}),classPrivateFieldDestructureSet:BS("7.4.4","function _classPrivateFieldDestructureSet(e,t){var r=classPrivateFieldGet2(t,e);return classApplyDescriptorDestructureSet(e,r)}",{globals:[],locals:{_classPrivateFieldDestructureSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateFieldDestructureSet",dependencies:{classApplyDescriptorDestructureSet:["body.0.body.body.1.argument.callee"],classPrivateFieldGet2:["body.0.body.body.0.declarations.0.init.callee"]}}),classPrivateFieldGet:BS("7.0.0-beta.0","function _classPrivateFieldGet(e,t){var r=classPrivateFieldGet2(t,e);return classApplyDescriptorGet(e,r)}",{globals:[],locals:{_classPrivateFieldGet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateFieldGet",dependencies:{classApplyDescriptorGet:["body.0.body.body.1.argument.callee"],classPrivateFieldGet2:["body.0.body.body.0.declarations.0.init.callee"]}}),classPrivateFieldSet:BS("7.0.0-beta.0","function _classPrivateFieldSet(e,t,r){var s=classPrivateFieldGet2(t,e);return classApplyDescriptorSet(e,s,r),r}",{globals:[],locals:{_classPrivateFieldSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateFieldSet",dependencies:{classApplyDescriptorSet:["body.0.body.body.1.argument.expressions.0.callee"],classPrivateFieldGet2:["body.0.body.body.0.declarations.0.init.callee"]}}),classPrivateMethodGet:BS("7.1.6","function _classPrivateMethodGet(s,a,r){return assertClassBrand(a,s),r}",{globals:[],locals:{_classPrivateMethodGet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateMethodGet",dependencies:{assertClassBrand:["body.0.body.body.0.argument.expressions.0.callee"]}}),classPrivateMethodSet:BS("7.1.6",'function _classPrivateMethodSet(){throw new TypeError("attempted to reassign private method")}',{globals:["TypeError"],locals:{_classPrivateMethodSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateMethodSet",dependencies:{}}),classStaticPrivateFieldDestructureSet:BS("7.13.10",'function _classStaticPrivateFieldDestructureSet(t,r,s){return assertClassBrand(r,t),classCheckPrivateStaticFieldDescriptor(s,"set"),classApplyDescriptorDestructureSet(t,s)}',{globals:[],locals:{_classStaticPrivateFieldDestructureSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classStaticPrivateFieldDestructureSet",dependencies:{classApplyDescriptorDestructureSet:["body.0.body.body.0.argument.expressions.2.callee"],assertClassBrand:["body.0.body.body.0.argument.expressions.0.callee"],classCheckPrivateStaticFieldDescriptor:["body.0.body.body.0.argument.expressions.1.callee"]}}),classStaticPrivateFieldSpecGet:BS("7.0.2",'function _classStaticPrivateFieldSpecGet(t,s,r){return assertClassBrand(s,t),classCheckPrivateStaticFieldDescriptor(r,"get"),classApplyDescriptorGet(t,r)}',{globals:[],locals:{_classStaticPrivateFieldSpecGet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classStaticPrivateFieldSpecGet",dependencies:{classApplyDescriptorGet:["body.0.body.body.0.argument.expressions.2.callee"],assertClassBrand:["body.0.body.body.0.argument.expressions.0.callee"],classCheckPrivateStaticFieldDescriptor:["body.0.body.body.0.argument.expressions.1.callee"]}}),classStaticPrivateFieldSpecSet:BS("7.0.2",'function _classStaticPrivateFieldSpecSet(s,t,r,e){return assertClassBrand(t,s),classCheckPrivateStaticFieldDescriptor(r,"set"),classApplyDescriptorSet(s,r,e),e}',{globals:[],locals:{_classStaticPrivateFieldSpecSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classStaticPrivateFieldSpecSet",dependencies:{classApplyDescriptorSet:["body.0.body.body.0.argument.expressions.2.callee"],assertClassBrand:["body.0.body.body.0.argument.expressions.0.callee"],classCheckPrivateStaticFieldDescriptor:["body.0.body.body.0.argument.expressions.1.callee"]}}),classStaticPrivateMethodSet:BS("7.3.2",'function _classStaticPrivateMethodSet(){throw new TypeError("attempted to set read only static private field")}',{globals:["TypeError"],locals:{_classStaticPrivateMethodSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classStaticPrivateMethodSet",dependencies:{}}),defineEnumerableProperties:BS("7.0.0-beta.0",'function _defineEnumerableProperties(e,r){for(var t in r){var n=r[t];n.configurable=n.enumerable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,t,n)}if(Object.getOwnPropertySymbols)for(var a=Object.getOwnPropertySymbols(r),b=0;b0;)try{var o=r.pop(),p=o.d.call(o.v);if(o.a)return Promise.resolve(p).then(next,err)}catch(r){return err(r)}if(s)throw e}function err(r){return e=s?new dispose_SuppressedError(e,r):r,s=!0,next()}return next()}',{globals:["SuppressedError","Error","Object","Promise"],locals:{dispose_SuppressedError:["body.0.id","body.0.body.body.0.argument.expressions.0.alternate.expressions.1.left.object","body.0.body.body.0.argument.expressions.0.alternate.expressions.1.right.arguments.1.properties.0.value.properties.0.value","body.0.body.body.0.argument.expressions.1.callee","body.1.body.body.1.body.body.0.argument.expressions.0.right.consequent.callee","body.0.body.body.0.argument.expressions.0.consequent.left","body.0.body.body.0.argument.expressions.0.alternate.expressions.0.left"],_dispose:["body.1.id"]},exportBindingAssignments:[],exportName:"_dispose",dependencies:{}}),objectSpread:BS("7.0.0-beta.0",'function _objectSpread(e){for(var r=1;r0;)e=e[n],n=a.shift();if(!(arguments.length>2))return e[n];e[n]=r}catch(s){throw s.message+=" (when accessing "+t+")",s}}function WS(e,t,r,a,n,s){var o=t.locals,i=t.dependencies,d=t.exportBindingAssignments,c=t.exportName,l=new Set(a||[]);r&&l.add(r);for(var u=0,f=(Object.entries||function(e){return Object.keys(e).map((function(t){return[t,e[t]]}))})(o);u100)){var i=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(o);if(i){var d=parseFloat(i[1]);switch((i[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return d*s;case"weeks":case"week":case"w":return d*n;case"days":case"day":case"d":return d*a;case"hours":case"hour":case"hrs":case"hr":case"h":return d*r;case"minutes":case"minute":case"mins":case"min":case"m":return d*t;case"seconds":case"second":case"secs":case"sec":case"s":return d*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return d;default:return}}}}function i(n){var s=Math.abs(n);return s>=a?Math.round(n/a)+"d":s>=r?Math.round(n/r)+"h":s>=t?Math.round(n/t)+"m":s>=e?Math.round(n/e)+"s":n+"ms"}function d(n){var s=Math.abs(n);return s>=a?c(n,s,a,"day"):s>=r?c(n,s,r,"hour"):s>=t?c(n,s,t,"minute"):s>=e?c(n,s,e,"second"):n+" ms"}function c(e,t,r,a){var n=t>=1.5*r;return Math.round(e/r)+" "+a+(n?"s":"")}return YS=function(e,t){t=t||{};var r=typeof e;if("string"===r&&e.length>0)return o(e);if("number"===r&&isFinite(e))return t.long?d(e):i(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))},YS}function bT(e){function t(e){for(var t=0,a=0;a=31||"undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/));var e}function a(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),this.useColors){var r="color: "+this.color;t.splice(1,0,r,"color: inherit");var a=0,n=0;t[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(a++,"%c"===e&&(n=a))})),t.splice(n,0,r)}}function n(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(SX){}}function s(){var e;try{e=t.storage.getItem("debug")}catch(SX){}return!e&&"undefined"!==typeof ve&&"env"in ve&&(e=ve.env.DEBUG),e}function o(){try{return localStorage}catch(SX){}}t.formatArgs=a,t.save=n,t.load=s,t.useColors=r,t.storage=o(),t.destroy=function(){var e=!1;return function(){e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||function(){},e.exports=vT(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(SX){return"[UnexpectedJSONParseError]: "+SX.message}}}(hT,hT.exports);var xT=hT.exports,RT=qx,wT=Hx,ET=Fs,jT=os,ST=Us,TT=We,AT=vs,kT=Ge,CT=Dt,PT=Nt,_T=Ra,DT=wa,IT=et,OT=ot,NT=Vx,FT=Kx,BT=us,MT=$x,LT=yt,UT=_t,qT=Qx.isCompatTag;function WT(e){var t=this.node,r=this.parent;if(!kT(t,e)&&!DT(r,e)){if(!_T(t,e))return!1;if(qT(t.name))return!1}return NT(t,r,this.parentPath.parent)}function HT(){var e=this.node,t=this.parent;return IT(e)&&NT(e,t)}function zT(){var e=this.node,t=this.parent,r=this.parentPath.parent;return kT(e)&&RT(e,t,r)}function GT(){var e=this.node,t=this.parent;if(BT(e)){if(LT(e)){if(AT(t,{left:e}))return!1;if(TT(t,{init:e}))return!1}return!0}return!1}function VT(){return this.isIdentifier()?this.isReferencedIdentifier():jT(this.node)}function KT(){return FT(this.node,this.parent)}function YT(){return NT(this.node,this.parent)}function JT(){return wT(this.node)}function XT(){return MT(this.node)}function $T(){return this.node&&!!this.node.loc}function QT(){return!this.isUser()}function ZT(e){return this.scope.isPure(this.node,e)}function eA(){var e=this.node;return!!ST(e)||(CT(e)?"type"===e.importKind||"typeof"===e.importKind:ET(e)?"type"===e.exportKind:!!PT(e)&&("type"===e.importKind||"typeof"===e.importKind))}function tA(){var e;return OT(this.node)&&(null==(e=this.parentPath)?void 0:e.isObjectPattern())}function rA(){var e;return OT(this.node)&&(null==(e=this.parentPath)?void 0:e.isObjectExpression())}function aA(){return UT(this.node,{await:!0})}e.isExistentialTypeParam=function(){throw new Error("`path.isExistentialTypeParam` has been renamed to `path.isExistsTypeAnnotation()` in Babel 7.")},e.isNumericLiteralTypeAnnotation=function(){throw new Error("`path.isNumericLiteralTypeAnnotation()` has been renamed to `path.isNumberLiteralTypeAnnotation()` in Babel 7.")};var nA=Object.freeze({__proto__:null,isBindingIdentifier:zT,isBlockScoped:JT,isExpression:VT,isFlow:eA,isForAwaitStatement:aA,isGenerated:QT,isPure:ZT,isReferenced:YT,isReferencedIdentifier:WT,isReferencedMemberExpression:HT,isRestProperty:tA,isScope:KT,isSpreadProperty:rA,isStatement:GT,isUser:$T,isVar:XT}),sA=pi,oA=pd,iA=ci,dA=fd,cA=we;function lA(e){return e in mT}function uA(e){return null==e?void 0:e._exploded}function pA(e){if(uA(e))return e;e._exploded=!0;for(var t=0,r=Object.keys(e);t1&&(t+=r),r++}while(this.hasLabel(t)||this.hasBinding(t)||this.hasGlobal(t)||this.hasReference(t));var a=this.getProgramParent();return a.references[t]=!0,a.uids[t]=!0,t},t.generateUidBasedOnNode=function(e,t){var r=[];Uk(e,r);var a=r.join("$");return a=a.replace(/^_/,"")||t||"ref",this.generateUid(a.slice(0,20))},t.generateUidIdentifierBasedOnNode=function(e,t){return XA(this.generateUidBasedOnNode(e,t))},t.isStatic=function(e){if(Rk(e)||bk(e)||Ok(e))return!0;if(ik(e)){var t=this.getBinding(e.name);return t?t.constant:this.hasBinding(e.name)}return!1},t.maybeGenerateMemoised=function(e,t){if(this.isStatic(e))return null;var r=this.generateUidIdentifierBasedOnNode(e);return t?r:(this.push({id:r}),YA(r))},t.checkBlockScopedCollisions=function(e,t,r,a){if("param"!==t&&"local"!==e.kind&&("let"===t||"let"===e.kind||"const"===e.kind||"module"===e.kind||"param"===e.kind&&"const"===t))throw this.path.hub.buildError(a,'Duplicate declaration "'+r+'"',TypeError)},t.rename=function(e,t){var r=this.getBinding(e);r&&(t||(t=this.generateUidIdentifier(e).name),new AA(r,e,t).rename(arguments[2]))},t.dump=function(){var e="-".repeat(60);console.log(e);var t=this;do{console.log("#",t.block.type);for(var r=0,a=Object.keys(t.bindings);r0)&&this.isPure(e.body,t);if(tk(e)){for(var o,i=p(e.body);!(o=i()).done;){var d=o.value;if(!this.isPure(d,t))return!1}return!0}if(QA(e))return this.isPure(e.left,t)&&this.isPure(e.right,t);if($A(e)||Dk(e)){for(var c,l=p(e.elements);!(c=l()).done;){var u=c.value;if(null!==u&&!this.isPure(u,t))return!1}return!0}if(gk(e)||_k(e)){for(var f,g=p(e.properties);!(f=g()).done;){var m=f.value;if(!this.isPure(m,t))return!1}return!0}if(uk(e))return!(e.computed&&!this.isPure(e.key,t))&&!((null==(n=e.decorators)?void 0:n.length)>0);if(mk(e))return!(e.computed&&!this.isPure(e.key,t))&&!((null==(s=e.decorators)?void 0:s.length)>0)&&!((Ik(e)||e.static)&&null!==e.value&&!this.isPure(e.value,t));if(wk(e))return this.isPure(e.argument,t);if(xk(e)){for(var h,y=p(e.expressions);!(h=y()).done;){var b=h.value;if(!this.isPure(b,t))return!1}return!0}return vk(e)?Sk(e.tag,"String.raw")&&!this.hasBinding("String",{noGlobals:!0})&&this.isPure(e.quasi,t):lk(e)?!e.computed&&ik(e.object)&&"Symbol"===e.object.name&&ik(e.property)&&"for"!==e.property.name&&!this.hasBinding("Symbol",{noGlobals:!0}):ZA(e)?Sk(e.callee,"Symbol.for")&&!this.hasBinding("Symbol",{noGlobals:!0})&&1===e.arguments.length&&Ye(e.arguments[0]):hk(e)},t.setData=function(e,t){return this.data[e]=t},t.getData=function(e){var t=this;do{var r=t.data[e];if(null!=r)return r}while(t=t.parent)},t.removeData=function(e){var t=this;do{null!=t.data[e]&&(t.data[e]=null)}while(t=t.parent)},t.init=function(){this.inited||(this.inited=!0,this.crawl())},t.crawl=function(){var e=this.path;this.references=Object.create(null),this.bindings=Object.create(null),this.globals=Object.create(null),this.uids=Object.create(null),this.data=Object.create(null);var t=this.getProgramParent();if(!t.crawling){var r={references:[],constantViolations:[],assignments:[]};if(this.crawling=!0,"Program"!==e.type&&uA(qk)){for(var a,n=p(qk.enter);!(a=n()).done;)a.value.call(r,e,r);var s=qk[e.type];if(s)for(var o,i=p(s.enter);!(o=i()).done;)o.value.call(r,e,r)}e.traverse(qk,r),this.crawling=!1;for(var d,c=p(r.assignments);!(d=c()).done;){for(var l=d.value,u=l.getAssignmentIdentifiers(),f=0,g=Object.keys(u);f1&&(r+=t),"_"+r},Hk.prototype.toArray=function(e,t,r){if(ik(e)){var a=this.getBinding(e.name);if(null!=a&&a.constant&&a.path.isGenericType("Array"))return e}if($A(e))return e;if(ik(e,{name:"arguments"}))return KA(Tk(Tk(Tk(XA("Array"),XA("prototype")),XA("slice")),XA("call")),[e]);var n,s=[e];return!0===t?n="toConsumableArray":"number"===typeof t?(s.push(Ak(t)),n="slicedToArray"):n="toArray",r&&(s.unshift(this.path.hub.addHelper(n)),n="maybeArrayLike"),KA(this.path.hub.addHelper(n),s)},Hk.prototype.getAllBindingsOfKind=function(){for(var e=Object.create(null),t=arguments.length,r=new Array(t),a=0;a0)throw new Error("Invalid string. Length must be a multiple of 4");s="="===e[i-2]?2:"="===e[i-1]?1:0,o=new Xk(3*i/4-s),a=s>0?i-4:i;var d=0;for(t=0,r=0;t>16&255,o[d++]=n>>8&255,o[d++]=255&n;return 2===s?(n=Jk[e.charCodeAt(t)]<<2|Jk[e.charCodeAt(t+1)]>>4,o[d++]=255&n):1===s&&(n=Jk[e.charCodeAt(t)]<<10|Jk[e.charCodeAt(t+1)]<<4|Jk[e.charCodeAt(t+2)]>>2,o[d++]=n>>8&255,o[d++]=255&n),o}function eC(e){return Yk[e>>18&63]+Yk[e>>12&63]+Yk[e>>6&63]+Yk[63&e]}function tC(e,t,r){for(var a,n=[],s=t;sd?d:i+o));return 1===a?(t=e[r-1],n+=Yk[t>>2],n+=Yk[t<<4&63],n+="=="):2===a&&(t=(e[r-2]<<8)+e[r-1],n+=Yk[t>>10],n+=Yk[t>>4&63],n+=Yk[t<<2&63],n+="="),s.push(n),s.join("")}function aC(e,t,r,a,n){var s,o,i=8*n-a-1,d=(1<>1,l=-7,u=r?n-1:0,p=r?-1:1,f=e[t+u];for(u+=p,s=f&(1<<-l)-1,f>>=-l,l+=i;l>0;s=256*s+e[t+u],u+=p,l-=8);for(o=s&(1<<-l)-1,s>>=-l,l+=a;l>0;o=256*o+e[t+u],u+=p,l-=8);if(0===s)s=1-c;else{if(s===d)return o?NaN:1/0*(f?-1:1);o+=Math.pow(2,a),s-=c}return(f?-1:1)*o*Math.pow(2,s-a)}function nC(e,t,r,a,n,s){var o,i,d,c=8*s-n-1,l=(1<>1,p=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,f=a?0:s-1,g=a?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(i=isNaN(t)?1:0,o=l):(o=Math.floor(Math.log(t)/Math.LN2),t*(d=Math.pow(2,-o))<1&&(o--,d*=2),(t+=o+u>=1?p/d:p*Math.pow(2,1-u))*d>=2&&(o++,d/=2),o+u>=l?(i=0,o=l):o+u>=1?(i=(t*d-1)*Math.pow(2,n),o+=u):(i=t*Math.pow(2,u-1)*Math.pow(2,n),o=0));n>=8;e[r+f]=255&i,f+=g,i/=256,n-=8);for(o=o<0;e[r+f]=255&o,f+=g,o/=256,c-=8);e[r+f-g]|=128*m}var sC={}.toString,oC=Array.isArray||function(e){return"[object Array]"==sC.call(e)},iC=50;function dC(){return lC.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function cC(e,t){if(dC()=dC())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+dC().toString(16)+" bytes");return 0|e}function xC(e){return!(null==e||!e._isBuffer)}function RC(e,t){if(xC(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var a=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return $C(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return eP(e).length;default:if(a)return $C(e).length;t=(""+t).toLowerCase(),a=!0}}function wC(e,t,r){var a=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return MC(this,t,r);case"utf8":case"utf-8":return IC(this,t,r);case"ascii":return FC(this,t,r);case"latin1":case"binary":return BC(this,t,r);case"base64":return DC(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return LC(this,t,r);default:if(a)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),a=!0}}function EC(e,t,r){var a=e[t];e[t]=e[r],e[r]=a}function jC(e,t,r,a,n){if(0===e.length)return-1;if("string"===typeof r?(a=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=n?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(n)return-1;r=e.length-1}else if(r<0){if(!n)return-1;r=0}if("string"===typeof t&&(t=lC.from(t,a)),xC(t))return 0===t.length?-1:SC(e,t,r,a,n);if("number"===typeof t)return t&=255,lC.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):SC(e,[t],r,a,n);throw new TypeError("val must be string, number or Buffer")}function SC(e,t,r,a,n){var s,o=1,i=e.length,d=t.length;if(void 0!==a&&("ucs2"===(a=String(a).toLowerCase())||"ucs-2"===a||"utf16le"===a||"utf-16le"===a)){if(e.length<2||t.length<2)return-1;o=2,i/=2,d/=2,r/=2}function c(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(n){var l=-1;for(s=r;si&&(r=i-d),s=r;s>=0;s--){for(var u=!0,p=0;pn&&(a=n):a=n;var s=t.length;if(s%2!==0)throw new TypeError("Invalid hex string");a>s/2&&(a=s/2);for(var o=0;o239?4:c>223?3:c>191?2:1;if(n+u<=r)switch(u){case 1:c<128&&(l=c);break;case 2:128===(192&(s=e[n+1]))&&(d=(31&c)<<6|63&s)>127&&(l=d);break;case 3:s=e[n+1],o=e[n+2],128===(192&s)&&128===(192&o)&&(d=(15&c)<<12|(63&s)<<6|63&o)>2047&&(d<55296||d>57343)&&(l=d);break;case 4:s=e[n+1],o=e[n+2],i=e[n+3],128===(192&s)&&128===(192&o)&&128===(192&i)&&(d=(15&c)<<18|(63&s)<<12|(63&o)<<6|63&i)>65535&&d<1114112&&(l=d)}null===l?(l=65533,u=1):l>65535&&(l-=65536,a.push(l>>>10&1023|55296),l=56320|1023&l),a.push(l),n+=u}return NC(a)}lC.TYPED_ARRAY_SUPPORT=void 0===D.TYPED_ARRAY_SUPPORT||D.TYPED_ARRAY_SUPPORT,dC(),lC.poolSize=8192,lC._augment=function(e){return e.__proto__=lC.prototype,e},lC.from=function(e,t,r){return uC(null,e,t,r)},lC.TYPED_ARRAY_SUPPORT&&(lC.prototype.__proto__=Uint8Array.prototype,lC.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&lC[Symbol.species]),lC.alloc=function(e,t,r){return fC(null,e,t,r)},lC.allocUnsafe=function(e){return gC(null,e)},lC.allocUnsafeSlow=function(e){return gC(null,e)},lC.isBuffer=aP,lC.compare=function(e,t){if(!xC(e)||!xC(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,a=t.length,n=0,s=Math.min(r,a);n0&&(e=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(e+=" ... ")),""},lC.prototype.compare=function(e,t,r,a,n){if(!xC(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===a&&(a=0),void 0===n&&(n=this.length),t<0||r>e.length||a<0||n>this.length)throw new RangeError("out of range index");if(a>=n&&t>=r)return 0;if(a>=n)return-1;if(t>=r)return 1;if(this===e)return 0;for(var s=(n>>>=0)-(a>>>=0),o=(r>>>=0)-(t>>>=0),i=Math.min(s,o),d=this.slice(a,n),c=e.slice(t,r),l=0;ln)&&(r=n),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");a||(a="utf8");for(var s=!1;;)switch(a){case"hex":return TC(this,e,t,r);case"utf8":case"utf-8":return AC(this,e,t,r);case"ascii":return kC(this,e,t,r);case"latin1":case"binary":return CC(this,e,t,r);case"base64":return PC(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _C(this,e,t,r);default:if(s)throw new TypeError("Unknown encoding: "+a);a=(""+a).toLowerCase(),s=!0}},lC.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var OC=4096;function NC(e){var t=e.length;if(t<=OC)return String.fromCharCode.apply(String,e);for(var r="",a=0;aa)&&(r=a);for(var n="",s=t;sr)throw new RangeError("Trying to access beyond buffer length")}function qC(e,t,r,a,n,s){if(!xC(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>n||te.length)throw new RangeError("Index out of range")}function WC(e,t,r,a){t<0&&(t=65535+t+1);for(var n=0,s=Math.min(e.length-r,2);n>>8*(a?n:1-n)}function HC(e,t,r,a){t<0&&(t=4294967295+t+1);for(var n=0,s=Math.min(e.length-r,4);n>>8*(a?n:3-n)&255}function zC(e,t,r,a,n,s){if(r+a>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function GC(e,t,r,a,n){return n||zC(e,t,r,4),nC(e,t,r,a,23,4),r+4}function VC(e,t,r,a,n){return n||zC(e,t,r,8),nC(e,t,r,a,52,8),r+8}lC.prototype.slice=function(e,t){var r,a=this.length;if((e=~~e)<0?(e+=a)<0&&(e=0):e>a&&(e=a),(t=void 0===t?a:~~t)<0?(t+=a)<0&&(t=0):t>a&&(t=a),t0&&(n*=256);)a+=this[e+--t]*n;return a},lC.prototype.readUInt8=function(e,t){return t||UC(e,1,this.length),this[e]},lC.prototype.readUInt16LE=function(e,t){return t||UC(e,2,this.length),this[e]|this[e+1]<<8},lC.prototype.readUInt16BE=function(e,t){return t||UC(e,2,this.length),this[e]<<8|this[e+1]},lC.prototype.readUInt32LE=function(e,t){return t||UC(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},lC.prototype.readUInt32BE=function(e,t){return t||UC(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},lC.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||UC(e,t,this.length);for(var a=this[e],n=1,s=0;++s=(n*=128)&&(a-=Math.pow(2,8*t)),a},lC.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||UC(e,t,this.length);for(var a=t,n=1,s=this[e+--a];a>0&&(n*=256);)s+=this[e+--a]*n;return s>=(n*=128)&&(s-=Math.pow(2,8*t)),s},lC.prototype.readInt8=function(e,t){return t||UC(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},lC.prototype.readInt16LE=function(e,t){t||UC(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},lC.prototype.readInt16BE=function(e,t){t||UC(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},lC.prototype.readInt32LE=function(e,t){return t||UC(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},lC.prototype.readInt32BE=function(e,t){return t||UC(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},lC.prototype.readFloatLE=function(e,t){return t||UC(e,4,this.length),aC(this,e,!0,23,4)},lC.prototype.readFloatBE=function(e,t){return t||UC(e,4,this.length),aC(this,e,!1,23,4)},lC.prototype.readDoubleLE=function(e,t){return t||UC(e,8,this.length),aC(this,e,!0,52,8)},lC.prototype.readDoubleBE=function(e,t){return t||UC(e,8,this.length),aC(this,e,!1,52,8)},lC.prototype.writeUIntLE=function(e,t,r,a){e=+e,t|=0,r|=0,a||qC(this,e,t,r,Math.pow(2,8*r)-1,0);var n=1,s=0;for(this[t]=255&e;++s=0&&(s*=256);)this[t+n]=e/s&255;return t+r},lC.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||qC(this,e,t,1,255,0),lC.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},lC.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||qC(this,e,t,2,65535,0),lC.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):WC(this,e,t,!0),t+2},lC.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||qC(this,e,t,2,65535,0),lC.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):WC(this,e,t,!1),t+2},lC.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||qC(this,e,t,4,4294967295,0),lC.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):HC(this,e,t,!0),t+4},lC.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||qC(this,e,t,4,4294967295,0),lC.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):HC(this,e,t,!1),t+4},lC.prototype.writeIntLE=function(e,t,r,a){if(e=+e,t|=0,!a){var n=Math.pow(2,8*r-1);qC(this,e,t,r,n-1,-n)}var s=0,o=1,i=0;for(this[t]=255&e;++s=0&&(o*=256);)e<0&&0===i&&0!==this[t+s+1]&&(i=1),this[t+s]=(e/o|0)-i&255;return t+r},lC.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||qC(this,e,t,1,127,-128),lC.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},lC.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||qC(this,e,t,2,32767,-32768),lC.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):WC(this,e,t,!0),t+2},lC.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||qC(this,e,t,2,32767,-32768),lC.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):WC(this,e,t,!1),t+2},lC.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||qC(this,e,t,4,2147483647,-2147483648),lC.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):HC(this,e,t,!0),t+4},lC.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||qC(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),lC.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):HC(this,e,t,!1),t+4},lC.prototype.writeFloatLE=function(e,t,r){return GC(this,e,t,!0,r)},lC.prototype.writeFloatBE=function(e,t,r){return GC(this,e,t,!1,r)},lC.prototype.writeDoubleLE=function(e,t,r){return VC(this,e,t,!0,r)},lC.prototype.writeDoubleBE=function(e,t,r){return VC(this,e,t,!1,r)},lC.prototype.copy=function(e,t,r,a){if(r||(r=0),a||0===a||(a=this.length),t>=e.length&&(t=e.length),t||(t=0),a>0&&a=this.length)throw new RangeError("sourceStart out of bounds");if(a<0)throw new RangeError("sourceEnd out of bounds");a>this.length&&(a=this.length),e.length-t=0;--n)e[n+t]=this[n+r];else if(s<1e3||!lC.TYPED_ARRAY_SUPPORT)for(n=0;n>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"===typeof e)for(s=t;s55295&&r<57344){if(!n){if(r>56319){(t-=3)>-1&&s.push(239,191,189);continue}if(o+1===a){(t-=3)>-1&&s.push(239,191,189);continue}n=r;continue}if(r<56320){(t-=3)>-1&&s.push(239,191,189),n=r;continue}r=65536+(n-55296<<10|r-56320)}else n&&(t-=3)>-1&&s.push(239,191,189);if(n=null,r<128){if((t-=1)<0)break;s.push(r)}else if(r<2048){if((t-=2)<0)break;s.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;s.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;s.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return s}function QC(e){for(var t=[],r=0;r>8,n=r%256,s.push(n),s.push(a);return s}function eP(e){return Zk(YC(e))}function tP(e,t,r,a){for(var n=0;n=t.length||n>=e.length);++n)t[n+r]=e[n];return n}function rP(e){return e!==e}function aP(e){return null!=e&&(!!e._isBuffer||nP(e)||sP(e))}function nP(e){return!!e.constructor&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function sP(e){return"function"===typeof e.readFloatLE&&"function"===typeof e.slice&&nP(e.slice(0,0))}var oP,iP={exports:{}};function dP(){return oP||(oP=1,function(e,t){!function(e,r){r(t)}(0,(function(e){for(var t=",".charCodeAt(0),r=";".charCodeAt(0),a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=new Uint8Array(64),s=new Uint8Array(128),o=0;o>>=1,c&&(n=-2147483648|-n),r[a]+=n,t}function p(e,r,a){return!(r>=a)&&e.charCodeAt(r)!==t}function f(e){e.sort(g)}function g(e,t){return e[0]-t[0]}function m(e){for(var a=new Int32Array(5),n=16384,s=n-36,o=new Uint8Array(n),i=o.subarray(0,s),c=0,l="",u=0;u0&&(c===n&&(l+=d.decode(o),c=0),o[c++]=r),0!==p.length){a[0]=0;for(var f=0;fs&&(l+=d.decode(i),o.copyWithin(0,s,c),c-=s),f>0&&(o[c++]=t),c=h(o,c,a,g,0),1!==g.length&&(c=h(o,c,a,g,1),c=h(o,c,a,g,2),c=h(o,c,a,g,3),4!==g.length&&(c=h(o,c,a,g,4)))}}}return l+d.decode(o.subarray(0,c))}function h(e,t,r,a,s){var o=a[s],i=o-r[s];r[s]=o,i=i<0?-i<<1|1:i<<1;do{var d=31&i;(i>>>=5)>0&&(d|=32),e[t++]=n[d]}while(i>0);return t}e.decode=c,e.encode=m,Object.defineProperty(e,"__esModule",{value:!0})}))}(0,iP.exports)),iP.exports}var cP,lP={exports:{}},uP={exports:{}};function pP(){return cP||(cP=1,e=uP,function(t,r){e.exports=r()}(0,(function(){var e=/^[\w+.-]+:\/\//,t=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,r=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function a(t){return e.test(t)}function n(e){return e.startsWith("//")}function s(e){return e.startsWith("/")}function o(e){return e.startsWith("file:")}function i(e){return/^[.?#]/.test(e)}function d(e){var r=t.exec(e);return l(r[1],r[2]||"",r[3],r[4]||"",r[5]||"/",r[6]||"",r[7]||"")}function c(e){var t=r.exec(e),a=t[2];return l("file:","",t[1]||"","",s(a)?a:"/"+a,t[3]||"",t[4]||"")}function l(e,t,r,a,n,s,o){return{scheme:e,user:t,host:r,port:a,path:n,query:s,hash:o,type:7}}function u(e){if(n(e)){var t=d("http:"+e);return t.scheme="",t.type=6,t}if(s(e)){var r=d("http://foo.com"+e);return r.scheme="",r.host="",r.type=5,r}if(o(e))return c(e);if(a(e))return d(e);var i=d("http://foo.com/"+e);return i.scheme="",i.host="",i.type=e?e.startsWith("?")?3:e.startsWith("#")?2:4:1,i}function p(e){if(e.endsWith("/.."))return e;var t=e.lastIndexOf("/");return e.slice(0,t+1)}function f(e,t){g(t,t.type),"/"===e.path?e.path=t.path:e.path=p(t.path)+e.path}function g(e,t){for(var r=t<=4,a=e.path.split("/"),n=1,s=0,o=!1,i=1;ia&&(a=s)}g(r,a);var o=r.query+r.hash;switch(a){case 2:case 3:return o;case 4:var d=r.path.slice(1);return d?i(t||e)&&!i(d)?"./"+d+o:d+o:o||".";case 5:return r.path+o;default:return r.scheme+"//"+r.user+r.host+r.port+r.path+o}}return m}))),uP.exports;var e}!function(e,t){!function(e,r){r(t,dP(),pP())}(0,(function(e,t,r){function a(e,t){return t&&!t.endsWith("/")&&(t+="/"),r(e,t)}function n(e){if(!e)return"";var t=e.lastIndexOf("/");return e.slice(0,t+1)}var s=0,o=1,i=2,d=3,c=4,l=1,p=2;function f(e,t){var r=g(e,0);if(r===e.length)return e;t||(e=e.slice());for(var a=r;a>1),o=e[n][s]-t;if(0===o)return b=!0,n;o<0?r=n+1:a=n-1}return b=!1,r-1}function x(e,t,r){for(var a=r+1;a=0&&e[a][s]===t;r=a--);return r}function w(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function E(e,t,r,a){var n=r.lastKey,o=r.lastNeedle,i=r.lastIndex,d=0,c=e.length-1;if(a===n){if(t===o)return b=-1!==i&&e[i][s]===t,i;t>=o?d=-1===i?0:i:c=i}return r.lastKey=a,r.lastNeedle=t,r.lastIndex=v(e,t,d,c)}function j(e,t){for(var r=t.map(T),a=0;at;a--)e[a]=e[a-1];e[t]=r}function T(){return{__proto__:null}}var A=function(e,t){var r=k(e);if(!("sections"in r))return new B(r,t);var a=[],n=[],s=[],o=[],i=[];return C(r,t,a,n,s,o,i,0,0,1/0,1/0),J({version:3,file:r.file,names:o,sources:n,sourcesContent:s,mappings:a,ignoreList:i})};function k(e){return"string"===typeof e?JSON.parse(e):e}function C(e,t,r,a,n,s,o,i,d,c,l){for(var u=e.sections,p=0;pg)return;for(var P=D(r,A),I=0===T?f:0,O=x[T],N=0;N=m)return;if(1!==F.length){var L=b+F[o],q=F[i],W=F[d];P.push(4===F.length?[M,L,q,W]:[M,L,q,W,v+F[c]])}else P.push([M])}}}function _(e,t){for(var r=0;r=a.length)return null;var n=a[t],s=te(n,M(e)._decodedMemo,t,r,F);return-1===s?null:n[s]}function W(e,t){var r=t.line,a=t.column,n=t.bias;if(--r<0)throw new Error(I);if(a<0)throw new Error(O);var s=U(e);if(r>=s.length)return Z(null,null,null,null);var l=s[r],u=te(l,M(e)._decodedMemo,r,a,n||F);if(-1===u)return Z(null,null,null,null);var p=l[u];if(1===p.length)return Z(null,null,null,null);var f=e.names;return Z(e.resolvedSources[p[o]],p[i]+1,p[d],5===p.length?f[p[c]]:null)}function H(e,t){return ae(e,t.source,t.line,t.column,t.bias||F,!1)}function z(e,t){return ae(e,t.source,t.line,t.column,t.bias||N,!0)}function G(e,t){for(var r=U(e),a=e.names,n=e.resolvedSources,s=0;s=0&&!(t>=e[a][n]);r=a--);return r}function T(e,t,r){for(var a=e.length;a>t;a--)e[a]=e[a-1];e[t]=r}function A(e){for(var t=e.length,r=t,a=r-1;a>=0&&!(e[a].length>0);r=a,a--);r1?this._indentChar.repeat(t):this._indentChar}else this._str+=t>1?String.fromCharCode(e).repeat(t):String.fromCharCode(e);10!==e?(this._mark(r.line,r.column,r.identifierName,r.identifierNamePos,r.filename),this._position.column+=t):(this._position.line++,this._position.column=0),this._canMarkIdName&&(r.identifierName=void 0,r.identifierNamePos=void 0)},t._append=function(e,t,r){var a=e.length,n=this._position;if(this._last=e.charCodeAt(a-1),++this._appendCount>4096?(this._str,this._buf+=this._str,this._str=e,this._appendCount=0):this._str+=e,r||this._map){var s=t.column,o=t.identifierName,i=t.identifierNamePos,d=t.filename,c=t.line;null==o&&null==i||!this._canMarkIdName||(t.identifierName=void 0,t.identifierNamePos=void 0);var l=e.indexOf("\n"),u=0;for(0!==l&&this._mark(c,s,o,i,d);-1!==l;)n.line++,n.column=0,(u=l+1)=0&&10===this._queue[r].char;r--)t++;return t===e&&10===this._last?t+1:t},t.endsWithCharAndNewline=function(){var e=this._queue,t=this._queueCursor;if(0!==t){if(10!==e[t-1].char)return;return t>1?e[t-2].char:this._last}},t.hasContent=function(){return 0!==this._queueCursor||!!this._last},t.exactSource=function(e,t){if(this._map){this.source("start",e);var r=e.identifierName,a=this._sourcePosition;r&&(this._canMarkIdName=!1,a.identifierName=r),t(),r&&(this._canMarkIdName=!0,a.identifierName=void 0,a.identifierNamePos=void 0),this.source("end",e)}else t()},t.source=function(e,t){this._map&&this._normalizePosition(e,t,0)},t.sourceWithOffset=function(e,t,r){this._map&&this._normalizePosition(e,t,r)},t._normalizePosition=function(e,t,r){var a=t[e],n=this._sourcePosition;a&&(n.line=a.line,n.column=Math.max(a.column+r,0),n.filename=t.filename)},t.getCurrentColumn=function(){for(var e=this._queue,t=this._queueCursor,r=-1,a=0,n=0;n",0],["&&",1],["|",2],["^",3],["&",4],["==",5],["===",5],["!=",5],["!==",5],["<",6],[">",6],["<=",6],[">=",6],["in",6],["instanceof",6],[">>",7],["<<",7],[">>>",7],["+",8],["-",8],["*",9],["/",9],["%",9],["**",10]]);function KP(e,t){return"BinaryExpression"===t||"LogicalExpression"===t?VP.get(e.operator):"TSAsExpression"===t||"TSSatisfiesExpression"===t?VP.get("in"):void 0}function YP(e){return"TSAsExpression"===e||"TSSatisfiesExpression"===e||"TSTypeAssertion"===e}var JP=function(e,t){var r=t.type;return("ClassDeclaration"===r||"ClassExpression"===r)&&t.superClass===e},XP=function(e,t){var r=t.type;return("MemberExpression"===r||"OptionalMemberExpression"===r)&&t.object===e||("CallExpression"===r||"OptionalCallExpression"===r||"NewExpression"===r)&&t.callee===e||"TaggedTemplateExpression"===r&&t.tag===e||"TSNonNullExpression"===r};function $P(e,t){return FP(t)}function QP(e,t,r){var a=t.type;return"UnionTypeAnnotation"===a||"IntersectionTypeAnnotation"===a||"ArrayTypeAnnotation"===a||Boolean(r&k_.arrowFlowReturnType)}function ZP(e,t){return XP(e,t)||JP(e,t)}function e_(e){return Boolean(e&(k_.expressionStatement|k_.arrowBody))}function t_(e,t,r){return e_(r)}function r_(e,t,r){return!e.async&&Boolean(r&k_.expressionStatement)}function a_(e,t){var r=t.type;if("BinaryExpression"===e.type&&"**"===e.operator&&"BinaryExpression"===r&&"**"===t.operator)return t.left===e;if(JP(e,t))return!0;if(XP(e,t)||"UnaryExpression"===r||"SpreadElement"===r||"AwaitExpression"===r)return!0;var a=KP(t,r);if(null!=a){var n=KP(e,e.type);if(a===n&&"BinaryExpression"===r&&t.right===e||a>n)return!0}}function n_(e,t){var r=t.type;return"ArrayTypeAnnotation"===r||"NullableTypeAnnotation"===r||"IntersectionTypeAnnotation"===r||"UnionTypeAnnotation"===r}function s_(e,t){return UP(t)&&t.objectType===e}function o_(e,t){return("AssignmentExpression"===t.type||"AssignmentPattern"===t.type)&&t.left===e||"BinaryExpression"===t.type&&("|"===t.operator||"&"===t.operator)&&e===t.left||a_(e,t)}function i_(e,t){var r=t.type;return"TSArrayType"===r||"TSOptionalType"===r||"TSIntersectionType"===r||"TSRestType"===r}function d_(e,t){var r=t.type;return"TSArrayType"===r||"TSOptionalType"===r}function c_(e,t){var r=t.type;return("CallExpression"===r||"OptionalCallExpression"===r||"NewExpression"===r||"TSInstantiationExpression"===r)&&!!t.typeParameters}function l_(e,t,r,a){return"in"===e.operator&&a}function u_(e,t){var r=t.type;return!("SequenceExpression"===r||"ParenthesizedExpression"===r||"MemberExpression"===r&&t.property===e||"OptionalMemberExpression"===r&&t.property===e||"TemplateLiteral"===r)&&("ClassDeclaration"===r||("ForOfStatement"===r?t.right===e:"ExportDefaultDeclaration"===r||!GP(t)))}function p_(e,t){var r=t.type;return"BinaryExpression"===r||"LogicalExpression"===r||"UnaryExpression"===r||"SpreadElement"===r||XP(e,t)||"AwaitExpression"===r&&zP(e)||"ConditionalExpression"===r&&e===t.test||JP(e,t)||YP(r)}function f_(e,t,r){return Boolean(r&(k_.expressionStatement|k_.exportDefault))}function g_(e,t){return XP(e,t)||BP(t)&&"**"===t.operator&&t.left===e||JP(e,t)}function m_(e,t,r){return Boolean(r&(k_.expressionStatement|k_.exportDefault))}function h_(e,t){var r=t.type;return!!("UnaryExpression"===r||"SpreadElement"===r||"BinaryExpression"===r||"LogicalExpression"===r||"ConditionalExpression"===r&&t.test===e||"AwaitExpression"===r||YP(r))||g_(e,t)}function y_(e,t){return MP(t)&&t.callee===e||qP(t)&&t.object===e}function b_(e,t,r){return!(!e_(r)||!WP(e.left))||h_(e,t)}function v_(e,t){var r=t.type;if(YP(r))return!0;if("LogicalExpression"!==r)return!1;switch(e.operator){case"||":return"??"===t.operator||"&&"===t.operator;case"&&":return"??"===t.operator;case"??":return"??"!==t.operator}}function x_(e,t,r,a,n){var s,o=t.type;if(null!=(s=e.extra)&&s.parenthesized&&"AssignmentExpression"===o&&t.left===e){var i=t.right.type;if(("FunctionExpression"===i||"ClassExpression"===i)&&null==t.right.id)return!0}return(!n||n(e)===e.name)&&("let"===e.name?!!((qP(t,{object:e,computed:!0})||HP(t,{object:e,computed:!0,optional:!1}))&&r&(k_.expressionStatement|k_.forHead|k_.forInHead))||Boolean(r&k_.forOfHead):"async"===e.name&&LP(t,{left:e,await:!1}))}var R_=ci,w_=ii,E_=De,j_=Fa,S_=et,T_=tt,A_=ct,k_={expressionStatement:1,arrowBody:2,exportDefault:4,forHead:8,forInHead:16,forOfHead:32,arrowFlowReturnType:64};function C_(e){var t=new Map;function r(e,r){var a=t.get(e);t.set(e,a?function(e,t,n,s,o){var i;return null!=(i=a(e,t,n,s,o))?i:r(e,t,n,s,o)}:r)}for(var a=0,n=Object.keys(e);a=0;a--){var n=e[r[a]];if(n===t)return!0;if(Array.isArray(n)){for(var s=n.length-1;s>=0&&null===n[s];)s--;return s>=0&&n[s]===t}if(n)return!1}return!1}C_(NP);var N_=E().mark(L_),F_=bx,B_=ii,M_=function(){function e(e,t,r){var a=this;this._tokens=void 0,this._source=void 0,this._nodesToTokenIndexes=new Map,this._nodesOccurrencesCountCache=new Map,this._tokensCache=new Map,this._tokens=t,this._source=r,F_(e,(function(e){var t=a._getTokensIndexesOfNode(e);t.length>0&&a._nodesToTokenIndexes.set(e,t)})),this._tokensCache=null}var t=e.prototype;return t.has=function(e){return this._nodesToTokenIndexes.has(e)},t.getIndexes=function(e){return this._nodesToTokenIndexes.get(e)},t.find=function(e,t){var r=this._nodesToTokenIndexes.get(e);if(r)for(var a=0;a=0;a--){var n=r[a];if(t(this._tokens[n],n))return n}return-1},t.findMatching=function(e,t,r){void 0===r&&(r=0);var a=this._nodesToTokenIndexes.get(e);if(a){var n=0,s=r;if(s>1){var o=this._nodesOccurrencesCountCache.get(e);o&&o.test===t&&o.count0&&this._nodesOccurrencesCountCache.set(e,{test:t,count:s,i:n}),i;r--}}}return null},t.matchesOriginal=function(e,t){return e.end-e.start===t.length&&(null!=e.value?e.value===t:this._source.startsWith(t,e.start))},t.startMatches=function(e,t){var r=this._nodesToTokenIndexes.get(e);if(!r)return!1;var a=this._tokens[r[0]];return a.start===e.start&&this.matchesOriginal(a,t)},t.endMatches=function(e,t){var r=this._nodesToTokenIndexes.get(e);if(!r)return!1;var a=this._tokens[r[r.length-1]];return a.end===e.end&&this.matchesOriginal(a,t)},t._getTokensIndexesOfNode=function(e){if(null==e.start||null==e.end)return[];var t=this._findTokensOfNode(e,0,this._tokens.length-1),r=t.first,a=t.last,n=r,s=L_(e);"ExportNamedDeclaration"!==e.type&&"ExportDefaultDeclaration"!==e.type||!e.declaration||"ClassDeclaration"!==e.declaration.type||s.next();for(var o,i=[],d=p(s);!(o=d()).done;){var c=o.value;if(null!=c&&null!=c.start&&null!=c.end){for(var l=this._findTokensOfNode(c,n,a),u=l.first,f=n;f>1;if(ethis._tokens[a].start))return a;t=a+1}}return t},t._findLastTokenOfNode=function(e,t,r){for(;t<=r;){var a=r+t>>1;if(ethis._tokens[a].end))return a;t=a+1}}return r},u(e)}();function L_(e){var t,r,a,n,s,o;return E().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if("TemplateLiteral"!==e.type){i.next=13;break}return i.next=3,e.quasis[0];case 3:t=1;case 4:if(!(t1}),RD(t))if(wD(t)){if(t.init===e)return}else if(t.left===e)return;this.semicolon()}function VD(e){this.print(e.id),e.definite&&this.tokenChar(33),this.print(e.id.typeAnnotation),e.init&&(this.space(),this.tokenChar(61),this.space(),this.print(e.init))}var KD=kt,YD=Ct;function JD(e,t){(KD(t)||YD(t))&&this._shouldPrintDecoratorsBeforeExport(t)||this.printJoin(e.decorators),e.declare&&(this.word("declare"),this.space()),e.abstract&&(this.word("abstract"),this.space()),this.word("class"),e.id&&(this.space(),this.print(e.id)),this.print(e.typeParameters),e.superClass&&(this.space(),this.word("extends"),this.space(),this.print(e.superClass),this.print(e.superTypeParameters)),e.implements&&(this.space(),this.word("implements"),this.space(),this.printList(e.implements)),this.space(),this.print(e.body)}function XD(e){if(this.tokenChar(123),0===e.body.length)this.tokenChar(125);else{this.newline();var t=$D(this,e);null==t||t(-1);var r=this.enterDelimited();this.printJoin(e.body,{statement:!0,indent:!0,separator:t,printTrailingSeparator:!0}),r(),this.endsWith(10)||this.newline(),this.rightBrace(e)}}function $D(e,t){if(!e.tokenMap||null==t.start||null==t.end)return null;var r=e.tokenMap.getIndexes(t);if(!r)return null;var a=1,n=0,s=0,o=function(){for(;s"),this.space(),this.tokenContext|=k_.arrowBody,this.print(e.body)}function gI(e){var t,r;if(1!==e.params.length)return!0;if(e.typeParameters||e.returnType||e.predicate)return!0;var a=e.params[0];if(!sI(a)||a.typeAnnotation||a.optional||null!=(t=a.leadingComments)&&t.length||null!=(r=a.trailingComments)&&r.length)return!0;if(this.tokenMap){if(null==e.loc)return!0;if(null!==this.tokenMap.findMatching(e,"("))return!0;var n=this.tokenMap.findMatching(e,"=>");return null==(null==n?void 0:n.loc)||n.loc.start.line!==e.loc.start.line}return!!this.format.retainLines}function mI(e,t){var r=e;if(!r&&t){var a=t.type;"VariableDeclarator"===a?r=t.id:"AssignmentExpression"===a||"AssignmentPattern"===a?r=t.left:"ObjectProperty"===a||"ClassProperty"===a?t.computed&&"StringLiteral"!==t.key.type||(r=t.key):"ClassPrivateProperty"!==a&&"ClassAccessorProperty"!==a||(r=t.key)}if(r){var n,s,o;if("Identifier"===r.type)n={pos:null==(s=r.loc)?void 0:s.start,name:(null==(o=r.loc)?void 0:o.identifierName)||r.name};else if("PrivateName"===r.type){var i;n={pos:null==(i=r.loc)?void 0:i.start,name:"#"+r.id.name}}else if("StringLiteral"===r.type){var d;n={pos:null==(d=r.loc)?void 0:d.start,name:r.value}}return n}}var hI=Tt,yI=Ma,bI=Jt,vI=It,xI=Ot,RI=us;function wI(e){"type"!==e.importKind&&"typeof"!==e.importKind||(this.word(e.importKind),this.space()),this.print(e.imported),e.local&&e.local.name!==e.imported.name&&(this.space(),this.word("as"),this.space(),this.print(e.local))}function EI(e){this.print(e.local)}function jI(e){this.print(e.exported)}function SI(e){"type"===e.exportKind&&(this.word("type"),this.space()),this.print(e.local),e.exported&&e.local.name!==e.exported.name&&(this.space(),this.word("as"),this.space(),this.print(e.exported))}function TI(e){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(e.exported)}var AI=!1;function kI(e,t){var r=this.format.importAttributesKeyword,a=e.attributes,n=e.assertions;!a||r||AI||(AI=!0,console.warn('You are using import attributes, without specifying the desired output syntax.\nPlease specify the "importAttributesKeyword" generator option, whose value can be one of:\n - "with" : `import { a } from "b" with { type: "json" };`\n - "assert" : `import { a } from "b" assert { type: "json" };`\n - "with-legacy" : `import { a } from "b" with type: "json";`\n'));var s="assert"===r||!r&&n;if(this.word(s?"assert":"with"),this.space(),s||"with"===r){var o=t?1:0;this.token("{",null,o),this.space(),this.printList(a||n,{printTrailingSeparator:this.shouldPrintTrailingComma("}")}),this.space(),this.token("}",null,o)}else this.printList(a||n)}function CI(e){var t,r;this.word("export"),this.space(),"type"===e.exportKind&&(this.word("type"),this.space()),this.tokenChar(42),this.space(),this.word("from"),this.space(),null!=(t=e.attributes)&&t.length||null!=(r=e.assertions)&&r.length?(this.print(e.source,!0),this.space(),this._printAttributes(e,!1)):this.print(e.source),this.semicolon()}function PI(e,t){hI(t.declaration)&&e._shouldPrintDecoratorsBeforeExport(t)&&e.printJoin(t.declaration.decorators)}function _I(e){if(PI(this,e),this.word("export"),this.space(),e.declaration){var t=e.declaration;this.print(t),RI(t)||this.semicolon()}else{"type"===e.exportKind&&(this.word("type"),this.space());for(var r=e.specifiers.slice(0),a=!1;;){var n=r[0];if(!yI(n)&&!bI(n))break;a=!0,this.print(r.shift()),r.length&&(this.tokenChar(44),this.space())}var s,o,i=!1;(r.length||!r.length&&!a)&&(i=!0,this.tokenChar(123),r.length&&(this.space(),this.printList(r,{printTrailingSeparator:this.shouldPrintTrailingComma("}")}),this.space()),this.tokenChar(125)),e.source&&(this.space(),this.word("from"),this.space(),null!=(s=e.attributes)&&s.length||null!=(o=e.assertions)&&o.length?(this.print(e.source,!0),this.space(),this._printAttributes(e,i)):this.print(e.source)),this.semicolon()}}function DI(e){PI(this,e),this.word("export"),this.noIndentInnerCommentsHere(),this.space(),this.word("default"),this.space(),this.tokenContext|=k_.exportDefault;var t=e.declaration;this.print(t),RI(t)||this.semicolon()}function II(e){var t,r;this.word("import"),this.space();var a="type"===e.importKind||"typeof"===e.importKind;a?(this.noIndentInnerCommentsHere(),this.word(e.importKind),this.space()):e.module?(this.noIndentInnerCommentsHere(),this.word("module"),this.space()):e.phase&&(this.noIndentInnerCommentsHere(),this.word(e.phase),this.space());for(var n=e.specifiers.slice(0),s=!!n.length;s;){var o=n[0];if(!vI(o)&&!xI(o))break;this.print(n.shift()),n.length&&(this.tokenChar(44),this.space())}var i=!1;n.length?(i=!0,this.tokenChar(123),this.space(),this.printList(n,{printTrailingSeparator:this.shouldPrintTrailingComma("}")}),this.space(),this.tokenChar(125)):a&&!s&&(i=!0,this.tokenChar(123),this.tokenChar(125)),(s||a)&&(this.space(),this.word("from"),this.space()),null!=(t=e.attributes)&&t.length||null!=(r=e.assertions)&&r.length?(this.print(e.source,!0),this.space(),this._printAttributes(e,i)):this.print(e.source),this.semicolon()}function OI(e){this.print(e.key),this.tokenChar(58),this.space(),this.print(e.value)}function NI(e){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(e.local)}function FI(e){this.word("import"),e.phase&&(this.tokenChar(46),this.word(e.phase)),this.tokenChar(40),this.print(e.source),null!=e.options&&(this.tokenChar(44),this.space(),this.print(e.options)),this.tokenChar(41)}var BI={},MI=BI.hasOwnProperty,LI=function(e,t){for(var r in e)MI.call(e,r)&&t(r,e[r])},UI=function(e,t){return t?(LI(t,(function(t,r){e[t]=r})),e):e},qI=function(e,t){for(var r=e.length,a=-1;++a2?WI(p):"\\x"+("00"+p).slice(-2)})),"`"==o&&(s=s.replace(/\$\{/g,"\\${")),t.isScriptContext&&(s=s.replace(/<\/(script|style)/gi,"<\\/$1").replace(//,"$2")||""))return;if(r){if(os(e,a,"pre",r))return;return t.value=(t.value||"").replace(/^(\n|\s)+/,""),t}return t.value=(t.value||"").replace(/^(\n|\s)+/,""),t}}},is=e=>{let{value:t=""}=e;const r=function(){return((arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").match(/([^?=&]+)(=([^&]*))/g)||[]).reduce(((e,t)=>(e[t.slice(0,t.indexOf("="))]=t.slice(t.indexOf("=")+1),e)),{})}(t.replace(/^/,"$1").replace(/^rehype:/,""));return Object.keys(r).forEach((e=>{"true"===r[e]&&(r[e]=!0),"false"===r[e]&&(r[e]=!1),"string"!==typeof r[e]||/^0/.test(r[e])||isNaN(+r[e])||(r[e]=+r[e])})),r},ds=(e,t,r)=>"string"===r?(0,jn.A)((0,jn.A)({},e),{},{"data-config":JSON.stringify((0,jn.A)((0,jn.A)({},t),{},{rehyp:!0}))}):"attr"===r?(0,jn.A)((0,jn.A)({},e),t):(0,jn.A)((0,jn.A)({},e),{},{"data-config":(0,jn.A)((0,jn.A)({},t),{},{rehyp:!0})}),us=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{properties:t="data",codeBlockParames:r=!0}=e;return e=>{pa(e,"element",((e,a,n)=>{if(r&&"pre"===e.tagName&&e&&Array.isArray(e.children)&&n&&Array.isArray(n.children)&&n.children.length>1){const r=e.children[0];if(r&&"code"===r.tagName&&"number"===typeof a){const s=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;for(;t>-1;){if(t--,!e[t])return;if(e[t]&&e[t].value&&""!==e[t].value.replace(/(\n|\s)/g,"")||"text"!==e[t].type){if(!/^rehype:/.test(e[t].value)||"comment"!==e[t].type)return;return e[t]}}}(n.children,a);if(s){const a=is(s);Object.keys(a).length>0&&(e.properties=(0,jn.A)((0,jn.A)({},e.properties),{"data-type":"rehyp"}),r.properties=ds(r.properties,a,t))}}}if(/^(em|strong|b|a|i|p|pre|kbd|blockquote|h(1|2|3|4|5|6)|code|table|img|del|ul|ol)$/.test(e.tagName)&&n&&Array.isArray(n.children)&&"number"===typeof a){const s=os(n.children,a,"",r);if(s){const r=is(s);Object.keys(r).length>0&&(e.properties=ds(e.properties,r,t))}}}))}},cs="object"===typeof self?self:globalThis,ls=e=>((e,t)=>{const r=(t,r)=>(e.set(r,t),t),a=n=>{if(e.has(n))return e.get(n);const[s,o]=t[n];switch(s){case 0:case-1:return r(o,n);case 1:{const e=r([],n);for(const t of o)e.push(a(t));return e}case 2:{const e=r({},n);for(const[t,r]of o)e[a(t)]=a(r);return e}case 3:return r(new Date(o),n);case 4:{const{source:e,flags:t}=o;return r(new RegExp(e,t),n)}case 5:{const e=r(new Map,n);for(const[t,r]of o)e.set(a(t),a(r));return e}case 6:{const e=r(new Set,n);for(const t of o)e.add(a(t));return e}case 7:{const{name:e,message:t}=o;return r(new cs[e](t),n)}case 8:return r(BigInt(o),n);case"BigInt":return r(Object(BigInt(o)),n)}return r(new cs[s](o),n)};return a})(new Map,e)(0),ps="",{toString:fs}={},{keys:gs}=Object,ms=e=>{const t=typeof e;if("object"!==t||!e)return[0,t];const r=fs.call(e).slice(8,-1);switch(r){case"Array":return[1,ps];case"Object":return[2,ps];case"Date":return[3,ps];case"RegExp":return[4,ps];case"Map":return[5,ps];case"Set":return[6,ps]}return r.includes("Array")?[1,r]:r.includes("Error")?[7,r]:[2,r]},hs=e=>{let[t,r]=e;return 0===t&&("function"===r||"symbol"===r)},ys=function(e){let{json:t,lossy:r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const a=[];return((e,t,r,a)=>{const n=(e,t)=>{const n=a.push(e)-1;return r.set(t,n),n},s=a=>{if(r.has(a))return r.get(a);let[o,i]=ms(a);switch(o){case 0:{let t=a;switch(i){case"bigint":o=8,t=a.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+i);t=null;break;case"undefined":return n([-1],a)}return n([o,t],a)}case 1:{if(i)return n([i,[...a]],a);const e=[],t=n([o,e],a);for(const r of a)e.push(s(r));return t}case 2:{if(i)switch(i){case"BigInt":return n([i,a.toString()],a);case"Boolean":case"Number":case"String":return n([i,a.valueOf()],a)}if(t&&"toJSON"in a)return s(a.toJSON());const r=[],d=n([o,r],a);for(const t of gs(a))!e&&hs(ms(a[t]))||r.push([s(t),s(a[t])]);return d}case 3:return n([o,a.toISOString()],a);case 4:{const{source:e,flags:t}=a;return n([o,{source:e,flags:t}],a)}case 5:{const t=[],r=n([o,t],a);for(const[n,o]of a)(e||!hs(ms(n))&&!hs(ms(o)))&&t.push([s(n),s(o)]);return r}case 6:{const t=[],r=n([o,t],a);for(const n of a)!e&&hs(ms(n))||t.push(s(n));return r}}const{message:d}=a;return n([o,{name:i,message:d}],a)};return s})(!(t||r),!!t,new Map,a)(e),a},bs="function"===typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?ls(ys(e,t)):structuredClone(e):(e,t)=>ls(ys(e,t)),vs=/[#.]/g;var xs=r(1141);const Rs={}.hasOwnProperty;function Es(e,t,r){const a=r&&function(e){const t={};let r=-1;for(;++r2?i-2:0),u=2;u1?r[e.line-2]:0)+e.column-1;if(a-1&&e<=t.length){let a=0;for(;;){let n=r[a];if(void 0===n){const e=Ss(t,r[a-1]);n=-1===e?t.length+1:e+1,r[a]=n}if(n>e)return{line:a+1,column:e-(a>0?r[a-1]:0)+1,offset:e};a++}}}}}(t),n=a.toPoint(0),s=a.toPoint(t.length);r.position={start:n,end:s}}return r}case"#documentType":return r={type:"doctype"},Is(e,t,r),r;case"#text":{const a=t;return r={type:"text",value:a.value},Is(e,a,r),r}default:return r=function(e,t){const r=e.schema;e.schema=t.namespaceURI===Ts.svg?Ca.JW:Ca.qy;let a=-1;const n={};for(;++a0&&"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 Ys=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,Js=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),Xs={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function $s(e,t){const r=function(e){const t="root"===e.type?e.children[0]:e;return Boolean(t&&("doctype"===t.type||"element"===t.type&&"html"===t.tagName.toLowerCase()))}(e),a=Un("type",{handlers:{root:Zs,element:eo,text:to,comment:no,doctype:ro,raw:so},unknown:oo}),n={parser:r?new zs.iX(Xs):zs.iX.getFragmentParser(void 0,Xs),handle(e){a(e,n)},stitches:!1,options:t||{}};a(e,n),io(n,Vs());const s=function(e,t){const r=t||{};return Fs({file:r.file||void 0,location:!1,schema:"svg"===r.space?Ca.JW:Ca.qy,verbose:r.verbose||!1},e)}(r?n.parser.document:n.parser.getFragment(),{file:n.options.file});return n.stitches&&pa(s,"comment",(function(e,t,r){const a=e;if(a.value.stitch&&r&&void 0!==t){return r.children[t]=a.value.stitch,t}})),"root"===s.type&&1===s.children.length&&s.children[0].type===e.type?s.children[0]:s}function Qs(e,t){let r=-1;if(e)for(;++r4&&(t.parser.tokenizer.state=0);const r={type:zs.ou.k.CHARACTER,chars:e.value,location:co(e)};io(t,Vs(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function ro(e,t){const r={type:zs.ou.k.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:co(e)};io(t,Vs(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function ao(e,t){t.stitches=!0;const r=function(e){return bs("children"in e?(0,jn.A)((0,jn.A)({},e),{},{children:[]}):e)}(e);if("children"in e&&"children"in r){const a=$s({type:"root",children:e.children},t.options);r.children=a.children}no({type:"comment",value:{stitch:r}},t)}function no(e,t){const r=e.value,a={type:zs.ou.k.COMMENT,data:r,location:co(e)};io(t,Vs(e)),t.parser.currentToken=a,t.parser._processToken(t.parser.currentToken)}function so(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,uo(t,Vs(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(Ys,"<$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),72===t.parser.tokenizer.state||78===t.parser.tokenizer.state){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const e=t.parser.tokenizer._consume();t.parser.tokenizer._callState(e)}}function oo(e,t){const r=e;if(!t.options.passThrough||!t.options.passThrough.includes(r.type)){let e="";throw Js.has(r.type)&&(e=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+r.type+"` node"+e)}ao(r,t)}function io(e,t){uo(e,t);const r=e.parser.tokenizer.currentCharacterToken;r&&r.location&&(r.location.endLine=e.parser.tokenizer.preprocessor.line,r.location.endCol=e.parser.tokenizer.preprocessor.col+1,r.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=r,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=zs.V_.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function uo(e,t){if(t&&void 0!==t.offset){const r={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=1-t.column,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=r}}function co(e){const t=Vs(e)||{line:void 0,column:void 0,offset:void 0},r=Gs(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:r.line,endCol:r.column,endOffset:r.offset}}function lo(e){return function(t,r){return $s(t,(0,jn.A)((0,jn.A)({},e),{},{file:r}))}}const po=/^(?:[\$A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDDC0-\uDDF3\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDD4A-\uDD65\uDD6F-\uDD85\uDE80-\uDEA9\uDEB0\uDEB1\uDEC2-\uDEC4\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE3F\uDE40\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61\uDF80-\uDF89\uDF8B\uDF8E\uDF90-\uDFB5\uDFB7\uDFD1\uDFD3]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8\uDFC0-\uDFE0]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDF02\uDF04-\uDF10\uDF12-\uDF33\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD80E\uD80F\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD887][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC41-\uDC46\uDC60-\uDFFF]|\uD810[\uDC00-\uDFFA]|\uD811[\uDC00-\uDE46]|\uD818[\uDD00-\uDD1D]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDD40-\uDD6C\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDCFF-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]|\uD838[\uDC30-\uDC6D\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDCD0-\uDCEB\uDDD0-\uDDED\uDDF0\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF39\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD888[\uDC00-\uDFAF])(?:[\$0-9A-Z_a-z\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05EF-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u07FD\u0800-\u082D\u0840-\u085B\u0860-\u086A\u0870-\u0887\u0889-\u088E\u0897-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u09FE\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3C-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C5D\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDD\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1-\u0CF3\u0D00-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D81-\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECE\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1715\u171F-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u1820-\u1878\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B4C\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CD0-\u1CD2\u1CD4-\u1CFA\u1D00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA827\uA82C\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF65-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDDC0-\uDDF3\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD27\uDD30-\uDD39\uDD40-\uDD65\uDD69-\uDD6D\uDD6F-\uDD85\uDE80-\uDEA9\uDEAB\uDEAC\uDEB0\uDEB1\uDEC2-\uDEC4\uDEFC-\uDF1C\uDF27\uDF30-\uDF50\uDF70-\uDF85\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC00-\uDC46\uDC66-\uDC75\uDC7F-\uDCBA\uDCC2\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD44-\uDD47\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDC9-\uDDCC\uDDCE-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E-\uDE41\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3B-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74\uDF80-\uDF89\uDF8B\uDF8E\uDF90-\uDFB5\uDFB7-\uDFC0\uDFC2\uDFC5\uDFC7-\uDFCA\uDFCC-\uDFD3\uDFE1\uDFE2]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC5E-\uDC61\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB8\uDEC0-\uDEC9\uDED0-\uDEE3\uDF00-\uDF1A\uDF1D-\uDF2B\uDF30-\uDF39\uDF40-\uDF46]|\uD806[\uDC00-\uDC3A\uDCA0-\uDCE9\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD35\uDD37\uDD38\uDD3B-\uDD43\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD7\uDDDA-\uDDE1\uDDE3\uDDE4\uDE00-\uDE3E\uDE47\uDE50-\uDE99\uDE9D\uDEB0-\uDEF8\uDFC0-\uDFE0\uDFF0-\uDFF9]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD8E\uDD90\uDD91\uDD93-\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF6\uDF00-\uDF10\uDF12-\uDF3A\uDF3E-\uDF42\uDF50-\uDF5A\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD80E\uD80F\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD887][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC40-\uDC55\uDC60-\uDFFF]|\uD810[\uDC00-\uDFFA]|\uD811[\uDC00-\uDE46]|\uD818[\uDD00-\uDD39]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDE70-\uDEBE\uDEC0-\uDEC9\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDD40-\uDD6C\uDD70-\uDD79\uDE40-\uDE7F\uDF00-\uDF4A\uDF4F-\uDF87\uDF8F-\uDF9F\uDFE0\uDFE1\uDFE3\uDFE4\uDFF0\uDFF1]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDCFF-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD833[\uDCF0-\uDCF9\uDF00-\uDF2D\uDF30-\uDF46]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDC30-\uDC6D\uDC8F\uDD00-\uDD2C\uDD30-\uDD3D\uDD40-\uDD49\uDD4E\uDE90-\uDEAE\uDEC0-\uDEF9]|\uD839[\uDCD0-\uDCF9\uDDD0-\uDDFA\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4B\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF39\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD888[\uDC00-\uDFAF]|\uDB40[\uDD00-\uDDEF])*$/,fo=/^(?:[\$A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDDC0-\uDDF3\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDD4A-\uDD65\uDD6F-\uDD85\uDE80-\uDEA9\uDEB0\uDEB1\uDEC2-\uDEC4\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE3F\uDE40\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61\uDF80-\uDF89\uDF8B\uDF8E\uDF90-\uDFB5\uDFB7\uDFD1\uDFD3]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8\uDFC0-\uDFE0]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDF02\uDF04-\uDF10\uDF12-\uDF33\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD80E\uD80F\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD887][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC41-\uDC46\uDC60-\uDFFF]|\uD810[\uDC00-\uDFFA]|\uD811[\uDC00-\uDE46]|\uD818[\uDD00-\uDD1D]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDD40-\uDD6C\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDCFF-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]|\uD838[\uDC30-\uDC6D\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDCD0-\uDCEB\uDDD0-\uDDED\uDDF0\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF39\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD888[\uDC00-\uDFAF])(?:[\$\x2D0-9A-Z_a-z\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05EF-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u07FD\u0800-\u082D\u0840-\u085B\u0860-\u086A\u0870-\u0887\u0889-\u088E\u0897-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u09FE\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3C-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C5D\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDD\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1-\u0CF3\u0D00-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D81-\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECE\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1715\u171F-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u1820-\u1878\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B4C\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CD0-\u1CD2\u1CD4-\u1CFA\u1D00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA827\uA82C\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF65-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDDC0-\uDDF3\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD27\uDD30-\uDD39\uDD40-\uDD65\uDD69-\uDD6D\uDD6F-\uDD85\uDE80-\uDEA9\uDEAB\uDEAC\uDEB0\uDEB1\uDEC2-\uDEC4\uDEFC-\uDF1C\uDF27\uDF30-\uDF50\uDF70-\uDF85\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC00-\uDC46\uDC66-\uDC75\uDC7F-\uDCBA\uDCC2\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD44-\uDD47\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDC9-\uDDCC\uDDCE-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E-\uDE41\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3B-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74\uDF80-\uDF89\uDF8B\uDF8E\uDF90-\uDFB5\uDFB7-\uDFC0\uDFC2\uDFC5\uDFC7-\uDFCA\uDFCC-\uDFD3\uDFE1\uDFE2]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC5E-\uDC61\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB8\uDEC0-\uDEC9\uDED0-\uDEE3\uDF00-\uDF1A\uDF1D-\uDF2B\uDF30-\uDF39\uDF40-\uDF46]|\uD806[\uDC00-\uDC3A\uDCA0-\uDCE9\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD35\uDD37\uDD38\uDD3B-\uDD43\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD7\uDDDA-\uDDE1\uDDE3\uDDE4\uDE00-\uDE3E\uDE47\uDE50-\uDE99\uDE9D\uDEB0-\uDEF8\uDFC0-\uDFE0\uDFF0-\uDFF9]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD8E\uDD90\uDD91\uDD93-\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF6\uDF00-\uDF10\uDF12-\uDF3A\uDF3E-\uDF42\uDF50-\uDF5A\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD80E\uD80F\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD887][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC40-\uDC55\uDC60-\uDFFF]|\uD810[\uDC00-\uDFFA]|\uD811[\uDC00-\uDE46]|\uD818[\uDD00-\uDD39]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDE70-\uDEBE\uDEC0-\uDEC9\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDD40-\uDD6C\uDD70-\uDD79\uDE40-\uDE7F\uDF00-\uDF4A\uDF4F-\uDF87\uDF8F-\uDF9F\uDFE0\uDFE1\uDFE3\uDFE4\uDFF0\uDFF1]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDCFF-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD833[\uDCF0-\uDCF9\uDF00-\uDF2D\uDF30-\uDF46]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDC30-\uDC6D\uDC8F\uDD00-\uDD2C\uDD30-\uDD3D\uDD40-\uDD49\uDD4E\uDE90-\uDEAE\uDEC0-\uDEF9]|\uD839[\uDCD0-\uDCF9\uDDD0-\uDDFA\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4B\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF39\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD888[\uDC00-\uDFAF]|\uDB40[\uDD00-\uDDEF])*$/,go={};function mo(e,t){return((t||go).jsx?fo:po).test(e)}const ho={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var yo=r(1581);const bo=yo.default||yo;function vo(e){return e&&"object"===typeof e?"position"in e||"type"in e?Ro(e.position):"start"in e||"end"in e?Ro(e):"line"in e||"column"in e?xo(e):"":""}function xo(e){return Eo(e&&e.line)+":"+Eo(e&&e.column)}function Ro(e){return xo(e&&e.start)+"-"+xo(e&&e.end)}function Eo(e){return e&&"number"===typeof e?e:1}class Do extends Error{constructor(e,t,r){super(),"string"===typeof t&&(r=t,t=void 0);let a="",n={},s=!1;if(t&&(n="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:(0,jn.A)({},t)),"string"===typeof e?a=e:!n.cause&&e&&(s=!0,a=e.message,n.cause=e),!n.ruleId&&!n.source&&"string"===typeof r){const e=r.indexOf(":");-1===e?n.ruleId=r:(n.source=r.slice(0,e),n.ruleId=r.slice(e+1))}if(!n.place&&n.ancestors&&n.ancestors){const e=n.ancestors[n.ancestors.length-1];e&&(n.place=e.position)}const o=n.place&&"start"in n.place?n.place.start:n.place;this.ancestors=n.ancestors||void 0,this.cause=n.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file,this.message=a,this.line=o?o.line:void 0,this.name=vo(n.place)||"1:1",this.place=n.place||void 0,this.reason=this.message,this.ruleId=n.ruleId||void 0,this.source=n.source||void 0,this.stack=s&&n.cause&&"string"===typeof n.cause.stack?n.cause.stack:"",this.actual,this.expected,this.note,this.url}}Do.prototype.file="",Do.prototype.name="",Do.prototype.reason="",Do.prototype.message="",Do.prototype.stack="",Do.prototype.column=void 0,Do.prototype.line=void 0,Do.prototype.ancestors=void 0,Do.prototype.cause=void 0,Do.prototype.fatal=void 0,Do.prototype.place=void 0,Do.prototype.ruleId=void 0,Do.prototype.source=void 0;const wo={}.hasOwnProperty,jo=new Map,Ao=/[A-Z]/g,Co=/-([a-z])/g,So=new Set(["table","tbody","thead","tfoot","tr"]),To=new Set(["td","th"]),ko="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Po(e,t){if(!t||void 0===t.Fragment)throw new TypeError("Expected `Fragment` in options");const r=t.filePath||void 0;let a;if(t.development){if("function"!==typeof t.jsxDEV)throw new TypeError("Expected `jsxDEV` in options when `development: true`");a=function(e,t){return r;function r(r,a,n,s){const o=Array.isArray(n.children),i=Vs(r);return t(a,n,s,o,{columnNumber:i?i.column-1:void 0,fileName:e,lineNumber:i?i.line:void 0},void 0)}}(r,t.jsxDEV)}else{if("function"!==typeof t.jsx)throw new TypeError("Expected `jsx` in production options");if("function"!==typeof t.jsxs)throw new TypeError("Expected `jsxs` in production options");a=function(e,t,r){return a;function a(e,a,n,s){const o=Array.isArray(n.children)?r:t;return s?o(a,n,s):o(a,n)}}(0,t.jsx,t.jsxs)}const n={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:a,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?Ca.JW:Ca.qy,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},s=Fo(n,e,void 0);return s&&"string"!==typeof s?s:n.create(e,n.Fragment,{children:s||void 0},void 0)}function Fo(e,t,r){return"element"===t.type?function(e,t,r){const a=e.schema;let n=a;"svg"===t.tagName.toLowerCase()&&"html"===a.space&&(n=Ca.JW,e.schema=n);e.ancestors.push(t);const s=No(e,t.tagName,!1),o=function(e,t){const r={};let a,n;for(n in t.properties)if("children"!==n&&wo.call(t.properties,n)){const s=Oo(e,n,t.properties[n]);if(s){const[n,o]=s;e.tableCellAlignToStyle&&"align"===n&&"string"===typeof o&&To.has(t.tagName)?a=o:r[n]=o}}if(a){(r.style||(r.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=a}return r}(e,t);let i=Bo(e,t);So.has(t.tagName)&&(i=i.filter((function(e){return"string"!==typeof e||!Fn(e)})));return _o(e,o,s,t),Io(o,i),e.ancestors.pop(),e.schema=a,e.create(t,s,o,r)}(e,t,r):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Mo(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,r){const a=e.schema;let n=a;"svg"===t.name&&"html"===a.space&&(n=Ca.JW,e.schema=n);e.ancestors.push(t);const s=null===t.name?e.Fragment:No(e,t.name,!0),o=function(e,t){const r={};for(const a of t.attributes)if("mdxJsxExpressionAttribute"===a.type)if(a.data&&a.data.estree&&e.evaluater){const t=a.data.estree.body[0];t.type;const n=t.expression;n.type;const s=n.properties[0];s.type,Object.assign(r,e.evaluater.evaluateExpression(s.argument))}else Mo(e,t.position);else{const n=a.name;let s;if(a.value&&"object"===typeof a.value)if(a.value.data&&a.value.data.estree&&e.evaluater){const t=a.value.data.estree.body[0];t.type,s=e.evaluater.evaluateExpression(t.expression)}else Mo(e,t.position);else s=null===a.value||a.value;r[n]=s}return r}(e,t),i=Bo(e,t);return _o(e,o,s,t),Io(o,i),e.ancestors.pop(),e.schema=a,e.create(t,s,o,r)}(e,t,r):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Mo(e,t.position)}(e,t):"root"===t.type?function(e,t,r){const a={};return Io(a,Bo(e,t)),e.create(t,e.Fragment,a,r)}(e,t,r):"text"===t.type?function(e,t){return t.value}(0,t):void 0}function _o(e,t,r,a){"string"!==typeof r&&r!==e.Fragment&&e.passNode&&(t.node=a)}function Io(e,t){if(t.length>0){const r=t.length>1?t:t[0];r&&(e.children=r)}}function Bo(e,t){const r=[];let a=-1;const n=e.passKeys?new Map:jo;for(;++a13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||65535===(65535&r)||65534===(65535&r)||r>1114111?"\ufffd":String.fromCodePoint(r)}var $o=r(7018);const Qo=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Zo(e,t,r){if(t)return t;if(35===r.charCodeAt(0)){const e=r.charCodeAt(1),t=120===e||88===e;return Xo(r.slice(t?2:1),t?16:10)}return(0,$o.s)(r)||e}var ei=r(4618);const ti={}.hasOwnProperty;function ri(e,t,r){return"string"!==typeof t&&(r=t,t=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(te),autolinkProtocol:j,autolinkEmail:j,atxHeading:s($),blockQuote:s(V),characterEscape:j,characterReference:j,codeFenced:s(K),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:s(K,o),codeText:s(Y,o),codeTextData:j,data:j,codeFlowValue:j,definition:s(J),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:s(X),hardBreakEscape:s(Q),hardBreakTrailing:s(Q),htmlFlow:s(Z,o),htmlFlowData:j,htmlText:s(Z,o),htmlTextData:j,image:s(ee),label:o,link:s(te),listItem:s(ae),listItemValue:p,listOrdered:s(re,l),listUnordered:s(re),paragraph:s(ne),reference:L,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:s($),strong:s(se),thematicBreak:s(ie)},exit:{atxHeading:d(),atxHeadingSequence:R,autolink:d(),autolinkEmail:G,autolinkProtocol:z,blockQuote:d(),characterEscapeValue:A,characterReferenceMarkerHexadecimal:q,characterReferenceMarkerNumeric:q,characterReferenceValue:W,characterReference:H,codeFenced:d(h),codeFencedFence:m,codeFencedFenceInfo:f,codeFencedFenceMeta:g,codeFlowValue:A,codeIndented:d(y),codeText:d(P),codeTextData:A,data:A,definition:d(),definitionDestinationString:x,definitionLabelString:b,definitionTitleString:v,emphasis:d(),hardBreakEscape:d(S),hardBreakTrailing:d(S),htmlFlow:d(T),htmlFlowData:A,htmlText:d(k),htmlTextData:A,image:d(_),label:B,labelText:I,lineEnding:C,link:d(F),listItem:d(),listOrdered:d(),listUnordered:d(),paragraph:d(),referenceString:U,resourceDestinationString:O,resourceTitleString:N,resource:M,setextHeading:d(w),setextHeadingLineSequence:D,setextHeadingText:E,strong:d(),thematicBreak:d()}};ni(t,(e||{}).mdastExtensions||[]);const r={};return a;function a(e){let a={type:"root",children:[]};const s={stack:[a],tokenStack:[],config:t,enter:i,exit:u,buffer:o,resume:c,data:r},d=[];let l=-1;for(;++l0){const e=s.tokenStack[s.tokenStack.length-1];(e[1]||oi).call(s,void 0,e[0])}for(a.position={start:ai(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:ai(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},l=-1;++l55295&&s<57344){const t=e.charCodeAt(r+1);s<56320&&t>56319&&t<57344?(o=String.fromCharCode(s,t),n=1):o="\ufffd"}else o=String.fromCharCode(s);o&&(t.push(e.slice(a,r),encodeURIComponent(o)),a=r+n+1,o=""),n&&(r+=n,n=0)}return t.join("")+e.slice(a)}function ci(e,t){const r=[{type:"text",value:"\u21a9"}];return t>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),r}function li(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function pi(e,t){const r=t.referenceType;let a="]";if("collapsed"===r?a+="[]":"full"===r&&(a+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+a}];const n=e.all(t),s=n[0];s&&"text"===s.type?s.value="["+s.value:n.unshift({type:"text",value:"["});const o=n[n.length-1];return o&&"text"===o.type?o.value+=a:n.push({type:"text",value:a}),n}function fi(e){const t=e.spread;return null===t||void 0===t?e.children.length>1:t}function gi(e){const t=String(e),r=/\r?\n|\r/g;let a=r.exec(t),n=0;const s=[];for(;a;)s.push(mi(t.slice(n,a.index),n>0,!0),a[0]),n=a.index+a[0].length,a=r.exec(t);return s.push(mi(t.slice(n),n>0,!1)),s.join("")}function mi(e,t,r){let a=0,n=e.length;if(t){let t=e.codePointAt(a);for(;9===t||32===t;)a++,t=e.codePointAt(a)}if(r){let t=e.codePointAt(n-1);for(;9===t||32===t;)n--,t=e.codePointAt(n-1)}return n>a?e.slice(a,n):""}const hi={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":"",a={};t.lang&&(a.className=["language-"+t.lang]);let n={type:"element",tagName:"code",properties:a,children:[{type:"text",value:r}]};return t.meta&&(n.data={meta:t.meta}),e.patch(t,n),n=e.applyData(t,n),n={type:"element",tagName:"pre",properties:{},children:[n]},e.patch(t,n),n},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-",a=String(t.identifier).toUpperCase(),n=ui(a.toLowerCase()),s=e.footnoteOrder.indexOf(a);let o,i=e.footnoteCounts.get(a);void 0===i?(i=0,e.footnoteOrder.push(a),o=e.footnoteOrder.length):o=s+1,i+=1,e.footnoteCounts.set(a,i);const d={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+n,id:r+"fnref-"+n+(i>1?"-"+i:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,d);const u={type:"element",tagName:"sup",properties:{},children:[d]};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(),a=e.definitionById.get(r);if(!a)return pi(e,t);const n={src:ui(a.url||""),alt:t.alt};null!==a.title&&void 0!==a.title&&(n.title=a.title);const s={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,s),e.applyData(t,s)},image:function(e,t){const r={src:ui(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 a={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,a),e.applyData(t,a)},inlineCode:function(e,t){const r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);const a={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,a),e.applyData(t,a)},linkReference:function(e,t){const r=String(t.identifier).toUpperCase(),a=e.definitionById.get(r);if(!a)return pi(e,t);const n={href:ui(a.url||"")};null!==a.title&&void 0!==a.title&&(n.title=a.title);const s={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,s),e.applyData(t,s)},link:function(e,t){const r={href:ui(t.url)};null!==t.title&&void 0!==t.title&&(r.title=t.title);const a={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)},listItem:function(e,t,r){const a=e.all(t),n=r?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;const r=e.children;let a=-1;for(;!t&&++a0&&r.children.unshift({type:"text",value:" "}),r.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),s.className=["task-list-item"]}let i=-1;for(;++i0){const a={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},s=Vs(t.children[1]),o=Gs(t.children[t.children.length-1]);s&&o&&(a.position={start:s,end:o}),n.push(a)}const s={type:"element",tagName:"table",properties:{},children:e.wrap(n,!0)};return e.patch(t,s),e.applyData(t,s)},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 a=r?r.children:void 0,n=0===(a?a.indexOf(t):1)?"th":"td",s=r&&"table"===r.type?r.align:void 0,o=s?s.length:t.children.length;let i=-1;const d=[];for(;++i0&&r.push({type:"text",value:"\n"}),r}function Ai(e){let t=0,r=e.charCodeAt(t);for(;9===r||32===r;)t++,r=e.charCodeAt(t);return e.slice(t)}function Ci(e,t){const r=Ri(e,t),a=r.one(e,void 0),n=function(e){const t="string"===typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||ci,a=e.options.footnoteBackLabel||li,n=e.options.footnoteLabel||"Footnotes",s=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},i=[];let d=-1;for(;++d0&&l.push({type:"text",value:" "});let e="string"===typeof r?r:r(d,c);"string"===typeof e&&(e={type:"text",value:e}),l.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+u+(c>1?"-"+c:""),dataFootnoteBackref:"",ariaLabel:"string"===typeof a?a:a(d,c),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}const f=s[s.length-1];if(f&&"element"===f.type&&"p"===f.tagName){const e=f.children[f.children.length-1];e&&"text"===e.type?e.value+=" ":f.children.push({type:"text",value:" "}),f.children.push(...l)}else s.push(...l);const g={type:"element",tagName:"li",properties:{id:t+"fn-"+u},children:e.wrap(s,!0)};e.patch(n,g),i.push(g)}if(0!==i.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:(0,jn.A)((0,jn.A)({},bs(o)),{},{id:"footnote-label"}),children:[{type:"text",value:n}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(i,!0)},{type:"text",value:"\n"}]}}(r),s=Array.isArray(a)?{type:"root",children:a}:a||{type:"root",children:[]};return n&&s.children.push({type:"text",value:"\n"},n),s}function Si(e,t){return e&&"run"in e?async function(r,a){const n=Ci(r,(0,jn.A)({file:a},t));await e.run(n,a)}:function(r,a){return Ci(r,(0,jn.A)({file:a},e||t))}}function Ti(e){if(e)throw e}var ki=r(1761);function Pi(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 Fi(){const e=[],t={run:function(){for(var t=arguments.length,r=new Array(t),a=0;a1?d-1:0),c=1;cn.length;let u;d&&n.push(s);try{u=e.apply(this,n)}catch(a){if(d&&r)throw a;return s(a)}d||(u&&u.then&&"function"===typeof u.then?u.then(o,s):u instanceof Error?s(u):o(u))}function s(e){if(!r){r=!0;for(var a=arguments.length,n=new Array(a>1?a-1:0),s=1;se.length){for(;s--;)if(47===e.codePointAt(s)){if(r){a=s+1;break}}else n<0&&(r=!0,n=s+1);return n<0?"":e.slice(a,n)}if(t===e)return"";let o=-1,i=t.length-1;for(;s--;)if(47===e.codePointAt(s)){if(r){a=s+1;break}}else o<0&&(r=!0,o=s+1),i>-1&&(e.codePointAt(s)===t.codePointAt(i--)?i<0&&(n=s):(i=-1,n=o));a===n?n=o:n<0&&(n=e.length);return e.slice(a,n)},dirname:function(e){if(Ii(e),0===e.length)return".";let t,r=-1,a=e.length;for(;--a;)if(47===e.codePointAt(a)){if(t){r=a;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){Ii(e);let t,r=e.length,a=-1,n=0,s=-1,o=0;for(;r--;){const i=e.codePointAt(r);if(47!==i)a<0&&(t=!0,a=r+1),46===i?s<0?s=r:1!==o&&(o=1):s>-1&&(o=-1);else if(t){n=r+1;break}}if(s<0||a<0||0===o||1===o&&s===a-1&&s===n+1)return"";return e.slice(s,a)},join:function(){let e,t=-1;for(var r=arguments.length,a=new Array(r),n=0;n2){if(a=n.lastIndexOf("/"),a!==n.length-1){a<0?(n="",s=0):(n=n.slice(0,a),s=n.length-1-n.lastIndexOf("/")),o=d,i=0;continue}}else if(n.length>0){n="",s=0,o=d,i=0;continue}t&&(n=n.length>0?n+"/..":"..",s=2)}else n.length>0?n+="/"+e.slice(o+1,d):n=e.slice(o+1,d),s=d-o-1;o=d,i=0}else 46===r&&i>-1?i++:i=-1}return n}(e,!t);0!==r.length||t||(r=".");r.length>0&&47===e.codePointAt(e.length-1)&&(r+="/");return t?"/"+r:r}(e)},sep:"/"};function Ii(e){if("string"!==typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Bi={cwd:function(){return"/"}};function Oi(e){return Boolean(null!==e&&"object"===typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}function Ni(e){if("string"===typeof e)e=new URL(e);else if(!Oi(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(;++r1?a-1:0),s=1;s0){let[a,...s]=r;const o=t[n][1];Pi(o)&&Pi(a)&&(a=ki(!0,o,a)),t[n]=[e,a,...s]}}}}const Vi=(new Gi).freeze();function Ki(e,t){if("function"!==typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function Yi(e,t){if("function"!==typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function Ji(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 Xi(e){if(!Pi(e)||"string"!==typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function $i(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Qi(e){return function(e){return Boolean(e&&"object"===typeof e&&"message"in e&&"messages"in e)}(e)?e:new Li(e)}const Zi=[],ed={allowDangerousHtml:!0},td=/^(https?|ircs?|mailto|xmpp)$/i,rd=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function ad(e){const t=e.allowedElements,r=e.allowElement,a=e.children||"",n=e.className,s=e.components,o=e.disallowedElements,i=e.rehypePlugins||Zi,d=e.remarkPlugins||Zi,u=e.remarkRehypeOptions?(0,jn.A)((0,jn.A)({},e.remarkRehypeOptions),ed):ed,c=e.skipHtml,l=e.unwrapDisallowed,p=e.urlTransform||nd,f=Vi().use(ii).use(d).use(Si,u).use(i),g=new Li;"string"===typeof a&&(g.value=a);for(const y of rd)Object.hasOwn(e,y.from)&&(y.from,y.to&&y.to,y.id);const m=f.parse(g);let h=f.runSync(m,g);return n&&(h={type:"element",tagName:"div",properties:{className:n},children:"root"===h.type?h.children:[h]}),pa(h,(function(e,a,n){if("raw"===e.type&&n&&"number"===typeof a)return c?n.children.splice(a,1):n.children[a]={type:"text",value:e.value},a;if("element"===e.type){let t;for(t in Wo)if(Object.hasOwn(Wo,t)&&Object.hasOwn(e.properties,t)){const r=e.properties[t],a=Wo[t];(null===a||a.includes(e.tagName))&&(e.properties[t]=p(String(r||""),t,e))}}if("element"===e.type){let s=t?!t.includes(e.tagName):!!o&&o.includes(e.tagName);if(!s&&r&&"number"===typeof a&&(s=!r(e,a,n)),s&&n&&"number"===typeof a)return l&&e.children?n.children.splice(a,1,...e.children):n.children.splice(a,1),a}})),Po(h,{Fragment:Xt.Fragment,components:s,ignoreInvalidStyle:!0,jsx:Xt.jsx,jsxs:Xt.jsxs,passKeys:!0,passNode:!0})}function nd(e){const t=e.indexOf(":"),r=e.indexOf("?"),a=e.indexOf("#"),n=e.indexOf("/");return t<0||n>-1&&t>n||r>-1&&t>r||a>-1&&t>a||td.test(e.slice(0,t))?e:""}function sd(e,t){const r=String(e);if("string"!==typeof t)throw new TypeError("Expected character");let a=0,n=r.indexOf(t);for(;-1!==n;)a++,n=r.indexOf(t,n+t.length);return a}function od(e,t,r){const a=aa((r||{}).ignore||[]),n=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 a=-1;for(;++a0?{type:"text",value:s}:void 0),!1===s?a.lastIndex=r+1:(i!==r&&c.push({type:"text",value:e.value.slice(i,r)}),Array.isArray(s)?c.push(...s):s&&c.push(s),i=r+l[0].length,u=!0),!a.global)break;l=a.exec(e.value)}u?(i\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2429\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E5\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD803[\uDD8E\uDD8F]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDC00-\uDCEF\uDD00-\uDEB3\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0-\uDCBB\uDCC0\uDCC1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFEF]))([\+\x2D\.0-9A-Z_a-z]+)@([\x2D0-9A-Z_a-z]+(?:\.[\x2D0-9A-Z_a-z]+)+)/g,vd]],{ignore:["link","linkReference"]})}function bd(e,t,r,a,n){let s="";if(!xd(n))return!1;if(/^w/i.test(t)&&(r=t+r,t="",s="http://"),!function(e){const t=e.split(".");if(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))return!1;return!0}(r))return!1;const o=function(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let r=t[0],a=r.indexOf(")");const n=sd(e,"(");let s=sd(e,")");for(;-1!==a&&n>s;)e+=r.slice(0,a+1),r=r.slice(a+1),a=r.indexOf(")"),s++;return[e,r]}(r+a);if(!o[0])return!1;const i={type:"link",title:null,url:s+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[i,{type:"text",value:o[1]}]:i}function vd(e,t,r,a){return!(!xd(a,!0)||/[-\d_]$/.test(r))&&{type:"link",title:null,url:"mailto:"+t+"@"+r,children:[{type:"text",value:t+"@"+r}]}}function xd(e,t){const r=e.input.charCodeAt(e.index-1);return(0===e.index||(0,di.Ny)(r)||(0,di.es)(r))&&(!t||47!==r)}function Rd(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Ed(){this.buffer()}function Dd(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.label=t,r.identifier=(0,ei.B)(this.sliceSerialize(e)).toLowerCase()}function wd(e){this.exit(e)}function jd(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Ad(){this.buffer()}function Cd(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.label=t,r.identifier=(0,ei.B)(this.sliceSerialize(e)).toLowerCase()}function Sd(e){this.exit(e)}function Td(e,t,r,a){const n=r.createTracker(a);let s=n.move("[^");const o=r.enter("footnoteReference"),i=r.enter("reference");return s+=n.move(r.safe(r.associationId(e),(0,jn.A)((0,jn.A)({},n.current()),{},{before:s,after:"]"}))),i(),o(),s+=n.move("]"),s}function kd(e,t,r,a){const n=r.createTracker(a);let s=n.move("[^");const o=r.enter("footnoteDefinition"),i=r.enter("label");return s+=n.move(r.safe(r.associationId(e),(0,jn.A)((0,jn.A)({},n.current()),{},{before:s,after:"]"}))),i(),s+=n.move("]:"+(e.children&&e.children.length>0?" ":"")),n.shift(4),s+=n.move(r.indentLines(r.containerFlow(e,n.current()),Pd)),o(),s}function Pd(e,t,r){return 0===t?e:(r?"":" ")+e}Td.peek=function(){return"["};const Fd=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function _d(e){this.enter({type:"delete",children:[]},e)}function Id(e){this.exit(e)}function Bd(e,t,r,a){const n=r.createTracker(a),s=r.enter("strikethrough");let o=n.move("~~");return o+=r.containerPhrasing(e,(0,jn.A)((0,jn.A)({},n.current()),{},{before:o,after:"~"})),o+=n.move("~~"),s(),o}function Od(e){return e.length}function Nd(e){return null===e||void 0===e?"":String(e)}function Md(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 Ld(e,t,r){return">"+(r?"":" ")+e}function Ud(e,t,r){if("string"===typeof t&&(t=[t]),!t||0===t.length)return r;let a=-1;for(;++a"},d.current()))),u+=d.move(">")):(i=r.enter("destinationRaw"),u+=d.move(r.safe(e.url,(0,jn.A)({before:u,after:e.title?" ":")"},d.current())))),i(),e.title&&(i=r.enter("title".concat(s)),u+=d.move(" "+n),u+=d.move(r.safe(e.title,(0,jn.A)({before:u,after:n},d.current()))),u+=d.move(n),i()),u+=d.move(")"),o(),u}function Xd(e,t,r,a){const n=e.referenceType,s=r.enter("imageReference");let o=r.enter("label");const i=r.createTracker(a);let d=i.move("![");const u=r.safe(e.alt,(0,jn.A)({before:d,after:"]"},i.current()));d+=i.move(u+"]["),o();const c=r.stack;r.stack=[],o=r.enter("reference");const l=r.safe(r.associationId(e),(0,jn.A)({before:d,after:"]"},i.current()));return o(),r.stack=c,s(),"full"!==n&&u&&u===l?"shortcut"===n?d=d.slice(0,-1):d+=i.move("]"):d+=i.move(l+"]"),d}function $d(e,t,r){let a=e.value||"",n="`",s=-1;for(;new RegExp("(^|[^`])"+n+"([^`]|$)").test(a);)n+="`";for(/[^ \r\n]/.test(a)&&(/^[ \r\n]/.test(a)&&/[ \r\n]$/.test(a)||/^`|`$/.test(a))&&(a=" "+a+" ");++s\u007F]/.test(e.url))}function Zd(e,t,r,a){const n=Hd(r),s='"'===n?"Quote":"Apostrophe",o=r.createTracker(a);let i,d;if(Qd(e,r)){const t=r.stack;r.stack=[],i=r.enter("autolink");let a=o.move("<");return a+=o.move(r.containerPhrasing(e,(0,jn.A)({before:a,after:">"},o.current()))),a+=o.move(">"),i(),r.stack=t,a}i=r.enter("link"),d=r.enter("label");let u=o.move("[");return u+=o.move(r.containerPhrasing(e,(0,jn.A)({before:u,after:"]("},o.current()))),u+=o.move("]("),d(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(d=r.enter("destinationLiteral"),u+=o.move("<"),u+=o.move(r.safe(e.url,(0,jn.A)({before:u,after:">"},o.current()))),u+=o.move(">")):(d=r.enter("destinationRaw"),u+=o.move(r.safe(e.url,(0,jn.A)({before:u,after:e.title?" ":")"},o.current())))),d(),e.title&&(d=r.enter("title".concat(s)),u+=o.move(" "+n),u+=o.move(r.safe(e.title,(0,jn.A)({before:u,after:n},o.current()))),u+=o.move(n),d()),u+=o.move(")"),i(),u}function eu(e,t,r,a){const n=e.referenceType,s=r.enter("linkReference");let o=r.enter("label");const i=r.createTracker(a);let d=i.move("[");const u=r.containerPhrasing(e,(0,jn.A)({before:d,after:"]"},i.current()));d+=i.move(u+"]["),o();const c=r.stack;r.stack=[],o=r.enter("reference");const l=r.safe(r.associationId(e),(0,jn.A)({before:d,after:"]"},i.current()));return o(),r.stack=c,s(),"full"!==n&&u&&u===l?"shortcut"===n?d=d.slice(0,-1):d+=i.move("]"):d+=i.move(l+"]"),d}function tu(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 ru(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}Kd.peek=function(e,t,r){return r.options.emphasis||"*"},Yd.peek=function(){return"<"},Jd.peek=function(){return"!"},Xd.peek=function(){return"!"},$d.peek=function(){return"`"},Zd.peek=function(e,t,r){return Qd(e,r)?"<":"["},eu.peek=function(){return"["};const au=aa(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function nu(e,t,r,a){const n=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),s=r.enter("strong"),o=r.createTracker(a),i=o.move(n+n);let d=o.move(r.containerPhrasing(e,(0,jn.A)({after:n,before:i},o.current())));const u=d.charCodeAt(0),c=Vd(a.before.charCodeAt(a.before.length-1),u,n);c.inside&&(d=zd(u)+d.slice(1));const l=d.charCodeAt(d.length-1),p=Vd(a.after.charCodeAt(0),l,n);p.inside&&(d=d.slice(0,-1)+zd(l));const f=o.move(n+n);return s(),r.attentionEncodeSurroundingInfo={after:p.outside,before:c.outside},i+d+f}nu.peek=function(e,t,r){return r.options.strong||"*"};const su={blockquote:function(e,t,r,a){const n=r.enter("blockquote"),s=r.createTracker(a);s.move("> "),s.shift(2);const o=r.indentLines(r.containerFlow(e,s.current()),Ld);return n(),o},break:qd,code:function(e,t,r,a){const n=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),s=e.value||"",o="`"===n?"GraveAccent":"Tilde";if(function(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))}(e,r)){const e=r.enter("codeIndented"),t=r.indentLines(s,Wd);return e(),t}const i=r.createTracker(a),d=n.repeat(Math.max(function(e,t){const r=String(e);let a=r.indexOf(t),n=a,s=0,o=0;if("string"!==typeof t)throw new TypeError("Expected substring");for(;-1!==a;)a===n?++s>o&&(o=s):s=1,n=a+t.length,a=r.indexOf(t,n);return o}(s,n)+1,3)),u=r.enter("codeFenced");let c=i.move(d);if(e.lang){const t=r.enter("codeFencedLang".concat(o));c+=i.move(r.safe(e.lang,(0,jn.A)({before:c,after:" ",encode:["`"]},i.current()))),t()}if(e.lang&&e.meta){const t=r.enter("codeFencedMeta".concat(o));c+=i.move(" "),c+=i.move(r.safe(e.meta,(0,jn.A)({before:c,after:"\n",encode:["`"]},i.current()))),t()}return c+=i.move("\n"),s&&(c+=i.move(s+"\n")),c+=i.move(d),u(),c},definition:function(e,t,r,a){const n=Hd(r),s='"'===n?"Quote":"Apostrophe",o=r.enter("definition");let i=r.enter("label");const d=r.createTracker(a);let u=d.move("[");return u+=d.move(r.safe(r.associationId(e),(0,jn.A)({before:u,after:"]"},d.current()))),u+=d.move("]: "),i(),!e.url||/[\0- \u007F]/.test(e.url)?(i=r.enter("destinationLiteral"),u+=d.move("<"),u+=d.move(r.safe(e.url,(0,jn.A)({before:u,after:">"},d.current()))),u+=d.move(">")):(i=r.enter("destinationRaw"),u+=d.move(r.safe(e.url,(0,jn.A)({before:u,after:e.title?" ":"\n"},d.current())))),i(),e.title&&(i=r.enter("title".concat(s)),u+=d.move(" "+n),u+=d.move(r.safe(e.title,(0,jn.A)({before:u,after:n},d.current()))),u+=d.move(n),i()),o(),u},emphasis:Kd,hardBreak:qd,heading:function(e,t,r,a){const n=Math.max(Math.min(6,e.depth||1),1),s=r.createTracker(a);if(function(e,t){let r=!1;return pa(e,(function(e){if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return r=!0,ua})),Boolean((!e.depth||e.depth<3)&&zo(e)&&(t.options.setext||r))}(e,r)){const t=r.enter("headingSetext"),a=r.enter("phrasing"),o=r.containerPhrasing(e,(0,jn.A)((0,jn.A)({},s.current()),{},{before:"\n",after:"\n"}));return a(),t(),o+"\n"+(1===n?"=":"-").repeat(o.length-(Math.max(o.lastIndexOf("\r"),o.lastIndexOf("\n"))+1))}const o="#".repeat(n),i=r.enter("headingAtx"),d=r.enter("phrasing");s.move(o+" ");let u=r.containerPhrasing(e,(0,jn.A)({before:"# ",after:"\n"},s.current()));return/^[\t ]/.test(u)&&(u=zd(u.charCodeAt(0))+u.slice(1)),u=u?o+" "+u:o,r.options.closeAtx&&(u+=" "+o),d(),i(),u},html:Yd,image:Jd,imageReference:Xd,inlineCode:$d,link:Zd,linkReference:eu,list:function(e,t,r,a){const n=r.enter("list"),s=r.bulletCurrent;let o=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):tu(r);const i=e.ordered?"."===o?")":".":function(e){const t=tu(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 d=!(!t||!r.bulletLastUsed)&&o===r.bulletLastUsed;if(!e.ordered){const t=e.children?e.children[0]:void 0;if("*"!==o&&"-"!==o||!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]||(d=!0),ru(r)===o&&t){let t=-1;for(;++t-1?t.start:1)+(!1===r.options.incrementListMarker?0:t.children.indexOf(e))+s);let o=s.length+1;("tab"===n||"mixed"===n&&(t&&"list"===t.type&&t.spread||e.spread))&&(o=4*Math.ceil(o/4));const i=r.createTracker(a);i.move(s+" ".repeat(o-s.length)),i.shift(o);const d=r.enter("listItem"),u=r.indentLines(r.containerFlow(e,i.current()),(function(e,t,r){if(t)return(r?"":" ".repeat(o))+e;return(r?s:s+" ".repeat(o-s.length))+e}));return d(),u},paragraph:function(e,t,r,a){const n=r.enter("paragraph"),s=r.enter("phrasing"),o=r.containerPhrasing(e,a);return s(),n(),o},root:function(e,t,r,a){return(e.children.some((function(e){return au(e)}))?r.containerPhrasing:r.containerFlow).call(r,e,a)},strong:nu,text:function(e,t,r,a){return r.safe(e.value,a)},thematicBreak:function(e,t,r){const a=(ru(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?a.slice(0,-1):a}};function ou(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 iu(e){this.exit(e),this.data.inTable=void 0}function du(e){this.enter({type:"tableRow",children:[]},e)}function uu(e){this.exit(e)}function cu(e){this.enter({type:"tableCell",children:[]},e)}function lu(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,pu));const r=this.stack[this.stack.length-1];r.type,r.value=t,this.exit(e)}function pu(e,t){return"|"===t?t:e}function fu(e){const t=e||{},r=t.tableCellPadding,a=t.tablePipeAlign,n=t.stringLength,s=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 a=su.inlineCode(e,t,r);r.stack.includes("tableCell")&&(a=a.replace(/\|/g,"\\$&"));return a},table:function(e,t,r,a){return i(function(e,t,r){const a=e.children;let n=-1;const s=[],o=t.enter("table");for(;++nu&&(u=e[c].length);++sd[s])&&(d[s]=e)}t.push(o)}o[c]=t,i[c]=a}let l=-1;if("object"===typeof a&&"length"in a)for(;++ld[l]&&(d[l]=n),f[l]=n),p[l]=o}o.splice(1,0,p),i.splice(1,0,f),c=-1;const g=[];for(;++c0&&!r&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}Au[43]=ju,Au[45]=ju,Au[46]=ju,Au[95]=ju,Au[72]=[ju,wu],Au[104]=[ju,wu],Au[87]=[ju,Du],Au[119]=[ju,Du];var _u=r(1231),Iu=r(7245);const Bu={tokenize:function(e,t,r){const a=this;return(0,Iu.N)(e,(function(e){const n=a.events[a.events.length-1];return n&&"gfmFootnoteDefinitionIndent"===n[1].type&&4===n[2].sliceSerialize(n[1],!0).length?t(e):r(e)}),"gfmFootnoteDefinitionIndent",5)},partial:!0};function Ou(e,t,r){const a=this;let n=a.events.length;const s=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let o;for(;n--;){const e=a.events[n][1];if("labelImage"===e.type){o=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(n){if(!o||!o._balanced)return r(n);const i=(0,ei.B)(a.sliceSerialize({start:o.end,end:a.now()}));if(94!==i.codePointAt(0)||!s.includes(i.slice(1)))return r(n);return e.enter("gfmFootnoteCallLabelMarker"),e.consume(n),e.exit("gfmFootnoteCallLabelMarker"),t(n)}}function Nu(e,t){let r,a=e.length;for(;a--;)if("labelImage"===e[a][1].type&&"enter"===e[a][0]){r=e[a][1];break}e[a+1][1].type="data",e[a+3][1].type="gfmFootnoteCallLabelMarker";const n={type:"gfmFootnoteCall",start:Object.assign({},e[a+3][1].start),end:Object.assign({},e[e.length-1][1].end)},s={type:"gfmFootnoteCallMarker",start:Object.assign({},e[a+3][1].end),end:Object.assign({},e[a+3][1].end)};s.end.column++,s.end.offset++,s.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},s.end),end:Object.assign({},e[e.length-1][1].start)},i={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},d=[e[a+1],e[a+2],["enter",n,t],e[a+3],e[a+4],["enter",s,t],["exit",s,t],["enter",o,t],["enter",i,t],["exit",i,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",n,t]];return e.splice(a,e.length-a+1,...d),e}function Mu(e,t,r){const a=this,n=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let s,o=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),i};function i(t){return 94!==t?r(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",d)}function d(i){if(o>999||93===i&&!s||null===i||91===i||(0,di.Ee)(i))return r(i);if(93===i){e.exit("chunkString");const s=e.exit("gfmFootnoteCallString");return n.includes((0,ei.B)(a.sliceSerialize(s)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(i),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):r(i)}return(0,di.Ee)(i)||(s=!0),o++,e.consume(i),92===i?u:d}function u(t){return 91===t||92===t||93===t?(e.consume(t),o++,d):d(t)}}function Lu(e,t,r){const a=this,n=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let s,o,i=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),d};function d(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(i>999||93===t&&!o||null===t||91===t||(0,di.Ee)(t))return r(t);if(93===t){e.exit("chunkString");const r=e.exit("gfmFootnoteDefinitionLabelString");return s=(0,ei.B)(a.sliceSerialize(r)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),l}return(0,di.Ee)(t)||(o=!0),i++,e.consume(t),92===t?c:u}function c(t){return 91===t||92===t||93===t?(e.consume(t),i++,u):u(t)}function l(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),n.includes(s)||n.push(s),(0,Iu.N)(e,p,"gfmFootnoteDefinitionWhitespace")):r(t)}function p(e){return t(e)}}function Uu(e,t,r){return e.check(_u.B,t,e.attempt(Bu,t,r))}function qu(e){e.exit("gfmFootnoteDefinition")}var Wu=r(2373),Hu=r(9723);function zu(e){let t=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:function(e,r,a){const n=this.previous,s=this.events;let o=0;return function(t){if(126===n&&"characterEscape"!==s[s.length-1][1].type)return a(t);return e.enter("strikethroughSequenceTemporary"),i(t)};function i(s){const d=(0,Gd.S)(n);if(126===s)return o>1?a(s):(e.consume(s),o++,i);if(o<2&&!t)return a(s);const u=e.exit("strikethroughSequenceTemporary"),c=(0,Gd.S)(s);return u._open=!c||2===c&&Boolean(d),u._close=!d||2===d&&Boolean(c),r(s)}},resolveAll:function(e,t){let r=-1;for(;++r0;)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 a=r.pop();for(;a;)e.push(...a),a=r.pop();this.map.length=0}}function Vu(e,t){let r=!1;const a=[];for(;t-1;){const e=a.events[t][1].type;if("lineEnding"!==e&&"linePrefix"!==e)break;t--}const n=t>-1?a.events[t][1].type:null,s="tableHead"===n||"tableRow"===n?x:i;if(s===x&&a.parser.lazy[a.now().line])return r(e);return s(e)};function i(t){return e.enter("tableHead"),e.enter("tableRow"),function(e){if(124===e)return d(e);return n=!0,o+=1,d(e)}(t)}function d(t){return null===t?r(t):(0,di.HP)(t)?o>1?(o=0,a.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l):r(t):(0,di.On)(t)?(0,Iu.N)(e,d,"whitespace")(t):(o+=1,n&&(n=!1,s+=1),124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),n=!0,d):(e.enter("data"),u(t)))}function u(t){return null===t||124===t||(0,di.Ee)(t)?(e.exit("data"),d(t)):(e.consume(t),92===t?c:u)}function c(t){return 92===t||124===t?(e.consume(t),u):u(t)}function l(t){return a.interrupt=!1,a.parser.lazy[a.now().line]?r(t):(e.enter("tableDelimiterRow"),n=!1,(0,di.On)(t)?(0,Iu.N)(e,p,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):p(t))}function p(t){return 45===t||58===t?g(t):124===t?(n=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),f):v(t)}function f(t){return(0,di.On)(t)?(0,Iu.N)(e,g,"whitespace")(t):g(t)}function g(t){return 58===t?(o+=1,n=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),m):45===t?(o+=1,m(t)):null===t||(0,di.HP)(t)?b(t):v(t)}function m(t){return 45===t?(e.enter("tableDelimiterFiller"),h(t)):v(t)}function h(t){return 45===t?(e.consume(t),h):58===t?(n=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),y):(e.exit("tableDelimiterFiller"),y(t))}function y(t){return(0,di.On)(t)?(0,Iu.N)(e,b,"whitespace")(t):b(t)}function b(r){return 124===r?p(r):(null===r||(0,di.HP)(r))&&n&&s===o?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(r)):v(r)}function v(e){return r(e)}function x(t){return e.enter("tableRow"),R(t)}function R(r){return 124===r?(e.enter("tableCellDivider"),e.consume(r),e.exit("tableCellDivider"),R):null===r||(0,di.HP)(r)?(e.exit("tableRow"),t(r)):(0,di.On)(r)?(0,Iu.N)(e,R,"whitespace")(r):(e.enter("data"),E(r))}function E(t){return null===t||124===t||(0,di.Ee)(t)?(e.exit("data"),R(t)):(e.consume(t),92===t?D:E)}function D(t){return 92===t||124===t?(e.consume(t),E):E(t)}}function Yu(e,t){let r,a,n,s=-1,o=!0,i=0,d=[0,0,0,0],u=[0,0,0,0],c=!1,l=0;const p=new Gu;for(;++sr[2]+1){const t=r[2]+1,a=r[3]-r[2]-1;e.add(t,a,[])}}e.add(r[3]+1,0,[["exit",o,t]])}return void 0!==n&&(s.end=Object.assign({},$u(t.events,n)),e.add(n,0,[["exit",s,t]]),s=void 0),s}function Xu(e,t,r,a,n){const s=[],o=$u(t.events,r);n&&(n.end=Object.assign({},o),s.push(["exit",n,t])),a.end=Object.assign({},o),s.push(["exit",a,t]),e.add(r+1,0,s)}function $u(e,t){const r=e[t],a="enter"===r[0]?"start":"end";return r[1][a]}const Qu={name:"tasklistCheck",tokenize:function(e,t,r){const a=this;return function(t){if(null!==a.previous||!a._gfmTasklistFirstContentOfListItem)return r(t);return e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),n};function n(t){return(0,di.Ee)(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),s):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),s):r(t)}function s(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):r(t)}function o(a){return(0,di.HP)(a)?t(a):(0,di.On)(a)?e.check({tokenize:Zu},t,r)(a):r(a)}}};function Zu(e,t,r){return(0,Iu.N)(e,(function(e){return null===e?r(e):t(e)}),"whitespace")}const ec={};function tc(e){const t=e||ec,r=this.data(),a=r.micromarkExtensions||(r.micromarkExtensions=[]),n=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),s=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);a.push(function(e){return(0,yu.y)([{text:Au},{document:{91:{name:"gfmFootnoteDefinition",tokenize:Lu,continuation:{tokenize:Uu},exit:qu}},text:{91:{name:"gfmFootnoteCall",tokenize:Mu},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Ou,resolveTo:Nu}}},zu(e),{flow:{null:{name:"table",tokenize:Ku,resolveAll:Yu}}},{text:{91:Qu}}])}(t)),n.push([{transforms:[yd],enter:{literalAutolink:ld,literalAutolinkEmail:pd,literalAutolinkHttp:pd,literalAutolinkWww:pd},exit:{literalAutolink:hd,literalAutolinkEmail:md,literalAutolinkHttp:fd,literalAutolinkWww:gd}},{enter:{gfmFootnoteDefinition:Rd,gfmFootnoteDefinitionLabelString:Ed,gfmFootnoteCall:jd,gfmFootnoteCallString:Ad},exit:{gfmFootnoteDefinition:wd,gfmFootnoteDefinitionLabelString:Dd,gfmFootnoteCall:Sd,gfmFootnoteCallString:Cd}},{canContainEols:["delete"],enter:{strikethrough:_d},exit:{strikethrough:Id}},{enter:{table:ou,tableData:cu,tableHeader:cu,tableRow:du},exit:{codeText:lu,table:iu,tableData:uu,tableHeader:uu,tableRow:uu}},{exit:{taskListCheckValueChecked:gu,taskListCheckValueUnchecked:gu,paragraph:mu}}]),s.push(function(e){return{extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:ud,notInConstruct:cd},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:ud,notInConstruct:cd},{character:":",before:"[ps]",after:"\\/",inConstruct:ud,notInConstruct:cd}]},{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:kd,footnoteReference:Td}},{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Fd}],handlers:{delete:Bd}},fu(e),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:hu}}]}}(t))}const rc=/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)\]/i,ac=/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)(\/.*)?\]/i,nc=function(){let{legacyTitle:e=!1,tagName:t="div"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r=>{pa(r,"blockquote",((r,a,n)=>{let s="",o="",i=!0,d=r.children.map((t=>{if(i&&"paragraph"===t.type){const r=t.children[0],a="text"===r.type?r.value:"",n=e?ac:rc,d=a.match(n);if(d&&(i=!1,s=d[1].toLocaleLowerCase(),o=e&&d[2]||s.toLocaleUpperCase(),a.includes("\n")&&(t.children[0]={type:"text",value:a.replace(n,"").replace(/^\n+/,"")}),!a.includes("\n"))){const e=[];t.children.forEach(((t,r)=>{0!=r&&(1==r&&"break"===t.type||e.push(t))})),t.children=[...e]}}return t}));s&&(r.data={hName:t,hProperties:{class:"markdown-alert markdown-alert-".concat(s),dir:"auto"}},d.unshift({type:"paragraph",children:[sc(s),{type:"text",value:o.replace(/^\//,"")}],data:{hProperties:{class:"markdown-alert-title",dir:"auto"}}})),r.children=[...d]}))}};function sc(e){var t;return{type:"emphasis",data:{hName:"svg",hProperties:{class:"octicon",viewBox:"0 0 16 16",width:"16",height:"16",ariaHidden:"true"}},children:[{type:"emphasis",data:{hName:"path",hProperties:{d:null!==(t=oc[e])&&void 0!==t?t:""}},children:[]}]}}const oc={note:"M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z",tip:"M8 1.5c-2.363 0-4 1.69-4 3.75 0 .984.424 1.625.984 2.304l.214.253c.223.264.47.556.673.848.284.411.537.896.621 1.49a.75.75 0 0 1-1.484.211c-.04-.282-.163-.547-.37-.847a8.456 8.456 0 0 0-.542-.68c-.084-.1-.173-.205-.268-.32C3.201 7.75 2.5 6.766 2.5 5.25 2.5 2.31 4.863 0 8 0s5.5 2.31 5.5 5.25c0 1.516-.701 2.5-1.328 3.259-.095.115-.184.22-.268.319-.207.245-.383.453-.541.681-.208.3-.33.565-.37.847a.751.751 0 0 1-1.485-.212c.084-.593.337-1.078.621-1.489.203-.292.45-.584.673-.848.075-.088.147-.173.213-.253.561-.679.985-1.32.985-2.304 0-2.06-1.637-3.75-4-3.75ZM5.75 12h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5ZM6 15.25a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 0 1.5h-2.5a.75.75 0 0 1-.75-.75Z",important:"M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v9.5A1.75 1.75 0 0 1 14.25 13H8.06l-2.573 2.573A1.458 1.458 0 0 1 3 14.543V13H1.75A1.75 1.75 0 0 1 0 11.25Zm1.75-.25a.25.25 0 0 0-.25.25v9.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h6.5a.25.25 0 0 0 .25-.25v-9.5a.25.25 0 0 0-.25-.25Zm7 2.25v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 9a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",warning:"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",caution:"M4.47.22A.749.749 0 0 1 5 0h6c.199 0 .389.079.53.22l4.25 4.25c.141.14.22.331.22.53v6a.749.749 0 0 1-.22.53l-4.25 4.25A.749.749 0 0 1 11 16H5a.749.749 0 0 1-.53-.22L.22 11.53A.749.749 0 0 1 0 11V5c0-.199.079-.389.22-.53Zm.84 1.28L1.5 5.31v5.38l3.81 3.81h5.38l3.81-3.81V5.31L10.69 1.5ZM8 4a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 8 4Zm0 8a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"};function ic(e){if(!e)return null;var t=e;return t.dataset.code&&t.classList.contains("copied")?t:t.parentElement?ic(t.parentElement):null}function dc(e){var t=e=>{var t=ic(e.target);t&&(t.classList.add("active"),Wr()(t.dataset.code,(function(){setTimeout((()=>{t.classList.remove("active")}),2e3)})))};(0,i.useEffect)((()=>{var r,a;return null==(r=e.current)||r.removeEventListener("click",t,!1),null==(a=e.current)||a.addEventListener("click",t,!1),()=>{var r;null==(r=e.current)||r.removeEventListener("click",t,!1)}}),[e])}var uc=["prefixCls","className","source","style","disableCopy","skipHtml","onScroll","onMouseOver","pluginsFilter","rehypeRewrite","wrapperElement","warpperElement","urlTransform"],cc=e=>e;const lc=i.forwardRef(((e,t)=>{var{prefixCls:r="wmde-markdown wmde-markdown-color",className:a,source:o,style:d,disableCopy:u=!1,skipHtml:c=!0,onScroll:l,onMouseOver:p,pluginsFilter:f,wrapperElement:g={},warpperElement:m={},urlTransform:h}=e,y=(0,s.A)(e,uc),b=i.useRef(null);(0,i.useImperativeHandle)(t,(()=>(0,n.A)({},e,{mdp:b})),[b,e]);var v=(r||"")+" "+(a||"");dc(b);var x=[...y.rehypePlugins||[]],R={allowElement:(e,t,r)=>y.allowElement?y.allowElement(e,t,r):/^[A-Za-z0-9]+$/.test(e.tagName)};c&&x.push(lo);var E=[nc,...y.remarkPlugins||[],tc],D=(0,n.A)({},m,g);return(0,Xt.jsx)("div",(0,n.A)({ref:b,onScroll:l,onMouseOver:p},D,{className:v,style:d,children:(0,Xt.jsx)(ad,(0,n.A)({},R,y,{skipHtml:c,urlTransform:h||cc,rehypePlugins:f?f("rehype",x):x,remarkPlugins:f?f("remark",E):E,children:o||""}))}))}));var pc=function(e){return void 0===e&&(e={}),e=>{pa(e,(e=>{"element"===e.type&&"code"===e.tagName&&e.data&&e.data.meta&&(e.properties=(0,n.A)({},e.properties,{"data-meta":String(e.data.meta)}))}))}},fc=function(e){return void 0===e&&(e={}),e=>{pa(e,(e=>{if("element"===e.type&&"code"===e.tagName&&e.properties&&e.properties.dataMeta){e.data||(e.data={});var t=e.properties.dataMeta;"string"===typeof t&&(e.data.meta=t),delete e.properties.dataMeta}}))}};const gc=/[\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,mc=Object.hasOwnProperty;function hc(e){const t="element"===e.type?e.tagName.toLowerCase():"",r=2===t.length&&104===t.charCodeAt(0)?t.charCodeAt(1):0;return r>48&&r<55?r-48:void 0}const yc={},bc=new class{constructor(){this.occurrences,this.reset()}slug(e,t){const r=this;let a=function(e,t){if("string"!==typeof e)return"";t||(e=e.toLowerCase());return e.replace(gc,"").replace(/ /g,"-")}(e,!0===t);const n=a;for(;mc.call(r.occurrences,a);)r.occurrences[n]++,a=n+"-"+r.occurrences[n];return r.occurrences[a]=0,a}reset(){this.occurrences=Object.create(null)}};const vc=function(e){if(null===e||void 0===e)return Rc;if("string"===typeof e)return function(e){return xc(t);function t(t){return t.tagName===e}}(e);if("object"===typeof e)return function(e){const t=[];let r=-1;for(;++r0&&void 0!==arguments[0]?arguments[0]:{};const{openDelimiter:t="rehype:ignore:start",closeDelimiter:r="rehype:ignore:end"}=e;return e=>{pa(e,((e,a,n)=>{if("element"===e.type||"root"===e.type){let a=!1;e.children=e.children.filter((e=>{if("raw"===e.type||"comment"===e.type){let n=(e.value||"").trim();if(n=n.replace(/^/,"$1"),n===t)return a=!0,!1;if(n===r)return a=!1,!1}return!a}))}}))}};var Pc={type:"element",tagName:"svg",properties:{className:"octicon octicon-link",viewBox:"0 0 16 16",version:"1.1",width:"16",height:"16",ariaHidden:"true"},children:[{type:"element",tagName:"path",children:[],properties:{fillRule:"evenodd",d:"M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"}}]};var Fc=[function(e){const t=(e||yc).prefix||"";return function(e){bc.reset(),pa(e,"element",(function(e){hc(e)&&!e.properties.id&&(e.properties.id=t+bc.slug(fa(e)))}))}},function(e){const t=e||wc;let r=t.properties;const a=t.headingProperties,n=t.behavior||"prepend",s=t.content,o=t.group,i=vc(t.test);let d;return"after"===n||"before"===n?d=function(e,t,a){if("number"!==typeof t||!a)return;const i=Cc(s||Dc,e),d=Ac(e,Tc(r,e),i);let u="before"===n?[d,e]:[e,d];if(o){const t=Sc(o,e);t&&!Array.isArray(t)&&"element"===t.type&&(t.children=u,u=[t])}return a.children.splice(t,1,...u),[ca,t+u.length]}:"wrap"===n?d=function(e){let t=e.children,a=[];"function"===typeof s?(t=[],a=s(e)):s&&(a=jc(s));return e.children=[Ac(e,Tc(r,e),Array.isArray(a)?[...t,...a]:[...t,a])],[ca]}:(d=function(e){const t=Cc(s||Dc,e);return e.children["prepend"===n?"unshift":"push"](Ac(e,Tc(r,e),t)),[ca]},r||(r={ariaHidden:"true",tabIndex:-1})),function(e){pa(e,"element",(function(e,t,r){if(hc(e)&&e.properties.id&&i(e,t,r))return Object.assign(e.properties,Tc(a,e)),d(e,t,r)}))}},kc];const _c=i.forwardRef(((e,t)=>{var r,a,s,o=[pc,lo,fc,...Fc,[ss,{rewrite:(a=null!=(r=e.disableCopy)&&r,s=e.rehypeRewrite,(e,t,r)=>{if("element"===e.type&&r&&"root"===r.type&&/h(1|2|3|4|5|6)/.test(e.tagName)){var o=e.children&&e.children[0];o&&o.properties&&"true"===o.properties.ariaHidden&&(o.properties=(0,n.A)({class:"anchor"},o.properties),o.children=[Pc])}if("element"===e.type&&"pre"===e.tagName&&!a){var i=ns(e.children);e.children.push((void 0===(d=i)&&(d=""),{type:"element",tagName:"div",properties:{class:"copied","data-code":d},children:[{type:"element",tagName:"svg",properties:{className:"octicon-copy",ariaHidden:"true",viewBox:"0 0 16 16",fill:"currentColor",height:12,width:12},children:[{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 010 1.5h-1.5a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-1.5a.75.75 0 011.5 0v1.5A1.75 1.75 0 019.25 16h-7.5A1.75 1.75 0 010 14.25v-7.5z"},children:[]},{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0114.25 11h-7.5A1.75 1.75 0 015 9.25v-7.5zm1.75-.25a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-7.5a.25.25 0 00-.25-.25h-7.5z"},children:[]}]},{type:"element",tagName:"svg",properties:{className:"octicon-check",ariaHidden:"true",viewBox:"0 0 16 16",fill:"currentColor",height:12,width:12},children:[{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"},children:[]}]}]}))}var d;s&&s(e,null===t?void 0:t,null===r?void 0:r)})}],[us,{properties:"attr"}],...e.rehypePlugins||[],[Aa,{ignoreMissing:!0}]];return(0,Xt.jsx)(lc,(0,n.A)({},e,{rehypePlugins:o,ref:t}))}));var Ic,Bc=["components","data","node"],Oc=["source","components","data","rehypeRewrite"],Nc=Zr.Preview,Mc=Zr.Code,Lc=Zr.Toolbar,Uc=Jt(_c)(Ic||(Ic=o(["\n margin: 0 auto;\n box-shadow:\n rgb(8 15 41 / 8%) 0.5rem 0.5rem 2rem 0px,\n rgb(8 15 41 / 8%) 0px 0px 1px 0px;\n border: 1px solid var(--color-border-default, #30363d);\n text-align: left;\n max-width: 56rem;\n overflow: auto;\n padding: 2rem;\n border-radius: 0.55rem;\n"]))),qc=e=>{var{components:t,data:r,node:a}=e,o=(0,s.A)(e,Bc);if(a&&"element"===a.type&&"pre"===a.tagName){var i,d,u,c=a.children[0];if(!c)return(0,Xt.jsx)("pre",(0,n.A)({},o));var l=(null==(i=c.data)?void 0:i.meta)||(null==(d=c.properties)?void 0:d.dataMeta);if(!ra(l))return(0,Xt.jsx)("pre",(0,n.A)({},o));var p=null==a||null==(u=a.position)?void 0:u.start.line,f=ta(l)||String(p),g=t[""+f];if(f&&"function"===typeof g){var m=r[f].value||"",{title:h,boreder:y=1,checkered:b=1,code:v=1,toolbar:x=1}=ea(l||"");return(0,Xt.jsxs)(Zr,{bordered:!!Number(y),disableCheckered:!Number(b),style:{marginBottom:16},children:[(0,Xt.jsx)(Nc,{children:(0,Xt.jsx)(g,{})}),!!Number(x)&&(0,Xt.jsx)(Lc,{text:m,visibleButton:!!Number(v),children:h||"Code Example"}),!!Number(v)&&(0,Xt.jsx)(Mc,{tagName:"pre",style:{marginBottom:0},className:o.className,children:o.children})]})}}return(0,Xt.jsx)("code",(0,n.A)({},o))};function Wc(e){var{components:t,data:r}=e,a=(0,s.A)(e,Oc);return(0,Xt.jsx)(Uc,(0,n.A)({disableCopy:!0,rehypePlugins:[kc,...a.rehypePlugins||[]]},a,{source:r.source,components:(0,n.A)({},t,{pre:e=>(0,Xt.jsx)(qc,(0,n.A)({},e,{components:r.components,data:r.data}))})}))}var Hc,zc,Gc,Vc,Kc,Yc=["version","title","description","source","logo","components","data","markdownProps","exampleProps","className","children","disableCorners","disableDarkMode","disableHeader","disableBackToUp"],Jc=Jt.div(Hc||(Hc=o(["\n max-width: 56rem;\n margin: 0 auto;\n padding: 2.3rem 3rem;\n display: flex;\n justify-content: center;\n"]))),Xc=Jt.div(zc||(zc=o(["\n padding-bottom: 12rem;\n"]))),$c=Jt.header(Gc||(Gc=o(["\n padding: 9rem 0 2rem 0;\n text-align: center;\n h1 {\n font-weight: 900;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif,\n 'Apple Color Emoji', 'Segoe UI Emoji';\n }\n"]))),Qc=Jt.sup(Vc||(Vc=o(["\n font-weight: 200;\n font-size: 0.78rem;\n margin-left: 0.5em;\n margin-top: -0.3em;\n position: absolute;\n white-space: nowrap;\n"]))),Zc=Jt.p(Kc||(Kc=o(["\n max-width: 460px;\n margin: 0 auto;\n color: var(--color-fg-subtle, #6e7781);\n"]))),el=(0,i.forwardRef)(((e,t)=>{var{version:r,title:a,description:o,source:i,logo:d=jr,components:u,data:c,markdownProps:l,exampleProps:p,className:f="",children:g,disableCorners:m=!1,disableDarkMode:h=!1,disableHeader:y=!1,disableBackToUp:b=!1}=e,v=(0,s.A)(e,Yc),x=cr();return(0,Xt.jsxs)(Xc,(0,n.A)({className:"wmde-markdown-var "+f},v,{children:[(0,Xt.jsx)(Fr,{version:r,logo:d,disableDarkMode:h,disableCorners:m}),!y&&(0,Xt.jsxs)($c,{children:[d,a&&(0,Xt.jsxs)("h1",{children:[a,r&&(0,Xt.jsx)(Qc,{children:r})]}),o&&(0,Xt.jsx)(Zc,{children:o})]}),x.example&&(0,Xt.jsx)(Jc,(0,n.A)({},p,{children:x.example})),(0,Xt.jsx)(Wc,(0,n.A)({},l,{source:i,data:{data:c,components:u,source:i}})),g,!b&&(0,Xt.jsx)(ar,{children:"Top"})]}))})),tl=el;tl.Github=function(e){return(0,i.useEffect)((()=>or.setCorners((0,n.A)({},e))),[e]),null},tl.Corners=function(e){return(0,i.useEffect)((()=>or.setDarkMode((0,n.A)({},e))),[e]),null},tl.Example=function(e){var{children:t}=e;return(0,i.useEffect)((()=>or.setExample(t)),[t]),null},tl.NavMenu=function(e){return(0,i.useEffect)((()=>or.setNavMenu(e)),[e]),null};const rl=tl,al={components:{35:function(){var e=a(r(7804)),t=a(r(6204));function a(e){return e&&e.__esModule?e:{default:e}}function n(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var r={}.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)?s(e,t):void 0}}(e)||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.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=Array(t);re.length)&&(t=e.length);for(var r=0,a=Array(t);re.length)&&(t=e.length);for(var r=0,a=Array(t);re.length)&&(t=e.length);for(var r=0,a=Array(t);re.length)&&(t=e.length);for(var r=0,a=Array(t);r r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nvar value = [{\n date: \'2016/01/11\',\n count: 2\n}, {\n date: \'2016/01/12\',\n count: 20\n}, {\n date: \'2016/01/13\',\n count: 10\n}].concat(_toConsumableArray(_toConsumableArray(Array(17)).map(function (_, idx) {\n return {\n date: "2016/02/".concat(idx + 10),\n count: idx,\n content: \'\'\n };\n})), [{\n date: \'2016/04/11\',\n count: 2\n}, {\n date: \'2016/05/01\',\n count: 5\n}, {\n date: \'2016/05/02\',\n count: 5\n}, {\n date: \'2016/05/04\',\n count: 11\n}]);\nvar Demo = function Demo() {\n return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_reactHeatMap["default"], {\n value: value,\n weekLabels: [\'\', \'Mon\', \'\', \'Wed\', \'\', \'Fri\', \'\'],\n startDate: new Date(\'2016/01/01\')\n }));\n};\nreturn Demo;',language:"jsx",value:"import React from 'react';\nimport HeatMap from '@uiw/react-heat-map';\n\nconst value = [\n { date: '2016/01/11', count: 2 },\n { date: '2016/01/12', count: 20 },\n { date: '2016/01/13', count: 10 },\n ...[...Array(17)].map((_, idx) => ({\n date: `2016/02/${idx + 10}`, count: idx, content: ''\n })),\n { date: '2016/04/11', count: 2 },\n { date: '2016/05/01', count: 5 },\n { date: '2016/05/02', count: 5 },\n { date: '2016/05/04', count: 11 },\n];\n\nconst Demo = () => {\n return (\n
\n \n
\n )\n};\n\nexport default Demo"},71:{name:71,meta:{},code:"\"use strict\";\n\nvar _react = _interopRequireDefault(require(\"react\"));\nvar _reactHeatMap = _interopRequireDefault(require(\"@uiw/react-heat-map\"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { \"default\": e }; }\nvar value = [{\n date: '2016/01/11',\n count: 2\n}, {\n date: '2016/04/12',\n count: 2\n}, {\n date: '2016/05/01',\n count: 17\n}, {\n date: '2016/05/02',\n count: 5\n}, {\n date: '2016/05/03',\n count: 27\n}, {\n date: '2016/05/04',\n count: 11\n}, {\n date: '2016/05/08',\n count: 32\n}];\nvar Demo = function Demo() {\n return /*#__PURE__*/_react[\"default\"].createElement(_reactHeatMap[\"default\"], {\n value: value,\n width: 600,\n style: {\n color: '#ad001d',\n '--rhm-rect-active': 'red'\n },\n startDate: new Date('2016/01/01'),\n panelColors: {\n 0: '#f4decd',\n 7: '#e4b293',\n 14: '#d48462',\n 21: '#c2533a',\n 28: '#ad001d',\n 35: '#6c0012'\n }\n });\n};\nreturn Demo;",language:"jsx",value:"import React from 'react';\nimport HeatMap from '@uiw/react-heat-map';\n\nconst value = [\n { date: '2016/01/11', count:2 },\n { date: '2016/04/12', count:2 },\n { date: '2016/05/01', count:17 },\n { date: '2016/05/02', count:5 },\n { date: '2016/05/03', count:27 },\n { date: '2016/05/04', count:11 },\n { date: '2016/05/08', count:32 },\n];\n\nconst Demo = () => {\n return (\n \n )\n};\nexport default Demo"},108:{name:108,meta:{},code:"\"use strict\";\n\nvar _react = _interopRequireDefault(require(\"react\"));\nvar _reactHeatMap = _interopRequireDefault(require(\"@uiw/react-heat-map\"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { \"default\": e }; }\nvar value = [{\n date: '2016/01/11',\n count: 2\n}, {\n date: '2016/04/12',\n count: 2\n}, {\n date: '2016/05/01',\n count: 17\n}, {\n date: '2016/05/02',\n count: 5\n}, {\n date: '2016/05/03',\n count: 27\n}, {\n date: '2016/05/04',\n count: 11\n}, {\n date: '2016/05/08',\n count: 32\n}];\nvar Demo = function Demo() {\n return /*#__PURE__*/_react[\"default\"].createElement(_reactHeatMap[\"default\"], {\n value: value,\n width: 600,\n style: {\n color: '#ad001d',\n '--rhm-rect-active': 'red'\n },\n startDate: new Date('2016/01/01'),\n panelColors: ['#f4decd', '#e4b293', '#d48462', '#c2533a', '#ad001d', '#6c0012']\n });\n};\nreturn Demo;",language:"jsx",value:"import React from 'react';\nimport HeatMap from '@uiw/react-heat-map';\n\nconst value = [\n { date: '2016/01/11', count:2 },\n { date: '2016/04/12', count:2 },\n { date: '2016/05/01', count:17 },\n { date: '2016/05/02', count:5 },\n { date: '2016/05/03', count:27 },\n { date: '2016/05/04', count:11 },\n { date: '2016/05/08', count:32 },\n];\n\nconst Demo = () => {\n return (\n \n )\n};\nexport default Demo"},140:{name:140,meta:{},code:'"use strict";\n\nfunction _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }\nvar _react = _interopRequireWildcard(require("react"));\nvar _reactHeatMap = _interopRequireDefault(require("@uiw/react-heat-map"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }\nfunction _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }\nfunction _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nfunction _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }\nfunction _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }\nfunction _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nvar value = [{\n date: \'2016/01/11\',\n count: 2\n}].concat(_toConsumableArray(_toConsumableArray(Array(17)).map(function (_, idx) {\n return {\n date: "2016/01/".concat(idx + 10),\n count: idx\n };\n})), _toConsumableArray(_toConsumableArray(Array(17)).map(function (_, idx) {\n return {\n date: "2016/02/".concat(idx + 10),\n count: idx\n };\n})), [{\n date: \'2016/04/12\',\n count: 2\n}, {\n date: \'2016/05/01\',\n count: 5\n}, {\n date: \'2016/05/02\',\n count: 5\n}, {\n date: \'2016/05/03\',\n count: 1\n}, {\n date: \'2016/05/04\',\n count: 11\n}, {\n date: \'2016/05/08\',\n count: 32\n}]);\nvar Demo = function Demo() {\n var _useState = (0, _react.useState)(5),\n _useState2 = _slicedToArray(_useState, 2),\n range = _useState2[0],\n setRange = _useState2[1];\n return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("input", {\n type: "range",\n min: "0",\n max: "5",\n step: "0.1",\n value: range,\n onChange: function onChange(e) {\n return setRange(e.target.value);\n }\n }), " ", range, /*#__PURE__*/_react["default"].createElement(_reactHeatMap["default"], {\n value: value,\n width: 600,\n style: {\n \'--rhm-rect\': \'#b9b9b9\'\n },\n startDate: new Date(\'2016/01/01\'),\n legendRender: function legendRender(props) {\n return /*#__PURE__*/_react["default"].createElement("rect", _extends({}, props, {\n y: props.y + 10,\n rx: range\n }));\n },\n rectProps: {\n rx: range\n }\n }));\n};\nreturn Demo;',language:"jsx",value:"import React, { useState } from 'react';\nimport HeatMap from '@uiw/react-heat-map';\n\nconst value = [\n { date: '2016/01/11', count:2 },\n ...[...Array(17)].map((_, idx) => ({ date: `2016/01/${idx + 10}`, count: idx })),\n ...[...Array(17)].map((_, idx) => ({ date: `2016/02/${idx + 10}`, count: idx })),\n { date: '2016/04/12', count:2 },\n { date: '2016/05/01', count:5 },\n { date: '2016/05/02', count:5 },\n { date: '2016/05/03', count:1 },\n { date: '2016/05/04', count:11 },\n { date: '2016/05/08', count:32 },\n];\n\nconst Demo = () => {\n const [range, setRange] = useState(5)\n return (\n
\n setRange(e.target.value)}\n /> {range}\n }\n rectProps={{\n rx: range\n }}\n />\n
\n )\n};\nexport default Demo"},188:{name:188,meta:{},code:'"use strict";\n\nvar _react = _interopRequireDefault(require("react"));\nvar _reactTooltip = _interopRequireDefault(require("@uiw/react-tooltip"));\nvar _reactHeatMap = _interopRequireDefault(require("@uiw/react-heat-map"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }\nfunction _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }\nfunction _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }\nfunction _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nvar value = [{\n date: \'2016/01/11\',\n count: 2\n}].concat(_toConsumableArray(_toConsumableArray(Array(17)).map(function (_, idx) {\n return {\n date: "2016/01/".concat(idx + 10),\n count: idx\n };\n})), _toConsumableArray(_toConsumableArray(Array(17)).map(function (_, idx) {\n return {\n date: "2016/02/".concat(idx + 10),\n count: idx\n };\n})), [{\n date: \'2016/04/12\',\n count: 2\n}, {\n date: \'2016/05/01\',\n count: 5\n}, {\n date: \'2016/05/02\',\n count: 5\n}, {\n date: \'2016/05/03\',\n count: 1\n}, {\n date: \'2016/05/04\',\n count: 11\n}, {\n date: \'2016/05/08\',\n count: 32\n}]);\nvar Demo = function Demo() {\n return /*#__PURE__*/_react["default"].createElement(_reactHeatMap["default"], {\n value: value,\n width: 600,\n startDate: new Date(\'2016/01/01\'),\n rectRender: function rectRender(props, data) {\n // if (!data.count) return ;\n return /*#__PURE__*/_react["default"].createElement(_reactTooltip["default"], {\n placement: "top",\n content: "count: ".concat(data.count || 0)\n }, /*#__PURE__*/_react["default"].createElement("rect", props));\n }\n });\n};\nreturn Demo;',language:"jsx",value:"import React from 'react';\nimport Tooltip from '@uiw/react-tooltip';\nimport HeatMap from '@uiw/react-heat-map';\n\nconst value = [\n { date: '2016/01/11', count:2 },\n ...[...Array(17)].map((_, idx) => ({ date: `2016/01/${idx + 10}`, count: idx, })),\n ...[...Array(17)].map((_, idx) => ({ date: `2016/02/${idx + 10}`, count: idx, })),\n { date: '2016/04/12', count:2 },\n { date: '2016/05/01', count:5 },\n { date: '2016/05/02', count:5 },\n { date: '2016/05/03', count:1 },\n { date: '2016/05/04', count:11 },\n { date: '2016/05/08', count:32 },\n];\n\nconst Demo = () => {\n return (\n {\n // if (!data.count) return ;\n return (\n \n \n \n );\n }}\n />\n )\n};\nexport default Demo"},227:{name:227,meta:{},code:'"use strict";\n\nfunction _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }\nvar _react = _interopRequireWildcard(require("react"));\nvar _reactHeatMap = _interopRequireDefault(require("@uiw/react-heat-map"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }\nfunction _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nfunction _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }\nfunction _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }\nfunction _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nvar value = [{\n date: \'2016/01/11\',\n count: 2\n}].concat(_toConsumableArray(_toConsumableArray(Array(17)).map(function (_, idx) {\n return {\n date: "2016/01/".concat(idx + 10),\n count: idx\n };\n})), _toConsumableArray(_toConsumableArray(Array(17)).map(function (_, idx) {\n return {\n date: "2016/02/".concat(idx + 10),\n count: idx\n };\n})), [{\n date: \'2016/04/12\',\n count: 2\n}, {\n date: \'2016/05/01\',\n count: 5\n}, {\n date: \'2016/05/02\',\n count: 5\n}, {\n date: \'2016/05/03\',\n count: 1\n}, {\n date: \'2016/05/04\',\n count: 11\n}, {\n date: \'2016/05/08\',\n count: 32\n}]);\nvar Demo = function Demo() {\n var _useState = (0, _react.useState)(0),\n _useState2 = _slicedToArray(_useState, 2),\n size = _useState2[0],\n setSize = _useState2[1];\n return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("label", {\n style: {\n userSelect: \'none\'\n }\n }, /*#__PURE__*/_react["default"].createElement("input", {\n type: "checkbox",\n checked: size === 0,\n onChange: function onChange(e) {\n return setSize(e.target.checked ? 0 : 12);\n }\n }), size === 0 ? \' Hide\' : \' Show\', " Legend"), /*#__PURE__*/_react["default"].createElement(_reactHeatMap["default"], {\n width: 600,\n value: value,\n legendCellSize: size,\n startDate: new Date(\'2016/01/01\')\n }));\n};\nreturn Demo;',language:"jsx",value:"import React, { useState } from 'react';\nimport HeatMap from '@uiw/react-heat-map';\n\nconst value = [\n { date: '2016/01/11', count:2 },\n ...[...Array(17)].map((_, idx) => ({ date: `2016/01/${idx + 10}`, count: idx })),\n ...[...Array(17)].map((_, idx) => ({ date: `2016/02/${idx + 10}`, count: idx })),\n { date: '2016/04/12', count:2 },\n { date: '2016/05/01', count:5 },\n { date: '2016/05/02', count:5 },\n { date: '2016/05/03', count:1 },\n { date: '2016/05/04', count:11 },\n { date: '2016/05/08', count:32 },\n];\n\nconst Demo = () => {\n const [size, setSize] = useState(0)\n return (\n
\n \n \n
\n )\n};\nexport default Demo"},269:{name:269,meta:{},code:'"use strict";\n\nfunction _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }\nvar _react = _interopRequireWildcard(require("react"));\nvar _reactHeatMap = _interopRequireDefault(require("@uiw/react-heat-map"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }\nfunction _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }\nfunction _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nfunction _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }\nfunction _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }\nfunction _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nvar value = [{\n date: \'2016/01/11\',\n count: 2\n}].concat(_toConsumableArray(_toConsumableArray(Array(17)).map(function (_, idx) {\n return {\n date: "2016/01/".concat(idx + 10),\n count: idx\n };\n})), _toConsumableArray(_toConsumableArray(Array(17)).map(function (_, idx) {\n return {\n date: "2016/02/".concat(idx + 10),\n count: idx\n };\n})), [{\n date: \'2016/04/12\',\n count: 2\n}, {\n date: \'2016/05/01\',\n count: 5\n}, {\n date: \'2016/05/02\',\n count: 5\n}, {\n date: \'2016/05/03\',\n count: 1\n}, {\n date: \'2016/05/04\',\n count: 11\n}, {\n date: \'2016/05/08\',\n count: 32\n}]);\nvar Demo = function Demo() {\n var _useState = (0, _react.useState)(\'\'),\n _useState2 = _slicedToArray(_useState, 2),\n selected = _useState2[0],\n setSelected = _useState2[1];\n return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_reactHeatMap["default"], {\n width: 600,\n value: value,\n startDate: new Date(\'2016/01/01\'),\n rectRender: function rectRender(props, data) {\n if (selected !== \'\') {\n props.opacity = data.date === selected ? 1 : 0.45;\n }\n return /*#__PURE__*/_react["default"].createElement("rect", _extends({}, props, {\n onClick: function onClick() {\n setSelected(data.date === selected ? \'\' : data.date);\n }\n }));\n }\n }));\n};\nreturn Demo;',language:"jsx",value:"import React, { useState } from 'react';\nimport HeatMap from '@uiw/react-heat-map';\n\nconst value = [\n { date: '2016/01/11', count:2 },\n ...[...Array(17)].map((_, idx) => ({ date: `2016/01/${idx + 10}`, count: idx })),\n ...[...Array(17)].map((_, idx) => ({ date: `2016/02/${idx + 10}`, count: idx })),\n { date: '2016/04/12', count:2 },\n { date: '2016/05/01', count:5 },\n { date: '2016/05/02', count:5 },\n { date: '2016/05/03', count:1 },\n { date: '2016/05/04', count:11 },\n { date: '2016/05/08', count:32 },\n];\n\nconst Demo = () => {\n const [selected, setSelected] = useState('')\n return (\n
\n {\n if (selected !== '') {\n props.opacity = data.date === selected ? 1 : 0.45\n }\n return (\n {\n setSelected(data.date === selected ? '' : data.date);\n }} />\n );\n }}\n />\n
\n )\n};\nexport default Demo"}},source:"HeatMap \u65e5\u5386\u70ed\u56fe\n===\n\x3c!--rehype:style=text-align: center;--\x3e\n\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\n[![Build & Deploy](https://github.com/uiwjs/react-heat-map/actions/workflows/ci.yml/badge.svg)](https://github.com/uiwjs/react-heat-map/actions/workflows/ci.yml)\n[![Coverage Status](https://img.shields.io/npm/dm/@uiw/react-heat-map.svg?style=flat)](https://www.npmjs.com/package/@uiw/react-heat-map)\n[![npm version](https://img.shields.io/npm/v/@uiw/react-heat-map.svg)](https://www.npmjs.com/package/@uiw/react-heat-map)\n[![npm bundle size](https://img.shields.io/bundlephobia/minzip/@uiw/react-heat-map)](https://bundlephobia.com/result?p=@uiw/react-heat-map)\n[![Open in Gitpod](https://shields.io/badge/Open%20in-Gitpod-green?logo=Gitpod)](https://gitpod.io/#https://github.com/uiwjs/react-codemirror)\n\x3c!--rehype:style=text-align: center;--\x3e\n\nA lightweight calendar heatmap react component built on SVG, customizable version of GitHub's contribution graph. Try it out on [website example](https://uiwjs.github.io/react-heat-map/).\n\n\x3c!--rehype:ignore:start--\x3e\n\n[![](https://user-images.githubusercontent.com/1680273/186116433-d58c2b6d-8468-4322-943c-9b63c2e447e4.png)](https://uiwjs.github.io/react-heat-map)\n\n\x3c!--rehype:ignore:end--\x3e\n\n## Install\n\n```bash\n# Not dependent on uiw.\nnpm install @uiw/react-heat-map --save\n```\nIf using Next.js, you will need to use the [`next-remove-imports`](https://www.npmjs.com/package/next-remove-imports) package to avoid errors, see [issue #69](https://github.com/uiwjs/react-heat-map/issues/69).\n\n## Basic Usage\n\nBasic usage example, Please pay warning to the time setting.\n\n\u26a0\ufe0f Example: ~~`2016-01-11`\x3c!--rehype:style=color: red;background-color: #ffd8d8;--\x3e~~ -> `2016/01/11`\x3c!--rehype:style=color: green;background: #a7e4b5;--\x3e, Support `Safari`\x3c!--rehype:style=background-color: #87d499;--\x3e\n\n```jsx mdx:preview\nimport React from 'react';\nimport HeatMap from '@uiw/react-heat-map';\n\nconst value = [\n { date: '2016/01/11', count: 2 },\n { date: '2016/01/12', count: 20 },\n { date: '2016/01/13', count: 10 },\n ...[...Array(17)].map((_, idx) => ({\n date: `2016/02/${idx + 10}`, count: idx, content: ''\n })),\n { date: '2016/04/11', count: 2 },\n { date: '2016/05/01', count: 5 },\n { date: '2016/05/02', count: 5 },\n { date: '2016/05/04', count: 11 },\n];\n\nconst Demo = () => {\n return (\n
\n \n
\n )\n};\n\nexport default Demo\n```\n\n## Set Color\n\nSet the theme color style.\n\n```jsx mdx:preview\nimport React from 'react';\nimport HeatMap from '@uiw/react-heat-map';\n\nconst value = [\n { date: '2016/01/11', count:2 },\n { date: '2016/04/12', count:2 },\n { date: '2016/05/01', count:17 },\n { date: '2016/05/02', count:5 },\n { date: '2016/05/03', count:27 },\n { date: '2016/05/04', count:11 },\n { date: '2016/05/08', count:32 },\n];\n\nconst Demo = () => {\n return (\n \n )\n};\nexport default Demo\n```\n\nDynamic color based on maximum value\n\n```jsx mdx:preview\nimport React from 'react';\nimport HeatMap from '@uiw/react-heat-map';\n\nconst value = [\n { date: '2016/01/11', count:2 },\n { date: '2016/04/12', count:2 },\n { date: '2016/05/01', count:17 },\n { date: '2016/05/02', count:5 },\n { date: '2016/05/03', count:27 },\n { date: '2016/05/04', count:11 },\n { date: '2016/05/08', count:32 },\n];\n\nconst Demo = () => {\n return (\n \n )\n};\nexport default Demo\n```\n\n## Set Rect Style\n\nSet the radius of the rect.\n\n```jsx mdx:preview\nimport React, { useState } from 'react';\nimport HeatMap from '@uiw/react-heat-map';\n\nconst value = [\n { date: '2016/01/11', count:2 },\n ...[...Array(17)].map((_, idx) => ({ date: `2016/01/${idx + 10}`, count: idx })),\n ...[...Array(17)].map((_, idx) => ({ date: `2016/02/${idx + 10}`, count: idx })),\n { date: '2016/04/12', count:2 },\n { date: '2016/05/01', count:5 },\n { date: '2016/05/02', count:5 },\n { date: '2016/05/03', count:1 },\n { date: '2016/05/04', count:11 },\n { date: '2016/05/08', count:32 },\n];\n\nconst Demo = () => {\n const [range, setRange] = useState(5)\n return (\n
\n setRange(e.target.value)}\n /> {range}\n }\n rectProps={{\n rx: range\n }}\n />\n
\n )\n};\nexport default Demo\n```\n\n## Tooltip\n\nA simple text popup tip.\n\n```jsx mdx:preview\nimport React from 'react';\nimport Tooltip from '@uiw/react-tooltip';\nimport HeatMap from '@uiw/react-heat-map';\n\nconst value = [\n { date: '2016/01/11', count:2 },\n ...[...Array(17)].map((_, idx) => ({ date: `2016/01/${idx + 10}`, count: idx, })),\n ...[...Array(17)].map((_, idx) => ({ date: `2016/02/${idx + 10}`, count: idx, })),\n { date: '2016/04/12', count:2 },\n { date: '2016/05/01', count:5 },\n { date: '2016/05/02', count:5 },\n { date: '2016/05/03', count:1 },\n { date: '2016/05/04', count:11 },\n { date: '2016/05/08', count:32 },\n];\n\nconst Demo = () => {\n return (\n {\n // if (!data.count) return ;\n return (\n \n \n \n );\n }}\n />\n )\n};\nexport default Demo\n```\n\n## Show/Hide Legend\n\n```jsx mdx:preview\nimport React, { useState } from 'react';\nimport HeatMap from '@uiw/react-heat-map';\n\nconst value = [\n { date: '2016/01/11', count:2 },\n ...[...Array(17)].map((_, idx) => ({ date: `2016/01/${idx + 10}`, count: idx })),\n ...[...Array(17)].map((_, idx) => ({ date: `2016/02/${idx + 10}`, count: idx })),\n { date: '2016/04/12', count:2 },\n { date: '2016/05/01', count:5 },\n { date: '2016/05/02', count:5 },\n { date: '2016/05/03', count:1 },\n { date: '2016/05/04', count:11 },\n { date: '2016/05/08', count:32 },\n];\n\nconst Demo = () => {\n const [size, setSize] = useState(0)\n return (\n
\n \n \n
\n )\n};\nexport default Demo\n```\n\n## Selected Rect\n\n```jsx mdx:preview\nimport React, { useState } from 'react';\nimport HeatMap from '@uiw/react-heat-map';\n\nconst value = [\n { date: '2016/01/11', count:2 },\n ...[...Array(17)].map((_, idx) => ({ date: `2016/01/${idx + 10}`, count: idx })),\n ...[...Array(17)].map((_, idx) => ({ date: `2016/02/${idx + 10}`, count: idx })),\n { date: '2016/04/12', count:2 },\n { date: '2016/05/01', count:5 },\n { date: '2016/05/02', count:5 },\n { date: '2016/05/03', count:1 },\n { date: '2016/05/04', count:11 },\n { date: '2016/05/08', count:32 },\n];\n\nconst Demo = () => {\n const [selected, setSelected] = useState('')\n return (\n
\n {\n if (selected !== '') {\n props.opacity = data.date === selected ? 1 : 0.45\n }\n return (\n {\n setSelected(data.date === selected ? '' : data.date);\n }} />\n );\n }}\n />\n
\n )\n};\nexport default Demo\n```\n\n## Props\n\n| Property | Description | Type | Default |\n| ---- | ---- | ---- | ---- |\n| `value` | Data to be displayed, **required** | Array | `[]` |\n| `rectSize` | Grid size | number | `11` |\n| `legendCellSize` | Size of the legend cells, in pixel. Value equal to `0` hide legend. | number | `11` |\n| `startDate` | Start date | Date | `new Date()` |\n| `endDate` | End date | Date | - |\n| `space` | Interval between grid sizes | number | `2` | \n| `monthPlacement` | position of month labels | `'top' | 'bottom'` | `top` | \n| `rectProps` | Grid node attribute settings | `React.SVGProps` | `2` |\n| `weekLabels` | Week display | string[] | `['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']` | \n| `monthLabels` | Month display | string[] | `['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']` | \n| `panelColors` | Backgroud color of active colors | `Record` \\| `string[]` | `['var(--rhm-rect, #EBEDF0)','#C6E48B','#7BC96F', '#239A3B', '#196127']` | \n| `rectRender` | Single `day` block re-render | `(data: E & { key: number }, valueItem: HeatMapValue & { date: string, column: number, row: number, index: number }) => React.ReactElement` | - |\n| `legendRender` | Single `legend` block re-render | `(props: React.SVGProps) => React.ReactNode` | - |\n\n## Development\n\n**`development`**\n\nRuns the project in development mode. \n\n```bash\nnpm install\n```\n\n```bash\n# Step 1, run first, listen to the component compile and output the .js file\n# listen for compilation output type .d.ts file\nnpm run watch\n# Step 2, development mode, listen to compile preview website instance\nnpm run start\n```\n\n**`production`**\n\nBuilds the app for production to the build folder.\n\n```bash\nnpm run build\nnpm run doc\n```\n\nThe build is minified and the filenames include the hashes.\nYour app is ready to be deployed!\n\n## Contributors\n\nAs always, thanks to our amazing contributors!\n\n\n \n\n\nMade with [github-action-contributors](https://github.com/jaywcjlove/github-action-contributors).\n\n## License\n\nLicensed under the MIT License.\n\n",headings:[],headingsList:[]};function nl(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var sl,ol,il,dl=r(2073),ul=r(6204);const cl=Jt.div(sl||(sl=nl(["\n background-color: #fff;\n border-radius: 5px;\n box-shadow: 0 0 0 1px rgb(16 22 26 / 10%), 0 0 0 rgb(16 22 26 / 0%), 0 1px 1px rgb(16 22 26 / 20%);\n margin: 0 auto;\n margin-top: 70px;\n width: 663px;\n svg {\n border-radius: 5px;\n }\n"]))),ll=Jt.div(ol||(ol=nl(["\n user-select: none;\n font-size: 12px;\n margin-top: 10px !important;\n padding: 10px;\n padding-left: 0px;\n border-radius: 5px;\n width: 663px;\n margin: 0 auto;\n label {\n display: flex;\n align-items: center;\n input {\n margin-right: 5px;\n margin-left: 10px;\n }\n }\n"]))),pl=Jt.div(il||(il=nl(["\n display: flex;\n flex-direction: column;\n"]))),fl=[{date:"2016/01/11",count:2,content:""},...[...Array(17)].map(((e,t)=>({date:"2016/02/".concat(t+10),count:t,content:""}))),{date:"2016/03/02",count:5,content:""},{date:"2016/03/04",count:11,content:""},{date:"2016/03/14",count:31,content:""},{date:"2016/03/16",count:2,content:""},{date:"2016/04/11",count:2,content:""},{date:"2016/05/01",count:5,content:""},{date:"2016/05/02",count:5,content:""},{date:"2016/05/04",count:11,content:""},{date:"2016/05/14",count:31,content:""},{date:"2016/05/16",count:2,content:""},{date:"2016/05/17",count:2,content:""},{date:"2016/05/18",count:2,content:""},{date:"2016/05/19",count:8,content:""},{date:"2016/05/20",count:6,content:""},{date:"2016/05/21",count:41,content:""},{date:"2016/05/22",count:6,content:""},{date:"2016/06/11",count:2,content:""},{date:"2016/07/01",count:5,content:""},{date:"2016/07/02",count:5,content:""},{date:"2016/07/04",count:11,content:""},{date:"2016/07/14",count:31,content:""},{date:"2016/07/16",count:2,content:""},{date:"2016/07/17",count:2,content:""},{date:"2016/07/18",count:2,content:""},{date:"2016/07/19",count:8,content:""},{date:"2016/07/20",count:6,content:""},{date:"2016/07/21",count:41,content:""},{date:"2016/07/22",count:6,content:""},...[...Array(17)].map(((e,t)=>({date:"2016/08/".concat(t+10),count:t,content:""})))],gl=[{date:"2016/04/02",count:5,content:""},{date:"2016/04/04",count:11,content:""},{date:"2016/04/14",count:31,content:""},{date:"2016/04/16",count:2,content:""},{date:"2016/04/17",count:2,content:""},{date:"2016/04/18",count:2,content:""},{date:"2016/04/19",count:8,content:""},{date:"2016/04/11",count:2,content:""},{date:"2016/04/01",count:5,content:""},{date:"2016/04/02",count:5,content:""},{date:"2016/04/04",count:11,content:""},{date:"2016/04/14",count:31,content:""},{date:"2016/04/16",count:2,content:""},{date:"2016/04/17",count:2,content:""},{date:"2016/04/18",count:2,content:""},{date:"2016/04/19",count:8,content:""},{date:"2016/04/20",count:6,content:""},{date:"2016/04/21",count:41,content:""},{date:"2016/04/22",count:6,content:""}],ml={0:"rgb(255 255 255 / 25%)",8:"#7BC96F",4:"#C6E48B",12:"#239A3B",32:"#ff7b00"};function hl(){const[e,t]=(0,i.useState)(fl),[r,a]=(0,i.useState)(),[n,s]=(0,i.useState)(!1),[o,d]=(0,i.useState)(!1),[u,c]=(0,i.useState)(!1),[l,p]=(0,i.useState)(11),[f,g]=(0,i.useState)("top"),[m,h]=(0,i.useState)(),[y,b]=(0,i.useState)(void 0),[v,x]=(0,i.useState)(void 0);return(0,Xt.jsxs)(pl,{children:[(0,Xt.jsx)(cl,{children:(0,Xt.jsx)(ul.default,{style:{backgroundColor:o?"#000":"#fff",color:o?"#888":"#000"},panelColors:o?ml:void 0,width:663,rectSize:l,legendCellSize:m,weekLabels:y,monthLabels:v,startDate:new Date("2016/01/01"),endDate:n?new Date("2016/6/01"):void 0,monthPlacement:f,value:e,rectProps:{rx:u?5:0,onClick:e=>{a(e.target.dataset.date)}},legendRender:e=>(0,i.createElement)("rect",(0,jn.A)((0,jn.A)({},e),{},{key:e.key,rx:u?5:0})),rectRender:(e,t)=>(0,Xt.jsx)(dl.default,{placement:"top",content:"count: ".concat(t.count||0),children:(0,Xt.jsx)("rect",(0,jn.A)({},e))},t.index)})}),(0,Xt.jsxs)(ll,{children:[(0,Xt.jsxs)("div",{style:{paddingLeft:10,paddingBottom:20},children:[(0,Xt.jsx)("button",{onClick:()=>t(fl),children:"Value 1"}),(0,Xt.jsx)("button",{onClick:()=>t(gl),children:"Value 2"}),(0,Xt.jsx)("span",{children:r})]}),(0,Xt.jsxs)("label",{children:[(0,Xt.jsx)("input",{type:"checkbox",checked:n,onChange:e=>s(e.target.checked)}),"endDate = ",n?"2016/6/01":"undefined"]}),(0,Xt.jsxs)("label",{children:[(0,Xt.jsx)("input",{type:"checkbox",checked:o,onChange:e=>d(e.target.checked)}),o?"Dark":"Light"]}),(0,Xt.jsxs)("label",{children:[(0,Xt.jsx)("input",{type:"checkbox",checked:u,onChange:e=>c(e.target.checked)}),u?"Circle":"Rect"]}),(0,Xt.jsxs)("label",{style:{marginTop:15},children:[(0,Xt.jsx)("input",{type:"radio",name:"weekLabels",checked:void 0===y,onChange:e=>b(void 0)}),"weekLabels = undefined, Default: ",JSON.stringify(["Sun","Mon","Tue","Wed","Thu","Fri","Sat"])]}),(0,Xt.jsxs)("label",{children:[(0,Xt.jsx)("input",{type:"radio",name:"weekLabels",checked:!1===y,onChange:e=>b(!1)}),"weekLabels = false"]}),(0,Xt.jsxs)("label",{children:[(0,Xt.jsx)("input",{type:"radio",name:"weekLabels",checked:Array.isArray(y),onChange:e=>b(["\u65e5","\u4e00","","\u4e09","","\u4e94","\u516d"])}),"weekLabels = ",JSON.stringify(["\u65e5","\u4e00","","\u4e09","","\u4e94","\u516d"])]}),(0,Xt.jsxs)("label",{style:{marginTop:15},children:[(0,Xt.jsx)("input",{type:"radio",name:"monthLabels",checked:void 0===v,onChange:e=>x(void 0)}),"monthLabels = undefined, Default:"," ",JSON.stringify(["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"])]}),(0,Xt.jsxs)("label",{children:[(0,Xt.jsx)("input",{type:"radio",name:"monthLabels",checked:!1===v,onChange:e=>x(!1)}),"monthLabels = false"]}),(0,Xt.jsxs)("label",{children:[(0,Xt.jsx)("input",{type:"radio",name:"monthLabels",checked:Array.isArray(v),onChange:e=>x(["\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d","\u4e03","\u516b","\u4e5d","\u5341","\u5341\u4e00","\u5341\u4e8c"])}),"monthLabels = ",JSON.stringify(["\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d","\u4e03","\u516b","\u4e5d","\u5341","\u5341\u4e00","\u5341\u4e8c"])]}),(0,Xt.jsxs)("div",{style:{display:"flex",marginTop:10},children:[(0,Xt.jsxs)("label",{children:[(0,Xt.jsx)("input",{type:"radio",name:"rectSize",checked:11===l,onChange:e=>p(11)}),"rectSize = 11"]}),(0,Xt.jsxs)("label",{children:[(0,Xt.jsx)("input",{type:"radio",name:"rectSize",checked:12===l,onChange:e=>p(12)}),"rectSize = 12"]}),(0,Xt.jsxs)("label",{children:[(0,Xt.jsx)("input",{type:"radio",name:"rectSize",checked:14===l,onChange:e=>p(14)}),"rectSize = 14"]})]}),(0,Xt.jsxs)("div",{style:{display:"flex",marginTop:16},children:[(0,Xt.jsx)("label",{children:(0,Xt.jsxs)("select",{value:f,onChange:e=>g(e.target.value),children:[(0,Xt.jsx)("option",{value:"top",children:"monthPlacement = top"}),(0,Xt.jsx)("option",{value:"bottom",children:"monthPlacement = bottom"})]})}),(0,Xt.jsxs)("label",{children:[(0,Xt.jsx)("input",{type:"number",value:m||"",onChange:e=>h(Number(e.target.value)||0)}),"legendCellSize = ",m]})]})]})]})}const yl=rl.Github,bl=rl.Example,vl=document.getElementById("root");(0,a.H)(vl).render((0,Xt.jsxs)(rl,{source:al.source,components:al.components,data:al.data,title:"HeatMap for React",description:"React component create calendar heatmap to visualize time series data, a la github contribution graph.",version:"v".concat("2.3.2"),children:[(0,Xt.jsx)(yl,{href:"https://github.com/uiwjs/react-heat-map"}),(0,Xt.jsx)(bl,{children:(0,Xt.jsx)(hl,{})})]}))},6204:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>E});var a=r(8102),n=r(9257),s=r(7804),o=r(9424),i={textAnchor:"middle",fontSize:"inherit",fill:"currentColor"},d=e=>{var{weekLabels:t=[],rectSize:r=0,topPad:a=0,space:n=0}=e;return(0,s.useMemo)((()=>(0,o.jsx)(s.Fragment,{children:[...Array(7)].map(((e,s)=>t&&t[s]?(0,o.jsx)("text",{className:"w-heatmap-week",x:15,y:a,dy:(s+1)*(r+n)-5,style:i,children:t[s]},s):null))})),[r,n,a,t])},u=864e5;function c(e){return e instanceof Date&&!isNaN(e.getTime())}function l(e){return e.getFullYear()+"/"+(e.getMonth()+1)+"/"+e.getDate()}var p=(e,t)=>{var r=Math.ceil(t/(e.length-1)),a={};return e.forEach(((e,t)=>{a[t*r]=e})),a},f=e=>{var{monthLabels:t=[],rectSize:r=0,space:a=0,leftPad:n=0,colNum:d=0,rectY:c=15,startDate:l,endDate:p}=e,f=(0,s.useMemo)((()=>((e,t,r,a)=>!1===t||e<1?[]:Array.from({length:7*e}).map(((e,n)=>{if(n/7%1===0){var s=new Date(r.getTime()+n*u),o=s.getMonth();return a&&s>a?null:{col:n/7,index:n,month:o,day:s.getDate(),monthStr:t[o],date:s}}return null})).filter(Boolean).filter(((e,t,r)=>r[t-1]&&r[t-1].month!==e.month)))(d,t,l,p)),[d,t,l,p]);return(0,o.jsx)(s.Fragment,{children:f.map(((e,t)=>(0,o.jsx)("text",{"data-size":r,x:n+a+a,y:c,dx:e.col*(r+a),textAnchor:"start",style:i,children:e.monthStr},t)))})},g=["style","value","render","key"],m=e=>{var{style:t,value:r,render:i}=e,d=(0,n.A)(e,g),u=(0,a.A)({},d,{style:(0,a.A)({display:"block",cursor:"pointer"},t)});if(i&&"function"===typeof i){var c=i((0,a.A)({},u),r);if(c&&s.isValidElement(c))return c}return(0,o.jsx)("rect",(0,a.A)({},u))},h=["panelColors","leftPad","topPad","rectY","space","rectSize","legendCellSize","legendRender"];function y(e){var{panelColors:t,leftPad:r=0,topPad:i=0,rectY:d=15,space:u=0,rectSize:c=0,legendCellSize:l=0,legendRender:p}=e,f=(0,n.A)(e,h),g=l||c;return(0,s.useMemo)((()=>(0,o.jsx)(s.Fragment,{children:Object.keys(t||{}).map(((e,n)=>{var o=(0,a.A)({},f,{key:n,x:(g+1)*n+r,y:d,fill:t[Number(e)],width:g,height:g});return p?p(o):(0,s.createElement)(m,(0,a.A)({},o,{key:n}))}))})),[t,f,g,d,r,c,p])}var b=e=>{var{transform:t,gridNum:r=0,startY:n=0,panelColors:i={},initStartDate:d,space:p=2,value:f=[],rectSize:g=11,endDate:h,rectProps:y,rectRender:b}=e,v=(0,s.useMemo)((()=>function(e){void 0===e&&(e=[]);var t={};return e.forEach((e=>{e.date&&c(new Date(e.date))&&(e.date=l(new Date(e.date)),t[e.date]=e)})),t}(f)),[f]),x=(0,s.useMemo)((()=>{return void 0===(e=Object.keys(i).map((e=>parseInt(e,10))))&&(e=[]),e.sort(((e,t)=>et?1:0));var e}),[i]);return(0,o.jsx)("g",{transform:t,children:r>0&&[...Array(r)].map(((e,t)=>(0,o.jsx)("g",{"data-column":t,children:[...Array(7)].map(((e,r)=>{var n=new Date(d.getTime()+u*(7*t+r)),o=l(n),c=(0,a.A)({},v[o],{date:o,row:r,column:t,index:7*t+r}),f=(0,a.A)({},y,{fill:"var(--rhm-rect, #EBEDF0)",width:g,height:g,x:t*(g+p),y:(g+p)*r,render:b,value:c});return h instanceof Date&&n.getTime()>h.getTime()?null:(o&&v[o]&&i&&Object.keys(i).length>0?f.fill=function(e,t,r){void 0===e&&(e=0),void 0===r&&(r={});for(var a="",n=0;ne){a=r[t[n]];break}a=r[t[n]]}return a}(v[o].count||0,x,i):i&&i[0]&&(f.fill=i[0]),(0,s.createElement)(m,(0,a.A)({},f,{key:r,value:c,"data-date":o,"data-index":c.index,"data-row":c.row,"data-column":c.column})))}))},t)))})},v=["rectSize","legendCellSize","space","monthPlacement","startDate","endDate","rectProps","rectRender","legendRender","value","weekLabels","monthLabels","panelColors","style"];function x(e){var t=e||{},{rectSize:r=11,legendCellSize:i=11,space:l=2,monthPlacement:g="top",startDate:m=new Date,endDate:h,rectProps:x,rectRender:R,legendRender:E,value:D=[],weekLabels:w=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],monthLabels:j=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],panelColors:A=["var(--rhm-rect, #EBEDF0)","#C6E48B","#7BC96F","#239A3B","#196127"],style:C}=t,S=(0,n.A)(t,v),T=Math.max(...D.map((e=>e.count)),0),k=Array.isArray(A)?p(A,T):A,[P,F]=(0,s.useState)(0),[_,I]=(0,s.useState)(w?28:5),B="top"===g?20:5,[O,N]=(0,s.useState)(j?B:5),M=s.createRef();(0,s.useEffect)((()=>I(w?28:5)),[w]),(0,s.useEffect)((()=>{if(M.current){var e=M.current.clientWidth-_||0;F(Math.floor(e/(r+l))||0)}}),[r,M,l,_]),(0,s.useEffect)((()=>{N(j?B:5)}),[j]);var L=(0,s.useMemo)((()=>{if(c(m))return m.getDay()?new Date(m.getTime()-m.getDay()*u):m;var e=new Date;return new Date(e.getTime()-e.getDay()*u)}),[m]),U="top"===g?15:105+l,q="top"===g?O+8*r+6:(j?O+r+l:O)+8*r+6;return(0,o.jsxs)("svg",(0,a.A)({ref:M,style:(0,a.A)({},{color:"var(--rhm-text-color, #24292e)",userSelect:"none",display:"block",fontSize:10},C)},S,{children:[0!==i&&(0,o.jsx)(y,{legendRender:E,panelColors:k,rectSize:r,rectY:q,legendCellSize:i,leftPad:_,topPad:O,space:l}),(0,o.jsx)(d,{weekLabels:w,rectSize:r,space:l,topPad:O}),(0,o.jsx)(f,{monthLabels:j,rectSize:r,space:l,leftPad:_,colNum:P,rectY:U,startDate:L,endDate:h}),(0,o.jsx)(b,{transform:"translate("+_+", "+O+")",gridNum:P,initStartDate:L,endDate:h,rectProps:x,rectSize:r,rectRender:R,panelColors:k,value:D,space:l})]}))}var R=["prefixCls","className"];function E(e){var{prefixCls:t="w-heatmap",className:r}=e,s=(0,n.A)(e,R),i=[r,t].filter(Boolean).join(" ");return(0,o.jsx)(x,(0,a.A)({className:i},s))}},8474:function(e){e.exports=function(){"use strict";function e(e,t){if("undefined"===typeof document)return;const r=document.createElement("textarea");r.value=e,r.setAttribute("readonly",""),r.style={position:"absolute",left:"-9999px"},document.body.appendChild(r);const a=document.getSelection().rangeCount>0&&document.getSelection().getRangeAt(0);r.select();let n=!1;try{n=!!document.execCommand("copy")}catch(s){n=!1}document.body.removeChild(r),a&&document.getSelection&&(document.getSelection().removeAllRanges(),document.getSelection().addRange(a)),t&&t(n)}return e}()},2073:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>K});var a=r(8102),n=r(9257),s=r(7804);function o(){}function i(e,t){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},i(e,t)}function d(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,i(e,t)}function u(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var c=r(4689);const l=!1,p=s.createContext(null);var f=function(e){return e.scrollTop},g="unmounted",m="exited",h="entering",y="entered",b="exiting",v=function(e){function t(t,r){var a;a=e.call(this,t,r)||this;var n,s=r&&!r.isMounting?t.enter:t.appear;return a.appearStatus=null,t.in?s?(n=m,a.appearStatus=h):n=y:n=t.unmountOnExit||t.mountOnEnter?g:m,a.state={status:n},a.nextCallback=null,a}d(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===g?{status:m}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==h&&r!==y&&(t=h):r!==h&&r!==y||(t=b)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,r,a=this.props.timeout;return e=t=r=a,null!=a&&"number"!==typeof a&&(e=a.exit,t=a.enter,r=void 0!==a.appear?a.appear:t),{exit:e,enter:t,appear:r}},r.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===h){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:c.findDOMNode(this);r&&f(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===m&&this.setState({status:g})},r.performEnter=function(e){var t=this,r=this.props.enter,a=this.context?this.context.isMounting:e,n=this.props.nodeRef?[a]:[c.findDOMNode(this),a],s=n[0],o=n[1],i=this.getTimeouts(),d=a?i.appear:i.enter;!e&&!r||l?this.safeSetState({status:y},(function(){t.props.onEntered(s)})):(this.props.onEnter(s,o),this.safeSetState({status:h},(function(){t.props.onEntering(s,o),t.onTransitionEnd(d,(function(){t.safeSetState({status:y},(function(){t.props.onEntered(s,o)}))}))})))},r.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),a=this.props.nodeRef?void 0:c.findDOMNode(this);t&&!l?(this.props.onExit(a),this.safeSetState({status:b},(function(){e.props.onExiting(a),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:m},(function(){e.props.onExited(a)}))}))}))):this.safeSetState({status:m},(function(){e.props.onExited(a)}))},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(a){r&&(r=!1,t.nextCallback=null,e(a))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:c.findDOMNode(this),a=null==e&&!this.props.addEndListener;if(r&&!a){if(this.props.addEndListener){var n=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],s=n[0],o=n[1];this.props.addEndListener(s,o)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},r.render=function(){var e=this.state.status;if(e===g)return null;var t=this.props,r=t.children,a=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,n.A)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return s.createElement(p.Provider,{value:null},"function"===typeof r?r(e,a):s.cloneElement(s.Children.only(r),a))},t}(s.Component);function x(){}v.contextType=p,v.propTypes={},v.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:x,onEntering:x,onEntered:x,onExit:x,onExiting:x,onExited:x},v.UNMOUNTED=g,v.EXITED=m,v.ENTERING=h,v.ENTERED=y,v.EXITING=b;const R=v;var E=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return a=t,void((r=e).classList?r.classList.remove(a):"string"===typeof r.className?r.className=u(r.className,a):r.setAttribute("class",u(r.className&&r.className.baseVal||"",a)));var r,a}))},D=function(e){function t(){for(var t,r=arguments.length,a=new Array(r),n=0;n()=>{r.current&&a.current&&(a.current.removeChild(r.current),r.current=void 0)}),[]),j?(a.current||(a.current=document.body),r.current||(r.current=document.createElement("div"),a.current.appendChild(r.current)),c.createPortal(e.children,r.current)):null}var C=r(9424),S=["className","style","isOpen","prefixCls","usePortal","maskClosable","backdropProps","portalProps","hasBackdrop","unmountOnExit","timeout","transitionName","onOpening","onOpened","onClosing","onClosed","onClose","onEnter","onExiting","onEntering","onEntered","onExit","children","dialogProps"];function T(e){var{className:t,style:r,isOpen:i=!1,prefixCls:d="w-overlay",usePortal:u=!0,maskClosable:c=!0,backdropProps:l={},portalProps:p={},hasBackdrop:f=!0,unmountOnExit:g=!0,timeout:m=300,transitionName:h="w-overlay",onOpening:y=o,onOpened:b=o,onClosing:v=o,onClosed:x=o,onClose:R=o,onEnter:E=o,onExiting:D=o,onEntering:j=o,onEntered:T=o,onExit:k=o,children:P,dialogProps:F={}}=e,_=(0,n.A)(e,S),[I,B]=(0,s.useState)(),[O,N]=(0,s.useState)(!1),M=(0,s.useRef)(null),L=(0,s.useRef)(null);(0,s.useEffect)((()=>{I!==e.isOpen&&e.isOpen&&N(!0),I===e.isOpen||e.isOpen||(W(),B(!1))}),[e.isOpen]),(0,s.useEffect)((()=>{O&&(f&&u&&document.body.classList.add(d+"-open"),B(!0))}),[O]);var U="object"===typeof P?(0,s.cloneElement)(P,(0,a.A)({},F,{style:(0,a.A)({},P.props.style,F.style),className:[P.props.className,d+"-content"].filter(Boolean).join(" ").trim(),tabIndex:0})):(0,C.jsx)("span",(0,a.A)({},F,{className:d+"-content",children:P}));function q(e){e.target!==M.current&&u||(c&&f&&(W(),B(!1),R&&R(e)),l&&l.onMouseDown&&l.onMouseDown(e))}function W(){f&&u&&document.body.classList.remove(d+"-open")}var H=(0,C.jsx)(w,(0,a.A)({classNames:h,unmountOnExit:g,timeout:m,in:I,onEnter:e=>{E(L.current,e)},onEntering:e=>{y(L.current,e),j(L.current)},onEntered:e=>{b(L.current,e),T(L.current)},onExiting:()=>{v(L.current),D(L.current)},onExited:()=>{var e;e=L.current,N(!1),x&&x(e),k(L.current)},nodeRef:L},_,{children:e=>(0,C.jsxs)("div",{style:r,ref:L,className:[d,t,u?null:d+"-inline",I?d+"-enter-done":null].filter(Boolean).join(" ").trim(),children:[f&&(0,s.cloneElement)((0,C.jsx)("div",{}),(0,a.A)({},l,{onMouseDown:q,className:[d+"-backdrop",l.className].filter(Boolean).join(" ").trim(),tabIndex:c?0:null})),u?(0,C.jsx)("div",{ref:M,onMouseDown:q,className:d+"-container",children:(0,s.cloneElement)(U,{"data-status":e})}):(0,s.cloneElement)(U,{"data-status":e})]})}));return O&&u?(0,C.jsx)(A,(0,a.A)({},(0,a.A)({},p),{children:H})):H}function k(e,t){if(t)do{if(t===e)return!0}while(t=t.parentNode);return!1}function P(e){return"function"===typeof HTMLElement?e instanceof HTMLElement:e&&"object"===typeof e&&1===e.nodeType&&"string"===typeof e.nodeName}const F=!("undefined"===typeof window||!window.document||!window.document.createElement)?function(e,t){return e&&e.contains&&"function"===typeof e.contains&&P(t)?e.contains(t):e&&e.compareDocumentPosition&&P(t)?e===t||!!e.compareDocumentPosition(t):k(e,t)}:k;function _(e,t){if("undefined"===typeof window)return 0;var r=t?"scrollTop":"scrollLeft",a=e===window,n=a?e[t?"pageYOffset":"pageXOffset"]:e[r];return a&&"number"!==typeof n&&(n=document.documentElement[r]),n}function I(e,t){var r="x"===t?"Left":"Top",a="Left"===r?"Right":"Bottom";return parseFloat(e["border"+r+"Width"])+parseFloat(e["border"+a+"Width"])}const B="undefined"!==typeof window&&"undefined"!==typeof document;var O=B&&!(!window.MSInputMethodContext||!document.documentMode),N=B&&/MSIE 10/.test(navigator.userAgent);function M(e){return 11===e?O:10===e?N:O||N}function L(e,t,r,a){return Math.max(t["offset"+e],t["scroll"+e],r["client"+e],r["offset"+e],r["scroll"+e],M(10)?parseInt(r["offset"+e],10)+parseInt(a["margin"+("Height"===e?"Top":"Left")],10)+parseInt(a["margin"+("Height"===e?"Bottom":"Right")],10):0)}function U(e){var t={};try{if(M(10)){t=e.getBoundingClientRect();var r=_(e,!0),n=_(e);t.top+=r,t.left+=n,t.bottom+=r,t.right+=n}else t=e.getBoundingClientRect()}catch(f){}var s,o={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},i="HTML"===e.nodeName?function(e){var t=e.body,r=e.documentElement,a=getComputedStyle(r);return{height:L("Height",t,r,a),width:L("Width",t,r,a)}}(e.ownerDocument):{},d=i.width||e.clientWidth||o.right-o.left,u=i.height||e.clientHeight||o.bottom-o.top,c=e.offsetWidth-d,l=e.offsetHeight-u;if(o.offsetLeft=e.offsetLeft||e.scrollLeft||0,o.offsetTop=e.offsetTop||e.offsetTop||0,c||l){var p=function(e,t){if(1!==e.nodeType)return[];var r=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?r[t]:r}(e);c-=I(p,"x"),l-=I(p,"y"),o.width-=c,o.height-=l}return s=o,(0,a.A)({},s,{right:s.left+s.width,bottom:s.top+s.height})}function q(e){var t=e.getBoundingClientRect();return{width:e.offsetWidth||e.scrollWidth||t.width||0,height:e.offsetHeight||e.scrollHeight||t.height||0}}function W(e){var{trigger:t,popup:r,placement:n,usePortal:s,autoAdjustOverflow:o}=e||{},i={left:0,top:0,placement:n};if(!t||!r||!document)return i;var d=Math.max(document.documentElement.clientHeight,window.innerHeight||0),u=Math.max(document.documentElement.clientWidth,window.innerWidth||0);i.placement=n;var c=_(t.ownerDocument.documentElement,!0),l=_(t.ownerDocument.documentElement),p=(0,a.A)({},U(t),q(t)),f=(0,a.A)({},U(r),q(r)),g=d-p.bottom,m=u-p.left-p.width;switch(i.top=p.top+c,i.left=p.left,s||(i.top=p.offsetTop,i.left=p.offsetLeft),n&&/^(top)/.test(n)&&(i.top-=f.height),n&&/^(right)/.test(n)&&(i.left+=p.width),n&&/^(bottom)/.test(n)&&(i.top+=p.height),n&&/^(left)/.test(n)&&(i.left-=f.width),i.placement){case"bottomLeft":case"topLeft":case"rightTop":case"leftTop":default:break;case"bottom":case"top":i.left=i.left-(f.width-p.width)/2;break;case"bottomRight":case"topRight":i.left=i.left+l+p.width-f.width;break;case"right":case"left":i.top=i.top-(f.height-p.height)/2;break;case"rightBottom":case"leftBottom":i.top=i.top-f.height+p.height}return o&&(n&&/^(top)/.test(n)&&p.topf.height&&(i.placement=n.replace(/^top/,"bottom"),i.top=i.top+f.height+p.height),n&&/^(bottom)/.test(n)&&gf.height&&(i.placement=n.replace(/^bottom/,"top"),i.top=i.top-f.height-p.height),n&&/^(right)/.test(n)&&me&&"object"===typeof e?e:{show:e,hide:e};const G=s.forwardRef(((e,t)=>{var r,{className:i,prefixCls:d="w-overlay-trigger",usePortal:u=!0,isOutside:c=!1,isClickOutside:l=!0,disabled:p=!1,isOpen:f=!1,trigger:g="hover",placement:m="top",autoAdjustOverflow:h,transitionName:y,children:b,overlay:v,onVisibleChange:x=o,onEnter:R=o}=e,E=(0,n.A)(e,H),D=(0,s.useRef)(999),w=(0,s.useRef)(),j=(0,s.useRef)(),A=(0,s.useRef)([]),S=(0,s.useRef)(null),[k,P]=(0,s.useState)(!!e.isOpen),[_,I]=(0,s.useState)({placement:m,top:0,bottom:0,left:0,right:0,zIndex:D.current});(0,s.useImperativeHandle)(t,(()=>({hide:()=>K(),show:()=>Y(),overlayDom:j})));var B=s.Children.only(b),O=(0,a.A)({},E,{placement:m,isOpen:k,dialogProps:{}}),N={};(0,s.useEffect)((()=>(l&&k&&(document&&document.addEventListener("mousedown",L),window.addEventListener("resize",M)),()=>{document&&l&&document.removeEventListener("mousedown",L),window.removeEventListener("resize",M)})),[k]),(0,s.useEffect)((()=>{e.isOpen!==k&&P(!!e.isOpen)}),[e.isOpen]),(0,s.useEffect)((()=>{var e=W({placement:_.placement||m,trigger:w.current,popup:j.current,usePortal:u,autoAdjustOverflow:h});I((0,a.A)({},e,{zIndex:D.current})),x(k)}),[k]);var M=()=>{k&&(D.current-=1,P(!1),x&&x(!1))},L=e=>{var t=j.current,r=w.current;t&&r&&e.target&&!F(t,e.target)&&!F(r,e.target)&&(D.current-=1,P(!1),x&&x(!1))};function U(){if(A.current.length>0){for(var e of A.current)window.clearTimeout(e);A.current=[]}}function q(){var t;U(),S.current="show";var r=z(e.delay);if(r.show||null!=(t=e.children)&&t.props.disabled){var a=window.setTimeout((()=>{"show"===S.current&&Y()}),r.show);clearTimeout(a),A.current.push(a)}else Y()}function G(t){if(U(),t||!e.isOutside){S.current="hide";var r=z(e.delay);if(r.hide){var a=window.setTimeout((()=>{"hide"===S.current&&K()}),r.hide);A.current.push(a)}else K()}}function V(e,t,r){var a=t.currentTarget,n=t.relatedTarget||t.nativeEvent[r],s=!0;(j.current&&F(j.current,n)||w.current&&F(w.current,n))&&(s=!1),n&&n===a||F(a,n)||e(s,t)}function K(){k&&(D.current<=999?D.current=999:D.current-=1,P(!1))}function Y(){var e;if(!k){var t=null==(e=w.current)?void 0:e.style.zIndex;t?D.current=Number(t)+1:D.current+=1,P(!0)}}return"click"!==g||p||(N.onClick=e=>{var{onClick:t}=B&&s.isValidElement(B)?B.props:{};k?K():Y(),t&&t(e,!k)}),"focus"!==g||p||(N.onFocus=()=>q()),"hover"!==g||p||(N.onMouseOver=N.onMouseEnter=e=>{V(q,e,"fromElement")},N.onMouseOut=N.onMouseLeave=e=>{V(G,e,"toElement")},O.dialogProps&&(O.dialogProps.onMouseLeave=e=>{V(G,e,"toElement")})),O.style=(0,a.A)({},O.style,_),(0,C.jsxs)(s.Fragment,{children:[(0,s.cloneElement)(B,Object.assign({},B.props,(0,a.A)({},N,{ref:w,style:(0,a.A)({},null==(r=B.props)?void 0:r.style,{zIndex:D.current}),className:[B.props.className,p?d+"-disabled":null].filter(Boolean).join(" ").trim()}))),(0,C.jsx)(T,(0,a.A)({},O,{style:(0,a.A)({},O.style,_),onEnter:function(e,t){R&&R(e,t);var r=W({placement:_.placement||m,trigger:w.current,popup:j.current,usePortal:u,autoAdjustOverflow:h});I((0,a.A)({},r,{zIndex:D.current}))},className:[d,i,_.placement].filter(Boolean).join(" ").trim(),usePortal:u,transitionName:y,isOpen:k,hasBackdrop:!1,children:(0,s.cloneElement)(v,Object.assign((0,a.A)({},v.props,{ref:j,className:[v.props&&v.props.className,m].filter(Boolean).join(" ").trim()})))}))]})}));var V=["prefixCls","className","placement","isOpen","trigger","delay","usePortal","visibleArrow","onVisibleChange"];const K=function(e){void 0===e&&(e={});var{prefixCls:t="w-tooltip",className:r,placement:s="top",isOpen:o=!1,trigger:i,delay:d,usePortal:u=!0,visibleArrow:c=!0,onVisibleChange:l}=e,p=(0,n.A)(e,V),f=[t,r,c?null:"no-arrow"].filter(Boolean).join(" ").trim();return(0,C.jsx)(G,(0,a.A)({usePortal:u,isOpen:o,trigger:i,delay:d,onVisibleChange:l,placement:s},p,{overlay:(0,C.jsxs)("div",{className:f,children:[c&&(0,C.jsx)("div",{className:t+"-arrow"}),(0,C.jsx)("div",{className:t+"-inner",children:e.content})]}),children:"object"===typeof e.children?e.children:(0,C.jsx)("span",{children:e.children})}))}},4441:(e,t,r)=>{var a=r(5707).default;const n=document,s="_dark_mode_theme_",o="permanent",i="colorschemechange",d="light",u="dark",c=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t;Object.defineProperty(e,r,{enumerable:!0,get(){const e=this.getAttribute(t);return null===e?"":e},set(e){this.setAttribute(t,e)}})};class l extends HTMLElement{static get observedAttributes(){return["mode",d,u,o]}constructor(){super(),a(this,"LOCAL_NANE",s),this.t()}connectedCallback(){c(this,"mode"),c(this,u),c(this,d),function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t;Object.defineProperty(e,r,{enumerable:!0,get(){return this.hasAttribute(t)},set(e){e?this.setAttribute(t,""):this.removeAttribute(t)}})}(this,o);const e=localStorage.getItem(s);e&&[d,u].includes(e)&&(this.mode=e,this.permanent=!0),this.permanent&&!e&&localStorage.setItem(s,this.mode);const t=[d,u].includes(e);this.permanent&&e?this.o():(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches&&(this.mode=u,this.o()),window.matchMedia&&window.matchMedia("(prefers-color-scheme: light)").matches&&(this.mode=d,this.o())),this.permanent||t||(window.matchMedia("(prefers-color-scheme: light)").onchange=e=>{this.mode=e.matches?d:u,this.o()},window.matchMedia("(prefers-color-scheme: dark)").onchange=e=>{this.mode=e.matches?u:d,this.o()});new MutationObserver(((e,r)=>{this.mode=n.documentElement.dataset.colorMode,this.permanent&&t&&(localStorage.setItem(s,this.mode),this.i("permanentcolorscheme",{permanent:this.permanent})),this.h(),this.i(i,{colorScheme:this.mode})})).observe(n.documentElement,{attributes:!0}),this.i(i,{colorScheme:this.mode}),this.h()}attributeChangedCallback(e,t,r){if("mode"===e&&t!==r&&[d,u].includes(r)){const e=localStorage.getItem(s);this.mode===e?(this.mode=r,this.h(),this.o()):this.mode&&this.mode!==e&&(this.h(),this.o())}else e!==d&&e!==u||t===r||this.h();"permanent"===e&&"boolean"===typeof this.permanent&&(this.permanent?localStorage.setItem(s,this.mode):localStorage.removeItem(s))}o(){n.documentElement.setAttribute("data-color-mode",this.mode)}h(){this.icon.textContent=this.mode===d?"\ud83c\udf12":"\ud83c\udf1e",this.text.textContent=this.mode===d?this.getAttribute(u):this.getAttribute(d),!this.text.textContent&&this.text.parentElement&&this.text&&this.text.parentElement.removeChild(this.text)}t(){var e=this.attachShadow({mode:"open"});this.label=n.createElement("span"),this.label.setAttribute("class","wrapper"),this.label.onclick=()=>{this.mode=this.mode===d?u:d,this.permanent&&localStorage.setItem(s,this.mode),this.o(),this.h()},e.appendChild(this.label),this.icon=n.createElement("span"),this.label.appendChild(this.icon),this.text=n.createElement("span"),this.label.appendChild(this.text);const t="_dark_mode_style_";if(!n.getElementById(t)){var r=n.createElement("style");r.id=t,r.textContent="\n[data-color-mode*='dark'], [data-color-mode*='dark'] body {\n color-scheme: dark;\n --color-theme-bg: #0d1117;\n --color-theme-text: #c9d1d9;\n background-color: var(--color-theme-bg);\n color: var(--color-theme-text);\n}\n\n[data-color-mode*='light'], [data-color-mode*='light'] body {\n color-scheme: light;\n --color-theme-bg: #fff;\n --color-theme-text: #24292f;\n background-color: var(--color-theme-bg);\n color: var(--color-theme-text);\n}",n.head.appendChild(r)}var a=n.createElement("style");a.textContent="\n .wrapper { cursor: pointer; user-select: none; position: relative; }\n .wrapper > span + span { margin-left: .4rem; }\n ",e.appendChild(a)}i(e,t){this.dispatchEvent(new CustomEvent(e,{bubbles:!0,composed:!0,detail:t}))}}customElements.define("dark-mode",l)},8108:(e,t)=>{"use strict";function r(e,t){return(Array.isArray(t)?t:[t]).some((function(t){return"string"===typeof t&&(t=new RegExp(t)),t.test(e||"")}))}},9050:(e,t)=>{"use strict"},144:e=>{e.exports={trueFunc:function(){return!0},falseFunc:function(){return!1}}},1761:e=>{"use strict";var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,a=Object.defineProperty,n=Object.getOwnPropertyDescriptor,s=function(e){return"function"===typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},o=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var a,n=t.call(e,"constructor"),s=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!s)return!1;for(a in e);return"undefined"===typeof a||t.call(e,a)},i=function(e,t){a&&"__proto__"===t.name?a(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},d=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(n)return n(e,r).value}return e[r]};e.exports=function e(){var t,r,a,n,u,c,l=arguments[0],p=1,f=arguments.length,g=!1;for("boolean"===typeof l&&(g=l,l=arguments[1]||{},p=2),(null==l||"object"!==typeof l&&"function"!==typeof l)&&(l={});p{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,a=/^\s*/,n=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,i=/^[;\s]*/,d=/^\s+|\s+$/g,u="";function c(e){return e?e.replace(d,u):u}e.exports=function(e,d){if("string"!==typeof e)throw new TypeError("First argument must be a string");if(!e)return[];d=d||{};var l=1,p=1;function f(e){var t=e.match(r);t&&(l+=t.length);var a=e.lastIndexOf("\n");p=~a?e.length-a:p+e.length}function g(){var e={line:l,column:p};return function(t){return t.position=new m(e),v(),t}}function m(e){this.start=e,this.end={line:l,column:p},this.source=d.source}m.prototype.content=e;var h=[];function y(t){var r=new Error(d.source+":"+l+":"+p+": "+t);if(r.reason=t,r.filename=d.source,r.line=l,r.column=p,r.source=e,!d.silent)throw r;h.push(r)}function b(t){var r=t.exec(e);if(r){var a=r[0];return f(a),e=e.slice(a.length),r}}function v(){b(a)}function x(e){var t;for(e=e||[];t=R();)!1!==t&&e.push(t);return e}function R(){var t=g();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var r=2;u!=e.charAt(r)&&("*"!=e.charAt(r)||"/"!=e.charAt(r+1));)++r;if(r+=2,u===e.charAt(r-1))return y("End of comment missing");var a=e.slice(2,r-2);return p+=2,f(a),e=e.slice(r),p+=2,t({type:"comment",comment:a})}}function E(){var e=g(),r=b(n);if(r){if(R(),!b(s))return y("property missing ':'");var a=b(o),d=e({type:"declaration",property:c(r[0].replace(t,u)),value:a?c(a[0].replace(t,u)):u});return b(i),d}}return v(),function(){var e,t=[];for(x(t);e=E();)!1!==e&&(t.push(e),x(t));return t}()}},3670:e=>{e.exports=function(e){return null!=e&&null!=e.constructor&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},9386:(e,t)=>{function r(e){let t,r=[];for(let a of e.split(",").map((e=>e.trim())))if(/^-?\d+$/.test(a))r.push(parseInt(a,10));else if(t=a.match(/^(-?\d+)(-|\.\.\.?|\u2025|\u2026|\u22EF)(-?\d+)$/)){let[e,a,n,s]=t;if(a&&s){a=parseInt(a),s=parseInt(s);const e=a{var t,r,a=e.exports={};function n(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function o(e){if(t===setTimeout)return setTimeout(e,0);if((t===n||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"===typeof setTimeout?setTimeout:n}catch(e){t=n}try{r="function"===typeof clearTimeout?clearTimeout:s}catch(e){r=s}}();var i,d=[],u=!1,c=-1;function l(){u&&i&&(u=!1,i.length?d=i.concat(d):c=-1,d.length&&p())}function p(){if(!u){var e=o(l);u=!0;for(var t=d.length;t;){for(i=d,d=[];++c1)for(var r=1;r{"use strict";e.exports=function(e){var t=this;this.Compiler=function(r){return a(r,Object.assign({},t.data("settings"),e,{extensions:t.data("toMarkdownExtensions")||[]}))}};var a=r(7503)},4014:e=>{"use strict";e.exports=function(e,t){var r,a,n=0,s=0;if("string"!==typeof t||1!==t.length)throw new Error("Expected character");e=String(e),a=e.indexOf(t),r=a;for(;-1!==a;)n++,a===r?n>s&&(s=n):n=1,r=a+1,a=e.indexOf(t,r);return s}},7503:(e,t,r)=>{e.exports=r(4127)},3927:e=>{e.exports=function e(t,r){var a,n=-1;if(r.extensions)for(;++n{e.exports=function(e,t,r){var o=r.enter("blockquote"),i=n(a(e,r),s);return o(),i};var a=r(9960),n=r(6242);function s(e,t,r){return">"+(r?"":" ")+e}},5301:(e,t,r)=>{e.exports=function(e,t,r,n){var s=-1;for(;++s{e.exports=function(e,t,r){var c,l,p,f,g=o(r),m=e.value||"",h="`"===g?"GraveAccent":"Tilde";s(e,r)?(p=r.enter("codeIndented"),c=i(m,u)):(l=a(g,Math.max(n(m,g)+1,3)),p=r.enter("codeFenced"),c=l,e.lang&&(f=r.enter("codeFencedLang"+h),c+=d(r,e.lang,{before:"`",after:" ",encode:["`"]}),f()),e.lang&&e.meta&&(f=r.enter("codeFencedMeta"+h),c+=" "+d(r,e.meta,{before:" ",after:"\n",encode:["`"]}),f()),c+="\n",m&&(c+=m+"\n"),c+=l);return p(),c};var a=r(6040),n=r(4014),s=r(3342),o=r(7156),i=r(6242),d=r(8671);function u(e,t,r){return(r?"":" ")+e}},6141:(e,t,r)=>{e.exports=function(e,t,r){var o=n(r),i='"'===o?"Quote":"Apostrophe",d=r.enter("definition"),u=r.enter("label"),c="["+s(r,a(e),{before:"[",after:"]"})+"]: ";u(),!e.url||/[ \t\r\n]/.test(e.url)?(u=r.enter("destinationLiteral"),c+="<"+s(r,e.url,{before:"<",after:">"})+">"):(u=r.enter("destinationRaw"),c+=s(r,e.url,{before:" ",after:" "}));u(),e.title&&(u=r.enter("title"+i),c+=" "+o+s(r,e.title,{before:o,after:o})+o,u());return d(),c};var a=r(6755),n=r(1989),s=r(8671)},6490:(e,t,r)=>{e.exports=s,s.peek=function(e,t,r){return r.options.emphasis||"*"};var a=r(6451),n=r(4046);function s(e,t,r){var s=a(r),o=r.enter("emphasis"),i=n(e,r,{before:s,after:s});return o(),s+i+s}},1384:(e,t,r)=>{e.exports=function(e,t,r){var o,i,d,u,c=Math.max(Math.min(6,e.depth||1),1);if(n(e,r))return o=r.enter("headingSetext"),i=r.enter("phrasing"),d=s(e,r,{before:"\n",after:"\n"}),i(),o(),d+"\n"+a(1===c?"=":"-",d.length-(Math.max(d.lastIndexOf("\r"),d.lastIndexOf("\n"))+1));u=a("#",c),o=r.enter("headingAtx"),i=r.enter("phrasing"),d=(d=s(e,r,{before:"# ",after:"\n"}))?u+" "+d:u,r.options.closeAtx&&(d+=" "+u);return i(),o(),d};var a=r(6040),n=r(723),s=r(4046)},3437:e=>{function t(e){return e.value||""}e.exports=t,t.peek=function(){return"<"}},6951:(e,t,r)=>{e.exports=s,s.peek=function(){return"!"};var a=r(6755),n=r(8671);function s(e,t,r){var s,o,i=e.referenceType,d=r.enter("imageReference"),u=r.enter("label"),c=n(r,e.alt,{before:"[",after:"]"}),l="!["+c+"]";return u(),o=r.stack,r.stack=[],u=r.enter("reference"),s=n(r,a(e),{before:"[",after:"]"}),u(),r.stack=o,d(),"full"!==i&&c&&c===s?"shortcut"!==i&&(l+="[]"):l+="["+s+"]",l}},3179:(e,t,r)=>{e.exports=s,s.peek=function(){return"!"};var a=r(1989),n=r(8671);function s(e,t,r){var s=a(r),o='"'===s?"Quote":"Apostrophe",i=r.enter("image"),d=r.enter("label"),u="!["+n(r,e.alt,{before:"[",after:"]"})+"](";return d(),!e.url&&e.title||/[ \t\r\n]/.test(e.url)?(d=r.enter("destinationLiteral"),u+="<"+n(r,e.url,{before:"<",after:">"})+">"):(d=r.enter("destinationRaw"),u+=n(r,e.url,{before:"(",after:e.title?" ":")"})),d(),e.title&&(d=r.enter("title"+o),u+=" "+s+n(r,e.title,{before:s,after:s})+s,d()),u+=")",i(),u}},6438:(e,t,r)=>{t.blockquote=r(2939),t.break=r(5301),t.code=r(1873),t.definition=r(6141),t.emphasis=r(6490),t.hardBreak=r(5301),t.heading=r(1384),t.html=r(3437),t.image=r(3179),t.imageReference=r(6951),t.inlineCode=r(1951),t.link=r(6296),t.linkReference=r(1220),t.list=r(8948),t.listItem=r(4246),t.paragraph=r(8336),t.root=r(4368),t.strong=r(2855),t.text=r(6847),t.thematicBreak=r(6749)},1951:(e,t,r)=>{e.exports=n,n.peek=function(){return"`"};var a=r(4186);function n(e,t,r){for(var n,s,o,i,d=e.value||"",u="`",c=-1;new RegExp("(^|[^`])"+u+"([^`]|$)").test(d);)u+="`";for(/[^ \r\n]/.test(d)&&(/[ \r\n`]/.test(d.charAt(0))||/[ \r\n`]/.test(d.charAt(d.length-1)))&&(d=" "+d+" ");++c{e.exports=o,o.peek=function(){return"["};var a=r(6755),n=r(4046),s=r(8671);function o(e,t,r){var o,i,d=e.referenceType,u=r.enter("linkReference"),c=r.enter("label"),l=n(e,r,{before:"[",after:"]"}),p="["+l+"]";return c(),i=r.stack,r.stack=[],c=r.enter("reference"),o=s(r,a(e),{before:"[",after:"]"}),c(),r.stack=i,u(),"full"!==d&&l&&l===o?"shortcut"!==d&&(p+="[]"):p+="["+o+"]",p}},6296:(e,t,r)=>{e.exports=i,i.peek=function(e,t,r){return n(e,r)?"<":"["};var a=r(1989),n=r(1455),s=r(4046),o=r(8671);function i(e,t,r){var i,d,u,c,l=a(r),p='"'===l?"Quote":"Apostrophe";return n(e,r)?(c=r.stack,r.stack=[],i=r.enter("autolink"),u="<"+s(e,r,{before:"<",after:">"})+">",i(),r.stack=c,u):(i=r.enter("link"),d=r.enter("label"),u="["+s(e,r,{before:"[",after:"]"})+"](",d(),!e.url&&e.title||/[ \t\r\n]/.test(e.url)?(d=r.enter("destinationLiteral"),u+="<"+o(r,e.url,{before:"<",after:">"})+">"):(d=r.enter("destinationRaw"),u+=o(r,e.url,{before:"(",after:e.title?" ":")"})),d(),e.title&&(d=r.enter("title"+p),u+=" "+l+o(r,e.title,{before:l,after:l})+l,d()),u+=")",i(),u)}},4246:(e,t,r)=>{e.exports=function(e,t,r){var d,u,c,l=n(r),p=s(r);t&&t.ordered&&(l=(t.start>-1?t.start:1)+(!1===r.options.incrementListMarker?0:t.children.indexOf(e))+".");d=l.length+1,("tab"===p||"mixed"===p&&(t&&t.spread||e.spread))&&(d=4*Math.ceil(d/4));return c=r.enter("listItem"),u=i(o(e,r),(function(e,t,r){if(t)return(r?"":a(" ",d))+e;return(r?l:l+a(" ",d-l.length))+e})),c(),u};var a=r(6040),n=r(6261),s=r(9972),o=r(9960),i=r(6242)},8948:(e,t,r)=>{e.exports=function(e,t,r){var n=r.enter("list"),s=a(e,r);return n(),s};var a=r(9960)},8336:(e,t,r)=>{e.exports=function(e,t,r){var n=r.enter("paragraph"),s=r.enter("phrasing"),o=a(e,r,{before:"\n",after:"\n"});return s(),n(),o};var a=r(4046)},4368:(e,t,r)=>{e.exports=function(e,t,r){return a(e,r)};var a=r(9960)},2855:(e,t,r)=>{e.exports=s,s.peek=function(e,t,r){return r.options.strong||"*"};var a=r(3298),n=r(4046);function s(e,t,r){var s=a(r),o=r.enter("strong"),i=n(e,r,{before:s,after:s});return o(),s+s+i+s+s}},6847:(e,t,r)=>{e.exports=function(e,t,r,n){return a(r,e.value,n)};var a=r(8671)},6749:(e,t,r)=>{e.exports=function(e,t,r){var o=a(s(r)+(r.options.ruleSpaces?" ":""),n(r));return r.options.ruleSpaces?o.slice(0,-1):o};var a=r(6040),n=r(3516),s=r(2647)},4127:(e,t,r)=>{e.exports=function(e,t){var r,l=t||{},p={enter:function(e){return p.stack.push(e),t;function t(){p.stack.pop()}},stack:[],unsafe:[],join:[],handlers:{},options:{}};n(p,{unsafe:i,join:o,handlers:s}),n(p,l),p.options.tightDefinitions&&(p.join=[c].concat(p.join));p.handle=a("type",{invalid:d,unknown:u,handlers:p.handlers}),(r=p.handle(e,null,p,{before:"\n",after:"\n"}))&&10!==r.charCodeAt(r.length-1)&&13!==r.charCodeAt(r.length-1)&&(r+="\n");return r};var a=r(5040),n=r(3927),s=r(6438),o=r(1131),i=r(341);function d(e){throw new Error("Cannot handle value `"+e+"`, expected node")}function u(e){throw new Error("Cannot handle unknown node `"+e.type+"`")}function c(e,t){if("definition"===e.type&&e.type===t.type)return 0}},1131:(e,t,r)=>{e.exports=[function(e,t,r,s){if("list"===t.type&&t.type===e.type&&Boolean(e.ordered)===Boolean(t.ordered)||"code"===t.type&&a(t,s)&&("list"===e.type||e.type===t.type&&a(e,s)))return!1;if("boolean"===typeof r.spread){if("paragraph"===e.type&&(e.type===t.type||"definition"===t.type||"heading"===t.type&&n(t,s)))return;return r.spread?1:0}}];var a=r(3342),n=r(723)},341:e=>{e.exports=[{character:"\t",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"\r",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:"\n",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"!",after:"\\[",inConstruct:"phrasing"},{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"},{atBreak:!0,before:"\\d+",character:")"},{character:")",inConstruct:"destinationRaw"},{atBreak:!0,character:"*"},{character:"*",inConstruct:"phrasing"},{atBreak:!0,character:"+"},{atBreak:!0,character:"-"},{atBreak:!0,before:"\\d+",character:".",after:"(?:[ \t\r\n]|$)"},{atBreak:!0,character:"<",after:"[!/?A-Za-z]"},{character:"<",after:"[!/?A-Za-z]",inConstruct:"phrasing"},{character:"<",inConstruct:"destinationLiteral"},{atBreak:!0,character:"="},{atBreak:!0,character:">"},{character:">",inConstruct:"destinationLiteral"},{atBreak:!0,character:"["},{character:"[",inConstruct:["phrasing","label","reference"]},{character:"\\",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"]",inConstruct:["label","reference"]},{atBreak:!0,character:"_"},{before:"[^A-Za-z]",character:"_",inConstruct:"phrasing"},{character:"_",after:"[^A-Za-z]",inConstruct:"phrasing"},{atBreak:!0,character:"`"},{character:"`",inConstruct:["codeFencedLangGraveAccent","codeFencedMetaGraveAccent","phrasing"]},{atBreak:!0,character:"~"}]},6755:(e,t,r)=>{e.exports=function(e){if(e.label||!e.identifier)return e.label||"";return e.identifier.replace(n,"$1").replace(s,o)};var a=r(8976),n=/\\([!-/:-@[-`{-~])/g,s=/&(#(\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function o(e,t){return a(t)||e}},6261:e=>{e.exports=function(e){var t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}},6451:e=>{e.exports=function(e){var t=e.options.emphasis||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}},7156:e=>{e.exports=function(e){var t=e.options.fence||"`";if("`"!==t&&"~"!==t)throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}},9972:e=>{e.exports=function(e){var t=e.options.listItemIndent||"tab";if(1===t||"1"===t)return"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}},1989:e=>{e.exports=function(e){var t=e.options.quote||'"';if('"'!==t&&"'"!==t)throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}},3516:e=>{e.exports=function(e){var 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}},2647:e=>{e.exports=function(e){var t=e.options.rule||"*";if("*"!==t&&"-"!==t&&"_"!==t)throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}},3298:e=>{e.exports=function(e){var t=e.options.strong||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}},9960:(e,t,r)=>{e.exports=function(e,t){var r,n=e.children||[],s=[],o=-1;for(;++o{e.exports=function(e,t,r){var a,n,s,o=e.children||[],i=[],d=-1,u=r.before;for(;++d0&&("\r"===u||"\n"===u)&&"html"===s.type&&(i[i.length-1]=i[i.length-1].replace(/(\r?\n|\r)$/," "),u=" "),i.push(t.handle(s,e,t,{before:u,after:a})),u=i[i.length-1].slice(-1);return i.join("")}},3342:e=>{e.exports=function(e,t){return!t.options.fences&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value)}},723:(e,t,r)=>{e.exports=function(e,t){return t.options.setext&&(!e.depth||e.depth<3)&&a(e)};var a=r(6619)},1455:(e,t,r)=>{e.exports=function(e,t){var r=a(e);return!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)};var a=r(6619)},6242:e=>{e.exports=function(e,r){var a,n=[],s=0,o=0;for(;a=t.exec(e);)i(e.slice(s,a.index)),n.push(a[0]),s=a.index+a[0].length,o++;return i(e.slice(s)),n.join("");function i(e){n.push(r(e,o,!e))}};var t=/\r?\n|\r/g},4186:e=>{e.exports=function(e){var t,r;e._compiled||(t=e.before?"(?:"+e.before+")":"",r=e.after?"(?:"+e.after+")":"",e.atBreak&&(t="[\\r\\n][\\t ]*"+t),e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(r||""),"g"));return e._compiled}},9753:e=>{function t(e,t,r){var a;if(!t)return r;for("string"===typeof t&&(t=[t]),a=-1;++a{e.exports=function(e,t,r){var i,d,u,c,l,p,f,g,m=(r.before||"")+(t||"")+(r.after||""),h=[],y=[],b={},v=-1;for(;++v=g||u+1{"use strict";function t(e){return e&&(e.value||e.alt||e.title||"children"in e&&r(e.children)||"length"in e&&r(e))||""}function r(e){for(var r=[],a=-1;++a{"use strict";var t;e.exports=function(e){var r,a="&"+e+";";if((t=t||document.createElement("i")).innerHTML=a,59===(r=t.textContent).charCodeAt(r.length-1)&&"semi"!==e)return!1;return r!==a&&r}},5040:e=>{"use strict";e.exports=function(e,a){var n=a||{};function s(a){var n=s.invalid,o=s.handlers;return a&&r.call(a,e)&&(n=r.call(o,a[e])?o[a[e]]:s.unknown),(n||t).apply(this,arguments)}return s.handlers=n.handlers||{},s.invalid=n.invalid,s.unknown=n.unknown,s};var t=Function.prototype,r={}.hasOwnProperty},3521:(e,t,r)=>{"use strict";var a=r(8617),n=r(2155),s=r(4957);e.exports=a().use(n).use(s).freeze()},6157:e=>{"use strict";e.exports=function(e){if(e)throw e}},9580:e=>{"use strict";e.exports=e=>{if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}},5117:(e,t,r)=>{"use strict";e.exports=function(e,t,r){"string"!==typeof t&&(r=t,t=void 0);return function(e){var t=e||{},r=function(e,t){var r=-1;for(;++r-1&&(N.call(this,e),M.call(this,e))}function U(){g("atHardBreak",!0)}function q(){var e=this.resume();this.stack[this.stack.length-1].value=e}function W(){var e=this.resume();this.stack[this.stack.length-1].value=e}function H(){var e=this.resume();this.stack[this.stack.length-1].value=e}function z(){var e=this.stack[this.stack.length-1];m("inReference")?(e.type+="Reference",e.referenceType=m("referenceType")||"shortcut",delete e.url,delete e.title):(delete e.identifier,delete e.label,delete e.referenceType),g("referenceType")}function G(){var e=this.stack[this.stack.length-1];m("inReference")?(e.type+="Reference",e.referenceType=m("referenceType")||"shortcut",delete e.url,delete e.title):(delete e.identifier,delete e.label,delete e.referenceType),g("referenceType")}function V(e){this.stack[this.stack.length-2].identifier=o(this.sliceSerialize(e)).toLowerCase()}function K(){var e=this.stack[this.stack.length-1],t=this.resume();this.stack[this.stack.length-1].label=t,g("inReference",!0),"link"===this.stack[this.stack.length-1].type?this.stack[this.stack.length-1].children=e.children:this.stack[this.stack.length-1].alt=t}function Y(){var e=this.resume();this.stack[this.stack.length-1].url=e}function J(){var e=this.resume();this.stack[this.stack.length-1].title=e}function X(){g("inReference")}function $(){g("referenceType","collapsed")}function Q(e){var t=this.resume();this.stack[this.stack.length-1].label=t,this.stack[this.stack.length-1].identifier=o(this.sliceSerialize(e)).toLowerCase(),g("referenceType","full")}function Z(e){g("characterReferenceType",e.type)}function ee(e){var t,r,a=this.sliceSerialize(e),n=m("characterReferenceType");n?(t=i(a,"characterReferenceMarkerNumeric"===n?10:16),g("characterReferenceType")):t=l(a),(r=this.stack.pop()).value+=t,r.position.end=h(e.end)}function te(e){M.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)}function re(e){M.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)}function ae(){return{type:"blockquote",children:[]}}function ne(){return{type:"code",lang:null,meta:null,value:""}}function se(){return{type:"inlineCode",value:""}}function oe(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function ie(){return{type:"emphasis",children:[]}}function de(){return{type:"heading",depth:void 0,children:[]}}function ue(){return{type:"break"}}function ce(){return{type:"html",value:""}}function le(){return{type:"image",title:null,url:"",alt:null}}function pe(){return{type:"link",title:null,url:"",children:[]}}function fe(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}function ge(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}function me(){return{type:"paragraph",children:[]}}function he(){return{type:"strong",children:[]}}function ye(){return{type:"text",value:""}}function be(){return{type:"thematicBreak"}}}(r)(c(d(r).document().write(u()(e,t,!0))))};var a=r(439),n=r(3175),s=r(4915),o=r(8419),i=r(7012),d=r(1140),u=r(2961),c=r(1188),l=r(1580),p=r(3215);function f(e,t){var r,a;for(r in t)a=s.call(e,r)?e[r]:e[r]={},"canContainEols"===r||"transforms"===r?e[r]=[].concat(a,t[r]):Object.assign(a,t[r])}},1900:(e,t,r)=>{"use strict";e.exports=r(5117)},439:e=>{"use strict";function t(e){return e&&(e.value||e.alt||e.title||"children"in e&&r(e.children)||"length"in e&&r(e))||""}function r(e){for(var r=[],a=-1;++a{"use strict";var t;e.exports=function(e){var r,a="&"+e+";";if((t=t||document.createElement("i")).innerHTML=a,59===(r=t.textContent).charCodeAt(r.length-1)&&"semi"!==e)return!1;return r!==a&&r}},2155:(e,t,r)=>{"use strict";e.exports=function(e){var t=this;this.Parser=function(r){return a(r,Object.assign({},t.data("settings"),e,{extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]}))}};var a=r(1900)},8952:(e,t,r)=>{"use strict";var a=r(7222);e.exports=s,s.wrap=a;var n=[].slice;function s(){var e=[],t={run:function(){var t=-1,r=n.call(arguments,0,-1),s=arguments[arguments.length-1];if("function"!==typeof s)throw new Error("Expected function as last argument, not "+s);(function o(i){var d=e[++t],u=n.call(arguments,0).slice(1),c=r.length,l=-1;if(i)s(i);else{for(;++l{"use strict";var t=[].slice;e.exports=function(e,r){var a;return function(){var r,o=t.call(arguments,0),i=e.length>o.length;i&&o.push(n);try{r=e.apply(null,o)}catch(d){if(i&&a)throw d;return n(d)}i||(r&&"function"===typeof r.then?r.then(s,n):r instanceof Error?n(r):s(r))};function n(){a||(a=!0,r.apply(null,arguments))}function s(e){n(null,e)}}},8617:(e,t,r)=>{"use strict";var a=r(6157),n=r(3670),s=r(1761),o=r(9580),i=r(8952),d=r(2063);e.exports=function e(){var t,r=[],n=i(),b={},v=-1;return x.data=function(e,r){if("string"===typeof e)return 2===arguments.length?(m("data",t),b[e]=r,x):c.call(b,e)&&b[e]||null;if(e)return m("data",t),b=e,x;return b},x.freeze=R,x.attachers=r,x.use=function(e){var a;if(m("use",t),null===e||void 0===e);else if("function"===typeof e)c.apply(null,arguments);else{if("object"!==typeof e)throw new Error("Expected usable value, not `"+e+"`");"length"in e?d(e):n(e)}a&&(b.settings=s(b.settings||{},a));return x;function n(e){d(e.plugins),e.settings&&(a=s(a||{},e.settings))}function i(e){if("function"===typeof e)c(e);else{if("object"!==typeof e)throw new Error("Expected usable value, not `"+e+"`");"length"in e?c.apply(null,e):n(e)}}function d(e){var t=-1;if(null===e||void 0===e);else{if("object"!==typeof e||!("length"in e))throw new Error("Expected a list of plugins, not `"+e+"`");for(;++t{"use strict";var t={}.hasOwnProperty;function r(e){return e&&"object"===typeof e||(e={}),n(e.line)+":"+n(e.column)}function a(e){return e&&"object"===typeof e||(e={}),r(e.start)+"-"+r(e.end)}function n(e){return e&&"number"===typeof e?e:1}e.exports=function(e){if(!e||"object"!==typeof e)return"";if(t.call(e,"position")||t.call(e,"type"))return a(e.position);if(t.call(e,"start")||t.call(e,"end"))return a(e);if(t.call(e,"line")||t.call(e,"column"))return r(e);return""}},4449:(e,t,r)=>{"use strict";var a=r(3215);function n(){}e.exports=o,n.prototype=Error.prototype,o.prototype=new n;var s=o.prototype;function o(e,t,r){var n,s,o;"string"===typeof t&&(r=t,t=null),n=function(e){var t,r=[null,null];"string"===typeof e&&(-1===(t=e.indexOf(":"))?r[1]=e:(r[0]=e.slice(0,t),r[1]=e.slice(t+1)));return r}(r),s=a(t)||"1:1",o={start:{line:null,column:null},end:{line:null,column:null}},t&&t.position&&(t=t.position),t&&(t.start?(o=t,t=t.start):o.start=t),e.stack&&(this.stack=e.stack,e=e.message),this.message=e,this.name=s,this.reason=e,this.line=t?t.line:null,this.column=t?t.column:null,this.location=o,this.source=n[0],this.ruleId=n[1]}s.file="",s.name="",s.reason="",s.message="",s.stack="",s.fatal=null,s.column=null,s.line=null},2063:(e,t,r)=>{"use strict";e.exports=r(207)},2088:(e,t,r)=>{"use strict";var a=r(7986),n=r(5657),s=r(3670);e.exports=d;var o={}.hasOwnProperty,i=["history","path","basename","stem","extname","dirname"];function d(e){var t,r;if(e){if("string"===typeof e||s(e))e={contents:e};else if("message"in e&&"messages"in e)return e}else e={};if(!(this instanceof d))return new d(e);for(this.data={},this.messages=[],this.history=[],this.cwd=n.cwd(),r=-1;++r-1)throw new Error("`"+t+"` cannot be a path: did not expect `"+a.sep+"`")}function c(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function l(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}d.prototype.toString=function(e){return(this.contents||"").toString(e)},Object.defineProperty(d.prototype,"path",{get:function(){return this.history[this.history.length-1]},set:function(e){c(e,"path"),this.path!==e&&this.history.push(e)}}),Object.defineProperty(d.prototype,"dirname",{get:function(){return"string"===typeof this.path?a.dirname(this.path):void 0},set:function(e){l(this.path,"dirname"),this.path=a.join(e||"",this.basename)}}),Object.defineProperty(d.prototype,"basename",{get:function(){return"string"===typeof this.path?a.basename(this.path):void 0},set:function(e){c(e,"basename"),u(e,"basename"),this.path=a.join(this.dirname||"",e)}}),Object.defineProperty(d.prototype,"extname",{get:function(){return"string"===typeof this.path?a.extname(this.path):void 0},set:function(e){if(u(e,"extname"),l(this.path,"extname"),e){if(46!==e.charCodeAt(0))throw new Error("`extname` must start with `.`");if(e.indexOf(".",1)>-1)throw new Error("`extname` cannot contain multiple dots")}this.path=a.join(this.dirname,this.stem+(e||""))}}),Object.defineProperty(d.prototype,"stem",{get:function(){return"string"===typeof this.path?a.basename(this.path,this.extname):void 0},set:function(e){c(e,"stem"),u(e,"stem"),this.path=a.join(this.dirname||"",e+(this.extname||""))}})},207:(e,t,r)=>{"use strict";var a=r(4449),n=r(2088);e.exports=n,n.prototype.message=function(e,t,r){var n=new a(e,t,r);this.path&&(n.name=this.path+":"+n.name,n.file=this.path);return n.fatal=!1,this.messages.push(n),n},n.prototype.info=function(){var e=this.message.apply(this,arguments);return e.fatal=null,e},n.prototype.fail=function(){var e=this.message.apply(this,arguments);throw e.fatal=!0,e}},7986:(e,t)=>{"use strict";function r(e){if("string"!==typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}t.basename=function(e,t){var a,n,s,o,i=0,d=-1;if(void 0!==t&&"string"!==typeof t)throw new TypeError('"ext" argument must be a string');if(r(e),a=e.length,void 0===t||!t.length||t.length>e.length){for(;a--;)if(47===e.charCodeAt(a)){if(s){i=a+1;break}}else d<0&&(s=!0,d=a+1);return d<0?"":e.slice(i,d)}if(t===e)return"";n=-1,o=t.length-1;for(;a--;)if(47===e.charCodeAt(a)){if(s){i=a+1;break}}else n<0&&(s=!0,n=a+1),o>-1&&(e.charCodeAt(a)===t.charCodeAt(o--)?o<0&&(d=a):(o=-1,d=n));i===d?d=n:d<0&&(d=e.length);return e.slice(i,d)},t.dirname=function(e){var t,a,n;if(r(e),!e.length)return".";t=-1,n=e.length;for(;--n;)if(47===e.charCodeAt(n)){if(a){t=n;break}}else a||(a=!0);return t<0?47===e.charCodeAt(0)?"/":".":1===t&&47===e.charCodeAt(0)?"//":e.slice(0,t)},t.extname=function(e){var t,a,n,s=-1,o=0,i=-1,d=0;r(e),n=e.length;for(;n--;)if(47!==(a=e.charCodeAt(n)))i<0&&(t=!0,i=n+1),46===a?s<0?s=n:1!==d&&(d=1):s>-1&&(d=-1);else if(t){o=n+1;break}if(s<0||i<0||0===d||1===d&&s===i-1&&s===o+1)return"";return e.slice(s,i)},t.join=function(){var e,t=-1;for(;++t2){if((a=n.lastIndexOf("/"))!==n.length-1){a<0?(n="",s=0):s=(n=n.slice(0,a)).length-1-n.lastIndexOf("/"),o=d,i=0;continue}}else if(n.length){n="",s=0,o=d,i=0;continue}t&&(n=n.length?n+"/..":"..",s=2)}else n.length?n+="/"+e.slice(o+1,d):n=e.slice(o+1,d),s=d-o-1;o=d,i=0}else 46===r&&i>-1?i++:i=-1}return n}(e,!t),a.length||t||(a=".");a.length&&47===e.charCodeAt(e.length-1)&&(a+="/");return t?"/"+a:a}(e)},t.sep="/"},5657:(e,t)=>{"use strict";t.cwd=function(){return"/"}},6040:e=>{"use strict";var t,r="";e.exports=function(e,a){if("string"!==typeof e)throw new TypeError("expected a string");if(1===a)return e;if(2===a)return e+e;var n=e.length*a;if(t!==e||"undefined"===typeof t)t=e,r="";else if(r.length>=n)return r.substr(0,n);for(;n>r.length&&a>1;)1&a&&(r+=e),a>>=1,e+=e;return r=(r+=e).substr(0,n)}},1863:(e,t)=>{"use strict";function r(e,t){var r=e.length;e.push(t);e:for(;0>>1,n=e[a];if(!(0>>1;as(d,r))us(c,d)?(e[a]=c,e[u]=r,a=u):(e[a]=d,e[i]=r,a=i);else{if(!(us(c,r)))break e;e[a]=c,e[u]=r,a=u}}}return t}function s(e,t){var r=e.sortIndex-t.sortIndex;return 0!==r?r:e.id-t.id}if("object"===typeof performance&&"function"===typeof performance.now){var o=performance;t.unstable_now=function(){return o.now()}}else{var i=Date,d=i.now();t.unstable_now=function(){return i.now()-d}}var u=[],c=[],l=1,p=null,f=3,g=!1,m=!1,h=!1,y="function"===typeof setTimeout?setTimeout:null,b="function"===typeof clearTimeout?clearTimeout:null,v="undefined"!==typeof setImmediate?setImmediate:null;function x(e){for(var t=a(c);null!==t;){if(null===t.callback)n(c);else{if(!(t.startTime<=e))break;n(c),t.sortIndex=t.expirationTime,r(u,t)}t=a(c)}}function R(e){if(h=!1,x(e),!m)if(null!==a(u))m=!0,_(E);else{var t=a(c);null!==t&&I(R,t.startTime-e)}}function E(e,r){m=!1,h&&(h=!1,b(A),A=-1),g=!0;var s=f;try{for(x(r),p=a(u);null!==p&&(!(p.expirationTime>r)||e&&!T());){var o=p.callback;if("function"===typeof o){p.callback=null,f=p.priorityLevel;var i=o(p.expirationTime<=r);r=t.unstable_now(),"function"===typeof i?p.callback=i:p===a(u)&&n(u),x(r)}else n(u);p=a(u)}if(null!==p)var d=!0;else{var l=a(c);null!==l&&I(R,l.startTime-r),d=!1}return d}finally{p=null,f=s,g=!1}}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var D,w=!1,j=null,A=-1,C=5,S=-1;function T(){return!(t.unstable_now()-Se||125o?(e.sortIndex=s,r(c,e),null===a(u)&&e===a(c)&&(h?(b(A),A=-1):h=!0,I(R,s-o))):(e.sortIndex=i,r(u,e),m||g||(m=!0,_(E))),e},t.unstable_shouldYield=T,t.unstable_wrapCallback=function(e){var t=f;return function(){var r=f;f=t;try{return e.apply(this,arguments)}finally{f=r}}}},7710:(e,t,r)=>{"use strict";e.exports=r(1863)},3569:e=>{e.exports=function(e,t,r,a){var n=r?r.call(a,e,t):void 0;if(void 0!==n)return!!n;if(e===t)return!0;if("object"!==typeof e||!e||"object"!==typeof t||!t)return!1;var s=Object.keys(e),o=Object.keys(t);if(s.length!==o.length)return!1;for(var i=Object.prototype.hasOwnProperty.bind(t),d=0;d{var a=r(5498);e.exports=function(e,t,r){return(t=a(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},1327:(e,t,r)=>{var a=r(564).default;e.exports=function(e,t){if("object"!=a(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},5498:(e,t,r)=>{var a=r(564).default,n=r(1327);e.exports=function(e){var t=n(e,"string");return"symbol"==a(t)?t:t+""},e.exports.__esModule=!0,e.exports.default=e.exports},564: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},3132:function(e,t,r){!function(e){"use strict";var t=Object.freeze({__proto__:null,get _call(){return bz},get _getQueueContexts(){return Mz},get _resyncKey(){return Tz},get _resyncList(){return kz},get _resyncParent(){return Sz},get _resyncRemoved(){return Pz},get call(){return yz},get isDenylisted(){return vz},get popContext(){return Fz},get pushContext(){return _z},get requeue(){return Oz},get requeueComputedKeyAndDecorators(){return Nz},get resync(){return Cz},get setContext(){return Az},get setKey(){return Bz},get setScope(){return jz},get setup(){return Iz},get skip(){return Ez},get skipKey(){return Dz},get stop(){return wz},get visit(){return Rz}}),a=Object.freeze({__proto__:null,get DEFAULT_EXTENSIONS(){return s6},get File(){return RY},get buildExternalHelpers(){return KY},get createConfigItem(){return Y0},get createConfigItemAsync(){return V0},get createConfigItemSync(){return K0},get getEnv(){return cJ},get loadOptions(){return z0},get loadOptionsAsync(){return W0},get loadOptionsSync(){return H0},get loadPartialConfig(){return L0},get loadPartialConfigAsync(){return N0},get loadPartialConfigSync(){return M0},get parse(){return Z2},get parseAsync(){return t6},get parseSync(){return e6},get resolvePlugin(){return a6},get resolvePreset(){return n6},get template(){return Bj},get tokTypes(){return yw},get transform(){return W2},get transformAsync(){return z2},get transformFile(){return G2},get transformFileAsync(){return K2},get transformFileSync(){return V2},get transformFromAst(){return J2},get transformFromAstAsync(){return $2},get transformFromAstSync(){return X2},get transformSync(){return H2},get traverse(){return Hz},get types(){return Zx},get version(){return r6}});function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=Array(t);r=e.length?{done:!0}:{done:!1,value:e[a++]}}}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 f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function g(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&&w(e,t)}function m(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(h=function(){return!!e})()}function y(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function b(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a,n,s,o,i=[],d=!0,u=!1;try{if(s=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;d=!1}else for(;!(d=(a=s.call(r)).done)&&(i.push(a.value),i.length!==t);d=!0);}catch(e){u=!0,n=e}finally{try{if(!d&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw n}}return i}}function v(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function x(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function R(e,t){if(null==e)return{};var r,a,n=E(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a=0;--s){var o=this.tryEntries[s],i=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var d=a.call(o,"catchLoc"),u=a.call(o,"finallyLoc");if(d&&u){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var a=r.completion;if("throw"===a.type){var n=a.arg;k(r)}return n}}throw Error("illegal catch attempt")},delegateYield:function(t,r,a){return this.delegate={iterator:F(t),resultName:r,nextLoc:a},"next"===this.method&&(this.arg=e),h}},t}function w(e,t){return w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},w(e,t)}function j(e,t){return s(e)||b(e,t)||k(e,t)||v()}function A(e,t){return t||(t=e.slice(0)),e.raw=t,e}function C(e){return o(e)||y(e)||k(e)||x()}function S(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,t);if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function T(e){var t=S(e,"string");return"symbol"==typeof t?t:t+""}function k(e,t){if(e){if("string"==typeof e)return n(e,t);var r={}.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}}function P(e){var t="function"==typeof Map?new Map:void 0;return P=function(e){if(null===e||!m(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return u(e,arguments,f(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),w(r,e)},P(e)}var F="undefined"!==typeof r.g?r.g:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{};function _(){throw new Error("setTimeout has not been defined")}function I(){throw new Error("clearTimeout has not been defined")}var B=_,O=I;function N(e){if(B===setTimeout)return setTimeout(e,0);if((B===_||!B)&&setTimeout)return B=setTimeout,setTimeout(e,0);try{return B(e,0)}catch(t){try{return B.call(null,e,0)}catch(t){return B.call(this,e,0)}}}function M(e){if(O===clearTimeout)return clearTimeout(e);if((O===I||!O)&&clearTimeout)return O=clearTimeout,clearTimeout(e);try{return O(e)}catch(t){try{return O.call(null,e)}catch(t){return O.call(this,e)}}}"function"===typeof F.setTimeout&&(B=setTimeout),"function"===typeof F.clearTimeout&&(O=clearTimeout);var L,U=[],q=!1,W=-1;function H(){q&&L&&(q=!1,L.length?U=L.concat(U):W=-1,U.length&&z())}function z(){if(!q){var e=N(H);q=!0;for(var t=U.length;t;){for(L=U,U=[];++W1)for(var r=1;rn.length)return!1;for(var o=0,i=s.length-1;oe)return!1;if((r+=t[a+1])>=e)return!0}return!1}function vo(e){return e<65?36===e:e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&go.test(String.fromCharCode(e)):bo(e,ho)))}function xo(e){return e<48?36===e:e<58||!(e<65)&&(e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&mo.test(String.fromCharCode(e)):bo(e,ho)||bo(e,yo))))}function Ro(e){for(var t=!0,r=0;r=48&&e<=57},_o={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},Io={bin:function(e){return 48===e||49===e},oct:function(e){return e>=48&&e<=55},dec:function(e){return e>=48&&e<=57},hex:function(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}};function Bo(e,t,r,a,n,s){for(var o=r,i=a,d=n,u="",c=null,l=r,p=t.length;;){if(r>=p){s.unterminated(o,i,d),u+=t.slice(l,r);break}var f=t.charCodeAt(r);if(Oo(e,f,t,r)){u+=t.slice(l,r);break}if(92===f){u+=t.slice(l,r);var g=No(t,r,a,n,"template"===e,s);null!==g.ch||c?u+=g.ch:c={pos:r,lineStart:a,curLine:n},r=g.pos,a=g.lineStart,n=g.curLine,l=r}else 8232===f||8233===f?(++n,a=++r):10===f||13===f?"template"===e?(u+=t.slice(l,r)+"\n",++r,13===f&&10===t.charCodeAt(r)&&++r,++n,l=a=r):s.unterminated(o,i,d):++r}return{pos:r,str:u,firstInvalidLoc:c,lineStart:a,curLine:n,containsInvalid:!!c}}function Oo(e,t,r,a){return"template"===e?96===t||36===t&&123===r.charCodeAt(a+1):t===("double"===e?34:39)}function No(e,t,r,a,n,s){var o=!n;t++;var i=function(e){return{pos:t,ch:e,lineStart:r,curLine:a}},d=e.charCodeAt(t++);switch(d){case 110:return i("\n");case 114:return i("\r");case 120:var u,c=Mo(e,t,r,a,2,!1,o,s);return u=c.code,t=c.pos,i(null===u?null:String.fromCharCode(u));case 117:var l,p=Uo(e,t,r,a,o,s);return l=p.code,t=p.pos,i(null===l?null:String.fromCodePoint(l));case 116:return i("\t");case 98:return i("\b");case 118:return i("\v");case 102:return i("\f");case 13:10===e.charCodeAt(t)&&++t;case 10:r=t,++a;case 8232:case 8233:return i("");case 56:case 57:if(n)return i(null);s.strictNumericEscape(t-1,r,a);default:if(d>=48&&d<=55){var f=t-1,g=/^[0-7]+/.exec(e.slice(f,t+2))[0],m=parseInt(g,8);m>255&&(g=g.slice(0,-1),m=parseInt(g,8)),t+=g.length-1;var h=e.charCodeAt(t);if("0"!==g||56===h||57===h){if(n)return i(null);s.strictNumericEscape(f,r,a)}return i(String.fromCharCode(m))}return i(String.fromCharCode(d))}}function Mo(e,t,r,a,n,s,o,i){var d,u=t,c=Lo(e,t,r,a,16,n,s,!1,i,!o);return d=c.n,t=c.pos,null===d&&(o?i.invalidEscapeSequence(u,r,a):t=u-1),{code:d,pos:t}}function Lo(e,t,r,a,n,s,o,i,d,u){for(var c=t,l=16===n?_o.hex:_o.decBinOct,p=16===n?Io.hex:10===n?Io.dec:8===n?Io.oct:Io.bin,f=!1,g=0,m=0,h=null==s?1/0:s;m=97?y-97+10:y>=65?y-65+10:Fo(y)?y-48:1/0)>=n){if(b<=9&&u)return{n:null,pos:t};if(b<=9&&d.invalidDigit(t,r,a,n))b=0;else{if(!o)break;b=0,f=!0}}++t,g=g*n+b}else{var v=e.charCodeAt(t-1),x=e.charCodeAt(t+1);if(i){if(Number.isNaN(x)||!p(x)||l.has(v)||l.has(x)){if(u)return{n:null,pos:t};d.unexpectedNumericSeparator(t,r,a)}}else{if(u)return{n:null,pos:t};d.numericSeparatorInEscapeSequence(t,r,a)}++t}}return t===c||null!=s&&t-c!==s||f?{n:null,pos:t}:{n:g,pos:t}}function Uo(e,t,r,a,n,s){var o;if(123===e.charCodeAt(t)){var i=Mo(e,++t,r,a,e.indexOf("}",t)-t,!0,n,s);if(o=i.code,t=i.pos,++t,null!==o&&o>1114111){if(!n)return{code:null,pos:t};s.invalidCodePoint(t,r,a)}}else{var d=Mo(e,t,r,a,4,!1,n,s);o=d.code,t=d.pos}return{code:o,pos:t}}var qo=["consequent","body","alternate"],Wo=["body","expressions"],Ho=["left","init"],zo=["leadingComments","trailingComments","innerComments"],Go=["||","&&","??"],Vo=["++","--"],Ko=[">","<",">=","<="],Yo=["==","===","!=","!=="],Jo=[].concat(Yo,["in","instanceof"]),Xo=[].concat(C(Jo),Ko),$o=["-","/","%","*","**","&","|",">>",">>>","<<","^"],Qo=["+"].concat($o,C(Xo),["|>"]),Zo=["=","+="].concat(C($o.map((function(e){return e+"="}))),C(Go.map((function(e){return e+"="})))),ei=["delete","!"],ti=["+","-","~"],ri=["typeof"],ai=["void","throw"].concat(ei,ti,ri),ni={optional:["typeAnnotation","typeParameters","returnType"],force:["start","loc","end"]},si=Symbol.for("var used to be block scoped"),oi=Symbol.for("should not be considered a local binding"),ii={},di={},ui={},ci={},li={},pi={},fi={};function gi(e){return Array.isArray(e)?"array":null===e?"null":typeof e}function mi(e){return{validate:e}}function hi(){return mi(wi.apply(void 0,arguments))}function yi(e){return{validate:e,optional:!0}}function bi(){return{validate:wi.apply(void 0,arguments),optional:!0}}function vi(e){return Ti(Ai("array"),Ei(e))}function xi(){return vi(wi.apply(void 0,arguments))}function Ri(){return mi(xi.apply(void 0,arguments))}function Ei(e){var t=ve.env.BABEL_TYPES_8_BREAKING?yd:function(){};function r(r,a,n){if(Array.isArray(n))for(var s=0;s=2&&"type"in t[0]&&"array"===t[0].type&&!("each"in t[1]))throw new Error('An assertValueType("array") validator can only be followed by an assertEach(...) validator.');return a}var ki=new Set(["aliases","builder","deprecatedAlias","fields","inherits","visitor","validate"]),Pi=new Set(["default","optional","deprecated","validate"]),Fi={};function _i(){for(var e=arguments.length,t=new Array(e),r=0;r0:d&&"object"===typeof d)throw new Error("field defaults can only be primitives or empty arrays currently");a[o]={default:Array.isArray(d)?[]:d,optional:i.optional,deprecated:i.deprecated,validate:i.validate}}for(var u=t.visitor||r.visitor||[],c=t.aliases||r.aliases||[],l=t.builder||r.builder||t.visitor||[],f=0,g=Object.keys(t);f+s+1)throw new TypeError("RestElement must be last element of "+n)}:void 0}),Bi("ReturnStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:wi("Expression"),optional:!0}}}),Bi("SequenceExpression",{visitor:["expressions"],fields:{expressions:Ri("Expression")},aliases:["Expression"]}),Bi("ParenthesizedExpression",{visitor:["expression"],aliases:["Expression","ExpressionWrapper"],fields:{expression:{validate:wi("Expression")}}}),Bi("SwitchCase",{visitor:["test","consequent"],fields:{test:{validate:wi("Expression"),optional:!0},consequent:Ri("Statement")}}),Bi("SwitchStatement",{visitor:["discriminant","cases"],aliases:["Statement","BlockParent","Scopable"],fields:{discriminant:{validate:wi("Expression")},cases:Ri("SwitchCase")}}),Bi("ThisExpression",{aliases:["Expression"]}),Bi("ThrowStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:wi("Expression")}}}),Bi("TryStatement",{visitor:["block","handler","finalizer"],aliases:["Statement"],fields:{block:{validate:ve.env.BABEL_TYPES_8_BREAKING?Ti(wi("BlockStatement"),Object.assign((function(e){if(!e.handler&&!e.finalizer)throw new TypeError("TryStatement expects either a handler or finalizer, or both")}),{oneOfNodeTypes:["BlockStatement"]})):wi("BlockStatement")},handler:{optional:!0,validate:wi("CatchClause")},finalizer:{optional:!0,validate:wi("BlockStatement")}}}),Bi("UnaryExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!0},argument:{validate:wi("Expression")},operator:{validate:Di.apply(void 0,C(ai))}},visitor:["argument"],aliases:["UnaryLike","Expression"]}),Bi("UpdateExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!1},argument:{validate:ve.env.BABEL_TYPES_8_BREAKING?wi("Identifier","MemberExpression"):wi("Expression")},operator:{validate:Di.apply(void 0,C(Vo))}},visitor:["argument"],aliases:["Expression"]}),Bi("VariableDeclaration",{builder:["kind","declarations"],visitor:["declarations"],aliases:["Statement","Declaration"],fields:{declare:{validate:Ai("boolean"),optional:!0},kind:{validate:Di("var","let","const","using","await using")},declarations:Ri("VariableDeclarator")},validate:ve.env.BABEL_TYPES_8_BREAKING?function(){var e=wi("Identifier");return function(t,r,a){if(lo("ForXStatement",t,{left:a})){if(1!==a.declarations.length)throw new TypeError("Exactly one VariableDeclarator is required in the VariableDeclaration of a "+t.type)}else a.declarations.forEach((function(t){t.init||e(t,"id",t.id)}))}}():void 0}),Bi("VariableDeclarator",{visitor:["id","init"],fields:{id:{validate:ve.env.BABEL_TYPES_8_BREAKING?wi("Identifier","ArrayPattern","ObjectPattern"):wi("LVal")},definite:{optional:!0,validate:Ai("boolean")},init:{optional:!0,validate:wi("Expression")}}}),Bi("WhileStatement",{visitor:["test","body"],aliases:["Statement","BlockParent","Loop","While","Scopable"],fields:{test:{validate:wi("Expression")},body:{validate:wi("Statement")}}}),Bi("WithStatement",{visitor:["object","body"],aliases:["Statement"],fields:{object:{validate:wi("Expression")},body:{validate:wi("Statement")}}}),Bi("AssignmentPattern",{visitor:["left","right","decorators"],builder:["left","right"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},Li(),{left:{validate:wi("Identifier","ObjectPattern","ArrayPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression")},right:{validate:wi("Expression")},decorators:{validate:xi("Decorator"),optional:!0}})}),Bi("ArrayPattern",{visitor:["elements","typeAnnotation"],builder:["elements"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},Li(),{elements:{validate:Ti(Ai("array"),Ei(ji("null","PatternLike","LVal")))}})}),Bi("ArrowFunctionExpression",{builder:["params","body","async"],visitor:["typeParameters","params","returnType","body"],aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},Oi(),Ni(),{expression:{validate:Ai("boolean")},body:{validate:wi("BlockStatement","Expression")},predicate:{validate:wi("DeclaredPredicate","InferredPredicate"),optional:!0}})}),Bi("ClassBody",{visitor:["body"],fields:{body:Ri("ClassMethod","ClassPrivateMethod","ClassProperty","ClassPrivateProperty","ClassAccessorProperty","TSDeclareMethod","TSIndexSignature","StaticBlock")}}),Bi("ClassExpression",{builder:["id","superClass","body","decorators"],visitor:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body"],aliases:["Scopable","Class","Expression"],fields:{id:{validate:wi("Identifier"),optional:!0},typeParameters:{validate:wi("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:wi("ClassBody")},superClass:{optional:!0,validate:wi("Expression")},superTypeParameters:{validate:wi("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:xi("TSExpressionWithTypeArguments","ClassImplements"),optional:!0},decorators:{validate:xi("Decorator"),optional:!0},mixins:{validate:wi("InterfaceExtends"),optional:!0}}}),Bi("ClassDeclaration",{inherits:"ClassExpression",aliases:["Scopable","Class","Statement","Declaration"],fields:{id:{validate:wi("Identifier"),optional:!0},typeParameters:{validate:wi("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:wi("ClassBody")},superClass:{optional:!0,validate:wi("Expression")},superTypeParameters:{validate:wi("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:xi("TSExpressionWithTypeArguments","ClassImplements"),optional:!0},decorators:{validate:xi("Decorator"),optional:!0},mixins:{validate:wi("InterfaceExtends"),optional:!0},declare:{validate:Ai("boolean"),optional:!0},abstract:{validate:Ai("boolean"),optional:!0}},validate:ve.env.BABEL_TYPES_8_BREAKING?function(){var e=wi("Identifier");return function(t,r,a){lo("ExportDefaultDeclaration",t)||e(a,"id",a.id)}}():void 0});var Ui={attributes:{optional:!0,validate:xi("ImportAttribute")},assertions:{deprecated:!0,optional:!0,validate:xi("ImportAttribute")}};Bi("ExportAllDeclaration",{builder:["source"],visitor:["source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:Object.assign({source:{validate:wi("StringLiteral")},exportKind:yi(Di("type","value"))},Ui)}),Bi("ExportDefaultDeclaration",{visitor:["declaration"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:{declaration:hi("TSDeclareFunction","FunctionDeclaration","ClassDeclaration","Expression"),exportKind:yi(Di("value"))}}),Bi("ExportNamedDeclaration",{builder:["declaration","specifiers","source"],visitor:ve.env?["declaration","specifiers","source","attributes"]:["declaration","specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:Object.assign({declaration:{optional:!0,validate:ve.env.BABEL_TYPES_8_BREAKING?Ti(wi("Declaration"),Object.assign((function(e,t,r){if(r&&e.specifiers.length)throw new TypeError("Only declaration or specifiers is allowed on ExportNamedDeclaration");if(r&&e.source)throw new TypeError("Cannot export a declaration from a source")}),{oneOfNodeTypes:["Declaration"]})):wi("Declaration")}},Ui,{specifiers:{default:[],validate:vi(function(){var e=wi("ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"),t=wi("ExportSpecifier");return ve.env.BABEL_TYPES_8_BREAKING?Object.assign((function(r,a,n){(r.source?e:t)(r,a,n)}),{oneOfNodeTypes:["ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"]}):e}())},source:{validate:wi("StringLiteral"),optional:!0},exportKind:yi(Di("type","value"))})}),Bi("ExportSpecifier",{visitor:["local","exported"],aliases:["ModuleSpecifier"],fields:{local:{validate:wi("Identifier")},exported:{validate:wi("Identifier","StringLiteral")},exportKind:{validate:Di("type","value"),optional:!0}}}),Bi("ForOfStatement",{visitor:["left","right","body"],builder:["left","right","body","await"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:function(){if(!ve.env.BABEL_TYPES_8_BREAKING)return wi("VariableDeclaration","LVal");var e=wi("VariableDeclaration"),t=wi("Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression");return Object.assign((function(r,a,n){lo("VariableDeclaration",n)?e(r,a,n):t(r,a,n)}),{oneOfNodeTypes:["VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"]})}()},right:{validate:wi("Expression")},body:{validate:wi("Statement")},await:{default:!1}}}),Bi("ImportDeclaration",{builder:["specifiers","source"],visitor:["specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration"],fields:Object.assign({},Ui,{module:{optional:!0,validate:Ai("boolean")},phase:{default:null,validate:Di("source","defer")},specifiers:Ri("ImportSpecifier","ImportDefaultSpecifier","ImportNamespaceSpecifier"),source:{validate:wi("StringLiteral")},importKind:{validate:Di("type","typeof","value"),optional:!0}})}),Bi("ImportDefaultSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:wi("Identifier")}}}),Bi("ImportNamespaceSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:wi("Identifier")}}}),Bi("ImportSpecifier",{visitor:["imported","local"],builder:["local","imported"],aliases:["ModuleSpecifier"],fields:{local:{validate:wi("Identifier")},imported:{validate:wi("Identifier","StringLiteral")},importKind:{validate:Di("type","typeof","value"),optional:!0}}}),Bi("ImportExpression",{visitor:["source","options"],aliases:["Expression"],fields:{phase:{default:null,validate:Di("source","defer")},source:{validate:wi("Expression")},options:{validate:wi("Expression"),optional:!0}}}),Bi("MetaProperty",{visitor:["meta","property"],aliases:["Expression"],fields:{meta:{validate:ve.env.BABEL_TYPES_8_BREAKING?Ti(wi("Identifier"),Object.assign((function(e,t,r){var a;switch(r.name){case"function":a="sent";break;case"new":a="target";break;case"import":a="meta"}if(!lo("Identifier",e.property,{name:a}))throw new TypeError("Unrecognised MetaProperty")}),{oneOfNodeTypes:["Identifier"]})):wi("Identifier")},property:{validate:wi("Identifier")}}});var qi=function(){return{abstract:{validate:Ai("boolean"),optional:!0},accessibility:{validate:Di("public","private","protected"),optional:!0},static:{default:!1},override:{default:!1},computed:{default:!1},optional:{validate:Ai("boolean"),optional:!0},key:{validate:Ti(function(){var e=wi("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),t=wi("Expression");return function(r,a,n){(r.computed?t:e)(r,a,n)}}(),wi("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression"))}}},Wi=function(){return Object.assign({},Oi(),qi(),{params:Ri("Identifier","Pattern","RestElement","TSParameterProperty"),kind:{validate:Di("get","set","method","constructor"),default:"method"},access:{validate:Ti(Ai("string"),Di("public","private","protected")),optional:!0},decorators:{validate:xi("Decorator"),optional:!0}})};Bi("ClassMethod",{aliases:["Function","Scopable","BlockParent","FunctionParent","Method"],builder:["kind","key","params","body","computed","static","generator","async"],visitor:["decorators","key","typeParameters","params","returnType","body"],fields:Object.assign({},Wi(),Ni(),{body:{validate:wi("BlockStatement")}})}),Bi("ObjectPattern",{visitor:["properties","typeAnnotation","decorators"],builder:["properties"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},Li(),{properties:Ri("RestElement","ObjectProperty")})}),Bi("SpreadElement",{visitor:["argument"],aliases:["UnaryLike"],deprecatedAlias:"SpreadProperty",fields:{argument:{validate:wi("Expression")}}}),Bi("Super",{aliases:["Expression"]}),Bi("TaggedTemplateExpression",{visitor:["tag","typeParameters","quasi"],builder:["tag","quasi"],aliases:["Expression"],fields:{tag:{validate:wi("Expression")},quasi:{validate:wi("TemplateLiteral")},typeParameters:{validate:wi("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}}),Bi("TemplateElement",{builder:["value","tail"],fields:{value:{validate:Ti(Ci({raw:{validate:Ai("string")},cooked:{validate:Ai("string"),optional:!0}}),(function(e){var t=e.value.raw,r=!1,a=function(){throw new Error("Internal @babel/types error.")},n=Bo("template",t,0,0,0,{unterminated:function(){r=!0},strictNumericEscape:a,invalidEscapeSequence:a,numericSeparatorInEscapeSequence:a,unexpectedNumericSeparator:a,invalidDigit:a,invalidCodePoint:a}),s=n.str,o=n.firstInvalidLoc;if(!r)throw new Error("Invalid raw");e.value.cooked=o?null:s}))},tail:{default:!1}}}),Bi("TemplateLiteral",{visitor:["quasis","expressions"],aliases:["Expression","Literal"],fields:{quasis:Ri("TemplateElement"),expressions:{validate:Ti(Ai("array"),Ei(wi("Expression","TSType")),(function(e,t,r){if(e.quasis.length!==r.length+1)throw new TypeError("Number of "+e.type+" quasis should be exactly one more than the number of expressions.\nExpected "+(r.length+1)+" quasis but got "+e.quasis.length)}))}}}),Bi("YieldExpression",{builder:["argument","delegate"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{delegate:{validate:ve.env.BABEL_TYPES_8_BREAKING?Ti(Ai("boolean"),Object.assign((function(e,t,r){if(r&&!e.argument)throw new TypeError("Property delegate of YieldExpression cannot be true if there is no argument")}),{type:"boolean"})):Ai("boolean"),default:!1},argument:{optional:!0,validate:wi("Expression")}}}),Bi("AwaitExpression",{builder:["argument"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{argument:{validate:wi("Expression")}}}),Bi("Import",{aliases:["Expression"]}),Bi("BigIntLiteral",{builder:["value"],fields:{value:{validate:Ai("string")}},aliases:["Expression","Pureish","Literal","Immutable"]}),Bi("ExportNamespaceSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:wi("Identifier")}}}),Bi("OptionalMemberExpression",{builder:["object","property","computed","optional"],visitor:["object","property"],aliases:["Expression"],fields:{object:{validate:wi("Expression")},property:{validate:function(){var e=wi("Identifier"),t=wi("Expression"),r=Object.assign((function(r,a,n){(r.computed?t:e)(r,a,n)}),{oneOfNodeTypes:["Expression","Identifier"]});return r}()},computed:{default:!1},optional:{validate:ve.env.BABEL_TYPES_8_BREAKING?Ti(Ai("boolean"),Si()):Ai("boolean")}}}),Bi("OptionalCallExpression",{visitor:["callee","arguments","typeParameters","typeArguments"],builder:["callee","arguments","optional"],aliases:["Expression"],fields:{callee:{validate:wi("Expression")},arguments:Ri("Expression","SpreadElement","ArgumentPlaceholder"),optional:{validate:ve.env.BABEL_TYPES_8_BREAKING?Ti(Ai("boolean"),Si()):Ai("boolean")},typeArguments:{validate:wi("TypeParameterInstantiation"),optional:!0},typeParameters:{validate:wi("TSTypeParameterInstantiation"),optional:!0}}}),Bi("ClassProperty",{visitor:["decorators","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property"],fields:Object.assign({},qi(),{value:{validate:wi("Expression"),optional:!0},definite:{validate:Ai("boolean"),optional:!0},typeAnnotation:{validate:wi("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:xi("Decorator"),optional:!0},readonly:{validate:Ai("boolean"),optional:!0},declare:{validate:Ai("boolean"),optional:!0},variance:{validate:wi("Variance"),optional:!0}})}),Bi("ClassAccessorProperty",{visitor:["decorators","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property","Accessor"],fields:Object.assign({},qi(),{key:{validate:Ti(function(){var e=wi("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","PrivateName"),t=wi("Expression");return function(r,a,n){(r.computed?t:e)(r,a,n)}}(),wi("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression","PrivateName"))},value:{validate:wi("Expression"),optional:!0},definite:{validate:Ai("boolean"),optional:!0},typeAnnotation:{validate:wi("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:xi("Decorator"),optional:!0},readonly:{validate:Ai("boolean"),optional:!0},declare:{validate:Ai("boolean"),optional:!0},variance:{validate:wi("Variance"),optional:!0}})}),Bi("ClassPrivateProperty",{visitor:["decorators","key","typeAnnotation","value"],builder:["key","value","decorators","static"],aliases:["Property","Private"],fields:{key:{validate:wi("PrivateName")},value:{validate:wi("Expression"),optional:!0},typeAnnotation:{validate:wi("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:xi("Decorator"),optional:!0},static:{validate:Ai("boolean"),default:!1},readonly:{validate:Ai("boolean"),optional:!0},definite:{validate:Ai("boolean"),optional:!0},variance:{validate:wi("Variance"),optional:!0}}}),Bi("ClassPrivateMethod",{builder:["kind","key","params","body","static"],visitor:["decorators","key","typeParameters","params","returnType","body"],aliases:["Function","Scopable","BlockParent","FunctionParent","Method","Private"],fields:Object.assign({},Wi(),Ni(),{kind:{validate:Di("get","set","method"),default:"method"},key:{validate:wi("PrivateName")},body:{validate:wi("BlockStatement")}})}),Bi("PrivateName",{visitor:["id"],aliases:["Private"],fields:{id:{validate:wi("Identifier")}}}),Bi("StaticBlock",{visitor:["body"],fields:{body:Ri("Statement")},aliases:["Scopable","BlockParent","FunctionParent"]});var Hi=_i("Flow"),zi=function(e){var t="DeclareClass"===e;Hi(e,{builder:["id","typeParameters","extends","body"],visitor:["id","typeParameters","extends"].concat(C(t?["mixins","implements"]:[]),["body"]),aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({id:hi("Identifier"),typeParameters:bi("TypeParameterDeclaration"),extends:yi(xi("InterfaceExtends"))},t?{mixins:yi(xi("InterfaceExtends")),implements:yi(xi("ClassImplements"))}:{},{body:hi("ObjectTypeAnnotation")})})};Hi("AnyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),Hi("ArrayTypeAnnotation",{visitor:["elementType"],aliases:["FlowType"],fields:{elementType:hi("FlowType")}}),Hi("BooleanTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),Hi("BooleanLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:mi(Ai("boolean"))}}),Hi("NullLiteralTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),Hi("ClassImplements",{visitor:["id","typeParameters"],fields:{id:hi("Identifier"),typeParameters:bi("TypeParameterInstantiation")}}),zi("DeclareClass"),Hi("DeclareFunction",{visitor:["id"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:hi("Identifier"),predicate:bi("DeclaredPredicate")}}),zi("DeclareInterface"),Hi("DeclareModule",{builder:["id","body","kind"],visitor:["id","body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:hi("Identifier","StringLiteral"),body:hi("BlockStatement"),kind:yi(Di("CommonJS","ES"))}}),Hi("DeclareModuleExports",{visitor:["typeAnnotation"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{typeAnnotation:hi("TypeAnnotation")}}),Hi("DeclareTypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:hi("Identifier"),typeParameters:bi("TypeParameterDeclaration"),right:hi("FlowType")}}),Hi("DeclareOpaqueType",{visitor:["id","typeParameters","supertype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:hi("Identifier"),typeParameters:bi("TypeParameterDeclaration"),supertype:bi("FlowType"),impltype:bi("FlowType")}}),Hi("DeclareVariable",{visitor:["id"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:hi("Identifier")}}),Hi("DeclareExportDeclaration",{visitor:["declaration","specifiers","source","attributes"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({declaration:bi("Flow"),specifiers:yi(xi("ExportSpecifier","ExportNamespaceSpecifier")),source:bi("StringLiteral"),default:yi(Ai("boolean"))},Ui)}),Hi("DeclareExportAllDeclaration",{visitor:["source","attributes"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({source:hi("StringLiteral"),exportKind:yi(Di("type","value"))},Ui)}),Hi("DeclaredPredicate",{visitor:["value"],aliases:["FlowPredicate"],fields:{value:hi("Flow")}}),Hi("ExistsTypeAnnotation",{aliases:["FlowType"]}),Hi("FunctionTypeAnnotation",{visitor:["typeParameters","params","rest","returnType"],aliases:["FlowType"],fields:{typeParameters:bi("TypeParameterDeclaration"),params:Ri("FunctionTypeParam"),rest:bi("FunctionTypeParam"),this:bi("FunctionTypeParam"),returnType:hi("FlowType")}}),Hi("FunctionTypeParam",{visitor:["name","typeAnnotation"],fields:{name:bi("Identifier"),typeAnnotation:hi("FlowType"),optional:yi(Ai("boolean"))}}),Hi("GenericTypeAnnotation",{visitor:["id","typeParameters"],aliases:["FlowType"],fields:{id:hi("Identifier","QualifiedTypeIdentifier"),typeParameters:bi("TypeParameterInstantiation")}}),Hi("InferredPredicate",{aliases:["FlowPredicate"]}),Hi("InterfaceExtends",{visitor:["id","typeParameters"],fields:{id:hi("Identifier","QualifiedTypeIdentifier"),typeParameters:bi("TypeParameterInstantiation")}}),zi("InterfaceDeclaration"),Hi("InterfaceTypeAnnotation",{visitor:["extends","body"],aliases:["FlowType"],fields:{extends:yi(xi("InterfaceExtends")),body:hi("ObjectTypeAnnotation")}}),Hi("IntersectionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:mi(xi("FlowType"))}}),Hi("MixedTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),Hi("EmptyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),Hi("NullableTypeAnnotation",{visitor:["typeAnnotation"],aliases:["FlowType"],fields:{typeAnnotation:hi("FlowType")}}),Hi("NumberLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:mi(Ai("number"))}}),Hi("NumberTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),Hi("ObjectTypeAnnotation",{visitor:["properties","indexers","callProperties","internalSlots"],aliases:["FlowType"],builder:["properties","indexers","callProperties","internalSlots","exact"],fields:{properties:mi(xi("ObjectTypeProperty","ObjectTypeSpreadProperty")),indexers:{validate:xi("ObjectTypeIndexer"),optional:!0,default:[]},callProperties:{validate:xi("ObjectTypeCallProperty"),optional:!0,default:[]},internalSlots:{validate:xi("ObjectTypeInternalSlot"),optional:!0,default:[]},exact:{validate:Ai("boolean"),default:!1},inexact:yi(Ai("boolean"))}}),Hi("ObjectTypeInternalSlot",{visitor:["id","value"],builder:["id","value","optional","static","method"],aliases:["UserWhitespacable"],fields:{id:hi("Identifier"),value:hi("FlowType"),optional:mi(Ai("boolean")),static:mi(Ai("boolean")),method:mi(Ai("boolean"))}}),Hi("ObjectTypeCallProperty",{visitor:["value"],aliases:["UserWhitespacable"],fields:{value:hi("FlowType"),static:mi(Ai("boolean"))}}),Hi("ObjectTypeIndexer",{visitor:["variance","id","key","value"],builder:["id","key","value","variance"],aliases:["UserWhitespacable"],fields:{id:bi("Identifier"),key:hi("FlowType"),value:hi("FlowType"),static:mi(Ai("boolean")),variance:bi("Variance")}}),Hi("ObjectTypeProperty",{visitor:["key","value","variance"],aliases:["UserWhitespacable"],fields:{key:hi("Identifier","StringLiteral"),value:hi("FlowType"),kind:mi(Di("init","get","set")),static:mi(Ai("boolean")),proto:mi(Ai("boolean")),optional:mi(Ai("boolean")),variance:bi("Variance"),method:mi(Ai("boolean"))}}),Hi("ObjectTypeSpreadProperty",{visitor:["argument"],aliases:["UserWhitespacable"],fields:{argument:hi("FlowType")}}),Hi("OpaqueType",{visitor:["id","typeParameters","supertype","impltype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:hi("Identifier"),typeParameters:bi("TypeParameterDeclaration"),supertype:bi("FlowType"),impltype:hi("FlowType")}}),Hi("QualifiedTypeIdentifier",{visitor:["qualification","id"],builder:["id","qualification"],fields:{id:hi("Identifier"),qualification:hi("Identifier","QualifiedTypeIdentifier")}}),Hi("StringLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:mi(Ai("string"))}}),Hi("StringTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),Hi("SymbolTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),Hi("ThisTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),Hi("TupleTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:mi(xi("FlowType"))}}),Hi("TypeofTypeAnnotation",{visitor:["argument"],aliases:["FlowType"],fields:{argument:hi("FlowType")}}),Hi("TypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:hi("Identifier"),typeParameters:bi("TypeParameterDeclaration"),right:hi("FlowType")}}),Hi("TypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:hi("FlowType")}}),Hi("TypeCastExpression",{visitor:["expression","typeAnnotation"],aliases:["ExpressionWrapper","Expression"],fields:{expression:hi("Expression"),typeAnnotation:hi("TypeAnnotation")}}),Hi("TypeParameter",{visitor:["bound","default","variance"],fields:{name:mi(Ai("string")),bound:bi("TypeAnnotation"),default:bi("FlowType"),variance:bi("Variance")}}),Hi("TypeParameterDeclaration",{visitor:["params"],fields:{params:mi(xi("TypeParameter"))}}),Hi("TypeParameterInstantiation",{visitor:["params"],fields:{params:mi(xi("FlowType"))}}),Hi("UnionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:mi(xi("FlowType"))}}),Hi("Variance",{builder:["kind"],fields:{kind:mi(Di("minus","plus"))}}),Hi("VoidTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),Hi("EnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{id:hi("Identifier"),body:hi("EnumBooleanBody","EnumNumberBody","EnumStringBody","EnumSymbolBody")}}),Hi("EnumBooleanBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:mi(Ai("boolean")),members:Ri("EnumBooleanMember"),hasUnknownMembers:mi(Ai("boolean"))}}),Hi("EnumNumberBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:mi(Ai("boolean")),members:Ri("EnumNumberMember"),hasUnknownMembers:mi(Ai("boolean"))}}),Hi("EnumStringBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:mi(Ai("boolean")),members:Ri("EnumStringMember","EnumDefaultedMember"),hasUnknownMembers:mi(Ai("boolean"))}}),Hi("EnumSymbolBody",{aliases:["EnumBody"],visitor:["members"],fields:{members:Ri("EnumDefaultedMember"),hasUnknownMembers:mi(Ai("boolean"))}}),Hi("EnumBooleanMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:hi("Identifier"),init:hi("BooleanLiteral")}}),Hi("EnumNumberMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:hi("Identifier"),init:hi("NumericLiteral")}}),Hi("EnumStringMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:hi("Identifier"),init:hi("StringLiteral")}}),Hi("EnumDefaultedMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:hi("Identifier")}}),Hi("IndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:hi("FlowType"),indexType:hi("FlowType")}}),Hi("OptionalIndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:hi("FlowType"),indexType:hi("FlowType"),optional:mi(Ai("boolean"))}});var Gi=_i("JSX");Gi("JSXAttribute",{visitor:["name","value"],aliases:["Immutable"],fields:{name:{validate:wi("JSXIdentifier","JSXNamespacedName")},value:{optional:!0,validate:wi("JSXElement","JSXFragment","StringLiteral","JSXExpressionContainer")}}}),Gi("JSXClosingElement",{visitor:["name"],aliases:["Immutable"],fields:{name:{validate:wi("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")}}}),Gi("JSXElement",{builder:["openingElement","closingElement","children","selfClosing"],visitor:["openingElement","children","closingElement"],aliases:["Immutable","Expression"],fields:Object.assign({openingElement:{validate:wi("JSXOpeningElement")},closingElement:{optional:!0,validate:wi("JSXClosingElement")},children:Ri("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")},{selfClosing:{validate:Ai("boolean"),optional:!0}})}),Gi("JSXEmptyExpression",{}),Gi("JSXExpressionContainer",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:wi("Expression","JSXEmptyExpression")}}}),Gi("JSXSpreadChild",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:wi("Expression")}}}),Gi("JSXIdentifier",{builder:["name"],fields:{name:{validate:Ai("string")}}}),Gi("JSXMemberExpression",{visitor:["object","property"],fields:{object:{validate:wi("JSXMemberExpression","JSXIdentifier")},property:{validate:wi("JSXIdentifier")}}}),Gi("JSXNamespacedName",{visitor:["namespace","name"],fields:{namespace:{validate:wi("JSXIdentifier")},name:{validate:wi("JSXIdentifier")}}}),Gi("JSXOpeningElement",{builder:["name","attributes","selfClosing"],visitor:["name","attributes"],aliases:["Immutable"],fields:{name:{validate:wi("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")},selfClosing:{default:!1},attributes:Ri("JSXAttribute","JSXSpreadAttribute"),typeParameters:{validate:wi("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}}),Gi("JSXSpreadAttribute",{visitor:["argument"],fields:{argument:{validate:wi("Expression")}}}),Gi("JSXText",{aliases:["Immutable"],builder:["value"],fields:{value:{validate:Ai("string")}}}),Gi("JSXFragment",{builder:["openingFragment","closingFragment","children"],visitor:["openingFragment","children","closingFragment"],aliases:["Immutable","Expression"],fields:{openingFragment:{validate:wi("JSXOpeningFragment")},closingFragment:{validate:wi("JSXClosingFragment")},children:Ri("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")}}),Gi("JSXOpeningFragment",{aliases:["Immutable"]}),Gi("JSXClosingFragment",{aliases:["Immutable"]});for(var Vi=["Identifier","StringLiteral","Expression","Statement","Declaration","BlockStatement","ClassBody","Pattern"],Ki={Declaration:["Statement"],Pattern:["PatternLike","LVal"]},Yi=0,Ji=Vi;Yi=Number.MAX_SAFE_INTEGER?Dx.uid=0:Dx.uid++};var jx=Function.call.bind(Object.prototype.toString);function Ax(e){return"[object RegExp]"===jx(e)}function Cx(e){if("object"!==typeof e||null===e||"[object Object]"!==Object.prototype.toString.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||null===Object.getPrototypeOf(t)}function Sx(e){if(void 0===e)return qd("undefined");if(!0===e||!1===e)return Kd(e);if(null===e)return Vd();if("string"===typeof e)return zd(e);var t;if("number"===typeof e)return t=Number.isFinite(e)?Gd(Math.abs(e)):Ed("/",Number.isNaN(e)?Gd(0):Gd(1),Gd(0)),(e<0||Object.is(e,-0))&&(t=lu("-",t)),t;if(Ax(e))return Yd(e.source,/\/([a-z]*)$/.exec(e.toString())[1]);if(Array.isArray(e))return xd(e.map(Sx));if(Cx(e)){for(var r=[],a=0,n=Object.keys(e);a1?e:e[0]})),aR=tR((function(e){return e})),nR=tR((function(e){if(0===e.length)throw new Error("Found nothing to return.");if(e.length>1)throw new Error("Found multiple statements but wanted one");return e[0]})),sR={code:function(e){return"(\n"+e+"\n)"},validate:function(e){if(e.program.body.length>1)throw new Error("Found multiple statements but wanted one");if(0===sR.unwrap(e).start)throw new Error("Parse result included parens.")},unwrap:function(e){var t=j(e.program.body,1)[0];return eR(t),t.expression}},oR={code:function(e){return e},validate:function(){},unwrap:function(e){return e.program}},iR=["placeholderWhitelist","placeholderPattern","preserveComments","syntacticPlaceholders"];function dR(e,t){var r=t.placeholderWhitelist,a=void 0===r?e.placeholderWhitelist:r,n=t.placeholderPattern,s=void 0===n?e.placeholderPattern:n,o=t.preserveComments,i=void 0===o?e.preserveComments:o,d=t.syntacticPlaceholders,u=void 0===d?e.syntacticPlaceholders:d;return{parser:Object.assign({},e.parser,t.parser),placeholderWhitelist:a,placeholderPattern:s,preserveComments:i,syntacticPlaceholders:u}}function uR(e){if(null!=e&&"object"!==typeof e)throw new Error("Unknown template options.");var t=e||{},r=t.placeholderWhitelist,a=t.placeholderPattern,n=t.preserveComments,s=t.syntacticPlaceholders,o=E(t,iR);if(null!=r&&!(r instanceof Set))throw new Error("'.placeholderWhitelist' must be a Set, null, or undefined");if(null!=a&&!(a instanceof RegExp)&&!1!==a)throw new Error("'.placeholderPattern' must be a RegExp, false, null, or undefined");if(null!=n&&"boolean"!==typeof n)throw new Error("'.preserveComments' must be a boolean, null, or undefined");if(null!=s&&"boolean"!==typeof s)throw new Error("'.syntacticPlaceholders' must be a boolean, null, or undefined");if(!0===s&&(null!=r||null!=a))throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'");return{parser:o,placeholderWhitelist:r||void 0,placeholderPattern:null==a?void 0:a,preserveComments:null==n?void 0:n,syntacticPlaceholders:null==s?void 0:s}}function cR(e){if(Array.isArray(e))return e.reduce((function(e,t,r){return e["$"+r]=t,e}),{});if("object"===typeof e||null==e)return e||void 0;throw new Error("Template replacements must be an array, object, null, or undefined")}var lR=l((function(e,t,r){this.line=void 0,this.column=void 0,this.index=void 0,this.line=e,this.column=t,this.index=r})),pR=l((function(e,t){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=e,this.end=t}));function fR(e,t){var r=e.line,a=e.column,n=e.index;return new lR(r,a+t,n+t)}var gR,mR="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",hR={ImportMetaOutsideModule:{message:"import.meta may appear only with 'sourceType: \"module\"'",code:mR},ImportOutsideModule:{message:"'import' and 'export' may appear only with 'sourceType: \"module\"'",code:mR}},yR={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},bR=function(e){return"UpdateExpression"===e.type?yR.UpdateExpression[""+e.prefix]:yR[e.type]},vR={AccessorIsGenerator:function(e){return"A "+e.kind+"ter cannot be a generator."},ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncFunction:"'await' is only allowed within async functions.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:function(e){return"Missing initializer in "+e.kind+" declaration."},DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeferImportRequiresNamespace:'Only `import defer * as x from "./module"` is valid.',DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:function(e){return"`"+e.exportName+"` has already been exported. Exported identifiers must be unique."},DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",DynamicImportPhaseRequiresImportExpressions:function(e){return"'import."+e.phase+"(...)' can only be parsed when using the 'createImportExpressions' option."},ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:function(e){return"A string literal cannot be used as an exported binding without `from`.\n- Did you mean `export { '"+e.localName+"' as '"+e.exportName+"' } from 'some-module'`?"},ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:function(e){return"'"+("ForInStatement"===e.type?"for-in":"for-of")+"' loop variable declaration may not have an initializer."},ForInUsing:"For-in loop may not start with 'using' declaration.",ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:function(e){return"Unsyntactic "+("BreakStatement"===e.type?"break":"continue")+"."},IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportAttributesUseAssert:"The `assert` keyword in import attributes is deprecated and it has been replaced by the `with` keyword. You can enable the `deprecatedImportAssert` parser plugin to suppress this error.",ImportBindingIsString:function(e){return'A string literal cannot be used as an imported binding.\n- Did you mean `import { "'+e.importName+'" as foo }`?'},ImportCallArity:"`import()` requires exactly one or two arguments.",ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:function(e){return"Expected number in radix "+e.radix+"."},InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:function(e){return"Escape sequence in keyword "+e.reservedWord+"."},InvalidIdentifier:function(e){return"Invalid identifier "+e.identifierName+"."},InvalidLhs:function(e){var t=e.ancestor;return"Invalid left-hand side in "+bR(t)+"."},InvalidLhsBinding:function(e){var t=e.ancestor;return"Binding invalid left-hand side in "+bR(t)+"."},InvalidLhsOptionalChaining:function(e){var t=e.ancestor;return"Invalid optional chaining in the left-hand side of "+bR(t)+"."},InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:function(e){return"Unexpected character '"+e.unexpected+"'."},InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:function(e){return"Private name #"+e.identifierName+" is not defined."},InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:function(e){return"Label '"+e.labelName+"' is already declared."},LetInLexicalBinding:"'let' is disallowed as a lexically bound name.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:function(e){return"This experimental syntax requires enabling the parser plugin: "+e.missingPlugin.map((function(e){return JSON.stringify(e)})).join(", ")+"."},MissingOneOfPlugins:function(e){return"This experimental syntax requires enabling one of the following parser plugin(s): "+e.missingPlugin.map((function(e){return JSON.stringify(e)})).join(", ")+"."},MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:function(e){return'Duplicate key "'+e.key+'" is not allowed in module attributes.'},ModuleExportNameHasLoneSurrogate:function(e){return"An export name cannot include a lone surrogate, found '\\u"+e.surrogateCharCode.toString(16)+"'."},ModuleExportUndefined:function(e){return"Export '"+e.localName+"' is not defined."},MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PrivateInExpectedIn:function(e){var t=e.identifierName;return"Private names are only allowed in property accesses (`obj.#"+t+"`) or in `in` expressions (`#"+t+" in obj`)."},PrivateNameRedeclaration:function(e){return"Duplicate private name #"+e.identifierName+"."},RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",RecordNoProto:"'__proto__' is not allowed in Record expressions.",RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level or inside a block.",SloppyFunctionAnnexB:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",SourcePhaseImportRequiresDefault:'Only `import source x from "./module"` is valid.',StaticPrototype:"Classes may not have static property named prototype.",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:function(e){return"Unexpected keyword '"+e.keyword+"'."},UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:function(e){return"Unexpected reserved word '"+e.reservedWord+"'."},UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:function(e){var t=e.expected,r=e.unexpected;return"Unexpected token"+(r?" '"+r+"'.":"")+(t?', expected "'+t+'"':"")},UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script`.",UnsupportedBind:"Binding should be performed on object property.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:function(e){var t=e.target;return"The only valid meta property for "+t+" is "+t+"."+e.onlyValidPropertyName+"."},UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",UsingDeclarationExport:"Using declaration cannot be exported.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:function(e){return"Identifier '"+e.identifierName+"' has already been declared."},YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."},xR={StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:function(e){return"Assigning to '"+e.referenceName+"' in strict mode."},StrictEvalArgumentsBinding:function(e){return"Binding '"+e.bindingName+"' in strict mode."},StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block.",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'.",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode.",StrictWith:"'with' in strict mode."},RR=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),ER={PipeBodyIsTighter:"Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",PipeTopicRequiresHackPipes:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:function(e){var t=e.token;return"Invalid topic token "+t+". In order to use "+t+' as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "'+t+'" }.'},PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:function(e){var t=e.type;return"Hack-style pipe body cannot be an unparenthesized "+bR({type:t})+"; please wrap it in parentheses."},PipelineBodyNoArrow:'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.',PipelineBodySequenceExpression:"Pipeline body may not be a comma-separated sequence expression.",PipelineHeadSequenceExpression:"Pipeline head should not be a comma-separated sequence expression.",PipelineTopicUnused:"Pipeline is in topic style but does not use topic reference.",PrimaryTopicNotAllowed:"Topic reference was used in a lexical context without topic binding.",PrimaryTopicRequiresSmartPipeline:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.'},DR=["message"];function wR(e,t,r){Object.defineProperty(e,t,{enumerable:!1,configurable:!0,value:r})}function jR(e){var t=e.toMessage,r=e.code,a=e.reasonCode,n=e.syntaxPlugin,s="MissingPlugin"===a||"MissingOneOfPlugins"===a,o={AccessorCannotDeclareThisParameter:"AccesorCannotDeclareThisParameter",AccessorCannotHaveTypeParameters:"AccesorCannotHaveTypeParameters",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference",SetAccessorCannotHaveOptionalParameter:"SetAccesorCannotHaveOptionalParameter",SetAccessorCannotHaveRestParameter:"SetAccesorCannotHaveRestParameter",SetAccessorCannotHaveReturnType:"SetAccesorCannotHaveReturnType"};return o[a]&&(a=o[a]),function e(o,i){var d=new SyntaxError;return d.code=r,d.reasonCode=a,d.loc=o,d.pos=o.index,d.syntaxPlugin=n,s&&(d.missingPlugin=i.missingPlugin),wR(d,"clone",(function(t){var r;void 0===t&&(t={});var a=null!=(r=t.loc)?r:o,n=a.line,s=a.column,d=a.index;return e(new lR(n,s,d),Object.assign({},i,t.details))})),wR(d,"details",i),Object.defineProperty(d,"message",{configurable:!0,get:function(){var e=t(i)+" ("+o.line+":"+o.column+")";return this.message=e,e},set:function(e){Object.defineProperty(this,"message",{value:e,writable:!0})}}),d}}function AR(e,t){if(Array.isArray(e))return function(t){return AR(t,e[0])};for(var r={},a=function(){var a=s[n],o=e[a],i="string"===typeof o?{message:function(){return o}}:"function"===typeof o?{message:o}:o,d=i.message,u=E(i,DR),c="string"===typeof d?function(){return d}:d;r[a]=jR(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:a,toMessage:c},t?{syntaxPlugin:t}:{},u))},n=0,s=Object.keys(e);n0&&o.start===n.start&&this.resetStartLocation(n,a)}return n},r.parseSubscript=function(t,r,a,n){var s=e.prototype.parseSubscript.call(this,t,r,a,n);if(n.optionalChainMember){if("OptionalMemberExpression"!==s.type&&"OptionalCallExpression"!==s.type||(s.type=s.type.substring(8)),n.stop){var o=this.startNodeAtNode(s);return o.expression=s,this.finishNode(o,"ChainExpression")}}else"MemberExpression"!==s.type&&"CallExpression"!==s.type||(s.optional=!1);return s},r.isOptionalMemberExpression=function(t){return"ChainExpression"===t.type?"MemberExpression"===t.expression.type:e.prototype.isOptionalMemberExpression.call(this,t)},r.hasPropertyAsPrivateName=function(t){return"ChainExpression"===t.type&&(t=t.expression),e.prototype.hasPropertyAsPrivateName.call(this,t)},r.isObjectProperty=function(e){return"Property"===e.type&&"init"===e.kind&&!e.method},r.isObjectMethod=function(e){return"Property"===e.type&&(e.method||"get"===e.kind||"set"===e.kind)},r.finishNodeAt=function(t,r,a){return kR(e.prototype.finishNodeAt.call(this,t,r,a))},r.resetStartLocation=function(t,r){e.prototype.resetStartLocation.call(this,t,r),kR(t)},r.resetEndLocation=function(t,r){void 0===r&&(r=this.state.lastTokEndLoc),e.prototype.resetEndLocation.call(this,t,r),kR(t)},l(t)}(e)},FR=l((function(e,t){this.token=void 0,this.preserveSpace=void 0,this.token=e,this.preserveSpace=!!t})),_R={brace:new FR("{"),j_oTag:new FR("...",!0)};_R.template=new FR("`",!0);var IR=!0,BR=!0,OR=!0,NR=!0,MR=!0,LR=!0,UR=l((function(e,t){void 0===t&&(t={}),this.label=void 0,this.keyword=void 0,this.beforeExpr=void 0,this.startsExpr=void 0,this.rightAssociative=void 0,this.isLoop=void 0,this.isAssign=void 0,this.prefix=void 0,this.postfix=void 0,this.binop=void 0,this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.rightAssociative=!!t.rightAssociative,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=null!=t.binop?t.binop:null,this.updateContext=null})),qR=new Map;function WR(e,t){void 0===t&&(t={}),t.keyword=e;var r=$R(e,t);return qR.set(e,r),r}function HR(e,t){return $R(e,{beforeExpr:IR,binop:t})}var zR=-1,GR=[],VR=[],KR=[],YR=[],JR=[],XR=[];function $R(e,t){var r,a,n,s;return void 0===t&&(t={}),++zR,VR.push(e),KR.push(null!=(r=t.binop)?r:-1),YR.push(null!=(a=t.beforeExpr)&&a),JR.push(null!=(n=t.startsExpr)&&n),XR.push(null!=(s=t.prefix)&&s),GR.push(new UR(e,t)),zR}function QR(e,t){var r,a,n,s;return void 0===t&&(t={}),++zR,qR.set(e,zR),VR.push(e),KR.push(null!=(r=t.binop)?r:-1),YR.push(null!=(a=t.beforeExpr)&&a),JR.push(null!=(n=t.startsExpr)&&n),XR.push(null!=(s=t.prefix)&&s),GR.push(new UR("name",t)),zR}var ZR={bracketL:$R("[",{beforeExpr:IR,startsExpr:BR}),bracketHashL:$R("#[",{beforeExpr:IR,startsExpr:BR}),bracketBarL:$R("[|",{beforeExpr:IR,startsExpr:BR}),bracketR:$R("]"),bracketBarR:$R("|]"),braceL:$R("{",{beforeExpr:IR,startsExpr:BR}),braceBarL:$R("{|",{beforeExpr:IR,startsExpr:BR}),braceHashL:$R("#{",{beforeExpr:IR,startsExpr:BR}),braceR:$R("}"),braceBarR:$R("|}"),parenL:$R("(",{beforeExpr:IR,startsExpr:BR}),parenR:$R(")"),comma:$R(",",{beforeExpr:IR}),semi:$R(";",{beforeExpr:IR}),colon:$R(":",{beforeExpr:IR}),doubleColon:$R("::",{beforeExpr:IR}),dot:$R("."),question:$R("?",{beforeExpr:IR}),questionDot:$R("?."),arrow:$R("=>",{beforeExpr:IR}),template:$R("template"),ellipsis:$R("...",{beforeExpr:IR}),backQuote:$R("`",{startsExpr:BR}),dollarBraceL:$R("${",{beforeExpr:IR,startsExpr:BR}),templateTail:$R("...`",{startsExpr:BR}),templateNonTail:$R("...${",{beforeExpr:IR,startsExpr:BR}),at:$R("@"),hash:$R("#",{startsExpr:BR}),interpreterDirective:$R("#!..."),eq:$R("=",{beforeExpr:IR,isAssign:NR}),assign:$R("_=",{beforeExpr:IR,isAssign:NR}),slashAssign:$R("_=",{beforeExpr:IR,isAssign:NR}),xorAssign:$R("_=",{beforeExpr:IR,isAssign:NR}),moduloAssign:$R("_=",{beforeExpr:IR,isAssign:NR}),incDec:$R("++/--",{prefix:MR,postfix:LR,startsExpr:BR}),bang:$R("!",{beforeExpr:IR,prefix:MR,startsExpr:BR}),tilde:$R("~",{beforeExpr:IR,prefix:MR,startsExpr:BR}),doubleCaret:$R("^^",{startsExpr:BR}),doubleAt:$R("@@",{startsExpr:BR}),pipeline:HR("|>",0),nullishCoalescing:HR("??",1),logicalOR:HR("||",1),logicalAND:HR("&&",2),bitwiseOR:HR("|",3),bitwiseXOR:HR("^",4),bitwiseAND:HR("&",5),equality:HR("==/!=/===/!==",6),lt:HR("/<=/>=",7),gt:HR("/<=/>=",7),relational:HR("/<=/>=",7),bitShift:HR("<>/>>>",8),bitShiftL:HR("<>/>>>",8),bitShiftR:HR("<>/>>>",8),plusMin:$R("+/-",{beforeExpr:IR,binop:9,prefix:MR,startsExpr:BR}),modulo:$R("%",{binop:10,startsExpr:BR}),star:$R("*",{binop:10}),slash:HR("/",10),exponent:$R("**",{beforeExpr:IR,binop:11,rightAssociative:!0}),_in:WR("in",{beforeExpr:IR,binop:7}),_instanceof:WR("instanceof",{beforeExpr:IR,binop:7}),_break:WR("break"),_case:WR("case",{beforeExpr:IR}),_catch:WR("catch"),_continue:WR("continue"),_debugger:WR("debugger"),_default:WR("default",{beforeExpr:IR}),_else:WR("else",{beforeExpr:IR}),_finally:WR("finally"),_function:WR("function",{startsExpr:BR}),_if:WR("if"),_return:WR("return",{beforeExpr:IR}),_switch:WR("switch"),_throw:WR("throw",{beforeExpr:IR,prefix:MR,startsExpr:BR}),_try:WR("try"),_var:WR("var"),_const:WR("const"),_with:WR("with"),_new:WR("new",{beforeExpr:IR,startsExpr:BR}),_this:WR("this",{startsExpr:BR}),_super:WR("super",{startsExpr:BR}),_class:WR("class",{startsExpr:BR}),_extends:WR("extends",{beforeExpr:IR}),_export:WR("export"),_import:WR("import",{startsExpr:BR}),_null:WR("null",{startsExpr:BR}),_true:WR("true",{startsExpr:BR}),_false:WR("false",{startsExpr:BR}),_typeof:WR("typeof",{beforeExpr:IR,prefix:MR,startsExpr:BR}),_void:WR("void",{beforeExpr:IR,prefix:MR,startsExpr:BR}),_delete:WR("delete",{beforeExpr:IR,prefix:MR,startsExpr:BR}),_do:WR("do",{isLoop:OR,beforeExpr:IR}),_for:WR("for",{isLoop:OR}),_while:WR("while",{isLoop:OR}),_as:QR("as",{startsExpr:BR}),_assert:QR("assert",{startsExpr:BR}),_async:QR("async",{startsExpr:BR}),_await:QR("await",{startsExpr:BR}),_defer:QR("defer",{startsExpr:BR}),_from:QR("from",{startsExpr:BR}),_get:QR("get",{startsExpr:BR}),_let:QR("let",{startsExpr:BR}),_meta:QR("meta",{startsExpr:BR}),_of:QR("of",{startsExpr:BR}),_sent:QR("sent",{startsExpr:BR}),_set:QR("set",{startsExpr:BR}),_source:QR("source",{startsExpr:BR}),_static:QR("static",{startsExpr:BR}),_using:QR("using",{startsExpr:BR}),_yield:QR("yield",{startsExpr:BR}),_asserts:QR("asserts",{startsExpr:BR}),_checks:QR("checks",{startsExpr:BR}),_exports:QR("exports",{startsExpr:BR}),_global:QR("global",{startsExpr:BR}),_implements:QR("implements",{startsExpr:BR}),_intrinsic:QR("intrinsic",{startsExpr:BR}),_infer:QR("infer",{startsExpr:BR}),_is:QR("is",{startsExpr:BR}),_mixins:QR("mixins",{startsExpr:BR}),_proto:QR("proto",{startsExpr:BR}),_require:QR("require",{startsExpr:BR}),_satisfies:QR("satisfies",{startsExpr:BR}),_keyof:QR("keyof",{startsExpr:BR}),_readonly:QR("readonly",{startsExpr:BR}),_unique:QR("unique",{startsExpr:BR}),_abstract:QR("abstract",{startsExpr:BR}),_declare:QR("declare",{startsExpr:BR}),_enum:QR("enum",{startsExpr:BR}),_module:QR("module",{startsExpr:BR}),_namespace:QR("namespace",{startsExpr:BR}),_interface:QR("interface",{startsExpr:BR}),_type:QR("type",{startsExpr:BR}),_opaque:QR("opaque",{startsExpr:BR}),name:$R("name",{startsExpr:BR}),placeholder:$R("%%",{startsExpr:!0}),string:$R("string",{startsExpr:BR}),num:$R("num",{startsExpr:BR}),bigint:$R("bigint",{startsExpr:BR}),decimal:$R("decimal",{startsExpr:BR}),regexp:$R("regexp",{startsExpr:BR}),privateName:$R("#name",{startsExpr:BR}),eof:$R("eof"),jsxName:$R("jsxName"),jsxText:$R("jsxText",{beforeExpr:!0}),jsxTagStart:$R("jsxTagStart",{startsExpr:!0}),jsxTagEnd:$R("jsxTagEnd")};function eE(e){return e>=93&&e<=133}function tE(e){return e<=92}function rE(e){return e>=58&&e<=133}function aE(e){return e>=58&&e<=137}function nE(e){return YR[e]}function sE(e){return JR[e]}function oE(e){return e>=29&&e<=33}function iE(e){return e>=129&&e<=131}function dE(e){return e>=90&&e<=92}function uE(e){return e>=58&&e<=92}function cE(e){return e>=39&&e<=59}function lE(e){return 34===e}function pE(e){return XR[e]}function fE(e){return e>=121&&e<=123}function gE(e){return e>=124&&e<=130}function mE(e){return VR[e]}function hE(e){return KR[e]}function yE(e){return 57===e}function bE(e){return e>=24&&e<=25}function vE(e){return GR[e]}function xE(e,t,r){return 64===e&&64===t&&vo(r)}GR[8].updateContext=function(e){e.pop()},GR[5].updateContext=GR[7].updateContext=GR[23].updateContext=function(e){e.push(_R.brace)},GR[22].updateContext=function(e){e[e.length-1]===_R.template?e.pop():e.push(_R.template)},GR[143].updateContext=function(e){e.push(_R.j_expr,_R.j_oTag)};var RE=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete","implements","interface","let","package","private","protected","public","static","yield","eval","arguments","enum","await"]);function EE(e){return RE.has(e)}var DE={OTHER:0,PROGRAM:1,FUNCTION:2,ARROW:4,SIMPLE_CATCH:8,SUPER:16,DIRECT_SUPER:32,CLASS:64,STATIC_BLOCK:128,TS_MODULE:256,VAR:387},wE={KIND_VALUE:1,KIND_TYPE:2,SCOPE_VAR:4,SCOPE_LEXICAL:8,SCOPE_FUNCTION:16,SCOPE_OUTSIDE:32,FLAG_NONE:64,FLAG_CLASS:128,FLAG_TS_ENUM:256,FLAG_TS_CONST_ENUM:512,FLAG_TS_EXPORT_ONLY:1024,FLAG_FLOW_DECLARE_FN:2048,FLAG_TS_IMPORT:4096,FLAG_NO_LET_IN_LEXICAL:8192,TYPE_CLASS:8331,TYPE_LEXICAL:8201,TYPE_CATCH_PARAM:9,TYPE_VAR:5,TYPE_FUNCTION:17,TYPE_TS_INTERFACE:130,TYPE_TS_TYPE:2,TYPE_TS_ENUM:8459,TYPE_TS_AMBIENT:1024,TYPE_NONE:64,TYPE_OUTSIDE:65,TYPE_TS_CONST_ENUM:8971,TYPE_TS_NAMESPACE:1024,TYPE_TS_TYPE_IMPORT:4098,TYPE_TS_VALUE_IMPORT:4096,TYPE_FLOW_DECLARE_FN:2048},jE={OTHER:0,FLAG_STATIC:4,KIND_GETTER:2,KIND_SETTER:1,KIND_ACCESSOR:3,STATIC_GETTER:6,STATIC_SETTER:5,INSTANCE_GETTER:2,INSTANCE_SETTER:1},AE={Var:1,Lexical:2,Function:4},CE=l((function(e){this.flags=0,this.names=new Map,this.firstLexicalName="",this.flags=e})),SE=function(){function e(e,t){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=e,this.inModule=t}var t=e.prototype;return t.createScope=function(e){return new CE(e)},t.enter=function(e){this.scopeStack.push(this.createScope(e))},t.exit=function(){return this.scopeStack.pop().flags},t.treatFunctionsAsVarInScope=function(e){return!!(e.flags&(DE.FUNCTION|DE.STATIC_BLOCK)||!this.parser.inModule&&e.flags&DE.PROGRAM)},t.declareName=function(e,t,r){var a=this.currentScope();if(t&wE.SCOPE_LEXICAL||t&wE.SCOPE_FUNCTION){this.checkRedeclarationInScope(a,e,t,r);var n=a.names.get(e)||0;t&wE.SCOPE_FUNCTION?n|=AE.Function:(a.firstLexicalName||(a.firstLexicalName=e),n|=AE.Lexical),a.names.set(e,n),t&wE.SCOPE_LEXICAL&&this.maybeExportDefined(a,e)}else if(t&wE.SCOPE_VAR)for(var s=this.scopeStack.length-1;s>=0&&(a=this.scopeStack[s],this.checkRedeclarationInScope(a,e,t,r),a.names.set(e,(a.names.get(e)||0)|AE.Var),this.maybeExportDefined(a,e),!(a.flags&DE.VAR));--s);this.parser.inModule&&a.flags&DE.PROGRAM&&this.undefinedExports.delete(e)},t.maybeExportDefined=function(e,t){this.parser.inModule&&e.flags&DE.PROGRAM&&this.undefinedExports.delete(t)},t.checkRedeclarationInScope=function(e,t,r,a){this.isRedeclaredInScope(e,t,r)&&this.parser.raise(CR.VarRedeclaration,a,{identifierName:t})},t.isRedeclaredInScope=function(e,t,r){if(!(r&wE.KIND_VALUE))return!1;if(r&wE.SCOPE_LEXICAL)return e.names.has(t);var a=e.names.get(t);return r&wE.SCOPE_FUNCTION?(a&AE.Lexical)>0||!this.treatFunctionsAsVarInScope(e)&&(a&AE.Var)>0:(a&AE.Lexical)>0&&!(e.flags&DE.SIMPLE_CATCH&&e.firstLexicalName===t)||!this.treatFunctionsAsVarInScope(e)&&(a&AE.Function)>0},t.checkLocalExport=function(e){var t=e.name;this.scopeStack[0].names.has(t)||this.undefinedExports.set(t,e.loc.start)},t.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},t.currentVarScopeFlags=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e].flags;if(t&DE.VAR)return t}},t.currentThisScopeFlags=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e].flags;if(t&(DE.VAR|DE.CLASS)&&!(t&DE.ARROW))return t}},l(e,[{key:"inTopLevel",get:function(){return(this.currentScope().flags&DE.PROGRAM)>0}},{key:"inFunction",get:function(){return(this.currentVarScopeFlags()&DE.FUNCTION)>0}},{key:"allowSuper",get:function(){return(this.currentThisScopeFlags()&DE.SUPER)>0}},{key:"allowDirectSuper",get:function(){return(this.currentThisScopeFlags()&DE.DIRECT_SUPER)>0}},{key:"inClass",get:function(){return(this.currentThisScopeFlags()&DE.CLASS)>0}},{key:"inClassAndNotInNonArrowFunction",get:function(){var e=this.currentThisScopeFlags();return(e&DE.CLASS)>0&&0===(e&DE.FUNCTION)}},{key:"inStaticBlock",get:function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e].flags;if(t&DE.STATIC_BLOCK)return!0;if(t&(DE.VAR|DE.CLASS))return!1}}},{key:"inNonArrowFunction",get:function(){return(this.currentThisScopeFlags()&DE.FUNCTION)>0}},{key:"treatFunctionsAsVar",get:function(){return this.treatFunctionsAsVarInScope(this.currentScope())}}])}(),TE=function(e){function t(){for(var t,r=arguments.length,a=new Array(r),n=0;n0||(n&AE.Lexical)>0}return!1},r.checkLocalExport=function(t){this.scopeStack[0].declareFunctions.has(t.name)||e.prototype.checkLocalExport.call(this,t)},l(t)}(SE);function PE(e,t){var r;void 0===e.trailingComments?e.trailingComments=t:(r=e.trailingComments).unshift.apply(r,t)}function FE(e,t){var r;void 0===e.leadingComments?e.leadingComments=t:(r=e.leadingComments).unshift.apply(r,t)}function _E(e,t){var r;void 0===e.innerComments?e.innerComments=t:(r=e.innerComments).unshift.apply(r,t)}function IE(e,t,r){for(var a=null,n=t.length;null===a&&n>0;)a=t[--n];null===a||a.start>r.start?_E(e,r.comments):PE(a,r.comments)}var BE=function(e){function t(){return e.apply(this,arguments)||this}g(t,e);var r=t.prototype;return r.addComment=function(e){this.filename&&(e.loc.filename=this.filename);var t=this.state.commentsLen;this.comments.length!==t&&(this.comments.length=t),this.comments.push(e),this.state.commentsLen++},r.processComment=function(e){var t=this.state.commentStack,r=t.length;if(0!==r){var a=r-1,n=t[a];n.start===e.end&&(n.leadingNode=e,a--);for(var s=e.start;a>=0;a--){var o=t[a],i=o.end;if(!(i>s)){i===s&&(o.trailingNode=e);break}o.containingNode=e,this.finalizeComment(o),t.splice(a,1)}}},r.finalizeComment=function(e){var t=e.comments;if(null!==e.leadingNode||null!==e.trailingNode)null!==e.leadingNode&&PE(e.leadingNode,t),null!==e.trailingNode&&FE(e.trailingNode,t);else{var r=e.containingNode,a=e.start;if(44===this.input.charCodeAt(this.offsetToSourcePos(a)-1))switch(r.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":IE(r,r.properties,e);break;case"CallExpression":case"OptionalCallExpression":IE(r,r.arguments,e);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":IE(r,r.params,e);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":IE(r,r.elements,e);break;case"ExportNamedDeclaration":case"ImportDeclaration":IE(r,r.specifiers,e);break;default:_E(r,t)}else _E(r,t)}},r.finalizeRemainingComments=function(){for(var e=this.state.commentStack,t=e.length-1;t>=0;t--)this.finalizeComment(e[t]);this.state.commentStack=[]},r.resetPreviousNodeTrailingComments=function(e){var t=this.state.commentStack,r=t.length;if(0!==r){var a=t[r-1];a.leadingNode===e&&(a.leadingNode=null)}},r.resetPreviousIdentifierLeadingComments=function(e){var t=this.state.commentStack,r=t.length;0!==r&&(t[r-1].trailingNode===e?t[r-1].trailingNode=null:r>=2&&t[r-2].trailingNode===e&&(t[r-2].trailingNode=null))},r.takeSurroundingComments=function(e,t,r){var a=this.state.commentStack,n=a.length;if(0!==n)for(var s=n-1;s>=0;s--){var o=a[s],i=o.end;if(o.start===r)o.leadingNode=e;else if(i===t)o.trailingNode=e;else if(i0},set:function(e){e?this.flags|=1:this.flags&=-2}},{key:"maybeInArrowParameters",get:function(){return(2&this.flags)>0},set:function(e){e?this.flags|=2:this.flags&=-3}},{key:"inType",get:function(){return(4&this.flags)>0},set:function(e){e?this.flags|=4:this.flags&=-5}},{key:"noAnonFunctionType",get:function(){return(8&this.flags)>0},set:function(e){e?this.flags|=8:this.flags&=-9}},{key:"hasFlowComment",get:function(){return(16&this.flags)>0},set:function(e){e?this.flags|=16:this.flags&=-17}},{key:"isAmbientContext",get:function(){return(32&this.flags)>0},set:function(e){e?this.flags|=32:this.flags&=-33}},{key:"inAbstractClass",get:function(){return(64&this.flags)>0},set:function(e){e?this.flags|=64:this.flags&=-65}},{key:"inDisallowConditionalTypesContext",get:function(){return(128&this.flags)>0},set:function(e){e?this.flags|=128:this.flags&=-129}},{key:"soloAwait",get:function(){return(256&this.flags)>0},set:function(e){e?this.flags|=256:this.flags&=-257}},{key:"inFSharpPipelineDirectBody",get:function(){return(512&this.flags)>0},set:function(e){e?this.flags|=512:this.flags&=-513}},{key:"canStartJSXElement",get:function(){return(1024&this.flags)>0},set:function(e){e?this.flags|=1024:this.flags&=-1025}},{key:"containsEsc",get:function(){return(2048&this.flags)>0},set:function(e){e?this.flags|=2048:this.flags&=-2049}},{key:"hasTopLevelAwait",get:function(){return(4096&this.flags)>0},set:function(e){e?this.flags|=4096:this.flags&=-4097}}])}();function zE(e,t,r){return new lR(r,e-t,e)}var GE=new Set([103,109,115,105,121,117,100,118]),VE=l((function(e){var t=e.startIndex||0;this.type=e.type,this.value=e.value,this.start=t+e.start,this.end=t+e.end,this.loc=new pR(e.startLoc,e.endLoc)})),KE=function(e){function t(t,r){var a;return(a=e.call(this)||this).isLookahead=void 0,a.tokens=[],a.errorHandlers_readInt={invalidDigit:function(e,t,r,n){return!!a.options.errorRecovery&&(a.raise(CR.InvalidDigit,zE(e,t,r),{radix:n}),!0)},numericSeparatorInEscapeSequence:a.errorBuilder(CR.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:a.errorBuilder(CR.UnexpectedNumericSeparator)},a.errorHandlers_readCodePoint=Object.assign({},a.errorHandlers_readInt,{invalidEscapeSequence:a.errorBuilder(CR.InvalidEscapeSequence),invalidCodePoint:a.errorBuilder(CR.InvalidCodePoint)}),a.errorHandlers_readStringContents_string=Object.assign({},a.errorHandlers_readCodePoint,{strictNumericEscape:function(e,t,r){a.recordStrictModeErrors(CR.StrictNumericEscape,zE(e,t,r))},unterminated:function(e,t,r){throw a.raise(CR.UnterminatedString,zE(e-1,t,r))}}),a.errorHandlers_readStringContents_template=Object.assign({},a.errorHandlers_readCodePoint,{strictNumericEscape:a.errorBuilder(CR.StrictNumericEscape),unterminated:function(e,t,r){throw a.raise(CR.UnterminatedTemplate,zE(e,t,r))}}),a.state=new HE,a.state.init(t),a.input=r,a.length=r.length,a.comments=[],a.isLookahead=!1,a}g(t,e);var r=t.prototype;return r.pushToken=function(e){this.tokens.length=this.state.tokensLength,this.tokens.push(e),++this.state.tokensLength},r.next=function(){this.checkKeywordEscapes(),this.options.tokens&&this.pushToken(new VE(this.state)),this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()},r.eat=function(e){return!!this.match(e)&&(this.next(),!0)},r.match=function(e){return this.state.type===e},r.createLookaheadState=function(e){return{pos:e.pos,value:null,type:e.type,start:e.start,end:e.end,context:[this.curContext()],inType:e.inType,startLoc:e.startLoc,lastTokEndLoc:e.lastTokEndLoc,curLine:e.curLine,lineStart:e.lineStart,curPosition:e.curPosition}},r.lookahead=function(){var e=this.state;this.state=this.createLookaheadState(e),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;var t=this.state;return this.state=e,t},r.nextTokenStart=function(){return this.nextTokenStartSince(this.state.pos)},r.nextTokenStartSince=function(e){return LE.lastIndex=e,LE.test(this.input)?LE.lastIndex:e},r.lookaheadCharCode=function(){return this.input.charCodeAt(this.nextTokenStart())},r.nextTokenInLineStart=function(){return this.nextTokenInLineStartSince(this.state.pos)},r.nextTokenInLineStartSince=function(e){return UE.lastIndex=e,UE.test(this.input)?UE.lastIndex:e},r.lookaheadInLineCharCode=function(){return this.input.charCodeAt(this.nextTokenInLineStart())},r.codePointAtPos=function(e){var t=this.input.charCodeAt(e);if(55296===(64512&t)&&++e=this.length?this.finishToken(140):this.getTokenFromCode(this.codePointAtPos(this.state.pos))},r.skipBlockComment=function(e){var t;this.isLookahead||(t=this.state.curPosition());var r=this.state.pos,a=this.input.indexOf(e,r+2);if(-1===a)throw this.raise(CR.UnterminatedComment,this.state.curPosition());for(this.state.pos=a+e.length,OE.lastIndex=r+2;OE.test(this.input)&&OE.lastIndex<=a;)++this.state.curLine,this.state.lineStart=OE.lastIndex;if(!this.isLookahead){var n={type:"CommentBlock",value:this.input.slice(r+2,a),start:this.sourceToOffsetPos(r),end:this.sourceToOffsetPos(a+e.length),loc:new pR(t,this.state.curPosition())};return this.options.tokens&&this.pushToken(n),n}},r.skipLineComment=function(e){var t,r=this.state.pos;this.isLookahead||(t=this.state.curPosition());var a=this.input.charCodeAt(this.state.pos+=e);if(this.state.pose))break e;var o=this.skipLineComment(3);void 0!==o&&(this.addComment(o),this.options.attachComment&&t.push(o))}else{if(60!==r||this.inModule||!this.options.annexB)break e;var i=this.state.pos;if(33!==this.input.charCodeAt(i+1)||45!==this.input.charCodeAt(i+2)||45!==this.input.charCodeAt(i+3))break e;var d=this.skipLineComment(4);void 0!==d&&(this.addComment(d),this.options.attachComment&&t.push(d))}}}if(t.length>0){var u=this.state.pos,c={start:this.sourceToOffsetPos(e),end:this.sourceToOffsetPos(u),comments:t,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(c)}},r.finishToken=function(e,t){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();var r=this.state.type;this.state.type=e,this.state.value=t,this.isLookahead||this.updateContext(r)},r.replaceToken=function(e){this.state.type=e,this.updateContext()},r.readToken_numberSign=function(){if(0!==this.state.pos||!this.readToken_interpreter()){var e=this.state.pos+1,t=this.codePointAtPos(e);if(t>=48&&t<=57)throw this.raise(CR.UnexpectedDigitAfterHash,this.state.curPosition());if(123===t||91===t&&this.hasPlugin("recordAndTuple")){if(this.expectPlugin("recordAndTuple"),"bar"===this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(123===t?CR.RecordExpressionHashIncorrectStartSyntaxType:CR.TupleExpressionHashIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,123===t?this.finishToken(7):this.finishToken(1)}else vo(t)?(++this.state.pos,this.finishToken(139,this.readWord1(t))):92===t?(++this.state.pos,this.finishToken(139,this.readWord1())):this.finishOp(27,1)}},r.readToken_dot=function(){var e=this.input.charCodeAt(this.state.pos+1);e>=48&&e<=57?this.readNumber(!0):46===e&&46===this.input.charCodeAt(this.state.pos+2)?(this.state.pos+=3,this.finishToken(21)):(++this.state.pos,this.finishToken(16))},r.readToken_slash=function(){61===this.input.charCodeAt(this.state.pos+1)?this.finishOp(31,2):this.finishOp(56,1)},r.readToken_interpreter=function(){if(0!==this.state.pos||this.length<2)return!1;var e=this.input.charCodeAt(this.state.pos+1);if(33!==e)return!1;var t=this.state.pos;for(this.state.pos+=1;!NE(e)&&++this.state.pos=48&&t<=57?(++this.state.pos,this.finishToken(17)):(this.state.pos+=2,this.finishToken(18))},r.getTokenFromCode=function(e){switch(e){case 46:return void this.readToken_dot();case 40:return++this.state.pos,void this.finishToken(10);case 41:return++this.state.pos,void this.finishToken(11);case 59:return++this.state.pos,void this.finishToken(13);case 44:return++this.state.pos,void this.finishToken(12);case 91:if(this.hasPlugin("recordAndTuple")&&124===this.input.charCodeAt(this.state.pos+1)){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(CR.TupleExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(2)}else++this.state.pos,this.finishToken(0);return;case 93:return++this.state.pos,void this.finishToken(3);case 123:if(this.hasPlugin("recordAndTuple")&&124===this.input.charCodeAt(this.state.pos+1)){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(CR.RecordExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(6)}else++this.state.pos,this.finishToken(5);return;case 125:return++this.state.pos,void this.finishToken(8);case 58:return void(this.hasPlugin("functionBind")&&58===this.input.charCodeAt(this.state.pos+1)?this.finishOp(15,2):(++this.state.pos,this.finishToken(14)));case 63:return void this.readToken_question();case 96:return void this.readTemplateToken();case 48:var t=this.input.charCodeAt(this.state.pos+1);if(120===t||88===t)return void this.readRadixNumber(16);if(111===t||79===t)return void this.readRadixNumber(8);if(98===t||66===t)return void this.readRadixNumber(2);case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return void this.readNumber(!1);case 34:case 39:return void this.readString(e);case 47:return void this.readToken_slash();case 37:case 42:return void this.readToken_mult_modulo(e);case 124:case 38:return void this.readToken_pipe_amp(e);case 94:return void this.readToken_caret();case 43:case 45:return void this.readToken_plus_min(e);case 60:return void this.readToken_lt();case 62:return void this.readToken_gt();case 61:case 33:return void this.readToken_eq_excl(e);case 126:return void this.finishOp(36,1);case 64:return void this.readToken_atSign();case 35:return void this.readToken_numberSign();case 92:return void this.readWord();default:if(vo(e))return void this.readWord(e)}throw this.raise(CR.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(e)})},r.finishOp=function(e,t){var r=this.input.slice(this.state.pos,this.state.pos+t);this.state.pos+=t,this.finishToken(e,r)},r.readRegexp=function(){for(var e,t,r=this.state.startLoc,a=this.state.start+1,n=this.state.pos;;++n){if(n>=this.length)throw this.raise(CR.UnterminatedRegExp,fR(r,1));var s=this.input.charCodeAt(n);if(NE(s))throw this.raise(CR.UnterminatedRegExp,fR(r,1));if(e)e=!1;else{if(91===s)t=!0;else if(93===s&&t)t=!1;else if(47===s&&!t)break;e=92===s}}var o=this.input.slice(a,n);++n;for(var i="",d=function(){return fR(r,n+2-a)};n=2&&48===this.input.charCodeAt(t);if(i){var d=this.input.slice(t,this.state.pos);if(this.recordStrictModeErrors(CR.StrictOctalLiteral,r),!this.state.strict){var u=d.indexOf("_");u>0&&this.raise(CR.ZeroDigitNumericSeparator,fR(r,u))}o=i&&!/[89]/.test(d)}var c=this.input.charCodeAt(this.state.pos);if(46!==c||o||(++this.state.pos,this.readInt(10),a=!0,c=this.input.charCodeAt(this.state.pos)),69!==c&&101!==c||o||(43!==(c=this.input.charCodeAt(++this.state.pos))&&45!==c||++this.state.pos,null===this.readInt(10)&&this.raise(CR.InvalidOrMissingExponent,r),a=!0,s=!0,c=this.input.charCodeAt(this.state.pos)),110===c&&((a||i)&&this.raise(CR.InvalidBigIntLiteral,r),++this.state.pos,n=!0),109===c){this.expectPlugin("decimal",this.state.curPosition()),(s||i)&&this.raise(CR.InvalidDecimal,r),++this.state.pos;var l=!0}if(vo(this.codePointAtPos(this.state.pos)))throw this.raise(CR.NumberIdentifier,this.state.curPosition());var p=this.input.slice(t,this.state.pos).replace(/[_mn]/g,"");if(n)this.finishToken(136,p);else if(l)this.finishToken(137,p);else{var f=o?parseInt(p,8):parseFloat(p);this.finishToken(135,f)}},r.readCodePoint=function(e){var t=Uo(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,this.errorHandlers_readCodePoint),r=t.code,a=t.pos;return this.state.pos=a,r},r.readString=function(e){var t=Bo(34===e?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string),r=t.str,a=t.pos,n=t.curLine,s=t.lineStart;this.state.pos=a+1,this.state.lineStart=s,this.state.curLine=n,this.finishToken(134,r)},r.readTemplateContinuation=function(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken()},r.readTemplateToken=function(){var e=this.input[this.state.pos],t=Bo("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template),r=t.str,a=t.firstInvalidLoc,n=t.pos,s=t.curLine,o=t.lineStart;this.state.pos=n+1,this.state.lineStart=o,this.state.curLine=s,a&&(this.state.firstInvalidTemplateEscapePos=new lR(a.curLine,a.pos-a.lineStart,this.sourceToOffsetPos(a.pos))),96===this.input.codePointAt(n)?this.finishToken(24,a?null:e+r+"`"):(this.state.pos++,this.finishToken(25,a?null:e+r+"${"))},r.recordStrictModeErrors=function(e,t){var r=t.index;this.state.strict&&!this.state.strictErrors.has(r)?this.raise(e,t):this.state.strictErrors.set(r,[e,t])},r.readWord1=function(e){this.state.containsEsc=!1;var t="",r=this.state.pos,a=this.state.pos;for(void 0!==e&&(this.state.pos+=e<=65535?1:2);this.state.pos=0;o--){var i=s[o];if(i.loc.index===n)return s[o]=e(a,r);if(i.loc.index0}},{key:"hasYield",get:function(){return(this.currentFlags()&aD.PARAM_YIELD)>0}},{key:"hasReturn",get:function(){return(this.currentFlags()&aD.PARAM_RETURN)>0}},{key:"hasIn",get:function(){return(this.currentFlags()&aD.PARAM_IN)>0}}])}();function sD(e,t){return(e?aD.PARAM_AWAIT:0)|(t?aD.PARAM_YIELD:0)}var oD=function(e){function t(){return e.apply(this,arguments)||this}g(t,e);var r=t.prototype;return r.addExtra=function(e,t,r,a){if(void 0===a&&(a=!0),e){var n=e.extra;null==n&&(n={},e.extra=n),a?n[t]=r:Object.defineProperty(n,t,{enumerable:a,value:r})}},r.isContextual=function(e){return this.state.type===e&&!this.state.containsEsc},r.isUnparsedContextual=function(e,t){var r=e+t.length;if(this.input.slice(e,r)===t){var a=this.input.charCodeAt(r);return!(xo(a)||55296===(64512&a))}return!1},r.isLookaheadContextual=function(e){var t=this.nextTokenStart();return this.isUnparsedContextual(t,e)},r.eatContextual=function(e){return!!this.isContextual(e)&&(this.next(),!0)},r.expectContextual=function(e,t){if(!this.eatContextual(e)){if(null!=t)throw this.raise(t,this.state.startLoc);this.unexpected(null,e)}},r.canInsertSemicolon=function(){return this.match(140)||this.match(8)||this.hasPrecedingLineBreak()},r.hasPrecedingLineBreak=function(){return ME(this.input,this.offsetToSourcePos(this.state.lastTokEndLoc.index),this.state.start)},r.hasFollowingLineBreak=function(){return ME(this.input,this.state.end,this.nextTokenStart())},r.isLineTerminator=function(){return this.eat(13)||this.canInsertSemicolon()},r.semicolon=function(e){void 0===e&&(e=!0),(e?this.isLineTerminator():this.eat(13))||this.raise(CR.MissingSemicolon,this.state.lastTokEndLoc)},r.expect=function(e,t){this.eat(e)||this.unexpected(t,e)},r.tryParse=function(e,t){void 0===t&&(t=this.state.clone());var r={node:null};try{var a=e((function(e){throw void 0===e&&(e=null),r.node=e,r}));if(this.state.errors.length>t.errors.length){var n=this.state;return this.state=t,this.state.tokensLength=n.tokensLength,{node:a,error:n.errors[t.errors.length],thrown:!1,aborted:!1,failState:n}}return{node:a,error:null,thrown:!1,aborted:!1,failState:null}}catch(jX){var s=this.state;if(this.state=t,jX instanceof SyntaxError)return{node:null,error:jX,thrown:!0,aborted:!1,failState:s};if(jX===r)return{node:r.node,error:null,thrown:!1,aborted:!0,failState:s};throw jX}},r.checkExpressionErrors=function(e,t){if(!e)return!1;var r=e.shorthandAssignLoc,a=e.doubleProtoLoc,n=e.privateKeyLoc,s=e.optionalParametersLoc;if(!t)return!!r||!!a||!!s||!!n;null!=r&&this.raise(CR.InvalidCoverInitializedName,r),null!=a&&this.raise(CR.DuplicateProto,a),null!=n&&this.raise(CR.UnexpectedPrivateField,n),null!=s&&this.unexpected(s)},r.isLiteralPropertyName=function(){return aE(this.state.type)},r.isPrivateName=function(e){return"PrivateName"===e.type},r.getPrivateNameSV=function(e){return e.id.name},r.hasPropertyAsPrivateName=function(e){return("MemberExpression"===e.type||"OptionalMemberExpression"===e.type)&&this.isPrivateName(e.property)},r.isObjectProperty=function(e){return"ObjectProperty"===e.type},r.isObjectMethod=function(e){return"ObjectMethod"===e.type},r.initializeScopes=function(e){var t=this;void 0===e&&(e="module"===this.options.sourceType);var r=this.state.labels;this.state.labels=[];var a=this.exportedIdentifiers;this.exportedIdentifiers=new Set;var n=this.inModule;this.inModule=e;var s=this.scope,o=this.getScopeHandler();this.scope=new o(this,e);var i=this.prodParam;this.prodParam=new nD;var d=this.classScope;this.classScope=new JE(this);var u=this.expressionScope;return this.expressionScope=new QE(this),function(){t.state.labels=r,t.exportedIdentifiers=a,t.inModule=n,t.scope=s,t.prodParam=i,t.classScope=d,t.expressionScope=u}},r.enterInitialScopes=function(){var e=aD.PARAM;this.inModule&&(e|=aD.PARAM_AWAIT),this.scope.enter(DE.PROGRAM),this.prodParam.enter(e)},r.checkDestructuringPrivate=function(e){var t=e.privateKeyLoc;null!==t&&this.expectPlugin("destructuringPrivate",t)},l(t)}(KE),iD=l((function(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null})),dD=l((function(e,t,r){this.type="",this.start=t,this.end=0,this.loc=new pR(r),null!=e&&e.options.ranges&&(this.range=[t,0]),null!=e&&e.filename&&(this.loc.filename=e.filename)})),uD=dD.prototype;function cD(e){return lD(e)}function lD(e){var t=e.type,r=e.start,a=e.end,n=e.loc,s=e.range,o=e.extra,i=e.name,d=Object.create(uD);return d.type=t,d.start=r,d.end=a,d.loc=n,d.range=s,d.extra=o,d.name=i,"Placeholder"===t&&(d.expectedNode=e.expectedNode),d}function pD(e){var t=e.type,r=e.start,a=e.end,n=e.loc,s=e.range,o=e.extra;if("Placeholder"===t)return cD(e);var i=Object.create(uD);return i.type=t,i.start=r,i.end=a,i.loc=n,i.range=s,void 0!==e.raw?i.raw=e.raw:i.extra=o,i.value=e.value,i}uD.__clone=function(){for(var e=new dD(void 0,this.start,this.loc.start),t=Object.keys(this),r=0,a=t.length;r async () => {}`, use `async () => {}`.",UnsupportedDeclareExportKind:function(e){return"`declare export "+e.unsupportedExportKind+"` is not supported. Use `"+e.suggestion+"` instead."},UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function yD(e){return"DeclareExportAllDeclaration"===e.type||"DeclareExportDeclaration"===e.type&&(!e.declaration||"TypeAlias"!==e.declaration.type&&"InterfaceDeclaration"!==e.declaration.type)}function bD(e){return"type"===e.importKind||"typeof"===e.importKind}var vD={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};function xD(e,t){for(var r=[],a=[],n=0;nr.index+1&&this.raise(hD.UnexpectedSpaceBetweenModuloChecks,r),this.eat(10)?(t.value=e.prototype.parseExpression.call(this),this.expect(11),this.finishNode(t,"DeclaredPredicate")):this.finishNode(t,"InferredPredicate")},r.flowParseTypeAndPredicateInitialiser=function(){var e=this.state.inType;this.state.inType=!0,this.expect(14);var t=null,r=null;return this.match(54)?(this.state.inType=e,r=this.flowParsePredicate()):(t=this.flowParseType(),this.state.inType=e,this.match(54)&&(r=this.flowParsePredicate())),[t,r]},r.flowParseDeclareClass=function(e){return this.next(),this.flowParseInterfaceish(e,!0),this.finishNode(e,"DeclareClass")},r.flowParseDeclareFunction=function(e){this.next();var t=e.id=this.parseIdentifier(),r=this.startNode(),a=this.startNode();this.match(47)?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,this.expect(10);var n=this.flowParseFunctionTypeParams();r.params=n.params,r.rest=n.rest,r.this=n._this,this.expect(11);var s=this.flowParseTypeAndPredicateInitialiser();return r.returnType=s[0],e.predicate=s[1],a.typeAnnotation=this.finishNode(r,"FunctionTypeAnnotation"),t.typeAnnotation=this.finishNode(a,"TypeAnnotation"),this.resetEndLocation(t),this.semicolon(),this.scope.declareName(e.id.name,wE.TYPE_FLOW_DECLARE_FN,e.id.loc.start),this.finishNode(e,"DeclareFunction")},r.flowParseDeclare=function(e,t){return this.match(80)?this.flowParseDeclareClass(e):this.match(68)?this.flowParseDeclareFunction(e):this.match(74)?this.flowParseDeclareVariable(e):this.eatContextual(127)?this.match(16)?this.flowParseDeclareModuleExports(e):(t&&this.raise(hD.NestedDeclareModule,this.state.lastTokStartLoc),this.flowParseDeclareModule(e)):this.isContextual(130)?this.flowParseDeclareTypeAlias(e):this.isContextual(131)?this.flowParseDeclareOpaqueType(e):this.isContextual(129)?this.flowParseDeclareInterface(e):this.match(82)?this.flowParseDeclareExportDeclaration(e,t):void this.unexpected()},r.flowParseDeclareVariable=function(e){return this.next(),e.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(e.id.name,wE.TYPE_VAR,e.id.loc.start),this.semicolon(),this.finishNode(e,"DeclareVariable")},r.flowParseDeclareModule=function(t){var r=this;this.scope.enter(DE.OTHER),this.match(134)?t.id=e.prototype.parseExprAtom.call(this):t.id=this.parseIdentifier();var a=t.body=this.startNode(),n=a.body=[];for(this.expect(5);!this.match(8);){var s=this.startNode();this.match(83)?(this.next(),this.isContextual(130)||this.match(87)||this.raise(hD.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc),e.prototype.parseImport.call(this,s)):(this.expectContextual(125,hD.UnsupportedStatementInDeclareModule),s=this.flowParseDeclare(s,!0)),n.push(s)}this.scope.exit(),this.expect(8),this.finishNode(a,"BlockStatement");var o=null,i=!1;return n.forEach((function(e){yD(e)?("CommonJS"===o&&r.raise(hD.AmbiguousDeclareModuleKind,e),o="ES"):"DeclareModuleExports"===e.type&&(i&&r.raise(hD.DuplicateDeclareModuleExports,e),"ES"===o&&r.raise(hD.AmbiguousDeclareModuleKind,e),o="CommonJS",i=!0)})),t.kind=o||"CommonJS",this.finishNode(t,"DeclareModule")},r.flowParseDeclareExportDeclaration=function(e,t){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?e.declaration=this.flowParseDeclare(this.startNode()):(e.declaration=this.flowParseType(),this.semicolon()),e.default=!0,this.finishNode(e,"DeclareExportDeclaration");if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!t){var r=this.state.value;throw this.raise(hD.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:r,suggestion:vD[r]})}return this.match(74)||this.match(68)||this.match(80)||this.isContextual(131)?(e.declaration=this.flowParseDeclare(this.startNode()),e.default=!1,this.finishNode(e,"DeclareExportDeclaration")):this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131)?("ExportNamedDeclaration"===(e=this.parseExport(e,null)).type&&(e.type="ExportDeclaration",e.default=!1,delete e.exportKind),e.type="Declare"+e.type,e):void this.unexpected()},r.flowParseDeclareModuleExports=function(e){return this.next(),this.expectContextual(111),e.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(e,"DeclareModuleExports")},r.flowParseDeclareTypeAlias=function(e){this.next();var t=this.flowParseTypeAlias(e);return t.type="DeclareTypeAlias",t},r.flowParseDeclareOpaqueType=function(e){this.next();var t=this.flowParseOpaqueType(e,!0);return t.type="DeclareOpaqueType",t},r.flowParseDeclareInterface=function(e){return this.next(),this.flowParseInterfaceish(e,!1),this.finishNode(e,"DeclareInterface")},r.flowParseInterfaceish=function(e,t){if(e.id=this.flowParseRestrictedIdentifier(!t,!0),this.scope.declareName(e.id.name,t?wE.TYPE_FUNCTION:wE.TYPE_LEXICAL,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.extends=[],this.eat(81))do{e.extends.push(this.flowParseInterfaceExtends())}while(!t&&this.eat(12));if(t){if(e.implements=[],e.mixins=[],this.eatContextual(117))do{e.mixins.push(this.flowParseInterfaceExtends())}while(this.eat(12));if(this.eatContextual(113))do{e.implements.push(this.flowParseInterfaceExtends())}while(this.eat(12))}e.body=this.flowParseObjectType({allowStatic:t,allowExact:!1,allowSpread:!1,allowProto:t,allowInexact:!1})},r.flowParseInterfaceExtends=function(){var e=this.startNode();return e.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,this.finishNode(e,"InterfaceExtends")},r.flowParseInterface=function(e){return this.flowParseInterfaceish(e,!1),this.finishNode(e,"InterfaceDeclaration")},r.checkNotUnderscore=function(e){"_"===e&&this.raise(hD.UnexpectedReservedUnderscore,this.state.startLoc)},r.checkReservedType=function(e,t,r){mD.has(e)&&this.raise(r?hD.AssignReservedType:hD.UnexpectedReservedType,t,{reservedType:e})},r.flowParseRestrictedIdentifier=function(e,t){return this.checkReservedType(this.state.value,this.state.startLoc,t),this.parseIdentifier(e)},r.flowParseTypeAlias=function(e){return e.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(e.id.name,wE.TYPE_LEXICAL,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(e,"TypeAlias")},r.flowParseOpaqueType=function(e,t){return this.expectContextual(130),e.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(e.id.name,wE.TYPE_LEXICAL,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.supertype=null,this.match(14)&&(e.supertype=this.flowParseTypeInitialiser(14)),e.impltype=null,t||(e.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(e,"OpaqueType")},r.flowParseTypeParameter=function(e){void 0===e&&(e=!1);var t=this.state.startLoc,r=this.startNode(),a=this.flowParseVariance(),n=this.flowParseTypeAnnotatableIdentifier();return r.name=n.name,r.variance=a,r.bound=n.typeAnnotation,this.match(29)?(this.eat(29),r.default=this.flowParseType()):e&&this.raise(hD.MissingTypeParamDefault,t),this.finishNode(r,"TypeParameter")},r.flowParseTypeParameterDeclaration=function(){var e=this.state.inType,t=this.startNode();t.params=[],this.state.inType=!0,this.match(47)||this.match(143)?this.next():this.unexpected();var r=!1;do{var a=this.flowParseTypeParameter(r);t.params.push(a),a.default&&(r=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=e,this.finishNode(t,"TypeParameterDeclaration")},r.flowParseTypeParameterInstantiation=function(){var e=this.startNode(),t=this.state.inType;e.params=[],this.state.inType=!0,this.expect(47);var r=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)e.params.push(this.flowParseType()),this.match(48)||this.expect(12);return this.state.noAnonFunctionType=r,this.expect(48),this.state.inType=t,this.finishNode(e,"TypeParameterInstantiation")},r.flowParseTypeParameterInstantiationCallOrNew=function(){var e=this.startNode(),t=this.state.inType;for(e.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)e.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=t,this.finishNode(e,"TypeParameterInstantiation")},r.flowParseInterfaceType=function(){var e=this.startNode();if(this.expectContextual(129),e.extends=[],this.eat(81))do{e.extends.push(this.flowParseInterfaceExtends())}while(this.eat(12));return e.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(e,"InterfaceTypeAnnotation")},r.flowParseObjectPropertyKey=function(){return this.match(135)||this.match(134)?e.prototype.parseExprAtom.call(this):this.parseIdentifier(!0)},r.flowParseObjectTypeIndexer=function(e,t,r){return e.static=t,14===this.lookahead().type?(e.id=this.flowParseObjectPropertyKey(),e.key=this.flowParseTypeInitialiser()):(e.id=null,e.key=this.flowParseType()),this.expect(3),e.value=this.flowParseTypeInitialiser(),e.variance=r,this.finishNode(e,"ObjectTypeIndexer")},r.flowParseObjectTypeInternalSlot=function(e,t){return e.static=t,e.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(e.method=!0,e.optional=!1,e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start))):(e.method=!1,this.eat(17)&&(e.optional=!0),e.value=this.flowParseTypeInitialiser()),this.finishNode(e,"ObjectTypeInternalSlot")},r.flowParseObjectTypeMethodish=function(e){for(e.params=[],e.rest=null,e.typeParameters=null,e.this=null,this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(e.this=this.flowParseFunctionTypeParam(!0),e.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)e.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(e.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),e.returnType=this.flowParseTypeInitialiser(),this.finishNode(e,"FunctionTypeAnnotation")},r.flowParseObjectTypeCallProperty=function(e,t){var r=this.startNode();return e.static=t,e.value=this.flowParseObjectTypeMethodish(r),this.finishNode(e,"ObjectTypeCallProperty")},r.flowParseObjectType=function(e){var t=e.allowStatic,r=e.allowExact,a=e.allowSpread,n=e.allowProto,s=e.allowInexact,o=this.state.inType;this.state.inType=!0;var i,d,u=this.startNode();u.callProperties=[],u.properties=[],u.indexers=[],u.internalSlots=[];var c=!1;for(r&&this.match(6)?(this.expect(6),i=9,d=!0):(this.expect(5),i=8,d=!1),u.exact=d;!this.match(i);){var l=!1,p=null,f=null,g=this.startNode();if(n&&this.isContextual(118)){var m=this.lookahead();14!==m.type&&17!==m.type&&(this.next(),p=this.state.startLoc,t=!1)}if(t&&this.isContextual(106)){var h=this.lookahead();14!==h.type&&17!==h.type&&(this.next(),l=!0)}var y=this.flowParseVariance();if(this.eat(0))null!=p&&this.unexpected(p),this.eat(0)?(y&&this.unexpected(y.loc.start),u.internalSlots.push(this.flowParseObjectTypeInternalSlot(g,l))):u.indexers.push(this.flowParseObjectTypeIndexer(g,l,y));else if(this.match(10)||this.match(47))null!=p&&this.unexpected(p),y&&this.unexpected(y.loc.start),u.callProperties.push(this.flowParseObjectTypeCallProperty(g,l));else{var b="init";(this.isContextual(99)||this.isContextual(104))&&aE(this.lookahead().type)&&(b=this.state.value,this.next());var v=this.flowParseObjectTypeProperty(g,l,p,y,b,a,null!=s?s:!d);null===v?(c=!0,f=this.state.lastTokStartLoc):u.properties.push(v)}this.flowObjectTypeSemicolon(),!f||this.match(8)||this.match(9)||this.raise(hD.UnexpectedExplicitInexactInObject,f)}this.expect(i),a&&(u.inexact=c);var x=this.finishNode(u,"ObjectTypeAnnotation");return this.state.inType=o,x},r.flowParseObjectTypeProperty=function(e,t,r,a,n,s,o){if(this.eat(21))return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(s?o||this.raise(hD.InexactInsideExact,this.state.lastTokStartLoc):this.raise(hD.InexactInsideNonObject,this.state.lastTokStartLoc),a&&this.raise(hD.InexactVariance,a),null):(s||this.raise(hD.UnexpectedSpreadType,this.state.lastTokStartLoc),null!=r&&this.unexpected(r),a&&this.raise(hD.SpreadVariance,a),e.argument=this.flowParseType(),this.finishNode(e,"ObjectTypeSpreadProperty"));e.key=this.flowParseObjectPropertyKey(),e.static=t,e.proto=null!=r,e.kind=n;var i=!1;return this.match(47)||this.match(10)?(e.method=!0,null!=r&&this.unexpected(r),a&&this.unexpected(a.loc.start),e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start)),"get"!==n&&"set"!==n||this.flowCheckGetterSetterParams(e),!s&&"constructor"===e.key.name&&e.value.this&&this.raise(hD.ThisParamBannedInConstructor,e.value.this)):("init"!==n&&this.unexpected(),e.method=!1,this.eat(17)&&(i=!0),e.value=this.flowParseTypeInitialiser(),e.variance=a),e.optional=i,this.finishNode(e,"ObjectTypeProperty")},r.flowCheckGetterSetterParams=function(e){var t="get"===e.kind?0:1,r=e.value.params.length+(e.value.rest?1:0);e.value.this&&this.raise("get"===e.kind?hD.GetterMayNotHaveThisParam:hD.SetterMayNotHaveThisParam,e.value.this),r!==t&&this.raise("get"===e.kind?CR.BadGetterArity:CR.BadSetterArity,e),"set"===e.kind&&e.value.rest&&this.raise(CR.BadSetterRestParameter,e)},r.flowObjectTypeSemicolon=function(){this.eat(13)||this.eat(12)||this.match(8)||this.match(9)||this.unexpected()},r.flowParseQualifiedTypeIdentifier=function(e,t){null!=e||(e=this.state.startLoc);for(var r=t||this.flowParseRestrictedIdentifier(!0);this.eat(16);){var a=this.startNodeAt(e);a.qualification=r,a.id=this.flowParseRestrictedIdentifier(!0),r=this.finishNode(a,"QualifiedTypeIdentifier")}return r},r.flowParseGenericType=function(e,t){var r=this.startNodeAt(e);return r.typeParameters=null,r.id=this.flowParseQualifiedTypeIdentifier(e,t),this.match(47)&&(r.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(r,"GenericTypeAnnotation")},r.flowParseTypeofType=function(){var e=this.startNode();return this.expect(87),e.argument=this.flowParsePrimaryType(),this.finishNode(e,"TypeofTypeAnnotation")},r.flowParseTupleType=function(){var e=this.startNode();for(e.types=[],this.expect(0);this.state.pos0){var g=[].concat(o);if(f.length>0){this.state=s,this.state.noArrowAt=g;for(var m=0;m1&&this.raise(hD.AmbiguousConditionalArrow,s.startLoc),c&&1===p.length){this.state=s,g.push(p[0].start),this.state.noArrowAt=g;var b=this.tryParseConditionalConsequent();u=b.consequent,c=b.failed}}return this.getArrowLikeExpressions(u,!0),this.state.noArrowAt=o,this.expect(14),i.test=e,i.consequent=u,i.alternate=this.forwardNoArrowParamsConversionAt(i,(function(){return a.parseMaybeAssign(void 0,void 0)})),this.finishNode(i,"ConditionalExpression")},r.tryParseConditionalConsequent=function(){this.state.noArrowParamsConversionAt.push(this.state.start);var e=this.parseMaybeAssignAllowIn(),t=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:e,failed:t}},r.getArrowLikeExpressions=function(e,t){for(var r=this,a=[e],n=[];0!==a.length;){var s=a.pop();"ArrowFunctionExpression"===s.type&&"BlockStatement"!==s.body.type?(s.typeParameters||!s.returnType?this.finishArrowValidation(s):n.push(s),a.push(s.body)):"ConditionalExpression"===s.type&&(a.push(s.consequent),a.push(s.alternate))}return t?(n.forEach((function(e){return r.finishArrowValidation(e)})),[n,[]]):xD(n,(function(e){return e.params.every((function(e){return r.isAssignable(e,!0)}))}))},r.finishArrowValidation=function(t){var r;this.toAssignableList(t.params,null==(r=t.extra)?void 0:r.trailingCommaLoc,!1),this.scope.enter(DE.FUNCTION|DE.ARROW),e.prototype.checkParams.call(this,t,!1,!0),this.scope.exit()},r.forwardNoArrowParamsConversionAt=function(e,t){var r;return this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start))?(this.state.noArrowParamsConversionAt.push(this.state.start),r=t(),this.state.noArrowParamsConversionAt.pop()):r=t(),r},r.parseParenItem=function(t,r){var a=e.prototype.parseParenItem.call(this,t,r);if(this.eat(17)&&(a.optional=!0,this.resetEndLocation(t)),this.match(14)){var n=this.startNodeAt(r);return n.expression=a,n.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(n,"TypeCastExpression")}return a},r.assertModuleNodeAllowed=function(t){"ImportDeclaration"===t.type&&("type"===t.importKind||"typeof"===t.importKind)||"ExportNamedDeclaration"===t.type&&"type"===t.exportKind||"ExportAllDeclaration"===t.type&&"type"===t.exportKind||e.prototype.assertModuleNodeAllowed.call(this,t)},r.parseExportDeclaration=function(t){if(this.isContextual(130)){t.exportKind="type";var r=this.startNode();return this.next(),this.match(5)?(t.specifiers=this.parseExportSpecifiers(!0),e.prototype.parseExportFrom.call(this,t),null):this.flowParseTypeAlias(r)}if(this.isContextual(131)){t.exportKind="type";var a=this.startNode();return this.next(),this.flowParseOpaqueType(a,!1)}if(this.isContextual(129)){t.exportKind="type";var n=this.startNode();return this.next(),this.flowParseInterface(n)}if(this.isContextual(126)){t.exportKind="value";var s=this.startNode();return this.next(),this.flowParseEnumDeclaration(s)}return e.prototype.parseExportDeclaration.call(this,t)},r.eatExportStar=function(t){return!!e.prototype.eatExportStar.call(this,t)||!(!this.isContextual(130)||55!==this.lookahead().type)&&(t.exportKind="type",this.next(),this.next(),!0)},r.maybeParseExportNamespaceSpecifier=function(t){var r=this.state.startLoc,a=e.prototype.maybeParseExportNamespaceSpecifier.call(this,t);return a&&"type"===t.exportKind&&this.unexpected(r),a},r.parseClassId=function(t,r,a){e.prototype.parseClassId.call(this,t,r,a),this.match(47)&&(t.typeParameters=this.flowParseTypeParameterDeclaration())},r.parseClassMember=function(t,r,a){var n=this.state.startLoc;if(this.isContextual(125)){if(e.prototype.parseClassMemberFromModifier.call(this,t,r))return;r.declare=!0}e.prototype.parseClassMember.call(this,t,r,a),r.declare&&("ClassProperty"!==r.type&&"ClassPrivateProperty"!==r.type&&"PropertyDefinition"!==r.type?this.raise(hD.DeclareClassElement,n):r.value&&this.raise(hD.DeclareClassFieldInitializer,r.value))},r.isIterator=function(e){return"iterator"===e||"asyncIterator"===e},r.readIterator=function(){var t=e.prototype.readWord1.call(this),r="@@"+t;this.isIterator(t)&&this.state.inType||this.raise(CR.InvalidIdentifier,this.state.curPosition(),{identifierName:r}),this.finishToken(132,r)},r.getTokenFromCode=function(t){var r=this.input.charCodeAt(this.state.pos+1);123===t&&124===r?this.finishOp(6,2):!this.state.inType||62!==t&&60!==t?this.state.inType&&63===t?46===r?this.finishOp(18,2):this.finishOp(17,1):xE(t,r,this.input.charCodeAt(this.state.pos+2))?(this.state.pos+=2,this.readIterator()):e.prototype.getTokenFromCode.call(this,t):this.finishOp(62===t?48:47,1)},r.isAssignable=function(t,r){return"TypeCastExpression"===t.type?this.isAssignable(t.expression,r):e.prototype.isAssignable.call(this,t,r)},r.toAssignable=function(t,r){void 0===r&&(r=!1),r||"AssignmentExpression"!==t.type||"TypeCastExpression"!==t.left.type||(t.left=this.typeCastToParameter(t.left)),e.prototype.toAssignable.call(this,t,r)},r.toAssignableList=function(t,r,a){for(var n=0;n1)&&t||this.raise(hD.TypeCastInPattern,n.typeAnnotation)}return e},r.parseArrayLike=function(t,r,a,n){var s=e.prototype.parseArrayLike.call(this,t,r,a,n);return r&&!this.state.maybeInArrowParameters&&this.toReferencedList(s.elements),s},r.isValidLVal=function(t,r,a){return"TypeCastExpression"===t||e.prototype.isValidLVal.call(this,t,r,a)},r.parseClassProperty=function(t){return this.match(14)&&(t.typeAnnotation=this.flowParseTypeAnnotation()),e.prototype.parseClassProperty.call(this,t)},r.parseClassPrivateProperty=function(t){return this.match(14)&&(t.typeAnnotation=this.flowParseTypeAnnotation()),e.prototype.parseClassPrivateProperty.call(this,t)},r.isClassMethod=function(){return this.match(47)||e.prototype.isClassMethod.call(this)},r.isClassProperty=function(){return this.match(14)||e.prototype.isClassProperty.call(this)},r.isNonstaticConstructor=function(t){return!this.match(14)&&e.prototype.isNonstaticConstructor.call(this,t)},r.pushClassMethod=function(t,r,a,n,s,o){if(r.variance&&this.unexpected(r.variance.loc.start),delete r.variance,this.match(47)&&(r.typeParameters=this.flowParseTypeParameterDeclaration()),e.prototype.pushClassMethod.call(this,t,r,a,n,s,o),r.params&&s){var i=r.params;i.length>0&&this.isThisParam(i[0])&&this.raise(hD.ThisParamBannedInConstructor,r)}else if("MethodDefinition"===r.type&&s&&r.value.params){var d=r.value.params;d.length>0&&this.isThisParam(d[0])&&this.raise(hD.ThisParamBannedInConstructor,r)}},r.pushClassPrivateMethod=function(t,r,a,n){r.variance&&this.unexpected(r.variance.loc.start),delete r.variance,this.match(47)&&(r.typeParameters=this.flowParseTypeParameterDeclaration()),e.prototype.pushClassPrivateMethod.call(this,t,r,a,n)},r.parseClassSuper=function(t){if(e.prototype.parseClassSuper.call(this,t),t.superClass&&this.match(47)&&(t.superTypeParameters=this.flowParseTypeParameterInstantiation()),this.isContextual(113)){this.next();var r=t.implements=[];do{var a=this.startNode();a.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?a.typeParameters=this.flowParseTypeParameterInstantiation():a.typeParameters=null,r.push(this.finishNode(a,"ClassImplements"))}while(this.eat(12))}},r.checkGetterSetterParams=function(t){e.prototype.checkGetterSetterParams.call(this,t);var r=this.getObjectOrClassMethodParams(t);if(r.length>0){var a=r[0];this.isThisParam(a)&&"get"===t.kind?this.raise(hD.GetterMayNotHaveThisParam,a):this.isThisParam(a)&&this.raise(hD.SetterMayNotHaveThisParam,a)}},r.parsePropertyNamePrefixOperator=function(e){e.variance=this.flowParseVariance()},r.parseObjPropValue=function(t,r,a,n,s,o,i){var d;t.variance&&this.unexpected(t.variance.loc.start),delete t.variance,this.match(47)&&!o&&(d=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());var u=e.prototype.parseObjPropValue.call(this,t,r,a,n,s,o,i);return d&&((u.value||u).typeParameters=d),u},r.parseFunctionParamType=function(e){return this.eat(17)&&("Identifier"!==e.type&&this.raise(hD.PatternIsOptional,e),this.isThisParam(e)&&this.raise(hD.ThisParamMayNotBeOptional,e),e.optional=!0),this.match(14)?e.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(e)&&this.raise(hD.ThisParamAnnotationRequired,e),this.match(29)&&this.isThisParam(e)&&this.raise(hD.ThisParamNoDefault,e),this.resetEndLocation(e),e},r.parseMaybeDefault=function(t,r){var a=e.prototype.parseMaybeDefault.call(this,t,r);return"AssignmentPattern"===a.type&&a.typeAnnotation&&a.right.start0&&this.raise(hD.ThisParamMustBeFirst,t.params[s]);e.prototype.checkParams.call(this,t,r,a,n)}},r.parseParenAndDistinguishExpression=function(t){return e.prototype.parseParenAndDistinguishExpression.call(this,t&&!this.state.noArrowAt.includes(this.sourceToOffsetPos(this.state.start)))},r.parseSubscripts=function(t,r,a){var n=this;if("Identifier"===t.type&&"async"===t.name&&this.state.noArrowAt.includes(r.index)){this.next();var s=this.startNodeAt(r);s.callee=t,s.arguments=e.prototype.parseCallExpressionArguments.call(this,11),t=this.finishNode(s,"CallExpression")}else if("Identifier"===t.type&&"async"===t.name&&this.match(47)){var o=this.state.clone(),i=this.tryParse((function(e){return n.parseAsyncArrowWithTypeParameters(r)||e()}),o);if(!i.error&&!i.aborted)return i.node;var d=this.tryParse((function(){return e.prototype.parseSubscripts.call(n,t,r,a)}),o);if(d.node&&!d.error)return d.node;if(i.node)return this.state=i.failState,i.node;if(d.node)return this.state=d.failState,d.node;throw i.error||d.error}return e.prototype.parseSubscripts.call(this,t,r,a)},r.parseSubscript=function(t,r,a,n){var s=this;if(this.match(18)&&this.isLookaheadToken_lt()){if(n.optionalChainMember=!0,a)return n.stop=!0,t;this.next();var o=this.startNodeAt(r);return o.callee=t,o.typeArguments=this.flowParseTypeParameterInstantiation(),this.expect(10),o.arguments=this.parseCallExpressionArguments(11),o.optional=!0,this.finishCallExpression(o,!0)}if(!a&&this.shouldParseTypes()&&this.match(47)){var i=this.startNodeAt(r);i.callee=t;var d=this.tryParse((function(){return i.typeArguments=s.flowParseTypeParameterInstantiationCallOrNew(),s.expect(10),i.arguments=e.prototype.parseCallExpressionArguments.call(s,11),n.optionalChainMember&&(i.optional=!1),s.finishCallExpression(i,n.optionalChainMember)}));if(d.node)return d.error&&(this.state=d.failState),d.node}return e.prototype.parseSubscript.call(this,t,r,a,n)},r.parseNewCallee=function(t){var r=this;e.prototype.parseNewCallee.call(this,t);var a=null;this.shouldParseTypes()&&this.match(47)&&(a=this.tryParse((function(){return r.flowParseTypeParameterInstantiationCallOrNew()})).node),t.typeArguments=a},r.parseAsyncArrowWithTypeParameters=function(t){var r=this.startNodeAt(t);if(this.parseFunctionParams(r,!1),this.parseArrow(r))return e.prototype.parseArrowExpression.call(this,r,void 0,!0)},r.readToken_mult_modulo=function(t){var r=this.input.charCodeAt(this.state.pos+1);if(42===t&&47===r&&this.state.hasFlowComment)return this.state.hasFlowComment=!1,this.state.pos+=2,void this.nextToken();e.prototype.readToken_mult_modulo.call(this,t)},r.readToken_pipe_amp=function(t){var r=this.input.charCodeAt(this.state.pos+1);124!==t||125!==r?e.prototype.readToken_pipe_amp.call(this,t):this.finishOp(9,2)},r.parseTopLevel=function(t,r){var a=e.prototype.parseTopLevel.call(this,t,r);return this.state.hasFlowComment&&this.raise(hD.UnterminatedFlowComment,this.state.curPosition()),a},r.skipBlockComment=function(){if(!this.hasPlugin("flowComments")||!this.skipFlowComment())return e.prototype.skipBlockComment.call(this,this.state.hasFlowComment?"*-/":"*/");if(this.state.hasFlowComment)throw this.raise(hD.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();var t=this.skipFlowComment();t&&(this.state.pos+=t,this.state.hasFlowComment=!0)},r.skipFlowComment=function(){for(var e=this.state.pos,t=2;[32,9].includes(this.input.charCodeAt(e+t));)t++;var r=this.input.charCodeAt(t+e),a=this.input.charCodeAt(t+e+1);return 58===r&&58===a?t+2:"flow-include"===this.input.slice(t+e,t+e+12)?t+12:58===r&&58!==a&&t},r.hasFlowCommentCompletion=function(){if(-1===this.input.indexOf("*/",this.state.pos))throw this.raise(CR.UnterminatedComment,this.state.curPosition())},r.flowEnumErrorBooleanMemberNotInitialized=function(e,t){var r=t.enumName,a=t.memberName;this.raise(hD.EnumBooleanMemberNotInitialized,e,{memberName:a,enumName:r})},r.flowEnumErrorInvalidMemberInitializer=function(e,t){return this.raise(t.explicitType?"symbol"===t.explicitType?hD.EnumInvalidMemberInitializerSymbolType:hD.EnumInvalidMemberInitializerPrimaryType:hD.EnumInvalidMemberInitializerUnknownType,e,t)},r.flowEnumErrorNumberMemberNotInitialized=function(e,t){this.raise(hD.EnumNumberMemberNotInitialized,e,t)},r.flowEnumErrorStringMemberInconsistentlyInitialized=function(e,t){this.raise(hD.EnumStringMemberInconsistentlyInitialized,e,t)},r.flowEnumMemberInit=function(){var e=this,t=this.state.startLoc,r=function(){return e.match(12)||e.match(8)};switch(this.state.type){case 135:var a=this.parseNumericLiteral(this.state.value);return r()?{type:"number",loc:a.loc.start,value:a}:{type:"invalid",loc:t};case 134:var n=this.parseStringLiteral(this.state.value);return r()?{type:"string",loc:n.loc.start,value:n}:{type:"invalid",loc:t};case 85:case 86:var s=this.parseBooleanLiteral(this.match(85));return r()?{type:"boolean",loc:s.loc.start,value:s}:{type:"invalid",loc:t};default:return{type:"invalid",loc:t}}},r.flowEnumMemberRaw=function(){var e=this.state.startLoc;return{id:this.parseIdentifier(!0),init:this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:e}}},r.flowEnumCheckExplicitTypeMismatch=function(e,t,r){var a=t.explicitType;null!==a&&a!==r&&this.flowEnumErrorInvalidMemberInitializer(e,t)},r.flowEnumMembers=function(e){for(var t=e.enumName,r=e.explicitType,a=new Set,n={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]},s=!1;!this.match(8);){if(this.eat(21)){s=!0;break}var o=this.startNode(),i=this.flowEnumMemberRaw(),d=i.id,u=i.init,c=d.name;if(""!==c){/^[a-z]/.test(c)&&this.raise(hD.EnumInvalidMemberName,d,{memberName:c,suggestion:c[0].toUpperCase()+c.slice(1),enumName:t}),a.has(c)&&this.raise(hD.EnumDuplicateMemberName,d,{memberName:c,enumName:t}),a.add(c);var l={enumName:t,explicitType:r,memberName:c};switch(o.id=d,u.type){case"boolean":this.flowEnumCheckExplicitTypeMismatch(u.loc,l,"boolean"),o.init=u.value,n.booleanMembers.push(this.finishNode(o,"EnumBooleanMember"));break;case"number":this.flowEnumCheckExplicitTypeMismatch(u.loc,l,"number"),o.init=u.value,n.numberMembers.push(this.finishNode(o,"EnumNumberMember"));break;case"string":this.flowEnumCheckExplicitTypeMismatch(u.loc,l,"string"),o.init=u.value,n.stringMembers.push(this.finishNode(o,"EnumStringMember"));break;case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(u.loc,l);case"none":switch(r){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(u.loc,l);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(u.loc,l);break;default:n.defaultedMembers.push(this.finishNode(o,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}}return{members:n,hasUnknownMembers:s}},r.flowEnumStringMembers=function(e,t,r){var a=r.enumName;if(0===e.length)return t;if(0===t.length)return e;if(t.length>e.length){for(var n=0;n=f){for(var g=0,m=i.defaultedMembers;g=f){for(var y=0,b=i.defaultedMembers;y",nbsp:"\xa0",iexcl:"\xa1",cent:"\xa2",pound:"\xa3",curren:"\xa4",yen:"\xa5",brvbar:"\xa6",sect:"\xa7",uml:"\xa8",copy:"\xa9",ordf:"\xaa",laquo:"\xab",not:"\xac",shy:"\xad",reg:"\xae",macr:"\xaf",deg:"\xb0",plusmn:"\xb1",sup2:"\xb2",sup3:"\xb3",acute:"\xb4",micro:"\xb5",para:"\xb6",middot:"\xb7",cedil:"\xb8",sup1:"\xb9",ordm:"\xba",raquo:"\xbb",frac14:"\xbc",frac12:"\xbd",frac34:"\xbe",iquest:"\xbf",Agrave:"\xc0",Aacute:"\xc1",Acirc:"\xc2",Atilde:"\xc3",Auml:"\xc4",Aring:"\xc5",AElig:"\xc6",Ccedil:"\xc7",Egrave:"\xc8",Eacute:"\xc9",Ecirc:"\xca",Euml:"\xcb",Igrave:"\xcc",Iacute:"\xcd",Icirc:"\xce",Iuml:"\xcf",ETH:"\xd0",Ntilde:"\xd1",Ograve:"\xd2",Oacute:"\xd3",Ocirc:"\xd4",Otilde:"\xd5",Ouml:"\xd6",times:"\xd7",Oslash:"\xd8",Ugrave:"\xd9",Uacute:"\xda",Ucirc:"\xdb",Uuml:"\xdc",Yacute:"\xdd",THORN:"\xde",szlig:"\xdf",agrave:"\xe0",aacute:"\xe1",acirc:"\xe2",atilde:"\xe3",auml:"\xe4",aring:"\xe5",aelig:"\xe6",ccedil:"\xe7",egrave:"\xe8",eacute:"\xe9",ecirc:"\xea",euml:"\xeb",igrave:"\xec",iacute:"\xed",icirc:"\xee",iuml:"\xef",eth:"\xf0",ntilde:"\xf1",ograve:"\xf2",oacute:"\xf3",ocirc:"\xf4",otilde:"\xf5",ouml:"\xf6",divide:"\xf7",oslash:"\xf8",ugrave:"\xf9",uacute:"\xfa",ucirc:"\xfb",uuml:"\xfc",yacute:"\xfd",thorn:"\xfe",yuml:"\xff",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02c6",tilde:"\u02dc",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039a",Lambda:"\u039b",Mu:"\u039c",Nu:"\u039d",Xi:"\u039e",Omicron:"\u039f",Pi:"\u03a0",Rho:"\u03a1",Sigma:"\u03a3",Tau:"\u03a4",Upsilon:"\u03a5",Phi:"\u03a6",Chi:"\u03a7",Psi:"\u03a8",Omega:"\u03a9",alpha:"\u03b1",beta:"\u03b2",gamma:"\u03b3",delta:"\u03b4",epsilon:"\u03b5",zeta:"\u03b6",eta:"\u03b7",theta:"\u03b8",iota:"\u03b9",kappa:"\u03ba",lambda:"\u03bb",mu:"\u03bc",nu:"\u03bd",xi:"\u03be",omicron:"\u03bf",pi:"\u03c0",rho:"\u03c1",sigmaf:"\u03c2",sigma:"\u03c3",tau:"\u03c4",upsilon:"\u03c5",phi:"\u03c6",chi:"\u03c7",psi:"\u03c8",omega:"\u03c9",thetasym:"\u03d1",upsih:"\u03d2",piv:"\u03d6",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200c",zwj:"\u200d",lrm:"\u200e",rlm:"\u200f",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201a",ldquo:"\u201c",rdquo:"\u201d",bdquo:"\u201e",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203a",oline:"\u203e",frasl:"\u2044",euro:"\u20ac",image:"\u2111",weierp:"\u2118",real:"\u211c",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21b5",lArr:"\u21d0",uArr:"\u21d1",rArr:"\u21d2",dArr:"\u21d3",hArr:"\u21d4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220b",prod:"\u220f",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221a",prop:"\u221d",infin:"\u221e",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222a",int:"\u222b",there4:"\u2234",sim:"\u223c",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22a5",sdot:"\u22c5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230a",rfloor:"\u230b",lang:"\u2329",rang:"\u232a",loz:"\u25ca",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666"},jD=AR(RD||(RD=A(["jsx"])))({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:function(e){return"Expected corresponding JSX closing tag for <"+e.openingTagName+">."},MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>.",UnexpectedSequenceExpression:"Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",UnexpectedToken:function(e){var t=e.unexpected;return"Unexpected token `"+t+"`. Did you mean `"+e.HTMLEntity+"` or `{'"+t+"'}`?"},UnsupportedJsxValue:"JSX value should be either an expression or a quoted JSX text.",UnterminatedJsxContent:"Unterminated JSX contents.",UnwrappedAdjacentJSXElements:"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...?"});function AD(e){return!!e&&("JSXOpeningFragment"===e.type||"JSXClosingFragment"===e.type)}function CD(e){if("JSXIdentifier"===e.type)return e.name;if("JSXNamespacedName"===e.type)return e.namespace.name+":"+e.name.name;if("JSXMemberExpression"===e.type)return CD(e.object)+"."+CD(e.property);throw new Error("Node had unexpected type: "+e.type)}var SD,TD=function(e){return function(e){function t(){return e.apply(this,arguments)||this}g(t,e);var r=t.prototype;return r.jsxReadToken=function(){for(var t="",r=this.state.pos;;){if(this.state.pos>=this.length)throw this.raise(jD.UnterminatedJsxContent,this.state.startLoc);var a=this.input.charCodeAt(this.state.pos);switch(a){case 60:case 123:return this.state.pos===this.state.start?void(60===a&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(143)):e.prototype.getTokenFromCode.call(this,a)):(t+=this.input.slice(r,this.state.pos),void this.finishToken(142,t));case 38:t+=this.input.slice(r,this.state.pos),t+=this.jsxReadEntity(),r=this.state.pos;break;default:NE(a)?(t+=this.input.slice(r,this.state.pos),t+=this.jsxReadNewLine(!0),r=this.state.pos):++this.state.pos}}},r.jsxReadNewLine=function(e){var t,r=this.input.charCodeAt(this.state.pos);return++this.state.pos,13===r&&10===this.input.charCodeAt(this.state.pos)?(++this.state.pos,t=e?"\n":"\r\n"):t=String.fromCharCode(r),++this.state.curLine,this.state.lineStart=this.state.pos,t},r.jsxReadString=function(e){for(var t="",r=++this.state.pos;;){if(this.state.pos>=this.length)throw this.raise(CR.UnterminatedString,this.state.startLoc);var a=this.input.charCodeAt(this.state.pos);if(a===e)break;38===a?(t+=this.input.slice(r,this.state.pos),t+=this.jsxReadEntity(),r=this.state.pos):NE(a)?(t+=this.input.slice(r,this.state.pos),t+=this.jsxReadNewLine(!1),r=this.state.pos):++this.state.pos}t+=this.input.slice(r,this.state.pos++),this.finishToken(134,t)},r.jsxReadEntity=function(){var e=++this.state.pos;if(35===this.codePointAtPos(this.state.pos)){++this.state.pos;var t=10;120===this.codePointAtPos(this.state.pos)&&(t=16,++this.state.pos);var r=this.readInt(t,void 0,!1,"bail");if(null!==r&&59===this.codePointAtPos(this.state.pos))return++this.state.pos,String.fromCodePoint(r)}else{for(var a=0,n=!1;a++<10&&this.state.pos1)for(var a=0;a0?!(a&wE.FLAG_TS_ENUM)||!!(a&wE.FLAG_TS_CONST_ENUM)!==(4&n)>0:a&wE.FLAG_CLASS&&(8&n)>0?!!(t.names.get(r)&AE.Lexical)&&!!(a&wE.KIND_VALUE):!!(a&wE.KIND_TYPE&&(1&n)>0)||e.prototype.isRedeclaredInScope.call(this,t,r,a)},r.checkLocalExport=function(t){var r=t.name;if(!this.hasImport(r)){for(var a=this.scopeStack.length-1;a>=0;a--){var n=this.scopeStack[a].tsNames.get(r);if((1&n)>0||(16&n)>0)return}e.prototype.checkLocalExport.call(this,t)}},l(t)}(SE),FD=function(e){return"ParenthesizedExpression"===e.type?FD(e.expression):e},_D={ALLOW_EMPTY:1,IS_FUNCTION_PARAMS:2,IS_CONSTRUCTOR_PARAMS:4},ID=function(e){function t(){return e.apply(this,arguments)||this}g(t,e);var r=t.prototype;return r.toAssignable=function(e,t){var r,a;void 0===t&&(t=!1);var n=void 0;switch(("ParenthesizedExpression"===e.type||null!=(r=e.extra)&&r.parenthesized)&&(n=FD(e),t?"Identifier"===n.type?this.expressionScope.recordArrowParameterBindingError(CR.InvalidParenthesizedAssignment,e):"MemberExpression"===n.type||this.isOptionalMemberExpression(n)||this.raise(CR.InvalidParenthesizedAssignment,e):this.raise(CR.InvalidParenthesizedAssignment,e)),e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern";for(var s=0,o=e.properties.length,i=o-1;s() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccessorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccessorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccessorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:function(e){var t=e.typeParameterName;return"Single type parameter "+t+" should have a trailing comma. Example usage: <"+t+",>."},StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TupleOptionalAfterType:"A labeled tuple optional element must be declared using a question mark after the name and before the colon (`name?: type`), rather than after the type (`name: type?`).",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:function(e){return"Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got "+e.type+"."}});function MD(e){switch(e){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return}}function LD(e){return"private"===e||"public"===e||"protected"===e}function UD(e){return"in"===e||"out"===e}var qD,WD=function(e){return function(e){function t(){for(var t,r=arguments.length,a=new Array(r),n=0;n0&&(this.raise(CR.BadGetterArity,this.state.curPosition()),this.isThisParam(a[n][0])&&this.raise(ND.AccessorCannotDeclareThisParameter,this.state.curPosition()));else if("set"===a.kind){if(1!==a[n].length)this.raise(CR.BadSetterArity,this.state.curPosition());else{var o=a[n][0];this.isThisParam(o)&&this.raise(ND.AccessorCannotDeclareThisParameter,this.state.curPosition()),"Identifier"===o.type&&o.optional&&this.raise(ND.SetAccessorCannotHaveOptionalParameter,this.state.curPosition()),"RestElement"===o.type&&this.raise(ND.SetAccessorCannotHaveRestParameter,this.state.curPosition())}a[s]&&this.raise(ND.SetAccessorCannotHaveReturnType,a[s])}else a.kind="method";return this.finishNode(a,"TSMethodSignature")}var i=r;t&&(i.readonly=!0);var d=this.tsTryParseTypeAnnotation();return d&&(i.typeAnnotation=d),this.tsParseTypeMemberSemicolon(),this.finishNode(i,"TSPropertySignature")},r.tsParseTypeMember=function(){var t=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",t);if(this.match(77)){var r=this.startNode();return this.next(),this.match(10)||this.match(47)?this.tsParseSignatureMember("TSConstructSignatureDeclaration",t):(t.key=this.createIdentifier(r,"new"),this.tsParsePropertyOrMethodSignature(t,!1))}this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},t);var a=this.tsTryParseIndexSignature(t);return a||(e.prototype.parsePropertyName.call(this,t),t.computed||"Identifier"!==t.key.type||"get"!==t.key.name&&"set"!==t.key.name||!this.tsTokenCanFollowModifier()||(t.kind=t.key.name,e.prototype.parsePropertyName.call(this,t)),this.tsParsePropertyOrMethodSignature(t,!!t.readonly))},r.tsParseTypeLiteral=function(){var e=this.startNode();return e.members=this.tsParseObjectTypeMembers(),this.finishNode(e,"TSTypeLiteral")},r.tsParseObjectTypeMembers=function(){this.expect(5);var e=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),e},r.tsIsStartOfMappedType=function(){return this.next(),this.eat(53)?this.isContextual(122):(this.isContextual(122)&&this.next(),!!this.match(0)&&(this.next(),!!this.tsIsIdentifier()&&(this.next(),this.match(58))))},r.tsParseMappedType=function(){var e=this.startNode();this.expect(5),this.match(53)?(e.readonly=this.state.value,this.next(),this.expectContextual(122)):this.eatContextual(122)&&(e.readonly=!0),this.expect(0);var t=this.startNode();return t.name=this.tsParseTypeParameterName(),t.constraint=this.tsExpectThenParseType(58),e.typeParameter=this.finishNode(t,"TSTypeParameter"),e.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53)?(e.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(e.optional=!0),e.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(e,"TSMappedType")},r.tsParseTupleType=function(){var e=this,t=this.startNode();t.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);var r=!1;return t.elementTypes.forEach((function(t){var a=t.type;!r||"TSRestType"===a||"TSOptionalType"===a||"TSNamedTupleMember"===a&&t.optional||e.raise(ND.OptionalTypeBeforeRequired,t),r||(r="TSNamedTupleMember"===a&&t.optional||"TSOptionalType"===a)})),this.finishNode(t,"TSTupleType")},r.tsParseTupleElementType=function(){var e,t,r,a,n,s=this.state.startLoc,o=this.eat(21),i=rE(this.state.type)?this.lookaheadCharCode():null;if(58===i)e=!0,r=!1,t=this.parseIdentifier(!0),this.expect(14),a=this.tsParseType();else if(63===i){r=!0;var d=this.state.startLoc,u=this.state.value,c=this.tsParseNonArrayType();58===this.lookaheadCharCode()?(e=!0,t=this.createIdentifier(this.startNodeAt(d),u),this.expect(17),this.expect(14),a=this.tsParseType()):(e=!1,a=c,this.expect(17))}else a=this.tsParseType(),r=this.eat(17),e=this.eat(14);if(e)t?((n=this.startNodeAtNode(t)).optional=r,n.label=t,n.elementType=a,this.eat(17)&&(n.optional=!0,this.raise(ND.TupleOptionalAfterType,this.state.lastTokStartLoc))):((n=this.startNodeAtNode(a)).optional=r,this.raise(ND.InvalidTupleMemberLabel,a),n.label=a,n.elementType=this.tsParseType()),a=this.finishNode(n,"TSNamedTupleMember");else if(r){var l=this.startNodeAtNode(a);l.typeAnnotation=a,a=this.finishNode(l,"TSOptionalType")}if(o){var p=this.startNodeAt(s);p.typeAnnotation=a,a=this.finishNode(p,"TSRestType")}return a},r.tsParseParenthesizedType=function(){var e=this.startNode();return this.expect(10),e.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(e,"TSParenthesizedType")},r.tsParseFunctionOrConstructorType=function(e,t){var r=this,a=this.startNode();return"TSConstructorType"===e&&(a.abstract=!!t,t&&this.next(),this.next()),this.tsInAllowConditionalTypesContext((function(){return r.tsFillSignature(19,a)})),this.finishNode(a,e)},r.tsParseLiteralTypeNode=function(){var t=this.startNode();switch(this.state.type){case 135:case 136:case 134:case 85:case 86:t.literal=e.prototype.parseExprAtom.call(this);break;default:this.unexpected()}return this.finishNode(t,"TSLiteralType")},r.tsParseTemplateLiteralType=function(){var t=this.startNode();return t.literal=e.prototype.parseTemplate.call(this,!1),this.finishNode(t,"TSLiteralType")},r.parseTemplateSubstitution=function(){return this.state.inType?this.tsParseType():e.prototype.parseTemplateSubstitution.call(this)},r.tsParseThisTypeOrThisTypePredicate=function(){var e=this.tsParseThisTypeNode();return this.isContextual(116)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(e):e},r.tsParseNonArrayType=function(){switch(this.state.type){case 134:case 135:case 136:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if("-"===this.state.value){var e=this.startNode(),t=this.lookahead();return 135!==t.type&&136!==t.type&&this.unexpected(),e.literal=this.parseMaybeUnary(),this.finishNode(e,"TSLiteralType")}break;case 78:return this.tsParseThisTypeOrThisTypePredicate();case 87:return this.tsParseTypeQuery();case 83:return this.tsParseImportType();case 5:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 10:return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:var r=this.state.type;if(eE(r)||88===r||84===r){var a=88===r?"TSVoidKeyword":84===r?"TSNullKeyword":MD(this.state.value);if(void 0!==a&&46!==this.lookaheadCharCode()){var n=this.startNode();return this.next(),this.finishNode(n,a)}return this.tsParseTypeReference()}}this.unexpected()},r.tsParseArrayTypeOrHigher=function(){for(var e=this.tsParseNonArrayType();!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){var t=this.startNodeAtNode(e);t.elementType=e,this.expect(3),e=this.finishNode(t,"TSArrayType")}else{var r=this.startNodeAtNode(e);r.objectType=e,r.indexType=this.tsParseType(),this.expect(3),e=this.finishNode(r,"TSIndexedAccessType")}return e},r.tsParseTypeOperator=function(){var e=this.startNode(),t=this.state.value;return this.next(),e.operator=t,e.typeAnnotation=this.tsParseTypeOperatorOrHigher(),"readonly"===t&&this.tsCheckTypeAnnotationForReadOnly(e),this.finishNode(e,"TSTypeOperator")},r.tsCheckTypeAnnotationForReadOnly=function(e){switch(e.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(ND.UnexpectedReadonly,e)}},r.tsParseInferType=function(){var e=this,t=this.startNode();this.expectContextual(115);var r=this.startNode();return r.name=this.tsParseTypeParameterName(),r.constraint=this.tsTryParse((function(){return e.tsParseConstraintForInferType()})),t.typeParameter=this.finishNode(r,"TSTypeParameter"),this.finishNode(t,"TSInferType")},r.tsParseConstraintForInferType=function(){var e=this;if(this.eat(81)){var t=this.tsInDisallowConditionalTypesContext((function(){return e.tsParseType()}));if(this.state.inDisallowConditionalTypesContext||!this.match(17))return t}},r.tsParseTypeOperatorOrHigher=function(){var e=this;return fE(this.state.type)&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext((function(){return e.tsParseArrayTypeOrHigher()}))},r.tsParseUnionOrIntersectionType=function(e,t,r){var a=this.startNode(),n=this.eat(r),s=[];do{s.push(t())}while(this.eat(r));return 1!==s.length||n?(a.types=s,this.finishNode(a,e)):s[0]},r.tsParseIntersectionTypeOrHigher=function(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),45)},r.tsParseUnionTypeOrHigher=function(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),43)},r.tsIsStartOfFunctionType=function(){return!!this.match(47)||this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))},r.tsSkipParameterStart=function(){if(eE(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){var t=this.state.errors,r=t.length;try{return this.parseObjectLike(8,!0),t.length===r}catch(s){return!1}}if(this.match(0)){this.next();var a=this.state.errors,n=a.length;try{return e.prototype.parseBindingList.call(this,3,93,_D.ALLOW_EMPTY),a.length===n}catch(o){return!1}}return!1},r.tsIsUnambiguouslyStartOfFunctionType=function(){if(this.next(),this.match(11)||this.match(21))return!0;if(this.tsSkipParameterStart()){if(this.match(14)||this.match(12)||this.match(17)||this.match(29))return!0;if(this.match(11)&&(this.next(),this.match(19)))return!0}return!1},r.tsParseTypeOrTypePredicateAnnotation=function(e){var t=this;return this.tsInType((function(){var r=t.startNode();t.expect(e);var a=t.startNode(),n=!!t.tsTryParse(t.tsParseTypePredicateAsserts.bind(t));if(n&&t.match(78)){var s=t.tsParseThisTypeOrThisTypePredicate();return"TSThisType"===s.type?(a.parameterName=s,a.asserts=!0,a.typeAnnotation=null,s=t.finishNode(a,"TSTypePredicate")):(t.resetStartLocationFromNode(s,a),s.asserts=!0),r.typeAnnotation=s,t.finishNode(r,"TSTypeAnnotation")}var o=t.tsIsIdentifier()&&t.tsTryParse(t.tsParseTypePredicatePrefix.bind(t));if(!o)return n?(a.parameterName=t.parseIdentifier(),a.asserts=n,a.typeAnnotation=null,r.typeAnnotation=t.finishNode(a,"TSTypePredicate"),t.finishNode(r,"TSTypeAnnotation")):t.tsParseTypeAnnotation(!1,r);var i=t.tsParseTypeAnnotation(!1);return a.parameterName=o,a.typeAnnotation=i,a.asserts=n,r.typeAnnotation=t.finishNode(a,"TSTypePredicate"),t.finishNode(r,"TSTypeAnnotation")}))},r.tsTryParseTypeOrTypePredicateAnnotation=function(){if(this.match(14))return this.tsParseTypeOrTypePredicateAnnotation(14)},r.tsTryParseTypeAnnotation=function(){if(this.match(14))return this.tsParseTypeAnnotation()},r.tsTryParseType=function(){return this.tsEatThenParseType(14)},r.tsParseTypePredicatePrefix=function(){var e=this.parseIdentifier();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.next(),e},r.tsParseTypePredicateAsserts=function(){if(109!==this.state.type)return!1;var e=this.state.containsEsc;return this.next(),!(!eE(this.state.type)&&!this.match(78))&&(e&&this.raise(CR.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:"asserts"}),!0)},r.tsParseTypeAnnotation=function(e,t){var r=this;return void 0===e&&(e=!0),void 0===t&&(t=this.startNode()),this.tsInType((function(){e&&r.expect(14),t.typeAnnotation=r.tsParseType()})),this.finishNode(t,"TSTypeAnnotation")},r.tsParseType=function(){var e=this;OD(this.state.inType);var t=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return t;var r=this.startNodeAtNode(t);return r.checkType=t,r.extendsType=this.tsInDisallowConditionalTypesContext((function(){return e.tsParseNonConditionalType()})),this.expect(17),r.trueType=this.tsInAllowConditionalTypesContext((function(){return e.tsParseType()})),this.expect(14),r.falseType=this.tsInAllowConditionalTypesContext((function(){return e.tsParseType()})),this.finishNode(r,"TSConditionalType")},r.isAbstractConstructorSignature=function(){return this.isContextual(124)&&77===this.lookahead().type},r.tsParseNonConditionalType=function(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(77)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()},r.tsParseTypeAssertion=function(){var e=this;this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(ND.ReservedTypeAssertion,this.state.startLoc);var t=this.startNode();return t.typeAnnotation=this.tsInType((function(){return e.next(),e.match(75)?e.tsParseTypeReference():e.tsParseType()})),this.expect(48),t.expression=this.parseMaybeUnary(),this.finishNode(t,"TSTypeAssertion")},r.tsParseHeritageClause=function(e){var t=this,r=this.state.startLoc,a=this.tsParseDelimitedList("HeritageClauseElement",(function(){var e=t.startNode();return e.expression=t.tsParseEntityName(),t.match(47)&&(e.typeParameters=t.tsParseTypeArguments()),t.finishNode(e,"TSExpressionWithTypeArguments")}));return a.length||this.raise(ND.EmptyHeritageClauseType,r,{token:e}),a},r.tsParseInterfaceDeclaration=function(e,t){if(void 0===t&&(t={}),this.hasFollowingLineBreak())return null;this.expectContextual(129),t.declare&&(e.declare=!0),eE(this.state.type)?(e.id=this.parseIdentifier(),this.checkIdentifier(e.id,wE.TYPE_TS_INTERFACE)):(e.id=null,this.raise(ND.MissingInterfaceName,this.state.startLoc)),e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81)&&(e.extends=this.tsParseHeritageClause("extends"));var r=this.startNode();return r.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),e.body=this.finishNode(r,"TSInterfaceBody"),this.finishNode(e,"TSInterfaceDeclaration")},r.tsParseTypeAliasDeclaration=function(e){var t=this;return e.id=this.parseIdentifier(),this.checkIdentifier(e.id,wE.TYPE_TS_TYPE),e.typeAnnotation=this.tsInType((function(){if(e.typeParameters=t.tsTryParseTypeParameters(t.tsParseInOutModifiers),t.expect(29),t.isContextual(114)&&16!==t.lookahead().type){var r=t.startNode();return t.next(),t.finishNode(r,"TSIntrinsicKeyword")}return t.tsParseType()})),this.semicolon(),this.finishNode(e,"TSTypeAliasDeclaration")},r.tsInNoContext=function(e){var t=this.state.context;this.state.context=[t[0]];try{return e()}finally{this.state.context=t}},r.tsInType=function(e){var t=this.state.inType;this.state.inType=!0;try{return e()}finally{this.state.inType=t}},r.tsInDisallowConditionalTypesContext=function(e){var t=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return e()}finally{this.state.inDisallowConditionalTypesContext=t}},r.tsInAllowConditionalTypesContext=function(e){var t=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return e()}finally{this.state.inDisallowConditionalTypesContext=t}},r.tsEatThenParseType=function(e){if(this.match(e))return this.tsNextThenParseType()},r.tsExpectThenParseType=function(e){var t=this;return this.tsInType((function(){return t.expect(e),t.tsParseType()}))},r.tsNextThenParseType=function(){var e=this;return this.tsInType((function(){return e.next(),e.tsParseType()}))},r.tsParseEnumMember=function(){var t=this.startNode();return t.id=this.match(134)?e.prototype.parseStringLiteral.call(this,this.state.value):this.parseIdentifier(!0),this.eat(29)&&(t.initializer=e.prototype.parseMaybeAssignAllowIn.call(this)),this.finishNode(t,"TSEnumMember")},r.tsParseEnumDeclaration=function(e,t){return void 0===t&&(t={}),t.const&&(e.const=!0),t.declare&&(e.declare=!0),this.expectContextual(126),e.id=this.parseIdentifier(),this.checkIdentifier(e.id,e.const?wE.TYPE_TS_CONST_ENUM:wE.TYPE_TS_ENUM),this.expect(5),e.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(e,"TSEnumDeclaration")},r.tsParseModuleBlock=function(){var t=this.startNode();return this.scope.enter(DE.OTHER),this.expect(5),e.prototype.parseBlockOrModuleBlockBody.call(this,t.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(t,"TSModuleBlock")},r.tsParseModuleOrNamespaceDeclaration=function(e,t){if(void 0===t&&(t=!1),e.id=this.parseIdentifier(),t||this.checkIdentifier(e.id,wE.TYPE_TS_NAMESPACE),this.eat(16)){var r=this.startNode();this.tsParseModuleOrNamespaceDeclaration(r,!0),e.body=r}else this.scope.enter(DE.TS_MODULE),this.prodParam.enter(aD.PARAM),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(e,"TSModuleDeclaration")},r.tsParseAmbientExternalModuleDeclaration=function(t){return this.isContextual(112)?(t.kind="global",t.global=!0,t.id=this.parseIdentifier()):this.match(134)?(t.kind="module",t.id=e.prototype.parseStringLiteral.call(this,this.state.value)):this.unexpected(),this.match(5)?(this.scope.enter(DE.TS_MODULE),this.prodParam.enter(aD.PARAM),t.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(t,"TSModuleDeclaration")},r.tsParseImportEqualsDeclaration=function(e,t,r){e.isExport=r||!1,e.id=t||this.parseIdentifier(),this.checkIdentifier(e.id,wE.TYPE_TS_VALUE_IMPORT),this.expect(29);var a=this.tsParseModuleReference();return"type"===e.importKind&&"TSExternalModuleReference"!==a.type&&this.raise(ND.ImportAliasHasImportType,a),e.moduleReference=a,this.semicolon(),this.finishNode(e,"TSImportEqualsDeclaration")},r.tsIsExternalModuleReference=function(){return this.isContextual(119)&&40===this.lookaheadCharCode()},r.tsParseModuleReference=function(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)},r.tsParseExternalModuleReference=function(){var t=this.startNode();return this.expectContextual(119),this.expect(10),this.match(134)||this.unexpected(),t.expression=e.prototype.parseExprAtom.call(this),this.expect(11),this.sawUnambiguousESM=!0,this.finishNode(t,"TSExternalModuleReference")},r.tsLookAhead=function(e){var t=this.state.clone(),r=e();return this.state=t,r},r.tsTryParseAndCatch=function(e){var t=this.tryParse((function(t){return e()||t()}));if(!t.aborted&&t.node)return t.error&&(this.state=t.failState),t.node},r.tsTryParse=function(e){var t=this.state.clone(),r=e();if(void 0!==r&&!1!==r)return r;this.state=t},r.tsTryParseDeclare=function(t){var r=this;if(!this.isLineTerminator()){var a,n=this.state.type;return this.isContextual(100)&&(n=74,a="let"),this.tsInAmbientContext((function(){switch(n){case 68:return t.declare=!0,e.prototype.parseFunctionStatement.call(r,t,!1,!1);case 80:return t.declare=!0,r.parseClass(t,!0,!1);case 126:return r.tsParseEnumDeclaration(t,{declare:!0});case 112:return r.tsParseAmbientExternalModuleDeclaration(t);case 75:case 74:return r.match(75)&&r.isLookaheadContextual("enum")?(r.expect(75),r.tsParseEnumDeclaration(t,{const:!0,declare:!0})):(t.declare=!0,r.parseVarStatement(t,a||r.state.value,!0));case 129:var s=r.tsParseInterfaceDeclaration(t,{declare:!0});if(s)return s;default:if(eE(n))return r.tsParseDeclaration(t,r.state.value,!0,null)}}))}},r.tsTryParseExportDeclaration=function(){return this.tsParseDeclaration(this.startNode(),this.state.value,!0,null)},r.tsParseExpressionStatement=function(e,t,r){switch(t.name){case"declare":var a=this.tsTryParseDeclare(e);return a&&(a.declare=!0),a;case"global":if(this.match(5)){this.scope.enter(DE.TS_MODULE),this.prodParam.enter(aD.PARAM);var n=e;return n.kind="global",e.global=!0,n.id=t,n.body=this.tsParseModuleBlock(),this.scope.exit(),this.prodParam.exit(),this.finishNode(n,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(e,t.name,!1,r)}},r.tsParseDeclaration=function(e,t,r,a){switch(t){case"abstract":if(this.tsCheckLineTerminator(r)&&(this.match(80)||eE(this.state.type)))return this.tsParseAbstractDeclaration(e,a);break;case"module":if(this.tsCheckLineTerminator(r)){if(this.match(134))return this.tsParseAmbientExternalModuleDeclaration(e);if(eE(this.state.type))return e.kind="module",this.tsParseModuleOrNamespaceDeclaration(e)}break;case"namespace":if(this.tsCheckLineTerminator(r)&&eE(this.state.type))return e.kind="namespace",this.tsParseModuleOrNamespaceDeclaration(e);break;case"type":if(this.tsCheckLineTerminator(r)&&eE(this.state.type))return this.tsParseTypeAliasDeclaration(e)}},r.tsCheckLineTerminator=function(e){return e?!this.hasFollowingLineBreak()&&(this.next(),!0):!this.isLineTerminator()},r.tsTryParseGenericAsyncArrowFunction=function(t){var r=this;if(this.match(47)){var a=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;var n=this.tsTryParseAndCatch((function(){var a=r.startNodeAt(t);return a.typeParameters=r.tsParseTypeParameters(r.tsParseConstModifier),e.prototype.parseFunctionParams.call(r,a),a.returnType=r.tsTryParseTypeOrTypePredicateAnnotation(),r.expect(19),a}));if(this.state.maybeInArrowParameters=a,n)return e.prototype.parseArrowExpression.call(this,n,null,!0)}},r.tsParseTypeArgumentsInExpression=function(){if(47===this.reScan_lt())return this.tsParseTypeArguments()},r.tsParseTypeArguments=function(){var e=this,t=this.startNode();return t.params=this.tsInType((function(){return e.tsInNoContext((function(){return e.expect(47),e.tsParseDelimitedList("TypeParametersOrArguments",e.tsParseType.bind(e))}))})),0===t.params.length?this.raise(ND.EmptyTypeArguments,t):this.state.inType||this.curContext()!==_R.brace||this.reScan_lt_gt(),this.expect(48),this.finishNode(t,"TSTypeParameterInstantiation")},r.tsIsDeclarationStart=function(){return gE(this.state.type)},r.isExportDefaultSpecifier=function(){return!this.tsIsDeclarationStart()&&e.prototype.isExportDefaultSpecifier.call(this)},r.parseAssignableListItem=function(e,t){var r=this.state.startLoc,a={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},a);var n=a.accessibility,s=a.override,o=a.readonly;e&_D.IS_CONSTRUCTOR_PARAMS||!(n||o||s)||this.raise(ND.UnexpectedParameterModifier,r);var i=this.parseMaybeDefault();e&_D.IS_FUNCTION_PARAMS&&this.parseFunctionParamType(i);var d=this.parseMaybeDefault(i.loc.start,i);if(n||o||s){var u=this.startNodeAt(r);return t.length&&(u.decorators=t),n&&(u.accessibility=n),o&&(u.readonly=o),s&&(u.override=s),"Identifier"!==d.type&&"AssignmentPattern"!==d.type&&this.raise(ND.UnsupportedParameterPropertyKind,u),u.parameter=d,this.finishNode(u,"TSParameterProperty")}return t.length&&(i.decorators=t),d},r.isSimpleParameter=function(t){return"TSParameterProperty"===t.type&&e.prototype.isSimpleParameter.call(this,t.parameter)||e.prototype.isSimpleParameter.call(this,t)},r.tsDisallowOptionalPattern=function(e){for(var t=0,r=e.params;ta&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(n=this.isContextual(120)))){var o=this.startNodeAt(r);return o.expression=t,o.typeAnnotation=this.tsInType((function(){return s.next(),s.match(75)?(n&&s.raise(CR.UnexpectedKeyword,s.state.startLoc,{keyword:"const"}),s.tsParseTypeReference()):s.tsParseType()})),this.finishNode(o,n?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(o,r,a)}return e.prototype.parseExprOp.call(this,t,r,a)},r.checkReservedWord=function(t,r,a,n){this.state.isAmbientContext||e.prototype.checkReservedWord.call(this,t,r,a,n)},r.checkImportReflection=function(t){e.prototype.checkImportReflection.call(this,t),t.module&&"value"!==t.importKind&&this.raise(ND.ImportReflectionHasImportType,t.specifiers[0].loc.start)},r.checkDuplicateExports=function(){},r.isPotentialImportPhase=function(t){if(e.prototype.isPotentialImportPhase.call(this,t))return!0;if(this.isContextual(130)){var r=this.lookaheadCharCode();return t?123===r||42===r:61!==r}return!t&&this.isContextual(87)},r.applyImportPhase=function(t,r,a,n){e.prototype.applyImportPhase.call(this,t,r,a,n),r?t.exportKind="type"===a?"type":"value":t.importKind="type"===a||"typeof"===a?a:"value"},r.parseImport=function(t){if(this.match(134))return t.importKind="value",e.prototype.parseImport.call(this,t);var r;if(eE(this.state.type)&&61===this.lookaheadCharCode())return t.importKind="value",this.tsParseImportEqualsDeclaration(t);if(this.isContextual(130)){var a=this.parseMaybeImportPhase(t,!1);if(61===this.lookaheadCharCode())return this.tsParseImportEqualsDeclaration(t,a);r=e.prototype.parseImportSpecifiersAndAfter.call(this,t,a)}else r=e.prototype.parseImport.call(this,t);return"type"===r.importKind&&r.specifiers.length>1&&"ImportDefaultSpecifier"===r.specifiers[0].type&&this.raise(ND.TypeImportCannotSpecifyDefaultAndNamed,r),r},r.parseExport=function(t,r){if(this.match(83)){this.next();var a=t,n=null;return this.isContextual(130)&&this.isPotentialImportPhase(!1)?n=this.parseMaybeImportPhase(a,!1):a.importKind="value",this.tsParseImportEqualsDeclaration(a,n,!0)}if(this.eat(29)){var s=t;return s.expression=e.prototype.parseExpression.call(this),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(s,"TSExportAssignment")}if(this.eatContextual(93)){var o=t;return this.expectContextual(128),o.id=this.parseIdentifier(),this.semicolon(),this.finishNode(o,"TSNamespaceExportDeclaration")}return e.prototype.parseExport.call(this,t,r)},r.isAbstractClass=function(){return this.isContextual(124)&&80===this.lookahead().type},r.parseExportDefaultExpression=function(){if(this.isAbstractClass()){var t=this.startNode();return this.next(),t.abstract=!0,this.parseClass(t,!0,!0)}if(this.match(129)){var r=this.tsParseInterfaceDeclaration(this.startNode());if(r)return r}return e.prototype.parseExportDefaultExpression.call(this)},r.parseVarStatement=function(t,r,a){void 0===a&&(a=!1);var n=this.state.isAmbientContext,s=e.prototype.parseVarStatement.call(this,t,r,a||n);if(!n)return s;for(var o=0,i=s.declarations;o0))&&KD(e.object)}function zD(e,t){var r,a=e.type;if(null!=(r=e.extra)&&r.parenthesized)return!1;if(t){if("Literal"===a){var n=e.value;if("string"===typeof n||"boolean"===typeof n)return!0}}else if("StringLiteral"===a||"BooleanLiteral"===a)return!0;return!(!GD(e,t)&&!VD(e,t))||"TemplateLiteral"===a&&0===e.expressions.length||!!HD(e)}function GD(e,t){return t?"Literal"===e.type&&("number"===typeof e.value||"bigint"in e):"NumericLiteral"===e.type||"BigIntLiteral"===e.type}function VD(e,t){if("UnaryExpression"===e.type){var r=e.operator,a=e.argument;if("-"===r&&GD(a,t))return!0}return!1}function KD(e){return"Identifier"===e.type||"MemberExpression"===e.type&&!e.computed&&KD(e.object)}var YD=AR(qD||(qD=A(["placeholders"])))({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."}),JD=function(e){return function(e){function t(){return e.apply(this,arguments)||this}g(t,e);var r=t.prototype;return r.parsePlaceholder=function(t){if(this.match(133)){var r=this.startNode();return this.next(),this.assertNoSpace(),r.name=e.prototype.parseIdentifier.call(this,!0),this.assertNoSpace(),this.expect(133),this.finishPlaceholder(r,t)}},r.finishPlaceholder=function(e,t){var r=e;return r.expectedNode&&r.type||(r=this.finishNode(r,"Placeholder")),r.expectedNode=t,r},r.getTokenFromCode=function(t){37===t&&37===this.input.charCodeAt(this.state.pos+1)?this.finishOp(133,2):e.prototype.getTokenFromCode.call(this,t)},r.parseExprAtom=function(t){return this.parsePlaceholder("Expression")||e.prototype.parseExprAtom.call(this,t)},r.parseIdentifier=function(t){return this.parsePlaceholder("Identifier")||e.prototype.parseIdentifier.call(this,t)},r.checkReservedWord=function(t,r,a,n){void 0!==t&&e.prototype.checkReservedWord.call(this,t,r,a,n)},r.parseBindingAtom=function(){return this.parsePlaceholder("Pattern")||e.prototype.parseBindingAtom.call(this)},r.isValidLVal=function(t,r,a){return"Placeholder"===t||e.prototype.isValidLVal.call(this,t,r,a)},r.toAssignable=function(t,r){t&&"Placeholder"===t.type&&"Expression"===t.expectedNode?t.expectedNode="Pattern":e.prototype.toAssignable.call(this,t,r)},r.chStartsBindingIdentifier=function(t,r){return!!e.prototype.chStartsBindingIdentifier.call(this,t,r)||133===this.lookahead().type},r.verifyBreakContinue=function(t,r){t.label&&"Placeholder"===t.label.type||e.prototype.verifyBreakContinue.call(this,t,r)},r.parseExpressionStatement=function(t,r){var a;if("Placeholder"!==r.type||null!=(a=r.extra)&&a.parenthesized)return e.prototype.parseExpressionStatement.call(this,t,r);if(this.match(14)){var n=t;return n.label=this.finishPlaceholder(r,"Identifier"),this.next(),n.body=e.prototype.parseStatementOrSloppyAnnexBFunctionDeclaration.call(this),this.finishNode(n,"LabeledStatement")}this.semicolon();var s=t;return s.name=r.name,this.finishPlaceholder(s,"Statement")},r.parseBlock=function(t,r,a){return this.parsePlaceholder("BlockStatement")||e.prototype.parseBlock.call(this,t,r,a)},r.parseFunctionId=function(t){return this.parsePlaceholder("Identifier")||e.prototype.parseFunctionId.call(this,t)},r.parseClass=function(t,r,a){var n=r?"ClassDeclaration":"ClassExpression";this.next();var s=this.state.strict,o=this.parsePlaceholder("Identifier");if(o){if(!(this.match(81)||this.match(133)||this.match(5))){if(a||!r)return t.id=null,t.body=this.finishPlaceholder(o,"ClassBody"),this.finishNode(t,n);throw this.raise(YD.ClassNameIsRequired,this.state.startLoc)}t.id=o}else this.parseClassId(t,r,a);return e.prototype.parseClassSuper.call(this,t),t.body=this.parsePlaceholder("ClassBody")||e.prototype.parseClassBody.call(this,!!t.superClass,s),this.finishNode(t,n)},r.parseExport=function(t,r){var a=this.parsePlaceholder("Identifier");if(!a)return e.prototype.parseExport.call(this,t,r);var n=t;if(!this.isContextual(98)&&!this.match(12))return n.specifiers=[],n.source=null,n.declaration=this.finishPlaceholder(a,"Declaration"),this.finishNode(n,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");var s=this.startNode();return s.exported=a,n.specifiers=[this.finishNode(s,"ExportDefaultSpecifier")],e.prototype.parseExport.call(this,n,r)},r.isExportDefaultSpecifier=function(){if(this.match(65)){var t=this.nextTokenStart();if(this.isUnparsedContextual(t,"from")&&this.input.startsWith(mE(133),this.nextTokenStartSince(t+4)))return!0}return e.prototype.isExportDefaultSpecifier.call(this)},r.maybeParseExportDefaultSpecifier=function(t,r){var a;return!(null==(a=t.specifiers)||!a.length)||e.prototype.maybeParseExportDefaultSpecifier.call(this,t,r)},r.checkExport=function(t){var r=t.specifiers;null!=r&&r.length&&(t.specifiers=r.filter((function(e){return"Placeholder"===e.exported.type}))),e.prototype.checkExport.call(this,t),t.specifiers=r},r.parseImport=function(t){var r=this.parsePlaceholder("Identifier");if(!r)return e.prototype.parseImport.call(this,t);if(t.specifiers=[],!this.isContextual(98)&&!this.match(12))return t.source=this.finishPlaceholder(r,"StringLiteral"),this.semicolon(),this.finishNode(t,"ImportDeclaration");var a=this.startNodeAtNode(r);return a.local=r,t.specifiers.push(this.finishNode(a,"ImportDefaultSpecifier")),this.eat(12)&&(this.maybeParseStarImportSpecifier(t)||this.parseNamedImportSpecifiers(t)),this.expectContextual(98),t.source=this.parseImportSource(),this.semicolon(),this.finishNode(t,"ImportDeclaration")},r.parseImportSource=function(){return this.parsePlaceholder("StringLiteral")||e.prototype.parseImportSource.call(this)},r.assertNoSpace=function(){this.state.start>this.offsetToSourcePos(this.state.lastTokEndLoc.index)&&this.raise(YD.UnexpectedSpace,this.state.lastTokEndLoc)},l(t)}(e)},XD=function(e){return function(e){function t(){return e.apply(this,arguments)||this}g(t,e);var r=t.prototype;return r.parseV8Intrinsic=function(){if(this.match(54)){var e=this.state.startLoc,t=this.startNode();if(this.next(),eE(this.state.type)){var r=this.parseIdentifierName(),a=this.createIdentifier(t,r);if(a.type="V8IntrinsicIdentifier",this.match(10))return a}this.unexpected(e)}},r.parseExprAtom=function(t){return this.parseV8Intrinsic()||e.prototype.parseExprAtom.call(this,t)},l(t)}(e)},$D=["minimal","fsharp","hack","smart"],QD=["^^","@@","^","%","#"];function ZD(e){if(e.has("decorators")){if(e.has("decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");var t=e.get("decorators").decoratorsBeforeExport;if(null!=t&&"boolean"!==typeof t)throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.");var r=e.get("decorators").allowCallParenthesized;if(null!=r&&"boolean"!==typeof r)throw new Error("'allowCallParenthesized' must be a boolean.")}if(e.has("flow")&&e.has("typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(e.has("placeholders")&&e.has("v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(e.has("pipelineOperator")){var a,n=e.get("pipelineOperator").proposal;if(!$D.includes(n)){var s=$D.map((function(e){return'"'+e+'"'})).join(", ");throw new Error('"pipelineOperator" requires "proposal" option whose value must be one of: '+s+".")}var o="hash"===(null==(a=e.get("recordAndTuple"))?void 0:a.syntaxType);if("hack"===n){if(e.has("placeholders"))throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");if(e.has("v8intrinsic"))throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");var i=e.get("pipelineOperator").topicToken;if(!QD.includes(i)){var d=QD.map((function(e){return'"'+e+'"'})).join(", ");throw new Error('"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: '+d+".")}if("#"===i&&o)throw new Error('Plugin conflict between `["pipelineOperator", { proposal: "hack", topicToken: "#" }]` and `'+JSON.stringify(["recordAndTuple",e.get("recordAndTuple")])+"`.")}else if("smart"===n&&o)throw new Error('Plugin conflict between `["pipelineOperator", { proposal: "smart" }]` and `'+JSON.stringify(["recordAndTuple",e.get("recordAndTuple")])+"`.")}if(e.has("moduleAttributes")){if(e.has("deprecatedImportAssert")||e.has("importAssertions"))throw new Error("Cannot combine importAssertions, deprecatedImportAssert and moduleAttributes plugins.");if("may-2020"!==e.get("moduleAttributes").version)throw new Error("The 'moduleAttributes' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is 'may-2020'.")}if(e.has("importAssertions")&&e.has("deprecatedImportAssert"))throw new Error("Cannot combine importAssertions and deprecatedImportAssert plugins.");if(!e.has("deprecatedImportAssert")&&e.has("importAttributes")&&e.get("importAttributes").deprecatedAssertSyntax&&e.set("deprecatedImportAssert",{}),e.has("recordAndTuple")){var u=e.get("recordAndTuple").syntaxType;if(null!=u){var c=["hash","bar"];if(!c.includes(u))throw new Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: "+c.map((function(e){return"'"+e+"'"})).join(", "))}}if(e.has("asyncDoExpressions")&&!e.has("doExpressions")){var l=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw l.missingPlugins="doExpressions",l}if(e.has("optionalChainingAssign")&&"2023-07"!==e.get("optionalChainingAssign").version)throw new Error("The 'optionalChainingAssign' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is '2023-07'.")}var ew={estree:PR,jsx:TD,flow:DD,typescript:WD,v8intrinsic:XD,placeholders:JD},tw=Object.keys(ew);function rw(){return{sourceType:"script",sourceFilename:void 0,startIndex:0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,plugins:[],strictMode:null,ranges:!1,tokens:!1,createImportExpressions:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0}}function aw(e){var t=rw();if(null==e)return t;if(null!=e.annexB&&!1!==e.annexB)throw new Error("The `annexB` option can only be set to `false`.");for(var r=0,a=Object.keys(t);r0?t.startIndex=t.startColumn:null==e.startColumn&&t.startIndex>0&&(t.startColumn=t.startIndex);else if((null==e.startColumn||null==e.startIndex)&&null!=e.startIndex)throw new Error("With a `startLine > 1` you must also specify `startIndex` and `startColumn`.");return t}var nw=function(e){function t(){return e.apply(this,arguments)||this}g(t,e);var r=t.prototype;return r.checkProto=function(e,t,r,a){if(!("SpreadElement"===e.type||this.isObjectMethod(e)||e.computed||e.shorthand)){var n=e.key;if("__proto__"===("Identifier"===n.type?n.name:n.value)){if(t)return void this.raise(CR.RecordNoProto,n);r.used&&(a?null===a.doubleProtoLoc&&(a.doubleProtoLoc=n.loc.start):this.raise(CR.DuplicateProto,n)),r.used=!0}}},r.shouldExitDescending=function(e,t){return"ArrowFunctionExpression"===e.type&&this.offsetToSourcePos(e.start)===t},r.getExpression=function(){this.enterInitialScopes(),this.nextToken();var e=this.parseExpression();return this.match(140)||this.unexpected(),this.finalizeRemainingComments(),e.comments=this.comments,e.errors=this.state.errors,this.options.tokens&&(e.tokens=this.tokens),e},r.parseExpression=function(e,t){var r=this;return e?this.disallowInAnd((function(){return r.parseExpressionBase(t)})):this.allowInAnd((function(){return r.parseExpressionBase(t)}))},r.parseExpressionBase=function(e){var t=this.state.startLoc,r=this.parseMaybeAssign(e);if(this.match(12)){var a=this.startNodeAt(t);for(a.expressions=[r];this.eat(12);)a.expressions.push(this.parseMaybeAssign(e));return this.toReferencedList(a.expressions),this.finishNode(a,"SequenceExpression")}return r},r.parseMaybeAssignDisallowIn=function(e,t){var r=this;return this.disallowInAnd((function(){return r.parseMaybeAssign(e,t)}))},r.parseMaybeAssignAllowIn=function(e,t){var r=this;return this.allowInAnd((function(){return r.parseMaybeAssign(e,t)}))},r.setOptionalParametersError=function(e,t){var r;e.optionalParametersLoc=null!=(r=null==t?void 0:t.loc)?r:this.state.startLoc},r.parseMaybeAssign=function(e,t){var r,a=this.state.startLoc;if(this.isContextual(108)&&this.prodParam.hasYield){var n=this.parseYield();return t&&(n=t.call(this,n,a)),n}e?r=!1:(e=new iD,r=!0);var s=this.state.type;(10===s||eE(s))&&(this.state.potentialArrowAt=this.state.start);var o=this.parseMaybeConditional(e);if(t&&(o=t.call(this,o,a)),oE(this.state.type)){var i=this.startNodeAt(a),d=this.state.value;if(i.operator=d,this.match(29)){this.toAssignable(o,!0),i.left=o;var u=a.index;null!=e.doubleProtoLoc&&e.doubleProtoLoc.index>=u&&(e.doubleProtoLoc=null),null!=e.shorthandAssignLoc&&e.shorthandAssignLoc.index>=u&&(e.shorthandAssignLoc=null),null!=e.privateKeyLoc&&e.privateKeyLoc.index>=u&&(this.checkDestructuringPrivate(e),e.privateKeyLoc=null)}else i.left=o;return this.next(),i.right=this.parseMaybeAssign(),this.checkLVal(o,this.finishNode(i,"AssignmentExpression")),i}return r&&this.checkExpressionErrors(e,!0),o},r.parseMaybeConditional=function(e){var t=this.state.startLoc,r=this.state.potentialArrowAt,a=this.parseExprOps(e);return this.shouldExitDescending(a,r)?a:this.parseConditional(a,t,e)},r.parseConditional=function(e,t,r){if(this.eat(17)){var a=this.startNodeAt(t);return a.test=e,a.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),a.alternate=this.parseMaybeAssign(),this.finishNode(a,"ConditionalExpression")}return e},r.parseMaybeUnaryOrPrivate=function(e){return this.match(139)?this.parsePrivateName():this.parseMaybeUnary(e)},r.parseExprOps=function(e){var t=this.state.startLoc,r=this.state.potentialArrowAt,a=this.parseMaybeUnaryOrPrivate(e);return this.shouldExitDescending(a,r)?a:this.parseExprOp(a,t,-1)},r.parseExprOp=function(e,t,r){if(this.isPrivateName(e)){var a=this.getPrivateNameSV(e);(r>=hE(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(CR.PrivateInExpectedIn,e,{identifierName:a}),this.classScope.usePrivateName(a,e.loc.start)}var n=this.state.type;if(cE(n)&&(this.prodParam.hasIn||!this.match(58))){var s=hE(n);if(s>r){if(39===n){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return e;this.checkPipelineAtInfixOperator(e,t)}var o=this.startNodeAt(t);o.left=e,o.operator=this.state.value;var i=41===n||42===n,d=40===n;if(d&&(s=hE(42)),this.next(),39===n&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])&&96===this.state.type&&this.prodParam.hasAwait)throw this.raise(CR.UnexpectedAwaitAfterPipelineBody,this.state.startLoc);o.right=this.parseExprOpRightExpr(n,s);var u=this.finishNode(o,i||d?"LogicalExpression":"BinaryExpression"),c=this.state.type;if(d&&(41===c||42===c)||i&&40===c)throw this.raise(CR.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(u,t,r)}}return e},r.parseExprOpRightExpr=function(e,t){var r=this,a=this.state.startLoc;if(39===e)switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext((function(){return r.parseHackPipeBody()}));case"smart":return this.withTopicBindingContext((function(){if(r.prodParam.hasYield&&r.isContextual(108))throw r.raise(CR.PipeBodyIsTighter,r.state.startLoc);return r.parseSmartPipelineBodyInStyle(r.parseExprOpBaseRightExpr(e,t),a)}));case"fsharp":return this.withSoloAwaitPermittingContext((function(){return r.parseFSharpPipelineBody(t)}))}return this.parseExprOpBaseRightExpr(e,t)},r.parseExprOpBaseRightExpr=function(e,t){var r=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),r,yE(e)?t-1:t)},r.parseHackPipeBody=function(){var e,t=this.state.startLoc,r=this.parseMaybeAssign();return!RR.has(r.type)||null!=(e=r.extra)&&e.parenthesized||this.raise(CR.PipeUnparenthesizedBody,t,{type:r.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(CR.PipeTopicUnused,t),r},r.checkExponentialAfterUnary=function(e){this.match(57)&&this.raise(CR.UnexpectedTokenUnaryExponentiation,e.argument)},r.parseMaybeUnary=function(e,t){var r=this.state.startLoc,a=this.isContextual(96);if(a&&this.recordAwaitIfAllowed()){this.next();var n=this.parseAwait(r);return t||this.checkExponentialAfterUnary(n),n}var s=this.match(34),o=this.startNode();if(pE(this.state.type)){o.operator=this.state.value,o.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");var i=this.match(89);if(this.next(),o.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(e,!0),this.state.strict&&i){var d=o.argument;"Identifier"===d.type?this.raise(CR.StrictDelete,o):this.hasPropertyAsPrivateName(d)&&this.raise(CR.DeletePrivateField,o)}if(!s)return t||this.checkExponentialAfterUnary(o),this.finishNode(o,"UnaryExpression")}var u=this.parseUpdate(o,s,e);if(a){var c=this.state.type;if((this.hasPlugin("v8intrinsic")?sE(c):sE(c)&&!this.match(54))&&!this.isAmbiguousAwait())return this.raiseOverwrite(CR.AwaitNotInAsyncContext,r),this.parseAwait(r)}return u},r.parseUpdate=function(e,t,r){if(t){var a=e;return this.checkLVal(a.argument,this.finishNode(a,"UpdateExpression")),e}var n=this.state.startLoc,s=this.parseExprSubscripts(r);if(this.checkExpressionErrors(r,!1))return s;for(;lE(this.state.type)&&!this.canInsertSemicolon();){var o=this.startNodeAt(n);o.operator=this.state.value,o.prefix=!1,o.argument=s,this.next(),this.checkLVal(s,s=this.finishNode(o,"UpdateExpression"))}return s},r.parseExprSubscripts=function(e){var t=this.state.startLoc,r=this.state.potentialArrowAt,a=this.parseExprAtom(e);return this.shouldExitDescending(a,r)?a:this.parseSubscripts(a,t)},r.parseSubscripts=function(e,t,r){var a={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(e),stop:!1};do{e=this.parseSubscript(e,t,r,a),a.maybeAsyncArrow=!1}while(!a.stop);return e},r.parseSubscript=function(e,t,r,a){var n=this.state.type;if(!r&&15===n)return this.parseBind(e,t,r,a);if(bE(n))return this.parseTaggedTemplateExpression(e,t,a);var s=!1;if(18===n){if(r&&(this.raise(CR.OptionalChainingNoNew,this.state.startLoc),40===this.lookaheadCharCode()))return a.stop=!0,e;a.optionalChainMember=s=!0,this.next()}if(!r&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(e,t,a,s);var o=this.eat(0);return o||s||this.eat(16)?this.parseMember(e,t,a,o,s):(a.stop=!0,e)},r.parseMember=function(e,t,r,a,n){var s=this.startNodeAt(t);return s.object=e,s.computed=a,a?(s.property=this.parseExpression(),this.expect(3)):this.match(139)?("Super"===e.type&&this.raise(CR.SuperPrivateField,t),this.classScope.usePrivateName(this.state.value,this.state.startLoc),s.property=this.parsePrivateName()):s.property=this.parseIdentifier(!0),r.optionalChainMember?(s.optional=n,this.finishNode(s,"OptionalMemberExpression")):this.finishNode(s,"MemberExpression")},r.parseBind=function(e,t,r,a){var n=this.startNodeAt(t);return n.object=e,this.next(),n.callee=this.parseNoCallExpr(),a.stop=!0,this.parseSubscripts(this.finishNode(n,"BindExpression"),t,r)},r.parseCoverCallAndAsyncArrowHead=function(e,t,r,a){var n=this.state.maybeInArrowParameters,s=null;this.state.maybeInArrowParameters=!0,this.next();var o=this.startNodeAt(t);o.callee=e;var i=r.maybeAsyncArrow,d=r.optionalChainMember;i&&(this.expressionScope.enter(tD()),s=new iD),d&&(o.optional=a),o.arguments=a?this.parseCallExpressionArguments(11):this.parseCallExpressionArguments(11,"Super"!==e.type,o,s);var u=this.finishCallExpression(o,d);return i&&this.shouldParseAsyncArrow()&&!a?(r.stop=!0,this.checkDestructuringPrivate(s),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),u=this.parseAsyncArrowFromCallExpression(this.startNodeAt(t),u)):(i&&(this.checkExpressionErrors(s,!0),this.expressionScope.exit()),this.toReferencedArguments(u)),this.state.maybeInArrowParameters=n,u},r.toReferencedArguments=function(e,t){this.toReferencedListDeep(e.arguments,t)},r.parseTaggedTemplateExpression=function(e,t,r){var a=this.startNodeAt(t);return a.tag=e,a.quasi=this.parseTemplate(!0),r.optionalChainMember&&this.raise(CR.OptionalChainingNoTemplate,t),this.finishNode(a,"TaggedTemplateExpression")},r.atPossibleAsyncArrow=function(e){return"Identifier"===e.type&&"async"===e.name&&this.state.lastTokEndLoc.index===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.offsetToSourcePos(e.start)===this.state.potentialArrowAt},r.finishCallExpression=function(e,t){if("Import"===e.callee.type)if(0===e.arguments.length||e.arguments.length>2)this.raise(CR.ImportCallArity,e);else for(var r=0,a=e.arguments;r1?((t=this.startNodeAt(i)).expressions=d,this.finishNode(t,"SequenceExpression"),this.resetEndLocation(t,p)):t=d[0],this.wrapParenthesis(r,t))},r.wrapParenthesis=function(e,t){if(!this.options.createParenthesizedExpressions)return this.addExtra(t,"parenthesized",!0),this.addExtra(t,"parenStart",e.index),this.takeSurroundingComments(t,e.index,this.state.lastTokEndLoc.index),t;var r=this.startNodeAt(e);return r.expression=t,this.finishNode(r,"ParenthesizedExpression")},r.shouldParseArrow=function(e){return!this.canInsertSemicolon()},r.parseArrow=function(e){if(this.eat(19))return e},r.parseParenItem=function(e,t){return e},r.parseNewOrNewTarget=function(){var e=this.startNode();if(this.next(),this.match(16)){var t=this.createIdentifier(this.startNodeAtNode(e),"new");this.next();var r=this.parseMetaProperty(e,t,"target");return this.scope.inNonArrowFunction||this.scope.inClass||this.options.allowNewTargetOutsideFunction||this.raise(CR.UnexpectedNewTarget,r),r}return this.parseNew(e)},r.parseNew=function(e){if(this.parseNewCallee(e),this.eat(10)){var t=this.parseExprList(11);this.toReferencedList(t),e.arguments=t}else e.arguments=[];return this.finishNode(e,"NewExpression")},r.parseNewCallee=function(e){var t=this.match(83),r=this.parseNoCallExpr();e.callee=r,!t||"Import"!==r.type&&"ImportExpression"!==r.type||this.raise(CR.ImportCallNotNewExpression,r)},r.parseTemplateElement=function(e){var t=this.state,r=t.start,a=t.startLoc,n=t.end,s=t.value,o=r+1,i=this.startNodeAt(fR(a,1));null===s&&(e||this.raise(CR.InvalidEscapeSequenceTemplate,fR(this.state.firstInvalidTemplateEscapePos,1)));var d=this.match(24),u=d?-1:-2,c=n+u;i.value={raw:this.input.slice(o,c).replace(/\r\n?/g,"\n"),cooked:null===s?null:s.slice(1,u)},i.tail=d,this.next();var l=this.finishNode(i,"TemplateElement");return this.resetEndLocation(l,fR(this.state.lastTokEndLoc,u)),l},r.parseTemplate=function(e){for(var t=this.startNode(),r=this.parseTemplateElement(e),a=[r],n=[];!r.tail;)n.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),a.push(r=this.parseTemplateElement(e));return t.expressions=n,t.quasis=a,this.finishNode(t,"TemplateLiteral")},r.parseTemplateSubstitution=function(){return this.parseExpression()},r.parseObjectLike=function(e,t,r,a){r&&this.expectPlugin("recordAndTuple");var n=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;var s=Object.create(null),o=!0,i=this.startNode();for(i.properties=[],this.next();!this.match(e);){if(o)o=!1;else if(this.expect(12),this.match(e)){this.addTrailingCommaExtraToNode(i);break}var d=void 0;t?d=this.parseBindingProperty():(d=this.parsePropertyDefinition(a),this.checkProto(d,r,s,a)),r&&!this.isObjectProperty(d)&&"SpreadElement"!==d.type&&this.raise(CR.InvalidRecordProperty,d),d.shorthand&&this.addExtra(d,"shorthand",!0),i.properties.push(d)}this.next(),this.state.inFSharpPipelineDirectBody=n;var u="ObjectExpression";return t?u="ObjectPattern":r&&(u="RecordExpression"),this.finishNode(i,u)},r.addTrailingCommaExtraToNode=function(e){this.addExtra(e,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(e,"trailingCommaLoc",this.state.lastTokStartLoc,!1)},r.maybeAsyncOrAccessorProp=function(e){return!e.computed&&"Identifier"===e.key.type&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))},r.parsePropertyDefinition=function(e){var t=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(CR.UnsupportedPropertyDecorator,this.state.startLoc);this.match(26);)t.push(this.parseDecorator());var r,a=this.startNode(),n=!1,s=!1;if(this.match(21))return t.length&&this.unexpected(),this.parseSpread();t.length&&(a.decorators=t,t=[]),a.method=!1,e&&(r=this.state.startLoc);var o=this.eat(55);this.parsePropertyNamePrefixOperator(a);var i=this.state.containsEsc;if(this.parsePropertyName(a,e),!o&&!i&&this.maybeAsyncOrAccessorProp(a)){var d=a.key,u=d.name;"async"!==u||this.hasPrecedingLineBreak()||(n=!0,this.resetPreviousNodeTrailingComments(d),o=this.eat(55),this.parsePropertyName(a)),"get"!==u&&"set"!==u||(s=!0,this.resetPreviousNodeTrailingComments(d),a.kind=u,this.match(55)&&(o=!0,this.raise(CR.AccessorIsGenerator,this.state.curPosition(),{kind:u}),this.next()),this.parsePropertyName(a))}return this.parseObjPropValue(a,r,o,n,!1,s,e)},r.getGetterSetterExpectedParamCount=function(e){return"get"===e.kind?0:1},r.getObjectOrClassMethodParams=function(e){return e.params},r.checkGetterSetterParams=function(e){var t,r=this.getGetterSetterExpectedParamCount(e),a=this.getObjectOrClassMethodParams(e);a.length!==r&&this.raise("get"===e.kind?CR.BadGetterArity:CR.BadSetterArity,e),"set"===e.kind&&"RestElement"===(null==(t=a[a.length-1])?void 0:t.type)&&this.raise(CR.BadSetterRestParameter,e)},r.parseObjectMethod=function(e,t,r,a,n){if(n){var s=this.parseMethod(e,t,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(s),s}if(r||t||this.match(10))return a&&this.unexpected(),e.kind="method",e.method=!0,this.parseMethod(e,t,r,!1,!1,"ObjectMethod")},r.parseObjectProperty=function(e,t,r,a){if(e.shorthand=!1,this.eat(14))return e.value=r?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowIn(a),this.finishNode(e,"ObjectProperty");if(!e.computed&&"Identifier"===e.key.type){if(this.checkReservedWord(e.key.name,e.key.loc.start,!0,!1),r)e.value=this.parseMaybeDefault(t,lD(e.key));else if(this.match(29)){var n=this.state.startLoc;null!=a?null===a.shorthandAssignLoc&&(a.shorthandAssignLoc=n):this.raise(CR.InvalidCoverInitializedName,n),e.value=this.parseMaybeDefault(t,lD(e.key))}else e.value=lD(e.key);return e.shorthand=!0,this.finishNode(e,"ObjectProperty")}},r.parseObjPropValue=function(e,t,r,a,n,s,o){var i=this.parseObjectMethod(e,r,a,n,s)||this.parseObjectProperty(e,t,n,o);return i||this.unexpected(),i},r.parsePropertyName=function(e,t){if(this.eat(0))e.computed=!0,e.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{var r,a=this.state,n=a.type,s=a.value;if(rE(n))r=this.parseIdentifier(!0);else switch(n){case 135:r=this.parseNumericLiteral(s);break;case 134:r=this.parseStringLiteral(s);break;case 136:r=this.parseBigIntLiteral(s);break;case 139:var o=this.state.startLoc;null!=t?null===t.privateKeyLoc&&(t.privateKeyLoc=o):this.raise(CR.UnexpectedPrivateField,o),r=this.parsePrivateName();break;default:if(137===n){r=this.parseDecimalLiteral(s);break}this.unexpected()}e.key=r,139!==n&&(e.computed=!1)}},r.initFunction=function(e,t){e.id=null,e.generator=!1,e.async=t},r.parseMethod=function(e,t,r,a,n,s,o){void 0===o&&(o=!1),this.initFunction(e,r),e.generator=t,this.scope.enter(DE.FUNCTION|DE.SUPER|(o?DE.CLASS:0)|(n?DE.DIRECT_SUPER:0)),this.prodParam.enter(sD(r,e.generator)),this.parseFunctionParams(e,a);var i=this.parseFunctionBodyAndFinish(e,s,!0);return this.prodParam.exit(),this.scope.exit(),i},r.parseArrayLike=function(e,t,r,a){r&&this.expectPlugin("recordAndTuple");var n=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;var s=this.startNode();return this.next(),s.elements=this.parseExprList(e,!r,a,s),this.state.inFSharpPipelineDirectBody=n,this.finishNode(s,r?"TupleExpression":"ArrayExpression")},r.parseArrowExpression=function(e,t,r,a){this.scope.enter(DE.FUNCTION|DE.ARROW);var n=sD(r,!1);!this.match(5)&&this.prodParam.hasIn&&(n|=aD.PARAM_IN),this.prodParam.enter(n),this.initFunction(e,r);var s=this.state.maybeInArrowParameters;return t&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(e,t,a)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(e,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=s,this.finishNode(e,"ArrowFunctionExpression")},r.setArrowFunctionParameters=function(e,t,r){this.toAssignableList(t,r,!1),e.params=t},r.parseFunctionBodyAndFinish=function(e,t,r){return void 0===r&&(r=!1),this.parseFunctionBody(e,!1,r),this.finishNode(e,t)},r.parseFunctionBody=function(e,t,r){var a=this;void 0===r&&(r=!1);var n=t&&!this.match(5);if(this.expressionScope.enter(rD()),n)e.body=this.parseMaybeAssign(),this.checkParams(e,!1,t,!1);else{var s=this.state.strict,o=this.state.labels;this.state.labels=[],this.prodParam.enter(this.prodParam.currentFlags()|aD.PARAM_RETURN),e.body=this.parseBlock(!0,!1,(function(n){var o=!a.isSimpleParamList(e.params);n&&o&&a.raise(CR.IllegalLanguageModeDirective,"method"!==e.kind&&"constructor"!==e.kind||!e.key?e:e.key.loc.end);var i=!s&&a.state.strict;a.checkParams(e,!a.state.strict&&!t&&!r&&!o,t,i),a.state.strict&&e.id&&a.checkIdentifier(e.id,wE.TYPE_OUTSIDE,i)})),this.prodParam.exit(),this.state.labels=o}this.expressionScope.exit()},r.isSimpleParameter=function(e){return"Identifier"===e.type},r.isSimpleParamList=function(e){for(var t=0,r=e.length;t10)&&EE(e))if(r&&ko(e))this.raise(CR.UnexpectedKeyword,t,{keyword:e});else if((this.state.strict?a?To:Co:Ao)(e,this.inModule))this.raise(CR.UnexpectedReservedWord,t,{reservedWord:e});else if("yield"===e){if(this.prodParam.hasYield)return void this.raise(CR.YieldBindingIdentifier,t)}else if("await"===e){if(this.prodParam.hasAwait)return void this.raise(CR.AwaitBindingIdentifier,t);if(this.scope.inStaticBlock)return void this.raise(CR.AwaitBindingIdentifierInStaticBlock,t);this.expressionScope.recordAsyncArrowParametersError(t)}else if("arguments"===e&&this.scope.inClassAndNotInNonArrowFunction)return void this.raise(CR.ArgumentsInClass,t)},r.recordAwaitIfAllowed=function(){var e=this.prodParam.hasAwait||this.options.allowAwaitOutsideFunction&&!this.scope.inFunction;return e&&!this.scope.inFunction&&(this.state.hasTopLevelAwait=!0),e},r.parseAwait=function(e){var t=this.startNodeAt(e);return this.expressionScope.recordParameterInitializerError(CR.AwaitExpressionFormalParameter,t),this.eat(55)&&this.raise(CR.ObsoleteAwaitStar,t),this.scope.inFunction||this.options.allowAwaitOutsideFunction||(this.isAmbiguousAwait()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(t.argument=this.parseMaybeUnary(null,!0)),this.finishNode(t,"AwaitExpression")},r.isAmbiguousAwait=function(){if(this.hasPrecedingLineBreak())return!0;var e=this.state.type;return 53===e||10===e||0===e||bE(e)||102===e&&!this.state.containsEsc||138===e||56===e||this.hasPlugin("v8intrinsic")&&54===e},r.parseYield=function(){var e=this.startNode();this.expressionScope.recordParameterInitializerError(CR.YieldInParameter,e),this.next();var t=!1,r=null;if(!this.hasPrecedingLineBreak())switch(t=this.eat(55),this.state.type){case 13:case 140:case 8:case 11:case 3:case 9:case 14:case 12:if(!t)break;default:r=this.parseMaybeAssign()}return e.delegate=t,e.argument=r,this.finishNode(e,"YieldExpression")},r.parseImportCall=function(e){if(this.next(),e.source=this.parseMaybeAssignAllowIn(),e.options=null,this.eat(12)&&!this.match(11)&&(e.options=this.parseMaybeAssignAllowIn(),this.eat(12)&&!this.match(11))){do{this.parseMaybeAssignAllowIn()}while(this.eat(12)&&!this.match(11));this.raise(CR.ImportCallArity,e)}return this.expect(11),this.finishNode(e,"ImportExpression")},r.checkPipelineAtInfixOperator=function(e,t){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&"SequenceExpression"===e.type&&this.raise(CR.PipelineHeadSequenceExpression,t)},r.parseSmartPipelineBodyInStyle=function(e,t){if(this.isSimpleReference(e)){var r=this.startNodeAt(t);return r.callee=e,this.finishNode(r,"PipelineBareFunction")}var a=this.startNodeAt(t);return this.checkSmartPipeTopicBodyEarlyErrors(t),a.expression=e,this.finishNode(a,"PipelineTopicExpression")},r.isSimpleReference=function(e){switch(e.type){case"MemberExpression":return!e.computed&&this.isSimpleReference(e.object);case"Identifier":return!0;default:return!1}},r.checkSmartPipeTopicBodyEarlyErrors=function(e){if(this.match(19))throw this.raise(CR.PipelineBodyNoArrow,this.state.startLoc);this.topicReferenceWasUsedInCurrentContext()||this.raise(CR.PipelineTopicUnused,e)},r.withTopicBindingContext=function(e){var t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}},r.withSmartMixTopicForbiddingContext=function(e){if(!this.hasPlugin(["pipelineOperator",{proposal:"smart"}]))return e();var t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}},r.withSoloAwaitPermittingContext=function(e){var t=this.state.soloAwait;this.state.soloAwait=!0;try{return e()}finally{this.state.soloAwait=t}},r.allowInAnd=function(e){var t=this.prodParam.currentFlags();if(aD.PARAM_IN&~t){this.prodParam.enter(t|aD.PARAM_IN);try{return e()}finally{this.prodParam.exit()}}return e()},r.disallowInAnd=function(e){var t=this.prodParam.currentFlags();if(aD.PARAM_IN&t){this.prodParam.enter(t&~aD.PARAM_IN);try{return e()}finally{this.prodParam.exit()}}return e()},r.registerTopicReference=function(){this.state.topicContext.maxTopicIndex=0},r.topicReferenceIsAllowedInCurrentContext=function(){return this.state.topicContext.maxNumOfResolvableTopics>=1},r.topicReferenceWasUsedInCurrentContext=function(){return null!=this.state.topicContext.maxTopicIndex&&this.state.topicContext.maxTopicIndex>=0},r.parseFSharpPipelineBody=function(e){var t=this.state.startLoc;this.state.potentialArrowAt=this.state.start;var r=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;var a=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),t,e);return this.state.inFSharpPipelineDirectBody=r,a},r.parseModuleExpression=function(){this.expectPlugin("moduleBlocks");var e=this.startNode();this.next(),this.match(5)||this.unexpected(null,5);var t=this.startNodeAt(this.state.endLoc);this.next();var r=this.initializeScopes(!0);this.enterInitialScopes();try{e.body=this.parseProgram(t,8,"module")}finally{r()}return this.finishNode(e,"ModuleExpression")},r.parsePropertyNamePrefixOperator=function(e){},l(t)}(ID),sw={kind:WE.Loop},ow={kind:WE.Switch},iw={Expression:0,Declaration:1,HangingDeclaration:2,NullableId:4,Async:8},dw={StatementOnly:0,AllowImportExport:1,AllowDeclaration:2,AllowFunctionDeclaration:4,AllowLabeledFunction:8},uw=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,cw=new RegExp("in(?:stanceof)?","y");function lw(e,t,r){for(var a=0;a0)for(var a=0,n=Array.from(this.scope.undefinedExports);a0?("boolean"!==typeof this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(CR.DecoratorsBeforeAfterExport,t.decorators[0]),(a=t.decorators).unshift.apply(a,e)):t.decorators=e,this.resetStartLocationFromNode(t,e[0]),r&&this.resetStartLocationFromNode(r,t));return t},r.canHaveLeadingDecorator=function(){return this.match(80)},r.parseDecorators=function(e){var t=[];do{t.push(this.parseDecorator())}while(this.match(26));if(this.match(82))e||this.unexpected(),this.decoratorsEnabledBeforeExport()||this.raise(CR.DecoratorExportClass,this.state.startLoc);else if(!this.canHaveLeadingDecorator())throw this.raise(CR.UnexpectedLeadingDecorator,this.state.startLoc);return t},r.parseDecorator=function(){this.expectOnePlugin(["decorators","decorators-legacy"]);var e=this.startNode();if(this.next(),this.hasPlugin("decorators")){var t,r=this.state.startLoc;if(this.match(10)){var a=this.state.startLoc;this.next(),t=this.parseExpression(),this.expect(11),t=this.wrapParenthesis(a,t);var n=this.state.startLoc;e.expression=this.parseMaybeDecoratorArguments(t),!1===this.getPluginOption("decorators","allowCallParenthesized")&&e.expression!==t&&this.raise(CR.DecoratorArgumentsOutsideParentheses,n)}else{for(t=this.parseIdentifier(!1);this.eat(16);){var s=this.startNodeAt(r);s.object=t,this.match(139)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),s.property=this.parsePrivateName()):s.property=this.parseIdentifier(!0),s.computed=!1,t=this.finishNode(s,"MemberExpression")}e.expression=this.parseMaybeDecoratorArguments(t)}}else e.expression=this.parseExprSubscripts();return this.finishNode(e,"Decorator")},r.parseMaybeDecoratorArguments=function(e){if(this.eat(10)){var t=this.startNodeAtNode(e);return t.callee=e,t.arguments=this.parseCallExpressionArguments(11),this.toReferencedList(t.arguments),this.finishNode(t,"CallExpression")}return e},r.parseBreakContinueStatement=function(e,t){return this.next(),this.isLineTerminator()?e.label=null:(e.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(e,t),this.finishNode(e,t?"BreakStatement":"ContinueStatement")},r.verifyBreakContinue=function(e,t){var r;for(r=0;r=0;i--){var d=this.state.labels[i];if(d.statementStart!==e.start)break;d.statementStart=this.sourceToOffsetPos(this.state.start),d.kind=o}return this.state.labels.push({name:t,kind:o,statementStart:this.sourceToOffsetPos(this.state.start)}),e.body=a&dw.AllowLabeledFunction?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),e.label=r,this.finishNode(e,"LabeledStatement")},r.parseExpressionStatement=function(e,t,r){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},r.parseBlock=function(e,t,r){void 0===e&&(e=!1),void 0===t&&(t=!0);var a=this.startNode();return e&&this.state.strictErrors.clear(),this.expect(5),t&&this.scope.enter(DE.OTHER),this.parseBlockBody(a,e,!1,8,r),t&&this.scope.exit(),this.finishNode(a,"BlockStatement")},r.isValidDirective=function(e){return"ExpressionStatement"===e.type&&"StringLiteral"===e.expression.type&&!e.expression.extra.parenthesized},r.parseBlockBody=function(e,t,r,a,n){var s=e.body=[],o=e.directives=[];this.parseBlockOrModuleBlockBody(s,t?o:void 0,r,a,n)},r.parseBlockOrModuleBlockBody=function(e,t,r,a,n){for(var s=this.state.strict,o=!1,i=!1;!this.match(a);){var d=r?this.parseModuleItem():this.parseStatementListItem();if(t&&!i){if(this.isValidDirective(d)){var u=this.stmtToDirective(d);t.push(u),o||"use strict"!==u.value.value||(o=!0,this.setStrict(!0));continue}i=!0,this.state.strictErrors.clear()}e.push(d)}null==n||n.call(this,o),s||this.setStrict(!1),this.next()},r.parseFor=function(e,t){var r=this;return e.init=t,this.semicolon(!1),e.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),e.update=this.match(11)?null:this.parseExpression(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext((function(){return r.parseStatement()})),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,"ForStatement")},r.parseForIn=function(e,t,r){var a=this,n=this.match(58);return this.next(),n?null!==r&&this.unexpected(r):e.await=null!==r,"VariableDeclaration"!==t.type||null==t.declarations[0].init||n&&this.options.annexB&&!this.state.strict&&"var"===t.kind&&"Identifier"===t.declarations[0].id.type||this.raise(CR.ForInOfLoopInitializer,t,{type:n?"ForInStatement":"ForOfStatement"}),"AssignmentPattern"===t.type&&this.raise(CR.InvalidLhs,t,{ancestor:{type:"ForStatement"}}),e.left=t,e.right=n?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext((function(){return a.parseStatement()})),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,n?"ForInStatement":"ForOfStatement")},r.parseVar=function(e,t,r,a){void 0===a&&(a=!1);var n=e.declarations=[];for(e.kind=r;;){var s=this.startNode();if(this.parseVarId(s,r),s.init=this.eat(29)?t?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,null!==s.init||a||("Identifier"===s.id.type||t&&(this.match(58)||this.isContextual(102))?"const"!==r&&"using"!==r&&"await using"!==r||this.match(58)||this.isContextual(102)||this.raise(CR.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:r}):this.raise(CR.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"})),n.push(this.finishNode(s,"VariableDeclarator")),!this.eat(12))break}return e},r.parseVarId=function(e,t){var r=this.parseBindingAtom();"using"!==t&&"await using"!==t||"ArrayPattern"!==r.type&&"ObjectPattern"!==r.type||this.raise(CR.UsingDeclarationHasBindingPattern,r.loc.start),this.checkLVal(r,{type:"VariableDeclarator"},"var"===t?wE.TYPE_VAR:wE.TYPE_LEXICAL),e.id=r},r.parseAsyncFunctionExpression=function(e){return this.parseFunction(e,iw.Async)},r.parseFunction=function(e,t){var r=this;void 0===t&&(t=iw.Expression);var a=t&iw.HangingDeclaration,n=!!(t&iw.Declaration),s=n&&!(t&iw.NullableId),o=!!(t&iw.Async);this.initFunction(e,o),this.match(55)&&(a&&this.raise(CR.GeneratorInSingleStatementContext,this.state.startLoc),this.next(),e.generator=!0),n&&(e.id=this.parseFunctionId(s));var i=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(DE.FUNCTION),this.prodParam.enter(sD(o,e.generator)),n||(e.id=this.parseFunctionId()),this.parseFunctionParams(e,!1),this.withSmartMixTopicForbiddingContext((function(){r.parseFunctionBodyAndFinish(e,n?"FunctionDeclaration":"FunctionExpression")})),this.prodParam.exit(),this.scope.exit(),n&&!a&&this.registerFunctionStatementId(e),this.state.maybeInArrowParameters=i,e},r.parseFunctionId=function(e){return e||eE(this.state.type)?this.parseIdentifier():null},r.parseFunctionParams=function(e,t){this.expect(10),this.expressionScope.enter(ZE()),e.params=this.parseBindingList(11,41,_D.IS_FUNCTION_PARAMS|(t?_D.IS_CONSTRUCTOR_PARAMS:0)),this.expressionScope.exit()},r.registerFunctionStatementId=function(e){e.id&&this.scope.declareName(e.id.name,!this.options.annexB||this.state.strict||e.generator||e.async?this.scope.treatFunctionsAsVar?wE.TYPE_VAR:wE.TYPE_LEXICAL:wE.TYPE_FUNCTION,e.id.loc.start)},r.parseClass=function(e,t,r){this.next();var a=this.state.strict;return this.state.strict=!0,this.parseClassId(e,t,r),this.parseClassSuper(e),e.body=this.parseClassBody(!!e.superClass,a),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")},r.isClassProperty=function(){return this.match(29)||this.match(13)||this.match(8)},r.isClassMethod=function(){return this.match(10)},r.nameIsConstructor=function(e){return"Identifier"===e.type&&"constructor"===e.name||"StringLiteral"===e.type&&"constructor"===e.value},r.isNonstaticConstructor=function(e){return!e.computed&&!e.static&&this.nameIsConstructor(e.key)},r.parseClassBody=function(e,t){var r=this;this.classScope.enter();var a={hadConstructor:!1,hadSuperClass:e},n=[],s=this.startNode();if(s.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext((function(){for(;!r.match(8);)if(r.eat(13)){if(n.length>0)throw r.raise(CR.DecoratorSemicolon,r.state.lastTokEndLoc)}else if(r.match(26))n.push(r.parseDecorator());else{var e=r.startNode();n.length&&(e.decorators=n,r.resetStartLocationFromNode(e,n[0]),n=[]),r.parseClassMember(s,e,a),"constructor"===e.kind&&e.decorators&&e.decorators.length>0&&r.raise(CR.DecoratorConstructor,e)}})),this.state.strict=t,this.next(),n.length)throw this.raise(CR.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(s,"ClassBody")},r.parseClassMemberFromModifier=function(e,t){var r=this.parseIdentifier(!0);if(this.isClassMethod()){var a=t;return a.kind="method",a.computed=!1,a.key=r,a.static=!1,this.pushClassMethod(e,a,!1,!1,!1,!1),!0}if(this.isClassProperty()){var n=t;return n.computed=!1,n.key=r,n.static=!1,e.body.push(this.parseClassProperty(n)),!0}return this.resetPreviousNodeTrailingComments(r),!1},r.parseClassMember=function(e,t,r){var a=this.isContextual(106);if(a){if(this.parseClassMemberFromModifier(e,t))return;if(this.eat(5))return void this.parseClassStaticBlock(e,t)}this.parseClassMemberWithIsStatic(e,t,r,a)},r.parseClassMemberWithIsStatic=function(e,t,r,a){var n=t,s=t,o=t,i=t,d=t,u=n,c=n;if(t.static=a,this.parsePropertyNamePrefixOperator(t),this.eat(55)){u.kind="method";var l=this.match(139);return this.parseClassElementName(u),l?void this.pushClassPrivateMethod(e,s,!0,!1):(this.isNonstaticConstructor(n)&&this.raise(CR.ConstructorIsGenerator,n.key),void this.pushClassMethod(e,n,!0,!1,!1,!1))}var p=!this.state.containsEsc&&eE(this.state.type),f=this.parseClassElementName(t),g=p?f.name:null,m=this.isPrivateName(f),h=this.state.startLoc;if(this.parsePostMemberNameModifiers(c),this.isClassMethod()){if(u.kind="method",m)return void this.pushClassPrivateMethod(e,s,!1,!1);var y=this.isNonstaticConstructor(n),b=!1;y&&(n.kind="constructor",r.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(CR.DuplicateConstructor,f),y&&this.hasPlugin("typescript")&&t.override&&this.raise(CR.OverrideOnConstructor,f),r.hadConstructor=!0,b=r.hadSuperClass),this.pushClassMethod(e,n,!1,!1,y,b)}else if(this.isClassProperty())m?this.pushClassPrivateProperty(e,i):this.pushClassProperty(e,o);else if("async"!==g||this.isLineTerminator())if("get"!==g&&"set"!==g||this.match(55)&&this.isLineTerminator())if("accessor"!==g||this.isLineTerminator())this.isLineTerminator()?m?this.pushClassPrivateProperty(e,i):this.pushClassProperty(e,o):this.unexpected();else{this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(f);var v=this.match(139);this.parseClassElementName(o),this.pushClassAccessorProperty(e,d,v)}else{this.resetPreviousNodeTrailingComments(f),u.kind=g;var x=this.match(139);this.parseClassElementName(n),x?this.pushClassPrivateMethod(e,s,!1,!1):(this.isNonstaticConstructor(n)&&this.raise(CR.ConstructorIsAccessor,n.key),this.pushClassMethod(e,n,!1,!1,!1,!1)),this.checkGetterSetterParams(n)}else{this.resetPreviousNodeTrailingComments(f);var R=this.eat(55);c.optional&&this.unexpected(h),u.kind="method";var E=this.match(139);this.parseClassElementName(u),this.parsePostMemberNameModifiers(c),E?this.pushClassPrivateMethod(e,s,R,!0):(this.isNonstaticConstructor(n)&&this.raise(CR.ConstructorIsAsync,n.key),this.pushClassMethod(e,n,R,!0,!1,!1))}},r.parseClassElementName=function(e){var t=this.state,r=t.type,a=t.value;if(132!==r&&134!==r||!e.static||"prototype"!==a||this.raise(CR.StaticPrototype,this.state.startLoc),139===r){"constructor"===a&&this.raise(CR.ConstructorClassPrivateField,this.state.startLoc);var n=this.parsePrivateName();return e.key=n,n}return this.parsePropertyName(e),e.key},r.parseClassStaticBlock=function(e,t){var r;this.scope.enter(DE.CLASS|DE.STATIC_BLOCK|DE.SUPER);var a=this.state.labels;this.state.labels=[],this.prodParam.enter(aD.PARAM);var n=t.body=[];this.parseBlockOrModuleBlockBody(n,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=a,e.body.push(this.finishNode(t,"StaticBlock")),null!=(r=t.decorators)&&r.length&&this.raise(CR.DecoratorStaticBlock,t)},r.pushClassProperty=function(e,t){!t.computed&&this.nameIsConstructor(t.key)&&this.raise(CR.ConstructorClassField,t.key),e.body.push(this.parseClassProperty(t))},r.pushClassPrivateProperty=function(e,t){var r=this.parseClassPrivateProperty(t);e.body.push(r),this.classScope.declarePrivateName(this.getPrivateNameSV(r.key),jE.OTHER,r.key.loc.start)},r.pushClassAccessorProperty=function(e,t,r){r||t.computed||!this.nameIsConstructor(t.key)||this.raise(CR.ConstructorClassField,t.key);var a=this.parseClassAccessorProperty(t);e.body.push(a),r&&this.classScope.declarePrivateName(this.getPrivateNameSV(a.key),jE.OTHER,a.key.loc.start)},r.pushClassMethod=function(e,t,r,a,n,s){e.body.push(this.parseMethod(t,r,a,n,s,"ClassMethod",!0))},r.pushClassPrivateMethod=function(e,t,r,a){var n=this.parseMethod(t,r,a,!1,!1,"ClassPrivateMethod",!0);e.body.push(n);var s="get"===n.kind?n.static?jE.STATIC_GETTER:jE.INSTANCE_GETTER:"set"===n.kind?n.static?jE.STATIC_SETTER:jE.INSTANCE_SETTER:jE.OTHER;this.declareClassPrivateMethodInScope(n,s)},r.declareClassPrivateMethodInScope=function(e,t){this.classScope.declarePrivateName(this.getPrivateNameSV(e.key),t,e.key.loc.start)},r.parsePostMemberNameModifiers=function(e){},r.parseClassPrivateProperty=function(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassPrivateProperty")},r.parseClassProperty=function(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassProperty")},r.parseClassAccessorProperty=function(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassAccessorProperty")},r.parseInitializer=function(e){this.scope.enter(DE.CLASS|DE.SUPER),this.expressionScope.enter(rD()),this.prodParam.enter(aD.PARAM),e.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()},r.parseClassId=function(e,t,r,a){if(void 0===a&&(a=wE.TYPE_CLASS),eE(this.state.type))e.id=this.parseIdentifier(),t&&this.declareNameFromIdentifier(e.id,a);else{if(!r&&t)throw this.raise(CR.MissingClassName,this.state.startLoc);e.id=null}},r.parseClassSuper=function(e){e.superClass=this.eat(81)?this.parseExprSubscripts():null},r.parseExport=function(e,t){var r=this.parseMaybeImportPhase(e,!0),a=this.maybeParseExportDefaultSpecifier(e,r),n=!a||this.eat(12),s=n&&this.eatExportStar(e),o=s&&this.maybeParseExportNamespaceSpecifier(e),i=n&&(!o||this.eat(12)),d=a||s;if(s&&!o){if(a&&this.unexpected(),t)throw this.raise(CR.UnsupportedDecoratorExport,e);return this.parseExportFrom(e,!0),this.finishNode(e,"ExportAllDeclaration")}var u,c=this.maybeParseExportNamedSpecifiers(e);if(a&&n&&!s&&!c&&this.unexpected(null,5),o&&i&&this.unexpected(null,98),d||c){if(u=!1,t)throw this.raise(CR.UnsupportedDecoratorExport,e);this.parseExportFrom(e,d)}else u=this.maybeParseExportDeclaration(e);if(d||c||u){var l,p=e;if(this.checkExport(p,!0,!1,!!p.source),"ClassDeclaration"===(null==(l=p.declaration)?void 0:l.type))this.maybeTakeDecorators(t,p.declaration,p);else if(t)throw this.raise(CR.UnsupportedDecoratorExport,e);return this.finishNode(p,"ExportNamedDeclaration")}if(this.eat(65)){var f=e,g=this.parseExportDefaultExpression();if(f.declaration=g,"ClassDeclaration"===g.type)this.maybeTakeDecorators(t,g,f);else if(t)throw this.raise(CR.UnsupportedDecoratorExport,e);return this.checkExport(f,!0,!0),this.finishNode(f,"ExportDefaultDeclaration")}this.unexpected(null,5)},r.eatExportStar=function(e){return this.eat(55)},r.maybeParseExportDefaultSpecifier=function(e,t){if(t||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",null==t?void 0:t.loc.start);var r=t||this.parseIdentifier(!0),a=this.startNodeAtNode(r);return a.exported=r,e.specifiers=[this.finishNode(a,"ExportDefaultSpecifier")],!0}return!1},r.maybeParseExportNamespaceSpecifier=function(e){if(this.isContextual(93)){var t;null!=(t=e).specifiers||(t.specifiers=[]);var r=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),r.exported=this.parseModuleExportName(),e.specifiers.push(this.finishNode(r,"ExportNamespaceSpecifier")),!0}return!1},r.maybeParseExportNamedSpecifiers=function(e){if(this.match(5)){var t,r=e;r.specifiers||(r.specifiers=[]);var a="type"===r.exportKind;return(t=r.specifiers).push.apply(t,this.parseExportSpecifiers(a)),r.source=null,r.declaration=null,this.hasPlugin("importAssertions")&&(r.assertions=[]),!0}return!1},r.maybeParseExportDeclaration=function(e){return!!this.shouldParseExportDeclaration()&&(e.specifiers=[],e.source=null,this.hasPlugin("importAssertions")&&(e.assertions=[]),e.declaration=this.parseExportDeclaration(e),!0)},r.isAsyncFunction=function(){if(!this.isContextual(95))return!1;var e=this.nextTokenInLineStart();return this.isUnparsedContextual(e,"function")},r.parseExportDefaultExpression=function(){var e=this.startNode();if(this.match(68))return this.next(),this.parseFunction(e,iw.Declaration|iw.NullableId);if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(e,iw.Declaration|iw.NullableId|iw.Async);if(this.match(80))return this.parseClass(e,!0,!0);if(this.match(26))return this.hasPlugin("decorators")&&!0===this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(CR.DecoratorBeforeExport,this.state.startLoc),this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0);if(this.match(75)||this.match(74)||this.isLet())throw this.raise(CR.UnsupportedDefaultExport,this.state.startLoc);var t=this.parseMaybeAssignAllowIn();return this.semicolon(),t},r.parseExportDeclaration=function(e){return this.match(80)?this.parseClass(this.startNode(),!0,!1):this.parseStatementListItem()},r.isExportDefaultSpecifier=function(){var e=this.state.type;if(eE(e)){if(95===e&&!this.state.containsEsc||100===e)return!1;if((130===e||129===e)&&!this.state.containsEsc){var t=this.lookahead().type;if(eE(t)&&98!==t||5===t)return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;var r=this.nextTokenStart(),a=this.isUnparsedContextual(r,"from");if(44===this.input.charCodeAt(r)||eE(this.state.type)&&a)return!0;if(this.match(65)&&a){var n=this.input.charCodeAt(this.nextTokenStartSince(r+4));return 34===n||39===n}return!1},r.parseExportFrom=function(e,t){this.eatContextual(98)?(e.source=this.parseImportSource(),this.checkExport(e),this.maybeParseImportAttributes(e),this.checkJSONModuleImport(e)):t&&this.unexpected(),this.semicolon()},r.shouldParseExportDeclaration=function(){var e=this.state.type;return 26===e&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))?(!0===this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(CR.DecoratorBeforeExport,this.state.startLoc),!0):this.isContextual(107)||this.isContextual(96)&&this.startsAwaitUsing()?(this.raise(CR.UsingDeclarationExport,this.state.startLoc),!0):74===e||75===e||68===e||80===e||this.isLet()||this.isAsyncFunction()},r.checkExport=function(e,t,r,a){var n;if(t)if(r){if(this.checkDuplicateExports(e,"default"),this.hasPlugin("exportDefaultFrom")){var s,o=e.declaration;"Identifier"!==o.type||"from"!==o.name||o.end-o.start!==4||null!=(s=o.extra)&&s.parenthesized||this.raise(CR.ExportDefaultFromAsIdentifier,o)}}else if(null!=(n=e.specifiers)&&n.length)for(var i=0,d=e.specifiers;i0&&this.raise(CR.ImportReflectionHasAssertion,t[0].loc.start)}},r.checkJSONModuleImport=function(e){if(this.isJSONModuleImport(e)&&"ExportAllDeclaration"!==e.type){var t=e.specifiers;if(null!=t){var r=t.find((function(e){var t;if("ExportSpecifier"===e.type?t=e.local:"ImportSpecifier"===e.type&&(t=e.imported),void 0!==t)return"Identifier"===t.type?"default"!==t.name:"default"!==t.value}));void 0!==r&&this.raise(CR.ImportJSONBindingNotDefault,r.loc.start)}}},r.isPotentialImportPhase=function(e){return!e&&(this.isContextual(105)||this.isContextual(97)||this.isContextual(127))},r.applyImportPhase=function(e,t,r,a){t||("module"===r?(this.expectPlugin("importReflection",a),e.module=!0):this.hasPlugin("importReflection")&&(e.module=!1),"source"===r?(this.expectPlugin("sourcePhaseImports",a),e.phase="source"):"defer"===r?(this.expectPlugin("deferredImportEvaluation",a),e.phase="defer"):this.hasPlugin("sourcePhaseImports")&&(e.phase=null))},r.parseMaybeImportPhase=function(e,t){if(!this.isPotentialImportPhase(t))return this.applyImportPhase(e,t,null),null;var r=this.parseIdentifier(!0),a=this.state.type;return(rE(a)?98!==a||102===this.lookaheadCharCode():12!==a)?(this.resetPreviousIdentifierLeadingComments(r),this.applyImportPhase(e,t,r.name,r.loc.start),null):(this.applyImportPhase(e,t,null),r)},r.isPrecedingIdImportPhase=function(e){var t=this.state.type;return eE(t)?98!==t||102===this.lookaheadCharCode():12!==t},r.parseImport=function(e){return this.match(134)?this.parseImportSourceAndAttributes(e):this.parseImportSpecifiersAndAfter(e,this.parseMaybeImportPhase(e,!1))},r.parseImportSpecifiersAndAfter=function(e,t){e.specifiers=[];var r=!this.maybeParseDefaultImportSpecifier(e,t)||this.eat(12),a=r&&this.maybeParseStarImportSpecifier(e);return r&&!a&&this.parseNamedImportSpecifiers(e),this.expectContextual(98),this.parseImportSourceAndAttributes(e)},r.parseImportSourceAndAttributes=function(e){return null!=e.specifiers||(e.specifiers=[]),e.source=this.parseImportSource(),this.maybeParseImportAttributes(e),this.checkImportReflection(e),this.checkJSONModuleImport(e),this.semicolon(),this.finishNode(e,"ImportDeclaration")},r.parseImportSource=function(){return this.match(134)||this.unexpected(),this.parseExprAtom()},r.parseImportSpecifierLocal=function(e,t,r){t.local=this.parseIdentifier(),e.specifiers.push(this.finishImportSpecifier(t,r))},r.finishImportSpecifier=function(e,t,r){return void 0===r&&(r=wE.TYPE_LEXICAL),this.checkLVal(e.local,{type:t},r),this.finishNode(e,t)},r.parseImportAttributes=function(){this.expect(5);var e=[],t=new Set;do{if(this.match(8))break;var r=this.startNode(),a=this.state.value;if(t.has(a)&&this.raise(CR.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:a}),t.add(a),this.match(134)?r.key=this.parseStringLiteral(a):r.key=this.parseIdentifier(!0),this.expect(14),!this.match(134))throw this.raise(CR.ModuleAttributeInvalidValue,this.state.startLoc);r.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(r,"ImportAttribute"))}while(this.eat(12));return this.expect(8),e},r.parseModuleAttributes=function(){var e=[],t=new Set;do{var r=this.startNode();if(r.key=this.parseIdentifier(!0),"type"!==r.key.name&&this.raise(CR.ModuleAttributeDifferentFromType,r.key),t.has(r.key.name)&&this.raise(CR.ModuleAttributesWithDuplicateKeys,r.key,{key:r.key.name}),t.add(r.key.name),this.expect(14),!this.match(134))throw this.raise(CR.ModuleAttributeInvalidValue,this.state.startLoc);r.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(r,"ImportAttribute"))}while(this.eat(12));return e},r.maybeParseImportAttributes=function(e){var t,r=!1;if(this.match(76)){if(this.hasPrecedingLineBreak()&&40===this.lookaheadCharCode())return;this.next(),t=this.hasPlugin("moduleAttributes")?this.parseModuleAttributes():this.parseImportAttributes(),r=!0}else this.isContextual(94)&&!this.hasPrecedingLineBreak()?(this.hasPlugin("deprecatedImportAssert")||this.hasPlugin("importAssertions")||this.raise(CR.ImportAttributesUseAssert,this.state.startLoc),this.hasPlugin("importAssertions")||this.addExtra(e,"deprecatedAssertSyntax",!0),this.next(),t=this.parseImportAttributes()):t=[];!r&&this.hasPlugin("importAssertions")?e.assertions=t:e.attributes=t},r.maybeParseDefaultImportSpecifier=function(e,t){if(t){var r=this.startNodeAtNode(t);return r.local=t,e.specifiers.push(this.finishImportSpecifier(r,"ImportDefaultSpecifier")),!0}return!!rE(this.state.type)&&(this.parseImportSpecifierLocal(e,this.startNode(),"ImportDefaultSpecifier"),!0)},r.maybeParseStarImportSpecifier=function(e){if(this.match(55)){var t=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(e,t,"ImportNamespaceSpecifier"),!0}return!1},r.parseNamedImportSpecifiers=function(e){var t=!0;for(this.expect(5);!this.eat(8);){if(t)t=!1;else{if(this.eat(14))throw this.raise(CR.DestructureNamedImport,this.state.startLoc);if(this.expect(12),this.eat(8))break}var r=this.startNode(),a=this.match(134),n=this.isContextual(130);r.imported=this.parseModuleExportName();var s=this.parseImportSpecifier(r,a,"type"===e.importKind||"typeof"===e.importKind,n,void 0);e.specifiers.push(s)}},r.parseImportSpecifier=function(e,t,r,a,n){if(this.eatContextual(93))e.local=this.parseIdentifier();else{var s=e.imported;if(t)throw this.raise(CR.ImportBindingIsString,e,{importName:s.value});this.checkReservedWord(s.name,e.loc.start,!0,!0),e.local||(e.local=lD(s))}return this.finishImportSpecifier(e,"ImportSpecifier",n)},r.isThisParam=function(e){return"Identifier"===e.type&&"this"===e.name},l(t)}(nw),fw=function(e){function t(t,r,a){var n;return t=aw(t),(n=e.call(this,t,r)||this).options=t,n.initializeScopes(),n.plugins=a,n.filename=t.sourceFilename,n.startIndex=t.startIndex,n}g(t,e);var r=t.prototype;return r.getScopeHandler=function(){return SE},r.parse=function(){this.enterInitialScopes();var e=this.startNode(),t=this.startNode();return this.nextToken(),e.errors=null,this.parseTopLevel(e,t),e.errors=this.state.errors,e.comments.length=this.state.commentsLen,e},l(t)}(pw);function gw(e,t){var r;if("unambiguous"!==(null==(r=t)?void 0:r.sourceType))return bw(t,e).parse();t=Object.assign({},t);try{t.sourceType="module";var a=bw(t,e),n=a.parse();if(a.sawUnambiguousESM)return n;if(a.ambiguousScriptDifferentAst)try{return t.sourceType="script",bw(t,e).parse()}catch(s){}else n.program.sourceType="script";return n}catch(o){try{return t.sourceType="script",bw(t,e).parse()}catch(i){}throw o}}function mw(e,t){var r=bw(t,e);return r.options.strictMode&&(r.state.strict=!0),r.getExpression()}function hw(e){for(var t={},r=0,a=Object.keys(e);r!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g,Ow.matchToToken=function(e){var t={type:"invalid",value:e[0],closed:void 0};return e[1]?(t.type="string",t.closed=!(!e[3]&&!e[4])):e[5]?t.type="comment":e[6]?(t.type="comment",t.closed=!!e[7]):e[8]?t.type="regex":e[9]?t.type="number":e[10]?t.type="name":e[11]?t.type="punctuator":e[12]&&(t.type="whitespace"),t}),Ow}function Mw(e){return null!=e&&e&&"false"!==e&&"0"!==e}var Lw,Uw=(Mw(ve.env.BABEL_8_BREAKING),Nw()),qw=new Set(["as","async","from","get","of","set"]),Ww=/\r\n|[\n\r\u2028\u2029]/,Hw=/^[()[\]{}]$/,zw=/^[a-z][\w-]*$/i,Gw=function(e,t,r){if("name"===e.type){if(ko(e.value)||Co(e.value,!0)||qw.has(e.value))return"keyword";if(zw.test(e.value)&&("<"===r[t-1]||""),n.gutter(s),e.length>0?" "+e:"",l].join("")}return" "+n.gutter(s)+(e.length>0?" "+e:"")})).join("\n");return r.message&&!u&&(l=""+" ".repeat(c+1)+r.message+"\n"+l),a?n.reset(l):l}var Xw=Fe,$w=Le,Qw=xs,Zw=Ge,ej=Ra,tj=tt,rj=Pa,aj=ls,nj=Ye,sj=Ex,oj=Lx,ij=/^[_$A-Z0-9]+$/;function dj(e,t,r){var a=r.placeholderWhitelist,n=r.placeholderPattern,s=r.preserveComments,o=r.syntacticPlaceholders,i=lj(t,r.parser,o);sj(i,{preserveComments:s}),e.validate(i);var d={syntactic:{placeholders:[],placeholderNames:new Set},legacy:{placeholders:[],placeholderNames:new Set},placeholderWhitelist:a,placeholderPattern:n,syntacticPlaceholders:o};return oj(i,uj,d),Object.assign({ast:i},d.syntactic.placeholders.length?d.syntactic:d.legacy)}function uj(e,t,r){var a,n,s=r.syntactic.placeholders.length>0;if(rj(e)){if(!1===r.syntacticPlaceholders)throw new Error("%%foo%%-style placeholders can't be used when '.syntacticPlaceholders' is false.");n=e.name.name,s=!0}else{if(s||r.syntacticPlaceholders)return;if(Zw(e)||ej(e))n=e.name;else{if(!nj(e))return;n=e.value}}if(s&&(null!=r.placeholderPattern||null!=r.placeholderWhitelist))throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'");if(s||!1!==r.placeholderPattern&&(r.placeholderPattern||ij).test(n)||null!=(a=r.placeholderWhitelist)&&a.has(n)){var o,i=(t=t.slice())[t.length-1],d=i.node,u=i.key;nj(e)||rj(e,{expectedNode:"StringLiteral"})?o="string":tj(d)&&"arguments"===u||Xw(d)&&"arguments"===u||Qw(d)&&"params"===u?o="param":$w(d)&&!rj(e)?(o="statement",t=t.slice(0,-1)):o=aj(e)&&rj(e)?"statement":"other";var c=s?r.syntactic:r.legacy,l=c.placeholders,p=c.placeholderNames;l.push({name:n,type:o,resolve:function(e){return cj(e,t)},isDuplicate:p.has(n)}),p.add(n)}}function cj(e,t){for(var r=e,a=0;a1?a-1:0),o=1;o1)throw new Error("Unexpected extra params.");return Tj(Dj(e,t,dR(n,uR(s[0]))))}if(Array.isArray(t)){var i=r.get(t);return i||(i=wj(e,t,n),r.set(t,i)),Tj(i(s))}if("object"===typeof t&&t){if(s.length>0)throw new Error("Unexpected extra params.");return Sj(e,dR(n,uR(t)))}throw new Error("Unexpected template param "+typeof t)}),{ast:function(t){for(var r=arguments.length,s=new Array(r>1?r-1:0),o=1;o1)throw new Error("Unexpected extra params.");return Dj(e,t,dR(dR(n,uR(s[0])),Cj))()}if(Array.isArray(t)){var i=a.get(t);return i||(i=wj(e,t,dR(n,Cj)),a.set(t,i)),i(s)()}throw new Error("Unexpected template param "+typeof t)}})}function Tj(e){var t="";try{throw new Error}catch(jX){jX.stack&&(t=jX.stack.split("\n").slice(3).join("\n"))}return function(r){try{return e(r)}catch(a){throw a.stack+="\n =============\n"+t,a}}}var kj=Sj(rR),Pj=Sj(nR),Fj=Sj(aR),_j=Sj(sR),Ij=Sj(oR),Bj=Object.assign(kj.bind(void 0),{smart:kj,statement:Pj,statements:Fj,expression:_j,program:Ij,ast:kj.ast}),Oj=Object.freeze({__proto__:null,default:Bj,expression:_j,program:Ij,smart:kj,statement:Pj,statements:Fj});function Nj(e,t,r){return Object.freeze({minVersion:e,ast:function(){return Bj.program.ast(t,{preserveComments:!0})},metadata:r})}var Mj={__proto__:null,OverloadYield:Nj("7.18.14","function _OverloadYield(e,d){this.v=e,this.k=d}",{globals:[],locals:{_OverloadYield:["body.0.id"]},exportBindingAssignments:[],exportName:"_OverloadYield",dependencies:{}}),applyDecoratedDescriptor:Nj("7.0.0-beta.0",'function _applyDecoratedDescriptor(i,e,r,n,l){var a={};return Object.keys(n).forEach((function(i){a[i]=n[i]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=r.slice().reverse().reduce((function(r,n){return n(i,e,r)||r}),a),l&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(l):void 0,a.initializer=void 0),void 0===a.initializer?(Object.defineProperty(i,e,a),null):a}',{globals:["Object"],locals:{_applyDecoratedDescriptor:["body.0.id"]},exportBindingAssignments:[],exportName:"_applyDecoratedDescriptor",dependencies:{}}),applyDecs2311:Nj("7.24.0",'function applyDecs2311(e,t,n,r,o,i){var a,c,u,s,f,l,p,d=Symbol.metadata||Symbol.for("Symbol.metadata"),m=Object.defineProperty,h=Object.create,y=[h(null),h(null)],v=t.length;function g(t,n,r){return function(o,i){n&&(i=o,o=e);for(var a=0;a=0;O-=n?2:1){var T=b(h[O],"A decorator","be",!0),z=n?h[O-1]:void 0,A={},H={kind:["field","accessor","method","getter","setter","class"][o],name:r,metadata:a,addInitializer:function(e,t){if(e.v)throw new TypeError("attempted to call addInitializer after decoration was finished");b(t,"An initializer","be",!0),i.push(t)}.bind(null,A)};if(w)c=T.call(z,N,H),A.v=1,b(c,"class decorators","return")&&(N=c);else if(H.static=s,H.private=f,c=H.access={has:f?p.bind():function(e){return r in e}},j||(c.get=f?E?function(e){return d(e),P.value}:I("get",0,d):function(e){return e[r]}),E||S||(c.set=f?I("set",0,d):function(e,t){e[r]=t}),N=T.call(z,D?{get:P.get,set:P.set}:P[F],H),A.v=1,D){if("object"==typeof N&&N)(c=b(N.get,"accessor.get"))&&(P.get=c),(c=b(N.set,"accessor.set"))&&(P.set=c),(c=b(N.init,"accessor.init"))&&k.unshift(c);else if(void 0!==N)throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined")}else b(N,(l?"field":"method")+" decorators","return")&&(l?k.unshift(N):P[F]=N)}return o<2&&u.push(g(k,s,1),g(i,s,0)),l||w||(f?D?u.splice(-1,0,I("get",s),I("set",s)):u.push(E?P[F]:b.call.bind(P[F])):m(e,r,P)),N}function w(e){return m(e,d,{configurable:!0,enumerable:!0,value:a})}return void 0!==i&&(a=i[d]),a=h(null==a?null:a),f=[],l=function(e){e&&f.push(g(e))},p=function(t,r){for(var i=0;ir.length)&&(a=r.length);for(var e=0,n=Array(a);e=r.length?{done:!0}:{done:!1,value:r[n++]}},e:function(r){throw r},f:F}}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 o,a=!0,u=!1;return{s:function(){t=t.call(r)},n:function(){var r=t.next();return a=r.done,r},e:function(r){u=!0,o=r},f:function(){try{a||null==t.return||t.return()}finally{if(u)throw o}}}}',{globals:["Symbol","Array","TypeError"],locals:{_createForOfIteratorHelper:["body.0.id"]},exportBindingAssignments:[],exportName:"_createForOfIteratorHelper",dependencies:{unsupportedIterableToArray:["body.0.body.body.1.consequent.body.0.test.left.right.right.callee"]}}),createForOfIteratorHelperLoose:Nj("7.9.0",'function _createForOfIteratorHelperLoose(r,e){var t="undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(t)return(t=t.call(r)).next.bind(t);if(Array.isArray(r)||(t=unsupportedIterableToArray(r))||e&&r&&"number"==typeof r.length){t&&(r=t);var o=0;return function(){return o>=r.length?{done:!0}:{done:!1,value:r[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.")}',{globals:["Symbol","Array","TypeError"],locals:{_createForOfIteratorHelperLoose:["body.0.id"]},exportBindingAssignments:[],exportName:"_createForOfIteratorHelperLoose",dependencies:{unsupportedIterableToArray:["body.0.body.body.2.test.left.right.right.callee"]}}),createSuper:Nj("7.9.0","function _createSuper(t){var r=isNativeReflectConstruct();return function(){var e,o=getPrototypeOf(t);if(r){var s=getPrototypeOf(this).constructor;e=Reflect.construct(o,arguments,s)}else e=o.apply(this,arguments);return possibleConstructorReturn(this,e)}}",{globals:["Reflect"],locals:{_createSuper:["body.0.id"]},exportBindingAssignments:[],exportName:"_createSuper",dependencies:{getPrototypeOf:["body.0.body.body.1.argument.body.body.0.declarations.1.init.callee","body.0.body.body.1.argument.body.body.1.consequent.body.0.declarations.0.init.object.callee"],isNativeReflectConstruct:["body.0.body.body.0.declarations.0.init.callee"],possibleConstructorReturn:["body.0.body.body.1.argument.body.body.2.argument.callee"]}}),decorate:Nj("7.1.5",'function _decorate(e,r,t,i){var o=_getDecoratorsApi();if(i)for(var n=0;n=0;n--){var s=r[e.placement];s.splice(s.indexOf(e.key),1);var a=this.fromElementDescriptor(e),l=this.toElementFinisherExtras((0,o[n])(a)||a);e=l.element,this.addElementPlacement(e,r),l.finisher&&i.push(l.finisher);var c=l.extras;if(c){for(var p=0;p=0;i--){var o=this.fromClassDescriptor(e),n=this.toClassDescriptor((0,r[i])(o)||o);if(void 0!==n.finisher&&t.push(n.finisher),void 0!==n.elements){e=n.elements;for(var s=0;s1){for(var t=Array(n),f=0;f=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}',{globals:["Object","Symbol","Error","TypeError","isNaN","Promise"],locals:{_regeneratorRuntime:["body.0.id","body.0.body.body.0.expression.left"]},exportBindingAssignments:["body.0.body.body.0.expression"],exportName:"_regeneratorRuntime",dependencies:{}}),set:Nj("7.0.0-beta.0",'function set(e,r,t,o){return set="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(e,r,t,o){var f,i=superPropBase(e,r);if(i){if((f=Object.getOwnPropertyDescriptor(i,r)).set)return f.set.call(o,t),!0;if(!f.writable)return!1}if(f=Object.getOwnPropertyDescriptor(o,r)){if(!f.writable)return!1;f.value=t,Object.defineProperty(o,r,f)}else defineProperty(o,r,t);return!0},set(e,r,t,o)}function _set(e,r,t,o,f){if(!set(e,r,t,o||e)&&f)throw new TypeError("failed to set property");return t}',{globals:["Reflect","Object","TypeError"],locals:{set:["body.0.id","body.0.body.body.0.argument.expressions.1.callee","body.1.body.body.0.test.left.argument.callee","body.0.body.body.0.argument.expressions.0.left"],_set:["body.1.id"]},exportBindingAssignments:[],exportName:"_set",dependencies:{superPropBase:["body.0.body.body.0.argument.expressions.0.right.alternate.body.body.0.declarations.1.init.callee"],defineProperty:["body.0.body.body.0.argument.expressions.0.right.alternate.body.body.2.alternate.expression.callee"]}}),setFunctionName:Nj("7.23.6",'function setFunctionName(e,t,n){"symbol"==typeof t&&(t=(t=t.description)?"["+t+"]":"");try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+" "+t:t})}catch(e){}return e}',{globals:["Object"],locals:{setFunctionName:["body.0.id"]},exportBindingAssignments:[],exportName:"setFunctionName",dependencies:{}}),setPrototypeOf:Nj("7.0.0-beta.0","function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},_setPrototypeOf(t,e)}",{globals:["Object"],locals:{_setPrototypeOf:["body.0.id","body.0.body.body.0.argument.expressions.1.callee","body.0.body.body.0.argument.expressions.0.left"]},exportBindingAssignments:["body.0.body.body.0.argument.expressions.0"],exportName:"_setPrototypeOf",dependencies:{}}),skipFirstGeneratorNext:Nj("7.0.0-beta.0","function _skipFirstGeneratorNext(t){return function(){var r=t.apply(this,arguments);return r.next(),r}}",{globals:[],locals:{_skipFirstGeneratorNext:["body.0.id"]},exportBindingAssignments:[],exportName:"_skipFirstGeneratorNext",dependencies:{}}),slicedToArray:Nj("7.0.0-beta.0","function _slicedToArray(r,e){return arrayWithHoles(r)||iterableToArrayLimit(r,e)||unsupportedIterableToArray(r,e)||nonIterableRest()}",{globals:[],locals:{_slicedToArray:["body.0.id"]},exportBindingAssignments:[],exportName:"_slicedToArray",dependencies:{arrayWithHoles:["body.0.body.body.0.argument.left.left.left.callee"],iterableToArrayLimit:["body.0.body.body.0.argument.left.left.right.callee"],unsupportedIterableToArray:["body.0.body.body.0.argument.left.right.callee"],nonIterableRest:["body.0.body.body.0.argument.right.callee"]}}),superPropBase:Nj("7.0.0-beta.0","function _superPropBase(t,o){for(;!{}.hasOwnProperty.call(t,o)&&null!==(t=getPrototypeOf(t)););return t}",{globals:[],locals:{_superPropBase:["body.0.id"]},exportBindingAssignments:[],exportName:"_superPropBase",dependencies:{getPrototypeOf:["body.0.body.body.0.test.right.right.right.callee"]}}),superPropGet:Nj("7.25.0",'function _superPropGet(t,o,e,r){var p=get(getPrototypeOf(1&r?t.prototype:t),o,e);return 2&r&&"function"==typeof p?function(t){return p.apply(e,t)}:p}',{globals:[],locals:{_superPropGet:["body.0.id"]},exportBindingAssignments:[],exportName:"_superPropGet",dependencies:{get:["body.0.body.body.0.declarations.0.init.callee"],getPrototypeOf:["body.0.body.body.0.declarations.0.init.arguments.0.callee"]}}),superPropSet:Nj("7.25.0","function _superPropSet(t,e,o,r,p,f){return set(getPrototypeOf(f?t.prototype:t),e,o,r,p)}",{globals:[],locals:{_superPropSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_superPropSet",dependencies:{set:["body.0.body.body.0.argument.callee"],getPrototypeOf:["body.0.body.body.0.argument.arguments.0.callee"]}}),taggedTemplateLiteral:Nj("7.0.0-beta.0","function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}",{globals:["Object"],locals:{_taggedTemplateLiteral:["body.0.id"]},exportBindingAssignments:[],exportName:"_taggedTemplateLiteral",dependencies:{}}),taggedTemplateLiteralLoose:Nj("7.0.0-beta.0","function _taggedTemplateLiteralLoose(e,t){return t||(t=e.slice(0)),e.raw=t,e}",{globals:[],locals:{_taggedTemplateLiteralLoose:["body.0.id"]},exportBindingAssignments:[],exportName:"_taggedTemplateLiteralLoose",dependencies:{}}),tdz:Nj("7.5.5",'function _tdzError(e){throw new ReferenceError(e+" is not defined - temporal dead zone")}',{globals:["ReferenceError"],locals:{_tdzError:["body.0.id"]},exportBindingAssignments:[],exportName:"_tdzError",dependencies:{}}),temporalRef:Nj("7.0.0-beta.0","function _temporalRef(r,e){return r===undef?err(e):r}",{globals:[],locals:{_temporalRef:["body.0.id"]},exportBindingAssignments:[],exportName:"_temporalRef",dependencies:{temporalUndefined:["body.0.body.body.0.argument.test.right"],tdz:["body.0.body.body.0.argument.consequent.callee"]}}),temporalUndefined:Nj("7.0.0-beta.0","function _temporalUndefined(){}",{globals:[],locals:{_temporalUndefined:["body.0.id"]},exportBindingAssignments:[],exportName:"_temporalUndefined",dependencies:{}}),toArray:Nj("7.0.0-beta.0","function _toArray(r){return arrayWithHoles(r)||iterableToArray(r)||unsupportedIterableToArray(r)||nonIterableRest()}",{globals:[],locals:{_toArray:["body.0.id"]},exportBindingAssignments:[],exportName:"_toArray",dependencies:{arrayWithHoles:["body.0.body.body.0.argument.left.left.left.callee"],iterableToArray:["body.0.body.body.0.argument.left.left.right.callee"],unsupportedIterableToArray:["body.0.body.body.0.argument.left.right.callee"],nonIterableRest:["body.0.body.body.0.argument.right.callee"]}}),toConsumableArray:Nj("7.0.0-beta.0","function _toConsumableArray(r){return arrayWithoutHoles(r)||iterableToArray(r)||unsupportedIterableToArray(r)||nonIterableSpread()}",{globals:[],locals:{_toConsumableArray:["body.0.id"]},exportBindingAssignments:[],exportName:"_toConsumableArray",dependencies:{arrayWithoutHoles:["body.0.body.body.0.argument.left.left.left.callee"],iterableToArray:["body.0.body.body.0.argument.left.left.right.callee"],unsupportedIterableToArray:["body.0.body.body.0.argument.left.right.callee"],nonIterableSpread:["body.0.body.body.0.argument.right.callee"]}}),toPrimitive:Nj("7.1.5",'function toPrimitive(t,r){if("object"!=typeof t||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}',{globals:["Symbol","TypeError","String","Number"],locals:{toPrimitive:["body.0.id"]},exportBindingAssignments:[],exportName:"toPrimitive",dependencies:{}}),toPropertyKey:Nj("7.1.5",'function toPropertyKey(t){var i=toPrimitive(t,"string");return"symbol"==typeof i?i:i+""}',{globals:[],locals:{toPropertyKey:["body.0.id"]},exportBindingAssignments:[],exportName:"toPropertyKey",dependencies:{toPrimitive:["body.0.body.body.0.declarations.0.init.callee"]}}),toSetter:Nj("7.24.0",'function _toSetter(t,e,n){e||(e=[]);var r=e.length++;return Object.defineProperty({},"_",{set:function(o){e[r]=o,t.apply(n,e)}})}',{globals:["Object"],locals:{_toSetter:["body.0.id"]},exportBindingAssignments:[],exportName:"_toSetter",dependencies:{}}),typeof:Nj("7.0.0-beta.0",'function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}',{globals:["Symbol"],locals:{_typeof:["body.0.id","body.0.body.body.0.argument.expressions.1.callee","body.0.body.body.0.argument.expressions.0.left"]},exportBindingAssignments:["body.0.body.body.0.argument.expressions.0"],exportName:"_typeof",dependencies:{}}),unsupportedIterableToArray:Nj("7.9.0",'function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?arrayLikeToArray(r,a):void 0}}',{globals:["Array"],locals:{_unsupportedIterableToArray:["body.0.id"]},exportBindingAssignments:[],exportName:"_unsupportedIterableToArray",dependencies:{arrayLikeToArray:["body.0.body.body.0.consequent.body.0.consequent.argument.callee","body.0.body.body.0.consequent.body.2.argument.expressions.1.alternate.consequent.callee"]}}),usingCtx:Nj("7.23.9",'function _usingCtx(){var r="function"==typeof SuppressedError?SuppressedError:function(r,e){var n=Error();return n.name="SuppressedError",n.error=r,n.suppressed=e,n},e={},n=[];function using(r,e){if(null!=e){if(Object(e)!==e)throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");if(r)var o=e[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(void 0===o&&(o=e[Symbol.dispose||Symbol.for("Symbol.dispose")],r))var t=o;if("function"!=typeof o)throw new TypeError("Object is not disposable.");t&&(o=function(){try{t.call(e)}catch(r){return Promise.reject(r)}}),n.push({v:e,d:o,a:r})}else r&&n.push({d:e,a:r});return e}return{e:e,u:using.bind(null,!1),a:using.bind(null,!0),d:function(){var o,t=this.e,s=0;function next(){for(;o=n.pop();)try{if(!o.a&&1===s)return s=0,n.push(o),Promise.resolve().then(next);if(o.d){var r=o.d.call(o.v);if(o.a)return s|=2,Promise.resolve(r).then(next,err)}else s|=1}catch(r){return err(r)}if(1===s)return t!==e?Promise.reject(t):Promise.resolve();if(t!==e)throw t}function err(n){return t=t!==e?new r(n,t):n,next()}return next()}}}',{globals:["SuppressedError","Error","Object","TypeError","Symbol","Promise"],locals:{_usingCtx:["body.0.id"]},exportBindingAssignments:[],exportName:"_usingCtx",dependencies:{}}),wrapAsyncGenerator:Nj("7.0.0-beta.0",'function _wrapAsyncGenerator(e){return function(){return new AsyncGenerator(e.apply(this,arguments))}}function AsyncGenerator(e){var r,t;function resume(r,t){try{var n=e[r](t),o=n.value,u=o instanceof OverloadYield;Promise.resolve(u?o.v:o).then((function(t){if(u){var i="return"===r?"return":"next";if(!o.k||t.done)return resume(i,t);t=e[i](t).value}settle(n.done?"return":"normal",t)}),(function(e){resume("throw",e)}))}catch(e){settle("throw",e)}}function settle(e,n){switch(e){case"return":r.resolve({value:n,done:!0});break;case"throw":r.reject(n);break;default:r.resolve({value:n,done:!1})}(r=r.next)?resume(r.key,r.arg):t=null}this._invoke=function(e,n){return new Promise((function(o,u){var i={key:e,arg:n,resolve:o,reject:u,next:null};t?t=t.next=i:(r=t=i,resume(e,n))}))},"function"!=typeof e.return&&(this.return=void 0)}AsyncGenerator.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},AsyncGenerator.prototype.next=function(e){return this._invoke("next",e)},AsyncGenerator.prototype.throw=function(e){return this._invoke("throw",e)},AsyncGenerator.prototype.return=function(e){return this._invoke("return",e)};',{globals:["Promise","Symbol"],locals:{_wrapAsyncGenerator:["body.0.id"],AsyncGenerator:["body.1.id","body.0.body.body.0.argument.body.body.0.argument.callee","body.2.expression.expressions.0.left.object.object","body.2.expression.expressions.1.left.object.object","body.2.expression.expressions.2.left.object.object","body.2.expression.expressions.3.left.object.object"]},exportBindingAssignments:[],exportName:"_wrapAsyncGenerator",dependencies:{OverloadYield:["body.1.body.body.1.body.body.0.block.body.0.declarations.2.init.right"]}}),wrapNativeSuper:Nj("7.0.0-beta.0",'function _wrapNativeSuper(t){var r="function"==typeof Map?new Map:void 0;return _wrapNativeSuper=function(t){if(null===t||!isNativeFunction(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(t))return r.get(t);r.set(t,Wrapper)}function Wrapper(){return construct(t,arguments,getPrototypeOf(this).constructor)}return Wrapper.prototype=Object.create(t.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),setPrototypeOf(Wrapper,t)},_wrapNativeSuper(t)}',{globals:["Map","TypeError","Object"],locals:{_wrapNativeSuper:["body.0.id","body.0.body.body.1.argument.expressions.1.callee","body.0.body.body.1.argument.expressions.0.left"]},exportBindingAssignments:["body.0.body.body.1.argument.expressions.0"],exportName:"_wrapNativeSuper",dependencies:{getPrototypeOf:["body.0.body.body.1.argument.expressions.0.right.body.body.3.body.body.0.argument.arguments.2.object.callee"],setPrototypeOf:["body.0.body.body.1.argument.expressions.0.right.body.body.4.argument.expressions.1.callee"],isNativeFunction:["body.0.body.body.1.argument.expressions.0.right.body.body.0.test.right.argument.callee"],construct:["body.0.body.body.1.argument.expressions.0.right.body.body.3.body.body.0.argument.callee"]}}),wrapRegExp:Nj("7.19.0",'function _wrapRegExp(){_wrapRegExp=function(e,r){return new BabelRegExp(e,void 0,r)};var e=RegExp.prototype,r=new WeakMap;function BabelRegExp(e,t,p){var o=RegExp(e,t);return r.set(o,p||r.get(e)),setPrototypeOf(o,BabelRegExp.prototype)}function buildGroups(e,t){var p=r.get(t);return Object.keys(p).reduce((function(r,t){var o=p[t];if("number"==typeof o)r[t]=e[o];else{for(var i=0;void 0===e[o[i]]&&i+1]+)>/g,(function(e,r){var t=o[r];return"$"+(Array.isArray(t)?t.join("$"):t)})))}if("function"==typeof p){var i=this;return e[Symbol.replace].call(this,t,(function(){var e=arguments;return"object"!=typeof e[e.length-1]&&(e=[].slice.call(e)).push(buildGroups(e,i)),p.apply(this,e)}))}return e[Symbol.replace].call(this,t,p)},_wrapRegExp.apply(this,arguments)}',{globals:["RegExp","WeakMap","Object","Symbol","Array"],locals:{_wrapRegExp:["body.0.id","body.0.body.body.4.argument.expressions.3.callee.object","body.0.body.body.0.expression.left"]},exportBindingAssignments:["body.0.body.body.0.expression"],exportName:"_wrapRegExp",dependencies:{setPrototypeOf:["body.0.body.body.2.body.body.1.argument.expressions.1.callee"],inherits:["body.0.body.body.4.argument.expressions.0.callee"]}}),writeOnlyError:Nj("7.12.13","function _writeOnlyError(r){throw new TypeError('\"'+r+'\" is write-only')}",{globals:["TypeError"],locals:{_writeOnlyError:["body.0.id"]},exportBindingAssignments:[],exportName:"_writeOnlyError",dependencies:{}})};Object.assign(Mj,{AwaitValue:Nj("7.0.0-beta.0","function _AwaitValue(t){this.wrapped=t}",{globals:[],locals:{_AwaitValue:["body.0.id"]},exportBindingAssignments:[],exportName:"_AwaitValue",dependencies:{}}),applyDecs:Nj("7.17.8",'function old_createMetadataMethodsForProperty(e,t,a,r){return{getMetadata:function(o){old_assertNotFinished(r,"getMetadata"),old_assertMetadataKey(o);var i=e[o];if(void 0!==i)if(1===t){var n=i.public;if(void 0!==n)return n[a]}else if(2===t){var l=i.private;if(void 0!==l)return l.get(a)}else if(Object.hasOwnProperty.call(i,"constructor"))return i.constructor},setMetadata:function(o,i){old_assertNotFinished(r,"setMetadata"),old_assertMetadataKey(o);var n=e[o];if(void 0===n&&(n=e[o]={}),1===t){var l=n.public;void 0===l&&(l=n.public={}),l[a]=i}else if(2===t){var s=n.priv;void 0===s&&(s=n.private=new Map),s.set(a,i)}else n.constructor=i}}}function old_convertMetadataMapToFinal(e,t){var a=e[Symbol.metadata||Symbol.for("Symbol.metadata")],r=Object.getOwnPropertySymbols(t);if(0!==r.length){for(var o=0;o=0;m--){var b;void 0!==(p=old_memberDec(h[m],r,c,l,s,o,i,n,f))&&(old_assertValidReturnValue(o,p),0===o?b=p:1===o?(b=old_getInit(p),v=p.get||f.get,y=p.set||f.set,f={get:v,set:y}):f=p,void 0!==b&&(void 0===d?d=b:"function"==typeof d?d=[d,b]:d.push(b)))}if(0===o||1===o){if(void 0===d)d=function(e,t){return t};else if("function"!=typeof d){var g=d;d=function(e,t){for(var a=t,r=0;r3,m=v>=5;if(m?(u=t,f=r,0!=(v-=5)&&(p=n=n||[])):(u=t.prototype,f=a,0!==v&&(p=i=i||[])),0!==v&&!h){var b=m?s:l,g=b.get(y)||0;if(!0===g||3===g&&4!==v||4===g&&3!==v)throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+y);!g&&v>2?b.set(y,v):b.set(y,!0)}old_applyMemberDec(e,u,d,y,v,m,h,f,p)}}old_pushInitializers(e,i),old_pushInitializers(e,n)}function old_pushInitializers(e,t){t&&e.push((function(e){for(var a=0;a0){for(var o=[],i=t,n=t.name,l=r.length-1;l>=0;l--){var s={v:!1};try{var c=Object.assign({kind:"class",name:n,addInitializer:old_createAddInitializerMethod(o,s)},old_createMetadataMethodsForProperty(a,0,n,s)),d=r[l](i,c)}finally{s.v=!0}void 0!==d&&(old_assertValidReturnValue(10,d),i=d)}e.push(i,(function(){for(var e=0;e=0;v--){var g;void 0!==(f=memberDec(h[v],a,c,o,n,i,s,u))&&(assertValidReturnValue(n,f),0===n?g=f:1===n?(g=f.init,p=f.get||u.get,d=f.set||u.set,u={get:p,set:d}):u=f,void 0!==g&&(void 0===l?l=g:"function"==typeof l?l=[l,g]:l.push(g)))}if(0===n||1===n){if(void 0===l)l=function(e,t){return t};else if("function"!=typeof l){var y=l;l=function(e,t){for(var r=t,a=0;a3,h=f>=5;if(h?(l=t,0!=(f-=5)&&(u=n=n||[])):(l=t.prototype,0!==f&&(u=a=a||[])),0!==f&&!d){var v=h?s:i,g=v.get(p)||0;if(!0===g||3===g&&4!==f||4===g&&3!==f)throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+p);!g&&f>2?v.set(p,f):v.set(p,!0)}applyMemberDec(e,l,c,p,f,h,d,u)}}pushInitializers(e,a),pushInitializers(e,n)}(a,e,t),function(e,t,r){if(r.length>0){for(var a=[],n=t,i=t.name,s=r.length-1;s>=0;s--){var o={v:!1};try{var c=r[s](n,{kind:"class",name:i,addInitializer:createAddInitializerMethod(a,o)})}finally{o.v=!0}void 0!==c&&(assertValidReturnValue(10,c),n=c)}e.push(n,(function(){for(var e=0;e=0;g--){var y;void 0!==(p=memberDec(v[g],n,c,s,a,i,o,f))&&(assertValidReturnValue(a,p),0===a?y=p:1===a?(y=p.init,d=p.get||f.get,h=p.set||f.set,f={get:d,set:h}):f=p,void 0!==y&&(void 0===l?l=y:"function"==typeof l?l=[l,y]:l.push(y)))}if(0===a||1===a){if(void 0===l)l=function(e,t){return t};else if("function"!=typeof l){var m=l;l=function(e,t){for(var r=t,n=0;n3,h=f>=5;if(h?(l=e,0!=(f-=5)&&(u=n=n||[])):(l=e.prototype,0!==f&&(u=r=r||[])),0!==f&&!d){var v=h?o:i,g=v.get(p)||0;if(!0===g||3===g&&4!==f||4===g&&3!==f)throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+p);!g&&f>2?v.set(p,f):v.set(p,!0)}applyMemberDec(a,l,c,p,f,h,d,u)}}return pushInitializers(a,r),pushInitializers(a,n),a}function pushInitializers(e,t){t&&e.push((function(e){for(var r=0;r0){for(var r=[],n=e,a=e.name,i=t.length-1;i>=0;i--){var o={v:!1};try{var s=t[i](n,{kind:"class",name:a,addInitializer:createAddInitializerMethod(r,o)})}finally{o.v=!0}void 0!==s&&(assertValidReturnValue(10,s),n=s)}return[n,function(){for(var e=0;e=0;m--){var b;void 0!==(h=memberDec(g[m],n,u,o,a,i,s,p,c))&&(assertValidReturnValue(a,h),0===a?b=h:1===a?(b=h.init,v=h.get||p.get,y=h.set||p.set,p={get:v,set:y}):p=h,void 0!==b&&(void 0===l?l=b:"function"==typeof l?l=[l,b]:l.push(b)))}if(0===a||1===a){if(void 0===l)l=function(e,t){return t};else if("function"!=typeof l){var I=l;l=function(e,t){for(var r=t,n=0;n3,y=d>=5,g=r;if(y?(f=e,0!=(d-=5)&&(p=a=a||[]),v&&!i&&(i=function(t){return checkInRHS(t)===e}),g=i):(f=e.prototype,0!==d&&(p=n=n||[])),0!==d&&!v){var m=y?c:o,b=m.get(h)||0;if(!0===b||3===b&&4!==d||4===b&&3!==d)throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+h);!b&&d>2?m.set(h,d):m.set(h,!0)}applyMemberDec(s,f,l,h,d,y,v,p,g)}}return pushInitializers(s,n),pushInitializers(s,a),s}function pushInitializers(e,t){t&&e.push((function(e){for(var r=0;r0){for(var r=[],n=e,a=e.name,i=t.length-1;i>=0;i--){var s={v:!1};try{var o=t[i](n,{kind:"class",name:a,addInitializer:createAddInitializerMethod(r,s)})}finally{s.v=!0}void 0!==o&&(assertValidReturnValue(10,o),n=o)}return[n,function(){for(var e=0;e=0;j-=r?2:1){var D=v[j],E=r?v[j-1]:void 0,I={},O={kind:["field","accessor","method","getter","setter","class"][o],name:n,metadata:a,addInitializer:function(e,t){if(e.v)throw Error("attempted to call addInitializer after decoration was finished");s(t,"An initializer","be",!0),c.push(t)}.bind(null,I)};try{if(b)(y=s(D.call(E,P,O),"class decorators","return"))&&(P=y);else{var k,F;O.static=l,O.private=f,f?2===o?k=function(e){return m(e),w.value}:(o<4&&(k=i(w,"get",m)),3!==o&&(F=i(w,"set",m))):(k=function(e){return e[n]},(o<2||4===o)&&(F=function(e,t){e[n]=t}));var N=O.access={has:f?h.bind():function(e){return n in e}};if(k&&(N.get=k),F&&(N.set=F),P=D.call(E,d?{get:w.get,set:w.set}:w[A],O),d){if("object"==typeof P&&P)(y=s(P.get,"accessor.get"))&&(w.get=y),(y=s(P.set,"accessor.set"))&&(w.set=y),(y=s(P.init,"accessor.init"))&&S.push(y);else if(void 0!==P)throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0")}else s(P,(p?"field":"method")+" decorators","return")&&(p?S.push(P):w[A]=P)}}finally{I.v=!0}}return(p||d)&&u.push((function(e,t){for(var r=S.length-1;r>=0;r--)t=S[r].call(e,t);return t})),p||b||(f?d?u.push(i(w,"get"),i(w,"set")):u.push(2===o?w[A]:i.call.bind(w[A])):Object.defineProperty(e,n,w)),P}function u(e,t){return Object.defineProperty(e,Symbol.metadata||Symbol.for("Symbol.metadata"),{configurable:!0,enumerable:!0,value:t})}if(arguments.length>=6)var l=a[Symbol.metadata||Symbol.for("Symbol.metadata")];var f=Object.create(null==l?null:l),p=function(e,t,r,n){var o,a,i=[],s=function(t){return checkInRHS(t)===e},u=new Map;function l(e){e&&i.push(c.bind(null,e))}for(var f=0;f3,y=16&d,v=!!(8&d),g=0==(d&=7),b=h+"/"+v;if(!g&&!m){var w=u.get(b);if(!0===w||3===w&&4!==d||4===w&&3!==d)throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+h);u.set(b,!(d>2)||d)}applyDec(v?e:e.prototype,p,y,m?"#"+h:toPropertyKey(h),d,n,v?a=a||[]:o=o||[],i,v,m,g,1===d,v&&m?s:r)}}return l(o),l(a),i}(e,t,o,f);return r.length||u(e,f),{e:p,get c(){var t=[];return r.length&&[u(applyDec(e,[r],n,e.name,5,f,t),f),c.bind(null,t,e)]}}}',{globals:["TypeError","Array","Object","Error","Symbol","Map"],locals:{applyDecs2305:["body.0.id"]},exportBindingAssignments:[],exportName:"applyDecs2305",dependencies:{checkInRHS:["body.0.body.body.6.declarations.1.init.callee.body.body.0.declarations.3.init.body.body.0.argument.left.callee"],setFunctionName:["body.0.body.body.3.body.body.2.consequent.body.2.expression.consequent.expressions.0.consequent.right.properties.0.value.callee","body.0.body.body.3.body.body.2.consequent.body.2.expression.consequent.expressions.1.right.callee"],toPropertyKey:["body.0.body.body.6.declarations.1.init.callee.body.body.2.body.body.1.consequent.body.2.expression.arguments.3.alternate.callee"]}}),classApplyDescriptorDestructureSet:Nj("7.13.10",'function _classApplyDescriptorDestructureSet(e,t){if(t.set)return"__destrObj"in t||(t.__destrObj={set value(r){t.set.call(e,r)}}),t.__destrObj;if(!t.writable)throw new TypeError("attempted to set read only private field");return t}',{globals:["TypeError"],locals:{_classApplyDescriptorDestructureSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classApplyDescriptorDestructureSet",dependencies:{}}),classApplyDescriptorGet:Nj("7.13.10","function _classApplyDescriptorGet(e,t){return t.get?t.get.call(e):t.value}",{globals:[],locals:{_classApplyDescriptorGet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classApplyDescriptorGet",dependencies:{}}),classApplyDescriptorSet:Nj("7.13.10",'function _classApplyDescriptorSet(e,t,l){if(t.set)t.set.call(e,l);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=l}}',{globals:["TypeError"],locals:{_classApplyDescriptorSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classApplyDescriptorSet",dependencies:{}}),classCheckPrivateStaticAccess:Nj("7.13.10","function _classCheckPrivateStaticAccess(s,a,r){return assertClassBrand(a,s,r)}",{globals:[],locals:{_classCheckPrivateStaticAccess:["body.0.id"]},exportBindingAssignments:[],exportName:"_classCheckPrivateStaticAccess",dependencies:{assertClassBrand:["body.0.body.body.0.argument.callee"]}}),classCheckPrivateStaticFieldDescriptor:Nj("7.13.10",'function _classCheckPrivateStaticFieldDescriptor(t,e){if(void 0===t)throw new TypeError("attempted to "+e+" private static field before its declaration")}',{globals:["TypeError"],locals:{_classCheckPrivateStaticFieldDescriptor:["body.0.id"]},exportBindingAssignments:[],exportName:"_classCheckPrivateStaticFieldDescriptor",dependencies:{}}),classExtractFieldDescriptor:Nj("7.13.10","function _classExtractFieldDescriptor(e,t){return classPrivateFieldGet2(t,e)}",{globals:[],locals:{_classExtractFieldDescriptor:["body.0.id"]},exportBindingAssignments:[],exportName:"_classExtractFieldDescriptor",dependencies:{classPrivateFieldGet2:["body.0.body.body.0.argument.callee"]}}),classPrivateFieldDestructureSet:Nj("7.4.4","function _classPrivateFieldDestructureSet(e,t){var r=classPrivateFieldGet2(t,e);return classApplyDescriptorDestructureSet(e,r)}",{globals:[],locals:{_classPrivateFieldDestructureSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateFieldDestructureSet",dependencies:{classApplyDescriptorDestructureSet:["body.0.body.body.1.argument.callee"],classPrivateFieldGet2:["body.0.body.body.0.declarations.0.init.callee"]}}),classPrivateFieldGet:Nj("7.0.0-beta.0","function _classPrivateFieldGet(e,t){var r=classPrivateFieldGet2(t,e);return classApplyDescriptorGet(e,r)}",{globals:[],locals:{_classPrivateFieldGet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateFieldGet",dependencies:{classApplyDescriptorGet:["body.0.body.body.1.argument.callee"],classPrivateFieldGet2:["body.0.body.body.0.declarations.0.init.callee"]}}),classPrivateFieldSet:Nj("7.0.0-beta.0","function _classPrivateFieldSet(e,t,r){var s=classPrivateFieldGet2(t,e);return classApplyDescriptorSet(e,s,r),r}",{globals:[],locals:{_classPrivateFieldSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateFieldSet",dependencies:{classApplyDescriptorSet:["body.0.body.body.1.argument.expressions.0.callee"],classPrivateFieldGet2:["body.0.body.body.0.declarations.0.init.callee"]}}),classPrivateMethodGet:Nj("7.1.6","function _classPrivateMethodGet(s,a,r){return assertClassBrand(a,s),r}",{globals:[],locals:{_classPrivateMethodGet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateMethodGet",dependencies:{assertClassBrand:["body.0.body.body.0.argument.expressions.0.callee"]}}),classPrivateMethodSet:Nj("7.1.6",'function _classPrivateMethodSet(){throw new TypeError("attempted to reassign private method")}',{globals:["TypeError"],locals:{_classPrivateMethodSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateMethodSet",dependencies:{}}),classStaticPrivateFieldDestructureSet:Nj("7.13.10",'function _classStaticPrivateFieldDestructureSet(t,r,s){return assertClassBrand(r,t),classCheckPrivateStaticFieldDescriptor(s,"set"),classApplyDescriptorDestructureSet(t,s)}',{globals:[],locals:{_classStaticPrivateFieldDestructureSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classStaticPrivateFieldDestructureSet",dependencies:{classApplyDescriptorDestructureSet:["body.0.body.body.0.argument.expressions.2.callee"],assertClassBrand:["body.0.body.body.0.argument.expressions.0.callee"],classCheckPrivateStaticFieldDescriptor:["body.0.body.body.0.argument.expressions.1.callee"]}}),classStaticPrivateFieldSpecGet:Nj("7.0.2",'function _classStaticPrivateFieldSpecGet(t,s,r){return assertClassBrand(s,t),classCheckPrivateStaticFieldDescriptor(r,"get"),classApplyDescriptorGet(t,r)}',{globals:[],locals:{_classStaticPrivateFieldSpecGet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classStaticPrivateFieldSpecGet",dependencies:{classApplyDescriptorGet:["body.0.body.body.0.argument.expressions.2.callee"],assertClassBrand:["body.0.body.body.0.argument.expressions.0.callee"],classCheckPrivateStaticFieldDescriptor:["body.0.body.body.0.argument.expressions.1.callee"]}}),classStaticPrivateFieldSpecSet:Nj("7.0.2",'function _classStaticPrivateFieldSpecSet(s,t,r,e){return assertClassBrand(t,s),classCheckPrivateStaticFieldDescriptor(r,"set"),classApplyDescriptorSet(s,r,e),e}',{globals:[],locals:{_classStaticPrivateFieldSpecSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classStaticPrivateFieldSpecSet",dependencies:{classApplyDescriptorSet:["body.0.body.body.0.argument.expressions.2.callee"],assertClassBrand:["body.0.body.body.0.argument.expressions.0.callee"],classCheckPrivateStaticFieldDescriptor:["body.0.body.body.0.argument.expressions.1.callee"]}}),classStaticPrivateMethodSet:Nj("7.3.2",'function _classStaticPrivateMethodSet(){throw new TypeError("attempted to set read only static private field")}',{globals:["TypeError"],locals:{_classStaticPrivateMethodSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classStaticPrivateMethodSet",dependencies:{}}),defineEnumerableProperties:Nj("7.0.0-beta.0",'function _defineEnumerableProperties(e,r){for(var t in r){var n=r[t];n.configurable=n.enumerable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,t,n)}if(Object.getOwnPropertySymbols)for(var a=Object.getOwnPropertySymbols(r),b=0;b0;)try{var o=r.pop(),p=o.d.call(o.v);if(o.a)return Promise.resolve(p).then(next,err)}catch(r){return err(r)}if(s)throw e}function err(r){return e=s?new dispose_SuppressedError(e,r):r,s=!0,next()}return next()}',{globals:["SuppressedError","Error","Object","Promise"],locals:{dispose_SuppressedError:["body.0.id","body.0.body.body.0.argument.expressions.0.alternate.expressions.1.left.object","body.0.body.body.0.argument.expressions.0.alternate.expressions.1.right.arguments.1.properties.0.value.properties.0.value","body.0.body.body.0.argument.expressions.1.callee","body.1.body.body.1.body.body.0.argument.expressions.0.right.consequent.callee","body.0.body.body.0.argument.expressions.0.consequent.left","body.0.body.body.0.argument.expressions.0.alternate.expressions.0.left"],_dispose:["body.1.id"]},exportBindingAssignments:[],exportName:"_dispose",dependencies:{}}),objectSpread:Nj("7.0.0-beta.0",'function _objectSpread(e){for(var r=1;r0;)e=e[n],n=a.shift();if(!(arguments.length>2))return e[n];e[n]=r}catch(s){throw s.message+=" (when accessing "+t+")",s}}function Wj(e,t,r,a,n,s){var o=t.locals,i=t.dependencies,d=t.exportBindingAssignments,u=t.exportName,c=new Set(a||[]);r&&c.add(r);for(var l=0,f=(Object.entries||function(e){return Object.keys(e).map((function(t){return[t,e[t]]}))})(o);l100)){var i=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(o);if(i){var d=parseFloat(i[1]);switch((i[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return d*s;case"weeks":case"week":case"w":return d*n;case"days":case"day":case"d":return d*a;case"hours":case"hour":case"hrs":case"hr":case"h":return d*r;case"minutes":case"minute":case"mins":case"min":case"m":return d*t;case"seconds":case"second":case"secs":case"sec":case"s":return d*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return d;default:return}}}}function i(n){var s=Math.abs(n);return s>=a?Math.round(n/a)+"d":s>=r?Math.round(n/r)+"h":s>=t?Math.round(n/t)+"m":s>=e?Math.round(n/e)+"s":n+"ms"}function d(n){var s=Math.abs(n);return s>=a?u(n,s,a,"day"):s>=r?u(n,s,r,"hour"):s>=t?u(n,s,t,"minute"):s>=e?u(n,s,e,"second"):n+" ms"}function u(e,t,r,a){var n=t>=1.5*r;return Math.round(e/r)+" "+a+(n?"s":"")}return Yj=function(e,t){t=t||{};var r=typeof e;if("string"===r&&e.length>0)return o(e);if("number"===r&&isFinite(e))return t.long?d(e):i(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))},Yj}function bA(e){function t(e){for(var t=0,a=0;a=31||"undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/));var e}function a(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),this.useColors){var r="color: "+this.color;t.splice(1,0,r,"color: inherit");var a=0,n=0;t[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(a++,"%c"===e&&(n=a))})),t.splice(n,0,r)}}function n(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(jX){}}function s(){var e;try{e=t.storage.getItem("debug")}catch(jX){}return!e&&"undefined"!==typeof ve&&"env"in ve&&(e=ve.env.DEBUG),e}function o(){try{return localStorage}catch(jX){}}t.formatArgs=a,t.save=n,t.load=s,t.useColors=r,t.storage=o(),t.destroy=function(){var e=!1;return function(){e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||function(){},e.exports=vA(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(jX){return"[UnexpectedJSONParseError]: "+jX.message}}}(hA,hA.exports);var xA=hA.exports,RA=qx,EA=Hx,DA=Os,wA=os,jA=Us,AA=We,CA=vs,SA=Ge,TA=Ft,kA=Bt,PA=Ra,FA=Ea,_A=et,IA=ot,BA=Vx,OA=Kx,NA=ls,MA=$x,LA=yt,UA=Pt,qA=Qx.isCompatTag;function WA(e){var t=this.node,r=this.parent;if(!SA(t,e)&&!FA(r,e)){if(!PA(t,e))return!1;if(qA(t.name))return!1}return BA(t,r,this.parentPath.parent)}function HA(){var e=this.node,t=this.parent;return _A(e)&&BA(e,t)}function zA(){var e=this.node,t=this.parent,r=this.parentPath.parent;return SA(e)&&RA(e,t,r)}function GA(){var e=this.node,t=this.parent;if(NA(e)){if(LA(e)){if(CA(t,{left:e}))return!1;if(AA(t,{init:e}))return!1}return!0}return!1}function VA(){return this.isIdentifier()?this.isReferencedIdentifier():wA(this.node)}function KA(){return OA(this.node,this.parent)}function YA(){return BA(this.node,this.parent)}function JA(){return EA(this.node)}function XA(){return MA(this.node)}function $A(){return this.node&&!!this.node.loc}function QA(){return!this.isUser()}function ZA(e){return this.scope.isPure(this.node,e)}function eC(){var e=this.node;return!!jA(e)||(TA(e)?"type"===e.importKind||"typeof"===e.importKind:DA(e)?"type"===e.exportKind:!!kA(e)&&("type"===e.importKind||"typeof"===e.importKind))}function tC(){var e;return IA(this.node)&&(null==(e=this.parentPath)?void 0:e.isObjectPattern())}function rC(){var e;return IA(this.node)&&(null==(e=this.parentPath)?void 0:e.isObjectExpression())}function aC(){return UA(this.node,{await:!0})}e.isExistentialTypeParam=function(){throw new Error("`path.isExistentialTypeParam` has been renamed to `path.isExistsTypeAnnotation()` in Babel 7.")},e.isNumericLiteralTypeAnnotation=function(){throw new Error("`path.isNumericLiteralTypeAnnotation()` has been renamed to `path.isNumberLiteralTypeAnnotation()` in Babel 7.")};var nC=Object.freeze({__proto__:null,isBindingIdentifier:zA,isBlockScoped:JA,isExpression:VA,isFlow:eC,isForAwaitStatement:aC,isGenerated:QA,isPure:ZA,isReferenced:YA,isReferencedIdentifier:WA,isReferencedMemberExpression:HA,isRestProperty:tC,isScope:KA,isSpreadProperty:rC,isStatement:GA,isUser:$A,isVar:XA}),sC=pi,oC=pd,iC=ui,dC=fd,uC=Ee;function cC(e){return e in mA}function lC(e){return null==e?void 0:e._exploded}function pC(e){if(lC(e))return e;e._exploded=!0;for(var t=0,r=Object.keys(e);t1&&(t+=r),r++}while(this.hasLabel(t)||this.hasBinding(t)||this.hasGlobal(t)||this.hasReference(t));var a=this.getProgramParent();return a.references[t]=!0,a.uids[t]=!0,t},t.generateUidBasedOnNode=function(e,t){var r=[];US(e,r);var a=r.join("$");return a=a.replace(/^_/,"")||t||"ref",this.generateUid(a.slice(0,20))},t.generateUidIdentifierBasedOnNode=function(e,t){return XC(this.generateUidBasedOnNode(e,t))},t.isStatic=function(e){if(RS(e)||bS(e)||IS(e))return!0;if(iS(e)){var t=this.getBinding(e.name);return t?t.constant:this.hasBinding(e.name)}return!1},t.maybeGenerateMemoised=function(e,t){if(this.isStatic(e))return null;var r=this.generateUidIdentifierBasedOnNode(e);return t?r:(this.push({id:r}),YC(r))},t.checkBlockScopedCollisions=function(e,t,r,a){if("param"!==t&&"local"!==e.kind&&("let"===t||"let"===e.kind||"const"===e.kind||"module"===e.kind||"param"===e.kind&&"const"===t))throw this.path.hub.buildError(a,'Duplicate declaration "'+r+'"',TypeError)},t.rename=function(e,t){var r=this.getBinding(e);r&&(t||(t=this.generateUidIdentifier(e).name),new CC(r,e,t).rename(arguments[2]))},t.dump=function(){var e="-".repeat(60);console.log(e);var t=this;do{console.log("#",t.block.type);for(var r=0,a=Object.keys(t.bindings);r0)&&this.isPure(e.body,t);if(tS(e)){for(var o,i=p(e.body);!(o=i()).done;){var d=o.value;if(!this.isPure(d,t))return!1}return!0}if(QC(e))return this.isPure(e.left,t)&&this.isPure(e.right,t);if($C(e)||FS(e)){for(var u,c=p(e.elements);!(u=c()).done;){var l=u.value;if(null!==l&&!this.isPure(l,t))return!1}return!0}if(gS(e)||PS(e)){for(var f,g=p(e.properties);!(f=g()).done;){var m=f.value;if(!this.isPure(m,t))return!1}return!0}if(lS(e))return!(e.computed&&!this.isPure(e.key,t))&&!((null==(n=e.decorators)?void 0:n.length)>0);if(mS(e))return!(e.computed&&!this.isPure(e.key,t))&&!((null==(s=e.decorators)?void 0:s.length)>0)&&!((_S(e)||e.static)&&null!==e.value&&!this.isPure(e.value,t));if(ES(e))return this.isPure(e.argument,t);if(xS(e)){for(var h,y=p(e.expressions);!(h=y()).done;){var b=h.value;if(!this.isPure(b,t))return!1}return!0}return vS(e)?jS(e.tag,"String.raw")&&!this.hasBinding("String",{noGlobals:!0})&&this.isPure(e.quasi,t):cS(e)?!e.computed&&iS(e.object)&&"Symbol"===e.object.name&&iS(e.property)&&"for"!==e.property.name&&!this.hasBinding("Symbol",{noGlobals:!0}):ZC(e)?jS(e.callee,"Symbol.for")&&!this.hasBinding("Symbol",{noGlobals:!0})&&1===e.arguments.length&&Ye(e.arguments[0]):hS(e)},t.setData=function(e,t){return this.data[e]=t},t.getData=function(e){var t=this;do{var r=t.data[e];if(null!=r)return r}while(t=t.parent)},t.removeData=function(e){var t=this;do{null!=t.data[e]&&(t.data[e]=null)}while(t=t.parent)},t.init=function(){this.inited||(this.inited=!0,this.crawl())},t.crawl=function(){var e=this.path;this.references=Object.create(null),this.bindings=Object.create(null),this.globals=Object.create(null),this.uids=Object.create(null),this.data=Object.create(null);var t=this;do{if(t.crawling)return;if(t.path.isProgram())break}while(t=t.parent);var r=t,a={references:[],constantViolations:[],assignments:[]};if(this.crawling=!0,"Program"!==e.type&&lC(qS)){for(var n,s=p(qS.enter);!(n=s()).done;)n.value.call(a,e,a);var o=qS[e.type];if(o)for(var i,d=p(o.enter);!(i=d()).done;)i.value.call(a,e,a)}e.traverse(qS,a),this.crawling=!1;for(var u,c=p(a.assignments);!(u=c()).done;){for(var l=u.value,f=l.getAssignmentIdentifiers(),g=0,m=Object.keys(f);g1&&(r+=t),"_"+r},HS.prototype.toArray=function(e,t,r){if(iS(e)){var a=this.getBinding(e.name);if(null!=a&&a.constant&&a.path.isGenericType("Array"))return e}if($C(e))return e;if(iS(e,{name:"arguments"}))return KC(AS(AS(AS(XC("Array"),XC("prototype")),XC("slice")),XC("call")),[e]);var n,s=[e];return!0===t?n="toConsumableArray":"number"===typeof t?(s.push(CS(t)),n="slicedToArray"):n="toArray",r&&(s.unshift(this.path.hub.addHelper(n)),n="maybeArrayLike"),KC(this.path.hub.addHelper(n),s)},HS.prototype.getAllBindingsOfKind=function(){for(var e=Object.create(null),t=arguments.length,r=new Array(t),a=0;a0)throw new Error("Invalid string. Length must be a multiple of 4");s="="===e[i-2]?2:"="===e[i-1]?1:0,o=new XS(3*i/4-s),a=s>0?i-4:i;var d=0;for(t=0,r=0;t>16&255,o[d++]=n>>8&255,o[d++]=255&n;return 2===s?(n=JS[e.charCodeAt(t)]<<2|JS[e.charCodeAt(t+1)]>>4,o[d++]=255&n):1===s&&(n=JS[e.charCodeAt(t)]<<10|JS[e.charCodeAt(t+1)]<<4|JS[e.charCodeAt(t+2)]>>2,o[d++]=n>>8&255,o[d++]=255&n),o}function eT(e){return YS[e>>18&63]+YS[e>>12&63]+YS[e>>6&63]+YS[63&e]}function tT(e,t,r){for(var a,n=[],s=t;sd?d:i+o));return 1===a?(t=e[r-1],n+=YS[t>>2],n+=YS[t<<4&63],n+="=="):2===a&&(t=(e[r-2]<<8)+e[r-1],n+=YS[t>>10],n+=YS[t>>4&63],n+=YS[t<<2&63],n+="="),s.push(n),s.join("")}function aT(e,t,r,a,n){var s,o,i=8*n-a-1,d=(1<>1,c=-7,l=r?n-1:0,p=r?-1:1,f=e[t+l];for(l+=p,s=f&(1<<-c)-1,f>>=-c,c+=i;c>0;s=256*s+e[t+l],l+=p,c-=8);for(o=s&(1<<-c)-1,s>>=-c,c+=a;c>0;o=256*o+e[t+l],l+=p,c-=8);if(0===s)s=1-u;else{if(s===d)return o?NaN:1/0*(f?-1:1);o+=Math.pow(2,a),s-=u}return(f?-1:1)*o*Math.pow(2,s-a)}function nT(e,t,r,a,n,s){var o,i,d,u=8*s-n-1,c=(1<>1,p=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,f=a?0:s-1,g=a?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(i=isNaN(t)?1:0,o=c):(o=Math.floor(Math.log(t)/Math.LN2),t*(d=Math.pow(2,-o))<1&&(o--,d*=2),(t+=o+l>=1?p/d:p*Math.pow(2,1-l))*d>=2&&(o++,d/=2),o+l>=c?(i=0,o=c):o+l>=1?(i=(t*d-1)*Math.pow(2,n),o+=l):(i=t*Math.pow(2,l-1)*Math.pow(2,n),o=0));n>=8;e[r+f]=255&i,f+=g,i/=256,n-=8);for(o=o<0;e[r+f]=255&o,f+=g,o/=256,u-=8);e[r+f-g]|=128*m}var sT={}.toString,oT=Array.isArray||function(e){return"[object Array]"==sT.call(e)},iT=50;function dT(){return cT.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function uT(e,t){if(dT()=dT())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+dT().toString(16)+" bytes");return 0|e}function xT(e){return!(null==e||!e._isBuffer)}function RT(e,t){if(xT(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var a=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return $T(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return ek(e).length;default:if(a)return $T(e).length;t=(""+t).toLowerCase(),a=!0}}function ET(e,t,r){var a=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return MT(this,t,r);case"utf8":case"utf-8":return _T(this,t,r);case"ascii":return OT(this,t,r);case"latin1":case"binary":return NT(this,t,r);case"base64":return FT(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return LT(this,t,r);default:if(a)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),a=!0}}function DT(e,t,r){var a=e[t];e[t]=e[r],e[r]=a}function wT(e,t,r,a,n){if(0===e.length)return-1;if("string"===typeof r?(a=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=n?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(n)return-1;r=e.length-1}else if(r<0){if(!n)return-1;r=0}if("string"===typeof t&&(t=cT.from(t,a)),xT(t))return 0===t.length?-1:jT(e,t,r,a,n);if("number"===typeof t)return t&=255,cT.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):jT(e,[t],r,a,n);throw new TypeError("val must be string, number or Buffer")}function jT(e,t,r,a,n){var s,o=1,i=e.length,d=t.length;if(void 0!==a&&("ucs2"===(a=String(a).toLowerCase())||"ucs-2"===a||"utf16le"===a||"utf-16le"===a)){if(e.length<2||t.length<2)return-1;o=2,i/=2,d/=2,r/=2}function u(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(n){var c=-1;for(s=r;si&&(r=i-d),s=r;s>=0;s--){for(var l=!0,p=0;pn&&(a=n):a=n;var s=t.length;if(s%2!==0)throw new TypeError("Invalid hex string");a>s/2&&(a=s/2);for(var o=0;o239?4:u>223?3:u>191?2:1;if(n+l<=r)switch(l){case 1:u<128&&(c=u);break;case 2:128===(192&(s=e[n+1]))&&(d=(31&u)<<6|63&s)>127&&(c=d);break;case 3:s=e[n+1],o=e[n+2],128===(192&s)&&128===(192&o)&&(d=(15&u)<<12|(63&s)<<6|63&o)>2047&&(d<55296||d>57343)&&(c=d);break;case 4:s=e[n+1],o=e[n+2],i=e[n+3],128===(192&s)&&128===(192&o)&&128===(192&i)&&(d=(15&u)<<18|(63&s)<<12|(63&o)<<6|63&i)>65535&&d<1114112&&(c=d)}null===c?(c=65533,l=1):c>65535&&(c-=65536,a.push(c>>>10&1023|55296),c=56320|1023&c),a.push(c),n+=l}return BT(a)}cT.TYPED_ARRAY_SUPPORT=void 0===F.TYPED_ARRAY_SUPPORT||F.TYPED_ARRAY_SUPPORT,dT(),cT.poolSize=8192,cT._augment=function(e){return e.__proto__=cT.prototype,e},cT.from=function(e,t,r){return lT(null,e,t,r)},cT.TYPED_ARRAY_SUPPORT&&(cT.prototype.__proto__=Uint8Array.prototype,cT.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&cT[Symbol.species]),cT.alloc=function(e,t,r){return fT(null,e,t,r)},cT.allocUnsafe=function(e){return gT(null,e)},cT.allocUnsafeSlow=function(e){return gT(null,e)},cT.isBuffer=ak,cT.compare=function(e,t){if(!xT(e)||!xT(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,a=t.length,n=0,s=Math.min(r,a);n0&&(e=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(e+=" ... ")),""},cT.prototype.compare=function(e,t,r,a,n){if(!xT(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===a&&(a=0),void 0===n&&(n=this.length),t<0||r>e.length||a<0||n>this.length)throw new RangeError("out of range index");if(a>=n&&t>=r)return 0;if(a>=n)return-1;if(t>=r)return 1;if(this===e)return 0;for(var s=(n>>>=0)-(a>>>=0),o=(r>>>=0)-(t>>>=0),i=Math.min(s,o),d=this.slice(a,n),u=e.slice(t,r),c=0;cn)&&(r=n),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");a||(a="utf8");for(var s=!1;;)switch(a){case"hex":return AT(this,e,t,r);case"utf8":case"utf-8":return CT(this,e,t,r);case"ascii":return ST(this,e,t,r);case"latin1":case"binary":return TT(this,e,t,r);case"base64":return kT(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return PT(this,e,t,r);default:if(s)throw new TypeError("Unknown encoding: "+a);a=(""+a).toLowerCase(),s=!0}},cT.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var IT=4096;function BT(e){var t=e.length;if(t<=IT)return String.fromCharCode.apply(String,e);for(var r="",a=0;aa)&&(r=a);for(var n="",s=t;sr)throw new RangeError("Trying to access beyond buffer length")}function qT(e,t,r,a,n,s){if(!xT(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>n||te.length)throw new RangeError("Index out of range")}function WT(e,t,r,a){t<0&&(t=65535+t+1);for(var n=0,s=Math.min(e.length-r,2);n>>8*(a?n:1-n)}function HT(e,t,r,a){t<0&&(t=4294967295+t+1);for(var n=0,s=Math.min(e.length-r,4);n>>8*(a?n:3-n)&255}function zT(e,t,r,a,n,s){if(r+a>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function GT(e,t,r,a,n){return n||zT(e,t,r,4),nT(e,t,r,a,23,4),r+4}function VT(e,t,r,a,n){return n||zT(e,t,r,8),nT(e,t,r,a,52,8),r+8}cT.prototype.slice=function(e,t){var r,a=this.length;if((e=~~e)<0?(e+=a)<0&&(e=0):e>a&&(e=a),(t=void 0===t?a:~~t)<0?(t+=a)<0&&(t=0):t>a&&(t=a),t0&&(n*=256);)a+=this[e+--t]*n;return a},cT.prototype.readUInt8=function(e,t){return t||UT(e,1,this.length),this[e]},cT.prototype.readUInt16LE=function(e,t){return t||UT(e,2,this.length),this[e]|this[e+1]<<8},cT.prototype.readUInt16BE=function(e,t){return t||UT(e,2,this.length),this[e]<<8|this[e+1]},cT.prototype.readUInt32LE=function(e,t){return t||UT(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},cT.prototype.readUInt32BE=function(e,t){return t||UT(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},cT.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||UT(e,t,this.length);for(var a=this[e],n=1,s=0;++s=(n*=128)&&(a-=Math.pow(2,8*t)),a},cT.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||UT(e,t,this.length);for(var a=t,n=1,s=this[e+--a];a>0&&(n*=256);)s+=this[e+--a]*n;return s>=(n*=128)&&(s-=Math.pow(2,8*t)),s},cT.prototype.readInt8=function(e,t){return t||UT(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},cT.prototype.readInt16LE=function(e,t){t||UT(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},cT.prototype.readInt16BE=function(e,t){t||UT(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},cT.prototype.readInt32LE=function(e,t){return t||UT(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},cT.prototype.readInt32BE=function(e,t){return t||UT(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},cT.prototype.readFloatLE=function(e,t){return t||UT(e,4,this.length),aT(this,e,!0,23,4)},cT.prototype.readFloatBE=function(e,t){return t||UT(e,4,this.length),aT(this,e,!1,23,4)},cT.prototype.readDoubleLE=function(e,t){return t||UT(e,8,this.length),aT(this,e,!0,52,8)},cT.prototype.readDoubleBE=function(e,t){return t||UT(e,8,this.length),aT(this,e,!1,52,8)},cT.prototype.writeUIntLE=function(e,t,r,a){e=+e,t|=0,r|=0,a||qT(this,e,t,r,Math.pow(2,8*r)-1,0);var n=1,s=0;for(this[t]=255&e;++s=0&&(s*=256);)this[t+n]=e/s&255;return t+r},cT.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||qT(this,e,t,1,255,0),cT.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},cT.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||qT(this,e,t,2,65535,0),cT.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):WT(this,e,t,!0),t+2},cT.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||qT(this,e,t,2,65535,0),cT.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):WT(this,e,t,!1),t+2},cT.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||qT(this,e,t,4,4294967295,0),cT.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):HT(this,e,t,!0),t+4},cT.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||qT(this,e,t,4,4294967295,0),cT.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):HT(this,e,t,!1),t+4},cT.prototype.writeIntLE=function(e,t,r,a){if(e=+e,t|=0,!a){var n=Math.pow(2,8*r-1);qT(this,e,t,r,n-1,-n)}var s=0,o=1,i=0;for(this[t]=255&e;++s=0&&(o*=256);)e<0&&0===i&&0!==this[t+s+1]&&(i=1),this[t+s]=(e/o|0)-i&255;return t+r},cT.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||qT(this,e,t,1,127,-128),cT.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},cT.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||qT(this,e,t,2,32767,-32768),cT.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):WT(this,e,t,!0),t+2},cT.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||qT(this,e,t,2,32767,-32768),cT.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):WT(this,e,t,!1),t+2},cT.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||qT(this,e,t,4,2147483647,-2147483648),cT.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):HT(this,e,t,!0),t+4},cT.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||qT(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),cT.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):HT(this,e,t,!1),t+4},cT.prototype.writeFloatLE=function(e,t,r){return GT(this,e,t,!0,r)},cT.prototype.writeFloatBE=function(e,t,r){return GT(this,e,t,!1,r)},cT.prototype.writeDoubleLE=function(e,t,r){return VT(this,e,t,!0,r)},cT.prototype.writeDoubleBE=function(e,t,r){return VT(this,e,t,!1,r)},cT.prototype.copy=function(e,t,r,a){if(r||(r=0),a||0===a||(a=this.length),t>=e.length&&(t=e.length),t||(t=0),a>0&&a=this.length)throw new RangeError("sourceStart out of bounds");if(a<0)throw new RangeError("sourceEnd out of bounds");a>this.length&&(a=this.length),e.length-t=0;--n)e[n+t]=this[n+r];else if(s<1e3||!cT.TYPED_ARRAY_SUPPORT)for(n=0;n>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"===typeof e)for(s=t;s55295&&r<57344){if(!n){if(r>56319){(t-=3)>-1&&s.push(239,191,189);continue}if(o+1===a){(t-=3)>-1&&s.push(239,191,189);continue}n=r;continue}if(r<56320){(t-=3)>-1&&s.push(239,191,189),n=r;continue}r=65536+(n-55296<<10|r-56320)}else n&&(t-=3)>-1&&s.push(239,191,189);if(n=null,r<128){if((t-=1)<0)break;s.push(r)}else if(r<2048){if((t-=2)<0)break;s.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;s.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;s.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return s}function QT(e){for(var t=[],r=0;r>8,n=r%256,s.push(n),s.push(a);return s}function ek(e){return ZS(YT(e))}function tk(e,t,r,a){for(var n=0;n=t.length||n>=e.length);++n)t[n+r]=e[n];return n}function rk(e){return e!==e}function ak(e){return null!=e&&(!!e._isBuffer||nk(e)||sk(e))}function nk(e){return!!e.constructor&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function sk(e){return"function"===typeof e.readFloatLE&&"function"===typeof e.slice&&nk(e.slice(0,0))}var ok,ik={exports:{}};function dk(){return ok||(ok=1,function(e,t){!function(e,r){r(t)}(0,(function(e){for(var t=",".charCodeAt(0),r=";".charCodeAt(0),a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=new Uint8Array(64),s=new Uint8Array(128),o=0;o>>=1,u&&(n=-2147483648|-n),r[a]+=n,t}function p(e,r,a){return!(r>=a)&&e.charCodeAt(r)!==t}function f(e){e.sort(g)}function g(e,t){return e[0]-t[0]}function m(e){for(var a=new Int32Array(5),n=16384,s=n-36,o=new Uint8Array(n),i=o.subarray(0,s),u=0,c="",l=0;l0&&(u===n&&(c+=d.decode(o),u=0),o[u++]=r),0!==p.length){a[0]=0;for(var f=0;fs&&(c+=d.decode(i),o.copyWithin(0,s,u),u-=s),f>0&&(o[u++]=t),u=h(o,u,a,g,0),1!==g.length&&(u=h(o,u,a,g,1),u=h(o,u,a,g,2),u=h(o,u,a,g,3),4!==g.length&&(u=h(o,u,a,g,4)))}}}return c+d.decode(o.subarray(0,u))}function h(e,t,r,a,s){var o=a[s],i=o-r[s];r[s]=o,i=i<0?-i<<1|1:i<<1;do{var d=31&i;(i>>>=5)>0&&(d|=32),e[t++]=n[d]}while(i>0);return t}e.decode=u,e.encode=m,Object.defineProperty(e,"__esModule",{value:!0})}))}(0,ik.exports)),ik.exports}var uk,ck={exports:{}},lk={exports:{}};function pk(){return uk||(uk=1,e=lk,function(t,r){e.exports=r()}(0,(function(){var e=/^[\w+.-]+:\/\//,t=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,r=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function a(t){return e.test(t)}function n(e){return e.startsWith("//")}function s(e){return e.startsWith("/")}function o(e){return e.startsWith("file:")}function i(e){return/^[.?#]/.test(e)}function d(e){var r=t.exec(e);return c(r[1],r[2]||"",r[3],r[4]||"",r[5]||"/",r[6]||"",r[7]||"")}function u(e){var t=r.exec(e),a=t[2];return c("file:","",t[1]||"","",s(a)?a:"/"+a,t[3]||"",t[4]||"")}function c(e,t,r,a,n,s,o){return{scheme:e,user:t,host:r,port:a,path:n,query:s,hash:o,type:7}}function l(e){if(n(e)){var t=d("http:"+e);return t.scheme="",t.type=6,t}if(s(e)){var r=d("http://foo.com"+e);return r.scheme="",r.host="",r.type=5,r}if(o(e))return u(e);if(a(e))return d(e);var i=d("http://foo.com/"+e);return i.scheme="",i.host="",i.type=e?e.startsWith("?")?3:e.startsWith("#")?2:4:1,i}function p(e){if(e.endsWith("/.."))return e;var t=e.lastIndexOf("/");return e.slice(0,t+1)}function f(e,t){g(t,t.type),"/"===e.path?e.path=t.path:e.path=p(t.path)+e.path}function g(e,t){for(var r=t<=4,a=e.path.split("/"),n=1,s=0,o=!1,i=1;ia&&(a=s)}g(r,a);var o=r.query+r.hash;switch(a){case 2:case 3:return o;case 4:var d=r.path.slice(1);return d?i(t||e)&&!i(d)?"./"+d+o:d+o:o||".";case 5:return r.path+o;default:return r.scheme+"//"+r.user+r.host+r.port+r.path+o}}return m}))),lk.exports;var e}!function(e,t){!function(e,r){r(t,dk(),pk())}(0,(function(e,t,r){function a(e,t){return t&&!t.endsWith("/")&&(t+="/"),r(e,t)}function n(e){if(!e)return"";var t=e.lastIndexOf("/");return e.slice(0,t+1)}var s=0,o=1,i=2,d=3,u=4,c=1,p=2;function f(e,t){var r=g(e,0);if(r===e.length)return e;t||(e=e.slice());for(var a=r;a>1),o=e[n][s]-t;if(0===o)return b=!0,n;o<0?r=n+1:a=n-1}return b=!1,r-1}function x(e,t,r){for(var a=r+1;a=0&&e[a][s]===t;r=a--);return r}function E(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function D(e,t,r,a){var n=r.lastKey,o=r.lastNeedle,i=r.lastIndex,d=0,u=e.length-1;if(a===n){if(t===o)return b=-1!==i&&e[i][s]===t,i;t>=o?d=-1===i?0:i:u=i}return r.lastKey=a,r.lastNeedle=t,r.lastIndex=v(e,t,d,u)}function w(e,t){for(var r=t.map(A),a=0;at;a--)e[a]=e[a-1];e[t]=r}function A(){return{__proto__:null}}var C=function(e,t){var r=S(e);if(!("sections"in r))return new N(r,t);var a=[],n=[],s=[],o=[],i=[];return T(r,t,a,n,s,o,i,0,0,1/0,1/0),J({version:3,file:r.file,names:o,sources:n,sourcesContent:s,mappings:a,ignoreList:i})};function S(e){return"string"===typeof e?JSON.parse(e):e}function T(e,t,r,a,n,s,o,i,d,u,c){for(var l=e.sections,p=0;pg)return;for(var k=F(r,C),_=0===A?f:0,I=x[A],B=0;B=m)return;if(1!==O.length){var L=b+O[o],q=O[i],W=O[d];k.push(4===O.length?[M,L,q,W]:[M,L,q,W,v+O[u]])}else k.push([M])}}}function P(e,t){for(var r=0;r=a.length)return null;var n=a[t],s=te(n,M(e)._decodedMemo,t,r,O);return-1===s?null:n[s]}function W(e,t){var r=t.line,a=t.column,n=t.bias;if(--r<0)throw new Error(_);if(a<0)throw new Error(I);var s=U(e);if(r>=s.length)return Z(null,null,null,null);var c=s[r],l=te(c,M(e)._decodedMemo,r,a,n||O);if(-1===l)return Z(null,null,null,null);var p=c[l];if(1===p.length)return Z(null,null,null,null);var f=e.names;return Z(e.resolvedSources[p[o]],p[i]+1,p[d],5===p.length?f[p[u]]:null)}function H(e,t){return ae(e,t.source,t.line,t.column,t.bias||O,!1)}function z(e,t){return ae(e,t.source,t.line,t.column,t.bias||B,!0)}function G(e,t){for(var r=U(e),a=e.names,n=e.resolvedSources,s=0;s=0&&!(t>=e[a][n]);r=a--);return r}function A(e,t,r){for(var a=e.length;a>t;a--)e[a]=e[a-1];e[t]=r}function C(e){for(var t=e.length,r=t,a=r-1;a>=0&&!(e[a].length>0);r=a,a--);r1?this._indentChar.repeat(t):this._indentChar}else this._str+=t>1?String.fromCharCode(e).repeat(t):String.fromCharCode(e);10!==e?(this._mark(r.line,r.column,r.identifierName,r.identifierNamePos,r.filename),this._position.column+=t):(this._position.line++,this._position.column=0),this._canMarkIdName&&(r.identifierName=void 0,r.identifierNamePos=void 0)},t._append=function(e,t,r){var a=e.length,n=this._position;if(this._last=e.charCodeAt(a-1),++this._appendCount>4096?(this._str,this._buf+=this._str,this._str=e,this._appendCount=0):this._str+=e,r||this._map){var s=t.column,o=t.identifierName,i=t.identifierNamePos,d=t.filename,u=t.line;null==o&&null==i||!this._canMarkIdName||(t.identifierName=void 0,t.identifierNamePos=void 0);var c=e.indexOf("\n"),l=0;for(0!==c&&this._mark(u,s,o,i,d);-1!==c;)n.line++,n.column=0,(l=c+1)=0&&10===this._queue[r].char;r--)t++;return t===e&&10===this._last?t+1:t},t.endsWithCharAndNewline=function(){var e=this._queue,t=this._queueCursor;if(0!==t){if(10!==e[t-1].char)return;return t>1?e[t-2].char:this._last}},t.hasContent=function(){return 0!==this._queueCursor||!!this._last},t.exactSource=function(e,t){if(this._map){this.source("start",e);var r=e.identifierName,a=this._sourcePosition;r&&(this._canMarkIdName=!1,a.identifierName=r),t(),r&&(this._canMarkIdName=!0,a.identifierName=void 0,a.identifierNamePos=void 0),this.source("end",e)}else t()},t.source=function(e,t){this._map&&this._normalizePosition(e,t,0)},t.sourceWithOffset=function(e,t,r){this._map&&this._normalizePosition(e,t,r)},t._normalizePosition=function(e,t,r){var a=t[e],n=this._sourcePosition;a&&(n.line=a.line,n.column=Math.max(a.column+r,0),n.filename=t.filename)},t.getCurrentColumn=function(){for(var e=this._queue,t=this._queueCursor,r=-1,a=0,n=0;n",0],["&&",1],["|",2],["^",3],["&",4],["==",5],["===",5],["!=",5],["!==",5],["<",6],[">",6],["<=",6],[">=",6],["in",6],["instanceof",6],[">>",7],["<<",7],[">>>",7],["+",8],["-",8],["*",9],["/",9],["%",9],["**",10]]);function Kk(e,t){return"BinaryExpression"===t||"LogicalExpression"===t?Vk.get(e.operator):"TSAsExpression"===t||"TSSatisfiesExpression"===t?Vk.get("in"):void 0}function Yk(e){return"TSAsExpression"===e||"TSSatisfiesExpression"===e||"TSTypeAssertion"===e}var Jk=function(e,t){var r=t.type;return("ClassDeclaration"===r||"ClassExpression"===r)&&t.superClass===e},Xk=function(e,t){var r=t.type;return("MemberExpression"===r||"OptionalMemberExpression"===r)&&t.object===e||("CallExpression"===r||"OptionalCallExpression"===r||"NewExpression"===r)&&t.callee===e||"TaggedTemplateExpression"===r&&t.tag===e||"TSNonNullExpression"===r};function $k(e,t){return Ok(t)}function Qk(e,t,r){var a=t.type;return"UnionTypeAnnotation"===a||"IntersectionTypeAnnotation"===a||"ArrayTypeAnnotation"===a||Boolean(r&SP.arrowFlowReturnType)}function Zk(e,t){return Xk(e,t)||Jk(e,t)}function eP(e){return Boolean(e&(SP.expressionStatement|SP.arrowBody))}function tP(e,t,r){return eP(r)}function rP(e,t,r){return!e.async&&Boolean(r&SP.expressionStatement)}function aP(e,t){var r=t.type;if("BinaryExpression"===e.type&&"**"===e.operator&&"BinaryExpression"===r&&"**"===t.operator)return t.left===e;if(Jk(e,t))return!0;if(Xk(e,t)||"UnaryExpression"===r||"SpreadElement"===r||"AwaitExpression"===r)return!0;var a=Kk(t,r);if(null!=a){var n=Kk(e,e.type);if(a===n&&"BinaryExpression"===r&&t.right===e||a>n)return!0}}function nP(e,t){var r=t.type;return"ArrayTypeAnnotation"===r||"NullableTypeAnnotation"===r||"IntersectionTypeAnnotation"===r||"UnionTypeAnnotation"===r}function sP(e,t){return Uk(t)&&t.objectType===e}function oP(e,t){return("AssignmentExpression"===t.type||"AssignmentPattern"===t.type)&&t.left===e||"BinaryExpression"===t.type&&("|"===t.operator||"&"===t.operator)&&e===t.left||aP(e,t)}function iP(e,t){var r=t.type;return"TSArrayType"===r||"TSOptionalType"===r||"TSIntersectionType"===r||"TSRestType"===r}function dP(e,t){var r=t.type;return"TSArrayType"===r||"TSOptionalType"===r}function uP(e,t){var r=t.type;return("CallExpression"===r||"OptionalCallExpression"===r||"NewExpression"===r||"TSInstantiationExpression"===r)&&!!t.typeParameters}function cP(e,t,r,a){return"in"===e.operator&&a}function lP(e,t){var r=t.type;return!("SequenceExpression"===r||"ParenthesizedExpression"===r||"MemberExpression"===r&&t.property===e||"OptionalMemberExpression"===r&&t.property===e||"TemplateLiteral"===r)&&("ClassDeclaration"===r||("ForOfStatement"===r?t.right===e:"ExportDefaultDeclaration"===r||!Gk(t)))}function pP(e,t){var r=t.type;return"BinaryExpression"===r||"LogicalExpression"===r||"UnaryExpression"===r||"SpreadElement"===r||Xk(e,t)||"AwaitExpression"===r&&zk(e)||"ConditionalExpression"===r&&e===t.test||Jk(e,t)||Yk(r)}function fP(e,t,r){return Boolean(r&(SP.expressionStatement|SP.exportDefault))}function gP(e,t){return Xk(e,t)||Nk(t)&&"**"===t.operator&&t.left===e||Jk(e,t)}function mP(e,t,r){return Boolean(r&(SP.expressionStatement|SP.exportDefault))}function hP(e,t){var r=t.type;return!!("UnaryExpression"===r||"SpreadElement"===r||"BinaryExpression"===r||"LogicalExpression"===r||"ConditionalExpression"===r&&t.test===e||"AwaitExpression"===r||Yk(r))||gP(e,t)}function yP(e,t){return Mk(t)&&t.callee===e||qk(t)&&t.object===e}function bP(e,t,r){return!(!eP(r)||!Wk(e.left))||hP(e,t)}function vP(e,t){var r=t.type;if(Yk(r))return!0;if("LogicalExpression"!==r)return!1;switch(e.operator){case"||":return"??"===t.operator||"&&"===t.operator;case"&&":return"??"===t.operator;case"??":return"??"!==t.operator}}function xP(e,t,r,a,n){var s,o=t.type;if(null!=(s=e.extra)&&s.parenthesized&&"AssignmentExpression"===o&&t.left===e){var i=t.right.type;if(("FunctionExpression"===i||"ClassExpression"===i)&&null==t.right.id)return!0}return(!n||n(e)===e.name)&&("let"===e.name?!!((qk(t,{object:e,computed:!0})||Hk(t,{object:e,computed:!0,optional:!1}))&&r&(SP.expressionStatement|SP.forHead|SP.forInHead))||Boolean(r&SP.forOfHead):"async"===e.name&&Lk(t,{left:e,await:!1}))}var RP=ui,EP=ii,DP=Fe,wP=Oa,jP=et,AP=tt,CP=ut,SP={expressionStatement:1,arrowBody:2,exportDefault:4,forHead:8,forInHead:16,forOfHead:32,arrowFlowReturnType:64};function TP(e){var t=new Map;function r(e,r){var a=t.get(e);t.set(e,a?function(e,t,n,s,o){var i;return null!=(i=a(e,t,n,s,o))?i:r(e,t,n,s,o)}:r)}for(var a=0,n=Object.keys(e);a=0;a--){var n=e[r[a]];if(n===t)return!0;if(Array.isArray(n)){for(var s=n.length-1;s>=0&&null===n[s];)s--;return s>=0&&n[s]===t}if(n)return!1}return!1}TP(Bk);var BP=D().mark(LP),OP=bx,NP=ii,MP=function(){function e(e,t,r){var a=this;this._tokens=void 0,this._source=void 0,this._nodesToTokenIndexes=new Map,this._nodesOccurrencesCountCache=new Map,this._tokensCache=new Map,this._tokens=t,this._source=r,OP(e,(function(e){var t=a._getTokensIndexesOfNode(e);t.length>0&&a._nodesToTokenIndexes.set(e,t)})),this._tokensCache=null}var t=e.prototype;return t.has=function(e){return this._nodesToTokenIndexes.has(e)},t.getIndexes=function(e){return this._nodesToTokenIndexes.get(e)},t.find=function(e,t){var r=this._nodesToTokenIndexes.get(e);if(r)for(var a=0;a=0;a--){var n=r[a];if(t(this._tokens[n],n))return n}return-1},t.findMatching=function(e,t,r){void 0===r&&(r=0);var a=this._nodesToTokenIndexes.get(e);if(a){var n=0,s=r;if(s>1){var o=this._nodesOccurrencesCountCache.get(e);o&&o.test===t&&o.count0&&this._nodesOccurrencesCountCache.set(e,{test:t,count:s,i:n}),i;r--}}}return null},t.matchesOriginal=function(e,t){return e.end-e.start===t.length&&(null!=e.value?e.value===t:this._source.startsWith(t,e.start))},t.startMatches=function(e,t){var r=this._nodesToTokenIndexes.get(e);if(!r)return!1;var a=this._tokens[r[0]];return a.start===e.start&&this.matchesOriginal(a,t)},t.endMatches=function(e,t){var r=this._nodesToTokenIndexes.get(e);if(!r)return!1;var a=this._tokens[r[r.length-1]];return a.end===e.end&&this.matchesOriginal(a,t)},t._getTokensIndexesOfNode=function(e){if(null==e.start||null==e.end)return[];var t=this._findTokensOfNode(e,0,this._tokens.length-1),r=t.first,a=t.last,n=r,s=LP(e);"ExportNamedDeclaration"!==e.type&&"ExportDefaultDeclaration"!==e.type||!e.declaration||"ClassDeclaration"!==e.declaration.type||s.next();for(var o,i=[],d=p(s);!(o=d()).done;){var u=o.value;if(null!=u&&null!=u.start&&null!=u.end){for(var c=this._findTokensOfNode(u,n,a),l=c.first,f=n;f>1;if(ethis._tokens[a].start))return a;t=a+1}}return t},t._findLastTokenOfNode=function(e,t,r){for(;t<=r;){var a=r+t>>1;if(ethis._tokens[a].end))return a;t=a+1}}return r},l(e)}();function LP(e){var t,r,a,n,s,o;return D().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if("TemplateLiteral"!==e.type){i.next=13;break}return i.next=3,e.quasis[0];case 3:t=1;case 4:if(!(t1,a?function(e){this.token(",",!1,e),this.newline()}:void 0),RF(t))if(EF(t)){if(t.init===e)return}else if(t.left===e)return;this.semicolon()}function VF(e){this.print(e.id),e.definite&&this.tokenChar(33),this.print(e.id.typeAnnotation),e.init&&(this.space(),this.tokenChar(61),this.space(),this.print(e.init))}var KF=St,YF=Tt;function JF(e,t){(KF(t)||YF(t))&&this._shouldPrintDecoratorsBeforeExport(t)||this.printJoin(e.decorators),e.declare&&(this.word("declare"),this.space()),e.abstract&&(this.word("abstract"),this.space()),this.word("class"),e.id&&(this.space(),this.print(e.id)),this.print(e.typeParameters),e.superClass&&(this.space(),this.word("extends"),this.space(),this.print(e.superClass),this.print(e.superTypeParameters)),e.implements&&(this.space(),this.word("implements"),this.space(),this.printList(e.implements)),this.space(),this.print(e.body)}function XF(e){if(this.tokenChar(123),0===e.body.length)this.tokenChar(125);else{this.newline();var t=$F(this,e);null==t||t(-1);var r=this.enterDelimited();this.printJoin(e.body,!0,!0,t,!0),r(),this.endsWith(10)||this.newline(),this.rightBrace(e)}}function $F(e,t){if(!e.tokenMap||null==t.start||null==t.end)return null;var r=e.tokenMap.getIndexes(t);if(!r)return null;var a=1,n=0,s=0,o=function(){for(;s"),this.space(),this.tokenContext|=SP.arrowBody,this.print(e.body)}function g_(e){var t,r;if(1!==e.params.length)return!0;if(e.typeParameters||e.returnType||e.predicate)return!0;var a=e.params[0];if(!s_(a)||a.typeAnnotation||a.optional||null!=(t=a.leadingComments)&&t.length||null!=(r=a.trailingComments)&&r.length)return!0;if(this.tokenMap){if(null==e.loc)return!0;if(null!==this.tokenMap.findMatching(e,"("))return!0;var n=this.tokenMap.findMatching(e,"=>");return null==(null==n?void 0:n.loc)||n.loc.start.line!==e.loc.start.line}return!!this.format.retainLines}function m_(e,t){var r=e;if(!r&&t){var a=t.type;"VariableDeclarator"===a?r=t.id:"AssignmentExpression"===a||"AssignmentPattern"===a?r=t.left:"ObjectProperty"===a||"ClassProperty"===a?t.computed&&"StringLiteral"!==t.key.type||(r=t.key):"ClassPrivateProperty"!==a&&"ClassAccessorProperty"!==a||(r=t.key)}if(r){var n,s,o;if("Identifier"===r.type)n={pos:null==(s=r.loc)?void 0:s.start,name:(null==(o=r.loc)?void 0:o.identifierName)||r.name};else if("PrivateName"===r.type){var i;n={pos:null==(i=r.loc)?void 0:i.start,name:"#"+r.id.name}}else if("StringLiteral"===r.type){var d;n={pos:null==(d=r.loc)?void 0:d.start,name:r.value}}return n}}var h_=At,y_=Ma,b_=Jt,v_=_t,x_=It,R_=ls;function E_(e){"type"!==e.importKind&&"typeof"!==e.importKind||(this.word(e.importKind),this.space()),this.print(e.imported),e.local&&e.local.name!==e.imported.name&&(this.space(),this.word("as"),this.space(),this.print(e.local))}function D_(e){this.print(e.local)}function w_(e){this.print(e.exported)}function j_(e){"type"===e.exportKind&&(this.word("type"),this.space()),this.print(e.local),e.exported&&e.local.name!==e.exported.name&&(this.space(),this.word("as"),this.space(),this.print(e.exported))}function A_(e){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(e.exported)}var C_=!1;function S_(e,t){var r=this.format.importAttributesKeyword,a=e.attributes,n=e.assertions;!a||r||C_||(C_=!0,console.warn('You are using import attributes, without specifying the desired output syntax.\nPlease specify the "importAttributesKeyword" generator option, whose value can be one of:\n - "with" : `import { a } from "b" with { type: "json" };`\n - "assert" : `import { a } from "b" assert { type: "json" };`\n - "with-legacy" : `import { a } from "b" with type: "json";`\n'));var s="assert"===r||!r&&n;if(this.word(s?"assert":"with"),this.space(),s||"with"===r){var o=t?1:0;this.token("{",null,o),this.space(),this.printList(a||n,this.shouldPrintTrailingComma("}")),this.space(),this.token("}",null,o)}else this.printList(a||n)}function T_(e){var t,r;this.word("export"),this.space(),"type"===e.exportKind&&(this.word("type"),this.space()),this.tokenChar(42),this.space(),this.word("from"),this.space(),null!=(t=e.attributes)&&t.length||null!=(r=e.assertions)&&r.length?(this.print(e.source,!0),this.space(),this._printAttributes(e,!1)):this.print(e.source),this.semicolon()}function k_(e,t){h_(t.declaration)&&e._shouldPrintDecoratorsBeforeExport(t)&&e.printJoin(t.declaration.decorators)}function P_(e){if(k_(this,e),this.word("export"),this.space(),e.declaration){var t=e.declaration;this.print(t),R_(t)||this.semicolon()}else{"type"===e.exportKind&&(this.word("type"),this.space());for(var r=e.specifiers.slice(0),a=!1;;){var n=r[0];if(!y_(n)&&!b_(n))break;a=!0,this.print(r.shift()),r.length&&(this.tokenChar(44),this.space())}var s,o,i=!1;(r.length||!r.length&&!a)&&(i=!0,this.tokenChar(123),r.length&&(this.space(),this.printList(r,this.shouldPrintTrailingComma("}")),this.space()),this.tokenChar(125)),e.source&&(this.space(),this.word("from"),this.space(),null!=(s=e.attributes)&&s.length||null!=(o=e.assertions)&&o.length?(this.print(e.source,!0),this.space(),this._printAttributes(e,i)):this.print(e.source)),this.semicolon()}}function F_(e){k_(this,e),this.word("export"),this.noIndentInnerCommentsHere(),this.space(),this.word("default"),this.space(),this.tokenContext|=SP.exportDefault;var t=e.declaration;this.print(t),R_(t)||this.semicolon()}function __(e){var t,r;this.word("import"),this.space();var a="type"===e.importKind||"typeof"===e.importKind;a?(this.noIndentInnerCommentsHere(),this.word(e.importKind),this.space()):e.module?(this.noIndentInnerCommentsHere(),this.word("module"),this.space()):e.phase&&(this.noIndentInnerCommentsHere(),this.word(e.phase),this.space());for(var n=e.specifiers.slice(0),s=!!n.length;s;){var o=n[0];if(!v_(o)&&!x_(o))break;this.print(n.shift()),n.length&&(this.tokenChar(44),this.space())}var i=!1;n.length?(i=!0,this.tokenChar(123),this.space(),this.printList(n,this.shouldPrintTrailingComma("}")),this.space(),this.tokenChar(125)):a&&!s&&(i=!0,this.tokenChar(123),this.tokenChar(125)),(s||a)&&(this.space(),this.word("from"),this.space()),null!=(t=e.attributes)&&t.length||null!=(r=e.assertions)&&r.length?(this.print(e.source,!0),this.space(),this._printAttributes(e,i)):this.print(e.source),this.semicolon()}function I_(e){this.print(e.key),this.tokenChar(58),this.space(),this.print(e.value)}function B_(e){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(e.local)}function O_(e){this.word("import"),e.phase&&(this.tokenChar(46),this.word(e.phase)),this.tokenChar(40),this.print(e.source),null!=e.options&&(this.tokenChar(44),this.space(),this.print(e.options)),this.tokenChar(41)}var N_={},M_=N_.hasOwnProperty,L_=function(e,t){for(var r in e)M_.call(e,r)&&t(r,e[r])},U_=function(e,t){return t?(L_(t,(function(t,r){e[t]=r})),e):e},q_=function(e,t){for(var r=e.length,a=-1;++a2?W_(p):"\\x"+("00"+p).slice(-2)})),"`"==o&&(s=s.replace(/\$\{/g,"\\${")),t.isScriptContext&&(s=s.replace(/<\/(script|style)/gi,"<\\/$1").replace(//, '$2') || '')) {\n return\n };\n if (codeBlockParames) {\n const nextNode = nextChild(data, i, 'pre', codeBlockParames)\n if (nextNode) return;\n element.value = (element.value || '').replace(/^(\\n|\\s)+/, '')\n return element;\n } else {\n element.value = (element.value || '').replace(/^(\\n|\\s)+/, '')\n return element;\n }\n }\n }\n }\n return\n}\n\n/**\n * 获取代码注视的位置\n * @param data 数据\n * @param index 当前数据所在的位置\n * @returns 返回 当前参数数据 Object,`{}`\n */\nexport const getCommentObject = ({ value = '' }: Comment): Properties => {\n const param = getURLParameters(value.replace(/^/, '$1').replace(/^rehype:/, ''));\n Object.keys(param).forEach((keyName: string) => {\n if (param[keyName] === 'true') {\n param[keyName] = true;\n }\n if (param[keyName] === 'false') {\n param[keyName] = false;\n }\n if (typeof param[keyName] === 'string' && !/^0/.test(param[keyName] as string) && !isNaN(+param[keyName])) {\n param[keyName] = +param[keyName];\n }\n })\n return param;\n}\n\nexport type DataConfig = {\n 'data-config': Properties\n}\n\nexport const propertiesHandle = (defaultAttrs?: Properties | null, attrs?: Properties, type?: RehypeAttrsOptions['properties']): Properties | DataConfig => {\n if (type === 'string') {\n return { ...defaultAttrs, 'data-config': JSON.stringify({ ...attrs, rehyp: true })}\n } else if (type === 'attr') {\n return { ...defaultAttrs, ...attrs}\n }\n return { ...defaultAttrs, 'data-config': { ...attrs, rehyp: true }}\n}","import type { Plugin } from 'unified';\nimport type { Root, Element, Comment, Properties, Literal } from 'hast';\nimport { visit } from 'unist-util-visit';\nimport { propertiesHandle, nextChild, prevChild, getCommentObject } from './utils.js';\n\nexport type RehypeAttrsOptions = {\n /**\n * ## `data`\n * \n * ```markdown\n * text\n * \n * ```\n * 👇👇👇👇👇\n * ```html\n *

text

\n * ```\n * \n * ## `string`\n * \n * ```markdown\n * text\n * \n * ```\n * \n * 👇👇👇👇👇\n * \n * ```html\n *

text

\n * ```\n * \n * ## attr\n * \n * ```markdown\n * text\n * \n * ```\n * 👇👇👇👇👇\n * ```html\n *

text

\n * ```\n * @default `data`\n */\n properties?: 'data' | 'string' | 'attr';\n /**\n * Code block passing parameters\n */\n codeBlockParames?: boolean;\n}\n\nconst rehypeAttrs: Plugin<[RehypeAttrsOptions?], Root> = (options = {}) => {\n const { properties = 'data', codeBlockParames = true } = options;\n return (tree) => {\n visit(tree, 'element', (node, index, parent) => {\n if (codeBlockParames && node.tagName === 'pre' && node && Array.isArray(node.children) && parent && Array.isArray(parent.children) && parent.children.length > 1) {\n const firstChild = node.children[0] as Element;\n if (firstChild && firstChild.tagName === 'code' && typeof index === 'number') {\n const child = prevChild(parent.children as Literal[], index);\n if (child) {\n const attr = getCommentObject(child);\n if (Object.keys(attr).length > 0) {\n node.properties = { ...node.properties, ...{ 'data-type': 'rehyp' } }\n firstChild.properties = propertiesHandle(firstChild.properties, attr, properties) as Properties\n }\n }\n }\n }\n\n if (/^(em|strong|b|a|i|p|pre|kbd|blockquote|h(1|2|3|4|5|6)|code|table|img|del|ul|ol)$/.test(node.tagName) && parent && Array.isArray(parent.children) && typeof index === 'number') {\n const child = nextChild(parent.children, index, '', codeBlockParames)\n if (child) {\n const attr = getCommentObject(child as Comment)\n if (Object.keys(attr).length > 0) {\n node.properties = propertiesHandle(node.properties, attr, properties) as Properties\n }\n }\n }\n });\n }\n}\n\n\nexport default rehypeAttrs\n","import {\n VOID, PRIMITIVE,\n ARRAY, OBJECT,\n DATE, REGEXP, MAP, SET,\n ERROR, BIGINT\n} from './types.js';\n\nconst env = typeof self === 'object' ? self : globalThis;\n\nconst deserializer = ($, _) => {\n const as = (out, index) => {\n $.set(index, out);\n return out;\n };\n\n const unpair = index => {\n if ($.has(index))\n return $.get(index);\n\n const [type, value] = _[index];\n switch (type) {\n case PRIMITIVE:\n case VOID:\n return as(value, index);\n case ARRAY: {\n const arr = as([], index);\n for (const index of value)\n arr.push(unpair(index));\n return arr;\n }\n case OBJECT: {\n const object = as({}, index);\n for (const [key, index] of value)\n object[unpair(key)] = unpair(index);\n return object;\n }\n case DATE:\n return as(new Date(value), index);\n case REGEXP: {\n const {source, flags} = value;\n return as(new RegExp(source, flags), index);\n }\n case MAP: {\n const map = as(new Map, index);\n for (const [key, index] of value)\n map.set(unpair(key), unpair(index));\n return map;\n }\n case SET: {\n const set = as(new Set, index);\n for (const index of value)\n set.add(unpair(index));\n return set;\n }\n case ERROR: {\n const {name, message} = value;\n return as(new env[name](message), index);\n }\n case BIGINT:\n return as(BigInt(value), index);\n case 'BigInt':\n return as(Object(BigInt(value)), index);\n }\n return as(new env[type](value), index);\n };\n\n return unpair;\n};\n\n/**\n * @typedef {Array} Record a type representation\n */\n\n/**\n * Returns a deserialized value from a serialized array of Records.\n * @param {Record[]} serialized a previously serialized value.\n * @returns {any}\n */\nexport const deserialize = serialized => deserializer(new Map, serialized)(0);\n","export const VOID = -1;\nexport const PRIMITIVE = 0;\nexport const ARRAY = 1;\nexport const OBJECT = 2;\nexport const DATE = 3;\nexport const REGEXP = 4;\nexport const MAP = 5;\nexport const SET = 6;\nexport const ERROR = 7;\nexport const BIGINT = 8;\n// export const SYMBOL = 9;\n","import {\n VOID, PRIMITIVE,\n ARRAY, OBJECT,\n DATE, REGEXP, MAP, SET,\n ERROR, BIGINT\n} from './types.js';\n\nconst EMPTY = '';\n\nconst {toString} = {};\nconst {keys} = Object;\n\nconst typeOf = value => {\n const type = typeof value;\n if (type !== 'object' || !value)\n return [PRIMITIVE, type];\n\n const asString = toString.call(value).slice(8, -1);\n switch (asString) {\n case 'Array':\n return [ARRAY, EMPTY];\n case 'Object':\n return [OBJECT, EMPTY];\n case 'Date':\n return [DATE, EMPTY];\n case 'RegExp':\n return [REGEXP, EMPTY];\n case 'Map':\n return [MAP, EMPTY];\n case 'Set':\n return [SET, EMPTY];\n }\n\n if (asString.includes('Array'))\n return [ARRAY, asString];\n\n if (asString.includes('Error'))\n return [ERROR, asString];\n\n return [OBJECT, asString];\n};\n\nconst shouldSkip = ([TYPE, type]) => (\n TYPE === PRIMITIVE &&\n (type === 'function' || type === 'symbol')\n);\n\nconst serializer = (strict, json, $, _) => {\n\n const as = (out, value) => {\n const index = _.push(out) - 1;\n $.set(value, index);\n return index;\n };\n\n const pair = value => {\n if ($.has(value))\n return $.get(value);\n\n let [TYPE, type] = typeOf(value);\n switch (TYPE) {\n case PRIMITIVE: {\n let entry = value;\n switch (type) {\n case 'bigint':\n TYPE = BIGINT;\n entry = value.toString();\n break;\n case 'function':\n case 'symbol':\n if (strict)\n throw new TypeError('unable to serialize ' + type);\n entry = null;\n break;\n case 'undefined':\n return as([VOID], value);\n }\n return as([TYPE, entry], value);\n }\n case ARRAY: {\n if (type)\n return as([type, [...value]], value);\n \n const arr = [];\n const index = as([TYPE, arr], value);\n for (const entry of value)\n arr.push(pair(entry));\n return index;\n }\n case OBJECT: {\n if (type) {\n switch (type) {\n case 'BigInt':\n return as([type, value.toString()], value);\n case 'Boolean':\n case 'Number':\n case 'String':\n return as([type, value.valueOf()], value);\n }\n }\n\n if (json && ('toJSON' in value))\n return pair(value.toJSON());\n\n const entries = [];\n const index = as([TYPE, entries], value);\n for (const key of keys(value)) {\n if (strict || !shouldSkip(typeOf(value[key])))\n entries.push([pair(key), pair(value[key])]);\n }\n return index;\n }\n case DATE:\n return as([TYPE, value.toISOString()], value);\n case REGEXP: {\n const {source, flags} = value;\n return as([TYPE, {source, flags}], value);\n }\n case MAP: {\n const entries = [];\n const index = as([TYPE, entries], value);\n for (const [key, entry] of value) {\n if (strict || !(shouldSkip(typeOf(key)) || shouldSkip(typeOf(entry))))\n entries.push([pair(key), pair(entry)]);\n }\n return index;\n }\n case SET: {\n const entries = [];\n const index = as([TYPE, entries], value);\n for (const entry of value) {\n if (strict || !shouldSkip(typeOf(entry)))\n entries.push(pair(entry));\n }\n return index;\n }\n }\n\n const {message} = value;\n return as([TYPE, {name: type, message}], value);\n };\n\n return pair;\n};\n\n/**\n * @typedef {Array} Record a type representation\n */\n\n/**\n * Returns an array of serialized Records.\n * @param {any} value a serializable value.\n * @param {{json?: boolean, lossy?: boolean}?} options an object with a `lossy` or `json` property that,\n * if `true`, will not throw errors on incompatible types, and behave more\n * like JSON stringify would behave. Symbol and Function will be discarded.\n * @returns {Record[]}\n */\n export const serialize = (value, {json, lossy} = {}) => {\n const _ = [];\n return serializer(!(json || lossy), !!json, new Map, _)(value), _;\n};\n","import {deserialize} from './deserialize.js';\nimport {serialize} from './serialize.js';\n\n/**\n * @typedef {Array} Record a type representation\n */\n\n/**\n * Returns an array of serialized Records.\n * @param {any} any a serializable value.\n * @param {{transfer?: any[], json?: boolean, lossy?: boolean}?} options an object with\n * a transfer option (ignored when polyfilled) and/or non standard fields that\n * fallback to the polyfill if present.\n * @returns {Record[]}\n */\nexport default typeof structuredClone === \"function\" ?\n /* c8 ignore start */\n (any, options) => (\n options && ('json' in options || 'lossy' in options) ?\n deserialize(serialize(any, options)) : structuredClone(any)\n ) :\n (any, options) => deserialize(serialize(any, options));\n /* c8 ignore stop */\n\nexport {deserialize, serialize};\n","/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('hast').Properties} Properties\n */\n\n/**\n * @template {string} SimpleSelector\n * Selector type.\n * @template {string} DefaultTagName\n * Default tag name.\n * @typedef {(\n * SimpleSelector extends ''\n * ? DefaultTagName\n * : SimpleSelector extends `${infer TagName}.${infer Rest}`\n * ? ExtractTagName\n * : SimpleSelector extends `${infer TagName}#${infer Rest}`\n * ? ExtractTagName\n * : SimpleSelector extends string\n * ? SimpleSelector\n * : DefaultTagName\n * )} ExtractTagName\n * Extract tag name from a simple selector.\n */\n\nconst search = /[#.]/g\n\n/**\n * Create a hast element from a simple CSS selector.\n *\n * @template {string} Selector\n * Type of selector.\n * @template {string} [DefaultTagName='div']\n * Type of default tag name (default: `'div'`).\n * @param {Selector | null | undefined} [selector]\n * Simple CSS selector (optional).\n *\n * Can contain a tag name (`foo`), classes (`.bar`), and an ID (`#baz`).\n * Multiple classes are allowed.\n * Uses the last ID if multiple IDs are found.\n * @param {DefaultTagName | null | undefined} [defaultTagName='div']\n * Tag name to use if `selector` does not specify one (default: `'div'`).\n * @returns {Element & {tagName: ExtractTagName}}\n * Built element.\n */\nexport function parseSelector(selector, defaultTagName) {\n const value = selector || ''\n /** @type {Properties} */\n const props = {}\n let start = 0\n /** @type {string | undefined} */\n let previous\n /** @type {string | undefined} */\n let tagName\n\n while (start < value.length) {\n search.lastIndex = start\n const match = search.exec(value)\n const subvalue = value.slice(start, match ? match.index : value.length)\n\n if (subvalue) {\n if (!previous) {\n tagName = subvalue\n } else if (previous === '#') {\n props.id = subvalue\n } else if (Array.isArray(props.className)) {\n props.className.push(subvalue)\n } else {\n props.className = [subvalue]\n }\n\n start += subvalue.length\n }\n\n if (match) {\n previous = match[0]\n start++\n }\n }\n\n return {\n type: 'element',\n // @ts-expect-error: tag name is parsed.\n tagName: tagName || defaultTagName || 'div',\n properties: props,\n children: []\n }\n}\n","/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('hast').Nodes} Nodes\n * @typedef {import('hast').Root} Root\n * @typedef {import('hast').RootContent} RootContent\n *\n * @typedef {import('property-information').Info} Info\n * @typedef {import('property-information').Schema} Schema\n */\n\n/**\n * @typedef {Element | Root} Result\n * Result from a `h` (or `s`) call.\n *\n * @typedef {number | string} StyleValue\n * Value for a CSS style field.\n * @typedef {Record} Style\n * Supported value of a `style` prop.\n * @typedef {boolean | number | string | null | undefined} PrimitiveValue\n * Primitive property value.\n * @typedef {Array} ArrayValue\n * List of property values for space- or comma separated values (such as `className`).\n * @typedef {ArrayValue | PrimitiveValue} PropertyValue\n * Primitive value or list value.\n * @typedef {{[property: string]: PropertyValue | Style}} Properties\n * Acceptable value for element properties.\n *\n * @typedef {number | string | null | undefined} PrimitiveChild\n * Primitive children, either ignored (nullish), or turned into text nodes.\n * @typedef {Array} ArrayChild\n * List of children.\n * @typedef {Array} ArrayChildNested\n * List of children (deep).\n * @typedef {ArrayChild | Nodes | PrimitiveChild} Child\n * Acceptable child value.\n */\n\nimport {parse as commas} from 'comma-separated-tokens'\nimport {parseSelector} from 'hast-util-parse-selector'\nimport {find, normalize} from 'property-information'\nimport {parse as spaces} from 'space-separated-tokens'\n\nconst own = {}.hasOwnProperty\n\n/**\n * @param {Schema} schema\n * Schema to use.\n * @param {string} defaultTagName\n * Default tag name.\n * @param {Array | undefined} [caseSensitive]\n * Case-sensitive tag names (default: `undefined`).\n * @returns\n * `h`.\n */\nexport function createH(schema, defaultTagName, caseSensitive) {\n const adjust = caseSensitive && createAdjustMap(caseSensitive)\n\n /**\n * Hyperscript compatible DSL for creating virtual hast trees.\n *\n * @overload\n * @param {null | undefined} [selector]\n * @param {...Child} children\n * @returns {Root}\n *\n * @overload\n * @param {string} selector\n * @param {Properties} properties\n * @param {...Child} children\n * @returns {Element}\n *\n * @overload\n * @param {string} selector\n * @param {...Child} children\n * @returns {Element}\n *\n * @param {string | null | undefined} [selector]\n * Selector.\n * @param {Child | Properties | null | undefined} [properties]\n * Properties (or first child) (default: `undefined`).\n * @param {...Child} children\n * Children.\n * @returns {Result}\n * Result.\n */\n function h(selector, properties, ...children) {\n let index = -1\n /** @type {Result} */\n let node\n\n if (selector === undefined || selector === null) {\n node = {type: 'root', children: []}\n // Properties are not supported for roots.\n const child = /** @type {Child} */ (properties)\n children.unshift(child)\n } else {\n node = parseSelector(selector, defaultTagName)\n // Normalize the name.\n node.tagName = node.tagName.toLowerCase()\n if (adjust && own.call(adjust, node.tagName)) {\n node.tagName = adjust[node.tagName]\n }\n\n // Handle props.\n if (isChild(properties)) {\n children.unshift(properties)\n } else {\n /** @type {string} */\n let key\n\n for (key in properties) {\n if (own.call(properties, key)) {\n addProperty(schema, node.properties, key, properties[key])\n }\n }\n }\n }\n\n // Handle children.\n while (++index < children.length) {\n addChild(node.children, children[index])\n }\n\n if (node.type === 'element' && node.tagName === 'template') {\n node.content = {type: 'root', children: node.children}\n node.children = []\n }\n\n return node\n }\n\n return h\n}\n\n/**\n * Check if something is properties or a child.\n *\n * @param {Child | Properties} value\n * Value to check.\n * @returns {value is Child}\n * Whether `value` is definitely a child.\n */\nfunction isChild(value) {\n // Never properties if not an object.\n if (value === null || typeof value !== 'object' || Array.isArray(value)) {\n return true\n }\n\n // Never node without `type`; that’s the main discriminator.\n if (typeof value.type !== 'string') return false\n\n // Slower check: never property value if object or array with\n // non-number/strings.\n const record = /** @type {Record} */ (value)\n const keys = Object.keys(value)\n\n for (const key of keys) {\n const value = record[key]\n\n if (value && typeof value === 'object') {\n if (!Array.isArray(value)) return true\n\n const list = /** @type {Array} */ (value)\n\n for (const item of list) {\n if (typeof item !== 'number' && typeof item !== 'string') {\n return true\n }\n }\n }\n }\n\n // Also see empty `children` as a node.\n if ('children' in value && Array.isArray(value.children)) {\n return true\n }\n\n // Default to properties, someone can always pass an empty object,\n // put `data: {}` in a node,\n // or wrap it in an array.\n return false\n}\n\n/**\n * @param {Schema} schema\n * Schema.\n * @param {Properties} properties\n * Properties object.\n * @param {string} key\n * Property name.\n * @param {PropertyValue | Style} value\n * Property value.\n * @returns {undefined}\n * Nothing.\n */\nfunction addProperty(schema, properties, key, value) {\n const info = find(schema, key)\n let index = -1\n /** @type {PropertyValue} */\n let result\n\n // Ignore nullish and NaN values.\n if (value === undefined || value === null) return\n\n if (typeof value === 'number') {\n // Ignore NaN.\n if (Number.isNaN(value)) return\n\n result = value\n }\n // Booleans.\n else if (typeof value === 'boolean') {\n result = value\n }\n // Handle list values.\n else if (typeof value === 'string') {\n if (info.spaceSeparated) {\n result = spaces(value)\n } else if (info.commaSeparated) {\n result = commas(value)\n } else if (info.commaOrSpaceSeparated) {\n result = spaces(commas(value).join(' '))\n } else {\n result = parsePrimitive(info, info.property, value)\n }\n } else if (Array.isArray(value)) {\n result = value.concat()\n } else {\n result = info.property === 'style' ? style(value) : String(value)\n }\n\n if (Array.isArray(result)) {\n /** @type {Array} */\n const finalResult = []\n\n while (++index < result.length) {\n // Assume no booleans in array.\n const value = /** @type {number | string} */ (\n parsePrimitive(info, info.property, result[index])\n )\n finalResult[index] = value\n }\n\n result = finalResult\n }\n\n // Class names (which can be added both on the `selector` and here).\n if (info.property === 'className' && Array.isArray(properties.className)) {\n // Assume no booleans in `className`.\n const value = /** @type {number | string} */ (result)\n result = properties.className.concat(value)\n }\n\n properties[info.property] = result\n}\n\n/**\n * @param {Array} nodes\n * Children.\n * @param {Child} value\n * Child.\n * @returns {undefined}\n * Nothing.\n */\nfunction addChild(nodes, value) {\n let index = -1\n\n if (value === undefined || value === null) {\n // Empty.\n } else if (typeof value === 'string' || typeof value === 'number') {\n nodes.push({type: 'text', value: String(value)})\n } else if (Array.isArray(value)) {\n while (++index < value.length) {\n addChild(nodes, value[index])\n }\n } else if (typeof value === 'object' && 'type' in value) {\n if (value.type === 'root') {\n addChild(nodes, value.children)\n } else {\n nodes.push(value)\n }\n } else {\n throw new Error('Expected node, nodes, or string, got `' + value + '`')\n }\n}\n\n/**\n * Parse a single primitives.\n *\n * @param {Info} info\n * Property information.\n * @param {string} name\n * Property name.\n * @param {PrimitiveValue} value\n * Property value.\n * @returns {PrimitiveValue}\n * Property value.\n */\nfunction parsePrimitive(info, name, value) {\n if (typeof value === 'string') {\n if (info.number && value && !Number.isNaN(Number(value))) {\n return Number(value)\n }\n\n if (\n (info.boolean || info.overloadedBoolean) &&\n (value === '' || normalize(value) === normalize(name))\n ) {\n return true\n }\n }\n\n return value\n}\n\n/**\n * Serialize a `style` object as a string.\n *\n * @param {Style} value\n * Style object.\n * @returns {string}\n * CSS string.\n */\nfunction style(value) {\n /** @type {Array} */\n const result = []\n /** @type {string} */\n let key\n\n for (key in value) {\n if (own.call(value, key)) {\n result.push([key, value[key]].join(': '))\n }\n }\n\n return result.join('; ')\n}\n\n/**\n * Create a map to adjust casing.\n *\n * @param {Array} values\n * List of properly cased keys.\n * @returns {Record}\n * Map of lowercase keys to uppercase keys.\n */\nfunction createAdjustMap(values) {\n /** @type {Record} */\n const result = {}\n let index = -1\n\n while (++index < values.length) {\n result[values[index].toLowerCase()] = values[index]\n }\n\n return result\n}\n","export const svgCaseSensitiveTagNames = [\n 'altGlyph',\n 'altGlyphDef',\n 'altGlyphItem',\n 'animateColor',\n 'animateMotion',\n 'animateTransform',\n 'clipPath',\n 'feBlend',\n 'feColorMatrix',\n 'feComponentTransfer',\n 'feComposite',\n 'feConvolveMatrix',\n 'feDiffuseLighting',\n 'feDisplacementMap',\n 'feDistantLight',\n 'feDropShadow',\n 'feFlood',\n 'feFuncA',\n 'feFuncB',\n 'feFuncG',\n 'feFuncR',\n 'feGaussianBlur',\n 'feImage',\n 'feMerge',\n 'feMergeNode',\n 'feMorphology',\n 'feOffset',\n 'fePointLight',\n 'feSpecularLighting',\n 'feSpotLight',\n 'feTile',\n 'feTurbulence',\n 'foreignObject',\n 'glyphRef',\n 'linearGradient',\n 'radialGradient',\n 'solidColor',\n 'textArea',\n 'textPath'\n]\n","/**\n * @typedef {import('./create-h.js').Child} Child\n * Acceptable child value.\n * @typedef {import('./create-h.js').Properties} Properties\n * Acceptable value for element properties.\n * @typedef {import('./create-h.js').Result} Result\n * Result from a `h` (or `s`) call.\n */\n\n// Register the JSX namespace on `h`.\n/**\n * @typedef {import('./jsx-classic.js').Element} h.JSX.Element\n * @typedef {import('./jsx-classic.js').ElementChildrenAttribute} h.JSX.ElementChildrenAttribute\n * @typedef {import('./jsx-classic.js').IntrinsicAttributes} h.JSX.IntrinsicAttributes\n * @typedef {import('./jsx-classic.js').IntrinsicElements} h.JSX.IntrinsicElements\n */\n\n// Register the JSX namespace on `s`.\n/**\n * @typedef {import('./jsx-classic.js').Element} s.JSX.Element\n * @typedef {import('./jsx-classic.js').ElementChildrenAttribute} s.JSX.ElementChildrenAttribute\n * @typedef {import('./jsx-classic.js').IntrinsicAttributes} s.JSX.IntrinsicAttributes\n * @typedef {import('./jsx-classic.js').IntrinsicElements} s.JSX.IntrinsicElements\n */\n\nimport {html, svg} from 'property-information'\nimport {createH} from './create-h.js'\nimport {svgCaseSensitiveTagNames} from './svg-case-sensitive-tag-names.js'\n\n// Note: this explicit type is needed, otherwise TS creates broken types.\n/** @type {ReturnType} */\nexport const h = createH(html, 'div')\n\n// Note: this explicit type is needed, otherwise TS creates broken types.\n/** @type {ReturnType} */\nexport const s = createH(svg, 'g', svgCaseSensitiveTagNames)\n","/**\n * @import {VFile, Value} from 'vfile'\n * @import {Location} from 'vfile-location'\n */\n\n/**\n * Create an index of the given document to translate between line/column and\n * offset based positional info.\n *\n * Also implemented in Rust in [`wooorm/markdown-rs`][markdown-rs].\n *\n * [markdown-rs]: https://github.com/wooorm/markdown-rs/blob/main/src/util/location.rs\n *\n * @param {VFile | Value} file\n * File to index.\n * @returns {Location}\n * Accessors for index.\n */\nexport function location(file) {\n const value = String(file)\n /**\n * List, where each index is a line number (0-based), and each value is the\n * byte index *after* where the line ends.\n *\n * @type {Array}\n */\n const indices = []\n\n return {toOffset, toPoint}\n\n /** @type {Location['toPoint']} */\n function toPoint(offset) {\n if (typeof offset === 'number' && offset > -1 && offset <= value.length) {\n let index = 0\n\n while (true) {\n let end = indices[index]\n\n if (end === undefined) {\n const eol = next(value, indices[index - 1])\n end = eol === -1 ? value.length + 1 : eol + 1\n indices[index] = end\n }\n\n if (end > offset) {\n return {\n line: index + 1,\n column: offset - (index > 0 ? indices[index - 1] : 0) + 1,\n offset\n }\n }\n\n index++\n }\n }\n }\n\n /** @type {Location['toOffset']} */\n function toOffset(point) {\n if (\n point &&\n typeof point.line === 'number' &&\n typeof point.column === 'number' &&\n !Number.isNaN(point.line) &&\n !Number.isNaN(point.column)\n ) {\n while (indices.length < point.line) {\n const from = indices[indices.length - 1]\n const eol = next(value, from)\n const end = eol === -1 ? value.length + 1 : eol + 1\n if (from === end) break\n indices.push(end)\n }\n\n const offset =\n (point.line > 1 ? indices[point.line - 2] : 0) + point.column - 1\n // The given `column` could not exist on this line.\n if (offset < indices[point.line - 1]) return offset\n }\n }\n}\n\n/**\n * @param {string} value\n * @param {number} from\n */\nfunction next(value, from) {\n const cr = value.indexOf('\\r', from)\n const lf = value.indexOf('\\n', from)\n if (lf === -1) return cr\n if (cr === -1 || cr + 1 === lf) return lf\n return cr < lf ? cr : lf\n}\n","/**\n * Map of web namespaces.\n *\n * @type {Record}\n */\nexport const webNamespaces = {\n html: 'http://www.w3.org/1999/xhtml',\n mathml: 'http://www.w3.org/1998/Math/MathML',\n svg: 'http://www.w3.org/2000/svg',\n xlink: 'http://www.w3.org/1999/xlink',\n xml: 'http://www.w3.org/XML/1998/namespace',\n xmlns: 'http://www.w3.org/2000/xmlns/'\n}\n","/**\n * @import {ElementData, Element, Nodes, RootContent, Root} from 'hast'\n * @import {DefaultTreeAdapterMap, Token} from 'parse5'\n * @import {Schema} from 'property-information'\n * @import {Point, Position} from 'unist'\n * @import {VFile} from 'vfile'\n * @import {Options} from 'hast-util-from-parse5'\n */\n\n/**\n * @typedef State\n * Info passed around about the current state.\n * @property {VFile | undefined} file\n * Corresponding file.\n * @property {boolean} location\n * Whether location info was found.\n * @property {Schema} schema\n * Current schema.\n * @property {boolean | undefined} verbose\n * Add extra positional info.\n */\n\nimport {ok as assert} from 'devlop'\nimport {h, s} from 'hastscript'\nimport {find, html, svg} from 'property-information'\nimport {location} from 'vfile-location'\nimport {webNamespaces} from 'web-namespaces'\n\nconst own = {}.hasOwnProperty\n/** @type {unknown} */\n// type-coverage:ignore-next-line\nconst proto = Object.prototype\n\n/**\n * Transform a `parse5` AST to hast.\n *\n * @param {DefaultTreeAdapterMap['node']} tree\n * `parse5` tree to transform.\n * @param {Options | null | undefined} [options]\n * Configuration (optional).\n * @returns {Nodes}\n * hast tree.\n */\nexport function fromParse5(tree, options) {\n const settings = options || {}\n\n return one(\n {\n file: settings.file || undefined,\n location: false,\n schema: settings.space === 'svg' ? svg : html,\n verbose: settings.verbose || false\n },\n tree\n )\n}\n\n/**\n * Transform a node.\n *\n * @param {State} state\n * Info passed around about the current state.\n * @param {DefaultTreeAdapterMap['node']} node\n * p5 node.\n * @returns {Nodes}\n * hast node.\n */\nfunction one(state, node) {\n /** @type {Nodes} */\n let result\n\n switch (node.nodeName) {\n case '#comment': {\n const reference = /** @type {DefaultTreeAdapterMap['commentNode']} */ (\n node\n )\n result = {type: 'comment', value: reference.data}\n patch(state, reference, result)\n return result\n }\n\n case '#document':\n case '#document-fragment': {\n const reference =\n /** @type {DefaultTreeAdapterMap['document'] | DefaultTreeAdapterMap['documentFragment']} */ (\n node\n )\n const quirksMode =\n 'mode' in reference\n ? reference.mode === 'quirks' || reference.mode === 'limited-quirks'\n : false\n\n result = {\n type: 'root',\n children: all(state, node.childNodes),\n data: {quirksMode}\n }\n\n if (state.file && state.location) {\n const document = String(state.file)\n const loc = location(document)\n const start = loc.toPoint(0)\n const end = loc.toPoint(document.length)\n // Always defined as we give valid input.\n assert(start, 'expected `start`')\n assert(end, 'expected `end`')\n result.position = {start, end}\n }\n\n return result\n }\n\n case '#documentType': {\n const reference = /** @type {DefaultTreeAdapterMap['documentType']} */ (\n node\n )\n result = {type: 'doctype'}\n patch(state, reference, result)\n return result\n }\n\n case '#text': {\n const reference = /** @type {DefaultTreeAdapterMap['textNode']} */ (node)\n result = {type: 'text', value: reference.value}\n patch(state, reference, result)\n return result\n }\n\n // Element.\n default: {\n const reference = /** @type {DefaultTreeAdapterMap['element']} */ (node)\n result = element(state, reference)\n return result\n }\n }\n}\n\n/**\n * Transform children.\n *\n * @param {State} state\n * Info passed around about the current state.\n * @param {Array} nodes\n * Nodes.\n * @returns {Array}\n * hast nodes.\n */\nfunction all(state, nodes) {\n let index = -1\n /** @type {Array} */\n const results = []\n\n while (++index < nodes.length) {\n // Assume no roots in `nodes`.\n const result = /** @type {RootContent} */ (one(state, nodes[index]))\n results.push(result)\n }\n\n return results\n}\n\n/**\n * Transform an element.\n *\n * @param {State} state\n * Info passed around about the current state.\n * @param {DefaultTreeAdapterMap['element']} node\n * `parse5` node to transform.\n * @returns {Element}\n * hast node.\n */\nfunction element(state, node) {\n const schema = state.schema\n\n state.schema = node.namespaceURI === webNamespaces.svg ? svg : html\n\n // Props.\n let index = -1\n /** @type {Record} */\n const properties = {}\n\n while (++index < node.attrs.length) {\n const attribute = node.attrs[index]\n const name =\n (attribute.prefix ? attribute.prefix + ':' : '') + attribute.name\n if (!own.call(proto, name)) {\n properties[name] = attribute.value\n }\n }\n\n // Build.\n const x = state.schema.space === 'svg' ? s : h\n const result = x(node.tagName, properties, all(state, node.childNodes))\n patch(state, node, result)\n\n // Switch content.\n if (result.tagName === 'template') {\n const reference = /** @type {DefaultTreeAdapterMap['template']} */ (node)\n const pos = reference.sourceCodeLocation\n const startTag = pos && pos.startTag && position(pos.startTag)\n const endTag = pos && pos.endTag && position(pos.endTag)\n\n // Root in, root out.\n const content = /** @type {Root} */ (one(state, reference.content))\n\n if (startTag && endTag && state.file) {\n content.position = {start: startTag.end, end: endTag.start}\n }\n\n result.content = content\n }\n\n state.schema = schema\n\n return result\n}\n\n/**\n * Patch positional info from `from` onto `to`.\n *\n * @param {State} state\n * Info passed around about the current state.\n * @param {DefaultTreeAdapterMap['node']} from\n * p5 node.\n * @param {Nodes} to\n * hast node.\n * @returns {undefined}\n * Nothing.\n */\nfunction patch(state, from, to) {\n if ('sourceCodeLocation' in from && from.sourceCodeLocation && state.file) {\n const position = createLocation(state, to, from.sourceCodeLocation)\n\n if (position) {\n state.location = true\n to.position = position\n }\n }\n}\n\n/**\n * Create clean positional information.\n *\n * @param {State} state\n * Info passed around about the current state.\n * @param {Nodes} node\n * hast node.\n * @param {Token.ElementLocation} location\n * p5 location info.\n * @returns {Position | undefined}\n * Position, or nothing.\n */\nfunction createLocation(state, node, location) {\n const result = position(location)\n\n if (node.type === 'element') {\n const tail = node.children[node.children.length - 1]\n\n // Bug for unclosed with children.\n // See: .\n if (\n result &&\n !location.endTag &&\n tail &&\n tail.position &&\n tail.position.end\n ) {\n result.end = Object.assign({}, tail.position.end)\n }\n\n if (state.verbose) {\n /** @type {Record} */\n const properties = {}\n /** @type {string} */\n let key\n\n if (location.attrs) {\n for (key in location.attrs) {\n if (own.call(location.attrs, key)) {\n properties[find(state.schema, key).property] = position(\n location.attrs[key]\n )\n }\n }\n }\n\n assert(location.startTag, 'a start tag should exist')\n const opening = position(location.startTag)\n const closing = location.endTag ? position(location.endTag) : undefined\n /** @type {ElementData['position']} */\n const data = {opening}\n if (closing) data.closing = closing\n data.properties = properties\n\n node.data = {position: data}\n }\n }\n\n return result\n}\n\n/**\n * Turn a p5 location into a position.\n *\n * @param {Token.Location} loc\n * Location.\n * @returns {Position | undefined}\n * Position or nothing.\n */\nfunction position(loc) {\n const start = point({\n line: loc.startLine,\n column: loc.startCol,\n offset: loc.startOffset\n })\n const end = point({\n line: loc.endLine,\n column: loc.endCol,\n offset: loc.endOffset\n })\n\n // @ts-expect-error: we do use `undefined` for points if one or the other\n // exists.\n return start || end ? {start, end} : undefined\n}\n\n/**\n * Filter out invalid points.\n *\n * @param {Point} point\n * Point with potentially `undefined` values.\n * @returns {Point | undefined}\n * Point or nothing.\n */\nfunction point(point) {\n return point.line && point.column ? point : undefined\n}\n","/**\n * @typedef {import('hast').Comment} Comment\n * @typedef {import('hast').Doctype} Doctype\n * @typedef {import('hast').Element} Element\n * @typedef {import('hast').Nodes} Nodes\n * @typedef {import('hast').Root} Root\n * @typedef {import('hast').RootContent} RootContent\n * @typedef {import('hast').Text} Text\n *\n * @typedef {import('parse5').DefaultTreeAdapterMap['document']} Parse5Document\n * @typedef {import('parse5').DefaultTreeAdapterMap['documentFragment']} Parse5Fragment\n * @typedef {import('parse5').DefaultTreeAdapterMap['element']} Parse5Element\n * @typedef {import('parse5').DefaultTreeAdapterMap['node']} Parse5Nodes\n * @typedef {import('parse5').DefaultTreeAdapterMap['documentType']} Parse5Doctype\n * @typedef {import('parse5').DefaultTreeAdapterMap['commentNode']} Parse5Comment\n * @typedef {import('parse5').DefaultTreeAdapterMap['textNode']} Parse5Text\n * @typedef {import('parse5').DefaultTreeAdapterMap['parentNode']} Parse5Parent\n * @typedef {import('parse5').Token.Attribute} Parse5Attribute\n *\n * @typedef {import('property-information').Schema} Schema\n */\n\n/**\n * @typedef Options\n * Configuration.\n * @property {Space | null | undefined} [space='html']\n * Which space the document is in (default: `'html'`).\n *\n * When an `` element is found in the HTML space, this package already\n * automatically switches to and from the SVG space when entering and exiting\n * it.\n *\n * @typedef {Exclude} Parse5Content\n *\n * @typedef {'html' | 'svg'} Space\n */\n\nimport {stringify as commas} from 'comma-separated-tokens'\nimport {ok as assert} from 'devlop'\nimport {find, html, svg} from 'property-information'\nimport {stringify as spaces} from 'space-separated-tokens'\nimport {webNamespaces} from 'web-namespaces'\nimport {zwitch} from 'zwitch'\n\n/** @type {Options} */\nconst emptyOptions = {}\n\nconst own = {}.hasOwnProperty\n\nconst one = zwitch('type', {handlers: {root, element, text, comment, doctype}})\n\n/**\n * Transform a hast tree to a `parse5` AST.\n *\n * @param {Nodes} tree\n * Tree to transform.\n * @param {Options | null | undefined} [options]\n * Configuration (optional).\n * @returns {Parse5Nodes}\n * `parse5` node.\n */\nexport function toParse5(tree, options) {\n const settings = options || emptyOptions\n const space = settings.space\n return one(tree, space === 'svg' ? svg : html)\n}\n\n/**\n * @param {Root} node\n * Node (hast) to transform.\n * @param {Schema} schema\n * Current schema.\n * @returns {Parse5Document}\n * Parse5 node.\n */\nfunction root(node, schema) {\n /** @type {Parse5Document} */\n const result = {\n nodeName: '#document',\n // @ts-expect-error: `parse5` uses enums, which are actually strings.\n mode: (node.data || {}).quirksMode ? 'quirks' : 'no-quirks',\n childNodes: []\n }\n result.childNodes = all(node.children, result, schema)\n patch(node, result)\n return result\n}\n\n/**\n * @param {Root} node\n * Node (hast) to transform.\n * @param {Schema} schema\n * Current schema.\n * @returns {Parse5Fragment}\n * Parse5 node.\n */\nfunction fragment(node, schema) {\n /** @type {Parse5Fragment} */\n const result = {nodeName: '#document-fragment', childNodes: []}\n result.childNodes = all(node.children, result, schema)\n patch(node, result)\n return result\n}\n\n/**\n * @param {Doctype} node\n * Node (hast) to transform.\n * @returns {Parse5Doctype}\n * Parse5 node.\n */\nfunction doctype(node) {\n /** @type {Parse5Doctype} */\n const result = {\n nodeName: '#documentType',\n name: 'html',\n publicId: '',\n systemId: '',\n parentNode: null\n }\n\n patch(node, result)\n return result\n}\n\n/**\n * @param {Text} node\n * Node (hast) to transform.\n * @returns {Parse5Text}\n * Parse5 node.\n */\nfunction text(node) {\n /** @type {Parse5Text} */\n const result = {\n nodeName: '#text',\n value: node.value,\n parentNode: null\n }\n patch(node, result)\n return result\n}\n\n/**\n * @param {Comment} node\n * Node (hast) to transform.\n * @returns {Parse5Comment}\n * Parse5 node.\n */\nfunction comment(node) {\n /** @type {Parse5Comment} */\n const result = {\n nodeName: '#comment',\n data: node.value,\n parentNode: null\n }\n\n patch(node, result)\n\n return result\n}\n\n/**\n * @param {Element} node\n * Node (hast) to transform.\n * @param {Schema} schema\n * Current schema.\n * @returns {Parse5Element}\n * Parse5 node.\n */\nfunction element(node, schema) {\n const parentSchema = schema\n let currentSchema = parentSchema\n\n if (\n node.type === 'element' &&\n node.tagName.toLowerCase() === 'svg' &&\n parentSchema.space === 'html'\n ) {\n currentSchema = svg\n }\n\n /** @type {Array} */\n const attrs = []\n /** @type {string} */\n let prop\n\n if (node.properties) {\n for (prop in node.properties) {\n if (prop !== 'children' && own.call(node.properties, prop)) {\n const result = createProperty(\n currentSchema,\n prop,\n node.properties[prop]\n )\n\n if (result) {\n attrs.push(result)\n }\n }\n }\n }\n\n const space = currentSchema.space\n // `html` and `svg` both have a space.\n assert(space)\n\n /** @type {Parse5Element} */\n const result = {\n nodeName: node.tagName,\n tagName: node.tagName,\n attrs,\n // @ts-expect-error: `parse5` types are wrong.\n namespaceURI: webNamespaces[space],\n childNodes: [],\n parentNode: null\n }\n result.childNodes = all(node.children, result, currentSchema)\n patch(node, result)\n\n if (node.tagName === 'template' && node.content) {\n // @ts-expect-error: `parse5` types are wrong.\n result.content = fragment(node.content, currentSchema)\n }\n\n return result\n}\n\n/**\n * Handle a property.\n *\n * @param {Schema} schema\n * Current schema.\n * @param {string} prop\n * Key.\n * @param {Array | boolean | number | string | null | undefined} value\n * hast property value.\n * @returns {Parse5Attribute | undefined}\n * Field for runtime, optional.\n */\nfunction createProperty(schema, prop, value) {\n const info = find(schema, prop)\n\n // Ignore nullish and `NaN` values.\n if (\n value === false ||\n value === null ||\n value === undefined ||\n (typeof value === 'number' && Number.isNaN(value)) ||\n (!value && info.boolean)\n ) {\n return\n }\n\n if (Array.isArray(value)) {\n // Accept `array`.\n // Most props are space-separated.\n value = info.commaSeparated ? commas(value) : spaces(value)\n }\n\n /** @type {Parse5Attribute} */\n const attribute = {\n name: info.attribute,\n value: value === true ? '' : String(value)\n }\n\n if (info.space && info.space !== 'html' && info.space !== 'svg') {\n const index = attribute.name.indexOf(':')\n\n if (index < 0) {\n attribute.prefix = ''\n } else {\n attribute.name = attribute.name.slice(index + 1)\n attribute.prefix = info.attribute.slice(0, index)\n }\n\n attribute.namespace = webNamespaces[info.space]\n }\n\n return attribute\n}\n\n/**\n * Transform all hast nodes.\n *\n * @param {Array} children\n * List of children.\n * @param {Parse5Parent} parentNode\n * `parse5` parent node.\n * @param {Schema} schema\n * Current schema.\n * @returns {Array}\n * Transformed children.\n */\nfunction all(children, parentNode, schema) {\n let index = -1\n /** @type {Array} */\n const results = []\n\n if (children) {\n while (++index < children.length) {\n /** @type {Parse5Content} */\n const child = one(children[index], schema)\n\n child.parentNode = parentNode\n\n results.push(child)\n }\n }\n\n return results\n}\n\n/**\n * Add position info from `from` to `to`.\n *\n * @param {Nodes} from\n * hast node.\n * @param {Parse5Nodes} to\n * `parse5` node.\n * @returns {undefined}\n * Nothing.\n */\nfunction patch(from, to) {\n const position = from.position\n\n if (position && position.start && position.end) {\n assert(typeof position.start.offset === 'number')\n assert(typeof position.end.offset === 'number')\n\n to.sourceCodeLocation = {\n startLine: position.start.line,\n startCol: position.start.column,\n startOffset: position.start.offset,\n endLine: position.end.line,\n endCol: position.end.column,\n endOffset: position.end.offset\n }\n }\n}\n","/**\n * List of HTML void tag names.\n *\n * @type {Array}\n */\nexport const htmlVoidElements = [\n 'area',\n 'base',\n 'basefont',\n 'bgsound',\n 'br',\n 'col',\n 'command',\n 'embed',\n 'frame',\n 'hr',\n 'image',\n 'img',\n 'input',\n 'keygen',\n 'link',\n 'meta',\n 'param',\n 'source',\n 'track',\n 'wbr'\n]\n","/**\n * @typedef {import('unist').Node} Node\n * @typedef {import('unist').Point} Point\n * @typedef {import('unist').Position} Position\n */\n\n/**\n * @typedef NodeLike\n * @property {string} type\n * @property {PositionLike | null | undefined} [position]\n *\n * @typedef PositionLike\n * @property {PointLike | null | undefined} [start]\n * @property {PointLike | null | undefined} [end]\n *\n * @typedef PointLike\n * @property {number | null | undefined} [line]\n * @property {number | null | undefined} [column]\n * @property {number | null | undefined} [offset]\n */\n\n/**\n * Get the ending point of `node`.\n *\n * @param node\n * Node.\n * @returns\n * Point.\n */\nexport const pointEnd = point('end')\n\n/**\n * Get the starting point of `node`.\n *\n * @param node\n * Node.\n * @returns\n * Point.\n */\nexport const pointStart = point('start')\n\n/**\n * Get the positional info of `node`.\n *\n * @param {'end' | 'start'} type\n * Side.\n * @returns\n * Getter.\n */\nfunction point(type) {\n return point\n\n /**\n * Get the point info of `node` at a bound side.\n *\n * @param {Node | NodeLike | null | undefined} [node]\n * @returns {Point | undefined}\n */\n function point(node) {\n const point = (node && node.position && node.position[type]) || {}\n\n if (\n typeof point.line === 'number' &&\n point.line > 0 &&\n typeof point.column === 'number' &&\n point.column > 0\n ) {\n return {\n line: point.line,\n column: point.column,\n offset:\n typeof point.offset === 'number' && point.offset > -1\n ? point.offset\n : undefined\n }\n }\n }\n}\n\n/**\n * Get the positional info of `node`.\n *\n * @param {Node | NodeLike | null | undefined} [node]\n * Node.\n * @returns {Position | undefined}\n * Position.\n */\nexport function position(node) {\n const start = pointStart(node)\n const end = pointEnd(node)\n\n if (start && end) {\n return {start, end}\n }\n}\n","/**\n * @import {Options} from 'hast-util-raw'\n * @import {Comment, Doctype, Element, Nodes, RootContent, Root, Text} from 'hast'\n * @import {Raw} from 'mdast-util-to-hast'\n * @import {DefaultTreeAdapterMap, ParserOptions} from 'parse5'\n * @import {Point} from 'unist'\n */\n\n/**\n * @typedef State\n * Info passed around about the current state.\n * @property {(node: Nodes) => undefined} handle\n * Add a hast node to the parser.\n * @property {Options} options\n * User configuration.\n * @property {Parser} parser\n * Current parser.\n * @property {boolean} stitches\n * Whether there are stitches.\n */\n\n/**\n * @typedef Stitch\n * Custom comment-like value we pass through parse5, which contains a\n * replacement node that we’ll swap back in afterwards.\n * @property {'comment'} type\n * Node type.\n * @property {{stitch: Nodes}} value\n * Replacement value.\n */\n\nimport structuredClone from '@ungap/structured-clone'\nimport {fromParse5} from 'hast-util-from-parse5'\nimport {toParse5} from 'hast-util-to-parse5'\nimport {htmlVoidElements} from 'html-void-elements'\nimport {Parser, Token, TokenizerMode, html} from 'parse5'\nimport {pointEnd, pointStart} from 'unist-util-position'\nimport {visit} from 'unist-util-visit'\nimport {webNamespaces} from 'web-namespaces'\nimport {zwitch} from 'zwitch'\n\nconst gfmTagfilterExpression =\n /<(\\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\\t\\n\\f\\r />])/gi\n\n// Node types associated with MDX.\n// \nconst knownMdxNames = new Set([\n 'mdxFlowExpression',\n 'mdxJsxFlowElement',\n 'mdxJsxTextElement',\n 'mdxTextExpression',\n 'mdxjsEsm'\n])\n\n/** @type {ParserOptions} */\nconst parseOptions = {sourceCodeLocationInfo: true, scriptingEnabled: false}\n\n/**\n * Pass a hast tree through an HTML parser, which will fix nesting, and turn\n * raw nodes into actual nodes.\n *\n * @param {Nodes} tree\n * Original hast tree to transform.\n * @param {Options | null | undefined} [options]\n * Configuration (optional).\n * @returns {Nodes}\n * Parsed again tree.\n */\nexport function raw(tree, options) {\n const document = documentMode(tree)\n /** @type {(node: Nodes, state: State) => undefined} */\n const one = zwitch('type', {\n handlers: {root, element, text, comment, doctype, raw: handleRaw},\n unknown\n })\n\n /** @type {State} */\n const state = {\n parser: document\n ? new Parser(parseOptions)\n : Parser.getFragmentParser(undefined, parseOptions),\n handle(node) {\n one(node, state)\n },\n stitches: false,\n options: options || {}\n }\n\n one(tree, state)\n resetTokenizer(state, pointStart())\n\n const p5 = document ? state.parser.document : state.parser.getFragment()\n const result = fromParse5(p5, {\n // To do: support `space`?\n file: state.options.file\n })\n\n if (state.stitches) {\n visit(result, 'comment', function (node, index, parent) {\n const stitch = /** @type {Stitch} */ (/** @type {unknown} */ (node))\n if (stitch.value.stitch && parent && index !== undefined) {\n /** @type {Array} */\n const siblings = parent.children\n // @ts-expect-error: assume the stitch is allowed.\n siblings[index] = stitch.value.stitch\n return index\n }\n })\n }\n\n // Unpack if possible and when not given a `root`.\n if (\n result.type === 'root' &&\n result.children.length === 1 &&\n result.children[0].type === tree.type\n ) {\n return result.children[0]\n }\n\n return result\n}\n\n/**\n * Transform all nodes\n *\n * @param {Array} nodes\n * hast content.\n * @param {State} state\n * Info passed around about the current state.\n * @returns {undefined}\n * Nothing.\n */\nfunction all(nodes, state) {\n let index = -1\n\n /* istanbul ignore else - invalid nodes, see rehypejs/rehype-raw#7. */\n if (nodes) {\n while (++index < nodes.length) {\n state.handle(nodes[index])\n }\n }\n}\n\n/**\n * Transform a root.\n *\n * @param {Root} node\n * hast root node.\n * @param {State} state\n * Info passed around about the current state.\n * @returns {undefined}\n * Nothing.\n */\nfunction root(node, state) {\n all(node.children, state)\n}\n\n/**\n * Transform an element.\n *\n * @param {Element} node\n * hast element node.\n * @param {State} state\n * Info passed around about the current state.\n * @returns {undefined}\n * Nothing.\n */\nfunction element(node, state) {\n startTag(node, state)\n\n all(node.children, state)\n\n endTag(node, state)\n}\n\n/**\n * Transform a text.\n *\n * @param {Text} node\n * hast text node.\n * @param {State} state\n * Info passed around about the current state.\n * @returns {undefined}\n * Nothing.\n */\nfunction text(node, state) {\n // Allow `DATA` through `PLAINTEXT`,\n // but when hanging in a tag for example,\n // switch back to `DATA`.\n // Note: `State` is not exposed by `parse5`, so these numbers are fragile.\n // See: \n if (state.parser.tokenizer.state > 4) {\n state.parser.tokenizer.state = 0\n }\n\n /** @type {Token.CharacterToken} */\n const token = {\n type: Token.TokenType.CHARACTER,\n chars: node.value,\n location: createParse5Location(node)\n }\n\n resetTokenizer(state, pointStart(node))\n // @ts-expect-error: private.\n state.parser.currentToken = token\n // @ts-expect-error: private.\n state.parser._processToken(state.parser.currentToken)\n}\n\n/**\n * Transform a doctype.\n *\n * @param {Doctype} node\n * hast doctype node.\n * @param {State} state\n * Info passed around about the current state.\n * @returns {undefined}\n * Nothing.\n */\nfunction doctype(node, state) {\n /** @type {Token.DoctypeToken} */\n const token = {\n type: Token.TokenType.DOCTYPE,\n name: 'html',\n forceQuirks: false,\n publicId: '',\n systemId: '',\n location: createParse5Location(node)\n }\n\n resetTokenizer(state, pointStart(node))\n // @ts-expect-error: private.\n state.parser.currentToken = token\n // @ts-expect-error: private.\n state.parser._processToken(state.parser.currentToken)\n}\n\n/**\n * Transform a stitch.\n *\n * @param {Nodes} node\n * unknown node.\n * @param {State} state\n * Info passed around about the current state.\n * @returns {undefined}\n * Nothing.\n */\nfunction stitch(node, state) {\n // Mark that there are stitches, so we need to walk the tree and revert them.\n state.stitches = true\n\n /** @type {Nodes} */\n const clone = cloneWithoutChildren(node)\n\n // Recurse, because to somewhat handle `[]` (where `[]` denotes the\n // passed through node).\n if ('children' in node && 'children' in clone) {\n // Root in root out.\n const fakeRoot = /** @type {Root} */ (\n raw({type: 'root', children: node.children}, state.options)\n )\n clone.children = fakeRoot.children\n }\n\n // Hack: `value` is supposed to be a string, but as none of the tools\n // (`parse5` or `hast-util-from-parse5`) looks at it, we can pass nodes\n // through.\n comment({type: 'comment', value: {stitch: clone}}, state)\n}\n\n/**\n * Transform a comment (or stitch).\n *\n * @param {Comment | Stitch} node\n * hast comment node.\n * @param {State} state\n * Info passed around about the current state.\n * @returns {undefined}\n * Nothing.\n */\nfunction comment(node, state) {\n /** @type {string} */\n // @ts-expect-error: we pass stitches through.\n const data = node.value\n\n /** @type {Token.CommentToken} */\n const token = {\n type: Token.TokenType.COMMENT,\n data,\n location: createParse5Location(node)\n }\n resetTokenizer(state, pointStart(node))\n // @ts-expect-error: private.\n state.parser.currentToken = token\n // @ts-expect-error: private.\n state.parser._processToken(state.parser.currentToken)\n}\n\n/**\n * Transform a raw node.\n *\n * @param {Raw} node\n * hast raw node.\n * @param {State} state\n * Info passed around about the current state.\n * @returns {undefined}\n * Nothing.\n */\nfunction handleRaw(node, state) {\n // Reset preprocessor:\n // See: .\n state.parser.tokenizer.preprocessor.html = ''\n state.parser.tokenizer.preprocessor.pos = -1\n // @ts-expect-error: private.\n // type-coverage:ignore-next-line\n state.parser.tokenizer.preprocessor.lastGapPos = -2\n // @ts-expect-error: private.\n // type-coverage:ignore-next-line\n state.parser.tokenizer.preprocessor.gapStack = []\n // @ts-expect-error: private.\n // type-coverage:ignore-next-line\n state.parser.tokenizer.preprocessor.skipNextNewLine = false\n state.parser.tokenizer.preprocessor.lastChunkWritten = false\n state.parser.tokenizer.preprocessor.endOfChunkHit = false\n // @ts-expect-error: private.\n // type-coverage:ignore-next-line\n state.parser.tokenizer.preprocessor.isEol = false\n\n // Now pass `node.value`.\n setPoint(state, pointStart(node))\n\n state.parser.tokenizer.write(\n state.options.tagfilter\n ? node.value.replace(gfmTagfilterExpression, '<$1$2')\n : node.value,\n false\n )\n // @ts-expect-error: private.\n state.parser.tokenizer._runParsingLoop()\n\n // Character references hang, so if we ended there, we need to flush\n // those too.\n // We reset the preprocessor as if the document ends here.\n // Then one single call to the relevant state does the trick, parse5\n // consumes the whole token.\n\n // Note: `State` is not exposed by `parse5`, so these numbers are fragile.\n // See: \n // Note: a change to `parse5`, which breaks this, was merged but not released.\n // Investigate when it is.\n // To do: remove next major.\n /* c8 ignore next 12 -- removed in */\n if (\n state.parser.tokenizer.state === 72 /* NAMED_CHARACTER_REFERENCE */ ||\n // @ts-expect-error: removed.\n state.parser.tokenizer.state === 78 /* NUMERIC_CHARACTER_REFERENCE_END */\n ) {\n state.parser.tokenizer.preprocessor.lastChunkWritten = true\n /** @type {number} */\n // @ts-expect-error: private.\n const cp = state.parser.tokenizer._consume()\n // @ts-expect-error: private.\n state.parser.tokenizer._callState(cp)\n }\n}\n\n/**\n * Crash on an unknown node.\n *\n * @param {unknown} node_\n * unknown node.\n * @param {State} state\n * Info passed around about the current state.\n * @returns {undefined}\n * Never.\n */\nfunction unknown(node_, state) {\n const node = /** @type {Nodes} */ (node_)\n\n if (\n state.options.passThrough &&\n state.options.passThrough.includes(node.type)\n ) {\n stitch(node, state)\n } else {\n let extra = ''\n\n if (knownMdxNames.has(node.type)) {\n extra =\n \". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax\"\n }\n\n throw new Error('Cannot compile `' + node.type + '` node' + extra)\n }\n}\n\n/**\n * Reset the tokenizer of a parser.\n *\n * @param {State} state\n * Info passed around about the current state.\n * @param {Point | undefined} point\n * Point.\n * @returns {undefined}\n * Nothing.\n */\nfunction resetTokenizer(state, point) {\n setPoint(state, point)\n\n // Process final characters if they’re still there after hibernating.\n /** @type {Token.CharacterToken} */\n // @ts-expect-error: private.\n const token = state.parser.tokenizer.currentCharacterToken\n\n if (token && token.location) {\n token.location.endLine = state.parser.tokenizer.preprocessor.line\n token.location.endCol = state.parser.tokenizer.preprocessor.col + 1\n token.location.endOffset = state.parser.tokenizer.preprocessor.offset + 1\n // @ts-expect-error: private.\n state.parser.currentToken = token\n // @ts-expect-error: private.\n state.parser._processToken(state.parser.currentToken)\n }\n\n // Reset tokenizer:\n // See: .\n // Especially putting it back in the `data` state is useful: some elements,\n // like textareas and iframes, change the state.\n // See GH-7.\n // But also if broken HTML is in `raw`, and then a correct element is given.\n // See GH-11.\n // @ts-expect-error: private.\n state.parser.tokenizer.paused = false\n // @ts-expect-error: private.\n state.parser.tokenizer.inLoop = false\n\n // Note: don’t reset `state`, `inForeignNode`, or `lastStartTagName`, we\n // manually update those when needed.\n state.parser.tokenizer.active = false\n // @ts-expect-error: private.\n state.parser.tokenizer.returnState = TokenizerMode.DATA\n // @ts-expect-error: private.\n state.parser.tokenizer.charRefCode = -1\n // @ts-expect-error: private.\n state.parser.tokenizer.consumedAfterSnapshot = -1\n // @ts-expect-error: private.\n state.parser.tokenizer.currentLocation = null\n // @ts-expect-error: private.\n state.parser.tokenizer.currentCharacterToken = null\n // @ts-expect-error: private.\n state.parser.tokenizer.currentToken = null\n // @ts-expect-error: private.\n state.parser.tokenizer.currentAttr = {name: '', value: ''}\n}\n\n/**\n * Set current location.\n *\n * @param {State} state\n * Info passed around about the current state.\n * @param {Point | undefined} point\n * Point.\n * @returns {undefined}\n * Nothing.\n */\nfunction setPoint(state, point) {\n if (point && point.offset !== undefined) {\n /** @type {Token.Location} */\n const location = {\n startLine: point.line,\n startCol: point.column,\n startOffset: point.offset,\n endLine: -1,\n endCol: -1,\n endOffset: -1\n }\n\n // @ts-expect-error: private.\n // type-coverage:ignore-next-line\n state.parser.tokenizer.preprocessor.lineStartPos = -point.column + 1 // Looks weird, but ensures we get correct positional info.\n state.parser.tokenizer.preprocessor.droppedBufferSize = point.offset\n state.parser.tokenizer.preprocessor.line = point.line\n // @ts-expect-error: private.\n state.parser.tokenizer.currentLocation = location\n }\n}\n\n/**\n * Emit a start tag.\n *\n * @param {Element} node\n * Element.\n * @param {State} state\n * Info passed around about the current state.\n * @returns {undefined}\n * Nothing.\n */\nfunction startTag(node, state) {\n const tagName = node.tagName.toLowerCase()\n\n // Ignore tags if we’re in plain text.\n if (state.parser.tokenizer.state === TokenizerMode.PLAINTEXT) return\n\n resetTokenizer(state, pointStart(node))\n\n const current = state.parser.openElements.current\n let ns = 'namespaceURI' in current ? current.namespaceURI : webNamespaces.html\n\n if (ns === webNamespaces.html && tagName === 'svg') {\n ns = webNamespaces.svg\n }\n\n const result = toParse5(\n // Shallow clone to not delve into `children`: we only need the attributes.\n {...node, children: []},\n {space: ns === webNamespaces.svg ? 'svg' : 'html'}\n )\n\n /** @type {Token.TagToken} */\n const tag = {\n type: Token.TokenType.START_TAG,\n tagName,\n tagID: html.getTagID(tagName),\n // We always send start and end tags.\n selfClosing: false,\n ackSelfClosing: false,\n // Always element.\n /* c8 ignore next */\n attrs: 'attrs' in result ? result.attrs : [],\n location: createParse5Location(node)\n }\n\n // The HTML parsing algorithm works by doing half of the state management in\n // the tokenizer and half in the parser.\n // We can’t use the tokenizer here, as we don’t have strings.\n // So we act *as if* the tokenizer emits tokens:\n\n // @ts-expect-error: private.\n state.parser.currentToken = tag\n // @ts-expect-error: private.\n state.parser._processToken(state.parser.currentToken)\n\n // …but then we still need a bunch of work that the tokenizer would normally\n // do, such as:\n\n // Set a tag name, similar to how the tokenizer would do it.\n state.parser.tokenizer.lastStartTagName = tagName\n\n // `inForeignNode` is correctly set by the parser.\n}\n\n/**\n * Emit an end tag.\n *\n * @param {Element} node\n * Element.\n * @param {State} state\n * Info passed around about the current state.\n * @returns {undefined}\n * Nothing.\n */\nfunction endTag(node, state) {\n const tagName = node.tagName.toLowerCase()\n // Do not emit closing tags for HTML void elements.\n if (\n !state.parser.tokenizer.inForeignNode &&\n htmlVoidElements.includes(tagName)\n ) {\n return\n }\n\n // Ignore tags if we’re in plain text.\n if (state.parser.tokenizer.state === TokenizerMode.PLAINTEXT) return\n\n resetTokenizer(state, pointEnd(node))\n\n /** @type {Token.TagToken} */\n const tag = {\n type: Token.TokenType.END_TAG,\n tagName,\n tagID: html.getTagID(tagName),\n selfClosing: false,\n ackSelfClosing: false,\n attrs: [],\n location: createParse5Location(node)\n }\n\n // The HTML parsing algorithm works by doing half of the state management in\n // the tokenizer and half in the parser.\n // We can’t use the tokenizer here, as we don’t have strings.\n // So we act *as if* the tokenizer emits tokens:\n\n // @ts-expect-error: private.\n state.parser.currentToken = tag\n // @ts-expect-error: private.\n state.parser._processToken(state.parser.currentToken)\n\n // …but then we still need a bunch of work that the tokenizer would normally\n // do, such as:\n\n // Switch back to the data state after alternative states that don’t accept\n // tags:\n if (\n // Current element is closed.\n tagName === state.parser.tokenizer.lastStartTagName &&\n // `