@telnyx/ai-chat-widget 5.0.2 → 5.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +31 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.mjs +47 -11
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +31 -4
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -738,6 +738,10 @@ React keys must be passed directly to JSX without using spread:
|
|
|
738
738
|
--tw-translate-x: calc(calc(1/2 * 100%) * -1);
|
|
739
739
|
translate: var(--tw-translate-x) var(--tw-translate-y);
|
|
740
740
|
}
|
|
741
|
+
.-translate-x-full {
|
|
742
|
+
--tw-translate-x: -100%;
|
|
743
|
+
translate: var(--tw-translate-x) var(--tw-translate-y);
|
|
744
|
+
}
|
|
741
745
|
.-translate-y-0\\.5 {
|
|
742
746
|
--tw-translate-y: calc(var(--spacing) * -0.5);
|
|
743
747
|
translate: var(--tw-translate-x) var(--tw-translate-y);
|
|
@@ -775,6 +779,9 @@ React keys must be passed directly to JSX without using spread:
|
|
|
775
779
|
.animate-shadow-grow {
|
|
776
780
|
animation: var(--animate-shadow-grow);
|
|
777
781
|
}
|
|
782
|
+
.animate-shimmer {
|
|
783
|
+
animation: var(--animate-shimmer);
|
|
784
|
+
}
|
|
778
785
|
.animate-spin {
|
|
779
786
|
animation: var(--animate-spin);
|
|
780
787
|
}
|
|
@@ -904,6 +911,9 @@ React keys must be passed directly to JSX without using spread:
|
|
|
904
911
|
.rounded-2xl {
|
|
905
912
|
border-radius: var(--radius-2xl);
|
|
906
913
|
}
|
|
914
|
+
.rounded-\\[7px\\] {
|
|
915
|
+
border-radius: 7px;
|
|
916
|
+
}
|
|
907
917
|
.rounded-\\[30px\\] {
|
|
908
918
|
border-radius: 30px;
|
|
909
919
|
}
|
|
@@ -1004,9 +1014,6 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1004
1014
|
.border-widget-text-primary {
|
|
1005
1015
|
border-color: var(--color-widget-text-primary);
|
|
1006
1016
|
}
|
|
1007
|
-
.bg-\\[\\#fefef8\\] {
|
|
1008
|
-
background-color: #fefef8;
|
|
1009
|
-
}
|
|
1010
1017
|
.bg-black {
|
|
1011
1018
|
background-color: var(--color-black);
|
|
1012
1019
|
}
|
|
@@ -1133,6 +1140,14 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1133
1140
|
--tw-gradient-from: transparent;
|
|
1134
1141
|
--tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));
|
|
1135
1142
|
}
|
|
1143
|
+
.via-neutral-600\\/30 {
|
|
1144
|
+
--tw-gradient-via: color-mix(in srgb, oklch(43.9% 0 0) 30%, transparent);
|
|
1145
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
1146
|
+
--tw-gradient-via: color-mix(in oklab, var(--color-neutral-600) 30%, transparent);
|
|
1147
|
+
}
|
|
1148
|
+
--tw-gradient-via-stops: var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-via) var(--tw-gradient-via-position), var(--tw-gradient-to) var(--tw-gradient-to-position);
|
|
1149
|
+
--tw-gradient-stops: var(--tw-gradient-via-stops);
|
|
1150
|
+
}
|
|
1136
1151
|
.via-telnyx-green {
|
|
1137
1152
|
--tw-gradient-via: var(--color-telnyx-green);
|
|
1138
1153
|
--tw-gradient-via-stops: var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-via) var(--tw-gradient-via-position), var(--tw-gradient-to) var(--tw-gradient-to-position);
|
|
@@ -1176,6 +1191,9 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1176
1191
|
.p-6 {
|
|
1177
1192
|
padding: calc(var(--spacing) * 6);
|
|
1178
1193
|
}
|
|
1194
|
+
.p-px {
|
|
1195
|
+
padding: 1px;
|
|
1196
|
+
}
|
|
1179
1197
|
.px-1 {
|
|
1180
1198
|
padding-inline: calc(var(--spacing) * 1);
|
|
1181
1199
|
}
|
|
@@ -1441,6 +1459,10 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1441
1459
|
--tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
|
|
1442
1460
|
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
1443
1461
|
}
|
|
1462
|
+
.ring {
|
|
1463
|
+
--tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
|
|
1464
|
+
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
1465
|
+
}
|
|
1444
1466
|
.ring-0 {
|
|
1445
1467
|
--tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
|
|
1446
1468
|
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
@@ -2112,6 +2134,11 @@ React keys must be passed directly to JSX without using spread:
|
|
|
2112
2134
|
color: var(--color-white);
|
|
2113
2135
|
}
|
|
2114
2136
|
}
|
|
2137
|
+
.motion-reduce\\:animate-none {
|
|
2138
|
+
@media (prefers-reduced-motion: reduce) {
|
|
2139
|
+
animation: none;
|
|
2140
|
+
}
|
|
2141
|
+
}
|
|
2115
2142
|
.motion-reduce\\:transition-none {
|
|
2116
2143
|
@media (prefers-reduced-motion: reduce) {
|
|
2117
2144
|
transition-property: none;
|
|
@@ -2704,7 +2731,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
2704
2731
|
black 0%,
|
|
2705
2732
|
transparent 100%
|
|
2706
2733
|
)
|
|
2707
|
-
`}}),y.jsx("div",{className:J("relative z-20",t),children:e})]})},Eh=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,wh=LE,_i=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return wh(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:a,defaultVariants:i}=t,o=Object.keys(a).map(c=>{const u=n==null?void 0:n[c],d=i==null?void 0:i[c];if(u===null)return null;const p=Eh(u)||Eh(d);return a[c][p]}),s=n&&Object.entries(n).reduce((c,u)=>{let[d,p]=u;return p===void 0||(c[d]=p),c},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((c,u)=>{let{class:d,className:p,...f}=u;return Object.entries(f).every(g=>{let[b,h]=g;return Array.isArray(h)?h.includes({...i,...s}[b]):{...i,...s}[b]===h})?[...c,d,p]:c},[]);return wh(e,o,l,n==null?void 0:n.class,n==null?void 0:n.className)},uO=oe.create(NI),dO=oe.create(OI),Sh={copied:{scale:1,opacity:1,transition:{duration:.15}},idle:{scale:.8,opacity:0,transition:{duration:.15}}},Gl=O.memo(({textToCopy:e,onClick:t,className:n,iconClassName:r,disabled:a})=>{const[i,o]=O.useState(!1),s=async()=>{try{await navigator.clipboard.writeText(e),o(!0),setTimeout(()=>o(!1),2e3)}catch(c){console.error("Failed to copy text: ",c)}},l=()=>{s(),t&&t()};return y.jsxs(Bt,{children:[y.jsx(Ut,{onClick:l,className:n,disabled:a,children:y.jsx(Rt,{mode:"wait",initial:!1,children:i?y.jsx(uO,{initial:"idle",animate:"copied",exit:"idle",variants:Sh,className:J("size-4 text-telnyx-green",r)},"check"):y.jsx(dO,{initial:"idle",animate:"copied",exit:"idle",variants:Sh,className:J("size-4 text-stone-600 cursor-pointer hover:text-stone-900",r)},"copy")})}),y.jsx(At,{side:"bottom",children:y.jsx("p",{children:i?"Copied!":"Copy this message"})})]})}),pO=({size:e=96,spokeWidth:t=6,animationDuration:n=4})=>y.jsxs("div",{className:"relative animate-rotate-loader flex items-center justify-center",style:{width:e,height:e,animationDuration:`${n}s`},children:[y.jsx("div",{className:`rounded-full z-10 animate-scale-loader bg-telnyx-light-green duration-[${n/2}s]`,style:{width:e/8,height:e/8}}),Array.from({length:12}).map((a,i)=>{const o=i*30;return y.jsx("div",{className:"absolute bg-stone-700 rounded-[30px] top-0 left-1/2 transform origin-bottom",style:{transform:`translateX(-50%) rotate(${o}deg)`,height:e/2,width:t}},i+o)})]}),fO=e=>{const t=new CSSStyleSheet;return t.replaceSync(e.replace("((-webkit-hyphens: none) and (not (margin-trim: inline)))","(not (margin-trim: inline))")),t},gO=(e,t)=>{if(!t)return;const n=fO(t);e.adoptedStyleSheets=[n]};function Vl({children:e,shadowRootInit:t,targetMountContainer:n,ref:r,...a}){const i=Y(d=>d.widgetStyleSheetText),[o,s]=O.useState(null),l=O.useCallback(d=>{if(!d||d.shadowRoot)return;const p=d.attachShadow({mode:"open",...t});i&&gO(p,i),s(p)},[i,t]),c=O.useCallback(d=>{l(d),typeof r=="function"?r(d):r&&(r.current=d)},[l,r]),u=y.jsx("div",{ref:c,...a,children:o&&Go.createPortal(e,o)});return n?Go.createPortal(u,n):u}const An=({isLoaded:e=!1,className:t,contentClassName:n,children:r,disableAnimation:a=!1,loadingDuration:i})=>{const[o,s]=O.useState(e);O.useEffect(()=>{if(i&&!e){const c=setTimeout(()=>{s(!0)},i);return()=>clearTimeout(c)}},[i,e]);const l=e||o;return y.jsx("div",{"data-loaded":l,className:J("group relative overflow-hidden bg-neutral-700/20","pointer-events-none",!a&&!l&&["before:opacity-100 before:absolute before:inset-0","before:-translate-x-full before:animate-shimmer","before:bg-gradient-to-r","before:from-transparent before:via-neutral-600/30","before:to-transparent"],"after:opacity-100 after:absolute after:inset-0 after:-z-10","after:bg-heroui-content3","data-[loaded=true]:pointer-events-auto data-[loaded=true]:overflow-visible","data-[loaded=true]:!bg-transparent data-[loaded=true]:before:opacity-0","data-[loaded=true]:before:-z-10 data-[loaded=true]:before:animate-none","data-[loaded=true]:after:opacity-0","transition-[background] !duration-300","h-4 rounded-lg",t),children:y.jsx("div",{className:J("opacity-0 group-data-[loaded=true]:opacity-100","transition-opacity motion-reduce:transition-none !duration-300",n),children:r})})},mO=({words:e,className:t,filter:n=!0,duration:r=.5})=>{const[a,i]=G0();let o=e.split(" ");O.useEffect(()=>{const l=setTimeout(()=>{a.current&&i("span",{opacity:1,filter:n?"blur(0px)":"none"},{duration:r||1,delay:Ek(.2)})},50);return()=>clearTimeout(l)},[e,a,i,r,n]);const s=()=>y.jsx(oe.div,{ref:a,children:o.map((l,c)=>y.jsxs(oe.span,{className:"text-gray-700/60 opacity-0",style:{filter:n?"blur(10px)":"none"},children:[l," "]},`${l}-${c}`))});return y.jsx("span",{className:J("text-gray-700 text-xs font-medium leading-snug tracking-wide",t),children:s()})},hO=({isLoaded:e=!1,progressMessage:t="Processing..."})=>y.jsxs("div",{className:"flex w-64 flex-col gap-2 relative",children:[y.jsx(An,{isLoaded:e}),y.jsx(An,{isLoaded:e}),y.jsxs("div",{className:"flex gap-1 items-center",children:[y.jsx(An,{className:"duration-100 flex-1",isLoaded:e}),y.jsx("div",{className:"bg-[#fefef8] px-3 z-10",children:y.jsx(mO,{words:t,className:"text-gray-700/60 font-medium"},t)}),y.jsx(An,{className:"duration-100 flex-1",isLoaded:e})]}),y.jsx(An,{isLoaded:e}),y.jsx(An,{isLoaded:e})]});function vh(e){const t=[],n=String(e||"");let r=n.indexOf(","),a=0,i=!1;for(;!i;){r===-1&&(r=n.length,i=!0);const o=n.slice(a,r).trim();(o||!i)&&t.push(o),a=r+1,r=n.indexOf(",",a)}return t}function bO(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const yO=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,EO=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,wO={};function xh(e,t){return(wO.jsx?EO:yO).test(e)}const SO=/[ \t\n\f\r]/g;function vO(e){return typeof e=="object"?e.type==="text"?kh(e.value):!1:kh(e)}function kh(e){return e.replace(SO,"")===""}class ua{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}ua.prototype.normal={};ua.prototype.property={};ua.prototype.space=void 0;function Zw(e,t){const n={},r={};for(const a of e)Object.assign(n,a.property),Object.assign(r,a.normal);return new ua(n,r,t)}function Yr(e){return e.toLowerCase()}class Ye{constructor(t,n){this.attribute=n,this.property=t}}Ye.prototype.attribute="";Ye.prototype.booleanish=!1;Ye.prototype.boolean=!1;Ye.prototype.commaOrSpaceSeparated=!1;Ye.prototype.commaSeparated=!1;Ye.prototype.defined=!1;Ye.prototype.mustUseProperty=!1;Ye.prototype.number=!1;Ye.prototype.overloadedBoolean=!1;Ye.prototype.property="";Ye.prototype.spaceSeparated=!1;Ye.prototype.space=void 0;let xO=0;const ne=En(),ke=En(),Ns=En(),G=En(),ye=En(),jn=En(),Ze=En();function En(){return 2**++xO}const _s=Object.freeze(Object.defineProperty({__proto__:null,boolean:ne,booleanish:ke,commaOrSpaceSeparated:Ze,commaSeparated:jn,number:G,overloadedBoolean:Ns,spaceSeparated:ye},Symbol.toStringTag,{value:"Module"})),ko=Object.keys(_s);class Hl extends Ye{constructor(t,n,r,a){let i=-1;if(super(t,n),Th(this,"space",a),typeof r=="number")for(;++i<ko.length;){const o=ko[i];Th(this,ko[i],(r&_s[o])===_s[o])}}}Hl.prototype.defined=!0;function Th(e,t,n){n&&(e[t]=n)}function nr(e){const t={},n={};for(const[r,a]of Object.entries(e.properties)){const i=new Hl(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[Yr(r)]=r,n[Yr(i.attribute)]=r}return new ua(t,n,e.space)}const Qw=nr({properties:{ariaActiveDescendant:null,ariaAtomic:ke,ariaAutoComplete:null,ariaBusy:ke,ariaChecked:ke,ariaColCount:G,ariaColIndex:G,ariaColSpan:G,ariaControls:ye,ariaCurrent:null,ariaDescribedBy:ye,ariaDetails:null,ariaDisabled:ke,ariaDropEffect:ye,ariaErrorMessage:null,ariaExpanded:ke,ariaFlowTo:ye,ariaGrabbed:ke,ariaHasPopup:null,ariaHidden:ke,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ye,ariaLevel:G,ariaLive:null,ariaModal:ke,ariaMultiLine:ke,ariaMultiSelectable:ke,ariaOrientation:null,ariaOwns:ye,ariaPlaceholder:null,ariaPosInSet:G,ariaPressed:ke,ariaReadOnly:ke,ariaRelevant:null,ariaRequired:ke,ariaRoleDescription:ye,ariaRowCount:G,ariaRowIndex:G,ariaRowSpan:G,ariaSelected:ke,ariaSetSize:G,ariaSort:null,ariaValueMax:G,ariaValueMin:G,ariaValueNow:G,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Jw(e,t){return t in e?e[t]:t}function eS(e,t){return Jw(e,t.toLowerCase())}const kO=nr({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:jn,acceptCharset:ye,accessKey:ye,action:null,allow:null,allowFullScreen:ne,allowPaymentRequest:ne,allowUserMedia:ne,alt:null,as:null,async:ne,autoCapitalize:null,autoComplete:ye,autoFocus:ne,autoPlay:ne,blocking:ye,capture:null,charSet:null,checked:ne,cite:null,className:ye,cols:G,colSpan:null,content:null,contentEditable:ke,controls:ne,controlsList:ye,coords:G|jn,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ne,defer:ne,dir:null,dirName:null,disabled:ne,download:Ns,draggable:ke,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ne,formTarget:null,headers:ye,height:G,hidden:Ns,high:G,href:null,hrefLang:null,htmlFor:ye,httpEquiv:ye,id:null,imageSizes:null,imageSrcSet:null,inert:ne,inputMode:null,integrity:null,is:null,isMap:ne,itemId:null,itemProp:ye,itemRef:ye,itemScope:ne,itemType:ye,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ne,low:G,manifest:null,max:null,maxLength:G,media:null,method:null,min:null,minLength:G,multiple:ne,muted:ne,name:null,nonce:null,noModule:ne,noValidate:ne,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:ne,optimum:G,pattern:null,ping:ye,placeholder:null,playsInline:ne,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ne,referrerPolicy:null,rel:ye,required:ne,reversed:ne,rows:G,rowSpan:G,sandbox:ye,scope:null,scoped:ne,seamless:ne,selected:ne,shadowRootClonable:ne,shadowRootDelegatesFocus:ne,shadowRootMode:null,shape:null,size:G,sizes:null,slot:null,span:G,spellCheck:ke,src:null,srcDoc:null,srcLang:null,srcSet:null,start:G,step:null,style:null,tabIndex:G,target:null,title:null,translate:null,type:null,typeMustMatch:ne,useMap:null,value:ke,width:G,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ye,axis:null,background:null,bgColor:null,border:G,borderColor:null,bottomMargin:G,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ne,declare:ne,event:null,face:null,frame:null,frameBorder:null,hSpace:G,leftMargin:G,link:null,longDesc:null,lowSrc:null,marginHeight:G,marginWidth:G,noResize:ne,noHref:ne,noShade:ne,noWrap:ne,object:null,profile:null,prompt:null,rev:null,rightMargin:G,rules:null,scheme:null,scrolling:ke,standby:null,summary:null,text:null,topMargin:G,valueType:null,version:null,vAlign:null,vLink:null,vSpace:G,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ne,disableRemotePlayback:ne,prefix:null,property:null,results:G,security:null,unselectable:null},space:"html",transform:eS}),TO=nr({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Ze,accentHeight:G,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:G,amplitude:G,arabicForm:null,ascent:G,attributeName:null,attributeType:null,azimuth:G,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:G,by:null,calcMode:null,capHeight:G,className:ye,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:G,diffuseConstant:G,direction:null,display:null,dur:null,divisor:G,dominantBaseline:null,download:ne,dx:null,dy:null,edgeMode:null,editable:null,elevation:G,enableBackground:null,end:null,event:null,exponent:G,externalResourcesRequired:null,fill:null,fillOpacity:G,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:jn,g2:jn,glyphName:jn,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:G,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:G,horizOriginX:G,horizOriginY:G,id:null,ideographic:G,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:G,k:G,k1:G,k2:G,k3:G,k4:G,kernelMatrix:Ze,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:G,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:G,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:G,overlineThickness:G,paintOrder:null,panose1:null,path:null,pathLength:G,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ye,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:G,pointsAtY:G,pointsAtZ:G,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ze,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ze,rev:Ze,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ze,requiredFeatures:Ze,requiredFonts:Ze,requiredFormats:Ze,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:G,specularExponent:G,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:G,strikethroughThickness:G,string:null,stroke:null,strokeDashArray:Ze,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:G,strokeOpacity:G,strokeWidth:null,style:null,surfaceScale:G,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ze,tabIndex:G,tableValues:null,target:null,targetX:G,targetY:G,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ze,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:G,underlineThickness:G,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:G,values:null,vAlphabetic:G,vMathematical:G,vectorEffect:null,vHanging:G,vIdeographic:G,version:null,vertAdvY:G,vertOriginX:G,vertOriginY:G,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:G,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Jw}),tS=nr({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),nS=nr({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:eS}),rS=nr({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),AO={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"},RO=/[A-Z]/g,Ah=/-[a-z]/g,IO=/^data[-\w.:]+$/i;function aS(e,t){const n=Yr(t);let r=t,a=Ye;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&IO.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(Ah,NO);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!Ah.test(i)){let o=i.replace(RO,CO);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}a=Hl}return new a(r,t)}function CO(e){return"-"+e.toLowerCase()}function NO(e){return e.charAt(1).toUpperCase()}const iS=Zw([Qw,kO,tS,nS,rS],"html"),Oi=Zw([Qw,TO,tS,nS,rS],"svg");function Rh(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function _O(e){return e.join(" ").trim()}var Rn={},To,Ih;function OO(){if(Ih)return To;Ih=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,s=/^\s+|\s+$/g,l=`
|
|
2734
|
+
`}}),y.jsx("div",{className:J("relative z-20",t),children:e})]})},Eh=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,wh=LE,_i=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return wh(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:a,defaultVariants:i}=t,o=Object.keys(a).map(c=>{const u=n==null?void 0:n[c],d=i==null?void 0:i[c];if(u===null)return null;const p=Eh(u)||Eh(d);return a[c][p]}),s=n&&Object.entries(n).reduce((c,u)=>{let[d,p]=u;return p===void 0||(c[d]=p),c},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((c,u)=>{let{class:d,className:p,...f}=u;return Object.entries(f).every(g=>{let[b,h]=g;return Array.isArray(h)?h.includes({...i,...s}[b]):{...i,...s}[b]===h})?[...c,d,p]:c},[]);return wh(e,o,l,n==null?void 0:n.class,n==null?void 0:n.className)},uO=oe.create(NI),dO=oe.create(OI),Sh={copied:{scale:1,opacity:1,transition:{duration:.15}},idle:{scale:.8,opacity:0,transition:{duration:.15}}},Gl=O.memo(({textToCopy:e,onClick:t,className:n,iconClassName:r,disabled:a})=>{const[i,o]=O.useState(!1),s=async()=>{try{await navigator.clipboard.writeText(e),o(!0),setTimeout(()=>o(!1),2e3)}catch(c){console.error("Failed to copy text: ",c)}},l=()=>{s(),t&&t()};return y.jsxs(Bt,{children:[y.jsx(Ut,{onClick:l,className:n,disabled:a,children:y.jsx(Rt,{mode:"wait",initial:!1,children:i?y.jsx(uO,{initial:"idle",animate:"copied",exit:"idle",variants:Sh,className:J("size-4 text-telnyx-green",r)},"check"):y.jsx(dO,{initial:"idle",animate:"copied",exit:"idle",variants:Sh,className:J("size-4 text-stone-600 cursor-pointer hover:text-stone-900",r)},"copy")})}),y.jsx(At,{side:"bottom",children:y.jsx("p",{children:i?"Copied!":"Copy this message"})})]})}),pO=({size:e=96,spokeWidth:t=6,animationDuration:n=4})=>y.jsxs("div",{className:"relative animate-rotate-loader flex items-center justify-center",style:{width:e,height:e,animationDuration:`${n}s`},children:[y.jsx("div",{className:`rounded-full z-10 animate-scale-loader bg-telnyx-light-green duration-[${n/2}s]`,style:{width:e/8,height:e/8}}),Array.from({length:12}).map((a,i)=>{const o=i*30;return y.jsx("div",{className:"absolute bg-stone-700 rounded-[30px] top-0 left-1/2 transform origin-bottom",style:{transform:`translateX(-50%) rotate(${o}deg)`,height:e/2,width:t}},i+o)})]}),fO=e=>{const t=new CSSStyleSheet;return t.replaceSync(e.replace("((-webkit-hyphens: none) and (not (margin-trim: inline)))","(not (margin-trim: inline))")),t},gO=(e,t)=>{if(!t)return;const n=fO(t);e.adoptedStyleSheets=[n]};function Vl({children:e,shadowRootInit:t,targetMountContainer:n,ref:r,...a}){const i=Y(d=>d.widgetStyleSheetText),[o,s]=O.useState(null),l=O.useCallback(d=>{if(!d||d.shadowRoot)return;const p=d.attachShadow({mode:"open",...t});i&&gO(p,i),s(p)},[i,t]),c=O.useCallback(d=>{l(d),typeof r=="function"?r(d):r&&(r.current=d)},[l,r]),u=y.jsx("div",{ref:c,...a,children:o&&Go.createPortal(e,o)});return n?Go.createPortal(u,n):u}const An=({isLoaded:e=!1,className:t,contentClassName:n,children:r,disableAnimation:a=!1,loadingDuration:i})=>{const[o,s]=O.useState(e);O.useEffect(()=>{if(i&&!e){const c=setTimeout(()=>{s(!0)},i);return()=>clearTimeout(c)}},[i,e]);const l=e||o;return y.jsx("div",{"data-loaded":l,className:J("group relative overflow-hidden bg-neutral-700/20","pointer-events-none",!a&&!l&&["before:opacity-100 before:absolute before:inset-0","before:-translate-x-full before:animate-shimmer","before:bg-gradient-to-r","before:from-transparent before:via-neutral-600/30","before:to-transparent"],"after:opacity-100 after:absolute after:inset-0 after:-z-10","after:bg-heroui-content3","data-[loaded=true]:pointer-events-auto data-[loaded=true]:overflow-visible","data-[loaded=true]:!bg-transparent data-[loaded=true]:before:opacity-0","data-[loaded=true]:before:-z-10 data-[loaded=true]:before:animate-none","data-[loaded=true]:after:opacity-0","transition-[background] !duration-300","h-4 rounded-lg",t),children:y.jsx("div",{className:J("opacity-0 group-data-[loaded=true]:opacity-100","transition-opacity motion-reduce:transition-none !duration-300",n),children:r})})},mO=({words:e,className:t,filter:n=!0,duration:r=.5})=>{const[a,i]=G0();let o=e.split(" ");O.useEffect(()=>{const l=setTimeout(()=>{a.current&&i("span",{opacity:1,filter:n?"blur(0px)":"none"},{duration:r||1,delay:Ek(.2)})},50);return()=>clearTimeout(l)},[e,a,i,r,n]);const s=()=>y.jsx(oe.div,{ref:a,children:o.map((l,c)=>y.jsxs(oe.span,{className:"text-gray-700/60 opacity-0",style:{filter:n?"blur(10px)":"none"},children:[l," "]},`${l}-${c}`))});return y.jsx("span",{className:J("text-gray-700 text-xs font-medium leading-snug tracking-wide",t),children:s()})},hO=({isLoaded:e=!1,progressMessage:t="Processing..."})=>y.jsxs("div",{className:"flex w-64 flex-col gap-2 relative",children:[y.jsx(An,{isLoaded:e}),y.jsx(An,{isLoaded:e}),y.jsxs("div",{className:"flex gap-1 items-center",children:[y.jsx(An,{className:"duration-100 flex-1",isLoaded:e}),y.jsxs("div",{className:"relative z-10 overflow-hidden rounded-lg bg-neutral-700/20 p-px",children:[!e&&y.jsx("div",{"aria-hidden":"true",className:"pointer-events-none absolute inset-0 -translate-x-full animate-shimmer bg-gradient-to-r from-transparent via-neutral-600/30 to-transparent motion-reduce:animate-none"}),y.jsx("div",{className:"relative rounded-[7px] bg-widget-bg-tertiary px-3 py-1",children:y.jsx(mO,{words:t,className:"text-gray-700/60 font-medium"},t)})]}),y.jsx(An,{className:"duration-100 flex-1",isLoaded:e})]}),y.jsx(An,{isLoaded:e}),y.jsx(An,{isLoaded:e})]});function vh(e){const t=[],n=String(e||"");let r=n.indexOf(","),a=0,i=!1;for(;!i;){r===-1&&(r=n.length,i=!0);const o=n.slice(a,r).trim();(o||!i)&&t.push(o),a=r+1,r=n.indexOf(",",a)}return t}function bO(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const yO=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,EO=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,wO={};function xh(e,t){return(wO.jsx?EO:yO).test(e)}const SO=/[ \t\n\f\r]/g;function vO(e){return typeof e=="object"?e.type==="text"?kh(e.value):!1:kh(e)}function kh(e){return e.replace(SO,"")===""}class ua{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}ua.prototype.normal={};ua.prototype.property={};ua.prototype.space=void 0;function Zw(e,t){const n={},r={};for(const a of e)Object.assign(n,a.property),Object.assign(r,a.normal);return new ua(n,r,t)}function Yr(e){return e.toLowerCase()}class Ye{constructor(t,n){this.attribute=n,this.property=t}}Ye.prototype.attribute="";Ye.prototype.booleanish=!1;Ye.prototype.boolean=!1;Ye.prototype.commaOrSpaceSeparated=!1;Ye.prototype.commaSeparated=!1;Ye.prototype.defined=!1;Ye.prototype.mustUseProperty=!1;Ye.prototype.number=!1;Ye.prototype.overloadedBoolean=!1;Ye.prototype.property="";Ye.prototype.spaceSeparated=!1;Ye.prototype.space=void 0;let xO=0;const ne=En(),ke=En(),Ns=En(),G=En(),ye=En(),jn=En(),Ze=En();function En(){return 2**++xO}const _s=Object.freeze(Object.defineProperty({__proto__:null,boolean:ne,booleanish:ke,commaOrSpaceSeparated:Ze,commaSeparated:jn,number:G,overloadedBoolean:Ns,spaceSeparated:ye},Symbol.toStringTag,{value:"Module"})),ko=Object.keys(_s);class Hl extends Ye{constructor(t,n,r,a){let i=-1;if(super(t,n),Th(this,"space",a),typeof r=="number")for(;++i<ko.length;){const o=ko[i];Th(this,ko[i],(r&_s[o])===_s[o])}}}Hl.prototype.defined=!0;function Th(e,t,n){n&&(e[t]=n)}function nr(e){const t={},n={};for(const[r,a]of Object.entries(e.properties)){const i=new Hl(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[Yr(r)]=r,n[Yr(i.attribute)]=r}return new ua(t,n,e.space)}const Qw=nr({properties:{ariaActiveDescendant:null,ariaAtomic:ke,ariaAutoComplete:null,ariaBusy:ke,ariaChecked:ke,ariaColCount:G,ariaColIndex:G,ariaColSpan:G,ariaControls:ye,ariaCurrent:null,ariaDescribedBy:ye,ariaDetails:null,ariaDisabled:ke,ariaDropEffect:ye,ariaErrorMessage:null,ariaExpanded:ke,ariaFlowTo:ye,ariaGrabbed:ke,ariaHasPopup:null,ariaHidden:ke,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ye,ariaLevel:G,ariaLive:null,ariaModal:ke,ariaMultiLine:ke,ariaMultiSelectable:ke,ariaOrientation:null,ariaOwns:ye,ariaPlaceholder:null,ariaPosInSet:G,ariaPressed:ke,ariaReadOnly:ke,ariaRelevant:null,ariaRequired:ke,ariaRoleDescription:ye,ariaRowCount:G,ariaRowIndex:G,ariaRowSpan:G,ariaSelected:ke,ariaSetSize:G,ariaSort:null,ariaValueMax:G,ariaValueMin:G,ariaValueNow:G,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Jw(e,t){return t in e?e[t]:t}function eS(e,t){return Jw(e,t.toLowerCase())}const kO=nr({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:jn,acceptCharset:ye,accessKey:ye,action:null,allow:null,allowFullScreen:ne,allowPaymentRequest:ne,allowUserMedia:ne,alt:null,as:null,async:ne,autoCapitalize:null,autoComplete:ye,autoFocus:ne,autoPlay:ne,blocking:ye,capture:null,charSet:null,checked:ne,cite:null,className:ye,cols:G,colSpan:null,content:null,contentEditable:ke,controls:ne,controlsList:ye,coords:G|jn,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ne,defer:ne,dir:null,dirName:null,disabled:ne,download:Ns,draggable:ke,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ne,formTarget:null,headers:ye,height:G,hidden:Ns,high:G,href:null,hrefLang:null,htmlFor:ye,httpEquiv:ye,id:null,imageSizes:null,imageSrcSet:null,inert:ne,inputMode:null,integrity:null,is:null,isMap:ne,itemId:null,itemProp:ye,itemRef:ye,itemScope:ne,itemType:ye,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ne,low:G,manifest:null,max:null,maxLength:G,media:null,method:null,min:null,minLength:G,multiple:ne,muted:ne,name:null,nonce:null,noModule:ne,noValidate:ne,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:ne,optimum:G,pattern:null,ping:ye,placeholder:null,playsInline:ne,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ne,referrerPolicy:null,rel:ye,required:ne,reversed:ne,rows:G,rowSpan:G,sandbox:ye,scope:null,scoped:ne,seamless:ne,selected:ne,shadowRootClonable:ne,shadowRootDelegatesFocus:ne,shadowRootMode:null,shape:null,size:G,sizes:null,slot:null,span:G,spellCheck:ke,src:null,srcDoc:null,srcLang:null,srcSet:null,start:G,step:null,style:null,tabIndex:G,target:null,title:null,translate:null,type:null,typeMustMatch:ne,useMap:null,value:ke,width:G,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ye,axis:null,background:null,bgColor:null,border:G,borderColor:null,bottomMargin:G,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ne,declare:ne,event:null,face:null,frame:null,frameBorder:null,hSpace:G,leftMargin:G,link:null,longDesc:null,lowSrc:null,marginHeight:G,marginWidth:G,noResize:ne,noHref:ne,noShade:ne,noWrap:ne,object:null,profile:null,prompt:null,rev:null,rightMargin:G,rules:null,scheme:null,scrolling:ke,standby:null,summary:null,text:null,topMargin:G,valueType:null,version:null,vAlign:null,vLink:null,vSpace:G,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ne,disableRemotePlayback:ne,prefix:null,property:null,results:G,security:null,unselectable:null},space:"html",transform:eS}),TO=nr({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Ze,accentHeight:G,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:G,amplitude:G,arabicForm:null,ascent:G,attributeName:null,attributeType:null,azimuth:G,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:G,by:null,calcMode:null,capHeight:G,className:ye,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:G,diffuseConstant:G,direction:null,display:null,dur:null,divisor:G,dominantBaseline:null,download:ne,dx:null,dy:null,edgeMode:null,editable:null,elevation:G,enableBackground:null,end:null,event:null,exponent:G,externalResourcesRequired:null,fill:null,fillOpacity:G,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:jn,g2:jn,glyphName:jn,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:G,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:G,horizOriginX:G,horizOriginY:G,id:null,ideographic:G,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:G,k:G,k1:G,k2:G,k3:G,k4:G,kernelMatrix:Ze,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:G,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:G,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:G,overlineThickness:G,paintOrder:null,panose1:null,path:null,pathLength:G,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ye,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:G,pointsAtY:G,pointsAtZ:G,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ze,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ze,rev:Ze,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ze,requiredFeatures:Ze,requiredFonts:Ze,requiredFormats:Ze,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:G,specularExponent:G,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:G,strikethroughThickness:G,string:null,stroke:null,strokeDashArray:Ze,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:G,strokeOpacity:G,strokeWidth:null,style:null,surfaceScale:G,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ze,tabIndex:G,tableValues:null,target:null,targetX:G,targetY:G,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ze,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:G,underlineThickness:G,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:G,values:null,vAlphabetic:G,vMathematical:G,vectorEffect:null,vHanging:G,vIdeographic:G,version:null,vertAdvY:G,vertOriginX:G,vertOriginY:G,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:G,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Jw}),tS=nr({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),nS=nr({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:eS}),rS=nr({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),AO={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"},RO=/[A-Z]/g,Ah=/-[a-z]/g,IO=/^data[-\w.:]+$/i;function aS(e,t){const n=Yr(t);let r=t,a=Ye;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&IO.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(Ah,NO);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!Ah.test(i)){let o=i.replace(RO,CO);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}a=Hl}return new a(r,t)}function CO(e){return"-"+e.toLowerCase()}function NO(e){return e.charAt(1).toUpperCase()}const iS=Zw([Qw,kO,tS,nS,rS],"html"),Oi=Zw([Qw,TO,tS,nS,rS],"svg");function Rh(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function _O(e){return e.join(" ").trim()}var Rn={},To,Ih;function OO(){if(Ih)return To;Ih=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,s=/^\s+|\s+$/g,l=`
|
|
2708
2735
|
`,c="/",u="*",d="",p="comment",f="declaration";function g(h,m){if(typeof h!="string")throw new TypeError("First argument must be a string");if(!h)return[];m=m||{};var E=1,S=1;function T(z){var B=z.match(t);B&&(E+=B.length);var H=z.lastIndexOf(l);S=~H?z.length-H:S+z.length}function A(){var z={line:E,column:S};return function(B){return B.position=new v(z),D(),B}}function v(z){this.start=z,this.end={line:E,column:S},this.source=m.source}v.prototype.content=h;function _(z){var B=new Error(m.source+":"+E+":"+S+": "+z);if(B.reason=z,B.filename=m.source,B.line=E,B.column=S,B.source=h,!m.silent)throw B}function N(z){var B=z.exec(h);if(B){var H=B[0];return T(H),h=h.slice(H.length),B}}function D(){N(n)}function R(z){var B;for(z=z||[];B=F();)B!==!1&&z.push(B);return z}function F(){var z=A();if(!(c!=h.charAt(0)||u!=h.charAt(1))){for(var B=2;d!=h.charAt(B)&&(u!=h.charAt(B)||c!=h.charAt(B+1));)++B;if(B+=2,d===h.charAt(B-1))return _("End of comment missing");var H=h.slice(2,B-2);return S+=2,T(H),h=h.slice(B),S+=2,z({type:p,comment:H})}}function P(){var z=A(),B=N(r);if(B){if(F(),!N(a))return _("property missing ':'");var H=N(i),j=z({type:f,property:b(B[0].replace(e,d)),value:H?b(H[0].replace(e,d)):d});return N(o),j}}function U(){var z=[];R(z);for(var B;B=P();)B!==!1&&(z.push(B),R(z));return z}return D(),U()}function b(h){return h?h.replace(s,d):d}return To=g,To}var Ch;function LO(){if(Ch)return Rn;Ch=1;var e=Rn&&Rn.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Rn,"__esModule",{value:!0}),Rn.default=n;const t=e(OO());function n(r,a){let i=null;if(!r||typeof r!="string")return i;const o=(0,t.default)(r),s=typeof a=="function";return o.forEach(l=>{if(l.type!=="declaration")return;const{property:c,value:u}=l;s?a(c,u,l):u&&(i=i||{},i[c]=u)}),i}return Rn}var Sr={},Nh;function DO(){if(Nh)return Sr;Nh=1,Object.defineProperty(Sr,"__esModule",{value:!0}),Sr.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,i=function(c){return!c||n.test(c)||e.test(c)},o=function(c,u){return u.toUpperCase()},s=function(c,u){return"".concat(u,"-")},l=function(c,u){return u===void 0&&(u={}),i(c)?c:(c=c.toLowerCase(),u.reactCompat?c=c.replace(a,s):c=c.replace(r,s),c.replace(t,o))};return Sr.camelCase=l,Sr}var vr,_h;function MO(){if(_h)return vr;_h=1;var e=vr&&vr.__importDefault||function(a){return a&&a.__esModule?a:{default:a}},t=e(LO()),n=DO();function r(a,i){var o={};return!a||typeof a!="string"||(0,t.default)(a,function(s,l){s&&l&&(o[(0,n.camelCase)(s,i)]=l)}),o}return r.default=r,vr=r,vr}var FO=MO();const PO=Nb(FO),oS=sS("end"),$l=sS("start");function sS(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function BO(e){const t=$l(e),n=oS(e);if(t&&n)return{start:t,end:n}}function _r(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Oh(e.position):"start"in e||"end"in e?Oh(e):"line"in e||"column"in e?Os(e):""}function Os(e){return Lh(e&&e.line)+":"+Lh(e&&e.column)}function Oh(e){return Os(e&&e.start)+"-"+Os(e&&e.end)}function Lh(e){return e&&typeof e=="number"?e:1}class Fe extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let a="",i={},o=!1;if(n&&("line"in n&&"column"in n?i={place:n}:"start"in n&&"end"in n?i={place:n}:"type"in n?i={ancestors:[n],place:n.position}:i={...n}),typeof t=="string"?a=t:!i.cause&&t&&(o=!0,a=t.message,i.cause=t),!i.ruleId&&!i.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?i.ruleId=r:(i.source=r.slice(0,l),i.ruleId=r.slice(l+1))}if(!i.place&&i.ancestors&&i.ancestors){const l=i.ancestors[i.ancestors.length-1];l&&(i.place=l.position)}const s=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file="",this.message=a,this.line=s?s.line:void 0,this.name=_r(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=o&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Fe.prototype.file="";Fe.prototype.name="";Fe.prototype.reason="";Fe.prototype.message="";Fe.prototype.stack="";Fe.prototype.column=void 0;Fe.prototype.line=void 0;Fe.prototype.ancestors=void 0;Fe.prototype.cause=void 0;Fe.prototype.fatal=void 0;Fe.prototype.place=void 0;Fe.prototype.ruleId=void 0;Fe.prototype.source=void 0;const Wl={}.hasOwnProperty,UO=new Map,zO=/[A-Z]/g,jO=new Set(["table","tbody","thead","tfoot","tr"]),GO=new Set(["td","th"]),lS="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function VO(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=ZO(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=XO(n,t.jsx,t.jsxs)}const a={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Oi:iS,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},i=cS(a,e,void 0);return i&&typeof i!="string"?i:a.create(e,a.Fragment,{children:i||void 0},void 0)}function cS(e,t,n){if(t.type==="element")return HO(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return $O(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return qO(e,t,n);if(t.type==="mdxjsEsm")return WO(e,t);if(t.type==="root")return YO(e,t,n);if(t.type==="text")return KO(e,t)}function HO(e,t,n){const r=e.schema;let a=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(a=Oi,e.schema=a),e.ancestors.push(t);const i=dS(e,t.tagName,!1),o=QO(e,t);let s=Yl(e,t);return jO.has(t.tagName)&&(s=s.filter(function(l){return typeof l=="string"?!vO(l):!0})),uS(e,o,i,t),ql(o,s),e.ancestors.pop(),e.schema=r,e.create(t,i,o,n)}function $O(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)}Kr(e,t.position)}function WO(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Kr(e,t.position)}function qO(e,t,n){const r=e.schema;let a=r;t.name==="svg"&&r.space==="html"&&(a=Oi,e.schema=a),e.ancestors.push(t);const i=t.name===null?e.Fragment:dS(e,t.name,!0),o=JO(e,t),s=Yl(e,t);return uS(e,o,i,t),ql(o,s),e.ancestors.pop(),e.schema=r,e.create(t,i,o,n)}function YO(e,t,n){const r={};return ql(r,Yl(e,t)),e.create(t,e.Fragment,r,n)}function KO(e,t){return t.value}function uS(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function ql(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function XO(e,t,n){return r;function r(a,i,o,s){const c=Array.isArray(o.children)?n:t;return s?c(i,o,s):c(i,o)}}function ZO(e,t){return n;function n(r,a,i,o){const s=Array.isArray(i.children),l=$l(r);return t(a,i,o,s,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function QO(e,t){const n={};let r,a;for(a in t.properties)if(a!=="children"&&Wl.call(t.properties,a)){const i=e1(e,a,t.properties[a]);if(i){const[o,s]=i;e.tableCellAlignToStyle&&o==="align"&&typeof s=="string"&&GO.has(t.tagName)?r=s:n[o]=s}}if(r){const i=n.style||(n.style={});i[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function JO(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const i=r.data.estree.body[0];i.type;const o=i.expression;o.type;const s=o.properties[0];s.type,Object.assign(n,e.evaluater.evaluateExpression(s.argument))}else Kr(e,t.position);else{const a=r.name;let i;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const s=r.value.data.estree.body[0];s.type,i=e.evaluater.evaluateExpression(s.expression)}else Kr(e,t.position);else i=r.value===null?!0:r.value;n[a]=i}return n}function Yl(e,t){const n=[];let r=-1;const a=e.passKeys?new Map:UO;for(;++r<t.children.length;){const i=t.children[r];let o;if(e.passKeys){const l=i.type==="element"?i.tagName:i.type==="mdxJsxFlowElement"||i.type==="mdxJsxTextElement"?i.name:void 0;if(l){const c=a.get(l)||0;o=l+"-"+c,a.set(l,c+1)}}const s=cS(e,i,o);s!==void 0&&n.push(s)}return n}function e1(e,t,n){const r=aS(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?bO(n):_O(n)),r.property==="style"){let a=typeof n=="object"?n:t1(e,String(n));return e.stylePropertyNameCase==="css"&&(a=n1(a)),["style",a]}return[e.elementAttributeNameCase==="react"&&r.space?AO[r.property]||r.property:r.attribute,n]}}function t1(e,t){try{return PO(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,a=new Fe("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw a.file=e.filePath||void 0,a.url=lS+"#cannot-parse-style-attribute",a}}function dS(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const a=t.split(".");let i=-1,o;for(;++i<a.length;){const s=xh(a[i])?{type:"Identifier",name:a[i]}:{type:"Literal",value:a[i]};o=o?{type:"MemberExpression",object:o,property:s,computed:!!(i&&s.type==="Literal"),optional:!1}:s}r=o}else r=xh(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const a=r.value;return Wl.call(e.components,a)?e.components[a]:a}if(e.evaluater)return e.evaluater.evaluateExpression(r);Kr(e)}function Kr(e,t){const n=new Fe("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=lS+"#cannot-handle-mdx-estrees-without-createevaluater",n}function n1(e){const t={};let n;for(n in e)Wl.call(e,n)&&(t[r1(n)]=e[n]);return t}function r1(e){let t=e.replace(zO,a1);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function a1(e){return"-"+e.toLowerCase()}const Ao={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},i1={};function Kl(e,t){const n=i1,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,a=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return pS(e,r,a)}function pS(e,t,n){if(o1(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Dh(e.children,t,n)}return Array.isArray(e)?Dh(e,t,n):""}function Dh(e,t,n){const r=[];let a=-1;for(;++a<e.length;)r[a]=pS(e[a],t,n);return r.join("")}function o1(e){return!!(e&&typeof e=="object")}const Mh=document.createElement("i");function Xr(e){const t="&"+e+";";Mh.innerHTML=t;const n=Mh.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function et(e,t,n,r){const a=e.length;let i=0,o;if(t<0?t=-t>a?0:a+t:t=t>a?a:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);i<r.length;)o=r.slice(i,i+1e4),o.unshift(t,0),e.splice(...o),i+=1e4,t+=1e4}function at(e,t){return e.length>0?(et(e,e.length,0,t),e):t}const Fh={}.hasOwnProperty;function fS(e){const t={};let n=-1;for(;++n<e.length;)s1(t,e[n]);return t}function s1(e,t){let n;for(n in t){const a=(Fh.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n];let o;if(i)for(o in i){Fh.call(a,o)||(a[o]=[]);const s=i[o];l1(a[o],Array.isArray(s)?s:s?[s]:[])}}}function l1(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);et(e,0,0,r)}function gS(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function mt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Ue=Qt(/[A-Za-z]/),Me=Qt(/[\dA-Za-z]/),c1=Qt(/[#-'*+\--9=?A-Z^-~]/);function ci(e){return e!==null&&(e<32||e===127)}const Ls=Qt(/\d/),u1=Qt(/[\dA-Fa-f]/),d1=Qt(/[!-/:-@[-`{-~]/);function Q(e){return e!==null&&e<-2}function he(e){return e!==null&&(e<0||e===32)}function ae(e){return e===-2||e===-1||e===32}const Li=Qt(new RegExp("\\p{P}|\\p{S}","u")),yn=Qt(/\s/);function Qt(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function rr(e){const t=[];let n=-1,r=0,a=0;for(;++n<e.length;){const i=e.charCodeAt(n);let o="";if(i===37&&Me(e.charCodeAt(n+1))&&Me(e.charCodeAt(n+2)))a=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(o=String.fromCharCode(i));else if(i>55295&&i<57344){const s=e.charCodeAt(n+1);i<56320&&s>56319&&s<57344?(o=String.fromCharCode(i,s),a=1):o="�"}else o=String.fromCharCode(i);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+a+1,o=""),a&&(n+=a,a=0)}return t.join("")+e.slice(r)}function de(e,t,n,r){const a=r?r-1:Number.POSITIVE_INFINITY;let i=0;return o;function o(l){return ae(l)?(e.enter(n),s(l)):t(l)}function s(l){return ae(l)&&i++<a?(e.consume(l),s):(e.exit(n),t(l))}}const p1={tokenize:f1};function f1(e){const t=e.attempt(this.parser.constructs.contentInitial,r,a);let n;return t;function r(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),de(e,t,"linePrefix")}function a(s){return e.enter("paragraph"),i(s)}function i(s){const l=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=l),n=l,o(s)}function o(s){if(s===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(s);return}return Q(s)?(e.consume(s),e.exit("chunkText"),i):(e.consume(s),o)}}const g1={tokenize:m1},Ph={tokenize:h1};function m1(e){const t=this,n=[];let r=0,a,i,o;return s;function s(S){if(r<n.length){const T=n[r];return t.containerState=T[1],e.attempt(T[0].continuation,l,c)(S)}return c(S)}function l(S){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,a&&E();const T=t.events.length;let A=T,v;for(;A--;)if(t.events[A][0]==="exit"&&t.events[A][1].type==="chunkFlow"){v=t.events[A][1].end;break}m(r);let _=T;for(;_<t.events.length;)t.events[_][1].end={...v},_++;return et(t.events,A+1,0,t.events.slice(T)),t.events.length=_,c(S)}return s(S)}function c(S){if(r===n.length){if(!a)return p(S);if(a.currentConstruct&&a.currentConstruct.concrete)return g(S);t.interrupt=!!(a.currentConstruct&&!a._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Ph,u,d)(S)}function u(S){return a&&E(),m(r),p(S)}function d(S){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,g(S)}function p(S){return t.containerState={},e.attempt(Ph,f,g)(S)}function f(S){return r++,n.push([t.currentConstruct,t.containerState]),p(S)}function g(S){if(S===null){a&&E(),m(0),e.consume(S);return}return a=a||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:a,contentType:"flow",previous:i}),b(S)}function b(S){if(S===null){h(e.exit("chunkFlow"),!0),m(0),e.consume(S);return}return Q(S)?(e.consume(S),h(e.exit("chunkFlow")),r=0,t.interrupt=void 0,s):(e.consume(S),b)}function h(S,T){const A=t.sliceStream(S);if(T&&A.push(null),S.previous=i,i&&(i.next=S),i=S,a.defineSkip(S.start),a.write(A),t.parser.lazy[S.start.line]){let v=a.events.length;for(;v--;)if(a.events[v][1].start.offset<o&&(!a.events[v][1].end||a.events[v][1].end.offset>o))return;const _=t.events.length;let N=_,D,R;for(;N--;)if(t.events[N][0]==="exit"&&t.events[N][1].type==="chunkFlow"){if(D){R=t.events[N][1].end;break}D=!0}for(m(r),v=_;v<t.events.length;)t.events[v][1].end={...R},v++;et(t.events,N+1,0,t.events.slice(_)),t.events.length=v}}function m(S){let T=n.length;for(;T-- >S;){const A=n[T];t.containerState=A[1],A[0].exit.call(t,e)}n.length=S}function E(){a.write([null]),i=void 0,a=void 0,t.containerState._closeFlow=void 0}}function h1(e,t,n){return de(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function qn(e){if(e===null||he(e)||yn(e))return 1;if(Li(e))return 2}function Di(e,t,n){const r=[];let a=-1;for(;++a<e.length;){const i=e[a].resolveAll;i&&!r.includes(i)&&(t=i(t,n),r.push(i))}return t}const Ds={name:"attention",resolveAll:b1,tokenize:y1};function b1(e,t){let n=-1,r,a,i,o,s,l,c,u;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;l=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const d={...e[r][1].end},p={...e[n][1].start};Bh(d,-l),Bh(p,l),o={type:l>1?"strongSequence":"emphasisSequence",start:d,end:{...e[r][1].end}},s={type:l>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:p},i={type:l>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},a={type:l>1?"strong":"emphasis",start:{...o.start},end:{...s.end}},e[r][1].end={...o.start},e[n][1].start={...s.end},c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=at(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=at(c,[["enter",a,t],["enter",o,t],["exit",o,t],["enter",i,t]]),c=at(c,Di(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),c=at(c,[["exit",i,t],["enter",s,t],["exit",s,t],["exit",a,t]]),e[n][1].end.offset-e[n][1].start.offset?(u=2,c=at(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):u=0,et(e,r-1,n-r+3,c),n=r+c.length-u-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function y1(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,a=qn(r);let i;return o;function o(l){return i=l,e.enter("attentionSequence"),s(l)}function s(l){if(l===i)return e.consume(l),s;const c=e.exit("attentionSequence"),u=qn(l),d=!u||u===2&&a||n.includes(l),p=!a||a===2&&u||n.includes(r);return c._open=!!(i===42?d:d&&(a||!p)),c._close=!!(i===42?p:p&&(u||!d)),t(l)}}function Bh(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const E1={name:"autolink",tokenize:w1};function w1(e,t,n){let r=0;return a;function a(f){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i}function i(f){return Ue(f)?(e.consume(f),o):f===64?n(f):c(f)}function o(f){return f===43||f===45||f===46||Me(f)?(r=1,s(f)):c(f)}function s(f){return f===58?(e.consume(f),r=0,l):(f===43||f===45||f===46||Me(f))&&r++<32?(e.consume(f),s):(r=0,c(f))}function l(f){return f===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),t):f===null||f===32||f===60||ci(f)?n(f):(e.consume(f),l)}function c(f){return f===64?(e.consume(f),u):c1(f)?(e.consume(f),c):n(f)}function u(f){return Me(f)?d(f):n(f)}function d(f){return f===46?(e.consume(f),r=0,u):f===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),t):p(f)}function p(f){if((f===45||Me(f))&&r++<63){const g=f===45?p:d;return e.consume(f),g}return n(f)}}const da={partial:!0,tokenize:S1};function S1(e,t,n){return r;function r(i){return ae(i)?de(e,a,"linePrefix")(i):a(i)}function a(i){return i===null||Q(i)?t(i):n(i)}}const mS={continuation:{tokenize:x1},exit:k1,name:"blockQuote",tokenize:v1};function v1(e,t,n){const r=this;return a;function a(o){if(o===62){const s=r.containerState;return s.open||(e.enter("blockQuote",{_container:!0}),s.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),i}return n(o)}function i(o){return ae(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(o))}}function x1(e,t,n){const r=this;return a;function a(o){return ae(o)?de(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):i(o)}function i(o){return e.attempt(mS,t,n)(o)}}function k1(e){e.exit("blockQuote")}const hS={name:"characterEscape",tokenize:T1};function T1(e,t,n){return r;function r(i){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(i),e.exit("escapeMarker"),a}function a(i){return d1(i)?(e.enter("characterEscapeValue"),e.consume(i),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(i)}}const bS={name:"characterReference",tokenize:A1};function A1(e,t,n){const r=this;let a=0,i,o;return s;function s(d){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),l}function l(d){return d===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(d),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),i=31,o=Me,u(d))}function c(d){return d===88||d===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(d),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,o=u1,u):(e.enter("characterReferenceValue"),i=7,o=Ls,u(d))}function u(d){if(d===59&&a){const p=e.exit("characterReferenceValue");return o===Me&&!Xr(r.sliceSerialize(p))?n(d):(e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return o(d)&&a++<i?(e.consume(d),u):n(d)}}const Uh={partial:!0,tokenize:I1},zh={concrete:!0,name:"codeFenced",tokenize:R1};function R1(e,t,n){const r=this,a={partial:!0,tokenize:A};let i=0,o=0,s;return l;function l(v){return c(v)}function c(v){const _=r.events[r.events.length-1];return i=_&&_[1].type==="linePrefix"?_[2].sliceSerialize(_[1],!0).length:0,s=v,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),u(v)}function u(v){return v===s?(o++,e.consume(v),u):o<3?n(v):(e.exit("codeFencedFenceSequence"),ae(v)?de(e,d,"whitespace")(v):d(v))}function d(v){return v===null||Q(v)?(e.exit("codeFencedFence"),r.interrupt?t(v):e.check(Uh,b,T)(v)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(v))}function p(v){return v===null||Q(v)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),d(v)):ae(v)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),de(e,f,"whitespace")(v)):v===96&&v===s?n(v):(e.consume(v),p)}function f(v){return v===null||Q(v)?d(v):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),g(v))}function g(v){return v===null||Q(v)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),d(v)):v===96&&v===s?n(v):(e.consume(v),g)}function b(v){return e.attempt(a,T,h)(v)}function h(v){return e.enter("lineEnding"),e.consume(v),e.exit("lineEnding"),m}function m(v){return i>0&&ae(v)?de(e,E,"linePrefix",i+1)(v):E(v)}function E(v){return v===null||Q(v)?e.check(Uh,b,T)(v):(e.enter("codeFlowValue"),S(v))}function S(v){return v===null||Q(v)?(e.exit("codeFlowValue"),E(v)):(e.consume(v),S)}function T(v){return e.exit("codeFenced"),t(v)}function A(v,_,N){let D=0;return R;function R(B){return v.enter("lineEnding"),v.consume(B),v.exit("lineEnding"),F}function F(B){return v.enter("codeFencedFence"),ae(B)?de(v,P,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(B):P(B)}function P(B){return B===s?(v.enter("codeFencedFenceSequence"),U(B)):N(B)}function U(B){return B===s?(D++,v.consume(B),U):D>=o?(v.exit("codeFencedFenceSequence"),ae(B)?de(v,z,"whitespace")(B):z(B)):N(B)}function z(B){return B===null||Q(B)?(v.exit("codeFencedFence"),_(B)):N(B)}}}function I1(e,t,n){const r=this;return a;function a(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i)}function i(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const Ro={name:"codeIndented",tokenize:N1},C1={partial:!0,tokenize:_1};function N1(e,t,n){const r=this;return a;function a(c){return e.enter("codeIndented"),de(e,i,"linePrefix",5)(c)}function i(c){const u=r.events[r.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?o(c):n(c)}function o(c){return c===null?l(c):Q(c)?e.attempt(C1,o,l)(c):(e.enter("codeFlowValue"),s(c))}function s(c){return c===null||Q(c)?(e.exit("codeFlowValue"),o(c)):(e.consume(c),s)}function l(c){return e.exit("codeIndented"),t(c)}}function _1(e,t,n){const r=this;return a;function a(o){return r.parser.lazy[r.now().line]?n(o):Q(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):de(e,i,"linePrefix",5)(o)}function i(o){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):Q(o)?a(o):n(o)}}const O1={name:"codeText",previous:D1,resolve:L1,tokenize:M1};function L1(e){let t=e.length-4,n=3,r,a;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)a===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(a=r):(r===t||e[r][1].type==="lineEnding")&&(e[a][1].type="codeTextData",r!==a+2&&(e[a][1].end=e[r-1][1].end,e.splice(a+2,r-a-2),t-=r-a-2,r=a+2),a=void 0);return e}function D1(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function M1(e,t,n){let r=0,a,i;return o;function o(d){return e.enter("codeText"),e.enter("codeTextSequence"),s(d)}function s(d){return d===96?(e.consume(d),r++,s):(e.exit("codeTextSequence"),l(d))}function l(d){return d===null?n(d):d===32?(e.enter("space"),e.consume(d),e.exit("space"),l):d===96?(i=e.enter("codeTextSequence"),a=0,u(d)):Q(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),l):(e.enter("codeTextData"),c(d))}function c(d){return d===null||d===32||d===96||Q(d)?(e.exit("codeTextData"),l(d)):(e.consume(d),c)}function u(d){return d===96?(e.consume(d),a++,u):a===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(d)):(i.type="codeTextData",c(d))}}class F1{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const a=n||0;this.setCursor(Math.trunc(t));const i=this.right.splice(this.right.length-a,Number.POSITIVE_INFINITY);return r&&xr(this.left,r),i.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),xr(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),xr(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);xr(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);xr(this.left,n.reverse())}}}function xr(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function yS(e){const t={};let n=-1,r,a,i,o,s,l,c;const u=new F1(e);for(;++n<u.length;){for(;n in t;)n=t[n];if(r=u.get(n),n&&r[1].type==="chunkFlow"&&u.get(n-1)[1].type==="listItemPrefix"&&(l=r[1]._tokenizer.events,i=0,i<l.length&&l[i][1].type==="lineEndingBlank"&&(i+=2),i<l.length&&l[i][1].type==="content"))for(;++i<l.length&&l[i][1].type!=="content";)l[i][1].type==="chunkText"&&(l[i][1]._isInFirstContentOfListItem=!0,i++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,P1(u,n)),n=t[n],c=!0);else if(r[1]._container){for(i=n,a=void 0;i--;)if(o=u.get(i),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(a&&(u.get(a)[1].type="lineEndingBlank"),o[1].type="lineEnding",a=i);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;a&&(r[1].end={...u.get(a)[1].start},s=u.slice(a,n),s.unshift(r),u.splice(a,n-a+1,s))}}return et(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!c}function P1(e,t){const n=e.get(t)[1],r=e.get(t)[2];let a=t-1;const i=[];let o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const s=o.events,l=[],c={};let u,d,p=-1,f=n,g=0,b=0;const h=[b];for(;f;){for(;e.get(++a)[1]!==f;);i.push(a),f._tokenizer||(u=r.sliceStream(f),f.next||u.push(null),d&&o.defineSkip(f.start),f._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(u),f._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),d=f,f=f.next}for(f=n;++p<s.length;)s[p][0]==="exit"&&s[p-1][0]==="enter"&&s[p][1].type===s[p-1][1].type&&s[p][1].start.line!==s[p][1].end.line&&(b=p+1,h.push(b),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(o.events=[],f?(f._tokenizer=void 0,f.previous=void 0):h.pop(),p=h.length;p--;){const m=s.slice(h[p],h[p+1]),E=i.pop();l.push([E,E+m.length-1]),e.splice(E,2,m)}for(l.reverse(),p=-1;++p<l.length;)c[g+l[p][0]]=g+l[p][1],g+=l[p][1]-l[p][0]-1;return c}const B1={resolve:z1,tokenize:j1},U1={partial:!0,tokenize:G1};function z1(e){return yS(e),e}function j1(e,t){let n;return r;function r(s){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),a(s)}function a(s){return s===null?i(s):Q(s)?e.check(U1,o,i)(s):(e.consume(s),a)}function i(s){return e.exit("chunkContent"),e.exit("content"),t(s)}function o(s){return e.consume(s),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,a}}function G1(e,t,n){const r=this;return a;function a(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),de(e,i,"linePrefix")}function i(o){if(o===null||Q(o))return n(o);const s=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function ES(e,t,n,r,a,i,o,s,l){const c=l||Number.POSITIVE_INFINITY;let u=0;return d;function d(m){return m===60?(e.enter(r),e.enter(a),e.enter(i),e.consume(m),e.exit(i),p):m===null||m===32||m===41||ci(m)?n(m):(e.enter(r),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),b(m))}function p(m){return m===62?(e.enter(i),e.consume(m),e.exit(i),e.exit(a),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),f(m))}function f(m){return m===62?(e.exit("chunkString"),e.exit(s),p(m)):m===null||m===60||Q(m)?n(m):(e.consume(m),m===92?g:f)}function g(m){return m===60||m===62||m===92?(e.consume(m),f):f(m)}function b(m){return!u&&(m===null||m===41||he(m))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(r),t(m)):u<c&&m===40?(e.consume(m),u++,b):m===41?(e.consume(m),u--,b):m===null||m===32||m===40||ci(m)?n(m):(e.consume(m),m===92?h:b)}function h(m){return m===40||m===41||m===92?(e.consume(m),b):b(m)}}function wS(e,t,n,r,a,i){const o=this;let s=0,l;return c;function c(f){return e.enter(r),e.enter(a),e.consume(f),e.exit(a),e.enter(i),u}function u(f){return s>999||f===null||f===91||f===93&&!l||f===94&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs?n(f):f===93?(e.exit(i),e.enter(a),e.consume(f),e.exit(a),e.exit(r),t):Q(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),d(f))}function d(f){return f===null||f===91||f===93||Q(f)||s++>999?(e.exit("chunkString"),u(f)):(e.consume(f),l||(l=!ae(f)),f===92?p:d)}function p(f){return f===91||f===92||f===93?(e.consume(f),s++,d):d(f)}}function SS(e,t,n,r,a,i){let o;return s;function s(p){return p===34||p===39||p===40?(e.enter(r),e.enter(a),e.consume(p),e.exit(a),o=p===40?41:p,l):n(p)}function l(p){return p===o?(e.enter(a),e.consume(p),e.exit(a),e.exit(r),t):(e.enter(i),c(p))}function c(p){return p===o?(e.exit(i),l(o)):p===null?n(p):Q(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),de(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(p))}function u(p){return p===o||p===null||Q(p)?(e.exit("chunkString"),c(p)):(e.consume(p),p===92?d:u)}function d(p){return p===o||p===92?(e.consume(p),u):u(p)}}function Or(e,t){let n;return r;function r(a){return Q(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n=!0,r):ae(a)?de(e,r,n?"linePrefix":"lineSuffix")(a):t(a)}}const V1={name:"definition",tokenize:$1},H1={partial:!0,tokenize:W1};function $1(e,t,n){const r=this;let a;return i;function i(f){return e.enter("definition"),o(f)}function o(f){return wS.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(f)}function s(f){return a=mt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),f===58?(e.enter("definitionMarker"),e.consume(f),e.exit("definitionMarker"),l):n(f)}function l(f){return he(f)?Or(e,c)(f):c(f)}function c(f){return ES(e,u,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(f)}function u(f){return e.attempt(H1,d,d)(f)}function d(f){return ae(f)?de(e,p,"whitespace")(f):p(f)}function p(f){return f===null||Q(f)?(e.exit("definition"),r.parser.defined.push(a),t(f)):n(f)}}function W1(e,t,n){return r;function r(s){return he(s)?Or(e,a)(s):n(s)}function a(s){return SS(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function i(s){return ae(s)?de(e,o,"whitespace")(s):o(s)}function o(s){return s===null||Q(s)?t(s):n(s)}}const q1={name:"hardBreakEscape",tokenize:Y1};function Y1(e,t,n){return r;function r(i){return e.enter("hardBreakEscape"),e.consume(i),a}function a(i){return Q(i)?(e.exit("hardBreakEscape"),t(i)):n(i)}}const K1={name:"headingAtx",resolve:X1,tokenize:Z1};function X1(e,t){let n=e.length-2,r=3,a,i;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(a={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},i={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},et(e,r,n-r+1,[["enter",a,t],["enter",i,t],["exit",i,t],["exit",a,t]])),e}function Z1(e,t,n){let r=0;return a;function a(u){return e.enter("atxHeading"),i(u)}function i(u){return e.enter("atxHeadingSequence"),o(u)}function o(u){return u===35&&r++<6?(e.consume(u),o):u===null||he(u)?(e.exit("atxHeadingSequence"),s(u)):n(u)}function s(u){return u===35?(e.enter("atxHeadingSequence"),l(u)):u===null||Q(u)?(e.exit("atxHeading"),t(u)):ae(u)?de(e,s,"whitespace")(u):(e.enter("atxHeadingText"),c(u))}function l(u){return u===35?(e.consume(u),l):(e.exit("atxHeadingSequence"),s(u))}function c(u){return u===null||u===35||he(u)?(e.exit("atxHeadingText"),s(u)):(e.consume(u),c)}}const Q1=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],jh=["pre","script","style","textarea"],J1={concrete:!0,name:"htmlFlow",resolveTo:nL,tokenize:rL},eL={partial:!0,tokenize:iL},tL={partial:!0,tokenize:aL};function nL(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function rL(e,t,n){const r=this;let a,i,o,s,l;return c;function c(k){return u(k)}function u(k){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(k),d}function d(k){return k===33?(e.consume(k),p):k===47?(e.consume(k),i=!0,b):k===63?(e.consume(k),a=3,r.interrupt?t:x):Ue(k)?(e.consume(k),o=String.fromCharCode(k),h):n(k)}function p(k){return k===45?(e.consume(k),a=2,f):k===91?(e.consume(k),a=5,s=0,g):Ue(k)?(e.consume(k),a=4,r.interrupt?t:x):n(k)}function f(k){return k===45?(e.consume(k),r.interrupt?t:x):n(k)}function g(k){const Z="CDATA[";return k===Z.charCodeAt(s++)?(e.consume(k),s===Z.length?r.interrupt?t:P:g):n(k)}function b(k){return Ue(k)?(e.consume(k),o=String.fromCharCode(k),h):n(k)}function h(k){if(k===null||k===47||k===62||he(k)){const Z=k===47,ce=o.toLowerCase();return!Z&&!i&&jh.includes(ce)?(a=1,r.interrupt?t(k):P(k)):Q1.includes(o.toLowerCase())?(a=6,Z?(e.consume(k),m):r.interrupt?t(k):P(k)):(a=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(k):i?E(k):S(k))}return k===45||Me(k)?(e.consume(k),o+=String.fromCharCode(k),h):n(k)}function m(k){return k===62?(e.consume(k),r.interrupt?t:P):n(k)}function E(k){return ae(k)?(e.consume(k),E):R(k)}function S(k){return k===47?(e.consume(k),R):k===58||k===95||Ue(k)?(e.consume(k),T):ae(k)?(e.consume(k),S):R(k)}function T(k){return k===45||k===46||k===58||k===95||Me(k)?(e.consume(k),T):A(k)}function A(k){return k===61?(e.consume(k),v):ae(k)?(e.consume(k),A):S(k)}function v(k){return k===null||k===60||k===61||k===62||k===96?n(k):k===34||k===39?(e.consume(k),l=k,_):ae(k)?(e.consume(k),v):N(k)}function _(k){return k===l?(e.consume(k),l=null,D):k===null||Q(k)?n(k):(e.consume(k),_)}function N(k){return k===null||k===34||k===39||k===47||k===60||k===61||k===62||k===96||he(k)?A(k):(e.consume(k),N)}function D(k){return k===47||k===62||ae(k)?S(k):n(k)}function R(k){return k===62?(e.consume(k),F):n(k)}function F(k){return k===null||Q(k)?P(k):ae(k)?(e.consume(k),F):n(k)}function P(k){return k===45&&a===2?(e.consume(k),H):k===60&&a===1?(e.consume(k),j):k===62&&a===4?(e.consume(k),L):k===63&&a===3?(e.consume(k),x):k===93&&a===5?(e.consume(k),X):Q(k)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check(eL,$,U)(k)):k===null||Q(k)?(e.exit("htmlFlowData"),U(k)):(e.consume(k),P)}function U(k){return e.check(tL,z,$)(k)}function z(k){return e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),B}function B(k){return k===null||Q(k)?U(k):(e.enter("htmlFlowData"),P(k))}function H(k){return k===45?(e.consume(k),x):P(k)}function j(k){return k===47?(e.consume(k),o="",M):P(k)}function M(k){if(k===62){const Z=o.toLowerCase();return jh.includes(Z)?(e.consume(k),L):P(k)}return Ue(k)&&o.length<8?(e.consume(k),o+=String.fromCharCode(k),M):P(k)}function X(k){return k===93?(e.consume(k),x):P(k)}function x(k){return k===62?(e.consume(k),L):k===45&&a===2?(e.consume(k),x):P(k)}function L(k){return k===null||Q(k)?(e.exit("htmlFlowData"),$(k)):(e.consume(k),L)}function $(k){return e.exit("htmlFlow"),t(k)}}function aL(e,t,n){const r=this;return a;function a(o){return Q(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):n(o)}function i(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function iL(e,t,n){return r;function r(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(da,t,n)}}const oL={name:"htmlText",tokenize:sL};function sL(e,t,n){const r=this;let a,i,o;return s;function s(x){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(x),l}function l(x){return x===33?(e.consume(x),c):x===47?(e.consume(x),A):x===63?(e.consume(x),S):Ue(x)?(e.consume(x),N):n(x)}function c(x){return x===45?(e.consume(x),u):x===91?(e.consume(x),i=0,g):Ue(x)?(e.consume(x),E):n(x)}function u(x){return x===45?(e.consume(x),f):n(x)}function d(x){return x===null?n(x):x===45?(e.consume(x),p):Q(x)?(o=d,j(x)):(e.consume(x),d)}function p(x){return x===45?(e.consume(x),f):d(x)}function f(x){return x===62?H(x):x===45?p(x):d(x)}function g(x){const L="CDATA[";return x===L.charCodeAt(i++)?(e.consume(x),i===L.length?b:g):n(x)}function b(x){return x===null?n(x):x===93?(e.consume(x),h):Q(x)?(o=b,j(x)):(e.consume(x),b)}function h(x){return x===93?(e.consume(x),m):b(x)}function m(x){return x===62?H(x):x===93?(e.consume(x),m):b(x)}function E(x){return x===null||x===62?H(x):Q(x)?(o=E,j(x)):(e.consume(x),E)}function S(x){return x===null?n(x):x===63?(e.consume(x),T):Q(x)?(o=S,j(x)):(e.consume(x),S)}function T(x){return x===62?H(x):S(x)}function A(x){return Ue(x)?(e.consume(x),v):n(x)}function v(x){return x===45||Me(x)?(e.consume(x),v):_(x)}function _(x){return Q(x)?(o=_,j(x)):ae(x)?(e.consume(x),_):H(x)}function N(x){return x===45||Me(x)?(e.consume(x),N):x===47||x===62||he(x)?D(x):n(x)}function D(x){return x===47?(e.consume(x),H):x===58||x===95||Ue(x)?(e.consume(x),R):Q(x)?(o=D,j(x)):ae(x)?(e.consume(x),D):H(x)}function R(x){return x===45||x===46||x===58||x===95||Me(x)?(e.consume(x),R):F(x)}function F(x){return x===61?(e.consume(x),P):Q(x)?(o=F,j(x)):ae(x)?(e.consume(x),F):D(x)}function P(x){return x===null||x===60||x===61||x===62||x===96?n(x):x===34||x===39?(e.consume(x),a=x,U):Q(x)?(o=P,j(x)):ae(x)?(e.consume(x),P):(e.consume(x),z)}function U(x){return x===a?(e.consume(x),a=void 0,B):x===null?n(x):Q(x)?(o=U,j(x)):(e.consume(x),U)}function z(x){return x===null||x===34||x===39||x===60||x===61||x===96?n(x):x===47||x===62||he(x)?D(x):(e.consume(x),z)}function B(x){return x===47||x===62||he(x)?D(x):n(x)}function H(x){return x===62?(e.consume(x),e.exit("htmlTextData"),e.exit("htmlText"),t):n(x)}function j(x){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),M}function M(x){return ae(x)?de(e,X,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(x):X(x)}function X(x){return e.enter("htmlTextData"),o(x)}}const Xl={name:"labelEnd",resolveAll:dL,resolveTo:pL,tokenize:fL},lL={tokenize:gL},cL={tokenize:mL},uL={tokenize:hL};function dL(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const a=r.type==="labelImage"?4:2;r.type="data",t+=a}}return e.length!==n.length&&et(e,0,e.length,n),e}function pL(e,t){let n=e.length,r=0,a,i,o,s;for(;n--;)if(a=e[n][1],i){if(a.type==="link"||a.type==="labelLink"&&a._inactive)break;e[n][0]==="enter"&&a.type==="labelLink"&&(a._inactive=!0)}else if(o){if(e[n][0]==="enter"&&(a.type==="labelImage"||a.type==="labelLink")&&!a._balanced&&(i=n,a.type!=="labelLink")){r=2;break}}else a.type==="labelEnd"&&(o=n);const l={type:e[i][1].type==="labelLink"?"link":"image",start:{...e[i][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[i][1].start},end:{...e[o][1].end}},u={type:"labelText",start:{...e[i+r+2][1].end},end:{...e[o-2][1].start}};return s=[["enter",l,t],["enter",c,t]],s=at(s,e.slice(i+1,i+r+3)),s=at(s,[["enter",u,t]]),s=at(s,Di(t.parser.constructs.insideSpan.null,e.slice(i+r+4,o-3),t)),s=at(s,[["exit",u,t],e[o-2],e[o-1],["exit",c,t]]),s=at(s,e.slice(o+1)),s=at(s,[["exit",l,t]]),et(e,i,e.length,s),e}function fL(e,t,n){const r=this;let a=r.events.length,i,o;for(;a--;)if((r.events[a][1].type==="labelImage"||r.events[a][1].type==="labelLink")&&!r.events[a][1]._balanced){i=r.events[a][1];break}return s;function s(p){return i?i._inactive?d(p):(o=r.parser.defined.includes(mt(r.sliceSerialize({start:i.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),l):n(p)}function l(p){return p===40?e.attempt(lL,u,o?u:d)(p):p===91?e.attempt(cL,u,o?c:d)(p):o?u(p):d(p)}function c(p){return e.attempt(uL,u,d)(p)}function u(p){return t(p)}function d(p){return i._balanced=!0,n(p)}}function gL(e,t,n){return r;function r(d){return e.enter("resource"),e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),a}function a(d){return he(d)?Or(e,i)(d):i(d)}function i(d){return d===41?u(d):ES(e,o,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(d)}function o(d){return he(d)?Or(e,l)(d):u(d)}function s(d){return n(d)}function l(d){return d===34||d===39||d===40?SS(e,c,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(d):u(d)}function c(d){return he(d)?Or(e,u)(d):u(d)}function u(d){return d===41?(e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),e.exit("resource"),t):n(d)}}function mL(e,t,n){const r=this;return a;function a(s){return wS.call(r,e,i,o,"reference","referenceMarker","referenceString")(s)}function i(s){return r.parser.defined.includes(mt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(s):n(s)}function o(s){return n(s)}}function hL(e,t,n){return r;function r(i){return e.enter("reference"),e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),a}function a(i){return i===93?(e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),e.exit("reference"),t):n(i)}}const bL={name:"labelStartImage",resolveAll:Xl.resolveAll,tokenize:yL};function yL(e,t,n){const r=this;return a;function a(s){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(s),e.exit("labelImageMarker"),i}function i(s){return s===91?(e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelImage"),o):n(s)}function o(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const EL={name:"labelStartLink",resolveAll:Xl.resolveAll,tokenize:wL};function wL(e,t,n){const r=this;return a;function a(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),i}function i(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):t(o)}}const Io={name:"lineEnding",tokenize:SL};function SL(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),de(e,t,"linePrefix")}}const $a={name:"thematicBreak",tokenize:vL};function vL(e,t,n){let r=0,a;return i;function i(c){return e.enter("thematicBreak"),o(c)}function o(c){return a=c,s(c)}function s(c){return c===a?(e.enter("thematicBreakSequence"),l(c)):r>=3&&(c===null||Q(c))?(e.exit("thematicBreak"),t(c)):n(c)}function l(c){return c===a?(e.consume(c),r++,l):(e.exit("thematicBreakSequence"),ae(c)?de(e,s,"whitespace")(c):s(c))}}const Ve={continuation:{tokenize:AL},exit:IL,name:"list",tokenize:TL},xL={partial:!0,tokenize:CL},kL={partial:!0,tokenize:RL};function TL(e,t,n){const r=this,a=r.events[r.events.length-1];let i=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0,o=0;return s;function s(f){const g=r.containerState.type||(f===42||f===43||f===45?"listUnordered":"listOrdered");if(g==="listUnordered"?!r.containerState.marker||f===r.containerState.marker:Ls(f)){if(r.containerState.type||(r.containerState.type=g,e.enter(g,{_container:!0})),g==="listUnordered")return e.enter("listItemPrefix"),f===42||f===45?e.check($a,n,c)(f):c(f);if(!r.interrupt||f===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(f)}return n(f)}function l(f){return Ls(f)&&++o<10?(e.consume(f),l):(!r.interrupt||o<2)&&(r.containerState.marker?f===r.containerState.marker:f===41||f===46)?(e.exit("listItemValue"),c(f)):n(f)}function c(f){return e.enter("listItemMarker"),e.consume(f),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||f,e.check(da,r.interrupt?n:u,e.attempt(xL,p,d))}function u(f){return r.containerState.initialBlankLine=!0,i++,p(f)}function d(f){return ae(f)?(e.enter("listItemPrefixWhitespace"),e.consume(f),e.exit("listItemPrefixWhitespace"),p):n(f)}function p(f){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(f)}}function AL(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(da,a,i);function a(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,de(e,t,"listItemIndent",r.containerState.size+1)(s)}function i(s){return r.containerState.furtherBlankLines||!ae(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(kL,t,o)(s))}function o(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,de(e,e.attempt(Ve,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function RL(e,t,n){const r=this;return de(e,a,"listItemIndent",r.containerState.size+1);function a(i){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(i):n(i)}}function IL(e){e.exit(this.containerState.type)}function CL(e,t,n){const r=this;return de(e,a,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function a(i){const o=r.events[r.events.length-1];return!ae(i)&&o&&o[1].type==="listItemPrefixWhitespace"?t(i):n(i)}}const Gh={name:"setextUnderline",resolveTo:NL,tokenize:_L};function NL(e,t){let n=e.length,r,a,i;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(a=n)}else e[n][1].type==="content"&&e.splice(n,1),!i&&e[n][1].type==="definition"&&(i=n);const o={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[a][1].type="setextHeadingText",i?(e.splice(a,0,["enter",o,t]),e.splice(i+1,0,["exit",e[r][1],t]),e[r][1].end={...e[i][1].end}):e[r][1]=o,e.push(["exit",o,t]),e}function _L(e,t,n){const r=this;let a;return i;function i(c){let u=r.events.length,d;for(;u--;)if(r.events[u][1].type!=="lineEnding"&&r.events[u][1].type!=="linePrefix"&&r.events[u][1].type!=="content"){d=r.events[u][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||d)?(e.enter("setextHeadingLine"),a=c,o(c)):n(c)}function o(c){return e.enter("setextHeadingLineSequence"),s(c)}function s(c){return c===a?(e.consume(c),s):(e.exit("setextHeadingLineSequence"),ae(c)?de(e,l,"lineSuffix")(c):l(c))}function l(c){return c===null||Q(c)?(e.exit("setextHeadingLine"),t(c)):n(c)}}const OL={tokenize:LL};function LL(e){const t=this,n=e.attempt(da,r,e.attempt(this.parser.constructs.flowInitial,a,de(e,e.attempt(this.parser.constructs.flow,a,e.attempt(B1,a)),"linePrefix")));return n;function r(i){if(i===null){e.consume(i);return}return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function a(i){if(i===null){e.consume(i);return}return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const DL={resolveAll:xS()},ML=vS("string"),FL=vS("text");function vS(e){return{resolveAll:xS(e==="text"?PL:void 0),tokenize:t};function t(n){const r=this,a=this.parser.constructs[e],i=n.attempt(a,o,s);return o;function o(u){return c(u)?i(u):s(u)}function s(u){if(u===null){n.consume(u);return}return n.enter("data"),n.consume(u),l}function l(u){return c(u)?(n.exit("data"),i(u)):(n.consume(u),l)}function c(u){if(u===null)return!0;const d=a[u];let p=-1;if(d)for(;++p<d.length;){const f=d[p];if(!f.previous||f.previous.call(r,r.previous))return!0}return!1}}}function xS(e){return t;function t(n,r){let a=-1,i;for(;++a<=n.length;)i===void 0?n[a]&&n[a][1].type==="data"&&(i=a,a++):(!n[a]||n[a][1].type!=="data")&&(a!==i+2&&(n[i][1].end=n[a-1][1].end,n.splice(i+2,a-i-2),a=i+2),i=void 0);return e?e(n,r):n}}function PL(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],a=t.sliceStream(r);let i=a.length,o=-1,s=0,l;for(;i--;){const c=a[i];if(typeof c=="string"){for(o=c.length;c.charCodeAt(o-1)===32;)s++,o--;if(o)break;o=-1}else if(c===-2)l=!0,s++;else if(c!==-1){i++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){const c={type:n===e.length||l||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:i?o:r.start._bufferIndex+o,_index:r.start._index+i,line:r.end.line,column:r.end.column-s,offset:r.end.offset-s},end:{...r.end}};r.end={...c.start},r.start.offset===r.end.offset?Object.assign(r,c):(e.splice(n,0,["enter",c,t],["exit",c,t]),n+=2)}n++}return e}const BL={42:Ve,43:Ve,45:Ve,48:Ve,49:Ve,50:Ve,51:Ve,52:Ve,53:Ve,54:Ve,55:Ve,56:Ve,57:Ve,62:mS},UL={91:V1},zL={[-2]:Ro,[-1]:Ro,32:Ro},jL={35:K1,42:$a,45:[Gh,$a],60:J1,61:Gh,95:$a,96:zh,126:zh},GL={38:bS,92:hS},VL={[-5]:Io,[-4]:Io,[-3]:Io,33:bL,38:bS,42:Ds,60:[E1,oL],91:EL,92:[q1,hS],93:Xl,95:Ds,96:O1},HL={null:[Ds,DL]},$L={null:[42,95]},WL={null:[]},qL=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:$L,contentInitial:UL,disable:WL,document:BL,flow:jL,flowInitial:zL,insideSpan:HL,string:GL,text:VL},Symbol.toStringTag,{value:"Module"}));function YL(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const a={},i=[];let o=[],s=[];const l={attempt:_(A),check:_(v),consume:E,enter:S,exit:T,interrupt:_(v,{interrupt:!0})},c={code:null,containerState:{},defineSkip:b,events:[],now:g,parser:e,previous:null,sliceSerialize:p,sliceStream:f,write:d};let u=t.tokenize.call(c,l);return t.resolveAll&&i.push(t),c;function d(F){return o=at(o,F),h(),o[o.length-1]!==null?[]:(N(t,0),c.events=Di(i,c.events,c),c.events)}function p(F,P){return XL(f(F),P)}function f(F){return KL(o,F)}function g(){const{_bufferIndex:F,_index:P,line:U,column:z,offset:B}=r;return{_bufferIndex:F,_index:P,line:U,column:z,offset:B}}function b(F){a[F.line]=F.column,R()}function h(){let F;for(;r._index<o.length;){const P=o[r._index];if(typeof P=="string")for(F=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===F&&r._bufferIndex<P.length;)m(P.charCodeAt(r._bufferIndex));else m(P)}}function m(F){u=u(F)}function E(F){Q(F)?(r.line++,r.column=1,r.offset+=F===-3?2:1,R()):F!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=F}function S(F,P){const U=P||{};return U.type=F,U.start=g(),c.events.push(["enter",U,c]),s.push(U),U}function T(F){const P=s.pop();return P.end=g(),c.events.push(["exit",P,c]),P}function A(F,P){N(F,P.from)}function v(F,P){P.restore()}function _(F,P){return U;function U(z,B,H){let j,M,X,x;return Array.isArray(z)?$(z):"tokenize"in z?$([z]):L(z);function L(ie){return K;function K(pe){const ge=pe!==null&&ie[pe],ve=pe!==null&&ie.null,Oe=[...Array.isArray(ge)?ge:ge?[ge]:[],...Array.isArray(ve)?ve:ve?[ve]:[]];return $(Oe)(pe)}}function $(ie){return j=ie,M=0,ie.length===0?H:k(ie[M])}function k(ie){return K;function K(pe){return x=D(),X=ie,ie.partial||(c.currentConstruct=ie),ie.name&&c.parser.constructs.disable.null.includes(ie.name)?ce():ie.tokenize.call(P?Object.assign(Object.create(c),P):c,l,Z,ce)(pe)}}function Z(ie){return F(X,x),B}function ce(ie){return x.restore(),++M<j.length?k(j[M]):H}}}function N(F,P){F.resolveAll&&!i.includes(F)&&i.push(F),F.resolve&&et(c.events,P,c.events.length-P,F.resolve(c.events.slice(P),c)),F.resolveTo&&(c.events=F.resolveTo(c.events,c))}function D(){const F=g(),P=c.previous,U=c.currentConstruct,z=c.events.length,B=Array.from(s);return{from:z,restore:H};function H(){r=F,c.previous=P,c.currentConstruct=U,c.events.length=z,s=B,R()}}function R(){r.line in a&&r.column<2&&(r.column=a[r.line],r.offset+=a[r.line]-1)}}function KL(e,t){const n=t.start._index,r=t.start._bufferIndex,a=t.end._index,i=t.end._bufferIndex;let o;if(n===a)o=[e[n].slice(r,i)];else{if(o=e.slice(n,a),r>-1){const s=o[0];typeof s=="string"?o[0]=s.slice(r):o.shift()}i>0&&o.push(e[a].slice(0,i))}return o}function XL(e,t){let n=-1;const r=[];let a;for(;++n<e.length;){const i=e[n];let o;if(typeof i=="string")o=i;else switch(i){case-5:{o="\r";break}case-4:{o=`
|
|
2709
2736
|
`;break}case-3:{o=`\r
|
|
2710
2737
|
`;break}case-2:{o=t?" ":" ";break}case-1:{if(!t&&a)continue;o=" ";break}default:o=String.fromCharCode(i)}a=i===-2,r.push(o)}return r.join("")}function ZL(e){const r={constructs:fS([qL,...(e||{}).extensions||[]]),content:a(p1),defined:[],document:a(g1),flow:a(OL),lazy:{},string:a(ML),text:a(FL)};return r;function a(i){return o;function o(s){return YL(r,i,s)}}}function QL(e){for(;!yS(e););return e}const Vh=/[\0\t\n\r]/g;function JL(){let e=1,t="",n=!0,r;return a;function a(i,o,s){const l=[];let c,u,d,p,f;for(i=t+(typeof i=="string"?i.toString():new TextDecoder(o||void 0).decode(i)),d=0,t="",n&&(i.charCodeAt(0)===65279&&d++,n=void 0);d<i.length;){if(Vh.lastIndex=d,c=Vh.exec(i),p=c&&c.index!==void 0?c.index:i.length,f=i.charCodeAt(p),!c){t=i.slice(d);break}if(f===10&&d===p&&r)l.push(-3),r=void 0;else switch(r&&(l.push(-5),r=void 0),d<p&&(l.push(i.slice(d,p)),e+=p-d),f){case 0:{l.push(65533),e++;break}case 9:{for(u=Math.ceil(e/4)*4,l.push(-2);e++<u;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:r=!0,e=1}d=p+1}return s&&(r&&l.push(-5),t&&l.push(t),l.push(null)),l}}const eD=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function tD(e){return e.replace(eD,nD)}function nD(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const a=n.charCodeAt(1),i=a===120||a===88;return gS(n.slice(i?2:1),i?16:10)}return Xr(n)||e}const kS={}.hasOwnProperty;function rD(e,t,n){return typeof t!="string"&&(n=t,t=void 0),aD(n)(QL(ZL(n).document().write(JL()(e,t,!0))))}function aD(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(_t),autolinkProtocol:D,autolinkEmail:D,atxHeading:i(Sn),blockQuote:i(ve),characterEscape:D,characterReference:D,codeFenced:i(Oe),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:i(Oe,o),codeText:i(Ke,o),codeTextData:D,data:D,codeFlowValue:D,definition:i(Ge),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:i(Jt),hardBreakEscape:i(vn),hardBreakTrailing:i(vn),htmlFlow:i(jt,o),htmlFlowData:D,htmlText:i(jt,o),htmlTextData:D,image:i(ct),label:o,link:i(_t),listItem:i(dr),listItemValue:p,listOrdered:i(ur,d),listUnordered:i(ur),paragraph:i(en),reference:k,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:i(Sn),strong:i(qi),thematicBreak:i(Yi)},exit:{atxHeading:l(),atxHeadingSequence:A,autolink:l(),autolinkEmail:ge,autolinkProtocol:pe,blockQuote:l(),characterEscapeValue:R,characterReferenceMarkerHexadecimal:ce,characterReferenceMarkerNumeric:ce,characterReferenceValue:ie,characterReference:K,codeFenced:l(h),codeFencedFence:b,codeFencedFenceInfo:f,codeFencedFenceMeta:g,codeFlowValue:R,codeIndented:l(m),codeText:l(B),codeTextData:R,data:R,definition:l(),definitionDestinationString:T,definitionLabelString:E,definitionTitleString:S,emphasis:l(),hardBreakEscape:l(P),hardBreakTrailing:l(P),htmlFlow:l(U),htmlFlowData:R,htmlText:l(z),htmlTextData:R,image:l(j),label:X,labelText:M,lineEnding:F,link:l(H),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:Z,resourceDestinationString:x,resourceTitleString:L,resource:$,setextHeading:l(N),setextHeadingLineSequence:_,setextHeadingText:v,strong:l(),thematicBreak:l()}};TS(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(C){let V={type:"root",children:[]};const te={stack:[V],tokenStack:[],config:t,enter:s,exit:c,buffer:o,resume:u,data:n},le=[];let me=-1;for(;++me<C.length;)if(C[me][1].type==="listOrdered"||C[me][1].type==="listUnordered")if(C[me][0]==="enter")le.push(me);else{const ut=le.pop();me=a(C,ut,me)}for(me=-1;++me<C.length;){const ut=t[C[me][0]];kS.call(ut,C[me][1].type)&&ut[C[me][1].type].call(Object.assign({sliceSerialize:C[me][2].sliceSerialize},te),C[me][1])}if(te.tokenStack.length>0){const ut=te.tokenStack[te.tokenStack.length-1];(ut[1]||Hh).call(te,void 0,ut[0])}for(V.position={start:Vt(C.length>0?C[0][1].start:{line:1,column:1,offset:0}),end:Vt(C.length>0?C[C.length-2][1].end:{line:1,column:1,offset:0})},me=-1;++me<t.transforms.length;)V=t.transforms[me](V)||V;return V}function a(C,V,te){let le=V-1,me=-1,ut=!1,tn,Ot,pr,fr;for(;++le<=te;){const Xe=C[le];switch(Xe[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Xe[0]==="enter"?me++:me--,fr=void 0;break}case"lineEndingBlank":{Xe[0]==="enter"&&(tn&&!fr&&!me&&!pr&&(pr=le),fr=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:fr=void 0}if(!me&&Xe[0]==="enter"&&Xe[1].type==="listItemPrefix"||me===-1&&Xe[0]==="exit"&&(Xe[1].type==="listUnordered"||Xe[1].type==="listOrdered")){if(tn){let xn=le;for(Ot=void 0;xn--;){const Lt=C[xn];if(Lt[1].type==="lineEnding"||Lt[1].type==="lineEndingBlank"){if(Lt[0]==="exit")continue;Ot&&(C[Ot][1].type="lineEndingBlank",ut=!0),Lt[1].type="lineEnding",Ot=xn}else if(!(Lt[1].type==="linePrefix"||Lt[1].type==="blockQuotePrefix"||Lt[1].type==="blockQuotePrefixWhitespace"||Lt[1].type==="blockQuoteMarker"||Lt[1].type==="listItemIndent"))break}pr&&(!Ot||pr<Ot)&&(tn._spread=!0),tn.end=Object.assign({},Ot?C[Ot][1].start:Xe[1].end),C.splice(Ot||le,0,["exit",tn,Xe[2]]),le++,te++}if(Xe[1].type==="listItemPrefix"){const xn={type:"listItem",_spread:!1,start:Object.assign({},Xe[1].start),end:void 0};tn=xn,C.splice(le,0,["enter",xn,Xe[2]]),le++,te++,pr=void 0,fr=!0}}}return C[V][1]._spread=ut,te}function i(C,V){return te;function te(le){s.call(this,C(le),le),V&&V.call(this,le)}}function o(){this.stack.push({type:"fragment",children:[]})}function s(C,V,te){this.stack[this.stack.length-1].children.push(C),this.stack.push(C),this.tokenStack.push([V,te||void 0]),C.position={start:Vt(V.start),end:void 0}}function l(C){return V;function V(te){C&&C.call(this,te),c.call(this,te)}}function c(C,V){const te=this.stack.pop(),le=this.tokenStack.pop();if(le)le[0].type!==C.type&&(V?V.call(this,C,le[0]):(le[1]||Hh).call(this,C,le[0]));else throw new Error("Cannot close `"+C.type+"` ("+_r({start:C.start,end:C.end})+"): it’s not open");te.position.end=Vt(C.end)}function u(){return Kl(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function p(C){if(this.data.expectingFirstListItemValue){const V=this.stack[this.stack.length-2];V.start=Number.parseInt(this.sliceSerialize(C),10),this.data.expectingFirstListItemValue=void 0}}function f(){const C=this.resume(),V=this.stack[this.stack.length-1];V.lang=C}function g(){const C=this.resume(),V=this.stack[this.stack.length-1];V.meta=C}function b(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function h(){const C=this.resume(),V=this.stack[this.stack.length-1];V.value=C.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function m(){const C=this.resume(),V=this.stack[this.stack.length-1];V.value=C.replace(/(\r?\n|\r)$/g,"")}function E(C){const V=this.resume(),te=this.stack[this.stack.length-1];te.label=V,te.identifier=mt(this.sliceSerialize(C)).toLowerCase()}function S(){const C=this.resume(),V=this.stack[this.stack.length-1];V.title=C}function T(){const C=this.resume(),V=this.stack[this.stack.length-1];V.url=C}function A(C){const V=this.stack[this.stack.length-1];if(!V.depth){const te=this.sliceSerialize(C).length;V.depth=te}}function v(){this.data.setextHeadingSlurpLineEnding=!0}function _(C){const V=this.stack[this.stack.length-1];V.depth=this.sliceSerialize(C).codePointAt(0)===61?1:2}function N(){this.data.setextHeadingSlurpLineEnding=void 0}function D(C){const te=this.stack[this.stack.length-1].children;let le=te[te.length-1];(!le||le.type!=="text")&&(le=Ea(),le.position={start:Vt(C.start),end:void 0},te.push(le)),this.stack.push(le)}function R(C){const V=this.stack.pop();V.value+=this.sliceSerialize(C),V.position.end=Vt(C.end)}function F(C){const V=this.stack[this.stack.length-1];if(this.data.atHardBreak){const te=V.children[V.children.length-1];te.position.end=Vt(C.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(V.type)&&(D.call(this,C),R.call(this,C))}function P(){this.data.atHardBreak=!0}function U(){const C=this.resume(),V=this.stack[this.stack.length-1];V.value=C}function z(){const C=this.resume(),V=this.stack[this.stack.length-1];V.value=C}function B(){const C=this.resume(),V=this.stack[this.stack.length-1];V.value=C}function H(){const C=this.stack[this.stack.length-1];if(this.data.inReference){const V=this.data.referenceType||"shortcut";C.type+="Reference",C.referenceType=V,delete C.url,delete C.title}else delete C.identifier,delete C.label;this.data.referenceType=void 0}function j(){const C=this.stack[this.stack.length-1];if(this.data.inReference){const V=this.data.referenceType||"shortcut";C.type+="Reference",C.referenceType=V,delete C.url,delete C.title}else delete C.identifier,delete C.label;this.data.referenceType=void 0}function M(C){const V=this.sliceSerialize(C),te=this.stack[this.stack.length-2];te.label=tD(V),te.identifier=mt(V).toLowerCase()}function X(){const C=this.stack[this.stack.length-1],V=this.resume(),te=this.stack[this.stack.length-1];if(this.data.inReference=!0,te.type==="link"){const le=C.children;te.children=le}else te.alt=V}function x(){const C=this.resume(),V=this.stack[this.stack.length-1];V.url=C}function L(){const C=this.resume(),V=this.stack[this.stack.length-1];V.title=C}function $(){this.data.inReference=void 0}function k(){this.data.referenceType="collapsed"}function Z(C){const V=this.resume(),te=this.stack[this.stack.length-1];te.label=V,te.identifier=mt(this.sliceSerialize(C)).toLowerCase(),this.data.referenceType="full"}function ce(C){this.data.characterReferenceType=C.type}function ie(C){const V=this.sliceSerialize(C),te=this.data.characterReferenceType;let le;te?(le=gS(V,te==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):le=Xr(V);const me=this.stack[this.stack.length-1];me.value+=le}function K(C){const V=this.stack.pop();V.position.end=Vt(C.end)}function pe(C){R.call(this,C);const V=this.stack[this.stack.length-1];V.url=this.sliceSerialize(C)}function ge(C){R.call(this,C);const V=this.stack[this.stack.length-1];V.url="mailto:"+this.sliceSerialize(C)}function ve(){return{type:"blockquote",children:[]}}function Oe(){return{type:"code",lang:null,meta:null,value:""}}function Ke(){return{type:"inlineCode",value:""}}function Ge(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Jt(){return{type:"emphasis",children:[]}}function Sn(){return{type:"heading",depth:0,children:[]}}function vn(){return{type:"break"}}function jt(){return{type:"html",value:""}}function ct(){return{type:"image",title:null,url:"",alt:null}}function _t(){return{type:"link",title:null,url:"",children:[]}}function ur(C){return{type:"list",ordered:C.type==="listOrdered",start:null,spread:C._spread,children:[]}}function dr(C){return{type:"listItem",spread:C._spread,checked:null,children:[]}}function en(){return{type:"paragraph",children:[]}}function qi(){return{type:"strong",children:[]}}function Ea(){return{type:"text",value:""}}function Yi(){return{type:"thematicBreak"}}}function Vt(e){return{line:e.line,column:e.column,offset:e.offset}}function TS(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?TS(e,r):iD(e,r)}}function iD(e,t){let n;for(n in t)if(kS.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function Hh(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+_r({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+_r({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+_r({start:t.start,end:t.end})+") is still open")}function oD(e){const t=this;t.parser=n;function n(r){return rD(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function sD(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function lD(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|