sqlmesh 0.181.2.dev16__py3-none-any.whl → 0.181.2.dev18__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- sqlmesh/_version.py +2 -2
- {sqlmesh-0.181.2.dev16.dist-info → sqlmesh-0.181.2.dev18.dist-info}/METADATA +1 -1
- {sqlmesh-0.181.2.dev16.dist-info → sqlmesh-0.181.2.dev18.dist-info}/RECORD +49 -49
- web/client/dist/assets/{Audits-CpTpRWJS.js → Audits-l42KyvAS.js} +1 -1
- web/client/dist/assets/{Banner-DoiNAKye.js → Banner-BDixHB-p.js} +1 -1
- web/client/dist/assets/{ChevronDownIcon-BEGYfY2e.js → ChevronDownIcon-D_X0FuzI.js} +1 -1
- web/client/dist/assets/{ChevronRightIcon-DukIeKXy.js → ChevronRightIcon-Ci-vtEDD.js} +1 -1
- web/client/dist/assets/{Content-CfmwrKKm.js → Content-UFxrHkDI.js} +1 -1
- web/client/dist/assets/{Content-C_JUq1Do.js → Content-oIWFleXF.js} +1 -1
- web/client/dist/assets/{Data-ChAnh4ni.js → Data-CLMGP4j8.js} +1 -1
- web/client/dist/assets/{DataCatalog-DWoqDoha.js → DataCatalog-3BLO9jd2.js} +2 -2
- web/client/dist/assets/{Editor-ClszqJ2I.js → Editor-3TWmSfut.js} +1 -1
- web/client/dist/assets/{Editor-CUljCEXi.js → Editor-CScUJsI9.js} +1 -1
- web/client/dist/assets/{Errors-Fuw_f-1a.js → Errors-Dg9IT6GW.js} +1 -1
- web/client/dist/assets/{FileExplorer-CXZ9Q150.js → FileExplorer-BtGXfFe1.js} +1 -1
- web/client/dist/assets/{Footer-BFLq78dA.js → Footer-B_18qn6L.js} +1 -1
- web/client/dist/assets/{Header-BEK5IMP9.js → Header-BIhjjExl.js} +1 -1
- web/client/dist/assets/{Input-tR0WpVuK.js → Input-DZVp-T-c.js} +1 -1
- web/client/dist/assets/Lineage-DKjxAj6r.js +1 -0
- web/client/dist/assets/{ListboxShow-C9Uz0VvV.js → ListboxShow-B9WQbaml.js} +1 -1
- web/client/dist/assets/{ModelLineage-bdWk08Ab.js → ModelLineage-MOGS_tcv.js} +1 -1
- web/client/dist/assets/{Models-BU-MA8yO.js → Models-C0kma0wJ.js} +1 -1
- web/client/dist/assets/{Page-DwNrMCBx.js → Page-yGHiQgIZ.js} +1 -1
- web/client/dist/assets/{Plan-CrjOn4QG.js → Plan-DWtNBwNf.js} +1 -1
- web/client/dist/assets/{PlusCircleIcon-C1VPxB8A.js → PlusCircleIcon-DTPvu0Q9.js} +1 -1
- web/client/dist/assets/{ReportErrors-BcmrRxbG.js → ReportErrors-C0yNCCMn.js} +1 -1
- web/client/dist/assets/{Root-BzyY-jcn.js → Root-C33PD4Lp.js} +1 -1
- web/client/dist/assets/{SearchList-wEGQkxPR.js → SearchList-DBo20Eyw.js} +1 -1
- web/client/dist/assets/{SelectEnvironment-LGhN0dhR.js → SelectEnvironment-C7g9UP89.js} +1 -1
- web/client/dist/assets/{SourceList-DHZ9-QtW.js → SourceList--1bRy5wi.js} +1 -1
- web/client/dist/assets/{SourceListItem-CzN9ypEP.js → SourceListItem-BHapbzta.js} +1 -1
- web/client/dist/assets/{SplitPane-Djy_uJgV.js → SplitPane-CazWmOU8.js} +1 -1
- web/client/dist/assets/{Tests-DXoZpfR7.js → Tests-RpyW36kr.js} +1 -1
- web/client/dist/assets/{Welcome-DREQuVRP.js → Welcome-Bp53remK.js} +1 -1
- web/client/dist/assets/{context-C8brTRBZ.js → context-BS6KWtz-.js} +1 -1
- web/client/dist/assets/{context-CKu1HxT0.js → context-BtbAVpZW.js} +1 -1
- web/client/dist/assets/{editor-D_hgjDRq.js → editor-DOmheF0n.js} +1 -1
- web/client/dist/assets/{file-CyBkQGGI.js → file-DnIRvHeq.js} +1 -1
- web/client/dist/assets/{help-BcOVbjKP.js → help-CBrid8WS.js} +1 -1
- web/client/dist/assets/{index-RJnYVUFY.js → index-BQLGC90G.js} +1 -1
- web/client/dist/assets/{index-CYAA3nVF.js → index-C8Tw_Auq.js} +1 -1
- web/client/dist/assets/{plan-BaiSs9Um.js → plan-BXjInmzU.js} +1 -1
- web/client/dist/assets/{project-vqNomsgg.js → project-Dj_oOi4n.js} +1 -1
- web/client/dist/assets/{transition-CtNxN7ku.js → transition-CnSw8kwk.js} +1 -1
- web/client/dist/index.html +1 -1
- web/client/dist/assets/Lineage-CpFxhla3.js +0 -1
- {sqlmesh-0.181.2.dev16.dist-info → sqlmesh-0.181.2.dev18.dist-info}/WHEEL +0 -0
- {sqlmesh-0.181.2.dev16.dist-info → sqlmesh-0.181.2.dev18.dist-info}/entry_points.txt +0 -0
- {sqlmesh-0.181.2.dev16.dist-info → sqlmesh-0.181.2.dev18.dist-info}/licenses/LICENSE +0 -0
- {sqlmesh-0.181.2.dev16.dist-info → sqlmesh-0.181.2.dev18.dist-info}/top_level.txt +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a2 as jt,j as C,i as Ae,b as bn,h as Ht,D as Nr,F as Dr,a3 as Fr,g as _r,Q as Or,U as Mr,t as Rr,a as tn,a4 as Br,w as we,r as jr,V as Hr,e as Xn,L as Ur,S as Vr}from"./index-CYAA3nVF.js";import{M as qr,u as $r,L as Yr,C as Kr,a as rn}from"./context-C8brTRBZ.js";import{T as Qr,a as ln,b as Wr,c as Xr,d as Gn,e as ge,f as Gr,g as Jr,h as Jn,i as Zn,j as Zr,k as et,l as nt}from"./SearchList-wEGQkxPR.js";import ei from"./ModelLineage-bdWk08Ab.js";import{E as on}from"./file-CyBkQGGI.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./Input-tR0WpVuK.js";import"./editor-D_hgjDRq.js";import"./project-vqNomsgg.js";import"./help-6Q7f7fjd.js";import"./SourceList-DHZ9-QtW.js";import"./index-RJnYVUFY.js";import"./transition-CtNxN7ku.js";import"./ListboxShow-C9Uz0VvV.js";function ni(e,n){const t={};return(e[e.length-1]===""?[...e,""]:e).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}const ti=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,ri=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,ii={};function tt(e,n){return(ii.jsx?ri:ti).test(e)}const li=/[ \t\n\f\r]/g;function oi(e){return typeof e=="object"?e.type==="text"?rt(e.value):!1:rt(e)}function rt(e){return e.replace(li,"")===""}class qe{constructor(n,t,r){this.normal=t,this.property=n,r&&(this.space=r)}}qe.prototype.normal={};qe.prototype.property={};qe.prototype.space=void 0;function Ut(e,n){const t={},r={};for(const i of e)Object.assign(t,i.property),Object.assign(r,i.normal);return new qe(t,r,n)}function wn(e){return e.toLowerCase()}class Z{constructor(n,t){this.attribute=t,this.property=n}}Z.prototype.attribute="";Z.prototype.booleanish=!1;Z.prototype.boolean=!1;Z.prototype.commaOrSpaceSeparated=!1;Z.prototype.commaSeparated=!1;Z.prototype.defined=!1;Z.prototype.mustUseProperty=!1;Z.prototype.number=!1;Z.prototype.overloadedBoolean=!1;Z.prototype.property="";Z.prototype.spaceSeparated=!1;Z.prototype.space=void 0;let ai=0;const F=Se(),Y=Se(),Sn=Se(),x=Se(),V=Se(),ve=Se(),ne=Se();function Se(){return 2**++ai}const Cn=Object.freeze(Object.defineProperty({__proto__:null,boolean:F,booleanish:Y,commaOrSpaceSeparated:ne,commaSeparated:ve,number:x,overloadedBoolean:Sn,spaceSeparated:V},Symbol.toStringTag,{value:"Module"})),an=Object.keys(Cn);class Ln extends Z{constructor(n,t,r,i){let l=-1;if(super(n,t),it(this,"space",i),typeof r=="number")for(;++l<an.length;){const o=an[l];it(this,an[l],(r&Cn[o])===Cn[o])}}}Ln.prototype.defined=!0;function it(e,n,t){t&&(e[n]=t)}function Le(e){const n={},t={};for(const[r,i]of Object.entries(e.properties)){const l=new Ln(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(l.mustUseProperty=!0),n[r]=l,t[wn(r)]=r,t[wn(l.attribute)]=r}return new qe(n,t,e.space)}const Vt=Le({properties:{ariaActiveDescendant:null,ariaAtomic:Y,ariaAutoComplete:null,ariaBusy:Y,ariaChecked:Y,ariaColCount:x,ariaColIndex:x,ariaColSpan:x,ariaControls:V,ariaCurrent:null,ariaDescribedBy:V,ariaDetails:null,ariaDisabled:Y,ariaDropEffect:V,ariaErrorMessage:null,ariaExpanded:Y,ariaFlowTo:V,ariaGrabbed:Y,ariaHasPopup:null,ariaHidden:Y,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:V,ariaLevel:x,ariaLive:null,ariaModal:Y,ariaMultiLine:Y,ariaMultiSelectable:Y,ariaOrientation:null,ariaOwns:V,ariaPlaceholder:null,ariaPosInSet:x,ariaPressed:Y,ariaReadOnly:Y,ariaRelevant:null,ariaRequired:Y,ariaRoleDescription:V,ariaRowCount:x,ariaRowIndex:x,ariaRowSpan:x,ariaSelected:Y,ariaSetSize:x,ariaSort:null,ariaValueMax:x,ariaValueMin:x,ariaValueNow:x,ariaValueText:null,role:null},transform(e,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()}});function qt(e,n){return n in e?e[n]:n}function $t(e,n){return qt(e,n.toLowerCase())}const ui=Le({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ve,acceptCharset:V,accessKey:V,action:null,allow:null,allowFullScreen:F,allowPaymentRequest:F,allowUserMedia:F,alt:null,as:null,async:F,autoCapitalize:null,autoComplete:V,autoFocus:F,autoPlay:F,blocking:V,capture:null,charSet:null,checked:F,cite:null,className:V,cols:x,colSpan:null,content:null,contentEditable:Y,controls:F,controlsList:V,coords:x|ve,crossOrigin:null,data:null,dateTime:null,decoding:null,default:F,defer:F,dir:null,dirName:null,disabled:F,download:Sn,draggable:Y,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:F,formTarget:null,headers:V,height:x,hidden:Sn,high:x,href:null,hrefLang:null,htmlFor:V,httpEquiv:V,id:null,imageSizes:null,imageSrcSet:null,inert:F,inputMode:null,integrity:null,is:null,isMap:F,itemId:null,itemProp:V,itemRef:V,itemScope:F,itemType:V,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:F,low:x,manifest:null,max:null,maxLength:x,media:null,method:null,min:null,minLength:x,multiple:F,muted:F,name:null,nonce:null,noModule:F,noValidate:F,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:F,optimum:x,pattern:null,ping:V,placeholder:null,playsInline:F,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:F,referrerPolicy:null,rel:V,required:F,reversed:F,rows:x,rowSpan:x,sandbox:V,scope:null,scoped:F,seamless:F,selected:F,shadowRootClonable:F,shadowRootDelegatesFocus:F,shadowRootMode:null,shape:null,size:x,sizes:null,slot:null,span:x,spellCheck:Y,src:null,srcDoc:null,srcLang:null,srcSet:null,start:x,step:null,style:null,tabIndex:x,target:null,title:null,translate:null,type:null,typeMustMatch:F,useMap:null,value:Y,width:x,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:V,axis:null,background:null,bgColor:null,border:x,borderColor:null,bottomMargin:x,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:F,declare:F,event:null,face:null,frame:null,frameBorder:null,hSpace:x,leftMargin:x,link:null,longDesc:null,lowSrc:null,marginHeight:x,marginWidth:x,noResize:F,noHref:F,noShade:F,noWrap:F,object:null,profile:null,prompt:null,rev:null,rightMargin:x,rules:null,scheme:null,scrolling:Y,standby:null,summary:null,text:null,topMargin:x,valueType:null,version:null,vAlign:null,vLink:null,vSpace:x,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:F,disableRemotePlayback:F,prefix:null,property:null,results:x,security:null,unselectable:null},space:"html",transform:$t}),si=Le({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:ne,accentHeight:x,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:x,amplitude:x,arabicForm:null,ascent:x,attributeName:null,attributeType:null,azimuth:x,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:x,by:null,calcMode:null,capHeight:x,className:V,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:x,diffuseConstant:x,direction:null,display:null,dur:null,divisor:x,dominantBaseline:null,download:F,dx:null,dy:null,edgeMode:null,editable:null,elevation:x,enableBackground:null,end:null,event:null,exponent:x,externalResourcesRequired:null,fill:null,fillOpacity:x,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:ve,g2:ve,glyphName:ve,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:x,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:x,horizOriginX:x,horizOriginY:x,id:null,ideographic:x,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:x,k:x,k1:x,k2:x,k3:x,k4:x,kernelMatrix:ne,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:x,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:x,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:x,overlineThickness:x,paintOrder:null,panose1:null,path:null,pathLength:x,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:V,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:x,pointsAtY:x,pointsAtZ:x,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ne,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ne,rev:ne,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ne,requiredFeatures:ne,requiredFonts:ne,requiredFormats:ne,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:x,specularExponent:x,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:x,strikethroughThickness:x,string:null,stroke:null,strokeDashArray:ne,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:x,strokeOpacity:x,strokeWidth:null,style:null,surfaceScale:x,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ne,tabIndex:x,tableValues:null,target:null,targetX:x,targetY:x,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ne,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:x,underlineThickness:x,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:x,values:null,vAlphabetic:x,vMathematical:x,vectorEffect:null,vHanging:x,vIdeographic:x,version:null,vertAdvY:x,vertOriginX:x,vertOriginY:x,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:x,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:qt}),Yt=Le({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,n){return"xlink:"+n.slice(5).toLowerCase()}}),Kt=Le({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:$t}),Qt=Le({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()}}),ci={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,lt=/-[a-z]/g,fi=/^data[-\w.:]+$/i;function hi(e,n){const t=wn(n);let r=n,i=Z;if(t in e.normal)return e.property[e.normal[t]];if(t.length>4&&t.slice(0,4)==="data"&&fi.test(n)){if(n.charAt(4)==="-"){const l=n.slice(5).replace(lt,di);r="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=n.slice(4);if(!lt.test(l)){let o=l.replace(pi,mi);o.charAt(0)!=="-"&&(o="-"+o),n="data"+o}}i=Ln}return new i(r,n)}function mi(e){return"-"+e.toLowerCase()}function di(e){return e.charAt(1).toUpperCase()}const gi=Ut([Vt,ui,Yt,Kt,Qt],"html"),Nn=Ut([Vt,si,Yt,Kt,Qt],"svg");function yi(e){return e.join(" ").trim()}var Te={},un,ot;function xi(){if(ot)return un;ot=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,t=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,l=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,a=/^\s+|\s+$/g,s=`
|
|
1
|
+
import{a2 as jt,j as C,i as Ae,b as bn,h as Ht,D as Nr,F as Dr,a3 as Fr,g as _r,Q as Or,U as Mr,t as Rr,a as tn,a4 as Br,w as we,r as jr,V as Hr,e as Xn,L as Ur,S as Vr}from"./index-C8Tw_Auq.js";import{M as qr,u as $r,L as Yr,C as Kr,a as rn}from"./context-BS6KWtz-.js";import{T as Qr,a as ln,b as Wr,c as Xr,d as Gn,e as ge,f as Gr,g as Jr,h as Jn,i as Zn,j as Zr,k as et,l as nt}from"./SearchList-DBo20Eyw.js";import ei from"./ModelLineage-MOGS_tcv.js";import{E as on}from"./file-DnIRvHeq.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./Input-DZVp-T-c.js";import"./editor-DOmheF0n.js";import"./project-Dj_oOi4n.js";import"./help-6Q7f7fjd.js";import"./SourceList--1bRy5wi.js";import"./index-BQLGC90G.js";import"./transition-CnSw8kwk.js";import"./ListboxShow-B9WQbaml.js";function ni(e,n){const t={};return(e[e.length-1]===""?[...e,""]:e).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}const ti=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,ri=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,ii={};function tt(e,n){return(ii.jsx?ri:ti).test(e)}const li=/[ \t\n\f\r]/g;function oi(e){return typeof e=="object"?e.type==="text"?rt(e.value):!1:rt(e)}function rt(e){return e.replace(li,"")===""}class qe{constructor(n,t,r){this.normal=t,this.property=n,r&&(this.space=r)}}qe.prototype.normal={};qe.prototype.property={};qe.prototype.space=void 0;function Ut(e,n){const t={},r={};for(const i of e)Object.assign(t,i.property),Object.assign(r,i.normal);return new qe(t,r,n)}function wn(e){return e.toLowerCase()}class Z{constructor(n,t){this.attribute=t,this.property=n}}Z.prototype.attribute="";Z.prototype.booleanish=!1;Z.prototype.boolean=!1;Z.prototype.commaOrSpaceSeparated=!1;Z.prototype.commaSeparated=!1;Z.prototype.defined=!1;Z.prototype.mustUseProperty=!1;Z.prototype.number=!1;Z.prototype.overloadedBoolean=!1;Z.prototype.property="";Z.prototype.spaceSeparated=!1;Z.prototype.space=void 0;let ai=0;const F=Se(),Y=Se(),Sn=Se(),x=Se(),V=Se(),ve=Se(),ne=Se();function Se(){return 2**++ai}const Cn=Object.freeze(Object.defineProperty({__proto__:null,boolean:F,booleanish:Y,commaOrSpaceSeparated:ne,commaSeparated:ve,number:x,overloadedBoolean:Sn,spaceSeparated:V},Symbol.toStringTag,{value:"Module"})),an=Object.keys(Cn);class Ln extends Z{constructor(n,t,r,i){let l=-1;if(super(n,t),it(this,"space",i),typeof r=="number")for(;++l<an.length;){const o=an[l];it(this,an[l],(r&Cn[o])===Cn[o])}}}Ln.prototype.defined=!0;function it(e,n,t){t&&(e[n]=t)}function Le(e){const n={},t={};for(const[r,i]of Object.entries(e.properties)){const l=new Ln(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(l.mustUseProperty=!0),n[r]=l,t[wn(r)]=r,t[wn(l.attribute)]=r}return new qe(n,t,e.space)}const Vt=Le({properties:{ariaActiveDescendant:null,ariaAtomic:Y,ariaAutoComplete:null,ariaBusy:Y,ariaChecked:Y,ariaColCount:x,ariaColIndex:x,ariaColSpan:x,ariaControls:V,ariaCurrent:null,ariaDescribedBy:V,ariaDetails:null,ariaDisabled:Y,ariaDropEffect:V,ariaErrorMessage:null,ariaExpanded:Y,ariaFlowTo:V,ariaGrabbed:Y,ariaHasPopup:null,ariaHidden:Y,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:V,ariaLevel:x,ariaLive:null,ariaModal:Y,ariaMultiLine:Y,ariaMultiSelectable:Y,ariaOrientation:null,ariaOwns:V,ariaPlaceholder:null,ariaPosInSet:x,ariaPressed:Y,ariaReadOnly:Y,ariaRelevant:null,ariaRequired:Y,ariaRoleDescription:V,ariaRowCount:x,ariaRowIndex:x,ariaRowSpan:x,ariaSelected:Y,ariaSetSize:x,ariaSort:null,ariaValueMax:x,ariaValueMin:x,ariaValueNow:x,ariaValueText:null,role:null},transform(e,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()}});function qt(e,n){return n in e?e[n]:n}function $t(e,n){return qt(e,n.toLowerCase())}const ui=Le({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ve,acceptCharset:V,accessKey:V,action:null,allow:null,allowFullScreen:F,allowPaymentRequest:F,allowUserMedia:F,alt:null,as:null,async:F,autoCapitalize:null,autoComplete:V,autoFocus:F,autoPlay:F,blocking:V,capture:null,charSet:null,checked:F,cite:null,className:V,cols:x,colSpan:null,content:null,contentEditable:Y,controls:F,controlsList:V,coords:x|ve,crossOrigin:null,data:null,dateTime:null,decoding:null,default:F,defer:F,dir:null,dirName:null,disabled:F,download:Sn,draggable:Y,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:F,formTarget:null,headers:V,height:x,hidden:Sn,high:x,href:null,hrefLang:null,htmlFor:V,httpEquiv:V,id:null,imageSizes:null,imageSrcSet:null,inert:F,inputMode:null,integrity:null,is:null,isMap:F,itemId:null,itemProp:V,itemRef:V,itemScope:F,itemType:V,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:F,low:x,manifest:null,max:null,maxLength:x,media:null,method:null,min:null,minLength:x,multiple:F,muted:F,name:null,nonce:null,noModule:F,noValidate:F,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:F,optimum:x,pattern:null,ping:V,placeholder:null,playsInline:F,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:F,referrerPolicy:null,rel:V,required:F,reversed:F,rows:x,rowSpan:x,sandbox:V,scope:null,scoped:F,seamless:F,selected:F,shadowRootClonable:F,shadowRootDelegatesFocus:F,shadowRootMode:null,shape:null,size:x,sizes:null,slot:null,span:x,spellCheck:Y,src:null,srcDoc:null,srcLang:null,srcSet:null,start:x,step:null,style:null,tabIndex:x,target:null,title:null,translate:null,type:null,typeMustMatch:F,useMap:null,value:Y,width:x,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:V,axis:null,background:null,bgColor:null,border:x,borderColor:null,bottomMargin:x,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:F,declare:F,event:null,face:null,frame:null,frameBorder:null,hSpace:x,leftMargin:x,link:null,longDesc:null,lowSrc:null,marginHeight:x,marginWidth:x,noResize:F,noHref:F,noShade:F,noWrap:F,object:null,profile:null,prompt:null,rev:null,rightMargin:x,rules:null,scheme:null,scrolling:Y,standby:null,summary:null,text:null,topMargin:x,valueType:null,version:null,vAlign:null,vLink:null,vSpace:x,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:F,disableRemotePlayback:F,prefix:null,property:null,results:x,security:null,unselectable:null},space:"html",transform:$t}),si=Le({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:ne,accentHeight:x,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:x,amplitude:x,arabicForm:null,ascent:x,attributeName:null,attributeType:null,azimuth:x,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:x,by:null,calcMode:null,capHeight:x,className:V,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:x,diffuseConstant:x,direction:null,display:null,dur:null,divisor:x,dominantBaseline:null,download:F,dx:null,dy:null,edgeMode:null,editable:null,elevation:x,enableBackground:null,end:null,event:null,exponent:x,externalResourcesRequired:null,fill:null,fillOpacity:x,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:ve,g2:ve,glyphName:ve,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:x,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:x,horizOriginX:x,horizOriginY:x,id:null,ideographic:x,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:x,k:x,k1:x,k2:x,k3:x,k4:x,kernelMatrix:ne,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:x,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:x,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:x,overlineThickness:x,paintOrder:null,panose1:null,path:null,pathLength:x,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:V,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:x,pointsAtY:x,pointsAtZ:x,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ne,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ne,rev:ne,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ne,requiredFeatures:ne,requiredFonts:ne,requiredFormats:ne,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:x,specularExponent:x,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:x,strikethroughThickness:x,string:null,stroke:null,strokeDashArray:ne,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:x,strokeOpacity:x,strokeWidth:null,style:null,surfaceScale:x,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ne,tabIndex:x,tableValues:null,target:null,targetX:x,targetY:x,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ne,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:x,underlineThickness:x,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:x,values:null,vAlphabetic:x,vMathematical:x,vectorEffect:null,vHanging:x,vIdeographic:x,version:null,vertAdvY:x,vertOriginX:x,vertOriginY:x,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:x,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:qt}),Yt=Le({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,n){return"xlink:"+n.slice(5).toLowerCase()}}),Kt=Le({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:$t}),Qt=Le({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()}}),ci={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,lt=/-[a-z]/g,fi=/^data[-\w.:]+$/i;function hi(e,n){const t=wn(n);let r=n,i=Z;if(t in e.normal)return e.property[e.normal[t]];if(t.length>4&&t.slice(0,4)==="data"&&fi.test(n)){if(n.charAt(4)==="-"){const l=n.slice(5).replace(lt,di);r="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=n.slice(4);if(!lt.test(l)){let o=l.replace(pi,mi);o.charAt(0)!=="-"&&(o="-"+o),n="data"+o}}i=Ln}return new i(r,n)}function mi(e){return"-"+e.toLowerCase()}function di(e){return e.charAt(1).toUpperCase()}const gi=Ut([Vt,ui,Yt,Kt,Qt],"html"),Nn=Ut([Vt,si,Yt,Kt,Qt],"svg");function yi(e){return e.join(" ").trim()}var Te={},un,ot;function xi(){if(ot)return un;ot=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,t=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,l=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,a=/^\s+|\s+$/g,s=`
|
|
2
2
|
`,u="/",c="*",f="",h="comment",p="declaration";un=function(b,z){if(typeof b!="string")throw new TypeError("First argument must be a string");if(!b)return[];z=z||{};var k=1,v=1;function E(P){var I=P.match(n);I&&(k+=I.length);var N=P.lastIndexOf(s);v=~N?P.length-N:v+P.length}function j(){var P={line:k,column:v};return function(I){return I.position=new U(P),$(),I}}function U(P){this.start=P,this.end={line:k,column:v},this.source=z.source}U.prototype.content=b;function y(P){var I=new Error(z.source+":"+k+":"+v+": "+P);if(I.reason=P,I.filename=z.source,I.line=k,I.column=v,I.source=b,!z.silent)throw I}function O(P){var I=P.exec(b);if(I){var N=I[0];return E(N),b=b.slice(N.length),I}}function $(){O(t)}function R(P){var I;for(P=P||[];I=B();)I!==!1&&P.push(I);return P}function B(){var P=j();if(!(u!=b.charAt(0)||c!=b.charAt(1))){for(var I=2;f!=b.charAt(I)&&(c!=b.charAt(I)||u!=b.charAt(I+1));)++I;if(I+=2,f===b.charAt(I-1))return y("End of comment missing");var N=b.slice(2,I-2);return v+=2,E(N),b=b.slice(I),v+=2,P({type:h,comment:N})}}function A(){var P=j(),I=O(r);if(I){if(B(),!O(i))return y("property missing ':'");var N=O(l),K=P({type:p,property:S(I[0].replace(e,f)),value:N?S(N[0].replace(e,f)):f});return O(o),K}}function T(){var P=[];R(P);for(var I;I=A();)I!==!1&&(P.push(I),R(P));return P}return $(),T()};function S(b){return b?b.replace(a,f):f}return un}var at;function ki(){if(at)return Te;at=1;var e=Te&&Te.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Te,"__esModule",{value:!0}),Te.default=t;var n=e(xi());function t(r,i){var l=null;if(!r||typeof r!="string")return l;var o=(0,n.default)(r),a=typeof i=="function";return o.forEach(function(s){if(s.type==="declaration"){var u=s.property,c=s.value;a?i(u,c,s):c&&(l=l||{},l[u]=c)}}),l}return Te}var Oe={},ut;function bi(){if(ut)return Oe;ut=1,Object.defineProperty(Oe,"__esModule",{value:!0}),Oe.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,t=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,l=function(u){return!u||t.test(u)||e.test(u)},o=function(u,c){return c.toUpperCase()},a=function(u,c){return"".concat(c,"-")},s=function(u,c){return c===void 0&&(c={}),l(u)?u:(u=u.toLowerCase(),c.reactCompat?u=u.replace(i,a):u=u.replace(r,a),u.replace(n,o))};return Oe.camelCase=s,Oe}var Me,st;function wi(){if(st)return Me;st=1;var e=Me&&Me.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},n=e(ki()),t=bi();function r(i,l){var o={};return!i||typeof i!="string"||(0,n.default)(i,function(a,s){a&&s&&(o[(0,t.camelCase)(a,l)]=s)}),o}return r.default=r,Me=r,Me}var Si=wi();const Ci=jt(Si),Wt=Xt("end"),Dn=Xt("start");function Xt(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 Ei(e){const n=Dn(e),t=Wt(e);if(n&&t)return{start:n,end:t}}function je(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?En(e):""}function En(e){return pt(e&&e.line)+":"+pt(e&&e.column)}function ct(e){return En(e&&e.start)+"-"+En(e&&e.end)}function pt(e){return e&&typeof e=="number"?e:1}class X extends Error{constructor(n,t,r){super(),typeof t=="string"&&(r=t,t=void 0);let i="",l={},o=!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&&(o=!0,i=n.message,l.cause=n),!l.ruleId&&!l.source&&typeof r=="string"){const s=r.indexOf(":");s===-1?l.ruleId=r:(l.source=r.slice(0,s),l.ruleId=r.slice(s+1))}if(!l.place&&l.ancestors&&l.ancestors){const s=l.ancestors[l.ancestors.length-1];s&&(l.place=s.position)}const a=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=a?a.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=a?a.line:void 0,this.name=je(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=o&&l.cause&&typeof l.cause.stack=="string"?l.cause.stack:"",this.actual,this.expected,this.note,this.url}}X.prototype.file="";X.prototype.name="";X.prototype.reason="";X.prototype.message="";X.prototype.stack="";X.prototype.column=void 0;X.prototype.line=void 0;X.prototype.ancestors=void 0;X.prototype.cause=void 0;X.prototype.fatal=void 0;X.prototype.place=void 0;X.prototype.ruleId=void 0;X.prototype.source=void 0;const Fn={}.hasOwnProperty,Ii=new Map,Ti=/[A-Z]/g,Pi=new Set(["table","tbody","thead","tfoot","tr"]),Ai=new Set(["td","th"]),Gt="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function vi(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=Mi(t,n.jsxDEV)}else{if(typeof n.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof n.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=Oi(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"?Nn:gi,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},l=Jt(i,e,void 0);return l&&typeof l!="string"?l:i.create(e,i.Fragment,{children:l||void 0},void 0)}function Jt(e,n,t){if(n.type==="element")return zi(e,n,t);if(n.type==="mdxFlowExpression"||n.type==="mdxTextExpression")return Li(e,n);if(n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement")return Di(e,n,t);if(n.type==="mdxjsEsm")return Ni(e,n);if(n.type==="root")return Fi(e,n,t);if(n.type==="text")return _i(e,n)}function zi(e,n,t){const r=e.schema;let i=r;n.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Nn,e.schema=i),e.ancestors.push(n);const l=er(e,n.tagName,!1),o=Ri(e,n);let a=On(e,n);return Pi.has(n.tagName)&&(a=a.filter(function(s){return typeof s=="string"?!oi(s):!0})),Zt(e,o,l,n),_n(o,a),e.ancestors.pop(),e.schema=r,e.create(n,l,o,t)}function Li(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)}Ve(e,n.position)}function Ni(e,n){if(n.data&&n.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(n.data.estree);Ve(e,n.position)}function Di(e,n,t){const r=e.schema;let i=r;n.name==="svg"&&r.space==="html"&&(i=Nn,e.schema=i),e.ancestors.push(n);const l=n.name===null?e.Fragment:er(e,n.name,!0),o=Bi(e,n),a=On(e,n);return Zt(e,o,l,n),_n(o,a),e.ancestors.pop(),e.schema=r,e.create(n,l,o,t)}function Fi(e,n,t){const r={};return _n(r,On(e,n)),e.create(n,e.Fragment,r,t)}function _i(e,n){return n.value}function Zt(e,n,t,r){typeof t!="string"&&t!==e.Fragment&&e.passNode&&(n.node=r)}function _n(e,n){if(n.length>0){const t=n.length>1?n:n[0];t&&(e.children=t)}}function Oi(e,n,t){return r;function r(i,l,o,a){const u=Array.isArray(o.children)?t:n;return a?u(l,o,a):u(l,o)}}function Mi(e,n){return t;function t(r,i,l,o){const a=Array.isArray(l.children),s=Dn(r);return n(i,l,o,a,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function Ri(e,n){const t={};let r,i;for(i in n.properties)if(i!=="children"&&Fn.call(n.properties,i)){const l=ji(e,i,n.properties[i]);if(l){const[o,a]=l;e.tableCellAlignToStyle&&o==="align"&&typeof a=="string"&&Ai.has(n.tagName)?r=a:t[o]=a}}if(r){const l=t.style||(t.style={});l[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return t}function Bi(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 o=l.expression;o.type;const a=o.properties[0];a.type,Object.assign(t,e.evaluater.evaluateExpression(a.argument))}else Ve(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 a=r.value.data.estree.body[0];a.type,l=e.evaluater.evaluateExpression(a.expression)}else Ve(e,n.position);else l=r.value===null?!0:r.value;t[i]=l}return t}function On(e,n){const t=[];let r=-1;const i=e.passKeys?new Map:Ii;for(;++r<n.children.length;){const l=n.children[r];let o;if(e.passKeys){const s=l.type==="element"?l.tagName:l.type==="mdxJsxFlowElement"||l.type==="mdxJsxTextElement"?l.name:void 0;if(s){const u=i.get(s)||0;o=s+"-"+u,i.set(s,u+1)}}const a=Jt(e,l,o);a!==void 0&&t.push(a)}return t}function ji(e,n,t){const r=hi(e.schema,n);if(!(t==null||typeof t=="number"&&Number.isNaN(t))){if(Array.isArray(t)&&(t=r.commaSeparated?ni(t):yi(t)),r.property==="style"){let i=typeof t=="object"?t:Hi(e,String(t));return e.stylePropertyNameCase==="css"&&(i=Ui(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?ci[r.property]||r.property:r.attribute,t]}}function Hi(e,n){try{return Ci(n,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};const r=t,i=new X("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=Gt+"#cannot-parse-style-attribute",i}}function er(e,n,t){let r;if(!t)r={type:"Literal",value:n};else if(n.includes(".")){const i=n.split(".");let l=-1,o;for(;++l<i.length;){const a=tt(i[l])?{type:"Identifier",name:i[l]}:{type:"Literal",value:i[l]};o=o?{type:"MemberExpression",object:o,property:a,computed:!!(l&&a.type==="Literal"),optional:!1}:a}r=o}else r=tt(n)&&!/^[a-z]/.test(n)?{type:"Identifier",name:n}:{type:"Literal",value:n};if(r.type==="Literal"){const i=r.value;return Fn.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);Ve(e)}function Ve(e,n){const t=new X("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=Gt+"#cannot-handle-mdx-estrees-without-createevaluater",t}function Ui(e){const n={};let t;for(t in e)Fn.call(e,t)&&(n[Vi(t)]=e[t]);return n}function Vi(e){let n=e.replace(Ti,qi);return n.slice(0,3)==="ms-"&&(n="-"+n),n}function qi(e){return"-"+e.toLowerCase()}const sn={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"]},$i={};function Yi(e,n){const t=$i,r=typeof t.includeImageAlt=="boolean"?t.includeImageAlt:!0,i=typeof t.includeHtml=="boolean"?t.includeHtml:!0;return nr(e,r,i)}function nr(e,n,t){if(Ki(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 ft(e.children,n,t)}return Array.isArray(e)?ft(e,n,t):""}function ft(e,n,t){const r=[];let i=-1;for(;++i<e.length;)r[i]=nr(e[i],n,t);return r.join("")}function Ki(e){return!!(e&&typeof e=="object")}const ht=document.createElement("i");function Mn(e){const n="&"+e+";";ht.innerHTML=n;const t=ht.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,o;if(n<0?n=-n>i?0:i+n:n=n>i?i:n,t=t>0?t:0,r.length<1e4)o=Array.from(r),o.unshift(n,t),e.splice(...o);else for(t&&e.splice(n,t);l<r.length;)o=r.slice(l,l+1e4),o.unshift(n,0),e.splice(...o),l+=1e4,n+=1e4}function re(e,n){return e.length>0?(ce(e,e.length,0,n),e):n}const mt={}.hasOwnProperty;function Qi(e){const n={};let t=-1;for(;++t<e.length;)Wi(n,e[t]);return n}function Wi(e,n){let t;for(t in n){const i=(mt.call(e,t)?e[t]:void 0)||(e[t]={}),l=n[t];let o;if(l)for(o in l){mt.call(i,o)||(i[o]=[]);const a=l[o];Xi(i[o],Array.isArray(a)?a:a?[a]:[])}}}function Xi(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 tr(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 ze(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const se=xe(/[A-Za-z]/),te=xe(/[\dA-Za-z]/),Gi=xe(/[#-'*+\--9=?A-Z^-~]/);function In(e){return e!==null&&(e<32||e===127)}const Tn=xe(/\d/),Ji=xe(/[\dA-Fa-f]/),Zi=xe(/[!-/:-@[-`{-~]/);function L(e){return e!==null&&e<-2}function J(e){return e!==null&&(e<0||e===32)}function M(e){return e===-2||e===-1||e===32}const el=xe(new RegExp("\\p{P}|\\p{S}","u")),nl=xe(/\s/);function xe(e){return n;function n(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function Ne(e){const n=[];let t=-1,r=0,i=0;for(;++t<e.length;){const l=e.charCodeAt(t);let o="";if(l===37&&te(e.charCodeAt(t+1))&&te(e.charCodeAt(t+2)))i=2;else if(l<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l))||(o=String.fromCharCode(l));else if(l>55295&&l<57344){const a=e.charCodeAt(t+1);l<56320&&a>56319&&a<57344?(o=String.fromCharCode(l,a),i=1):o="�"}else o=String.fromCharCode(l);o&&(n.push(e.slice(r,t),encodeURIComponent(o)),r=t+i+1,o=""),i&&(t+=i,i=0)}return n.join("")+e.slice(r)}function q(e,n,t,r){const i=r?r-1:Number.POSITIVE_INFINITY;let l=0;return o;function o(s){return M(s)?(e.enter(t),a(s)):n(s)}function a(s){return M(s)&&l++<i?(e.consume(s),a):(e.exit(t),n(s))}}const tl={tokenize:rl};function rl(e){const n=e.attempt(this.parser.constructs.contentInitial,r,i);let t;return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),q(e,n,"linePrefix")}function i(a){return e.enter("paragraph"),l(a)}function l(a){const s=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=s),t=s,o(a)}function o(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return L(a)?(e.consume(a),e.exit("chunkText"),l):(e.consume(a),o)}}const il={tokenize:ll},dt={tokenize:ol};function ll(e){const n=this,t=[];let r=0,i,l,o;return a;function a(E){if(r<t.length){const j=t[r];return n.containerState=j[1],e.attempt(j[0].continuation,s,u)(E)}return u(E)}function s(E){if(r++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,i&&v();const j=n.events.length;let U=j,y;for(;U--;)if(n.events[U][0]==="exit"&&n.events[U][1].type==="chunkFlow"){y=n.events[U][1].end;break}k(r);let O=j;for(;O<n.events.length;)n.events[O][1].end={...y},O++;return ce(n.events,U+1,0,n.events.slice(j)),n.events.length=O,u(E)}return a(E)}function u(E){if(r===t.length){if(!i)return h(E);if(i.currentConstruct&&i.currentConstruct.concrete)return S(E);n.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(dt,c,f)(E)}function c(E){return i&&v(),k(r),h(E)}function f(E){return n.parser.lazy[n.now().line]=r!==t.length,o=n.now().offset,S(E)}function h(E){return n.containerState={},e.attempt(dt,p,S)(E)}function p(E){return r++,t.push([n.currentConstruct,n.containerState]),h(E)}function S(E){if(E===null){i&&v(),k(0),e.consume(E);return}return i=i||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:l}),b(E)}function b(E){if(E===null){z(e.exit("chunkFlow"),!0),k(0),e.consume(E);return}return L(E)?(e.consume(E),z(e.exit("chunkFlow")),r=0,n.interrupt=void 0,a):(e.consume(E),b)}function z(E,j){const U=n.sliceStream(E);if(j&&U.push(null),E.previous=l,l&&(l.next=E),l=E,i.defineSkip(E.start),i.write(U),n.parser.lazy[E.start.line]){let y=i.events.length;for(;y--;)if(i.events[y][1].start.offset<o&&(!i.events[y][1].end||i.events[y][1].end.offset>o))return;const O=n.events.length;let $=O,R,B;for(;$--;)if(n.events[$][0]==="exit"&&n.events[$][1].type==="chunkFlow"){if(R){B=n.events[$][1].end;break}R=!0}for(k(r),y=O;y<n.events.length;)n.events[y][1].end={...B},y++;ce(n.events,$+1,0,n.events.slice(O)),n.events.length=y}}function k(E){let j=t.length;for(;j-- >E;){const U=t[j];n.containerState=U[1],U[0].exit.call(n,e)}t.length=E}function v(){i.write([null]),l=void 0,i=void 0,n.containerState._closeFlow=void 0}}function ol(e,n,t){return q(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function gt(e){if(e===null||J(e)||nl(e))return 1;if(el(e))return 2}function Rn(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 Pn={name:"attention",resolveAll:al,tokenize:ul};function al(e,n){let t=-1,r,i,l,o,a,s,u,c;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;s=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},h={...e[t][1].start};yt(f,-s),yt(h,s),o={type:s>1?"strongSequence":"emphasisSequence",start:f,end:{...e[r][1].end}},a={type:s>1?"strongSequence":"emphasisSequence",start:{...e[t][1].start},end:h},l={type:s>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[t][1].start}},i={type:s>1?"strong":"emphasis",start:{...o.start},end:{...a.end}},e[r][1].end={...o.start},e[t][1].start={...a.end},u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=re(u,[["enter",e[r][1],n],["exit",e[r][1],n]])),u=re(u,[["enter",i,n],["enter",o,n],["exit",o,n],["enter",l,n]]),u=re(u,Rn(n.parser.constructs.insideSpan.null,e.slice(r+1,t),n)),u=re(u,[["exit",l,n],["enter",a,n],["exit",a,n],["exit",i,n]]),e[t][1].end.offset-e[t][1].start.offset?(c=2,u=re(u,[["enter",e[t][1],n],["exit",e[t][1],n]])):c=0,ce(e,r-1,t-r+3,u),t=r+u.length-c-2;break}}for(t=-1;++t<e.length;)e[t][1].type==="attentionSequence"&&(e[t][1].type="data");return e}function ul(e,n){const t=this.parser.constructs.attentionMarkers.null,r=this.previous,i=gt(r);let l;return o;function o(s){return l=s,e.enter("attentionSequence"),a(s)}function a(s){if(s===l)return e.consume(s),a;const u=e.exit("attentionSequence"),c=gt(s),f=!c||c===2&&i||t.includes(s),h=!i||i===2&&c||t.includes(r);return u._open=!!(l===42?f:f&&(i||!h)),u._close=!!(l===42?h:h&&(c||!f)),n(s)}}function yt(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const sl={name:"autolink",tokenize:cl};function cl(e,n,t){let r=0;return i;function i(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),l}function l(p){return se(p)?(e.consume(p),o):p===64?t(p):u(p)}function o(p){return p===43||p===45||p===46||te(p)?(r=1,a(p)):u(p)}function a(p){return p===58?(e.consume(p),r=0,s):(p===43||p===45||p===46||te(p))&&r++<32?(e.consume(p),a):(r=0,u(p))}function s(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),n):p===null||p===32||p===60||In(p)?t(p):(e.consume(p),s)}function u(p){return p===64?(e.consume(p),c):Gi(p)?(e.consume(p),u):t(p)}function c(p){return te(p)?f(p):t(p)}function f(p){return p===46?(e.consume(p),r=0,c):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),n):h(p)}function h(p){if((p===45||te(p))&&r++<63){const S=p===45?h:f;return e.consume(p),S}return t(p)}}const Ze={partial:!0,tokenize:pl};function pl(e,n,t){return r;function r(l){return M(l)?q(e,i,"linePrefix")(l):i(l)}function i(l){return l===null||L(l)?n(l):t(l)}}const rr={continuation:{tokenize:hl},exit:ml,name:"blockQuote",tokenize:fl};function fl(e,n,t){const r=this;return i;function i(o){if(o===62){const a=r.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),l}return t(o)}function l(o){return M(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(o))}}function hl(e,n,t){const r=this;return i;function i(o){return M(o)?q(e,l,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):l(o)}function l(o){return e.attempt(rr,n,t)(o)}}function ml(e){e.exit("blockQuote")}const ir={name:"characterEscape",tokenize:dl};function dl(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 Zi(l)?(e.enter("characterEscapeValue"),e.consume(l),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):t(l)}}const lr={name:"characterReference",tokenize:gl};function gl(e,n,t){const r=this;let i=0,l,o;return a;function a(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),s}function s(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),l=31,o=te,c(f))}function u(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),l=6,o=Ji,c):(e.enter("characterReferenceValue"),l=7,o=Tn,c(f))}function c(f){if(f===59&&i){const h=e.exit("characterReferenceValue");return o===te&&!Mn(r.sliceSerialize(h))?t(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return o(f)&&i++<l?(e.consume(f),c):t(f)}}const xt={partial:!0,tokenize:xl},kt={concrete:!0,name:"codeFenced",tokenize:yl};function yl(e,n,t){const r=this,i={partial:!0,tokenize:U};let l=0,o=0,a;return s;function s(y){return u(y)}function u(y){const O=r.events[r.events.length-1];return l=O&&O[1].type==="linePrefix"?O[2].sliceSerialize(O[1],!0).length:0,a=y,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(y)}function c(y){return y===a?(o++,e.consume(y),c):o<3?t(y):(e.exit("codeFencedFenceSequence"),M(y)?q(e,f,"whitespace")(y):f(y))}function f(y){return y===null||L(y)?(e.exit("codeFencedFence"),r.interrupt?n(y):e.check(xt,b,j)(y)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),h(y))}function h(y){return y===null||L(y)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(y)):M(y)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),q(e,p,"whitespace")(y)):y===96&&y===a?t(y):(e.consume(y),h)}function p(y){return y===null||L(y)?f(y):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),S(y))}function S(y){return y===null||L(y)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(y)):y===96&&y===a?t(y):(e.consume(y),S)}function b(y){return e.attempt(i,j,z)(y)}function z(y){return e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),k}function k(y){return l>0&&M(y)?q(e,v,"linePrefix",l+1)(y):v(y)}function v(y){return y===null||L(y)?e.check(xt,b,j)(y):(e.enter("codeFlowValue"),E(y))}function E(y){return y===null||L(y)?(e.exit("codeFlowValue"),v(y)):(e.consume(y),E)}function j(y){return e.exit("codeFenced"),n(y)}function U(y,O,$){let R=0;return B;function B(N){return y.enter("lineEnding"),y.consume(N),y.exit("lineEnding"),A}function A(N){return y.enter("codeFencedFence"),M(N)?q(y,T,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(N):T(N)}function T(N){return N===a?(y.enter("codeFencedFenceSequence"),P(N)):$(N)}function P(N){return N===a?(R++,y.consume(N),P):R>=o?(y.exit("codeFencedFenceSequence"),M(N)?q(y,I,"whitespace")(N):I(N)):$(N)}function I(N){return N===null||L(N)?(y.exit("codeFencedFence"),O(N)):$(N)}}}function xl(e,n,t){const r=this;return i;function i(o){return o===null?t(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l)}function l(o){return r.parser.lazy[r.now().line]?t(o):n(o)}}const cn={name:"codeIndented",tokenize:bl},kl={partial:!0,tokenize:wl};function bl(e,n,t){const r=this;return i;function i(u){return e.enter("codeIndented"),q(e,l,"linePrefix",5)(u)}function l(u){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?o(u):t(u)}function o(u){return u===null?s(u):L(u)?e.attempt(kl,o,s)(u):(e.enter("codeFlowValue"),a(u))}function a(u){return u===null||L(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),a)}function s(u){return e.exit("codeIndented"),n(u)}}function wl(e,n,t){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?t(o):L(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):q(e,l,"linePrefix",5)(o)}function l(o){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?n(o):L(o)?i(o):t(o)}}const Sl={name:"codeText",previous:El,resolve:Cl,tokenize:Il};function Cl(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 El(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Il(e,n,t){let r=0,i,l;return o;function o(f){return e.enter("codeText"),e.enter("codeTextSequence"),a(f)}function a(f){return f===96?(e.consume(f),r++,a):(e.exit("codeTextSequence"),s(f))}function s(f){return f===null?t(f):f===32?(e.enter("space"),e.consume(f),e.exit("space"),s):f===96?(l=e.enter("codeTextSequence"),i=0,c(f)):L(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),s):(e.enter("codeTextData"),u(f))}function u(f){return f===null||f===32||f===96||L(f)?(e.exit("codeTextData"),s(f)):(e.consume(f),u)}function c(f){return f===96?(e.consume(f),i++,c):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),n(f)):(l.type="codeTextData",u(f))}}class Tl{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&&Re(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),Re(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),Re(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);Re(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);Re(this.left,t.reverse())}}}function Re(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 or(e){const n={};let t=-1,r,i,l,o,a,s,u;const c=new Tl(e);for(;++t<c.length;){for(;t in n;)t=n[t];if(r=c.get(t),t&&r[1].type==="chunkFlow"&&c.get(t-1)[1].type==="listItemPrefix"&&(s=r[1]._tokenizer.events,l=0,l<s.length&&s[l][1].type==="lineEndingBlank"&&(l+=2),l<s.length&&s[l][1].type==="content"))for(;++l<s.length&&s[l][1].type!=="content";)s[l][1].type==="chunkText"&&(s[l][1]._isInFirstContentOfListItem=!0,l++);if(r[0]==="enter")r[1].contentType&&(Object.assign(n,Pl(c,t)),t=n[t],u=!0);else if(r[1]._container){for(l=t,i=void 0;l--;)if(o=c.get(l),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(i&&(c.get(i)[1].type="lineEndingBlank"),o[1].type="lineEnding",i=l);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;i&&(r[1].end={...c.get(i)[1].start},a=c.slice(i,t),a.unshift(r),c.splice(i,t-i+1,a))}}return ce(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!u}function Pl(e,n){const t=e.get(n)[1],r=e.get(n)[2];let i=n-1;const l=[];let o=t._tokenizer;o||(o=r.parser[t.contentType](t.start),t._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const a=o.events,s=[],u={};let c,f,h=-1,p=t,S=0,b=0;const z=[b];for(;p;){for(;e.get(++i)[1]!==p;);l.push(i),p._tokenizer||(c=r.sliceStream(p),p.next||c.push(null),f&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(c),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),f=p,p=p.next}for(p=t;++h<a.length;)a[h][0]==="exit"&&a[h-1][0]==="enter"&&a[h][1].type===a[h-1][1].type&&a[h][1].start.line!==a[h][1].end.line&&(b=h+1,z.push(b),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):z.pop(),h=z.length;h--;){const k=a.slice(z[h],z[h+1]),v=l.pop();s.push([v,v+k.length-1]),e.splice(v,2,k)}for(s.reverse(),h=-1;++h<s.length;)u[S+s[h][0]]=S+s[h][1],S+=s[h][1]-s[h][0]-1;return u}const Al={resolve:zl,tokenize:Ll},vl={partial:!0,tokenize:Nl};function zl(e){return or(e),e}function Ll(e,n){let t;return r;function r(a){return e.enter("content"),t=e.enter("chunkContent",{contentType:"content"}),i(a)}function i(a){return a===null?l(a):L(a)?e.check(vl,o,l)(a):(e.consume(a),i)}function l(a){return e.exit("chunkContent"),e.exit("content"),n(a)}function o(a){return e.consume(a),e.exit("chunkContent"),t.next=e.enter("chunkContent",{contentType:"content",previous:t}),t=t.next,i}}function Nl(e,n,t){const r=this;return i;function i(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),q(e,l,"linePrefix")}function l(o){if(o===null||L(o))return t(o);const a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?n(o):e.interrupt(r.parser.constructs.flow,t,n)(o)}}function ar(e,n,t,r,i,l,o,a,s){const u=s||Number.POSITIVE_INFINITY;let c=0;return f;function f(k){return k===60?(e.enter(r),e.enter(i),e.enter(l),e.consume(k),e.exit(l),h):k===null||k===32||k===41||In(k)?t(k):(e.enter(r),e.enter(o),e.enter(a),e.enter("chunkString",{contentType:"string"}),b(k))}function h(k){return k===62?(e.enter(l),e.consume(k),e.exit(l),e.exit(i),e.exit(r),n):(e.enter(a),e.enter("chunkString",{contentType:"string"}),p(k))}function p(k){return k===62?(e.exit("chunkString"),e.exit(a),h(k)):k===null||k===60||L(k)?t(k):(e.consume(k),k===92?S:p)}function S(k){return k===60||k===62||k===92?(e.consume(k),p):p(k)}function b(k){return!c&&(k===null||k===41||J(k))?(e.exit("chunkString"),e.exit(a),e.exit(o),e.exit(r),n(k)):c<u&&k===40?(e.consume(k),c++,b):k===41?(e.consume(k),c--,b):k===null||k===32||k===40||In(k)?t(k):(e.consume(k),k===92?z:b)}function z(k){return k===40||k===41||k===92?(e.consume(k),b):b(k)}}function ur(e,n,t,r,i,l){const o=this;let a=0,s;return u;function u(p){return e.enter(r),e.enter(i),e.consume(p),e.exit(i),e.enter(l),c}function c(p){return a>999||p===null||p===91||p===93&&!s||p===94&&!a&&"_hiddenFootnoteSupport"in o.parser.constructs?t(p):p===93?(e.exit(l),e.enter(i),e.consume(p),e.exit(i),e.exit(r),n):L(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===null||p===91||p===93||L(p)||a++>999?(e.exit("chunkString"),c(p)):(e.consume(p),s||(s=!M(p)),p===92?h:f)}function h(p){return p===91||p===92||p===93?(e.consume(p),a++,f):f(p)}}function sr(e,n,t,r,i,l){let o;return a;function a(h){return h===34||h===39||h===40?(e.enter(r),e.enter(i),e.consume(h),e.exit(i),o=h===40?41:h,s):t(h)}function s(h){return h===o?(e.enter(i),e.consume(h),e.exit(i),e.exit(r),n):(e.enter(l),u(h))}function u(h){return h===o?(e.exit(l),s(o)):h===null?t(h):L(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),q(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(h))}function c(h){return h===o||h===null||L(h)?(e.exit("chunkString"),u(h)):(e.consume(h),h===92?f:c)}function f(h){return h===o||h===92?(e.consume(h),c):c(h)}}function He(e,n){let t;return r;function r(i){return L(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t=!0,r):M(i)?q(e,r,t?"linePrefix":"lineSuffix")(i):n(i)}}const Dl={name:"definition",tokenize:_l},Fl={partial:!0,tokenize:Ol};function _l(e,n,t){const r=this;let i;return l;function l(p){return e.enter("definition"),o(p)}function o(p){return ur.call(r,e,a,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function a(p){return i=ze(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),s):t(p)}function s(p){return J(p)?He(e,u)(p):u(p)}function u(p){return ar(e,c,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function c(p){return e.attempt(Fl,f,f)(p)}function f(p){return M(p)?q(e,h,"whitespace")(p):h(p)}function h(p){return p===null||L(p)?(e.exit("definition"),r.parser.defined.push(i),n(p)):t(p)}}function Ol(e,n,t){return r;function r(a){return J(a)?He(e,i)(a):t(a)}function i(a){return sr(e,l,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function l(a){return M(a)?q(e,o,"whitespace")(a):o(a)}function o(a){return a===null||L(a)?n(a):t(a)}}const Ml={name:"hardBreakEscape",tokenize:Rl};function Rl(e,n,t){return r;function r(l){return e.enter("hardBreakEscape"),e.consume(l),i}function i(l){return L(l)?(e.exit("hardBreakEscape"),n(l)):t(l)}}const Bl={name:"headingAtx",resolve:jl,tokenize:Hl};function jl(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 Hl(e,n,t){let r=0;return i;function i(c){return e.enter("atxHeading"),l(c)}function l(c){return e.enter("atxHeadingSequence"),o(c)}function o(c){return c===35&&r++<6?(e.consume(c),o):c===null||J(c)?(e.exit("atxHeadingSequence"),a(c)):t(c)}function a(c){return c===35?(e.enter("atxHeadingSequence"),s(c)):c===null||L(c)?(e.exit("atxHeading"),n(c)):M(c)?q(e,a,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function s(c){return c===35?(e.consume(c),s):(e.exit("atxHeadingSequence"),a(c))}function u(c){return c===null||c===35||J(c)?(e.exit("atxHeadingText"),a(c)):(e.consume(c),u)}}const Ul=["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"],bt=["pre","script","style","textarea"],Vl={concrete:!0,name:"htmlFlow",resolveTo:Yl,tokenize:Kl},ql={partial:!0,tokenize:Wl},$l={partial:!0,tokenize:Ql};function Yl(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 Kl(e,n,t){const r=this;let i,l,o,a,s;return u;function u(d){return c(d)}function c(d){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(d),f}function f(d){return d===33?(e.consume(d),h):d===47?(e.consume(d),l=!0,b):d===63?(e.consume(d),i=3,r.interrupt?n:m):se(d)?(e.consume(d),o=String.fromCharCode(d),z):t(d)}function h(d){return d===45?(e.consume(d),i=2,p):d===91?(e.consume(d),i=5,a=0,S):se(d)?(e.consume(d),i=4,r.interrupt?n:m):t(d)}function p(d){return d===45?(e.consume(d),r.interrupt?n:m):t(d)}function S(d){const oe="CDATA[";return d===oe.charCodeAt(a++)?(e.consume(d),a===oe.length?r.interrupt?n:T:S):t(d)}function b(d){return se(d)?(e.consume(d),o=String.fromCharCode(d),z):t(d)}function z(d){if(d===null||d===47||d===62||J(d)){const oe=d===47,ke=o.toLowerCase();return!oe&&!l&&bt.includes(ke)?(i=1,r.interrupt?n(d):T(d)):Ul.includes(o.toLowerCase())?(i=6,oe?(e.consume(d),k):r.interrupt?n(d):T(d)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?t(d):l?v(d):E(d))}return d===45||te(d)?(e.consume(d),o+=String.fromCharCode(d),z):t(d)}function k(d){return d===62?(e.consume(d),r.interrupt?n:T):t(d)}function v(d){return M(d)?(e.consume(d),v):B(d)}function E(d){return d===47?(e.consume(d),B):d===58||d===95||se(d)?(e.consume(d),j):M(d)?(e.consume(d),E):B(d)}function j(d){return d===45||d===46||d===58||d===95||te(d)?(e.consume(d),j):U(d)}function U(d){return d===61?(e.consume(d),y):M(d)?(e.consume(d),U):E(d)}function y(d){return d===null||d===60||d===61||d===62||d===96?t(d):d===34||d===39?(e.consume(d),s=d,O):M(d)?(e.consume(d),y):$(d)}function O(d){return d===s?(e.consume(d),s=null,R):d===null||L(d)?t(d):(e.consume(d),O)}function $(d){return d===null||d===34||d===39||d===47||d===60||d===61||d===62||d===96||J(d)?U(d):(e.consume(d),$)}function R(d){return d===47||d===62||M(d)?E(d):t(d)}function B(d){return d===62?(e.consume(d),A):t(d)}function A(d){return d===null||L(d)?T(d):M(d)?(e.consume(d),A):t(d)}function T(d){return d===45&&i===2?(e.consume(d),K):d===60&&i===1?(e.consume(d),Q):d===62&&i===4?(e.consume(d),le):d===63&&i===3?(e.consume(d),m):d===93&&i===5?(e.consume(d),pe):L(d)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(ql,fe,P)(d)):d===null||L(d)?(e.exit("htmlFlowData"),P(d)):(e.consume(d),T)}function P(d){return e.check($l,I,fe)(d)}function I(d){return e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),N}function N(d){return d===null||L(d)?P(d):(e.enter("htmlFlowData"),T(d))}function K(d){return d===45?(e.consume(d),m):T(d)}function Q(d){return d===47?(e.consume(d),o="",ie):T(d)}function ie(d){if(d===62){const oe=o.toLowerCase();return bt.includes(oe)?(e.consume(d),le):T(d)}return se(d)&&o.length<8?(e.consume(d),o+=String.fromCharCode(d),ie):T(d)}function pe(d){return d===93?(e.consume(d),m):T(d)}function m(d){return d===62?(e.consume(d),le):d===45&&i===2?(e.consume(d),m):T(d)}function le(d){return d===null||L(d)?(e.exit("htmlFlowData"),fe(d)):(e.consume(d),le)}function fe(d){return e.exit("htmlFlow"),n(d)}}function Ql(e,n,t){const r=this;return i;function i(o){return L(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l):t(o)}function l(o){return r.parser.lazy[r.now().line]?t(o):n(o)}}function Wl(e,n,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Ze,n,t)}}const Xl={name:"htmlText",tokenize:Gl};function Gl(e,n,t){const r=this;let i,l,o;return a;function a(m){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(m),s}function s(m){return m===33?(e.consume(m),u):m===47?(e.consume(m),U):m===63?(e.consume(m),E):se(m)?(e.consume(m),$):t(m)}function u(m){return m===45?(e.consume(m),c):m===91?(e.consume(m),l=0,S):se(m)?(e.consume(m),v):t(m)}function c(m){return m===45?(e.consume(m),p):t(m)}function f(m){return m===null?t(m):m===45?(e.consume(m),h):L(m)?(o=f,Q(m)):(e.consume(m),f)}function h(m){return m===45?(e.consume(m),p):f(m)}function p(m){return m===62?K(m):m===45?h(m):f(m)}function S(m){const le="CDATA[";return m===le.charCodeAt(l++)?(e.consume(m),l===le.length?b:S):t(m)}function b(m){return m===null?t(m):m===93?(e.consume(m),z):L(m)?(o=b,Q(m)):(e.consume(m),b)}function z(m){return m===93?(e.consume(m),k):b(m)}function k(m){return m===62?K(m):m===93?(e.consume(m),k):b(m)}function v(m){return m===null||m===62?K(m):L(m)?(o=v,Q(m)):(e.consume(m),v)}function E(m){return m===null?t(m):m===63?(e.consume(m),j):L(m)?(o=E,Q(m)):(e.consume(m),E)}function j(m){return m===62?K(m):E(m)}function U(m){return se(m)?(e.consume(m),y):t(m)}function y(m){return m===45||te(m)?(e.consume(m),y):O(m)}function O(m){return L(m)?(o=O,Q(m)):M(m)?(e.consume(m),O):K(m)}function $(m){return m===45||te(m)?(e.consume(m),$):m===47||m===62||J(m)?R(m):t(m)}function R(m){return m===47?(e.consume(m),K):m===58||m===95||se(m)?(e.consume(m),B):L(m)?(o=R,Q(m)):M(m)?(e.consume(m),R):K(m)}function B(m){return m===45||m===46||m===58||m===95||te(m)?(e.consume(m),B):A(m)}function A(m){return m===61?(e.consume(m),T):L(m)?(o=A,Q(m)):M(m)?(e.consume(m),A):R(m)}function T(m){return m===null||m===60||m===61||m===62||m===96?t(m):m===34||m===39?(e.consume(m),i=m,P):L(m)?(o=T,Q(m)):M(m)?(e.consume(m),T):(e.consume(m),I)}function P(m){return m===i?(e.consume(m),i=void 0,N):m===null?t(m):L(m)?(o=P,Q(m)):(e.consume(m),P)}function I(m){return m===null||m===34||m===39||m===60||m===61||m===96?t(m):m===47||m===62||J(m)?R(m):(e.consume(m),I)}function N(m){return m===47||m===62||J(m)?R(m):t(m)}function K(m){return m===62?(e.consume(m),e.exit("htmlTextData"),e.exit("htmlText"),n):t(m)}function Q(m){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),ie}function ie(m){return M(m)?q(e,pe,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(m):pe(m)}function pe(m){return e.enter("htmlTextData"),o(m)}}const Bn={name:"labelEnd",resolveAll:no,resolveTo:to,tokenize:ro},Jl={tokenize:io},Zl={tokenize:lo},eo={tokenize:oo};function no(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 to(e,n){let t=e.length,r=0,i,l,o,a;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(o){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"&&(o=t);const s={type:e[l][1].type==="labelLink"?"link":"image",start:{...e[l][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[l][1].start},end:{...e[o][1].end}},c={type:"labelText",start:{...e[l+r+2][1].end},end:{...e[o-2][1].start}};return a=[["enter",s,n],["enter",u,n]],a=re(a,e.slice(l+1,l+r+3)),a=re(a,[["enter",c,n]]),a=re(a,Rn(n.parser.constructs.insideSpan.null,e.slice(l+r+4,o-3),n)),a=re(a,[["exit",c,n],e[o-2],e[o-1],["exit",u,n]]),a=re(a,e.slice(o+1)),a=re(a,[["exit",s,n]]),ce(e,l,e.length,a),e}function ro(e,n,t){const r=this;let i=r.events.length,l,o;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 a;function a(h){return l?l._inactive?f(h):(o=r.parser.defined.includes(ze(r.sliceSerialize({start:l.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(h),e.exit("labelMarker"),e.exit("labelEnd"),s):t(h)}function s(h){return h===40?e.attempt(Jl,c,o?c:f)(h):h===91?e.attempt(Zl,c,o?u:f)(h):o?c(h):f(h)}function u(h){return e.attempt(eo,c,f)(h)}function c(h){return n(h)}function f(h){return l._balanced=!0,t(h)}}function io(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 J(f)?He(e,l)(f):l(f)}function l(f){return f===41?c(f):ar(e,o,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function o(f){return J(f)?He(e,s)(f):c(f)}function a(f){return t(f)}function s(f){return f===34||f===39||f===40?sr(e,u,t,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):c(f)}function u(f){return J(f)?He(e,c)(f):c(f)}function c(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),n):t(f)}}function lo(e,n,t){const r=this;return i;function i(a){return ur.call(r,e,l,o,"reference","referenceMarker","referenceString")(a)}function l(a){return r.parser.defined.includes(ze(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?n(a):t(a)}function o(a){return t(a)}}function oo(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 ao={name:"labelStartImage",resolveAll:Bn.resolveAll,tokenize:uo};function uo(e,n,t){const r=this;return i;function i(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),l}function l(a){return a===91?(e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelImage"),o):t(a)}function o(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(a):n(a)}}const so={name:"labelStartLink",resolveAll:Bn.resolveAll,tokenize:co};function co(e,n,t){const r=this;return i;function i(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),l}function l(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(o):n(o)}}const pn={name:"lineEnding",tokenize:po};function po(e,n){return t;function t(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),q(e,n,"linePrefix")}}const Xe={name:"thematicBreak",tokenize:fo};function fo(e,n,t){let r=0,i;return l;function l(u){return e.enter("thematicBreak"),o(u)}function o(u){return i=u,a(u)}function a(u){return u===i?(e.enter("thematicBreakSequence"),s(u)):r>=3&&(u===null||L(u))?(e.exit("thematicBreak"),n(u)):t(u)}function s(u){return u===i?(e.consume(u),r++,s):(e.exit("thematicBreakSequence"),M(u)?q(e,a,"whitespace")(u):a(u))}}const G={continuation:{tokenize:yo},exit:ko,name:"list",tokenize:go},ho={partial:!0,tokenize:bo},mo={partial:!0,tokenize:xo};function go(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,o=0;return a;function a(p){const S=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(S==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:Tn(p)){if(r.containerState.type||(r.containerState.type=S,e.enter(S,{_container:!0})),S==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(Xe,t,u)(p):u(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(p)}return t(p)}function s(p){return Tn(p)&&++o<10?(e.consume(p),s):(!r.interrupt||o<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),u(p)):t(p)}function u(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(Ze,r.interrupt?t:c,e.attempt(ho,h,f))}function c(p){return r.containerState.initialBlankLine=!0,l++,h(p)}function f(p){return M(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),h):t(p)}function h(p){return r.containerState.size=l+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(p)}}function yo(e,n,t){const r=this;return r.containerState._closeFlow=void 0,e.check(Ze,i,l);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,q(e,n,"listItemIndent",r.containerState.size+1)(a)}function l(a){return r.containerState.furtherBlankLines||!M(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(mo,n,o)(a))}function o(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,q(e,e.attempt(G,n,t),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function xo(e,n,t){const r=this;return q(e,i,"listItemIndent",r.containerState.size+1);function i(l){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?n(l):t(l)}}function ko(e){e.exit(this.containerState.type)}function bo(e,n,t){const r=this;return q(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(l){const o=r.events[r.events.length-1];return!M(l)&&o&&o[1].type==="listItemPrefixWhitespace"?n(l):t(l)}}const wt={name:"setextUnderline",resolveTo:wo,tokenize:So};function wo(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 o={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",o,n]),e.splice(l+1,0,["exit",e[r][1],n]),e[r][1].end={...e[l][1].end}):e[r][1]=o,e.push(["exit",o,n]),e}function So(e,n,t){const r=this;let i;return l;function l(u){let c=r.events.length,f;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){f=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(e.enter("setextHeadingLine"),i=u,o(u)):t(u)}function o(u){return e.enter("setextHeadingLineSequence"),a(u)}function a(u){return u===i?(e.consume(u),a):(e.exit("setextHeadingLineSequence"),M(u)?q(e,s,"lineSuffix")(u):s(u))}function s(u){return u===null||L(u)?(e.exit("setextHeadingLine"),n(u)):t(u)}}const Co={tokenize:Eo};function Eo(e){const n=this,t=e.attempt(Ze,r,e.attempt(this.parser.constructs.flowInitial,i,q(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Al,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 Io={resolveAll:pr()},To=cr("string"),Po=cr("text");function cr(e){return{resolveAll:pr(e==="text"?Ao:void 0),tokenize:n};function n(t){const r=this,i=this.parser.constructs[e],l=t.attempt(i,o,a);return o;function o(c){return u(c)?l(c):a(c)}function a(c){if(c===null){t.consume(c);return}return t.enter("data"),t.consume(c),s}function s(c){return u(c)?(t.exit("data"),l(c)):(t.consume(c),s)}function u(c){if(c===null)return!0;const f=i[c];let h=-1;if(f)for(;++h<f.length;){const p=f[h];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function pr(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 Ao(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,o=-1,a=0,s;for(;l--;){const u=i[l];if(typeof u=="string"){for(o=u.length;u.charCodeAt(o-1)===32;)a++,o--;if(o)break;o=-1}else if(u===-2)s=!0,a++;else if(u!==-1){l++;break}}if(n._contentTypeTextTrailing&&t===e.length&&(a=0),a){const u={type:t===e.length||s||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:l?o:r.start._bufferIndex+o,_index:r.start._index+l,line:r.end.line,column:r.end.column-a,offset:r.end.offset-a},end:{...r.end}};r.end={...u.start},r.start.offset===r.end.offset?Object.assign(r,u):(e.splice(t,0,["enter",u,n],["exit",u,n]),t+=2)}t++}return e}const vo={42:G,43:G,45:G,48:G,49:G,50:G,51:G,52:G,53:G,54:G,55:G,56:G,57:G,62:rr},zo={91:Dl},Lo={[-2]:cn,[-1]:cn,32:cn},No={35:Bl,42:Xe,45:[wt,Xe],60:Vl,61:wt,95:Xe,96:kt,126:kt},Do={38:lr,92:ir},Fo={[-5]:pn,[-4]:pn,[-3]:pn,33:ao,38:lr,42:Pn,60:[sl,Xl],91:so,92:[Ml,ir],93:Bn,95:Pn,96:Sl},_o={null:[Pn,Io]},Oo={null:[42,95]},Mo={null:[]},Ro=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Oo,contentInitial:zo,disable:Mo,document:vo,flow:No,flowInitial:Lo,insideSpan:_o,string:Do,text:Fo},Symbol.toStringTag,{value:"Module"}));function Bo(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 o=[],a=[];const s={attempt:O(U),check:O(y),consume:v,enter:E,exit:j,interrupt:O(y,{interrupt:!0})},u={code:null,containerState:{},defineSkip:b,events:[],now:S,parser:e,previous:null,sliceSerialize:h,sliceStream:p,write:f};let c=n.tokenize.call(u,s);return n.resolveAll&&l.push(n),u;function f(A){return o=re(o,A),z(),o[o.length-1]!==null?[]:($(n,0),u.events=Rn(l,u.events,u),u.events)}function h(A,T){return Ho(p(A),T)}function p(A){return jo(o,A)}function S(){const{_bufferIndex:A,_index:T,line:P,column:I,offset:N}=r;return{_bufferIndex:A,_index:T,line:P,column:I,offset:N}}function b(A){i[A.line]=A.column,B()}function z(){let A;for(;r._index<o.length;){const T=o[r._index];if(typeof T=="string")for(A=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===A&&r._bufferIndex<T.length;)k(T.charCodeAt(r._bufferIndex));else k(T)}}function k(A){c=c(A)}function v(A){L(A)?(r.line++,r.column=1,r.offset+=A===-3?2:1,B()):A!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=A}function E(A,T){const P=T||{};return P.type=A,P.start=S(),u.events.push(["enter",P,u]),a.push(P),P}function j(A){const T=a.pop();return T.end=S(),u.events.push(["exit",T,u]),T}function U(A,T){$(A,T.from)}function y(A,T){T.restore()}function O(A,T){return P;function P(I,N,K){let Q,ie,pe,m;return Array.isArray(I)?fe(I):"tokenize"in I?fe([I]):le(I);function le(W){return De;function De(de){const Ce=de!==null&&W[de],Ee=de!==null&&W.null,Ye=[...Array.isArray(Ce)?Ce:Ce?[Ce]:[],...Array.isArray(Ee)?Ee:Ee?[Ee]:[]];return fe(Ye)(de)}}function fe(W){return Q=W,ie=0,W.length===0?K:d(W[ie])}function d(W){return De;function De(de){return m=R(),pe=W,W.partial||(u.currentConstruct=W),W.name&&u.parser.constructs.disable.null.includes(W.name)?ke():W.tokenize.call(T?Object.assign(Object.create(u),T):u,s,oe,ke)(de)}}function oe(W){return A(pe,m),N}function ke(W){return m.restore(),++ie<Q.length?d(Q[ie]):K}}}function $(A,T){A.resolveAll&&!l.includes(A)&&l.push(A),A.resolve&&ce(u.events,T,u.events.length-T,A.resolve(u.events.slice(T),u)),A.resolveTo&&(u.events=A.resolveTo(u.events,u))}function R(){const A=S(),T=u.previous,P=u.currentConstruct,I=u.events.length,N=Array.from(a);return{from:I,restore:K};function K(){r=A,u.previous=T,u.currentConstruct=P,u.events.length=I,a=N,B()}}function B(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function jo(e,n){const t=n.start._index,r=n.start._bufferIndex,i=n.end._index,l=n.end._bufferIndex;let o;if(t===i)o=[e[t].slice(r,l)];else{if(o=e.slice(t,i),r>-1){const a=o[0];typeof a=="string"?o[0]=a.slice(r):o.shift()}l>0&&o.push(e[i].slice(0,l))}return o}function Ho(e,n){let t=-1;const r=[];let i;for(;++t<e.length;){const l=e[t];let o;if(typeof l=="string")o=l;else switch(l){case-5:{o="\r";break}case-4:{o=`
|
|
3
3
|
`;break}case-3:{o=`\r
|
|
4
4
|
`;break}case-2:{o=n?" ":" ";break}case-1:{if(!n&&i)continue;o=" ";break}default:o=String.fromCharCode(l)}i=l===-2,r.push(o)}return r.join("")}function Uo(e){const r={constructs:Qi([Ro,...(e||{}).extensions||[]]),content:i(tl),defined:[],document:i(il),flow:i(Co),lazy:{},string:i(To),text:i(Po)};return r;function i(l){return o;function o(a){return Bo(r,l,a)}}}function Vo(e){for(;!or(e););return e}const St=/[\0\t\n\r]/g;function qo(){let e=1,n="",t=!0,r;return i;function i(l,o,a){const s=[];let u,c,f,h,p;for(l=n+(typeof l=="string"?l.toString():new TextDecoder(o||void 0).decode(l)),f=0,n="",t&&(l.charCodeAt(0)===65279&&f++,t=void 0);f<l.length;){if(St.lastIndex=f,u=St.exec(l),h=u&&u.index!==void 0?u.index:l.length,p=l.charCodeAt(h),!u){n=l.slice(f);break}if(p===10&&f===h&&r)s.push(-3),r=void 0;else switch(r&&(s.push(-5),r=void 0),f<h&&(s.push(l.slice(f,h)),e+=h-f),p){case 0:{s.push(65533),e++;break}case 9:{for(c=Math.ceil(e/4)*4,s.push(-2);e++<c;)s.push(-1);break}case 10:{s.push(-4),e=1;break}default:r=!0,e=1}f=h+1}return a&&(r&&s.push(-5),n&&s.push(n),s.push(null)),s}}const $o=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Yo(e){return e.replace($o,Ko)}function Ko(e,n,t){if(n)return n;if(t.charCodeAt(0)===35){const i=t.charCodeAt(1),l=i===120||i===88;return tr(t.slice(l?2:1),l?16:10)}return Mn(t)||e}const fr={}.hasOwnProperty;function Qo(e,n,t){return typeof n!="string"&&(t=n,n=void 0),Wo(t)(Vo(Uo(t).document().write(qo()(e,n,!0))))}function Wo(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(Qn),autolinkProtocol:R,autolinkEmail:R,atxHeading:l($n),blockQuote:l(Ee),characterEscape:R,characterReference:R,codeFenced:l(Ye),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:l(Ye,o),codeText:l(Cr,o),codeTextData:R,data:R,codeFlowValue:R,definition:l(Er),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:l(Ir),hardBreakEscape:l(Yn),hardBreakTrailing:l(Yn),htmlFlow:l(Kn,o),htmlFlowData:R,htmlText:l(Kn,o),htmlTextData:R,image:l(Tr),label:o,link:l(Qn),listItem:l(Pr),listItemValue:h,listOrdered:l(Wn,f),listUnordered:l(Wn),paragraph:l(Ar),reference:d,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:l($n),strong:l(vr),thematicBreak:l(Lr)},exit:{atxHeading:s(),atxHeadingSequence:U,autolink:s(),autolinkEmail:Ce,autolinkProtocol:de,blockQuote:s(),characterEscapeValue:B,characterReferenceMarkerHexadecimal:ke,characterReferenceMarkerNumeric:ke,characterReferenceValue:W,characterReference:De,codeFenced:s(z),codeFencedFence:b,codeFencedFenceInfo:p,codeFencedFenceMeta:S,codeFlowValue:B,codeIndented:s(k),codeText:s(N),codeTextData:B,data:B,definition:s(),definitionDestinationString:j,definitionLabelString:v,definitionTitleString:E,emphasis:s(),hardBreakEscape:s(T),hardBreakTrailing:s(T),htmlFlow:s(P),htmlFlowData:B,htmlText:s(I),htmlTextData:B,image:s(Q),label:pe,labelText:ie,lineEnding:A,link:s(K),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:oe,resourceDestinationString:m,resourceTitleString:le,resource:fe,setextHeading:s($),setextHeadingLineSequence:O,setextHeadingText:y,strong:s(),thematicBreak:s()}};hr(n,(e||{}).mdastExtensions||[]);const t={};return r;function r(g){let w={type:"root",children:[]};const D={stack:[w],tokenStack:[],config:n,enter:a,exit:u,buffer:o,resume:c,data:t},_=[];let H=-1;for(;++H<g.length;)if(g[H][1].type==="listOrdered"||g[H][1].type==="listUnordered")if(g[H][0]==="enter")_.push(H);else{const ae=_.pop();H=i(g,ae,H)}for(H=-1;++H<g.length;){const ae=n[g[H][0]];fr.call(ae,g[H][1].type)&&ae[g[H][1].type].call(Object.assign({sliceSerialize:g[H][2].sliceSerialize},D),g[H][1])}if(D.tokenStack.length>0){const ae=D.tokenStack[D.tokenStack.length-1];(ae[1]||Ct).call(D,void 0,ae[0])}for(w.position={start:ye(g.length>0?g[0][1].start:{line:1,column:1,offset:0}),end:ye(g.length>0?g[g.length-2][1].end:{line:1,column:1,offset:0})},H=-1;++H<n.transforms.length;)w=n.transforms[H](w)||w;return w}function i(g,w,D){let _=w-1,H=-1,ae=!1,be,he,Fe,_e;for(;++_<=D;){const ee=g[_];switch(ee[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ee[0]==="enter"?H++:H--,_e=void 0;break}case"lineEndingBlank":{ee[0]==="enter"&&(be&&!_e&&!H&&!Fe&&(Fe=_),_e=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:_e=void 0}if(!H&&ee[0]==="enter"&&ee[1].type==="listItemPrefix"||H===-1&&ee[0]==="exit"&&(ee[1].type==="listUnordered"||ee[1].type==="listOrdered")){if(be){let Ie=_;for(he=void 0;Ie--;){const me=g[Ie];if(me[1].type==="lineEnding"||me[1].type==="lineEndingBlank"){if(me[0]==="exit")continue;he&&(g[he][1].type="lineEndingBlank",ae=!0),me[1].type="lineEnding",he=Ie}else if(!(me[1].type==="linePrefix"||me[1].type==="blockQuotePrefix"||me[1].type==="blockQuotePrefixWhitespace"||me[1].type==="blockQuoteMarker"||me[1].type==="listItemIndent"))break}Fe&&(!he||Fe<he)&&(be._spread=!0),be.end=Object.assign({},he?g[he][1].start:ee[1].end),g.splice(he||_,0,["exit",be,ee[2]]),_++,D++}if(ee[1].type==="listItemPrefix"){const Ie={type:"listItem",_spread:!1,start:Object.assign({},ee[1].start),end:void 0};be=Ie,g.splice(_,0,["enter",Ie,ee[2]]),_++,D++,Fe=void 0,_e=!0}}}return g[w][1]._spread=ae,D}function l(g,w){return D;function D(_){a.call(this,g(_),_),w&&w.call(this,_)}}function o(){this.stack.push({type:"fragment",children:[]})}function a(g,w,D){this.stack[this.stack.length-1].children.push(g),this.stack.push(g),this.tokenStack.push([w,D||void 0]),g.position={start:ye(w.start),end:void 0}}function s(g){return w;function w(D){g&&g.call(this,D),u.call(this,D)}}function u(g,w){const D=this.stack.pop(),_=this.tokenStack.pop();if(_)_[0].type!==g.type&&(w?w.call(this,g,_[0]):(_[1]||Ct).call(this,g,_[0]));else throw new Error("Cannot close `"+g.type+"` ("+je({start:g.start,end:g.end})+"): it’s not open");D.position.end=ye(g.end)}function c(){return Yi(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function h(g){if(this.data.expectingFirstListItemValue){const w=this.stack[this.stack.length-2];w.start=Number.parseInt(this.sliceSerialize(g),10),this.data.expectingFirstListItemValue=void 0}}function p(){const g=this.resume(),w=this.stack[this.stack.length-1];w.lang=g}function S(){const g=this.resume(),w=this.stack[this.stack.length-1];w.meta=g}function b(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function z(){const g=this.resume(),w=this.stack[this.stack.length-1];w.value=g.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function k(){const g=this.resume(),w=this.stack[this.stack.length-1];w.value=g.replace(/(\r?\n|\r)$/g,"")}function v(g){const w=this.resume(),D=this.stack[this.stack.length-1];D.label=w,D.identifier=ze(this.sliceSerialize(g)).toLowerCase()}function E(){const g=this.resume(),w=this.stack[this.stack.length-1];w.title=g}function j(){const g=this.resume(),w=this.stack[this.stack.length-1];w.url=g}function U(g){const w=this.stack[this.stack.length-1];if(!w.depth){const D=this.sliceSerialize(g).length;w.depth=D}}function y(){this.data.setextHeadingSlurpLineEnding=!0}function O(g){const w=this.stack[this.stack.length-1];w.depth=this.sliceSerialize(g).codePointAt(0)===61?1:2}function $(){this.data.setextHeadingSlurpLineEnding=void 0}function R(g){const D=this.stack[this.stack.length-1].children;let _=D[D.length-1];(!_||_.type!=="text")&&(_=zr(),_.position={start:ye(g.start),end:void 0},D.push(_)),this.stack.push(_)}function B(g){const w=this.stack.pop();w.value+=this.sliceSerialize(g),w.position.end=ye(g.end)}function A(g){const w=this.stack[this.stack.length-1];if(this.data.atHardBreak){const D=w.children[w.children.length-1];D.position.end=ye(g.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(w.type)&&(R.call(this,g),B.call(this,g))}function T(){this.data.atHardBreak=!0}function P(){const g=this.resume(),w=this.stack[this.stack.length-1];w.value=g}function I(){const g=this.resume(),w=this.stack[this.stack.length-1];w.value=g}function N(){const g=this.resume(),w=this.stack[this.stack.length-1];w.value=g}function K(){const g=this.stack[this.stack.length-1];if(this.data.inReference){const w=this.data.referenceType||"shortcut";g.type+="Reference",g.referenceType=w,delete g.url,delete g.title}else delete g.identifier,delete g.label;this.data.referenceType=void 0}function Q(){const g=this.stack[this.stack.length-1];if(this.data.inReference){const w=this.data.referenceType||"shortcut";g.type+="Reference",g.referenceType=w,delete g.url,delete g.title}else delete g.identifier,delete g.label;this.data.referenceType=void 0}function ie(g){const w=this.sliceSerialize(g),D=this.stack[this.stack.length-2];D.label=Yo(w),D.identifier=ze(w).toLowerCase()}function pe(){const g=this.stack[this.stack.length-1],w=this.resume(),D=this.stack[this.stack.length-1];if(this.data.inReference=!0,D.type==="link"){const _=g.children;D.children=_}else D.alt=w}function m(){const g=this.resume(),w=this.stack[this.stack.length-1];w.url=g}function le(){const g=this.resume(),w=this.stack[this.stack.length-1];w.title=g}function fe(){this.data.inReference=void 0}function d(){this.data.referenceType="collapsed"}function oe(g){const w=this.resume(),D=this.stack[this.stack.length-1];D.label=w,D.identifier=ze(this.sliceSerialize(g)).toLowerCase(),this.data.referenceType="full"}function ke(g){this.data.characterReferenceType=g.type}function W(g){const w=this.sliceSerialize(g),D=this.data.characterReferenceType;let _;D?(_=tr(w,D==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):_=Mn(w);const H=this.stack[this.stack.length-1];H.value+=_}function De(g){const w=this.stack.pop();w.position.end=ye(g.end)}function de(g){B.call(this,g);const w=this.stack[this.stack.length-1];w.url=this.sliceSerialize(g)}function Ce(g){B.call(this,g);const w=this.stack[this.stack.length-1];w.url="mailto:"+this.sliceSerialize(g)}function Ee(){return{type:"blockquote",children:[]}}function Ye(){return{type:"code",lang:null,meta:null,value:""}}function Cr(){return{type:"inlineCode",value:""}}function Er(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Ir(){return{type:"emphasis",children:[]}}function $n(){return{type:"heading",depth:0,children:[]}}function Yn(){return{type:"break"}}function Kn(){return{type:"html",value:""}}function Tr(){return{type:"image",title:null,url:"",alt:null}}function Qn(){return{type:"link",title:null,url:"",children:[]}}function Wn(g){return{type:"list",ordered:g.type==="listOrdered",start:null,spread:g._spread,children:[]}}function Pr(g){return{type:"listItem",spread:g._spread,checked:null,children:[]}}function Ar(){return{type:"paragraph",children:[]}}function vr(){return{type:"strong",children:[]}}function zr(){return{type:"text",value:""}}function Lr(){return{type:"thematicBreak"}}}function ye(e){return{line:e.line,column:e.column,offset:e.offset}}function hr(e,n){let t=-1;for(;++t<n.length;){const r=n[t];Array.isArray(r)?hr(e,r):Xo(e,r)}}function Xo(e,n){let t;for(t in n)if(fr.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 Ct(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+je({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+je({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+je({start:n.start,end:n.end})+") is still open")}function Go(e){const n=this;n.parser=t;function t(r){return Qo(r,{...n.data("settings"),...e,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}function Jo(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 Zo(e,n){const t={type:"element",tagName:"br",properties:{},children:[]};return e.patch(n,t),[e.applyData(n,t),{type:"text",value:`
|
|
@@ -11,4 +11,4 @@ import{a2 as jt,j as C,i as Ae,b as bn,h as Ht,D as Nr,F as Dr,a3 as Fr,g as _r,
|
|
|
11
11
|
`});++r<e.length;)r&&t.push({type:"text",value:`
|
|
12
12
|
`}),t.push(e[r]);return n&&e.length>0&&t.push({type:"text",value:`
|
|
13
13
|
`}),t}function Lt(e){let n=0,t=e.charCodeAt(n);for(;t===9||t===32;)n++,t=e.charCodeAt(n);return e.slice(n)}function Nt(e,n){const t=Ha(e,n),r=t.one(e,void 0),i=za(t),l=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&l.children.push({type:"text",value:`
|
|
14
|
-
`},i),l}function Ya(e,n){return e&&"run"in e?async function(t,r){const i=Nt(t,{file:r,...n});await e.run(i,r)}:function(t,r){return Nt(t,{file:r,...e||n})}}function Dt(e){if(e)throw e}var fn,Ft;function Ka(){if(Ft)return fn;Ft=1;var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString,t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(u){return typeof Array.isArray=="function"?Array.isArray(u):n.call(u)==="[object Array]"},l=function(u){if(!u||n.call(u)!=="[object Object]")return!1;var c=e.call(u,"constructor"),f=u.constructor&&u.constructor.prototype&&e.call(u.constructor.prototype,"isPrototypeOf");if(u.constructor&&!c&&!f)return!1;var h;for(h in u);return typeof h>"u"||e.call(u,h)},o=function(u,c){t&&c.name==="__proto__"?t(u,c.name,{enumerable:!0,configurable:!0,value:c.newValue,writable:!0}):u[c.name]=c.newValue},a=function(u,c){if(c==="__proto__")if(e.call(u,c)){if(r)return r(u,c).value}else return;return u[c]};return fn=function s(){var u,c,f,h,p,S,b=arguments[0],z=1,k=arguments.length,v=!1;for(typeof b=="boolean"&&(v=b,b=arguments[1]||{},z=2),(b==null||typeof b!="object"&&typeof b!="function")&&(b={});z<k;++z)if(u=arguments[z],u!=null)for(c in u)f=a(b,c),h=a(u,c),b!==h&&(v&&h&&(l(h)||(p=i(h)))?(p?(p=!1,S=f&&i(f)?f:[]):S=f&&l(f)?f:{},o(b,{name:c,newValue:s(v,S,h)})):typeof h<"u"&&o(b,{name:c,newValue:h}));return b},fn}var Qa=Ka();const hn=jt(Qa);function vn(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 Wa(){const e=[],n={run:t,use:r};return n;function t(...i){let l=-1;const o=i.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);a(null,...i);function a(s,...u){const c=e[++l];let f=-1;if(s){o(s);return}for(;++f<i.length;)(u[f]===null||u[f]===void 0)&&(u[f]=i[f]);i=u,c?Xa(c,a)(...u):o(null,...u)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),n}}function Xa(e,n){let t;return r;function r(...o){const a=e.length>o.length;let s;a&&o.push(i);try{s=e.apply(this,o)}catch(u){const c=u;if(a&&t)throw c;return i(c)}a||(s&&s.then&&typeof s.then=="function"?s.then(l,i):s instanceof Error?i(s):l(s))}function i(o,...a){t||(t=!0,n(o,...a))}function l(o){i(null,o)}}const ue={basename:Ga,dirname:Ja,extname:Za,join:eu,sep:"/"};function Ga(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');$e(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 o=-1,a=n.length-1;for(;i--;)if(e.codePointAt(i)===47){if(l){t=i+1;break}}else o<0&&(l=!0,o=i+1),a>-1&&(e.codePointAt(i)===n.codePointAt(a--)?a<0&&(r=i):(a=-1,r=o));return t===r?r=o:r<0&&(r=e.length),e.slice(t,r)}function Ja(e){if($e(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 Za(e){$e(e);let n=e.length,t=-1,r=0,i=-1,l=0,o;for(;n--;){const a=e.codePointAt(n);if(a===47){if(o){r=n+1;break}continue}t<0&&(o=!0,t=n+1),a===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 eu(...e){let n=-1,t;for(;++n<e.length;)$e(e[n]),e[n]&&(t=t===void 0?e[n]:t+"/"+e[n]);return t===void 0?".":nu(t)}function nu(e){$e(e);const n=e.codePointAt(0)===47;let t=tu(e,!n);return t.length===0&&!n&&(t="."),t.length>0&&e.codePointAt(e.length-1)===47&&(t+="/"),n?"/"+t:t}function tu(e,n){let t="",r=0,i=-1,l=0,o=-1,a,s;for(;++o<=e.length;){if(o<e.length)a=e.codePointAt(o);else{if(a===47)break;a=47}if(a===47){if(!(i===o-1||l===1))if(i!==o-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(s=t.lastIndexOf("/"),s!==t.length-1){s<0?(t="",r=0):(t=t.slice(0,s),r=t.length-1-t.lastIndexOf("/")),i=o,l=0;continue}}else if(t.length>0){t="",r=0,i=o,l=0;continue}}n&&(t=t.length>0?t+"/..":"..",r=2)}else t.length>0?t+="/"+e.slice(i+1,o):t=e.slice(i+1,o),r=o-i-1;i=o,l=0}else a===46&&l>-1?l++:l=-1}return t}function $e(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const ru={cwd:iu};function iu(){return"/"}function zn(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function lu(e){if(typeof e=="string")e=new URL(e);else if(!zn(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 ou(e)}function ou(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 mn=["history","path","basename","stem","extname","dirname"];class Sr{constructor(n){let t;n?zn(n)?t={path:n}:typeof n=="string"||au(n)?t={value:n}:t=n:t={},this.cwd="cwd"in t?"":ru.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<mn.length;){const l=mn[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)mn.includes(i)||(this[i]=t[i])}get basename(){return typeof this.path=="string"?ue.basename(this.path):void 0}set basename(n){gn(n,"basename"),dn(n,"basename"),this.path=ue.join(this.dirname||"",n)}get dirname(){return typeof this.path=="string"?ue.dirname(this.path):void 0}set dirname(n){_t(this.basename,"dirname"),this.path=ue.join(n||"",this.basename)}get extname(){return typeof this.path=="string"?ue.extname(this.path):void 0}set extname(n){if(dn(n,"extname"),_t(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=ue.join(this.dirname,this.stem+(n||""))}get path(){return this.history[this.history.length-1]}set path(n){zn(n)&&(n=lu(n)),gn(n,"path"),this.path!==n&&this.history.push(n)}get stem(){return typeof this.path=="string"?ue.basename(this.path,this.extname):void 0}set stem(n){gn(n,"stem"),dn(n,"stem"),this.path=ue.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 X(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 dn(e,n){if(e&&e.includes(ue.sep))throw new Error("`"+n+"` cannot be a path: did not expect `"+ue.sep+"`")}function gn(e,n){if(!e)throw new Error("`"+n+"` cannot be empty")}function _t(e,n){if(!e)throw new Error("Setting `"+n+"` requires `path` to be set too")}function au(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const uu=function(e){const r=this.constructor.prototype,i=r[e],l=function(){return i.apply(l,arguments)};return Object.setPrototypeOf(l,r),l},su={}.hasOwnProperty;class qn extends uu{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=Wa()}copy(){const n=new qn;let t=-1;for(;++t<this.attachers.length;){const r=this.attachers[t];n.use(...r)}return n.data(hn(!0,{},this.namespace)),n}data(n,t){return typeof n=="string"?arguments.length===2?(kn("data",this.frozen),this.namespace[n]=t,this):su.call(this.namespace,n)&&this.namespace[n]||void 0:n?(kn("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=We(n),r=this.parser||this.Parser;return yn("parse",r),r(String(t),t)}process(n,t){const r=this;return this.freeze(),yn("process",this.parser||this.Parser),xn("process",this.compiler||this.Compiler),t?i(void 0,t):new Promise(i);function i(l,o){const a=We(n),s=r.parse(a);r.run(s,a,function(c,f,h){if(c||!f||!h)return u(c);const p=f,S=r.stringify(p,h);fu(S)?h.value=S:h.result=S,u(c,h)});function u(c,f){c||!f?o(c):l?l(f):t(void 0,f)}}}processSync(n){let t=!1,r;return this.freeze(),yn("processSync",this.parser||this.Parser),xn("processSync",this.compiler||this.Compiler),this.process(n,i),Mt("processSync","process",t),r;function i(l,o){t=!0,Dt(l),r=o}}run(n,t,r){Ot(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(o,a){const s=We(t);i.run(n,s,u);function u(c,f,h){const p=f||n;c?a(c):o?o(p):r(void 0,p,h)}}}runSync(n,t){let r=!1,i;return this.run(n,t,l),Mt("runSync","run",r),i;function l(o,a){Dt(o),i=a,r=!0}}stringify(n,t){this.freeze();const r=We(t),i=this.compiler||this.Compiler;return xn("stringify",i),Ot(n),i(n,r)}use(n,...t){const r=this.attachers,i=this.namespace;if(kn("use",this.frozen),n!=null)if(typeof n=="function")s(n,t);else if(typeof n=="object")Array.isArray(n)?a(n):o(n);else throw new TypeError("Expected usable value, not `"+n+"`");return this;function l(u){if(typeof u=="function")s(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[c,...f]=u;s(c,f)}else o(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function o(u){if(!("plugins"in u)&&!("settings"in u))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");a(u.plugins),u.settings&&(i.settings=hn(!0,i.settings,u.settings))}function a(u){let c=-1;if(u!=null)if(Array.isArray(u))for(;++c<u.length;){const f=u[c];l(f)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function s(u,c){let f=-1,h=-1;for(;++f<r.length;)if(r[f][0]===u){h=f;break}if(h===-1)r.push([u,...c]);else if(c.length>0){let[p,...S]=c;const b=r[h][1];vn(b)&&vn(p)&&(p=hn(!0,b,p)),r[h]=[u,p,...S]}}}}const cu=new qn().freeze();function yn(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function xn(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function kn(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 Ot(e){if(!vn(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Mt(e,n,t){if(!t)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function We(e){return pu(e)?e:new Sr(e)}function pu(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function fu(e){return typeof e=="string"||hu(e)}function hu(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const mu="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Rt=[],Bt={allowDangerousHtml:!0},du=/^(https?|ircs?|mailto|xmpp)$/i,gu=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function yu(e){const n=xu(e),t=ku(e);return bu(n.runSync(n.parse(t),t),e)}function xu(e){const n=e.rehypePlugins||Rt,t=e.remarkPlugins||Rt,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Bt}:Bt;return cu().use(Go).use(t).use(Ya,r).use(n)}function ku(e){const n=e.children||"",t=new Sr;return typeof n=="string"&&(t.value=n),t}function bu(e,n){const t=n.allowedElements,r=n.allowElement,i=n.components,l=n.disallowedElements,o=n.skipHtml,a=n.unwrapDisallowed,s=n.urlTransform||wu;for(const c of gu)Object.hasOwn(n,c.from)&&(""+c.from+(c.to?"use `"+c.to+"` instead":"remove it")+mu+c.id,void 0);return n.className&&(e={type:"element",tagName:"div",properties:{className:n.className},children:e.type==="root"?e.children:[e]}),wr(e,u),vi(e,{Fragment:C.Fragment,components:i,ignoreInvalidStyle:!0,jsx:C.jsx,jsxs:C.jsxs,passKeys:!0,passNode:!0});function u(c,f,h){if(c.type==="raw"&&h&&typeof f=="number")return o?h.children.splice(f,1):h.children[f]={type:"text",value:c.value},f;if(c.type==="element"){let p;for(p in sn)if(Object.hasOwn(sn,p)&&Object.hasOwn(c.properties,p)){const S=c.properties[p],b=sn[p];(b===null||b.includes(c.tagName))&&(c.properties[p]=s(String(S||""),p,c))}}if(c.type==="element"){let p=t?!t.includes(c.tagName):l?l.includes(c.tagName):!1;if(!p&&r&&typeof f=="number"&&(p=!r(c,f,h)),p&&h&&typeof f=="number")return a&&c.children?h.children.splice(f,1,...c.children):h.children.splice(f,1),f}}}function wu(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||du.test(e.slice(0,n))?e:""}const Su=function({model:n}){const t=new Set(["path","displayName","owner","cron","cron_prev","cron_next"].filter(r=>n[r]??n.details[r]));return C.jsx(Qr,{className:"w-full py-3",children:C.jsxs("div",{className:"px-3 flex flex-col gap-2 ",children:[C.jsx(ln,{summary:"Model Details",open:!0,children:C.jsx(Wr,{"update-selector":"tbk-model-name",children:C.jsx(Xr,{children:C.jsxs(Gn,{limit:t.size,children:[Ae(n.path)&&C.jsx(ge,{label:"Path",value:n.path}),C.jsx(ge,{label:"Name",children:C.jsx(Gr,{slot:"value",text:n.displayName})}),Ae(n.details.owner)&&C.jsx(ge,{label:"Owner",value:n.details.owner}),Ae(n.details.cron)&&C.jsx(ge,{label:"Cron",children:C.jsx(Jr,{slot:"value",size:"s",variant:"info",children:n.details.cron})}),Ae(n.details.cron_prev)&&C.jsx(ge,{label:"Prev Cron",children:C.jsx(Jn,{slot:"value",date:n.details.cron_prev})}),Ae(n.details.cron_next)&&C.jsx(ge,{label:"Next Cron",children:C.jsx(Jn,{slot:"value",date:n.details.cron_next})}),Object.entries(n.details??{}).filter(([r,i])=>bn(t.has(r))).map(([r,i])=>C.jsx(ge,{className:"capitalize",label:r.replaceAll("_"," "),value:Cu(i),children:Ht(i)?C.jsx(Gn,{limit:5,children:i.map((l,o)=>C.jsx(ge,{className:"capitalize",label:l.name.replaceAll("_"," "),value:`Unique: ${Nr(l.unique)?"No":"Yes"}`},o))}):C.jsx(C.Fragment,{})},r))]})})})}),C.jsx(ln,{summary:"Columns",open:!0,children:C.jsx(qr,{nodeId:n.fqn,columns:n.columns,disabled:bn(n.isModelSQL),withHandles:!1,withSource:!1,withDescription:!0,limit:10})}),C.jsx(ln,{summary:"Description",children:C.jsx(yu,{children:n.description??"No description"})})]})})};function Cu(e){if(Ht(e))return;if(Dr(e))return"None";const n=new Date(e),t=Fr(e)&&!isNaN(n.getTime()),r=typeof e=="boolean";return r&&_r(e)?"True":r&&bn(e)?"False":t?Or(n):String(e)}function Ru(){const{modelName:e=""}=Mr(),n=Rr(),t=tn(h=>h.models),r=tn(h=>h.lastSelectedModel),i=tn(h=>h.setLastSelectedModel),{refetch:l,cancel:o,isFetching:a}=Br(e),s=we(e)||e===(r==null?void 0:r.name)?r:t.get(encodeURI(e)),u=$r(s==null?void 0:s.path,h=>{c==null||c(h.name)});jr.useEffect(()=>{if(!we(s))return l().then(({data:h})=>{s.update(h),i(s)}),()=>{o()}},[e,s==null?void 0:s.hash,s==null?void 0:s.path,s==null?void 0:s.name]);function c(h){const p=t.get(h);we(p)||n(`${Xn.DataCatalogModels}/${p.name}`)}function f(h){console.log(h==null?void 0:h.message)}return C.jsx("div",{className:"flex overflow-auto w-full h-full",children:we(s)?C.jsx(Hr,{link:Xn.DataCatalog,description:we(e)?void 0:`Model ${e} Does Not Exist`,message:"Back To Data Catalog"}):C.jsx(Yr,{showColumns:!0,handleClickModel:c,handleError:f,children:C.jsxs(Zn,{vertical:!0,className:"w-full h-full overflow-hidden",position:"60",children:[C.jsx("div",{slot:"divider"}),C.jsx("div",{slot:"start",className:"flex w-full",children:C.jsxs(Zn,{className:"w-full h-full overflow-hidden",position:"60",children:[C.jsx("div",{slot:"divider"}),C.jsx("div",{slot:"end",className:"flex flex-col h-full overflow-hidden",children:C.jsx(Su,{model:s})}),C.jsx("div",{slot:"start",className:"flex w-full h-full overflow-hidden pl-2",children:C.jsxs(Zr,{size:"2xs",variant:"primary",children:[C.jsx(et,{slot:"nav",panel:"source",children:"Source Code"}),s.isModelSQL&&C.jsx(et,{slot:"nav",panel:"compiled",children:"Compiled Query"}),C.jsx(nt,{name:"source",children:a?C.jsx("div",{className:"flex justify-center items-center w-full h-full",children:C.jsxs(Ur,{className:"inline-block",children:[C.jsx(Vr,{className:"w-5 h-5 border border-neutral-10 mr-4"}),C.jsx("h3",{className:"text-xl",children:"Waiting for Model..."})]})}):we(s.definition)&&Ae(s.path)?C.jsx(Kr,{path:s.path,children:({file:h})=>C.jsx(rn,{content:h.content,type:h.extension,extensions:u})}):C.jsx(C.Fragment,{children:we(s.definition)?C.jsx("div",{className:"flex justify-center items-center w-full h-full",children:C.jsx("h3",{className:"text-xl",children:"Definition Not Found"})}):C.jsx(rn,{content:s.definition,type:s.isModelPython?on.PY:on.SQL,extensions:u})})}),s.isModelSQL&&C.jsx(nt,{name:"compiled",children:C.jsx(rn,{type:on.SQL,content:s.sql??"",extensions:u})})]})})]})}),C.jsx("div",{slot:"end",className:"flex w-full relative",children:C.jsx(ei,{model:s})})]})})})}export{Ru as default};
|
|
14
|
+
`},i),l}function Ya(e,n){return e&&"run"in e?async function(t,r){const i=Nt(t,{file:r,...n});await e.run(i,r)}:function(t,r){return Nt(t,{file:r,...e||n})}}function Dt(e){if(e)throw e}var fn,Ft;function Ka(){if(Ft)return fn;Ft=1;var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString,t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(u){return typeof Array.isArray=="function"?Array.isArray(u):n.call(u)==="[object Array]"},l=function(u){if(!u||n.call(u)!=="[object Object]")return!1;var c=e.call(u,"constructor"),f=u.constructor&&u.constructor.prototype&&e.call(u.constructor.prototype,"isPrototypeOf");if(u.constructor&&!c&&!f)return!1;var h;for(h in u);return typeof h>"u"||e.call(u,h)},o=function(u,c){t&&c.name==="__proto__"?t(u,c.name,{enumerable:!0,configurable:!0,value:c.newValue,writable:!0}):u[c.name]=c.newValue},a=function(u,c){if(c==="__proto__")if(e.call(u,c)){if(r)return r(u,c).value}else return;return u[c]};return fn=function s(){var u,c,f,h,p,S,b=arguments[0],z=1,k=arguments.length,v=!1;for(typeof b=="boolean"&&(v=b,b=arguments[1]||{},z=2),(b==null||typeof b!="object"&&typeof b!="function")&&(b={});z<k;++z)if(u=arguments[z],u!=null)for(c in u)f=a(b,c),h=a(u,c),b!==h&&(v&&h&&(l(h)||(p=i(h)))?(p?(p=!1,S=f&&i(f)?f:[]):S=f&&l(f)?f:{},o(b,{name:c,newValue:s(v,S,h)})):typeof h<"u"&&o(b,{name:c,newValue:h}));return b},fn}var Qa=Ka();const hn=jt(Qa);function vn(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 Wa(){const e=[],n={run:t,use:r};return n;function t(...i){let l=-1;const o=i.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);a(null,...i);function a(s,...u){const c=e[++l];let f=-1;if(s){o(s);return}for(;++f<i.length;)(u[f]===null||u[f]===void 0)&&(u[f]=i[f]);i=u,c?Xa(c,a)(...u):o(null,...u)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),n}}function Xa(e,n){let t;return r;function r(...o){const a=e.length>o.length;let s;a&&o.push(i);try{s=e.apply(this,o)}catch(u){const c=u;if(a&&t)throw c;return i(c)}a||(s&&s.then&&typeof s.then=="function"?s.then(l,i):s instanceof Error?i(s):l(s))}function i(o,...a){t||(t=!0,n(o,...a))}function l(o){i(null,o)}}const ue={basename:Ga,dirname:Ja,extname:Za,join:eu,sep:"/"};function Ga(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');$e(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 o=-1,a=n.length-1;for(;i--;)if(e.codePointAt(i)===47){if(l){t=i+1;break}}else o<0&&(l=!0,o=i+1),a>-1&&(e.codePointAt(i)===n.codePointAt(a--)?a<0&&(r=i):(a=-1,r=o));return t===r?r=o:r<0&&(r=e.length),e.slice(t,r)}function Ja(e){if($e(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 Za(e){$e(e);let n=e.length,t=-1,r=0,i=-1,l=0,o;for(;n--;){const a=e.codePointAt(n);if(a===47){if(o){r=n+1;break}continue}t<0&&(o=!0,t=n+1),a===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 eu(...e){let n=-1,t;for(;++n<e.length;)$e(e[n]),e[n]&&(t=t===void 0?e[n]:t+"/"+e[n]);return t===void 0?".":nu(t)}function nu(e){$e(e);const n=e.codePointAt(0)===47;let t=tu(e,!n);return t.length===0&&!n&&(t="."),t.length>0&&e.codePointAt(e.length-1)===47&&(t+="/"),n?"/"+t:t}function tu(e,n){let t="",r=0,i=-1,l=0,o=-1,a,s;for(;++o<=e.length;){if(o<e.length)a=e.codePointAt(o);else{if(a===47)break;a=47}if(a===47){if(!(i===o-1||l===1))if(i!==o-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(s=t.lastIndexOf("/"),s!==t.length-1){s<0?(t="",r=0):(t=t.slice(0,s),r=t.length-1-t.lastIndexOf("/")),i=o,l=0;continue}}else if(t.length>0){t="",r=0,i=o,l=0;continue}}n&&(t=t.length>0?t+"/..":"..",r=2)}else t.length>0?t+="/"+e.slice(i+1,o):t=e.slice(i+1,o),r=o-i-1;i=o,l=0}else a===46&&l>-1?l++:l=-1}return t}function $e(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const ru={cwd:iu};function iu(){return"/"}function zn(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function lu(e){if(typeof e=="string")e=new URL(e);else if(!zn(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 ou(e)}function ou(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 mn=["history","path","basename","stem","extname","dirname"];class Sr{constructor(n){let t;n?zn(n)?t={path:n}:typeof n=="string"||au(n)?t={value:n}:t=n:t={},this.cwd="cwd"in t?"":ru.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<mn.length;){const l=mn[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)mn.includes(i)||(this[i]=t[i])}get basename(){return typeof this.path=="string"?ue.basename(this.path):void 0}set basename(n){gn(n,"basename"),dn(n,"basename"),this.path=ue.join(this.dirname||"",n)}get dirname(){return typeof this.path=="string"?ue.dirname(this.path):void 0}set dirname(n){_t(this.basename,"dirname"),this.path=ue.join(n||"",this.basename)}get extname(){return typeof this.path=="string"?ue.extname(this.path):void 0}set extname(n){if(dn(n,"extname"),_t(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=ue.join(this.dirname,this.stem+(n||""))}get path(){return this.history[this.history.length-1]}set path(n){zn(n)&&(n=lu(n)),gn(n,"path"),this.path!==n&&this.history.push(n)}get stem(){return typeof this.path=="string"?ue.basename(this.path,this.extname):void 0}set stem(n){gn(n,"stem"),dn(n,"stem"),this.path=ue.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 X(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 dn(e,n){if(e&&e.includes(ue.sep))throw new Error("`"+n+"` cannot be a path: did not expect `"+ue.sep+"`")}function gn(e,n){if(!e)throw new Error("`"+n+"` cannot be empty")}function _t(e,n){if(!e)throw new Error("Setting `"+n+"` requires `path` to be set too")}function au(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const uu=function(e){const r=this.constructor.prototype,i=r[e],l=function(){return i.apply(l,arguments)};return Object.setPrototypeOf(l,r),l},su={}.hasOwnProperty;class qn extends uu{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=Wa()}copy(){const n=new qn;let t=-1;for(;++t<this.attachers.length;){const r=this.attachers[t];n.use(...r)}return n.data(hn(!0,{},this.namespace)),n}data(n,t){return typeof n=="string"?arguments.length===2?(kn("data",this.frozen),this.namespace[n]=t,this):su.call(this.namespace,n)&&this.namespace[n]||void 0:n?(kn("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=We(n),r=this.parser||this.Parser;return yn("parse",r),r(String(t),t)}process(n,t){const r=this;return this.freeze(),yn("process",this.parser||this.Parser),xn("process",this.compiler||this.Compiler),t?i(void 0,t):new Promise(i);function i(l,o){const a=We(n),s=r.parse(a);r.run(s,a,function(c,f,h){if(c||!f||!h)return u(c);const p=f,S=r.stringify(p,h);fu(S)?h.value=S:h.result=S,u(c,h)});function u(c,f){c||!f?o(c):l?l(f):t(void 0,f)}}}processSync(n){let t=!1,r;return this.freeze(),yn("processSync",this.parser||this.Parser),xn("processSync",this.compiler||this.Compiler),this.process(n,i),Mt("processSync","process",t),r;function i(l,o){t=!0,Dt(l),r=o}}run(n,t,r){Ot(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(o,a){const s=We(t);i.run(n,s,u);function u(c,f,h){const p=f||n;c?a(c):o?o(p):r(void 0,p,h)}}}runSync(n,t){let r=!1,i;return this.run(n,t,l),Mt("runSync","run",r),i;function l(o,a){Dt(o),i=a,r=!0}}stringify(n,t){this.freeze();const r=We(t),i=this.compiler||this.Compiler;return xn("stringify",i),Ot(n),i(n,r)}use(n,...t){const r=this.attachers,i=this.namespace;if(kn("use",this.frozen),n!=null)if(typeof n=="function")s(n,t);else if(typeof n=="object")Array.isArray(n)?a(n):o(n);else throw new TypeError("Expected usable value, not `"+n+"`");return this;function l(u){if(typeof u=="function")s(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[c,...f]=u;s(c,f)}else o(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function o(u){if(!("plugins"in u)&&!("settings"in u))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");a(u.plugins),u.settings&&(i.settings=hn(!0,i.settings,u.settings))}function a(u){let c=-1;if(u!=null)if(Array.isArray(u))for(;++c<u.length;){const f=u[c];l(f)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function s(u,c){let f=-1,h=-1;for(;++f<r.length;)if(r[f][0]===u){h=f;break}if(h===-1)r.push([u,...c]);else if(c.length>0){let[p,...S]=c;const b=r[h][1];vn(b)&&vn(p)&&(p=hn(!0,b,p)),r[h]=[u,p,...S]}}}}const cu=new qn().freeze();function yn(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function xn(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function kn(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 Ot(e){if(!vn(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Mt(e,n,t){if(!t)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function We(e){return pu(e)?e:new Sr(e)}function pu(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function fu(e){return typeof e=="string"||hu(e)}function hu(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const mu="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Rt=[],Bt={allowDangerousHtml:!0},du=/^(https?|ircs?|mailto|xmpp)$/i,gu=[{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 yu(e){const n=xu(e),t=ku(e);return bu(n.runSync(n.parse(t),t),e)}function xu(e){const n=e.rehypePlugins||Rt,t=e.remarkPlugins||Rt,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Bt}:Bt;return cu().use(Go).use(t).use(Ya,r).use(n)}function ku(e){const n=e.children||"",t=new Sr;return typeof n=="string"&&(t.value=n),t}function bu(e,n){const t=n.allowedElements,r=n.allowElement,i=n.components,l=n.disallowedElements,o=n.skipHtml,a=n.unwrapDisallowed,s=n.urlTransform||wu;for(const c of gu)Object.hasOwn(n,c.from)&&(""+c.from+(c.to?"use `"+c.to+"` instead":"remove it")+mu+c.id,void 0);return wr(e,u),vi(e,{Fragment:C.Fragment,components:i,ignoreInvalidStyle:!0,jsx:C.jsx,jsxs:C.jsxs,passKeys:!0,passNode:!0});function u(c,f,h){if(c.type==="raw"&&h&&typeof f=="number")return o?h.children.splice(f,1):h.children[f]={type:"text",value:c.value},f;if(c.type==="element"){let p;for(p in sn)if(Object.hasOwn(sn,p)&&Object.hasOwn(c.properties,p)){const S=c.properties[p],b=sn[p];(b===null||b.includes(c.tagName))&&(c.properties[p]=s(String(S||""),p,c))}}if(c.type==="element"){let p=t?!t.includes(c.tagName):l?l.includes(c.tagName):!1;if(!p&&r&&typeof f=="number"&&(p=!r(c,f,h)),p&&h&&typeof f=="number")return a&&c.children?h.children.splice(f,1,...c.children):h.children.splice(f,1),f}}}function wu(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||du.test(e.slice(0,n))?e:""}const Su=function({model:n}){const t=new Set(["path","displayName","owner","cron","cron_prev","cron_next"].filter(r=>n[r]??n.details[r]));return C.jsx(Qr,{className:"w-full py-3",children:C.jsxs("div",{className:"px-3 flex flex-col gap-2 ",children:[C.jsx(ln,{summary:"Model Details",open:!0,children:C.jsx(Wr,{"update-selector":"tbk-model-name",children:C.jsx(Xr,{children:C.jsxs(Gn,{limit:t.size,children:[Ae(n.path)&&C.jsx(ge,{label:"Path",value:n.path}),C.jsx(ge,{label:"Name",children:C.jsx(Gr,{slot:"value",text:n.displayName})}),Ae(n.details.owner)&&C.jsx(ge,{label:"Owner",value:n.details.owner}),Ae(n.details.cron)&&C.jsx(ge,{label:"Cron",children:C.jsx(Jr,{slot:"value",size:"s",variant:"info",children:n.details.cron})}),Ae(n.details.cron_prev)&&C.jsx(ge,{label:"Prev Cron",children:C.jsx(Jn,{slot:"value",date:n.details.cron_prev})}),Ae(n.details.cron_next)&&C.jsx(ge,{label:"Next Cron",children:C.jsx(Jn,{slot:"value",date:n.details.cron_next})}),Object.entries(n.details??{}).filter(([r,i])=>bn(t.has(r))).map(([r,i])=>C.jsx(ge,{className:"capitalize",label:r.replaceAll("_"," "),value:Cu(i),children:Ht(i)?C.jsx(Gn,{limit:5,children:i.map((l,o)=>C.jsx(ge,{className:"capitalize",label:l.name.replaceAll("_"," "),value:`Unique: ${Nr(l.unique)?"No":"Yes"}`},o))}):C.jsx(C.Fragment,{})},r))]})})})}),C.jsx(ln,{summary:"Columns",open:!0,children:C.jsx(qr,{nodeId:n.fqn,columns:n.columns,disabled:bn(n.isModelSQL),withHandles:!1,withSource:!1,withDescription:!0,limit:10})}),C.jsx(ln,{summary:"Description",children:C.jsx(yu,{children:n.description??"No description"})})]})})};function Cu(e){if(Ht(e))return;if(Dr(e))return"None";const n=new Date(e),t=Fr(e)&&!isNaN(n.getTime()),r=typeof e=="boolean";return r&&_r(e)?"True":r&&bn(e)?"False":t?Or(n):String(e)}function Ru(){const{modelName:e=""}=Mr(),n=Rr(),t=tn(h=>h.models),r=tn(h=>h.lastSelectedModel),i=tn(h=>h.setLastSelectedModel),{refetch:l,cancel:o,isFetching:a}=Br(e),s=we(e)||e===(r==null?void 0:r.name)?r:t.get(encodeURI(e)),u=$r(s==null?void 0:s.path,h=>{c==null||c(h.name)});jr.useEffect(()=>{if(!we(s))return l().then(({data:h})=>{s.update(h),i(s)}),()=>{o()}},[e,s==null?void 0:s.hash,s==null?void 0:s.path,s==null?void 0:s.name]);function c(h){const p=t.get(h);we(p)||n(`${Xn.DataCatalogModels}/${p.name}`)}function f(h){console.log(h==null?void 0:h.message)}return C.jsx("div",{className:"flex overflow-auto w-full h-full",children:we(s)?C.jsx(Hr,{link:Xn.DataCatalog,description:we(e)?void 0:`Model ${e} Does Not Exist`,message:"Back To Data Catalog"}):C.jsx(Yr,{showColumns:!0,handleClickModel:c,handleError:f,children:C.jsxs(Zn,{vertical:!0,className:"w-full h-full overflow-hidden",position:"60",children:[C.jsx("div",{slot:"divider"}),C.jsx("div",{slot:"start",className:"flex w-full",children:C.jsxs(Zn,{className:"w-full h-full overflow-hidden",position:"60",children:[C.jsx("div",{slot:"divider"}),C.jsx("div",{slot:"end",className:"flex flex-col h-full overflow-hidden",children:C.jsx(Su,{model:s})}),C.jsx("div",{slot:"start",className:"flex w-full h-full overflow-hidden pl-2",children:C.jsxs(Zr,{size:"2xs",variant:"primary",children:[C.jsx(et,{slot:"nav",panel:"source",children:"Source Code"}),s.isModelSQL&&C.jsx(et,{slot:"nav",panel:"compiled",children:"Compiled Query"}),C.jsx(nt,{name:"source",children:a?C.jsx("div",{className:"flex justify-center items-center w-full h-full",children:C.jsxs(Ur,{className:"inline-block",children:[C.jsx(Vr,{className:"w-5 h-5 border border-neutral-10 mr-4"}),C.jsx("h3",{className:"text-xl",children:"Waiting for Model..."})]})}):we(s.definition)&&Ae(s.path)?C.jsx(Kr,{path:s.path,children:({file:h})=>C.jsx(rn,{content:h.content,type:h.extension,extensions:u})}):C.jsx(C.Fragment,{children:we(s.definition)?C.jsx("div",{className:"flex justify-center items-center w-full h-full",children:C.jsx("h3",{className:"text-xl",children:"Definition Not Found"})}):C.jsx(rn,{content:s.definition,type:s.isModelPython?on.PY:on.SQL,extensions:u})})}),s.isModelSQL&&C.jsx(nt,{name:"compiled",children:C.jsx(rn,{type:on.SQL,content:s.sql??"",extensions:u})})]})})]})}),C.jsx("div",{slot:"end",className:"flex w-full relative",children:C.jsx(ei,{model:s})})]})})})}export{Ru as default};
|