PageSourceSearch

https://myshotpro.com/assets/AdminAIAdvisor-DuLblMHq.js

js myshotpro.com collected 2026-10-09 22:03:53 UTC 146,446 bytes, 36 lines download raw bytes

vendor: 4,774 bytes, lines 1-6
1import{z as Xr,ay as yn,ai as ur,j as c,r as ee,x as He,v as xt,Z as Yr,y as Kr,t as ke,X as Wr,af as Jr}from"./index-DpfGtWPm.js";import{u as Qr}from"./useAdminCheck-DrB0u6A8.js";import{T as Gr}from"./textarea-BTSmViOa.js";import{C as oe,b as ze,c as Le,a as Ne,d as Zr}from"./card-nihJjM9B.js";import{B as qe}from"./badge-BdsUf9I3.js";import{S as En,a as Cn,b as In,d as An,e as we}from"./select-BOvpAEwm.js";import{T as ei,a as ni,b as yt,c as Se,d as ti,e as _e}from"./table-CMl4Cxkf.js";import{S as ri}from"./switch-DZj9NBtU.js";import{A as ii}from"./arrow-left-8b-MekEs.js";import{B as Tn}from"./bot-RaHLlQhb.js";import{C as li}from"./calendar-NJqV7h8N.js";import{R as Pn}from"./refresh-cw-nUNYMk4u.js";import{P as ai}from"./plus-DClseEOd.js";import{C as si}from"./check-AVFEfvfh.js";import{E as oi}from"./eye-Db4Ujg9u.js";import{D as ui}from"./dollar-sign-BPx7CgYb.js";import{T as ci}from"./trending-up-NKgnhIob.js";import{C as pi}from"./chart-column-CkmnPK7b.js";import{R as hi,z as fi,X as di,Y as mi,B as gi,E as xi,F as zn}from"./generateCategoricalChart-CvzR3qEC.js";import{B as yi}from"./BarChart-CKRvE8ai.js";import{S as bi}from"./send-CMfMjblD.js";import{S as ki}from"./sparkles-CHYSlzod.js";import"./index-CMFxq2jj.js";import"./index-DbTejLZ6.js";import"./index-DQvjtdtu.js";import"./chevron-down-C2u_0ouk.js";/**
2 * @license lucide-react v0.462.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */const wi=Xr("ListTodo",[["rect",{x:"3",y:"5",width:"6",height:"6",rx:"1",key:"1defrl"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"M13 6h8",key:"15sg57"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 18h8",key:"oe0vm4"}]]);function Si(e,n){const t={};return(e[e.length-1]===""?[...e,""]:e).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}const _i=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,vi=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Ni={};function bt(e,n){return(Ni.jsx?vi:_i).test(e)}const ji=/[ \t\n\f\r]/g;function Ei(e){return typeof e=="object"?e.type==="text"?kt(e.value):!1:kt(e)}function kt(e){return e.replace(ji,"")===""}class on{constructor(n,t,r){this.normal=t,this.property=n,r&&(this.space=r)}}on.prototype.normal={};on.prototype.property={};on.prototype.space=void 0;function cr(e,n){const t={},r={};for(const i of e)Object.assign(t,i.property),Object.assign(r,i.normal);return new on(t,r,n)}function $n(e){return e.toLowerCase()}class pe{constructor(n,t){this.attribute=t,this.property=n}}pe.prototype.attribute="";pe.prototype.booleanish=!1;pe.prototype.boolean=!1;pe.prototype.commaOrSpaceSeparated=!1;pe.prototype.commaSeparated=!1;pe.prototype.defined=!1;pe.prototype.mustUseProperty=!1;pe.prototype.number=!1;pe.prototype.overloadedBoolean=!1;pe.prototype.property="";pe.prototype.spaceSeparated=!1;pe.prototype.space=void 0;let Ci=0;const O=Be(),Z=Be(),Xn=Be(),_=Be(),$=Be(),Xe=Be(),me=Be();function Be(){return 2**++Ci}const Yn=Object.freeze(Object.defineProperty({__proto__:null,boolean:O,booleanish:Z,commaOrSpaceSeparated:me,commaSeparated:Xe,number:_,overloadedBoolean:Xn,spaceSeparated:$},Symbol.toStringTag,{value:"Module"})),Ln=Object.keys(Yn);class tt extends pe{constructor(n,t,r,i){let l=-1;if(super(n,t),wt(this,"space",i),typeof r=="number")for(;++l<Ln.length;){const a=Ln[l];wt(this,Ln[l],(r&Yn[a])===Yn[a])}}}tt.prototype.defined=!0;function wt(e,n,t){t&&(e[n]=t)}function Ke(e){const n={},t={};for(const[r,i]of Object.entries(e.properties)){const l=new tt(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(l.mustUseProperty=!0),n[r]=l,t[$n(r)]=r,t[$n(l.attribute)]=r}return new on(n,t,e.space)}const pr=Ke({properties:{ariaActiveDescendant:null,ariaAtomic:Z,ariaAutoComplete:null,ariaBusy:Z,ariaChecked:Z,ariaColCount:_,ariaColIndex:_,ariaColSpan:_,ariaControls:$,ariaCurrent:null,ariaDescribedBy:$,ariaDetails:null,ariaDisabled:Z,ariaDropEffect:$,ariaErrorMessage:null,ariaExpanded:Z,ariaFlowTo:$,ariaGrabbed:Z,ariaHasPopup:null,ariaHidden:Z,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:$,ariaLevel:_,ariaLive:null,ariaModal:Z,ariaMultiLine:Z,ariaMultiSelectable:Z,ariaOrientation:null,ariaOwns:$,ariaPlaceholder:null,ariaPosInSet:_,ariaPressed:Z,ariaReadOnly:Z,ariaRelevant:null,ariaRequired:Z,ariaRoleDescription:$,ariaRowCount:_,ariaRowIndex:_,ariaRowSpan:_,ariaSelected:Z,ariaSetSize:_,ariaSort:null,ariaValueMax:_,ariaValueMin:_,ariaValueNow:_,ariaValueText:null,role:null},transform(e,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()}});function hr(e,n){return n in e?e[n]:n}function fr(e,n){return hr(e,n.toLowerCase())}const Ii=Ke({attributes:{acceptcharset:"accept-charset",classname:"
6class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Xe,acceptCharset:$,accessKey:$,action:null,allow:null,allowFullScreen:O,allowPaymentRequest:O,allowUserMedia:O,alt:null,as:null,async:O,autoCapitalize:null,autoComplete:$,autoFocus:O,autoPlay:O,blocking:$,capture:null,charSet:null,checked:O,cite:null,className:$,cols:_,colSpan:null,content:null,contentEditable:Z,controls:O,controlsList:$,coords:_|Xe,crossOrigin:null,data:null,dateTime:null,decoding:null,default:O,defer:O,dir:null,dirName:null,disabled:O,download:Xn,draggable:Z,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:O,formTarget:null,headers:$,height:_,hidden:Xn,high:_,href:null,hrefLang:null,htmlFor:$,httpEquiv:$,id:null,imageSizes:null,imageSrcSet:null,inert:O,inputMode:null,integrity:null,is:null,isMap:O,itemId:null,itemProp:$,itemRef:$,itemScope:O,itemType:$,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:O,low:_,manifest:null,max:null,maxLength:_,media:null,method:null,min:null,minLength:_,multiple:O,muted:O,name:null,nonce:null,noModule:O,noValidate:O,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:O,optimum:_,pattern:null,ping:$,placeholder:null,playsInline:O,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:O,referrerPolicy:null,rel:$,required:O,reversed:O,rows:_,rowSpan:_,sandbox:$,scope:null,scoped:O,seamless:O,selected:O,shadowRootClonable:O,shadowRootDelegatesFocus:O,shadowRootMode:null,shape:null,size:_,sizes:null,slot:null,span:_,spellCheck:Z,src:null,srcDoc:null,srcLang:null,srcSet:null,start:_,step:null,style:null,tabIndex:_,target:null,title:null,translate:null,type:null,typeMustMatch:O,useMap:null,value:Z,width:_,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:$,axis:null,background:null,bgColor:null,border:_,borderColor:null,bottomMargin:_,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:O,declare:O,event:null,face:null,frame:null,frameBorder:null,hSpace:_,leftMargin:_,link:null,longDesc:null,lowSrc:null,marginHeight:_,marginWidth:_,noResize:O,noHref:O,noShade:O,noWrap:O,object:null,profile:null,prompt:null,rev:null,rightMargin:_,rules:null,scheme:null,scrolling:Z,standby:null,summary:null,text:null,topMargin:_,valueType:null,version:null,vAlign:null,vLink:null,vSpace:_,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:O,disableRemotePlayback:O,prefix:null,property:null,results:_,security:null,unselectable:null},space:"html",transform:fr}),Ai=Ke({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",colorRen
6dering:"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:me,accentHeight:_,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:_,amplitude:_,arabicForm:null,ascent:_,attributeName:null,attributeType:null,azimuth:_,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:_,by:null,calcMode:null,capHeight:_,className:$,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRen
6dering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:_,diffuseConstant:_,direction:null,display:null,dur:null,divisor:_,dominantBaseline:null,download:O,dx:null,dy:null,edgeMode:null,editable:null,elevation:_,enableBackground:null,end:null,event:null,exponent:_,externalResourcesRequired:null,fill:null,fillOpacity:_,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:Xe,g2:Xe,glyphName:Xe,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:_,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:_,horizOriginX:_,horizOriginY:_,id:null,ideographic:_,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:_,k:_,k1:_,k2:_,k3:_,k4:_,kernelMatrix:me,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:_,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:_,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:_,overlineThickness:_,paintOrder:null,panose1:null,path:null,pathLength:_,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:$,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:_,pointsAtY:_,pointsAtZ:_,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:me,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:me,rev:me,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:me,requiredFeatures:me,requiredFonts:me,requiredFormats:me,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:_,specularExponent:_,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:_,strikethroughThickness:_,string:null,stroke:null,strokeDashArray:me,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:_,strokeOpacity:_,strokeWidth:null,style:null,surfaceScale:_,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:me,tabIndex:_,tableValues:null,target:null,targetX:_,targetY:_,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:me,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:_,underlineThickness:_,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:_,values:null,vAlphabetic:_,vMathematical:_,vectorEffect:null,vHanging:_,vIdeographic:_,version:null,vertAdvY:_,vertOriginX:_,vertOriginY:_,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:_,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:hr}),dr=Ke({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}
vendor: 4,749 bytes, lines 6-7
6,space:"xlink",transform(e,n){return"xlink:"+n.slice(5).toLowerCase()}}),mr=Ke({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:fr}),gr=Ke({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()}}),Ti={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"},Pi=/[A-Z]/g,St=/-[a-z]/g,zi=/^data[-\w.:]+$/i;function Li(e,n){const t=$n(n);let r=n,i=pe;if(t in e.normal)return e.property[e.normal[t]];if(t.length>4&&t.slice(0,4)==="data"&&zi.test(n)){if(n.charAt(4)==="-"){const l=n.slice(5).replace(St,Di);r="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=n.slice(4);if(!St.test(l)){let a=l.replace(Pi,Oi);a.charAt(0)!=="-"&&(a="-"+a),n="data"+a}}i=tt}return new i(r,n)}function Oi(e){return"-"+e.toLowerCase()}function Di(e){return e.charAt(1).toUpperCase()}const Ri=cr([pr,Ii,dr,mr,gr],"html"),rt=cr([pr,Ai,dr,mr,gr],"svg");function Mi(e){return e.join(" ").trim()}var it={},_t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Fi=/\n/g,Bi=/^\s*/,Ui=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Vi=/^:\s*/,Hi=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,qi=/^[;\s]*/,$i=/^\s+|\s+$/g,Xi=`
7`,vt="/",Nt="*",Fe="",Yi="comment",Ki="declaration";function Wi(e,n){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];n=n||{};var t=1,r=1;function i(b){var w=b.match(Fi);w&&(t+=w.length);var A=b.lastIndexOf(Xi);r=~A?b.length-A:r+b.length}function l(){var b={line:t,column:r};return function(w){return w.position=new a(b),p(),w}}function a(b){this.start=b,this.end={line:t,column:r},this.source=n.source}a.prototype.content=e;function s(b){var w=new Error(n.source+":"+t+":"+r+": "+b);if(w.reason=b,w.filename=n.source,w.line=t,w.column=r,w.source=e,!n.silent)throw w}function o(b){var w=b.exec(e);if(w){var A=w[0];return i(A),e=e.slice(A.length),w}}function p(){o(Bi)}function u(b){var w;for(b=b||[];w=f();)w!==!1&&b.push(w);return b}function f(){var b=l();if(!(vt!=e.charAt(0)||Nt!=e.charAt(1))){for(var w=2;Fe!=e.charAt(w)&&(Nt!=e.charAt(w)||vt!=e.charAt(w+1));)++w;if(w+=2,Fe===e.charAt(w-1))return s("End of comment missing");var A=e.slice(2,w-2);return r+=2,i(A),e=e.slice(w),r+=2,b({type:Yi,comment:A})}}function g(){var b=l(),w=o(Ui);if(w){if(f(),!o(Vi))return s("property missing ':'");var A=o(Hi),v=b({type:Ki,property:jt(w[0].replace(_t,Fe)),value:A?jt(A[0].replace(_t,Fe)):Fe});return o(qi),v}}function h(){var b=[];u(b);for(var w;w=g();)w!==!1&&(b.push(w),u(b));return b}return p(),h()}function jt(e){return e?e.replace($i,Fe):Fe}var Ji=Wi,Qi=yn&&yn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(it,"__esModule",{value:!0});it.default=Zi;const Gi=Qi(Ji);function Zi(e,n){let t=null;if(!e||typeof e!="string")return t;const r=(0,Gi.default)(e),i=typeof n=="function";return r.forEach(l=>{if(l.type!=="declaration")return;const{property:a,value:s}=l;i?n(a,s,l):s&&(t=t||{},t[a]=s)}),t}var wn={};Object.defineProperty(wn,"__esModule",{value:!0});wn.camelCase=void 0;var el=/^--[a-zA-Z0-9_-]+$/,nl=/-([a-z])/g,tl=/^[^-]+$/,rl=/^-(webkit|moz|ms|o|khtml)-/,il=/^-(ms)-/,ll=function(e){return!e||tl.test(e)||el.test(e)},al=function(e,n){return n.toUpperCase()},Et=function(e,n){return"".concat(n,"-")},sl=function(e,n){return n===void 0&&(n={}),ll(e)?e:(e=e.toLowerCase(),n.reactCompat?e=e.replace(il,Et):e=e.replace(rl,Et),e.replace(nl,al))};wn.camelCase=sl;var ol=yn&&yn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},ul=ol(it),cl=wn;function Kn(e,n){var t={};return!e||typeof e!="string"||(0,ul.default)(e,function(r,i){r&&i&&(t[(0,cl.camelCase)(r,n)]=i)}),t}Kn.default=Kn;var pl=Kn;const hl=ur(pl),xr=yr("end"),lt=yr("start");function yr(e){return n;function n(t){const r=t&&t.position&&t.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 fl(e){const n=lt(e),t=xr(e);if(n&&t)return{start:n,end:t}}function rn(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Ct(e.position):"start"in e||"end"in e?Ct(e):"line"in e||"column"in e?Wn(e):""}function Wn(e){return It(e&&e.line)+":"+It(e&&e.column)}function Ct(e){return Wn(e&&e.start)+"-"+Wn(e&&e.end)}function It(e){return e&&typeof e=="number"?e:1}
vendor: 1,921 bytes, line 7
7class te extends Error{constructor(n,t,r){super(),typeof t=="string"&&(r=t,t=void 0);let i="",l={},a=!1;if(t&&("line"in t&&"column"in t?l={place:t}:"start"in t&&"end"in t?l={place:t}:"type"in t?l={ancestors:[t],place:t.position}:l={...t}),typeof n=="string"?i=n:!l.cause&&n&&(a=!0,i=n.message,l.cause=n),!l.ruleId&&!l.source&&typeof r=="string"){const o=r.indexOf(":");o===-1?l.ruleId=r:(l.source=r.slice(0,o),l.ruleId=r.slice(o+1))}if(!l.place&&l.ancestors&&l.ancestors){const o=l.ancestors[l.ancestors.length-1];o&&(l.place=o.position)}const s=l.place&&"start"in l.place?l.place.start:l.place;this.ancestors=l.ancestors||void 0,this.cause=l.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=s?s.line:void 0,this.name=rn(l.place)||"1:1",this.place=l.place||void 0,this.reason=this.message,this.ruleId=l.ruleId||void 0,this.source=l.source||void 0,this.stack=a&&l.cause&&typeof l.cause.stack=="string"?l.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}te.prototype.file="";te.prototype.name="";te.prototype.reason="";te.prototype.message="";te.prototype.stack="";te.prototype.column=void 0;te.prototype.line=void 0;te.prototype.ancestors=void 0;te.prototype.cause=void 0;te.prototype.fatal=void 0;te.prototype.place=void 0;te.prototype.ruleId=void 0;te.prototype.source=void 0;const at={}.hasOwnProperty,dl=new Map,ml=/[A-Z]/g,gl=new Set(["table","tbody","thead","tfoot","tr"]),xl=new Set(["td","th"]),br="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function yl(e,n){if(!n||n.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const t=n.filePath||void 0;let r;if(n.development){if(typeof n.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=jl(t,n.jsxDEV)}else{if(typeof n.jsx!="function")throw new TypeError("Expected `jsx` in production options");
vendor: 10,521 bytes, line 7
7if(typeof n.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=Nl(t,n.jsx,n.jsxs)}const i={Fragment:n.Fragment,ancestors:[],components:n.components||{},create:r,elementAttributeNameCase:n.elementAttributeNameCase||"react",evaluater:n.createEvaluater?n.createEvaluater():void 0,filePath:t,ignoreInvalidStyle:n.ignoreInvalidStyle||!1,passKeys:n.passKeys!==!1,passNode:n.passNode||!1,schema:n.space==="svg"?rt:Ri,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},l=kr(i,e,void 0);return l&&typeof l!="string"?l:i.create(e,i.Fragment,{children:l||void 0},void 0)}function kr(e,n,t){if(n.type==="element")return bl(e,n,t);if(n.type==="mdxFlowExpression"||n.type==="mdxTextExpression")return kl(e,n);if(n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement")return Sl(e,n,t);if(n.type==="mdxjsEsm")return wl(e,n);if(n.type==="root")return _l(e,n,t);if(n.type==="text")return vl(e,n)}function bl(e,n,t){const r=e.schema;let i=r;n.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=rt,e.schema=i),e.ancestors.push(n);const l=Sr(e,n.tagName,!1),a=El(e,n);let s=ot(e,n);return gl.has(n.tagName)&&(s=s.filter(function(o){return typeof o=="string"?!Ei(o):!0})),wr(e,a,l,n),st(a,s),e.ancestors.pop(),e.schema=r,e.create(n,l,a,t)}function kl(e,n){if(n.data&&n.data.estree&&e.evaluater){const r=n.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}sn(e,n.position)}function wl(e,n){if(n.data&&n.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(n.data.estree);sn(e,n.position)}function Sl(e,n,t){const r=e.schema;let i=r;n.name==="svg"&&r.space==="html"&&(i=rt,e.schema=i),e.ancestors.push(n);const l=n.name===null?e.Fragment:Sr(e,n.name,!0),a=Cl(e,n),s=ot(e,n);return wr(e,a,l,n),st(a,s),e.ancestors.pop(),e.schema=r,e.create(n,l,a,t)}function _l(e,n,t){const r={};return st(r,ot(e,n)),e.create(n,e.Fragment,r,t)}function vl(e,n){return n.value}function wr(e,n,t,r){typeof t!="string"&&t!==e.Fragment&&e.passNode&&(n.node=r)}function st(e,n){if(n.length>0){const t=n.length>1?n:n[0];t&&(e.children=t)}}function Nl(e,n,t){return r;function r(i,l,a,s){const p=Array.isArray(a.children)?t:n;return s?p(l,a,s):p(l,a)}}function jl(e,n){return t;function t(r,i,l,a){const s=Array.isArray(l.children),o=lt(r);return n(i,l,a,s,{columnNumber:o?o.column-1:void 0,fileName:e,lineNumber:o?o.line:void 0},void 0)}}function El(e,n){const t={};let r,i;for(i in n.properties)if(i!=="children"&&at.call(n.properties,i)){const l=Il(e,i,n.properties[i]);if(l){const[a,s]=l;e.tableCellAlignToStyle&&a==="align"&&typeof s=="string"&&xl.has(n.tagName)?r=s:t[a]=s}}if(r){const l=t.style||(t.style={});l[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return t}function Cl(e,n){const t={};for(const r of n.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const l=r.data.estree.body[0];l.type;const a=l.expression;a.type;const s=a.properties[0];s.type,Object.assign(t,e.evaluater.evaluateExpression(s.argument))}else sn(e,n.position);else{const i=r.name;let l;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,l=e.evaluater.evaluateExpression(s.expression)}else sn(e,n.position);else l=r.value===null?!0:r.value;t[i]=l}return t}function ot(e,n){const t=[];let r=-1;const i=e.passKeys?new Map:dl;for(;++r<n.children.length;){const l=n.children[r];let a;if(e.passKeys){const o=l.type==="element"?l.tagName:l.type==="mdxJsxFlowElement"||l.type==="mdxJsxTextElement"?l.name:void 0;if(o){const p=i.get(o)||0;a=o+"-"+p,i.set(o,p+1)}}const s=kr(e,l,a);s!==void 0&&t.push(s)}return t}function Il(e,n,t){const r=Li(e.schema,n);if(!(t==null||typeof t=="number"&&Number.isNaN(t))){if(Array.isArray(t)&&(t=r.commaSeparated?Si(t):Mi(t)),r.property==="style"){let i=typeof t=="object"?t:Al(e,String(t));return e.stylePropertyNameCase==="css"&&(i=Tl(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?Ti[r.property]||r.property:r.attribute,t]}}function Al(e,n){try{return hl(n,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};const r=t,i=new te("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=br+"#cannot-parse-style-attribute",i}}function Sr(e,n,t){let r;if(!t)r={type:"Literal",value:n};else if(n.includes(".")){const i=n.split(".");let l=-1,a;for(;++l<i.length;){const s=bt(i[l])?{type:"Identifier",name:i[l]}:{type:"Literal",value:i[l]};a=a?{type:"MemberExpression",object:a,property:s,computed:!!(l&&s.type==="Literal"),optional:!1}:s}r=a}else r=bt(n)&&!/^[a-z]/.test(n)?{type:"Identifier",name:n}:{type:"Literal",value:n};if(r.type==="Literal"){const i=r.value;return at.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);sn(e)}function sn(e,n){const t=new te("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:n,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw t.file=e.filePath||void 0,t.url=br+"#cannot-handle-mdx-estrees-without-createevaluater",t}function Tl(e){const n={};let t;for(t in e)at.call(e,t)&&(n[Pl(t)]=e[t]);return n}function Pl(e){let n=e.replace(ml,zl);return n.slice(0,3)==="ms-"&&(n="-"+n),n}function zl(e){return"-"+e.toLowerCase()}const On={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"]},Ll={};function Ol(e,n){const t=Ll,r=typeof t.includeImageAlt=="boolean"?t.includeImageAlt:!0,i=typeof t.includeHtml=="boolean"?t.includeHtml:!0;return _r(e,r,i)}function _r(e,n,t){if(Dl(e)){if("value"in e)return e.type==="html"&&!t?"":e.value;if(n&&"alt"in e&&e.alt)return e.alt;if("children"in e)return At(e.children,n,t)}return Array.isArray(e)?At(e,n,t):""}function At(e,n,t){const r=[];let i=-1;for(;++i<e.length;)r[i]=_r(e[i],n,t);return r.join("")}function Dl(e){return!!(e&&typeof e=="object")}const Tt=document.createElement("i");function ut(e){const n="&"+e+";";Tt.innerHTML=n;const t=Tt.textContent;return t.charCodeAt(t.length-1)===59&&e!=="semi"||t===n?!1:t}function Ce(e,n,t,r){const i=e.length;let l=0,a;if(n<0?n=-n>i?0:i+n:n=n>i?i:n,t=t>0?t:0,r.length<1e4)a=Array.from(r),a.unshift(n,t),e.splice(...a);else for(t&&e.splice(n,t);l<r.length;)a=r.slice(l,l+1e4),a.unshift(n,0),e.splice(...a),l+=1e4,n+=1e4}function xe(e,n){return e.length>0?(Ce(e,e.length,0,n),e):n}const Pt={}.hasOwnProperty;function Rl(e){const n={};let t=-1;for(;++t<e.length;)Ml(n,e[t]);return n}function Ml(e,n){let t;for(t in n){const i=(Pt.call(e,t)?e[t]:void 0)||(e[t]={}),l=n[t];let a;if(l)for(a in l){Pt.call(i,a)||(i[a]=[]);const s=l[a];Fl(i[a],Array.isArray(s)?s:s?[s]:[])}}}function Fl(e,n){let t=-1;const r=[];for(;++t<n.length;)(n[t].add==="after"?e:r).push(n[t]);Ce(e,0,0,r)}function vr(e,n){const t=Number.parseInt(e,n);return t<9||t===11||t>13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||(t&65535)===65535||(t&65535)===65534||t>1114111?"�":String.fromCodePoint(t)}function Ye(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Ee=Me(/[A-Za-z]/),ge=Me(/[\dA-Za-z]/),Bl=Me(/[#-'*+\--9=?A-Z^-~]/);function Jn(e){return e!==null&&(e<32||e===127)}const Qn=Me(/\d/),Ul=Me(/[\dA-Fa-f]/),Vl=Me(/[!-/:-@[-`{-~]/);function z(e){return e!==null&&e<-2}function ce(e){return e!==null&&(e<0||e===32)}function B(e){return e===-2||e===-1||e===32}const Hl=Me(new RegExp("\\p{P}|\\p{S}","u")),ql=Me(/\s/);function Me(e){return n;function n(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function We(e){const n=[];let t=-1,r=0,i=0;for(;++t<e.length;){const l=e.charCodeAt(t);let a="";if(l===37&&ge(e.charCodeAt(t+1))&&ge(e.charCodeAt(t+2)))i=2;else if(l<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l))||(a=String.fromCharCode(l));else if(l>55295&&l<57344){const s=e.charCodeAt(t+1);l<56320&&s>56319&&s<57344?(a=String.fromCharCode(l,s),i=1):a="�"}else a=String.fromCharCode(l);a&&(n.push(e.slice(r,t),encodeURIComponent(a)),r=t+i+1,a=""),i&&(t+=i,i=0)}return n.join("")+e.slice(r)}function X(e,n,t,r){const i=r?r-1:Number.POSITIVE_INFINITY;let l=0;return a;function a(o){return B(o)?(e.enter(t),s(o)):n(o)}function s(o){return B(o)&&l++<i?(e.consume(o),s):(e.exit(t),n(o))}}const $l={tokenize:Xl};function Xl(e){const n=e.attempt(this.parser.constructs.contentInitial,r,i);let t;return n;function r(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),X(e,n,"linePrefix")}function i(s){return e.enter("paragraph"),l(s)}function l(s){const o=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=o),t=o,a(s)}function a(s){if(s===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(s);return}return z(s)?(e.consume(s),e.exit("chunkText"),l):(e.consume(s),a)}}const Yl={tokenize:Kl},zt={tokenize:Wl};function Kl(e){const n=this,t=[];let r=0,i,l,a;return s;function s(E){if(r<t.length){const H=t[r];return n.containerState=H[1],e.attempt(H[0].continuation,o,p)(E)}return p(E)}function o(E){if(r++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,i&&D();const H=n.events.length;let S=H,k;for(;S--;)if(n.events[S][0]==="exit"&&n.events[S][1].type==="chunkFlow"){k=n.events[S][1].end;break}v(r);let M=H;for(;M<n.events.length;)n.events[M][1].end={...k},M++;return Ce(n.events,S+1,0,n.events.slice(H)),n.events.length=M,p(E)}return s(E)}function p(E){if(r===t.length){if(!i)return g(E);if(i.currentConstruct&&i.currentConstruct.concrete)return b(E);n.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(zt,u,f)(E)}function u(E){return i&&D(),v(r),g(E)}function f(E){return n.parser.lazy[n.now().line]=r!==t.length,a=n.now().offset,b(E)}function g(E){return n.containerState={},e.attempt(zt,h,b)(E)}function h(E){return r++,t.push([n.currentConstruct,n.containerState]),g(E)}function b(E){if(E===null){i&&D(),v(0),e.consume(E);return}return i=i||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:l}),w(E)}function w(E){if(E===null){A(e.exit("chunkFlow"),!0),v(0),e.consume(E);return}return z(E)?(e.consume(E),A(e.exit("chunkFlow")),r=0,n.interrupt=void 0,s):(e.consume(E),w)}function A(E,H){const S=n.sliceStream(E);
vendor: 6,646 bytes, line 7
7if(H&&S.push(null),E.previous=l,l&&(l.next=E),l=E,i.defineSkip(E.start),i.write(S),n.parser.lazy[E.start.line]){let k=i.events.length;for(;k--;)if(i.events[k][1].start.offset<a&&(!i.events[k][1].end||i.events[k][1].end.offset>a))return;const M=n.events.length;let W=M,T,U;for(;W--;)if(n.events[W][0]==="exit"&&n.events[W][1].type==="chunkFlow"){if(T){U=n.events[W][1].end;break}T=!0}for(v(r),k=M;k<n.events.length;)n.events[k][1].end={...U},k++;Ce(n.events,W+1,0,n.events.slice(M)),n.events.length=k}}function v(E){let H=t.length;for(;H-- >E;){const S=t[H];n.containerState=S[1],S[0].exit.call(n,e)}t.length=E}function D(){i.write([null]),l=void 0,i=void 0,n.containerState._closeFlow=void 0}}function Wl(e,n,t){return X(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Lt(e){if(e===null||ce(e)||ql(e))return 1;if(Hl(e))return 2}function ct(e,n,t){const r=[];let i=-1;for(;++i<e.length;){const l=e[i].resolveAll;l&&!r.includes(l)&&(n=l(n,t),r.push(l))}return n}const Gn={name:"attention",resolveAll:Jl,tokenize:Ql};function Jl(e,n){let t=-1,r,i,l,a,s,o,p,u;for(;++t<e.length;)if(e[t][0]==="enter"&&e[t][1].type==="attentionSequence"&&e[t][1]._close){for(r=t;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&n.sliceSerialize(e[r][1]).charCodeAt(0)===n.sliceSerialize(e[t][1]).charCodeAt(0)){if((e[r][1]._close||e[t][1]._open)&&(e[t][1].end.offset-e[t][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[t][1].end.offset-e[t][1].start.offset)%3))continue;o=e[r][1].end.offset-e[r][1].start.offset>1&&e[t][1].end.offset-e[t][1].start.offset>1?2:1;const f={...e[r][1].end},g={...e[t][1].start};Ot(f,-o),Ot(g,o),a={type:o>1?"strongSequence":"emphasisSequence",start:f,end:{...e[r][1].end}},s={type:o>1?"strongSequence":"emphasisSequence",start:{...e[t][1].start},end:g},l={type:o>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[t][1].start}},i={type:o>1?"strong":"emphasis",start:{...a.start},end:{...s.end}},e[r][1].end={...a.start},e[t][1].start={...s.end},p=[],e[r][1].end.offset-e[r][1].start.offset&&(p=xe(p,[["enter",e[r][1],n],["exit",e[r][1],n]])),p=xe(p,[["enter",i,n],["enter",a,n],["exit",a,n],["enter",l,n]]),p=xe(p,ct(n.parser.constructs.insideSpan.null,e.slice(r+1,t),n)),p=xe(p,[["exit",l,n],["enter",s,n],["exit",s,n],["exit",i,n]]),e[t][1].end.offset-e[t][1].start.offset?(u=2,p=xe(p,[["enter",e[t][1],n],["exit",e[t][1],n]])):u=0,Ce(e,r-1,t-r+3,p),t=r+p.length-u-2;break}}for(t=-1;++t<e.length;)e[t][1].type==="attentionSequence"&&(e[t][1].type="data");return e}function Ql(e,n){const t=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Lt(r);let l;return a;function a(o){return l=o,e.enter("attentionSequence"),s(o)}function s(o){if(o===l)return e.consume(o),s;const p=e.exit("attentionSequence"),u=Lt(o),f=!u||u===2&&i||t.includes(o),g=!i||i===2&&u||t.includes(r);return p._open=!!(l===42?f:f&&(i||!g)),p._close=!!(l===42?g:g&&(u||!f)),n(o)}}function Ot(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const Gl={name:"autolink",tokenize:Zl};function Zl(e,n,t){let r=0;return i;function i(h){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),l}function l(h){return Ee(h)?(e.consume(h),a):h===64?t(h):p(h)}function a(h){return h===43||h===45||h===46||ge(h)?(r=1,s(h)):p(h)}function s(h){return h===58?(e.consume(h),r=0,o):(h===43||h===45||h===46||ge(h))&&r++<32?(e.consume(h),s):(r=0,p(h))}function o(h){return h===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),n):h===null||h===32||h===60||Jn(h)?t(h):(e.consume(h),o)}function p(h){return h===64?(e.consume(h),u):Bl(h)?(e.consume(h),p):t(h)}function u(h){return ge(h)?f(h):t(h)}function f(h){return h===46?(e.consume(h),r=0,u):h===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),n):g(h)}function g(h){if((h===45||ge(h))&&r++<63){const b=h===45?g:f;return e.consume(h),b}return t(h)}}const Sn={partial:!0,tokenize:ea};function ea(e,n,t){return r;function r(l){return B(l)?X(e,i,"linePrefix")(l):i(l)}function i(l){return l===null||z(l)?n(l):t(l)}}const Nr={continuation:{tokenize:ta},exit:ra,name:"blockQuote",tokenize:na};function na(e,n,t){const r=this;return i;function i(a){if(a===62){const s=r.containerState;return s.open||(e.enter("blockQuote",{_container:!0}),s.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(a),e.exit("blockQuoteMarker"),l}return t(a)}function l(a){return B(a)?(e.enter("blockQuotePrefixWhitespace"),e.consume(a),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(a))}}function ta(e,n,t){const r=this;return i;function i(a){return B(a)?X(e,l,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a):l(a)}function l(a){return e.attempt(Nr,n,t)(a)}}function ra(e){e.exit("blockQuote")}const jr={name:"characterEscape",tokenize:ia};function ia(e,n,t){return r;function r(l){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(l),e.exit("escapeMarker"),i}function i(l){return Vl(l)?(e.enter("characterEscapeValue"),e.consume(l),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):t(l)}}const Er={name:"characterReference",tokenize:la};function la(e,n,t){const r=this;let i=0,l,a;return s;function s(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),o}function o(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),p):(e.enter("characterReferenceValue"),l=31,a=ge,u(f))}function p(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),l=6,a=Ul,u):(e.enter("characterReferenceValue"),l=7,a=Qn,u(f))}function u(f){if(f===59&&i){const g=e.exit("characterReferenceValue");return a===ge&&!ut(r.sliceSerialize(g))?t(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return a(f)&&i++<l?(e.consume(f),u):t(f)}}const Dt={partial:!0,tokenize:sa},Rt={concrete:!0,name:"codeFenced",tokenize:aa};function aa(e,n,t){const r=this,i={partial:!0,tokenize:S};let l=0,a=0,s;return o;function o(k){return p(k)}function p(k){const M=r.events[r.events.length-1];return l=M&&M[1].type==="linePrefix"?M[2].sliceSerialize(M[1],!0).length:0,s=k,e.enter("co
7deFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),u(k)}function u(k){return k===s?(a++,e.consume(k),u):a<3?t(k):(e.exit("codeFencedFenceSequence"),B(k)?X(e,f,"whitespace")(k):f(k))}function f(k){return k===null||z(k)?(e.exit("codeFencedFence"),r.interrupt?n(k):e.check(Dt,w,H)(k)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),g(k))}function g(k){return k===null||z(k)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(k)):B(k)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),X(e,h,"whitespace")(k)):k===96&&k===s?t(k):(e.consume(k),g)}function h(k){return k===null||z(k)?f(k):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),b(k))}function b(k){return k===null||z(k)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(k)):k===96&&k===s?t(k):(e.consume(k),b)}function w(k){return e.attempt(i,H,A)(k)}function A(k){return e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),v}function v(k){return l>0&&B(k)?X(e,D,"linePrefix",l+1)(k):D(k)}function D(k){return k===null||z(k)?e.check(Dt,w,H)(k):(e.enter("codeFlowValue"),E(k))}function E(k){return k===null||z(k)?(e.exit("codeFlowValue"),D(k)):(e.consume(k),E)}function H(k){return e.exit("codeFenced"),n(k)}function S(k,M,W){let T=0;return U;function U(R){return k.enter("lineEnding"),k.consume(R),k.exit("lineEnding"),I}function I(R){return k.enter("codeFencedFence"),B(R)?X(k,C,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(R):C(R)}function C(R){return R===s?(k.enter("codeFencedFenceSequence"),V(R)):W(R)}function V(R){return R===s?(T++,k.consume(R),V):T>=a?(k.exit("codeFencedFenceSequence"),B(R)?X(k,J,"whitespace")(R):J(R)):W(R)}function J(R){return R===null||z(R)?(k.exit("codeFencedFence"),M(R)):W(R)}}}function sa(e,n,t){const r=this;return i;function i(a){return a===null?t(a):(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),l)}function l(a){return r.parser.lazy[r.now().line]?t(a):n(a)}}const Dn={name:"codeIndented",tokenize:ua},oa={partial:!0,tokenize:ca};function ua(e,n,t){const r=this;return i;function i(p){return e.enter("codeIndented"),X(e,l,"linePrefix",5)(p)}function l(p){const u=r.events[r.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?a(p):t(p)}function a(p){return p===null?o(p):z(p)?e.attempt(oa,a,o)(p):(e.enter("codeFlowValue"),s(p))}function s(p){return p===null||z(p)?(e.exit("codeFlowValue"),a(p)):(e.consume(p),s)}function o(p){return e.exit("codeIndented"),n(p)}}function ca(e,n,t){const r=this;return i;function i(a){return r.parser.lazy[r.now().line]?t(a):z(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),i):X(e,l,"linePrefix",5)(a)}function l(a){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?n(a):z(a)?i(a):t(a)}}const pa={name:"codeText",previous:fa,resolve:ha,tokenize:da};function ha(e){let n=e.length-4,t=3,r,i;if((e[t][1].type==="lineEnding"||e[t][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(r=t;++r<n;)if(e[r][1].type==="codeTextData"){e[t][1].type="codeTextPadding",e[n][1].type="codeTextPadding",t+=2,n-=2;break}}for(r=t-1,n++;++r<=n;)i===void 0?r!==n&&e[r][1].type!=="lineEnding"&&(i=r):(r===n||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),n-=r-i-2,r=i+2),i=void 0);return e}function fa(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function da(e,n,t){let r=0,i,l;return a;function a(f){return e.enter("codeText"),e.enter("codeTextSequence"),s(f)}function s(f){return f===96?(e.consume(f),r++,s):(e.exit("codeTextSequence"),o(f))}function o(f){return f===null?t(f):f===32?(e.enter("space"),e.consume(f),e.exit("space"),o):f===96?(l=e.enter("codeTextSequence"),i=0,u(f)):z(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),o):(e.enter("codeTextData"),p(f))}function p(f){return f===null||f===32||f===96||z(f)?(e.exit("codeTextData"),o(f)):(e.consume(f),p)}function u(f){return f===96?(e.consume(f),i++,u):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),n(f)):(l.type="codeTextData",p(f))}}class ma{constructor(n){this.left=n?[...n]:[],this.right=[]}get(n){if(n<0||n>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+n+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return n<this.left.length?this.left[n]:this.right[this.right.length-n+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(n,t){const r=t??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(n,r):n>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-n+this.left.length).reverse():this.left.slice(n).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(n,t,r){const i=t||0;this.setCursor(Math.trunc(n));const l=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&en(this.left,r),l.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(n){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(n)}pushMany(n){this.setCursor(Number.POSITIVE_INFINITY),en(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),en(this.right,n.reverse())}setCursor(n){if(!(n===this.left.length||n>this.left.length&&this.right.length===0||n<0&&this.left.length===0))if(n<this.left.length){const t=this.left.splice(n,Number.POSITIVE_INFINITY);en(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);en(this.left,t.reverse())}}}function en(e,n){let t=0;if(n.length<1e4)e.push(...n);else for(;t<n.length;)e.push(...n.slice(t,t+1e4)),t+=1e4}function Cr(e){const n={};let t=-1,r,i,l,a,s,o,p;const u=new ma(e);for(;++t<u.length;){for(;t in n;)t=n[t];if(r=u.get(t),t&&r[1].type==="chunkFlow"&&u.get(t-1)[1].type==="listItemPrefix"&&(o=r[1]._tokenizer.events,l=0,l<o.length&&o[l][1].type==="lineEndingBlank"&&(l+=2),l<o.length&&o[l][1].type==="content"))for(;++l<o.length&&o[l][1].type!=="content";)o[l][1].type==="chunkText"&&(o[l][1]._isInFirstContentOfListItem=!0,l++);if(r[0]==="enter")r[1].contentType&&(Object.assign(n,ga(u,t)),t=n[t],p=!0);else if(r[1]._container){for(l=t,i=void 0;l--;)if(a=u.get(l),a[1].type==="lineEnding"||a[1].type==="lineEndingBlank")a[0]==="enter"&&(i&&(u.get(i)[1].type="lineEndingBlank"),a[1].type="lineEnding",i=l);else if(!(a[1].type==="linePrefix"||a[1].type==="listItemIndent"))break;i&&(r[1].end={...u.get(i)[1].start},s=u.slice(i,t),s.unshift(r),u.splice(i,t-i+1,s))}}return Ce(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!p}function ga(e,n){const t=e.get(n)[1],r=e.get(n)[2];let i=n-1;const l=[];let a=t._tokenizer;a||(a=r.parser[t.contentType](t.start),t._contentTypeTextTrailing&&(a._contentTypeTextTrailing=!0));const s=a.events,o=[],p={};let u,f,g=-1,h=t,b=0,w=0;const A=[w];for(;h;){for(;e.get(++i)[1]!==h;);l.push(i),h._tokenizer||(u=r.sliceStream(h),h.next||u.push(null),f&&a.defineSki
vendor: 22,845 bytes, line 7
7p(h.start),h._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(u),h._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),f=h,h=h.next}for(h=t;++g<s.length;)s[g][0]==="exit"&&s[g-1][0]==="enter"&&s[g][1].type===s[g-1][1].type&&s[g][1].start.line!==s[g][1].end.line&&(w=g+1,A.push(w),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(a.events=[],h?(h._tokenizer=void 0,h.previous=void 0):A.pop(),g=A.length;g--;){const v=s.slice(A[g],A[g+1]),D=l.pop();o.push([D,D+v.length-1]),e.splice(D,2,v)}for(o.reverse(),g=-1;++g<o.length;)p[b+o[g][0]]=b+o[g][1],b+=o[g][1]-o[g][0]-1;return p}const xa={resolve:ba,tokenize:ka},ya={partial:!0,tokenize:wa};function ba(e){return Cr(e),e}function ka(e,n){let t;return r;function r(s){return e.enter("content"),t=e.enter("chunkContent",{contentType:"content"}),i(s)}function i(s){return s===null?l(s):z(s)?e.check(ya,a,l)(s):(e.consume(s),i)}function l(s){return e.exit("chunkContent"),e.exit("content"),n(s)}function a(s){return e.consume(s),e.exit("chunkContent"),t.next=e.enter("chunkContent",{contentType:"content",previous:t}),t=t.next,i}}function wa(e,n,t){const r=this;return i;function i(a){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),X(e,l,"linePrefix")}function l(a){if(a===null||z(a))return t(a);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?n(a):e.interrupt(r.parser.constructs.flow,t,n)(a)}}function Ir(e,n,t,r,i,l,a,s,o){const p=o||Number.POSITIVE_INFINITY;let u=0;return f;function f(v){return v===60?(e.enter(r),e.enter(i),e.enter(l),e.consume(v),e.exit(l),g):v===null||v===32||v===41||Jn(v)?t(v):(e.enter(r),e.enter(a),e.enter(s),e.enter("chunkString",{contentType:"string"}),w(v))}function g(v){return v===62?(e.enter(l),e.consume(v),e.exit(l),e.exit(i),e.exit(r),n):(e.enter(s),e.enter("chunkString",{contentType:"string"}),h(v))}function h(v){return v===62?(e.exit("chunkString"),e.exit(s),g(v)):v===null||v===60||z(v)?t(v):(e.consume(v),v===92?b:h)}function b(v){return v===60||v===62||v===92?(e.consume(v),h):h(v)}function w(v){return!u&&(v===null||v===41||ce(v))?(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(r),n(v)):u<p&&v===40?(e.consume(v),u++,w):v===41?(e.consume(v),u--,w):v===null||v===32||v===40||Jn(v)?t(v):(e.consume(v),v===92?A:w)}function A(v){return v===40||v===41||v===92?(e.consume(v),w):w(v)}}function Ar(e,n,t,r,i,l){const a=this;let s=0,o;return p;function p(h){return e.enter(r),e.enter(i),e.consume(h),e.exit(i),e.enter(l),u}function u(h){return s>999||h===null||h===91||h===93&&!o||h===94&&!s&&"_hiddenFootnoteSupport"in a.parser.constructs?t(h):h===93?(e.exit(l),e.enter(i),e.consume(h),e.exit(i),e.exit(r),n):z(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===null||h===91||h===93||z(h)||s++>999?(e.exit("chunkString"),u(h)):(e.consume(h),o||(o=!B(h)),h===92?g:f)}function g(h){return h===91||h===92||h===93?(e.consume(h),s++,f):f(h)}}function Tr(e,n,t,r,i,l){let a;return s;function s(g){return g===34||g===39||g===40?(e.enter(r),e.enter(i),e.consume(g),e.exit(i),a=g===40?41:g,o):t(g)}function o(g){return g===a?(e.enter(i),e.consume(g),e.exit(i),e.exit(r),n):(e.enter(l),p(g))}function p(g){return g===a?(e.exit(l),o(a)):g===null?t(g):z(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),X(e,p,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(g))}function u(g){return g===a||g===null||z(g)?(e.exit("chunkString"),p(g)):(e.consume(g),g===92?f:u)}function f(g){return g===a||g===92?(e.consume(g),u):u(g)}}function ln(e,n){let t;return r;function r(i){return z(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t=!0,r):B(i)?X(e,r,t?"linePrefix":"lineSuffix")(i):n(i)}}const Sa={name:"definition",tokenize:va},_a={partial:!0,tokenize:Na};function va(e,n,t){const r=this;let i;return l;function l(h){return e.enter("definition"),a(h)}function a(h){return Ar.call(r,e,s,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function s(h){return i=Ye(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),o):t(h)}function o(h){return ce(h)?ln(e,p)(h):p(h)}function p(h){return Ir(e,u,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function u(h){return e.attempt(_a,f,f)(h)}function f(h){return B(h)?X(e,g,"whitespace")(h):g(h)}function g(h){return h===null||z(h)?(e.exit("definition"),r.parser.defined.push(i),n(h)):t(h)}}function Na(e,n,t){return r;function r(s){return ce(s)?ln(e,i)(s):t(s)}function i(s){return Tr(e,l,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function l(s){return B(s)?X(e,a,"whitespace")(s):a(s)}function a(s){return s===null||z(s)?n(s):t(s)}}const ja={name:"hardBreakEscape",tokenize:Ea};function Ea(e,n,t){return r;function r(l){return e.enter("hardBreakEscape"),e.consume(l),i}function i(l){return z(l)?(e.exit("hardBreakEscape"),n(l)):t(l)}}const Ca={name:"headingAtx",resolve:Ia,tokenize:Aa};function Ia(e,n){let t=e.length-2,r=3,i,l;return e[r][1].type==="whitespace"&&(r+=2),t-2>r&&e[t][1].type==="whitespace"&&(t-=2),e[t][1].type==="atxHeadingSequence"&&(r===t-1||t-4>r&&e[t-2][1].type==="whitespace")&&(t-=r+1===t?2:4),t>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[t][1].end},l={type:"chunkText",start:e[r][1].start,end:e[t][1].end,contentType:"text"},Ce(e,r,t-r+1,[["enter",i,n],["enter",l,n],["exit",l,n],["exit",i,n]])),e}function Aa(e,n,t){let r=0;return i;function i(u){return e.enter("atxHeading"),l(u)}function l(u){return e.enter("atxHeadingSequence"),a(u)}function a(u){return u===35&&r++<6?(e.consume(u),a):u===null||ce(u)?(e.exit("atxHeadingSequence"),s(u)):t(u)}function s(u){return u===35?(e.enter("atxHeadingSequence"),o(u)):u===null||z(u)?(e.exit("atxHeading"),n(u)):B(u)?X(e,s,"whitespace")(u):(e.enter("atxHeadingText"),p(u))}function o(u){return u===35?(e.consume(u),o):(e.exit("atxHeadingSequence"),s(u))}function p(u){return u===null||u===35||ce(u)?(e.exit("atxHeadingText"),s(u)):(e.consume(u),p)}}const Ta=["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"],Mt=["pre","script","style","textarea"],Pa={concrete:!0,name:"htmlFlow",resolveTo:Oa,tokenize:Da},za={partial:!0,tokenize:Ma},La={partial:!0,tokenize:Ra};function Oa(e){let n=e.length;for(;n--&&!(e[n][0]==="enter"&&e[n][1].type==="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e}function Da(e,n,t){const r=this;let i,l,a,s,o;return p;function p(m){return u(m)}function u(m){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(m),f}function f(m){return m===33?(e.consume(m),g):m===47?(e.consume(m),l=!0,w):m===63?(e.consume(m),i=3,r.interrupt?n:d):Ee(m)?(e.consume(m),a=String.fromCharCode(m),A):t(m)}function g(m){return m===45?(e.consume(m),i=2,h):m===91?(e.consume(m),i=5,s=0,b):Ee(m)?(e.consume(m),i=4,r.interrupt?n:d):t(m)}function h(m){return m===45?(e.consume(m),r.interrupt?n:d):t(m)}function b(m){const ae="CDATA[";return m===ae.charCodeAt(s++)?(e.consume(m),s===ae.length?r.interrupt?n:C:b):t(m)}function w(m){return Ee(m)?(e.consume(m),a=String.fromCharCode(m),A):t(m)}function A(m){if(m===null||m===47||m===62||ce(m)){const ae=m===47,le=a.toLowerCase();return!ae&&!l&&Mt.includes(le)?(i=1,r.interrupt?n(m):C(m)):Ta.includes(a.toLowerCase())?(i=6,ae?(e.consume(m),v):r.interrupt?n(m):C(m)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?t(m):l?D(m):E(m))}return m===45||ge(m)?(e.consume(m),a+=String.fromCharCode(m),A):t(m)}function v(m){return m===62?(e.consume(m),r.interrupt?n:C):t(m)}function D(m){return B(m)?(e.consume(m),D):U(m)}function E(m){return m===47?(e.consume(m),U):m===58||m===95||Ee(m)?(e.consume(m),H):B(m)?(e.consume(m),E):U(m)}function H(m){return m===45||m===46||m===58||m===95||ge(m)?(e.consume(m),H):S(m)}function S(m){return m===61?(e.consume(m),k):B(m)?(e.consume(m),S):E(m)}function k(m){return m===null||m===60||m===61||m===62||m===96?t(m):m===34||m===39?(e.consume(m),o=m,M):B(m)?(e.consume(m),k):W(m)}function M(m){return m===o?(e.consume(m),o=null,T):m===null||z(m)?t(m):(e.consume(m),M)}function W(m){return m===null||m===34||m===39||m===47||m===60||m===61||m===62||m===96||ce(m)?S(m):(e.consume(m),W)}function T(m){return m===47||m===62||B(m)?E(m):t(m)}function U(m){return m===62?(e.consume(m),I):t(m)}function I(m){return m===null||z(m)?C(m):B(m)?(e.consume(m),I):t(m)}function C(m){return m===45&&i===2?(e.consume(m),Q):m===60&&i===1?(e.consume(m),G):m===62&&i===4?(e.consume(m),ie):m===63&&i===3?(e.consume(m),d):m===93&&i===5?(e.consume(m),ye):z(m)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(za,he,V)(m)):m===null||z(m)?(e.exit("htmlFlowData"),V(m)):(e.consume(m),C)}function V(m){return e.check(La,J,he)(m)}function J(m){return e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),R}function R(m){return m===null||z(m)?V(m):(e.enter("htmlFlowData"),C(m))}function Q(m){return m===45?(e.consume(m),d):C(m)}function G(m){return m===47?(e.consume(m),a="",re):C(m)}function re(m){if(m===62){const ae=a.toLowerCase();return Mt.includes(ae)?(e.consume(m),ie):C(m)}return Ee(m)&&a.length<8?(e.consume(m),a+=String.fromCharCode(m),re):C(m)}function ye(m){return m===93?(e.consume(m),d):C(m)}function d(m){return m===62?(e.consume(m),ie):m===45&&i===2?(e.consume(m),d):C(m)}function ie(m){return m===null||z(m)?(e.exit("htmlFlowData"),he(m)):(e.consume(m),ie)}function he(m){return e.exit("htmlFlow"),n(m)}}function Ra(e,n,t){const r=this;return i;function i(a){return z(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),l):t(a)}function l(a){return r.parser.lazy[r.now().line]?t(a):n(a)}}function Ma(e,n,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Sn,n,t)}}const Fa={name:"htmlText",tokenize:Ba};function Ba(e,n,t){const r=this;let i,l,a;return s;function s(d){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(d),o}function o(d){return d===33?(e.consume(d),p):d===47?(e.consume(d),S):d===63?(e.consume(d),E):Ee(d)?(e.consume(d),W):t(d)}function p(d){return d===45?(e.consume(d),u):d===91?(e.consume(d),l=0,b):Ee(d)?(e.consume(d),D):t(d)}function u(d){return d===45?(e.consume(d),h):t(d)}function f(d){return d===null?t(d):d===45?(e.consume(d),g):z(d)?(a=f,G(d)):(e.consume(d),f)}function g(d){return d===45?(e.consume(d),h):f(d)}function h(d){return d===62?Q(d):d===45?g(d):f(d)}function b(d){const ie="CDATA[";return d===ie.charCodeAt(l++)?(e.consume(d),l===ie.length?w:b):t(d)}function w(d){return d===null?t(d):d===93?(e.consume(d),A):z(d)?(a=w,G(d)):(e.consume(d),w)}function A(d){return d===93?(e.consume(d),v):w(d)}function v(d){return d===62?Q(d):d===93?(e.consume(d),v):w(d)}function D(d){return d===null||d===62?Q(d):z(d)?(a=D,G(d)):(e.consume(d),D)}function E(d){return d===null?t(d):d===63?(e.consume(d),H):z(d)?(a=E,G(d)):(e.consume(d),E)}function H(d){return d===62?Q(d):E(d)}function S(d){return Ee(d)?(e.consume(d),k):t(d)}function k(d){return d===45||ge(d)?(e.consume(d),k):M(d)}function M(d){return z(d)?(a=M,G(d)):B(d)?(e.consume(d),M):Q(d)}function W(d){return d===45||ge(d)?(e.consume(d),W):d===47||d===62||ce(d)?T(d):t(d)}function T(d){return d===47?(e.consume(d),Q):d===58||d===95||Ee(d)?(e.consume(d),U):z(d)?(a=T,G(d)):B(d)?(e.consume(d),T):Q(d)}function U(d){return d===45||d===46||d===58||d===95||ge(d)?(e.consume(d),U):I(d)}function I(d){return d===61?(e.consume(d),C):z(d)?(a=I,G(d)):B(d)?(e.consume(d),I):T(d)}function C(d){return d===null||d===60||d===61||d===62||d===96?t(d):d===34||d===39?(e.consume(d),i=d,V):z(d)?(a=C,G(d)):B(d)?(e.consume(d),C):(e.consume(d),J)}function V(d){return d===i?(e.consume(d),i=void 0,R):d===null?t(d):z(d)?(a=V,G(d)):(e.consume(d),V)}function J(d){return d===null||d===34||d===39||d===60||d===61||d===96?t(d):d===47||d===62||ce(d)?T(d):(e.consume(d),J)}function R(d){return d===47||d===62||ce(d)?T(d):t(d)}function Q(d){return d===62?(e.consume(d),e.exit("htmlTextData"),e.exit("htmlText"),n):t(d)}function G(d){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),re}function re(d){return B(d)?X(e,ye,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d):ye(d)}function ye(d){return e.enter("htmlTextData"),a(d)}}const pt={name:"labelEnd",resolveAll:qa,resolveTo:$a,tokenize:Xa},Ua={tokenize:Ya},Va={tokenize:Ka},Ha={tokenize:Wa};function qa(e){let n=-1;const t=[];for(;++n<e.length;){const r=e[n][1];if(t.push(e[n]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",n+=i}}return e.length!==t.length&&Ce(e,0,e.length,t),e}function $a(e,n){let t=e.length,r=0,i,l,a,s;for(;t--;)if(i=e[t][1],l){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[t][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(a){if(e[t][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(l=t,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(a=t);const o={type:e[l][1].type==="labelLink"?"link":"image",start:{...e[l][1].start},end:{...e[e.length-1][1].end}},p={type:"label",start:{...e[l][1].start},end:{...e[a][1].end}},u={type:"labelText",start:{...e[l+r+2][1].end},end:{...e[a-2][1].start}};return s=[["enter",o,n],["enter",p,n]],s=xe(s,e.slice(l+1,l+r+3)),s=xe(s,[["enter",u,n]]),s=xe(s,ct(n.parser.constructs.insideSpan.null,e.slice(l+r+4,a-3),n)),s=xe(s,[["exit",u,n],e[a-2],e[a-1],["exit",p,n]]),s=xe(s,e.slice(a+1)),s=xe(s,[["exit",o,n]]),Ce(e,l,e.length,s),e}function Xa(e,n,t){const r=this;let i=r.events.length,l,a;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){l=r.events[i][1];break}return s;function s(g){return l?l._inactive?f(g):(a=r.parser.defined.includes(Ye(r.sliceSerialize({start:l.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(g),e.exit("labelMarker"),e.exit("labelEnd"),o):t(g)}function o(g){return g===40?e.attempt(Ua,u,a?u:f)(g):g===91?e.attempt(Va,u,a?p:f)(g):a?u(g):f(g)}function p(g){return e.attempt(Ha,u,f)(g)}function u(g){return n(g)}function f(g){return l._balanced=!0,t(g)}}function Ya(e,n,t){return r;function r(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),i}function i(f){return ce(f)?ln(e,l)(f):l(f)}function l(f){return f===41?u(f):Ir(e,a,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function a(f){return ce(f)?ln(e,o)(f):u(f)}function s(f){return t(f)}function o(f){return f===34||f===39||f===40?Tr(e,p,t,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):u(f)}function p(f){return ce(f)?ln(e,u)(f):u(f)}function u(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),n):t(f)}}function Ka(e,n,t){const r=this;return i;function i(s){return Ar.call(r,e,l,a,"reference","referenceMarker","referenceString")(s)}function l(s){return r.parser.defined.includes(Ye(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?n(s):t(s)}function a(s){return t(s)}}function Wa(e,n,t){return r;function r(l){return e.enter("reference"),e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),i}function i(l){return l===93?(e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),e.exit("reference"),n):t(l)}}const Ja={name:"labelStartImage",resolveAll:pt.resolveAll,tokenize:Qa};function Qa(e,n,t){const r=this;return i;function i(s){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(s),e.exit("labelImageMarker"),l}function l(s){return s===91?(e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelImage"),a):t(s)}function a(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(s):n(s)}}const Ga={name:"labelStartLink",resolveAll:pt.resolveAll,tokenize:Za};function Za(e,n,t){const r=this;return i;function i(a){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelLink"),l}function l(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(a):n(a)}}const Rn={name:"lineEnding",tokenize:es};function es(e,n){return t;function t(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),X(e,n,"linePrefix")}}const gn={name:"thematicBreak",tokenize:ns};function ns(e,n,t){let r=0,i;return l;function l(p){return e.enter("thematicBreak"),a(p)}function a(p){return i=p,s(p)}function s(p){return p===i?(e.enter("thematicBreakSequence"),o(p)):r>=3&&(p===null||z(p))?(e.exit("thematicBreak"),n(p)):t(p)}function o(p){return p===i?(e.consume(p),r++,o):(e.exit("thematicBreakSequence"),B(p)?X(e,s,"whitespace")(p):s(p))}}const ue={continuation:{tokenize:ls},exit:ss,name:"list",tokenize:is},ts={partial:!0,tokenize:os},rs={partial:!0,tokenize:as};function is(e,n,t){const r=this,i=r.events[r.events.length-1];let l=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,a=0;return s;function s(h){const b=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(b==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:Qn(h)){if(r.containerState.type||(r.containerState.type=b,e.enter(b,{_container:!0})),b==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(gn,t,p)(h):p(h);if(!r.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),o(h)}return t(h)}function o(h){return Qn(h)&&++a<10?(e.consume(h),o):(!r.interrupt||a<2)&&(r.containerState.marker?h===r.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),p(h)):t(h)}function p(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||h,e.check(Sn,r.interrupt?t:u,e.attempt(ts,g,f))}function u(h){return r.containerState.initialBlankLine=!0,l++,g(h)}function f(h){return B(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),g):t(h)}function g(h){return r.containerState.size=l+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(h)}}function ls(e,n,t){const r=this;return r.containerState._closeFlow=void 0,e.check(Sn,i,l);function i(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,X(e,n,"listItemIndent",r.containerState.size+1)(s)}function l(s){return r.containerState.furtherBlankLines||!B(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,a(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(rs,n,a)(s))}function a(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,X(e,e.attempt(ue,n,t),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function as(e,n,t){const r=this;return X(e,i,"listItemIndent",r.containerState.size+1);function i(l){const a=r.events[r.events.length-1];return a&&a[1].type==="listItemIndent"&&a[2].sliceSerialize(a[1],!0).length===r.containerState.size?n(l):t(l)}}function ss(e){e.exit(this.containerState.type)}function os(e,n,t){const r=this;return X(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(l){const a=r.events[r.events.length-1];return!B(l)&&a&&a[1].type==="listItemPrefixWhitespace"?n(l):t(l)}}const Ft={name:"setextUnderline",resolveTo:us,tokenize:cs};function us(e,n){let t=e.length,r,i,l;for(;t--;)if(e[t][0]==="enter"){if(e[t][1].type==="content"){r=t;break}e[t][1].type==="paragraph"&&(i=t)}else e[t][1].type==="content"&&e.splice(t,1),!l&&e[t][1].type==="definition"&&(l=t);const a={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",l?(e.splice(i,0,["enter",a,n]),e.splice(l+1,0,["exit",e[r][1],n]),e[r][1].end={...e[l][1].end}):e[r][1]=a,e.push(["exit",a,n]),e}function cs(e,n,t){const r=this;let i;return l;function l(p){let u=r.events.length,f;for(;u--;)if(r.events[u][1].type!=="lineEnding"&&r.events[u][1].type!=="linePrefix"&&r.events[u][1].type!=="content"){f=r.events[u][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(e.enter("setextHeadingLine"),i=p,a(p)):t(p)}function a(p){return e.enter("setextHeadingLineSequence"),s(p)}function s(p){return p===i?(e.consume(p),s):(e.exit("setextHeadingLineSequence"),B(p)?X(e,o,"lineSuffix")(p):o(p))}function o(p){return p===null||z(p)?(e.exit("setextHeadingLine"),n(p)):t(p)}}const ps={tokenize:hs};function hs(e){const n=this,t=e.attempt(Sn,r,e.attempt(this.parser.constructs.flowInitial,i,X(e,e.attempt(this.parser.constructs.flow,i,e.attempt(xa,i)),"linePrefix")));return t;function r(l){if(l===null){e.consume(l);return}return e.enter("lineEndingBlank"),e.consume(l),e.exit("lineEndingBlank"),n.currentConstruct=void 0,t}function i(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),n.currentConstruct=void 0,t}}const fs={resolveAll:zr()},ds=Pr("string"),ms=Pr("text");function Pr(e){return{resolveAll:zr(e==="text"?gs:void 0),tokenize:n};function n(t){const r=this,i=this.parser.constructs[e],l=t.attempt(i,a,s);return a;function a(u){return p(u)?l(u):s(u)}function s(u){if(u===null){t.consume(u);return}return t.enter("data"),t.consume(u),o}function o(u){return p(u)?(t.exit("data"),l(u)):(t.consume(u),o)}function p(u){if(u===null)return!0;const f=i[u];let g=-1;if(f)for(;++g<f.length;){const h=f[g];if(!h.previous||h.previous.call(r,r.previous))return!0}return!1}}}function zr(e){return n;function n(t,r){let i=-1,l;for(;++i<=t.length;)l===void 0?t[i]&&t[i][1].type==="data"&&(l=i,i++):(!t[i]||t[i][1].type!=="data")&&(i!==l+2&&(t[l][1].end=t[i-1][1].end,t.splice(l+2,i-l-2),i=l+2),l=void 0);return e?e(t,r):t}}function gs(e,n){let t=0;for(;++t<=e.length;)if((t===e.length||e[t][1].type==="lineEnding")&&e[t-1][1].type==="data"){const r=e[t-1][1],i=n.sliceStream(r);let l=i.length,a=-1,s=0,o;for(;l--;){const p=i[l];if(typeof p=="string"){for(a=p.length;p.charCodeAt(a-1)===32;)s++,a--;if(a)break;a=-1}else if(p===-2)o=!0,s++;else if(p!==-1){l++;break}}
vendor: 3,007 bytes, line 7
7if(n._contentTypeTextTrailing&&t===e.length&&(s=0),s){const p={type:t===e.length||o||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:l?a:r.start._bufferIndex+a,_index:r.start._index+l,line:r.end.line,column:r.end.column-s,offset:r.end.offset-s},end:{...r.end}};r.end={...p.start},r.start.offset===r.end.offset?Object.assign(r,p):(e.splice(t,0,["enter",p,n],["exit",p,n]),t+=2)}t++}return e}const xs={42:ue,43:ue,45:ue,48:ue,49:ue,50:ue,51:ue,52:ue,53:ue,54:ue,55:ue,56:ue,57:ue,62:Nr},ys={91:Sa},bs={[-2]:Dn,[-1]:Dn,32:Dn},ks={35:Ca,42:gn,45:[Ft,gn],60:Pa,61:Ft,95:gn,96:Rt,126:Rt},ws={38:Er,92:jr},Ss={[-5]:Rn,[-4]:Rn,[-3]:Rn,33:Ja,38:Er,42:Gn,60:[Gl,Fa],91:Ga,92:[ja,jr],93:pt,95:Gn,96:pa},_s={null:[Gn,fs]},vs={null:[42,95]},Ns={null:[]},js=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:vs,contentInitial:ys,disable:Ns,document:xs,flow:ks,flowInitial:bs,insideSpan:_s,string:ws,text:Ss},Symbol.toStringTag,{value:"Module"}));function Es(e,n,t){let r={_bufferIndex:-1,_index:0,line:t&&t.line||1,column:t&&t.column||1,offset:t&&t.offset||0};const i={},l=[];let a=[],s=[];const o={attempt:M(S),check:M(k),consume:D,enter:E,exit:H,interrupt:M(k,{interrupt:!0})},p={code:null,containerState:{},defineSkip:w,events:[],now:b,parser:e,previous:null,sliceSerialize:g,sliceStream:h,write:f};let u=n.tokenize.call(p,o);return n.resolveAll&&l.push(n),p;function f(I){return a=xe(a,I),A(),a[a.length-1]!==null?[]:(W(n,0),p.events=ct(l,p.events,p),p.events)}function g(I,C){return Is(h(I),C)}function h(I){return Cs(a,I)}function b(){const{_bufferIndex:I,_index:C,line:V,column:J,offset:R}=r;return{_bufferIndex:I,_index:C,line:V,column:J,offset:R}}function w(I){i[I.line]=I.column,U()}function A(){let I;for(;r._index<a.length;){const C=a[r._index];if(typeof C=="string")for(I=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===I&&r._bufferIndex<C.length;)v(C.charCodeAt(r._bufferIndex));else v(C)}}function v(I){u=u(I)}function D(I){z(I)?(r.line++,r.column=1,r.offset+=I===-3?2:1,U()):I!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++)),p.previous=I}function E(I,C){const V=C||{};return V.type=I,V.start=b(),p.events.push(["enter",V,p]),s.push(V),V}function H(I){const C=s.pop();return C.end=b(),p.events.push(["exit",C,p]),C}function S(I,C){W(I,C.from)}function k(I,C){C.restore()}function M(I,C){return V;function V(J,R,Q){let G,re,ye,d;return Array.isArray(J)?he(J):"tokenize"in J?he([J]):ie(J);function ie(q){return Oe;function Oe(be){const Ie=be!==null&&q[be],y=be!==null&&q.null,j=[...Array.isArray(Ie)?Ie:Ie?[Ie]:[],...Array.isArray(y)?y:y?[y]:[]];return he(j)(be)}}function he(q){return G=q,re=0,q.length===0?Q:m(q[re])}function m(q){return Oe;function Oe(be){return d=T(),ye=q,q.partial||(p.currentConstruct=q),q.name&&p.parser.constructs.disable.null.includes(q.name)?le():q.tokenize.call(C?Object.assign(Object.create(p),C):p,o,ae,le)(be)}}function ae(q){return I(ye,d),R}
vendor: 10,290 bytes, lines 7-9
7function le(q){return d.restore(),++re<G.length?m(G[re]):Q}}}function W(I,C){I.resolveAll&&!l.includes(I)&&l.push(I),I.resolve&&Ce(p.events,C,p.events.length-C,I.resolve(p.events.slice(C),p)),I.resolveTo&&(p.events=I.resolveTo(p.events,p))}function T(){const I=b(),C=p.previous,V=p.currentConstruct,J=p.events.length,R=Array.from(s);return{from:J,restore:Q};function Q(){r=I,p.previous=C,p.currentConstruct=V,p.events.length=J,s=R,U()}}function U(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function Cs(e,n){const t=n.start._index,r=n.start._bufferIndex,i=n.end._index,l=n.end._bufferIndex;let a;if(t===i)a=[e[t].slice(r,l)];else{if(a=e.slice(t,i),r>-1){const s=a[0];typeof s=="string"?a[0]=s.slice(r):a.shift()}l>0&&a.push(e[i].slice(0,l))}return a}function Is(e,n){let t=-1;const r=[];let i;for(;++t<e.length;){const l=e[t];let a;if(typeof l=="string")a=l;else switch(l){case-5:{a="\r";break}case-4:{a=`
8`;break}case-3:{a=`\r
9`;break}case-2:{a=n?" ":"	";break}case-1:{if(!n&&i)continue;a=" ";break}default:a=String.fromCharCode(l)}i=l===-2,r.push(a)}return r.join("")}function As(e){const r={constructs:Rl([js,...(e||{}).extensions||[]]),content:i($l),defined:[],document:i(Yl),flow:i(ps),lazy:{},string:i(ds),text:i(ms)};return r;function i(l){return a;function a(s){return Es(r,l,s)}}}function Ts(e){for(;!Cr(e););return e}const Bt=/[\0\t\n\r]/g;function Ps(){let e=1,n="",t=!0,r;return i;function i(l,a,s){const o=[];let p,u,f,g,h;for(l=n+(typeof l=="string"?l.toString():new TextDecoder(a||void 0).decode(l)),f=0,n="",t&&(l.charCodeAt(0)===65279&&f++,t=void 0);f<l.length;){if(Bt.lastIndex=f,p=Bt.exec(l),g=p&&p.index!==void 0?p.index:l.length,h=l.charCodeAt(g),!p){n=l.slice(f);break}if(h===10&&f===g&&r)o.push(-3),r=void 0;else switch(r&&(o.push(-5),r=void 0),f<g&&(o.push(l.slice(f,g)),e+=g-f),h){case 0:{o.push(65533),e++;break}case 9:{for(u=Math.ceil(e/4)*4,o.push(-2);e++<u;)o.push(-1);break}case 10:{o.push(-4),e=1;break}default:r=!0,e=1}f=g+1}return s&&(r&&o.push(-5),n&&o.push(n),o.push(null)),o}}const zs=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Ls(e){return e.replace(zs,Os)}function Os(e,n,t){if(n)return n;if(t.charCodeAt(0)===35){const i=t.charCodeAt(1),l=i===120||i===88;return vr(t.slice(l?2:1),l?16:10)}return ut(t)||e}const Lr={}.hasOwnProperty;function Ds(e,n,t){return n&&typeof n=="object"&&(t=n,n=void 0),Rs(t)(Ts(As(t).document().write(Ps()(e,n,!0))))}function Rs(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(De),autolinkProtocol:T,autolinkEmail:T,atxHeading:l(fe),blockQuote:l(y),characterEscape:T,characterReference:T,codeFenced:l(j),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:l(j,a),codeText:l(K,a),codeTextData:T,data:T,codeFlowValue:T,definition:l(Y),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:l(ne),hardBreakEscape:l(ve),hardBreakTrailing:l(ve),htmlFlow:l(cn,a),htmlFlowData:T,htmlText:l(cn,a),htmlTextData:T,image:l(Nn),label:a,link:l(De),listItem:l(pn),listItemValue:g,listOrdered:l(Ue,f),listUnordered:l(Ue),paragraph:l(hn),reference:m,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:l(fe),strong:l(Je),thematicBreak:l(Qe)},exit:{atxHeading:o(),atxHeadingSequence:S,autolink:o(),autolinkEmail:Ie,autolinkProtocol:be,blockQuote:o(),characterEscapeValue:U,characterReferenceMarkerHexadecimal:le,characterReferenceMarkerNumeric:le,characterReferenceValue:q,characterReference:Oe,codeFenced:o(A),codeFencedFence:w,codeFencedFenceInfo:h,codeFencedFenceMeta:b,codeFlowValue:U,codeIndented:o(v),codeText:o(R),codeTextData:U,data:U,definition:o(),definitionDestinationString:H,definitionLabelString:D,definitionTitleString:E,emphasis:o(),hardBreakEscape:o(C),hardBreakTrailing:o(C),htmlFlow:o(V),htmlFlowData:U,htmlText:o(J),htmlTextData:U,image:o(G),label:ye,labelText:re,lineEnding:I,link:o(Q),listItem:o(),listOrdered:o(),listUnordered:o(),paragraph:o(),referenceString:ae,resourceDestinationString:d,resourceTitleString:ie,resource:he,setextHeading:o(W),setextHeadingLineSequence:M,setextHeadingText:k,strong:o(),thematicBreak:o()}};Or(n,(e||{}).mdastExtensions||[]);const t={};return r;function r(x){let N={type:"root",children:[]};const P={stack:[N],tokenStack:[],config:n,enter:s,exit:p,buffer:a,resume:u,data:t},L=[];let F=-1;for(;++F<x.length;)if(x[F][1].type==="listOrdered"||x[F][1].type==="listUnordered")if(x[F][0]==="enter")L.push(F);else{const se=L.pop();F=i(x,se,F)}for(F=-1;++F<x.length;){const se=n[x[F][0]];Lr.call(se,x[F][1].type)&&se[x[F][1].type].call(Object.assign({sliceSerialize:x[F][2].sliceSerialize},P),x[F][1])}if(P.tokenStack.length>0){const se=P.tokenStack[P.tokenStack.length-1];(se[1]||Ut).call(P,void 0,se[0])}for(N.position={start:Re(x.length>0?x[0][1].start:{line:1,column:1,offset:0}),end:Re(x.length>0?x[x.length-2][1].end:{line:1,column:1,offset:0})},F=-1;++F<n.transforms.length;)N=n.transforms[F](N)||N;return N}function i(x,N,P){let L=N-1,F=-1,se=!1,Ae,Te,Ge,Ze;for(;++L<=P;){const de=x[L];switch(de[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{de[0]==="enter"?F++:F--,Ze=void 0;break}case"lineEndingBlank":{de[0]==="enter"&&(Ae&&!Ze&&!F&&!Ge&&(Ge=L),Ze=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Ze=void 0}if(!F&&de[0]==="enter"&&de[1].type==="listItemPrefix"||F===-1&&de[0]==="exit"&&(de[1].type==="listUnordered"||de[1].type==="listOrdered")){if(Ae){let Ve=L;for(Te=void 0;Ve--;){const Pe=x[Ve];if(Pe[1].type==="lineEnding"||Pe[1].type==="lineEndingBlank"){if(Pe[0]==="exit")continue;Te&&(x[Te][1].type="lineEndingBlank",se=!0),Pe[1].type="lineEnding",Te=Ve}else if(!(Pe[1].type==="linePrefix"||Pe[1].type==="blockQuotePrefix"||Pe[1].type==="blockQuotePrefixWhitespace"||Pe[1].type==="blockQuoteMarker"||Pe[1].type==="listItemIndent"))break}Ge&&(!Te||Ge<Te)&&(Ae._spread=!0),Ae.end=Object.assign({},Te?x[Te][1].start:de[1].end),x.splice(Te||L,0,["exit",Ae,de[2]]),L++,P++}if(de[1].type==="listItemPrefix"){const Ve={type:"listItem",_spread:!1,start:Object.assign({},de[1].start),end:void 0};Ae=Ve,x.splice(L,0,["enter",Ve,de[2]]),L++,P++,Ge=void 0,Ze=!0}}}return x[N][1]._spread=se,P}function l(x,N){return P;function P(L){s.call(this,x(L),L),N&&N.call(this,L)}}function a(){this.stack.push({type:"fragment",children:[]})}function s(x,N,P){this.stack[this.stack.length-1].children.push(x),this.stack.push(x),this.tokenStack.push([N,P||void 0]),x.position={start:Re(N.start),end:void 0}}function o(x){return N;function N(P){x&&x.call(this,P),p.call(this,P)}}function p(x,N){const P=this.stack.pop(),L=this.tokenStack.pop();if(L)L[0].type!==x.type&&(N?N.call(this,x,L[0]):(L[1]||Ut).call(this,x,L[0]));else throw new Error("Cannot close `"+x.type+"` ("+rn({start:x.start,end:x.end})+"): it’s not open");P.position.end=Re(x.end)}function u(){return Ol(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function g(x){if(this.data.expectingFirstListItemValue){const N=this.stack[this.stack.length-2];N.start=Number.parseInt(this.sliceSerialize(x),10),this.data.expectingFirstListItemValue=void 0}}function h(){const x=this.resume(),N=this.stack[this.stack.length-1];N.lang=x}function b(){const x=this.resume(),N=this.stack[this.stack.length-1];N.meta=x}function w(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function A(){const x=this.resume(),N=this.stack[this.stack.length-1];N.value=x.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function v(){const x=this.resume(),N=this.stack[this.stack.length-1];N.value=x.replace(/(\r?\n|\r)$/g,"")}function D(x){const N=this.resume(),P=this.stack[this.stack.length-1];P.label=N,P.identifier=Ye(this.sliceSerialize(x)).toLowerCase()}function E(){const x=this.resume(),N=this.stack[this.stack.length-1];N.title=x}function H(){const x=this.resume(),N=this.stack[this.stack.length-1];N.url=x}function S(x){const N=this.stack[this.stack.length-1];if(!N.depth){const P=this.sliceSerialize(x).length;N.depth=P}}function k(){this.data.setextHeadingSlurpLineEnding=!0}function M(x){const N=this.stack[this.stack.length-1];N.depth=this.sliceSerialize(x).codePointAt(0)===61?1:2}function W(){this.data.setextHeadingSlurpLineEnding=void 0}function T(x){const P=this.stack[this.stack.length-1].children;let L=P[P.length-1];(!L||L.type!=="text")&&(L=jn(),L.position={start:Re(x.start),end:void 0},P.push(L)),this.stack.push(L)}function U(x){const N=this.stack.pop();N.value+=this.sliceSerialize(x),N.position.end=Re(x.end)}function I(x){const N=this.stack[this.stack.length-1];if(this.data.atHardBreak){const P=N.children[N.children.length-1];P.position.end=Re(x.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(N.type)&&(T.call(this,x),U.call(this,x))}function C(){this.data.atHardBreak=!0}function V(){const x=this.resume(),N=this.stack[this.stack.length-1];N.value=x}function J(){const x=this.resume(),N=this.stack[this.stack.length-1];N.value=x}function R(){const x=this.resume(),N=this.stack[this.stack.length-1];N.value=x}function Q(){const x=this.stack[this.stack.length-1];if(this.data.inReference){const N=this.data.referenceType||"shortcut";x.type+="Reference",x.referenceType=N,delete x.url,delete x.title}else delete x.identifier,delete x.label;this.data.referenceType=void 0}function G(){const x=this.stack[this.stack.length-1];if(this.data.inReference){const N=this.data.referenceType||"shortcut";x.type+="Reference",x.referenceType=N,delete x.url,delete x.title}else delete x.identifier,delete x.label;this.data.referenceType=void 0}function re(x){const N=this.sliceSerialize(x),P=this.stack[this.stack.length-2];P.label=Ls(N),P.identifier=Ye(N).toLowerCase()}function ye(){const x=this.stack[this.stack.length-1],N=this.resume(),P=this.stack[this.stack.length-1];if(this.data.inReference=!0,P.type==="link"){const L=x.children;P.children=L}else P.alt=N}function d(){const x=this.resume(),N=this.stack[this.stack.length-1];N.url=x}function ie(){const x=this.resume(),N=this.stack[this.stack.length-1];N.title=x}function he(){this.data.inReference=void 0}function m(){this.data.referenceType="collapsed"}
vendor: 4,213 bytes, lines 9-11
9function ae(x){const N=this.resume(),P=this.stack[this.stack.length-1];P.label=N,P.identifier=Ye(this.sliceSerialize(x)).toLowerCase(),this.data.referenceType="full"}function le(x){this.data.characterReferenceType=x.type}function q(x){const N=this.sliceSerialize(x),P=this.data.characterReferenceType;let L;P?(L=vr(N,P==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):L=ut(N);const F=this.stack[this.stack.length-1];F.value+=L}function Oe(x){const N=this.stack.pop();N.position.end=Re(x.end)}function be(x){U.call(this,x);const N=this.stack[this.stack.length-1];N.url=this.sliceSerialize(x)}function Ie(x){U.call(this,x);const N=this.stack[this.stack.length-1];N.url="mailto:"+this.sliceSerialize(x)}function y(){return{type:"blockquote",children:[]}}function j(){return{type:"code",lang:null,meta:null,value:""}}function K(){return{type:"inlineCode",value:""}}function Y(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function ne(){return{type:"emphasis",children:[]}}function fe(){return{type:"heading",depth:0,children:[]}}function ve(){return{type:"break"}}function cn(){return{type:"html",value:""}}function Nn(){return{type:"image",title:null,url:"",alt:null}}function De(){return{type:"link",title:null,url:"",children:[]}}function Ue(x){return{type:"list",ordered:x.type==="listOrdered",start:null,spread:x._spread,children:[]}}function pn(x){return{type:"listItem",spread:x._spread,checked:null,children:[]}}function hn(){return{type:"paragraph",children:[]}}function Je(){return{type:"strong",children:[]}}function jn(){return{type:"text",value:""}}function Qe(){return{type:"thematicBreak"}}}function Re(e){return{line:e.line,column:e.column,offset:e.offset}}function Or(e,n){let t=-1;for(;++t<n.length;){const r=n[t];Array.isArray(r)?Or(e,r):Ms(e,r)}}function Ms(e,n){let t;for(t in n)if(Lr.call(n,t))switch(t){case"canContainEols":{const r=n[t];r&&e[t].push(...r);break}case"transforms":{const r=n[t];r&&e[t].push(...r);break}case"enter":case"exit":{const r=n[t];r&&Object.assign(e[t],r);break}}}function Ut(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+rn({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+rn({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+rn({start:n.start,end:n.end})+") is still open")}function Fs(e){const n=this;n.parser=t;function t(r){return Ds(r,{...n.data("settings"),...e,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}function Bs(e,n){const t={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(n),!0)};return e.patch(n,t),e.applyData(n,t)}function Us(e,n){const t={type:"element",tagName:"br",properties:{},children:[]};return e.patch(n,t),[e.applyData(n,t),{type:"text",value:`
10`}]}function Vs(e,n){const t=n.value?n.value+`
11`:"",r={},i=n.lang?n.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let l={type:"element",tagName:"code",properties:r,children:[{type:"text",value:t}]};return n.meta&&(l.data={meta:n.meta}),e.patch(n,l),l=e.applyData(n,l),l={type:"element",tagName:"pre",properties:{},children:[l]},e.patch(n,l),l}function Hs(e,n){const t={type:"element",tagName:"del",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function qs(e,n){const t={type:"element",tagName:"em",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function $s(e,n){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(n.identifier).toUpperCase(),i=We(r.toLowerCase()),l=e.footnoteOrder.indexOf(r);let a,s=e.footnoteCounts.get(r);s===void 0?(s=0,e.footnoteOrder.push(r),a=e.footnoteOrder.length):a=l+1,s+=1,e.footnoteCounts.set(r,s);const o={type:"element",tagName:"a",properties:{href:"#"+t+"fn-"+i,id:t+"fnref-"+i+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(n,o);const p={type:"element",tagName:"sup",properties:{},children:[o]};return e.patch(n,p),e.applyData(n,p)}function Xs(e,n){const t={type:"element",tagName:"h"+n.depth,properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}
vendor: 6,312 bytes, lines 11-13
11function Ys(e,n){if(e.options.allowDangerousHtml){const t={type:"raw",value:n.value};return e.patch(n,t),e.applyData(n,t)}}function Dr(e,n){const t=n.referenceType;let r="]";if(t==="collapsed"?r+="[]":t==="full"&&(r+="["+(n.label||n.identifier)+"]"),n.type==="imageReference")return[{type:"text",value:"!["+n.alt+r}];const i=e.all(n),l=i[0];l&&l.type==="text"?l.value="["+l.value:i.unshift({type:"text",value:"["});const a=i[i.length-1];return a&&a.type==="text"?a.value+=r:i.push({type:"text",value:r}),i}function Ks(e,n){const t=String(n.identifier).toUpperCase(),r=e.definitionById.get(t);if(!r)return Dr(e,n);const i={src:We(r.url||""),alt:n.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const l={type:"element",tagName:"img",properties:i,children:[]};return e.patch(n,l),e.applyData(n,l)}function Ws(e,n){const t={src:We(n.url)};n.alt!==null&&n.alt!==void 0&&(t.alt=n.alt),n.title!==null&&n.title!==void 0&&(t.title=n.title);const r={type:"element",tagName:"img",properties:t,children:[]};return e.patch(n,r),e.applyData(n,r)}function Js(e,n){const t={type:"text",value:n.value.replace(/\r?\n|\r/g," ")};e.patch(n,t);const r={type:"element",tagName:"code",properties:{},children:[t]};return e.patch(n,r),e.applyData(n,r)}function Qs(e,n){const t=String(n.identifier).toUpperCase(),r=e.definitionById.get(t);if(!r)return Dr(e,n);const i={href:We(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const l={type:"element",tagName:"a",properties:i,children:e.all(n)};return e.patch(n,l),e.applyData(n,l)}function Gs(e,n){const t={href:We(n.url)};n.title!==null&&n.title!==void 0&&(t.title=n.title);const r={type:"element",tagName:"a",properties:t,children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function Zs(e,n,t){const r=e.all(n),i=t?eo(t):Rr(n),l={},a=[];if(typeof n.checked=="boolean"){const u=r[0];let f;u&&u.type==="element"&&u.tagName==="p"?f=u:(f={type:"element",tagName:"p",properties:{},children:[]},r.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:n.checked,disabled:!0},children:[]}),l.className=["task-list-item"]}let s=-1;for(;++s<r.length;){const u=r[s];(i||s!==0||u.type!=="element"||u.tagName!=="p")&&a.push({type:"text",value:`
12`}),u.type==="element"&&u.tagName==="p"&&!i?a.push(...u.children):a.push(u)}const o=r[r.length-1];o&&(i||o.type!=="element"||o.tagName!=="p")&&a.push({type:"text",value:`
13`});const p={type:"element",tagName:"li",properties:l,children:a};return e.patch(n,p),e.applyData(n,p)}function eo(e){let n=!1;if(e.type==="list"){n=e.spread||!1;const t=e.children;let r=-1;for(;!n&&++r<t.length;)n=Rr(t[r])}return n}function Rr(e){const n=e.spread;return n??e.children.length>1}function no(e,n){const t={},r=e.all(n);let i=-1;for(typeof n.start=="number"&&n.start!==1&&(t.start=n.start);++i<r.length;){const a=r[i];if(a.type==="element"&&a.tagName==="li"&&a.properties&&Array.isArray(a.properties.className)&&a.properties.className.includes("task-list-item")){t.className=["contains-task-list"];break}}const l={type:"element",tagName:n.ordered?"ol":"ul",properties:t,children:e.wrap(r,!0)};return e.patch(n,l),e.applyData(n,l)}function to(e,n){const t={type:"element",tagName:"p",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function ro(e,n){const t={type:"root",children:e.wrap(e.all(n))};return e.patch(n,t),e.applyData(n,t)}function io(e,n){const t={type:"element",tagName:"strong",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function lo(e,n){const t=e.all(n),r=t.shift(),i=[];if(r){const a={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(n.children[0],a),i.push(a)}if(t.length>0){const a={type:"element",tagName:"tbody",properties:{},children:e.wrap(t,!0)},s=lt(n.children[1]),o=xr(n.children[n.children.length-1]);s&&o&&(a.position={start:s,end:o}),i.push(a)}const l={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(n,l),e.applyData(n,l)}function ao(e,n,t){const r=t?t.children:void 0,l=(r?r.indexOf(n):1)===0?"th":"td",a=t&&t.type==="table"?t.align:void 0,s=a?a.length:n.children.length;let o=-1;const p=[];for(;++o<s;){const f=n.children[o],g={},h=a?a[o]:void 0;h&&(g.align=h);let b={type:"element",tagName:l,properties:g,children:[]};f&&(b.children=e.all(f),e.patch(f,b),b=e.applyData(f,b)),p.push(b)}const u={type:"element",tagName:"tr",properties:{},children:e.wrap(p,!0)};return e.patch(n,u),e.applyData(n,u)}function so(e,n){const t={type:"element",tagName:"td",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}const Vt=9,Ht=32;function oo(e){const n=String(e),t=/\r?\n|\r/g;let r=t.exec(n),i=0;const l=[];for(;r;)l.push(qt(n.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=t.exec(n);return l.push(qt(n.slice(i),i>0,!1)),l.join("")}function qt(e,n,t){let r=0,i=e.length;if(n){let l=e.codePointAt(r);for(;l===Vt||l===Ht;)r++,l=e.codePointAt(r)}if(t){let l=e.codePointAt(i-1);for(;l===Vt||l===Ht;)i--,l=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function uo(e,n){const t={type:"text",value:oo(String(n.value))};return e.patch(n,t),e.applyData(n,t)}function co(e,n){const t={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(n,t),e.applyData(n,t)}const po={blockquote:Bs,break:Us,code:Vs,delete:Hs,emphasis:qs,footnoteReference:$s,heading:Xs,html:Ys,imageReference:Ks,image:Ws,inlineCode:Js,linkReference:Qs,link:Gs,listItem:Zs,list:no,paragraph:to,root:ro,strong:io,table:lo,tableCell:so,tableRow:ao,text:uo,thematicBreak:co,toml:fn,yaml:fn,definition:fn,footnoteDefinition:fn};function fn(){}const Mr=-1,_n=0,an=1,bn=2,ht=3,ft=4,dt=5,mt=6,Fr=7,Br=8,$t=typeof self=="object"?self:globalThis,ho=(e,n)=>{const t=(i,l)=>(e.set(l,i),i),r=i=>{if(e.has(i))return e.get(i);const[l,a]=n[i];switch(l){case _n:case Mr:return t(a,i);case an:{const s=t([],i);for(const o of a)s.push(r(o));return s}case bn:{const s=t({},i);for(const[o,p]of a)s[r(o)]=r(p);return s}case ht:return t(new Date(a),i);case ft:{const{source:s,flags:o}=a;return t(new RegExp(s,o),i)}case dt:{const s=t(new Map,i);for(const[o,p]of a)s.set(r(o),r(p));return s}case mt:{const s=t(new Set,i);for(const o of a)s.add(r(o));return s}case Fr:{const{name:s,message:o}=a;return t(new $t[s](o),i)}
vendor: 2,961 bytes, line 13
13case Br:return t(BigInt(a),i);case"BigInt":return t(Object(BigInt(a)),i);case"ArrayBuffer":return t(new Uint8Array(a).buffer,a);case"DataView":{const{buffer:s}=new Uint8Array(a);return t(new DataView(s),a)}}return t(new $t[l](a),i)};return r},Xt=e=>ho(new Map,e)(0),$e="",{toString:fo}={},{keys:mo}=Object,nn=e=>{const n=typeof e;if(n!=="object"||!e)return[_n,n];const t=fo.call(e).slice(8,-1);switch(t){case"Array":return[an,$e];case"Object":return[bn,$e];case"Date":return[ht,$e];case"RegExp":return[ft,$e];case"Map":return[dt,$e];case"Set":return[mt,$e];case"DataView":return[an,t]}return t.includes("Array")?[an,t]:t.includes("Error")?[Fr,t]:[bn,t]},dn=([e,n])=>e===_n&&(n==="function"||n==="symbol"),go=(e,n,t,r)=>{const i=(a,s)=>{const o=r.push(a)-1;return t.set(s,o),o},l=a=>{if(t.has(a))return t.get(a);let[s,o]=nn(a);switch(s){case _n:{let u=a;switch(o){case"bigint":s=Br,u=a.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+o);u=null;break;case"undefined":return i([Mr],a)}return i([s,u],a)}case an:{if(o){let g=a;return o==="DataView"?g=new Uint8Array(a.buffer):o==="ArrayBuffer"&&(g=new Uint8Array(a)),i([o,[...g]],a)}const u=[],f=i([s,u],a);for(const g of a)u.push(l(g));return f}case bn:{if(o)switch(o){case"BigInt":return i([o,a.toString()],a);case"Boolean":case"Number":case"String":return i([o,a.valueOf()],a)}if(n&&"toJSON"in a)return l(a.toJSON());const u=[],f=i([s,u],a);for(const g of mo(a))(e||!dn(nn(a[g])))&&u.push([l(g),l(a[g])]);return f}case ht:return i([s,a.toISOString()],a);case ft:{const{source:u,flags:f}=a;return i([s,{source:u,flags:f}],a)}case dt:{const u=[],f=i([s,u],a);for(const[g,h]of a)(e||!(dn(nn(g))||dn(nn(h))))&&u.push([l(g),l(h)]);return f}case mt:{const u=[],f=i([s,u],a);for(const g of a)(e||!dn(nn(g)))&&u.push(l(g));return f}}const{message:p}=a;return i([s,{name:o,message:p}],a)};return l},Yt=(e,{json:n,lossy:t}={})=>{const r=[];return go(!(n||t),!!n,new Map,r)(e),r},kn=typeof structuredClone=="function"?(e,n)=>n&&("json"in n||"lossy"in n)?Xt(Yt(e,n)):structuredClone(e):(e,n)=>Xt(Yt(e,n));function xo(e,n){const t=[{type:"text",value:"↩"}];return n>1&&t.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(n)}]}),t}function yo(e,n){return"Back to reference "+(e+1)+(n>1?"-"+n:"")}function bo(e){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",t=e.options.footnoteBackContent||xo,r=e.options.footnoteBackLabel||yo,i=e.options.footnoteLabel||"Footnotes",l=e.options.footnoteLabelTagName||"h2",a=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let o=-1;for(;++o<e.footnoteOrder.length;){const p=e.footnoteById.get(e.footnoteOrder[o]);if(!p)continue;const u=e.all(p),f=String(p.identifier).toUpperCase(),g=We(f.toLowerCase());let h=0;const b=[],w=e.footnoteCounts.get(f);for(;w!==void 0&&++h<=w;){b.length>0&&b.push({type:"text",value:" "});let D=typeof t=="string"?t:t(o,h);
vendor: 20,244 bytes, lines 13-19
13typeof D=="string"&&(D={type:"text",value:D}),b.push({type:"element",tagName:"a",properties:{href:"#"+n+"fnref-"+g+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(o,h),className:["data-footnote-backref"]},children:Array.isArray(D)?D:[D]})}const A=u[u.length-1];if(A&&A.type==="element"&&A.tagName==="p"){const D=A.children[A.children.length-1];D&&D.type==="text"?D.value+=" ":A.children.push({type:"text",value:" "}),A.children.push(...b)}else u.push(...b);const v={type:"element",tagName:"li",properties:{id:n+"fn-"+g},children:e.wrap(u,!0)};e.patch(p,v),s.push(v)}if(s.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:l,properties:{...kn(a),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
14`},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:`
15`}]}}const Ur=function(e){if(e==null)return _o;if(typeof e=="function")return vn(e);if(typeof e=="object")return Array.isArray(e)?ko(e):wo(e);if(typeof e=="string")return So(e);throw new Error("Expected function, string, or object as test")};function ko(e){const n=[];let t=-1;for(;++t<e.length;)n[t]=Ur(e[t]);return vn(r);function r(...i){let l=-1;for(;++l<n.length;)if(n[l].apply(this,i))return!0;return!1}}function wo(e){const n=e;return vn(t);function t(r){const i=r;let l;for(l in e)if(i[l]!==n[l])return!1;return!0}}function So(e){return vn(n);function n(t){return t&&t.type===e}}function vn(e){return n;function n(t,r,i){return!!(vo(t)&&e.call(this,t,typeof r=="number"?r:void 0,i||void 0))}}function _o(){return!0}function vo(e){return e!==null&&typeof e=="object"&&"type"in e}const Vr=[],No=!0,Kt=!1,jo="skip";function Eo(e,n,t,r){let i;typeof n=="function"&&typeof t!="function"?(r=t,t=n):i=n;const l=Ur(i),a=r?-1:1;s(e,void 0,[])();function s(o,p,u){const f=o&&typeof o=="object"?o:{};if(typeof f.type=="string"){const h=typeof f.tagName=="string"?f.tagName:typeof f.name=="string"?f.name:void 0;Object.defineProperty(g,"name",{value:"node ("+(o.type+(h?"<"+h+">":""))+")"})}return g;function g(){let h=Vr,b,w,A;if((!n||l(o,p,u[u.length-1]||void 0))&&(h=Co(t(o,u)),h[0]===Kt))return h;if("children"in o&&o.children){const v=o;if(v.children&&h[0]!==jo)for(w=(r?v.children.length:-1)+a,A=u.concat(v);w>-1&&w<v.children.length;){const D=v.children[w];if(b=s(D,w,A)(),b[0]===Kt)return b;w=typeof b[1]=="number"?b[1]:w+a}}return h}}}function Co(e){return Array.isArray(e)?e:typeof e=="number"?[No,e]:e==null?Vr:[e]}function Hr(e,n,t,r){let i,l,a;typeof n=="function"&&typeof t!="function"?(l=void 0,a=n,i=t):(l=n,a=t,i=r),Eo(e,l,s,i);function s(o,p){const u=p[p.length-1],f=u?u.children.indexOf(o):void 0;return a(o,f,u)}}const Zn={}.hasOwnProperty,Io={};function Ao(e,n){const t=n||Io,r=new Map,i=new Map,l=new Map,a={...po,...t.handlers},s={all:p,applyData:Po,definitionById:r,footnoteById:i,footnoteCounts:l,footnoteOrder:[],handlers:a,one:o,options:t,patch:To,wrap:Lo};return Hr(e,function(u){if(u.type==="definition"||u.type==="footnoteDefinition"){const f=u.type==="definition"?r:i,g=String(u.identifier).toUpperCase();f.has(g)||f.set(g,u)}}),s;function o(u,f){const g=u.type,h=s.handlers[g];if(Zn.call(s.handlers,g)&&h)return h(s,u,f);if(s.options.passThrough&&s.options.passThrough.includes(g)){if("children"in u){const{children:w,...A}=u,v=kn(A);return v.children=s.all(u),v}return kn(u)}return(s.options.unknownHandler||zo)(s,u,f)}function p(u){const f=[];if("children"in u){const g=u.children;let h=-1;for(;++h<g.length;){const b=s.one(g[h],u);if(b){if(h&&g[h-1].type==="break"&&(!Array.isArray(b)&&b.type==="text"&&(b.value=Wt(b.value)),!Array.isArray(b)&&b.type==="element")){const w=b.children[0];w&&w.type==="text"&&(w.value=Wt(w.value))}Array.isArray(b)?f.push(...b):f.push(b)}}}return f}}function To(e,n){e.position&&(n.position=fl(e))}function Po(e,n){let t=n;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,l=e.data.hProperties;if(typeof r=="string")if(t.type==="element")t.tagName=r;else{const a="children"in t?t.children:[t];t={type:"element",tagName:r,properties:{},children:a}}t.type==="element"&&l&&Object.assign(t.properties,kn(l)),"children"in t&&t.children&&i!==null&&i!==void 0&&(t.children=i)}return t}function zo(e,n){const t=n.data||{},r="value"in n&&!(Zn.call(t,"hProperties")||Zn.call(t,"hChildren"))?{type:"text",value:n.value}:{type:"element",tagName:"div",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function Lo(e,n){const t=[];let r=-1;for(n&&t.push({type:"text",value:`
16`});++r<e.length;)r&&t.push({type:"text",value:`
17`}),t.push(e[r]);return n&&e.length>0&&t.push({type:"text",value:`
18`}),t}function Wt(e){let n=0,t=e.charCodeAt(n);for(;t===9||t===32;)n++,t=e.charCodeAt(n);return e.slice(n)}function Jt(e,n){const t=Ao(e,n),r=t.one(e,void 0),i=bo(t),l=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&l.children.push({type:"text",value:`
19`},i),l}function Oo(e,n){return e&&"run"in e?async function(t,r){const i=Jt(t,{file:r,...n});await e.run(i,r)}:function(t,r){return Jt(t,{file:r,...e||n})}}function Qt(e){if(e)throw e}var xn=Object.prototype.hasOwnProperty,qr=Object.prototype.toString,Gt=Object.defineProperty,Zt=Object.getOwnPropertyDescriptor,er=function(n){return typeof Array.isArray=="function"?Array.isArray(n):qr.call(n)==="[object Array]"},nr=function(n){if(!n||qr.call(n)!=="[object Object]")return!1;var t=xn.call(n,"constructor"),r=n.constructor&&n.constructor.prototype&&xn.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!t&&!r)return!1;var i;for(i in n);return typeof i>"u"||xn.call(n,i)},tr=function(n,t){Gt&&t.name==="__proto__"?Gt(n,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):n[t.name]=t.newValue},rr=function(n,t){if(t==="__proto__")if(xn.call(n,t)){if(Zt)return Zt(n,t).value}else return;return n[t]},Do=function e(){var n,t,r,i,l,a,s=arguments[0],o=1,p=arguments.length,u=!1;for(typeof s=="boolean"&&(u=s,s=arguments[1]||{},o=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});o<p;++o)if(n=arguments[o],n!=null)for(t in n)r=rr(s,t),i=rr(n,t),s!==i&&(u&&i&&(nr(i)||(l=er(i)))?(l?(l=!1,a=r&&er(r)?r:[]):a=r&&nr(r)?r:{},tr(s,{name:t,newValue:e(u,a,i)})):typeof i<"u"&&tr(s,{name:t,newValue:i}));return s};const Mn=ur(Do);function et(e){if(typeof e!="object"||e===null)return!1;const n=Object.getPrototypeOf(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Ro(){const e=[],n={run:t,use:r};return n;function t(...i){let l=-1;const a=i.pop();if(typeof a!="function")throw new TypeError("Expected function as last argument, not "+a);s(null,...i);function s(o,...p){const u=e[++l];let f=-1;if(o){a(o);return}for(;++f<i.length;)(p[f]===null||p[f]===void 0)&&(p[f]=i[f]);i=p,u?Mo(u,s)(...p):a(null,...p)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),n}}function Mo(e,n){let t;return r;function r(...a){const s=e.length>a.length;let o;s&&a.push(i);try{o=e.apply(this,a)}catch(p){const u=p;if(s&&t)throw u;return i(u)}s||(o&&o.then&&typeof o.then=="function"?o.then(l,i):o instanceof Error?i(o):l(o))}function i(a,...s){t||(t=!0,n(a,...s))}function l(a){i(null,a)}}const je={basename:Fo,dirname:Bo,extname:Uo,join:Vo,sep:"/"};function Fo(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');un(e);let t=0,r=-1,i=e.length,l;if(n===void 0||n.length===0||n.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(l){t=i+1;break}}else r<0&&(l=!0,r=i+1);return r<0?"":e.slice(t,r)}if(n===e)return"";let a=-1,s=n.length-1;for(;i--;)if(e.codePointAt(i)===47){if(l){t=i+1;break}}else a<0&&(l=!0,a=i+1),s>-1&&(e.codePointAt(i)===n.codePointAt(s--)?s<0&&(r=i):(s=-1,r=a));return t===r?r=a:r<0&&(r=e.length),e.slice(t,r)}function Bo(e){if(un(e),e.length===0)return".";let n=-1,t=e.length,r;for(;--t;)if(e.codePointAt(t)===47){if(r){n=t;break}}else r||(r=!0);return n<0?e.codePointAt(0)===47?"/":".":n===1&&e.codePointAt(0)===47?"//":e.slice(0,n)}function Uo(e){un(e);let n=e.length,t=-1,r=0,i=-1,l=0,a;for(;n--;){const s=e.codePointAt(n);if(s===47){if(a){r=n+1;break}continue}t<0&&(a=!0,t=n+1),s===46?i<0?i=n:l!==1&&(l=1):i>-1&&(l=-1)}return i<0||t<0||l===0||l===1&&i===t-1&&i===r+1?"":e.slice(i,t)}function Vo(...e){let n=-1,t;for(;++n<e.length;)un(e[n]),e[n]&&(t=t===void 0?e[n]:t+"/"+e[n]);return t===void 0?".":Ho(t)}function Ho(e){un(e);const n=e.codePointAt(0)===47;let t=qo(e,!n);return t.length===0&&!n&&(t="."),t.length>0&&e.codePointAt(e.length-1)===47&&(t+="/"),n?"/"+t:t}function qo(e,n){let t="",r=0,i=-1,l=0,a=-1,s,o;for(;++a<=e.length;){if(a<e.length)s=e.codePointAt(a);else{if(s===47)break;s=47}if(s===47){if(!(i===a-1||l===1))if(i!==a-1&&l===2){if(t.length<2||r!==2||t.codePointAt(t.length-1)!==46||t.codePointAt(t.length-2)!==46){if(t.length>2){if(o=t.lastIndexOf("/"),o!==t.length-1){o<0?(t="",r=0):(t=t.slice(0,o),r=t.length-1-t.lastIndexOf("/")),i=a,l=0;continue}}else if(t.length>0){t="",r=0,i=a,l=0;continue}}n&&(t=t.length>0?t+"/..":"..",r=2)}else t.length>0?t+="/"+e.slice(i+1,a):t=e.slice(i+1,a),r=a-i-1;i=a,l=0}else s===46&&l>-1?l++:l=-1}return t}function un(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const $o={cwd:Xo};function Xo(){return"/"}function nt(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Yo(e){if(typeof e=="string")e=new URL(e);else if(!nt(e)){const n=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw n.code="ERR_INVALID_ARG_TYPE",n}if(e.protocol!=="file:"){const n=new TypeError("The URL must be of scheme file");throw n.code="ERR_INVALID_URL_SCHEME",n}return Ko(e)}function Ko(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const n=e.pathname;let t=-1;for(;++t<n.length;)if(n.codePointAt(t)===37&&n.codePointAt(t+1)===50){const r=n.codePointAt(t+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(n)}const Fn=["history","path","basename","stem","extname","dirname"];class $r{constructor(n){let t;n?nt(n)?t={path:n}:typeof n=="string"||Wo(n)?t={value:n}:t=n:t={},this.cwd="cwd"in t?"":$o.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Fn.length;){const l=Fn[r];l in t&&t[l]!==void 0&&t[l]!==null&&(this[l]=l==="history"?[...t[l]]:t[l])}let i;for(i in t)Fn.includes(i)||(this[i]=t[i])}get basename(){return typeof this.path=="string"?je.basename(this.path):void 0}set basename(n){Un(n,"basename"),Bn(n,"basename"),this.path=je.join(this.dirname||"",n)}get dirname(){return typeof this.path=="string"?je.dirname(this.path):void 0}set dirname(n){ir(this.basename,"dirname"),this.path=je.join(n||"",this.basename)}get extname(){return typeof this.path=="string"?je.extname(this.path):void 0}set extname(n){if(Bn(n,"extname"),ir(this.dirname,"extname"),n){if(n.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(n.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=je.join(this.dirname,this.stem+(n||""))}get path(){return this.history[this.history.length-1]}set path(n){nt(n)&&(n=Yo(n)),Un(n,"path"),this.path!==n&&this.history.push(n)}get stem(){return typeof this.path=="string"?je.basename(this.path,this.extname):void 0}set stem(n){Un(n,"stem"),Bn(n,"stem"),this.path=je.join(this.dirname||"",n+(this.extname||""))}fail(n,t,r){const i=this.message(n,t,r);throw i.fatal=!0,i}info(n,t,r){const i=this.message(n,t,r);return i.fatal=void 0,i}message(n,t,r){const i=new te(n,t,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(n){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(n||void 0).decode(this.value)}}function Bn(e,n){if(e&&e.includes(je.sep))throw new Error("`"+n+"` cannot be a path: did not expect `"+je.sep+"`")}function Un(e,n){if(!e)throw new Error("`"+n+"` cannot be empty")}function ir(e,n){if(!e)throw new Error("Setting `"+n+"` requires `path` to be set too")}function Wo(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Jo=function(e){const r=this.constructor.prototype,i=r[e],l=function(){return i.apply(l,arguments)};return Object.setPrototypeOf(l,r),l},Qo={}.hasOwnProperty;class gt extends Jo{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=Ro()}copy(){const n=new gt;let t=-1;for(;++t<this.attachers.length;){const r=this.attachers[t];n.use(...r)}return n.data(Mn(!0,{},this.namespace)),n}data(n,t){return typeof n=="string"?arguments.length===2?(qn("data",this.frozen),this.namespace[n]=t,this):Qo.call(this.namespace,n)&&this.namespace[n]||void 0:n?(qn("data",this.frozen),this.namespace=n,this):this.namespace}freeze(){if(this.frozen)return this;const n=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=t.call(n,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(n){this.freeze();const t=mn(n),r=this.parser||this.Parser;return Vn("parse",r),r(String(t),t)}process(n,t){const r=this;return this.freeze(),Vn("process",this.parser||this.Parser),Hn("process",this.compiler||this.Compiler),t?i(void 0,t):new Promise(i);function i(l,a){const s=mn(n),o=r.parse(s);r.run(o,s,function(u,f,g){if(u||!f||!g)return p(u);const h=f,b=r.stringify(h,g);eu(b)?g.value=b:g.result=b,p(u,g)});function p(u,f){u||!f?a(u):l?l(f):t(void 0,f)}}}processSync(n){let t=!1,r;return this.freeze(),Vn("processSync",this.parser||this.Parser),Hn("processSync",this.compiler||this.Compiler),this.process(n,i),ar("processSync","process",t),r;function i(l,a){t=!0,Qt(l),r=a}}run(n,t,r){lr(n),this.freeze();const i=this.transformers;return!r&&typeof t=="function"&&(r=t,t=void 0),r?l(void 0,r):new Promise(l);function l(a,s){const o=mn(t);i.run(n,o,p);function p(u,f,g){const h=f||n;u?s(u):a?a(h):r(void 0,h,g)}}}runSync(n,t){let r=!1,i;return this.run(n,t,l),ar("runSync","run",r),i;function l(a,s){Qt(a),i=s,r=!0}}stringify(n,t){this.freeze();const r=mn(t),i=this.compiler||this.Compiler;return Hn("stringify",i),lr(n),i(n,r)}use(n,...t){const r=this.attachers,i=this.namespace;if(qn("use",this.frozen),n!=null)if(typeof n=="function")o(n,t);else if(typeof n=="object")Array.isArray(n)?s(n):a(n);else throw new TypeError("Expected usable value, not `"+n+"`");return this;function l(p){if(typeof p=="function")o(p,[]);else if(typeof p=="object")if(Array.isArray(p)){const[u,...f]=p;o(u,f)}else a(p);else throw new TypeError("Expected usable value, not `"+p+"`")}function a(p){if(!("plugins"in p)&&!("settings"in p))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");s(p.plugins),p.settings&&(i.settings=Mn(!0,i.settings,p.settings))}function s(p){let u=-1;if(p!=null)if(Array.isArray(p))for(;++u<p.length;){const f=p[u];l(f)}else throw new TypeError("Expected a list of plugins, not `"+p+"`")}function o(p,u){let f=-1,g=-1;for(;++f<r.length;)if(r[f][0]===p){g=f;break}if(g===-1)r.push([p,...u]);else if(u.length>0){let[h,...b]=u;const w=r[g][1];et(w)&&et(h)&&(h=Mn(!0,w,h)),r[g]=[p,h,...b]}}}}const Go=new gt().freeze();function Vn(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Hn(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function qn(e,n){if(n)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function lr(e){if(!et(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function ar(e,n,t){if(!t)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function mn(e){return Zo(e)?e:new $r(e)}function Zo(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function eu(e){return typeof e=="string"||nu(e)}function nu(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const tu="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",sr=[],or={allowDangerousHtml:!0},ru=/^(https?|ircs?|mailto|xmpp)$/i,iu=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function lu(e){const n=au(e),t=su(e);return ou(n.runSync(n.parse(t),t),e)}function au(e){const n=e.rehypePlugins||sr,t=e.remarkPlugins||sr,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...or}:or;return Go().use(Fs).use(t).use(Oo,r).use(n)}function su(e){const n=e.children||"",t=new $r;return typeof n=="string"&&(t.value=n),t}function ou(e,n){const t=n.allowedElements,r=n.allowElement,i=n.components,l=n.disallowedElements,a=n.skipHtml,s=n.unwrapDisallowed,o=n.urlTransform||uu;for(const u of iu)Object.hasOwn(n,u.from)&&(""+u.from+(u.to?"use `"+u.to+"` instead":"remove it")+tu+u.id,void 0);return Hr(e,p),yl(e,{Fragment:c.Fragment,components:i,ignoreInvalidStyle:!0,jsx:c.jsx,jsxs:c.jsxs,passKeys:!0,passNode:!0});function p(u,f,g){if(u.type==="raw"&&g&&typeof f=="number")return a?g.children.splice(f,1):g.children[f]={type:"text",value:u.value},f;if(u.type==="element"){let h;for(h in On)if(Object.hasOwn(On,h)&&Object.hasOwn(u.properties,h)){const b=u.properties[h],w=On[h];(w===null||w.includes(u.tagName))&&(u.properties[h]=o(String(b||""),h,u))}}if(u.type==="element"){let h=t?!t.includes(u.tagName):l?l.includes(u.tagName):!1;if(!h&&r&&typeof f=="number"&&(h=!r(u,f,g)),h&&g&&typeof f=="number")return s&&u.children?g.children.splice(f,1,...u.children):g.children.splice(f,1),f}}}function uu(e){const n=e.indexOf(":"),t=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return n===-1||i!==-1&&n>i||t!==-1&&n>t||r!==-1&&n>r||ru.test(e.slice(0,n))?e:""}const tn=[{key:"funnel",label:"🔵 Funnel & Visiteurs"},{key:"activation",label:"🔴 Activation"},{key:"conversion",label:"🟠 Conversion & Revenus"},{key:"retention",label:"🟢 Rétention"},{key:"usage",label:"📊 Usage produit"},{key:"nps",label:"⭐ NPS & Feedback"},{key:"cohort",label:"📈 Cohortes"},{key:"actions",label:"📋 Actions précédentes"}];function Du(){var Oe,be,Ie;const{isAdmin:e,loading:n}=Qr(),[t,r]=ee.useState([]),[i,l]=ee.useState(""),[a,s]=ee.useState(!1),[o,p]=ee.useState("30d"),[u,f]=ee.useState([]),[g,h]=ee.useState(!1),[b,w]=ee.useState(""),[A,v]=ee.useState("activation"),[D,E]=ee.useState("medium"),H=ee.useRef(null),[S,k]=ee.useState(null),[M,W]=ee.useState(!1),[T,U]=ee.useState(Object.fromEntries(tn.map(y=>[y.key,!0]))),[I,C]=ee.useState(!1);ee.useEffect(()=>{var y;
19(y=H.current)==null||y.scrollIntoView({behavior:"smooth"})},[t]),ee.useEffect(()=>{e&&(V(),Q())},[e]),ee.useEffect(()=>{e&&Q()},[o]);const V=async()=>{const{data:y}=await He.from("ai_advisor_actions").select("*").order("created_at",{ascending:!1});y&&f(y)},J=async()=>{var j,K;if(!b.trim())return;const{data:y}=await He.auth.getSession();await He.from("ai_advisor_actions").insert({action_text:b.trim(),category:A,priority:D,created_by:(K=(j=y==null?void 0:y.session)==null?void 0:j.user)==null?void 0:K.id}),w(""),V()},R=async(y,j)=>{await He.from("ai_advisor_actions").update({status:j,completed_at:j==="done"?new Date().toISOString():null}).eq("id",y),V()},Q=async()=>{var y;W(!0);try{const j="https://ibdeyivyuohaovxhkylz.supabase.co",K="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImliZGV5aXZ5dW9oYW92eGhreWx6Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3NjEwNzQ0MTIsImV4cCI6MjA3NjY1MDQxMn0.ivy5aQE1ZdfVpbwhmkC9qE1DNI-a9q5a1dcrlKo1OfY",{data:Y}=await He.auth.getSession(),ne=(y=Y==null?void 0:Y.session)==null?void 0:y.access_token;if(!ne)return;const fe=await fetch(`${j}/functions/v1/admin-ai-advisor`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${ne}`,apikey:K},body:JSON.stringify({timeRange:o,statsOnly:!0})});if(fe.ok){const ve=await fe.json();k(ve)}}catch(j){console.error("Failed to load stats:",j)}finally{W(!1)}},G=()=>{var fe;if(!S)return null;const y=(fe=S.analyse_cohorte_activation)==null?void 0:fe.par_periode,j=y==null?void 0:y[o],K=y==null?void 0:y.all,Y={periode_selectionnee:o};T.funnel&&(Y.funnel_tracking_landing_page=S.funnel_tracking_landing_page),T.activation&&j&&(Y.activation={nouveaux_inscrits:j.inscrits,actives_generation:j.actives_generation,taux_activation_pourcent:j.taux_activation_pourcent,delai_median_premiere_generation_jours:j.delai_median_inscription_premiere_generation_jours,delai_moyen_premiere_generation_jours:j.delai_moyen_inscription_premiere_generation_jours}),T.conversion&&(Y.conversion={premiers_acheteurs:j==null?void 0:j.premiers_acheteurs,taux_conversion_pourcent:j==null?void 0:j.taux_conversion_pourcent,taux_conversion_actif_vers_acheteur_pourcent:j==null?void 0:j.taux_conversion_actif_vers_acheteur_pourcent,revenu_euros:j==null?void 0:j.revenu_euros,achats_de_credits:S.achats_de_credits,clients_payants_uniques:S.clients_payants_uniques,panier_moyen_euros:S.panier_moyen_euros,repartition_achats_par_pack:S.repartition_achats_par_pack,delai_median_inscription_premier_achat_jours:j==null?void 0:j.delai_median_inscription_premier_achat_jours,delai_moyen_inscription_premier_achat_jours:S.delai_moyen_inscription_premier_achat_jours}),T.retention&&(Y.retention={clients_multi_achats:j==null?void 0:j.clients_multi_achats,taux_retention_pourcent:j==null?void 0:j.taux_retention_pourcent,achats_moyens_par_client:S.achats_moyens_par_client}),T.usage&&(Y.usage_produit={generations:S.generations,modifications:S.modifications,scenarios:S.scenarios,backgroundRemovals:S.backgroundRemovals,sceneImagesAnalyzed:S.sceneImagesAnalyzed,modificationsWithImage:S.modificationsWithImage,subjectHuman:S.subjectHuman,subjectObject:S.subjectObject,upscale2K:S.upscale2K,upscale4K:S.upscale4K,ratio_generation_par_modification:S.ratio_generation_par_modification,pourcentage_generations_avec_scene:S.pourcentage_generations_avec_scene}),T.nps&&(Y.nps={npsScore:S.npsScore,npsResponses:S.npsResponses,recentNpsComments:S.recentNpsComments}),T.actions&&(Y.actions_recommandees_precedentes=S.actions_recommandees_precedentes);const ne={note:"Ces données all-time servent UNIQUEMENT de contexte historique. Ne les utilise PAS pour les recommandations ou KPI de la période.",totalUsers_inscrits_total:S.totalUsers_inscrits_total,inscrits_jamais_genere_alltime:S.inscrits_jamais_genere_alltime};return T.cohort&&y&&(ne.evolution_par_cohorte=y),K&&(ne.bilan_alltime={taux_activation_alltime:K.taux_activation_pourcent,taux_conversion_alltime:K.taux_conversion_pourcent,taux_retention_alltime:K.taux_retention_pourcent,revenu_total_alltime:K.revenu_euros}),{DONNEES_PERIODE_SELECTIONNEE:Y,CONTEXTE_HISTORIQUE_ALLTIME:ne}},re=async(y,j)=>{var pn,hn;const K="https://ibdeyivyuohaovxhkylz.supabase.co",Y="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImliZG
19V5aXZ5dW9oYW92eGhreWx6Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3NjEwNzQ0MTIsImV4cCI6MjA3NjY1MDQxMn0.ivy5aQE1ZdfVpbwhmkC9qE1DNI-a9q5a1dcrlKo1OfY",{data:ne}=await He.auth.getSession(),fe=(pn=ne==null?void 0:ne.session)==null?void 0:pn.access_token;if(!fe)throw new Error("Non authentifié");const ve=await fetch(`${K}/functions/v1/admin-ai-advisor`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${fe}`,apikey:Y},body:JSON.stringify({messages:y,timeRange:o,includeStats:!j})});if(!ve.ok){const Je=await ve.json().catch(()=>({error:"Erreur inconnue"}));throw new Error(Je.error||`Erreur ${ve.status}`)}if(!ve.body)throw new Error("Pas de stream");const cn=ve.body.getReader(),Nn=new TextDecoder;let De="",Ue="";for(;;){const{done:Je,value:jn}=await cn.read();if(Je)break;De+=Nn.decode(jn,{stream:!0});let Qe;for(;(Qe=De.indexOf(`
20`))!==-1;){let x=De.slice(0,Qe);if(De=De.slice(Qe+1),x.endsWith("\r")&&(x=x.slice(0,-1)),!x.startsWith("data: ")||x.trim()==="")continue;const N=x.slice(6).trim();if(N==="[DONE]")break;try{const P=JSON.parse(N);P.type==="content_block_delta"&&((hn=P.delta)!=null&&hn.text)&&(Ue+=P.delta.text,r(L=>{const F=L[L.length-1];return(F==null?void 0:F.role)==="assistant"?L.map((se,Ae)=>Ae===L.length-1?{...se,content:Ue}:se):[...L,{role:"assistant",content:Ue}]}))}catch{}}}},ye=async()=>{s(!0),C(!0);const y=G(),j=JSON.stringify(y,null,2),K={role:"user",content:`Voici les données MyShotPro. La période sélectionnée est "${o}".
21
22IMPORTANT : Base tes recommandations et KPI critiques UNIQUEMENT sur DONNEES_PERIODE_SELECTIONNEE. Utilise CONTEXTE_HISTORIQUE_ALLTIME uniquement pour contextualiser l'évolution.
23
24\`\`\`json
25${j}
26\`\`\`
27
28Analyse ces données et donne-moi tes recommandations marketing.`};r([K]);try{await re([K],y)}catch(Y){r(ne=>[...ne,{role:"assistant",content:`❌ Erreur : ${Y.message}`}])}finally{s(!1)}},d=async()=>{if(!i.trim()||a)return;const y={role:"user",content:i.trim()},j=[...t,y];r(j),l(""),s(!0);try{if(t.length===0){const Y=G(),ne=JSON.stringify(Y,null,2),fe={role:"user",content:`Voici les données MyShotPro. La période sélectionnée est "${o}".
29
30IMPORTANT : Base tes recommandations UNIQUEMENT sur DONNEES_PERIODE_SELECTIONNEE. Utilise CONTEXTE_HISTORIQUE_ALLTIME pour l'évolution.
31
32\`\`\`json
33${ne}
34\`\`\`
35
36${i.trim()}`};C(!0),await re([fe],Y)}else await re(j)}catch(K){r(Y=>[...Y,{role:"assistant",content:`❌ Erreur : ${K.message}`}])}finally{s(!1)}};if(n)return c.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center",children:c.jsx(xt,{className:"w-8 h-8 animate-spin text-muted-foreground"})});if(!e)return null;const ie=u.filter(y=>y.status==="todo"||y.status==="in_progress"),he=u.filter(y=>y.status==="done"),m=y=>y==="high"?"destructive":y==="medium"?"default":"secondary",ae=y=>({activation:"🔴 Activation",conversion:"🟠 Conversion",retention:"🟢 Rétention",other:"⚪ Autre"})[y]||y,le=(Oe=S==null?void 0:S.analyse_cohorte_activation)==null?void 0:Oe.par_periode,q=S==null?void 0:S.funnel_tracking_landing_page;return c.jsxs("div",{className:"min-h-screen bg-background flex flex-col",children:[c.jsx(Yr,{}),c.jsxs("main",{className:"flex-1 container mx-auto px-4 py-8 mt-20 max-w-6xl",children:[c.jsxs("div",{className:"flex items-center justify-between mb-6",children:[c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx(Kr,{to:"/admin/dashboard",children:c.jsx(ke,{variant:"ghost",size:"icon",children:c.jsx(ii,{className:"w-5 h-5"})})}),c.jsxs("div",{children:[c.jsxs("h1",{className:"text-2xl font-bold flex items-center gap-2",children:[c.jsx(Tn,{className:"w-6 h-6 text-primary"}),"Conseiller IA Marketing"]}),c.jsx("p",{className:"text-sm text-muted-foreground",children:"1) Consultez les données → 2) Sélectionnez → 3) Analysez avec Claude"})]})]}),c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsxs(ke,{variant:g?"default":"outline",size:"sm",onClick:()=>h(!g),children:[c.jsx(wi,{className:"w-4 h-4 mr-1"}),"Actions (",ie.length,")"]}),c.jsxs(En,{value:o,onValueChange:p,children:[c.jsxs(Cn,{className:"w-[140px]",children:[c.jsx(li,{className:"w-4 h-4 mr-2"}),c.jsx(In,{})]}),c.jsxs(An,{children:[c.jsx(we,{value:"7d",children:"7 jours"}),c.jsx(we,{value:"30d",children:"30 jours"}),c.jsx(we,{value:"90d",children:"90 jours"}),c.jsx(we,{value:"all",children:"Tout"})]})]}),c.jsx(ke,{variant:"outline",size:"icon",onClick:Q,disabled:M,children:c.jsx(Pn,{className:`w-4 h-4 ${M?"animate-spin":""}`})})]})]}),g&&c.jsxs(oe,{className:"mb-4 p-4",children:[c.jsx("h3",{className:"font-semibold mb-3",children:"📋 Actions recommandées"}),c.jsxs("div",{className:"flex gap-2 mb-4",children:[c.jsx("input",{type:"text",value:b,onChange:y=>w(y.target.value),placeholder:"Nouvelle action...",className:"flex-1 text-sm border rounded px-3 py-1.5 bg-background",onKeyDown:y=>y.key==="Enter"&&J()}),c.jsxs(En,{value:A,onValueChange:v,children:[c.jsx(Cn,{className:"w-[130px] h-8 text-xs",children:c.jsx(In,{})}),c.jsxs(An,{children:[c.jsx(we,{value:"activation",children:"Activation"}),c.jsx(we,{value:"conversion",children:"Conversion"}),c.jsx(we,{value:"retention",children:"Rétention"}),c.jsx(we,{value:"other",children:"Autre"})]})]}),c.jsxs(En,{value:D,onValueChange:E,children:[c.jsx(Cn,{className:"w-[100px] h-8 text-xs",children:c.jsx(In,{})}),c.jsxs(An,{children:[c.jsx(we,{value:"high",children:"Haute"}),c.jsx(we,{value:"medium",children:"Moyenne"}),c.jsx(we,{value:"low",children:"Basse"})]})]}),c.jsx(ke,{size:"sm",onClick:J,disabled:!b.trim(),children:c.jsx(ai,{className:"w-4 h-4"})})]}),ie.length>0&&c.jsx("div",{className:"space-y-2 mb-3",children:ie.map(y=>c.jsxs("div",{className:"flex items-center gap-2 text-sm p-2 rounded bg-muted/50",children:[c.jsx("span",{className:"flex-1",children:y.action_text}),c.jsx(qe,{variant:"outline",className:"text-xs",children:ae(y.category)}),c.jsx(qe,{variant:m(y.priority),className:"text-xs",children:y.priority}),c.jsx(ke,{size:"icon",variant:"ghost",className:"h-6 w-6",onClick:()=>R(y.id,"done"),children:c.jsx(si,{className:"w-3 h-3 text-green-600"})}),c.jsx(ke,{size:"icon",variant:"ghost",className:"h-6 w-6",onClick:()=>R(y.id,"dismissed"),children:c.jsx(Wr,{className:"w-3 h-3 text-muted-foreground"})})]},y.id))}),he.length>0&&c.jsxs("details",{className:"text-sm",children:[c.jsxs("summary",{className:"cursor-pointer text-muted-foreground mb-2",children:["✅ Actions terminées (",he.length,")"]}),c.jsx("div",{className:"space-y-1",children:he.slice(0,10).map(y=>c.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground line-through p-1",children:[c.jsx("span",{className:"flex-1",children:y.action_text}),c.jsx(qe,{variant:"outline",className:"text-xs",children:ae(y.category)})]},y.id))})]})]}),M?c.jsx("div",{className:"flex items-center justify-center py-20",children:c.jsx(Pn,{className:"w-8 h-8 animate-spin text-muted-foreground"})}):S?c.jsxs("div",{className:"space-y-6",children:[c.jsxs(oe,{className:"p-4",children:[c.jsxs("div",{className:"flex items-center justify-between mb-3",children:[c.jsx("h3",{className:"font-semibold text-sm",children:"Sections à inclure dans l'analyse IA"}),c.jsxs("div",{className:"flex gap-2",children:[c.jsx(ke,{size:"sm",variant:"ghost",onClick:()=>U(Object.fromEntries(tn.map(y=>[y.key,!0]))),children:"Tout"}),c.jsx(ke,{size:"sm",variant:"ghost",onClick:()=>U(Object.fromEntries(tn.map(y=>[y.key,!1]))),children:"Aucun"})]})]}),c.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3",children:tn.map(y=>c.jsxs("label",{className:"flex items-center gap-2 text-sm cursor-pointer",children:[c.jsx(ri,{checked:T[y.key],onCheckedChange:j=>U(K=>({...K,[y.key]:j}))}),c.jsx("span",{className:T[y.key]?"":"text-muted-foreground",children:y.label})]},y.key))})]}),T.funnel&&q&&c.jsxs(oe,{children:[c.jsx(ze,{className:"pb-3",children:c.jsxs(Le,{className:"text-base flex items-center gap-2",children:[c.jsx(oi,{className:"w-4 h-4 text-blue-600"}),"🔵 Funnel & Visiteurs"]}
36)}),c.jsx(Ne,{children:c.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 lg:grid-cols-8 gap-3",children:[{label:"Visites landing",value:q.visites_landing,color:"text-blue-600"},{label:"Visiteurs uniques",value:q.visiteurs_uniques,color:"text-sky-600"},{label:"Clics CTA",value:q.clics_cta,color:"text-indigo-600"},{label:"Vues Auth",value:q.vues_page_auth,color:"text-violet-600"},{label:"Inscriptions",value:q.inscriptions_via_landing,color:"text-purple-600"},{label:"1ère génération",value:q.premiere_generation,color:"text-fuchsia-600"},{label:"Achat initié",value:q.achat_initie,color:"text-pink-600"},{label:"Paiement OK",value:q.paiement_complete,color:"text-green-600"}].map(y=>c.jsxs("div",{className:"text-center p-3 rounded-lg bg-muted/50",children:[c.jsx("div",{className:`text-xl font-bold ${y.color}`,children:y.value}),c.jsx("div",{className:"text-xs text-muted-foreground mt-1",children:y.label})]},y.label))})})]}),T.activation&&c.jsxs(oe,{children:[c.jsx(ze,{className:"pb-3",children:c.jsxs(Le,{className:"text-base flex items-center gap-2",children:[c.jsx(Jr,{className:"w-4 h-4 text-red-500"}),"🔴 Activation"]})}),c.jsx(Ne,{children:c.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3",children:[c.jsxs("div",{className:"text-center p-3 rounded-lg bg-muted/50",children:[c.jsx("div",{className:"text-xl font-bold",children:S.totalUsers_inscrits_total}),c.jsx("div",{className:"text-xs text-muted-foreground mt-1",children:"Inscrits total"})]}),c.jsxs("div",{className:"text-center p-3 rounded-lg bg-muted/50",children:[c.jsx("div",{className:"text-xl font-bold text-blue-600",children:S.nouveauxInscrits_sur_la_periode}),c.jsx("div",{className:"text-xs text-muted-foreground mt-1",children:"Nouveaux (période)"})]}),c.jsxs("div",{className:"text-center p-3 rounded-lg bg-muted/50",children:[c.jsx("div",{className:"text-xl font-bold text-green-600",children:S.utilisateursActifs_ayant_utilise_credits}),c.jsx("div",{className:"text-xs text-muted-foreground mt-1",children:"Actifs (période)"})]}),c.jsxs("div",{className:"text-center p-3 rounded-lg bg-muted/50",children:[c.jsx("div",{className:"text-xl font-bold text-red-500",children:S.inscrits_jamais_genere_alltime}),c.jsx("div",{className:"text-xs text-muted-foreground mt-1",children:"Jamais généré (all-time)"})]})]})})]}),T.conversion&&c.jsxs(oe,{children:[c.jsx(ze,{className:"pb-3",children:c.jsxs(Le,{className:"text-base flex items-center gap-2",children:[c.jsx(ui,{className:"w-4 h-4 text-orange-500"}),"🟠 Conversion & Revenus"]})}),c.jsxs(Ne,{children:[c.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 lg:grid-cols-5 gap-3 mb-4",children:[c.jsxs("div",{className:"text-center p-3 rounded-lg bg-muted/50",children:[c.jsx("div",{className:"text-xl font-bold text-orange-600",children:S.clients_payants_uniques}),c.jsx("div",{className:"text-xs text-muted-foreground mt-1",children:"Clients payants"})]}),c.jsxs("div",{className:"text-center p-3 rounded-lg bg-muted/50",children:[c.jsxs("div",{className:"text-xl font-bold text-green-600",children:[S.revenu_total_euros,"€"]}),c.jsx("div",{className:"text-xs text-muted-foreground mt-1",children:"Revenu total"})]}),c.jsxs("div",{className:"text-center p-3 rounded-lg bg-muted/50",children:[c.jsxs("div",{className:"text-xl font-bold text-blue-600",children:[S.panier_moyen_euros,"€"]}),c.jsx("div",{className:"text-xs text-muted-foreground mt-1",children:"Panier moyen"})]}),c.jsxs("div",{className:"text-center p-3 rounded-lg bg-muted/50",children:[c.jsx("div",{className:"text-xl font-bold text-amber-600",children:S.delai_moyen_inscription_premier_achat_jours!==null?`${S.delai_moyen_inscription_premier_achat_jours}j`:"-"}),c.jsx("div",{className:"text-xs text-muted-foreground mt-1",children:"Délai moyen achat"})]}),c.jsxs("div",{className:"text-center p-3 rounded-lg bg-muted/50",children:[c.jsx("div",{className:"text-xl font-bold",children:S.achats_de_credits}),c.jsx("div",{className:"text-xs text-muted-foreground mt-1",children:"Transactions"})]})]}),S.repartition_achats_par_pack&&Object.keys(S.repartition_achats_par_pack).length>0&&c.jsxs("div",{children:[c.jsx("h4",{className:"text-sm font-medium mb-2",children:"Répartition par pack"}),c.jsx("div",{className:"grid grid-cols-3 md:grid-cols-6 gap-2",children:Object.entries(S.repartition_achats_par_pack).sort(([y],[j])=>{const K=parseInt(y),Y=parseInt(j);return K-Y}).map(([y,j])=>c.jsxs("div",{className:"text-center p-2 rounded bg-muted/30 text-sm",children:[c.jsx("div",{className:"font-bold",children:j}),c.jsx("div",{className:"text-xs text-muted-foreground",children:y})]},y))})]})]})]}),T.retention&&c.jsxs(oe,{children:[c.jsx(ze,{className:"pb-3",children:c.jsxs(Le,{className:"text-base flex items-center gap-2",children:[c.jsx(ci,{className:"w-4 h-4 text-green-500"}),"🟢 Rétention"]})}),c.jsx(Ne,{children:c.jsxs("div",{className:"grid grid-cols-3 gap-3",children:[c.jsxs("div",{className:"text-center p-3 rounded-lg bg-muted/50",children:[c.jsx("div",{className:"text-xl font-bold text-green-600",children:S.clients_multi_achats}),c.jsx("div",{className:"text-xs text-muted-foreground mt-1",children:"Multi-acheteurs"})]}),c.jsxs("div",{className:"text-center p-3 rounded-lg bg-muted/50",children:[c.jsxs("div",{className:"text-xl font-bold text-green-600",children:[S.taux_retention_pourcent,"%"]}),c.jsx("div",{className:"text-xs text-muted-foreground mt-1",children:"Taux rétention"})]}),c.jsxs("div",{className:"text-center p-3 rounded-lg bg-muted/50",children:[c.jsx("div",{className:"text-xl font-bold",children:S.achats_moye
36ns_par_client}),c.jsx("div",{className:"text-xs text-muted-foreground mt-1",children:"Achats moy./client"})]})]})})]}),T.usage&&c.jsxs(oe,{children:[c.jsx(ze,{className:"pb-3",children:c.jsxs(Le,{className:"text-base flex items-center gap-2",children:[c.jsx(pi,{className:"w-4 h-4"}),"📊 Usage produit"]})}),c.jsx(Ne,{children:c.jsx("div",{className:"grid grid-cols-3 md:grid-cols-5 lg:grid-cols-6 gap-3",children:[{label:"Générations",value:S.generations,color:"text-primary"},{label:"Modifications",value:S.modifications,color:"text-green-600"},{label:"Scénarios",value:S.scenarios,color:"text-amber-500"},{label:"Suppr. fond",value:S.backgroundRemovals,color:"text-fuchsia-500"},{label:"Images scène",value:S.sceneImagesAnalyzed,color:"text-orange-500"},{label:"Modif. + réf.",value:S.modificationsWithImage,color:"text-rose-500"},{label:"Humains",value:S.subjectHuman,color:"text-sky-500"},{label:"Objets",value:S.subjectObject,color:"text-teal-500"},{label:"Upscale 2K",value:S.upscale2K,color:"text-indigo-500"},{label:"Upscale 4K",value:S.upscale4K,color:"text-purple-500"},{label:"Ratio G/M",value:S.ratio_generation_par_modification,color:"text-cyan-500"},{label:"% avec scène",value:`${S.pourcentage_generations_avec_scene}%`,color:"text-emerald-500"}].map(y=>c.jsxs("div",{className:"text-center p-3 rounded-lg bg-muted/50",children:[c.jsx("div",{className:`text-lg font-bold ${y.color}`,children:y.value}),c.jsx("div",{className:"text-xs text-muted-foreground mt-1",children:y.label})]},y.label))})})]}),T.nps&&c.jsxs(oe,{children:[c.jsx(ze,{className:"pb-3",children:c.jsx(Le,{className:"text-base",children:"⭐ NPS & Feedback"})}),c.jsxs(Ne,{children:[c.jsxs("div",{className:"grid grid-cols-2 gap-3 mb-4",children:[c.jsxs("div",{className:"text-center p-3 rounded-lg bg-muted/50",children:[c.jsx("div",{className:"text-xl font-bold",children:S.npsScore!==null?S.npsScore:"-"}),c.jsx("div",{className:"text-xs text-muted-foreground mt-1",children:"Score NPS"})]}),c.jsxs("div",{className:"text-center p-3 rounded-lg bg-muted/50",children:[c.jsx("div",{className:"text-xl font-bold",children:S.npsResponses}),c.jsx("div",{className:"text-xs text-muted-foreground mt-1",children:"Réponses"})]})]}),((be=S.recentNpsComments)==null?void 0:be.length)>0&&c.jsxs("div",{className:"space-y-2",children:[c.jsx("h4",{className:"text-sm font-medium",children:"Commentaires récents"}),S.recentNpsComments.map((y,j)=>c.jsxs("div",{className:"text-sm p-2 rounded bg-muted/30",children:[c.jsxs("span",{className:"font-medium",children:[y.score,"/10"]})," — ",y.comment,c.jsx("span",{className:"text-muted-foreground ml-2 text-xs",children:y.email})]},j))]})]})]}),T.cohort&&le&&c.jsxs(oe,{children:[c.jsxs(ze,{className:"pb-3",children:[c.jsx(Le,{className:"text-base",children:"📈 Analyse par cohorte"}),c.jsx(Zr,{children:"Activation → Conversion → Rétention par période d'inscription"})]}),c.jsx(Ne,{className:"overflow-x-auto",children:c.jsxs(ei,{children:[c.jsx(ni,{children:c.jsxs(yt,{children:[c.jsx(Se,{children:"Période"}),c.jsx(Se,{className:"text-center",children:"Inscrits"}),c.jsx(Se,{className:"text-center",children:"Activés"}),c.jsx(Se,{className:"text-center",children:"Taux activation"}),c.jsx(Se,{className:"text-center",children:"Délai gén. (médian)"}),c.jsx(Se,{className:"text-center",children:"Acheteurs"}),c.jsx(Se,{className:"text-center",children:"Taux conv."}),c.jsx(Se,{className:"text-center",children:"Revenu €"}),c.jsx(Se,{className:"text-center",children:"Multi-achats"}),c.jsx(Se,{className:"text-center",children:"Taux rét."}),c.jsx(Se,{className:"text-center",children:"Délai achat (médian)"})]})}),c.jsx(ti,{children:["7d","30d","90d","all"].map(y=>{const j=le[y];return j?c.jsxs(yt,{children:[c.jsx(_e,{className:"font-medium",children:y==="all"?"All-time":y}),c.jsx(_e,{className:"text-center",children:j.inscrits}),c.jsx(_e,{className:"text-center text-green-600 font-medium",children:j.actives_generation}),c.jsx(_e,{className:"text-center",children:c.jsxs(qe,{variant:j.taux_activation_pourcent>=80?"default":j.taux_activation_pourcent>=50?"secondary":"destructive",children:[j.taux_activation_pourcent,"%"]})}),c.jsx(_e,{className:"text-center",children:j.delai_median_inscription_premiere_generation_jours!==null?`${j.delai_median_inscription_premiere_generation_jours}j`:"-"}),c.jsx(_e,{className:"text-center text-orange-600 font-medium",children:j.premiers_acheteurs}),c.jsx(_e,{className:"text-center",children:c.jsxs(qe,{variant:"outline",children:[j.taux_conversion_pourcent,"%"]})}),c.jsxs(_e,{className:"text-center font-medium",children:[j.revenu_euros,"€"]}),c.jsx(_e,{className:"text-center",children:j.clients_multi_achats}),c.jsx(_e,{className:"text-center",children:c.jsxs(qe,{variant:"outline",children:[j.taux_retention_pourcent,"%"]})}),c.jsx(_e,{className:"text-center",children:j.delai_median_inscription_premier_achat_jours!==null?`${j.delai_median_inscription_premier_achat_jours}j`:"-"})]},y):null})})]})})]}),T.cohort&&le&&c.jsxs(oe,{children:[c.jsx(ze,{className:"pb-3",children:c.jsx(Le,{className:"text-base",children:"📊 Taux par cohorte"})}),c.jsx(Ne,{children:c.jsx(hi,{width:"100%",height:250,children:c.jsxs(yi,{data:["7d","30d","90d","all"].filter(y=>le[y]).map(y=>({period:y==="all"?"All-time":y,activation:le[y].taux_activation_pourcent,conversion:le[y].taux_conversion_pourcent,retention:le[y].taux_retention_pourcent})),children:[c.jsx(fi,{strokeDasharray:"3 3",className:"stroke-muted"}),c.jsx(di,{dataKey:"period",className:"text-xs"}),c.jsx(mi,{className:"text-xs",unit:"%"}),c.jsx(gi,{contentStyle:{backgroundColor:"hsl(var(--card))",border:"1px solid hsl(var(--border))",borderRadius:"8px"}}),c.jsx(xi,{}),c.jsx(zn,{dataKey:"activation",name:"Activation %",fill:"#ef4444",radiu
36s:[4,4,0,0]}),c.jsx(zn,{dataKey:"conversion",name:"Conversion %",fill:"#f97316",radius:[4,4,0,0]}),c.jsx(zn,{dataKey:"retention",name:"Rétention %",fill:"#22c55e",radius:[4,4,0,0]})]})})})]}),c.jsx("div",{className:"sticky bottom-4 z-10",children:c.jsx(oe,{className:"border-primary/30 bg-card/95 backdrop-blur-sm shadow-lg",children:c.jsxs(Ne,{className:"p-4",children:[c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx("div",{className:"flex-1",children:c.jsx(Gr,{value:i,onChange:y=>l(y.target.value),placeholder:"Posez une question ou cliquez Analyser...",className:"min-h-[44px] max-h-[80px] resize-none",onKeyDown:y=>{y.key==="Enter"&&!y.shiftKey&&(y.preventDefault(),d())}})}),c.jsx(ke,{onClick:d,disabled:!i.trim()||a,size:"icon",variant:"outline",children:c.jsx(bi,{className:"w-4 h-4"})}),c.jsxs(ke,{onClick:ye,disabled:a,className:"gap-2",children:[c.jsx(ki,{className:"w-4 h-4"}),"Analyser avec Claude"]})]}),c.jsxs("p",{className:"text-xs text-muted-foreground mt-2",children:[Object.values(T).filter(Boolean).length,"/",tn.length," sections sélectionnées"]})]})})}),I&&c.jsxs(oe,{className:"mb-20",children:[c.jsx(ze,{children:c.jsxs(Le,{className:"flex items-center gap-2",children:[c.jsx(Tn,{className:"w-5 h-5 text-primary"}),"Analyse IA"]})}),c.jsx(Ne,{children:c.jsxs("div",{className:"space-y-4",children:[t.length===0&&!a&&c.jsx("p",{className:"text-muted-foreground text-sm",children:`Cliquez sur "Analyser" pour lancer l'analyse.`}),t.map((y,j)=>c.jsx("div",{className:`flex ${y.role==="user"?"justify-end":"justify-start"}`,children:c.jsx(oe,{className:`max-w-[90%] px-4 py-3 ${y.role==="user"?"bg-primary text-primary-foreground":"bg-muted"}`,children:y.role==="assistant"?c.jsx("div",{className:"prose prose-sm dark:prose-invert max-w-none",children:c.jsx(lu,{children:y.content})}):c.jsxs("details",{className:"text-sm",children:[c.jsx("summary",{className:"cursor-pointer",children:"Message envoyé (cliquez pour voir)"}),c.jsxs("p",{className:"whitespace-pre-wrap mt-2 text-xs opacity-80",children:[y.content.slice(0,500),"..."]})]})})},j)),a&&((Ie=t[t.length-1])==null?void 0:Ie.role)==="user"&&c.jsx("div",{className:"flex justify-start",children:c.jsx(oe,{className:"bg-muted px-4 py-3",children:c.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[c.jsx(xt,{className:"w-4 h-4 animate-spin"}),c.jsx("span",{className:"text-sm",children:"Analyse en cours..."})]})})}),c.jsx("div",{ref:H})]})})]})]}):c.jsxs("div",{className:"flex flex-col items-center justify-center py-20 text-muted-foreground",children:[c.jsx(Tn,{className:"w-16 h-16 mb-4 opacity-30"}),c.jsx("p",{className:"text-lg font-medium",children:"Impossible de charger les données"}),c.jsxs(ke,{variant:"outline",className:"mt-4",onClick:Q,children:[c.jsx(Pn,{className:"w-4 h-4 mr-2"}),"Réessayer"]})]})]})]})}export{Du as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.