blade-code 0.7.6 → 0.7.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/blade.js +2 -2
- package/dist/{chunk-npaj13y3.js → chunk-0e0z8yc1.js} +2 -2
- package/dist/{chunk-fceeqn6k.js → chunk-1w6tqkxd.js} +2 -2
- package/dist/{chunk-ttf06k8y.js → chunk-2049tv49.js} +3 -3
- package/dist/chunk-4745ktjj.js +1570 -0
- package/dist/chunk-48q9msfk.js +615 -0
- package/dist/chunk-4dmdn3a9.js +2 -0
- package/dist/{chunk-zr71r1z1.js → chunk-5be6qr2v.js} +1 -1
- package/dist/chunk-67vzgcs5.js +2 -0
- package/dist/{chunk-krrm6bjr.js → chunk-6811kbxn.js} +1 -1
- package/dist/{chunk-d9qh7bat.js → chunk-6hn2jgw5.js} +1 -1
- package/dist/chunk-6js5wp6t.js +1 -0
- package/dist/chunk-6kp3z956.js +9 -0
- package/dist/{chunk-pf45ctn7.js → chunk-71n472hj.js} +1 -1
- package/dist/chunk-78txnq4n.js +151 -0
- package/dist/chunk-7r1hm0qz.js +6 -0
- package/dist/{chunk-1y33d6xh.js → chunk-9kejtkey.js} +1 -1
- package/dist/chunk-a7yjnqhd.js +3 -0
- package/dist/chunk-bwaqaktn.js +1 -0
- package/dist/chunk-cb82rf5h.js +1 -0
- package/dist/chunk-ce11m8bq.js +1 -0
- package/dist/{chunk-m3hsaaq5.js → chunk-cjmxggke.js} +1 -1
- package/dist/chunk-e4rhdg3h.js +1 -0
- package/dist/{chunk-64x50qbc.js → chunk-f9ybv4ph.js} +1 -1
- package/dist/{chunk-x4fx52e7.js → chunk-faq7ay4j.js} +3 -3
- package/dist/{chunk-jhzf05kz.js → chunk-fb7amc2s.js} +1 -1
- package/dist/chunk-g6ted982.js +4 -0
- package/dist/{chunk-qyfdt8h1.js → chunk-g7caymjr.js} +1 -1
- package/dist/{chunk-ezkbqmvd.js → chunk-jm2xhnrv.js} +1 -1
- package/dist/chunk-ky8ctbdc.js +1 -0
- package/dist/chunk-mpskff34.js +1 -0
- package/dist/chunk-pd1yqxcv.js +9 -0
- package/dist/{chunk-arwynrtf.js → chunk-phhmmybg.js} +2 -2
- package/dist/chunk-qnevwq1q.js +2 -0
- package/dist/{chunk-ebynn53v.js → chunk-r1spf93b.js} +2 -2
- package/dist/{chunk-r0hc7wad.js → chunk-rnfd5ebv.js} +1 -1
- package/dist/{chunk-wg5nxtb2.js → chunk-s4mke0t6.js} +1 -1
- package/dist/{chunk-wstkn75a.js → chunk-t2spryz0.js} +1 -1
- package/dist/{chunk-rhvxr82g.js → chunk-t70aqrm4.js} +1 -1
- package/dist/{chunk-10q3krvh.js → chunk-z4c68ve0.js} +1 -1
- package/dist/chunk-z9zbcenc.js +6 -0
- package/dist/web/assets/{CodeBlockHighlighter-C86flFwh.js → CodeBlockHighlighter-C1cp8dDv.js} +1 -1
- package/dist/web/assets/FilePreview-DRKRs8i2.js +7 -0
- package/dist/web/assets/{MarkdownRenderer-CW8WpEw1.js → MarkdownRenderer-DFqPpAnM.js} +1 -1
- package/dist/web/assets/{McpModal-DnqrgBON.js → McpModal-CX5-hlNv.js} +1 -1
- package/dist/web/assets/{SettingsModal-CRNT-LCq.js → SettingsModal-CfR_q6N7.js} +1 -1
- package/dist/web/assets/{SettingsStore-B2GIhfKs.js → SettingsStore-jup_Kikq.js} +1 -1
- package/dist/web/assets/{SkillsModal-COQMbIdT.js → SkillsModal-DaAUrwXO.js} +1 -1
- package/dist/web/assets/{TerminalPanel-dCMUvQaH.js → TerminalPanel-DzlllDH7.js} +1 -1
- package/dist/web/assets/index-BJTSF3fc.js +9 -0
- package/dist/web/assets/index-CL6apjgo.css +1 -0
- package/dist/web/assets/{useRequest-C7k7cDPD.js → useRequest-DITGl55G.js} +1 -1
- package/dist/web/assets/{vendor-icons-BKXQ7ALf.js → vendor-icons-BuFpOlRn.js} +38 -28
- package/dist/web/assets/{vendor-markdown-DIcugY1e.js → vendor-markdown-Bo4W9Tae.js} +1 -1
- package/dist/web/assets/vendor-radix-CESj0OOY.js +45 -0
- package/dist/web/assets/{vendor-react-Dm1xU4bP.js → vendor-react-BalntB5F.js} +2 -2
- package/dist/web/index.html +2 -2
- package/package.json +1 -1
- package/dist/chunk-1tzcptyb.js +0 -3
- package/dist/chunk-5accz8n9.js +0 -1
- package/dist/chunk-8raa4q9y.js +0 -1564
- package/dist/chunk-ad19yrq6.js +0 -1
- package/dist/chunk-bvn4e2vq.js +0 -1
- package/dist/chunk-cadngkwr.js +0 -2
- package/dist/chunk-cdx3hp1r.js +0 -9
- package/dist/chunk-g60w2r7f.js +0 -6
- package/dist/chunk-h7qab07x.js +0 -2
- package/dist/chunk-k76q8cyc.js +0 -151
- package/dist/chunk-n2yq1wn8.js +0 -9
- package/dist/chunk-q6sj33v8.js +0 -6
- package/dist/chunk-qedtzcp2.js +0 -1
- package/dist/chunk-t6qek6xk.js +0 -1
- package/dist/chunk-tyjns370.js +0 -1
- package/dist/chunk-ve6bvba4.js +0 -615
- package/dist/chunk-wdxbjvd5.js +0 -2
- package/dist/chunk-xj63cr29.js +0 -1
- package/dist/chunk-zmndvdgb.js +0 -4
- package/dist/web/assets/FilePreview-CbtOITD1.js +0 -7
- package/dist/web/assets/index-21gV5nOE.css +0 -1
- package/dist/web/assets/index-Cnz-_jPt.js +0 -10
- package/dist/web/assets/vendor-radix-2yBsoRqx.js +0 -45
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as Tn,R as Ee}from"./vendor-react-Dm1xU4bP.js";var gn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function $r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}const Co=function(){const n=typeof document<"u"&&document.createElement("link").relList;return n&&n.supports&&n.supports("modulepreload")?"modulepreload":"preload"}(),Eo=function(e){return"/"+e},zt={},uh=function(n,t,r){let i=Promise.resolve();if(t&&t.length>0){document.getElementsByTagName("link");const l=document.querySelector("meta[property=csp-nonce]"),a=(l==null?void 0:l.nonce)||(l==null?void 0:l.getAttribute("nonce"));i=Promise.allSettled(t.map(s=>{if(s=Eo(s),s in zt)return;zt[s]=!0;const u=s.endsWith(".css"),f=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${s}"]${f}`))return;const c=document.createElement("link");if(c.rel=u?"stylesheet":Co,u||(c.as="script"),c.crossOrigin="",c.href=s,a&&c.setAttribute("nonce",a),document.head.appendChild(c),u)return new Promise((h,p)=>{c.addEventListener("load",h),c.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${s}`)))})}))}function o(l){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=l,window.dispatchEvent(a),!a.defaultPrevented)throw l}return i.then(l=>{for(const a of l||[])a.status==="rejected"&&o(a.reason);return n().catch(o)})};function Nt(e){const n=[],t=String(e||"");let r=t.indexOf(","),i=0,o=!1;for(;!o;){r===-1&&(r=t.length,o=!0);const l=t.slice(i,r).trim();(l||!o)&&n.push(l),i=r+1,r=t.indexOf(",",i)}return n}function Ao(e,n){const t={};return(e[e.length-1]===""?[...e,""]:e).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}const Io=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,To=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Fo={};function Rt(e,n){return(Fo.jsx?To:Io).test(e)}const Lo=/[ \t\n\f\r]/g;function Oo(e){return typeof e=="object"?e.type==="text"?Pt(e.value):!1:Pt(e)}function Pt(e){return e.replace(Lo,"")===""}class nn{constructor(n,t,r){this.normal=t,this.property=n,r&&(this.space=r)}}nn.prototype.normal={};nn.prototype.property={};nn.prototype.space=void 0;function Br(e,n){const t={},r={};for(const i of e)Object.assign(t,i.property),Object.assign(r,i.normal);return new nn(t,r,n)}function Ke(e){return e.toLowerCase()}class le{constructor(n,t){this.attribute=t,this.property=n}}le.prototype.attribute="";le.prototype.booleanish=!1;le.prototype.boolean=!1;le.prototype.commaOrSpaceSeparated=!1;le.prototype.commaSeparated=!1;le.prototype.defined=!1;le.prototype.mustUseProperty=!1;le.prototype.number=!1;le.prototype.overloadedBoolean=!1;le.prototype.property="";le.prototype.spaceSeparated=!1;le.prototype.space=void 0;let _o=0;const M=_e(),Y=_e(),Vn=_e(),E=_e(),V=_e(),Me=_e(),ue=_e();function _e(){return 2**++_o}const Gn=Object.freeze(Object.defineProperty({__proto__:null,boolean:M,booleanish:Y,commaOrSpaceSeparated:ue,commaSeparated:Me,number:E,overloadedBoolean:Vn,spaceSeparated:V},Symbol.toStringTag,{value:"Module"})),Fn=Object.keys(Gn);class at extends le{constructor(n,t,r,i){let o=-1;if(super(n,t),Mt(this,"space",i),typeof r=="number")for(;++o<Fn.length;){const l=Fn[o];Mt(this,Fn[o],(r&Gn[l])===Gn[l])}}}at.prototype.defined=!0;function Mt(e,n,t){t&&(e[n]=t)}function $e(e){const n={},t={};for(const[r,i]of Object.entries(e.properties)){const o=new at(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),n[r]=o,t[Ke(r)]=r,t[Ke(o.attribute)]=r}return new nn(n,t,e.space)}const Hr=$e({properties:{ariaActiveDescendant:null,ariaAtomic:Y,ariaAutoComplete:null,ariaBusy:Y,ariaChecked:Y,ariaColCount:E,ariaColIndex:E,ariaColSpan:E,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:E,ariaLive:null,ariaModal:Y,ariaMultiLine:Y,ariaMultiSelectable:Y,ariaOrientation:null,ariaOwns:V,ariaPlaceholder:null,ariaPosInSet:E,ariaPressed:Y,ariaReadOnly:Y,ariaRelevant:null,ariaRequired:Y,ariaRoleDescription:V,ariaRowCount:E,ariaRowIndex:E,ariaRowSpan:E,ariaSelected:Y,ariaSetSize:E,ariaSort:null,ariaValueMax:E,ariaValueMin:E,ariaValueNow:E,ariaValueText:null,role:null},transform(e,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()}});function Ur(e,n){return n in e?e[n]:n}function qr(e,n){return Ur(e,n.toLowerCase())}const Do=$e({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Me,acceptCharset:V,accessKey:V,action:null,allow:null,allowFullScreen:M,allowPaymentRequest:M,allowUserMedia:M,alt:null,as:null,async:M,autoCapitalize:null,autoComplete:V,autoFocus:M,autoPlay:M,blocking:V,capture:null,charSet:null,checked:M,cite:null,className:V,cols:E,colSpan:null,content:null,contentEditable:Y,controls:M,controlsList:V,coords:E|Me,crossOrigin:null,data:null,dateTime:null,decoding:null,default:M,defer:M,dir:null,dirName:null,disabled:M,download:Vn,draggable:Y,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:M,formTarget:null,headers:V,height:E,hidden:Vn,high:E,href:null,hrefLang:null,htmlFor:V,httpEquiv:V,id:null,imageSizes:null,imageSrcSet:null,inert:M,inputMode:null,integrity:null,is:null,isMap:M,itemId:null,itemProp:V,itemRef:V,itemScope:M,itemType:V,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:M,low:E,manifest:null,max:null,maxLength:E,media:null,method:null,min:null,minLength:E,multiple:M,muted:M,name:null,nonce:null,noModule:M,noValidate:M,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:M,optimum:E,pattern:null,ping:V,placeholder:null,playsInline:M,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:M,referrerPolicy:null,rel:V,required:M,reversed:M,rows:E,rowSpan:E,sandbox:V,scope:null,scoped:M,seamless:M,selected:M,shadowRootClonable:M,shadowRootDelegatesFocus:M,shadowRootMode:null,shape:null,size:E,sizes:null,slot:null,span:E,spellCheck:Y,src:null,srcDoc:null,srcLang:null,srcSet:null,start:E,step:null,style:null,tabIndex:E,target:null,title:null,translate:null,type:null,typeMustMatch:M,useMap:null,value:Y,width:E,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:V,axis:null,background:null,bgColor:null,border:E,borderColor:null,bottomMargin:E,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:M,declare:M,event:null,face:null,frame:null,frameBorder:null,hSpace:E,leftMargin:E,link:null,longDesc:null,lowSrc:null,marginHeight:E,marginWidth:E,noResize:M,noHref:M,noShade:M,noWrap:M,object:null,profile:null,prompt:null,rev:null,rightMargin:E,rules:null,scheme:null,scrolling:Y,standby:null,summary:null,text:null,topMargin:E,valueType:null,version:null,vAlign:null,vLink:null,vSpace:E,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:M,disableRemotePlayback:M,prefix:null,property:null,results:E,security:null,unselectable:null},space:"html",transform:qr}),zo=$e({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:ue,accentHeight:E,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:E,amplitude:E,arabicForm:null,ascent:E,attributeName:null,attributeType:null,azimuth:E,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:E,by:null,calcMode:null,capHeight:E,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:E,diffuseConstant:E,direction:null,display:null,dur:null,divisor:E,dominantBaseline:null,download:M,dx:null,dy:null,edgeMode:null,editable:null,elevation:E,enableBackground:null,end:null,event:null,exponent:E,externalResourcesRequired:null,fill:null,fillOpacity:E,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:Me,g2:Me,glyphName:Me,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:E,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:E,horizOriginX:E,horizOriginY:E,id:null,ideographic:E,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:E,k:E,k1:E,k2:E,k3:E,k4:E,kernelMatrix:ue,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:E,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:E,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:E,overlineThickness:E,paintOrder:null,panose1:null,path:null,pathLength:E,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:V,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:E,pointsAtY:E,pointsAtZ:E,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ue,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ue,rev:ue,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ue,requiredFeatures:ue,requiredFonts:ue,requiredFormats:ue,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:E,specularExponent:E,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:E,strikethroughThickness:E,string:null,stroke:null,strokeDashArray:ue,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:E,strokeOpacity:E,strokeWidth:null,style:null,surfaceScale:E,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ue,tabIndex:E,tableValues:null,target:null,targetX:E,targetY:E,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ue,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:E,underlineThickness:E,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:E,values:null,vAlphabetic:E,vMathematical:E,vectorEffect:null,vHanging:E,vIdeographic:E,version:null,vertAdvY:E,vertOriginX:E,vertOriginY:E,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:E,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Ur}),Vr=$e({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()}}),Gr=$e({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:qr}),Wr=$e({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()}}),No={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Ro=/[A-Z]/g,jt=/-[a-z]/g,Po=/^data[-\w.:]+$/i;function Xr(e,n){const t=Ke(n);let r=n,i=le;if(t in e.normal)return e.property[e.normal[t]];if(t.length>4&&t.slice(0,4)==="data"&&Po.test(n)){if(n.charAt(4)==="-"){const o=n.slice(5).replace(jt,jo);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=n.slice(4);if(!jt.test(o)){let l=o.replace(Ro,Mo);l.charAt(0)!=="-"&&(l="-"+l),n="data"+l}}i=at}return new i(r,n)}function Mo(e){return"-"+e.toLowerCase()}function jo(e){return e.charAt(1).toUpperCase()}const Yr=Br([Hr,Do,Vr,Gr,Wr],"html"),kn=Br([Hr,zo,Vr,Gr,Wr],"svg");function $t(e){const n=String(e||"").trim();return n?n.split(/[ \t\n\r\f]+/g):[]}function $o(e){return e.join(" ").trim()}var st={},Bt=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Bo=/\n/g,Ho=/^\s*/,Uo=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,qo=/^:\s*/,Vo=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Go=/^[;\s]*/,Wo=/^\s+|\s+$/g,Xo=`
|
|
1
|
+
import{j as Tn,R as Ee}from"./vendor-react-BalntB5F.js";var gn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function $r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}const Co=function(){const n=typeof document<"u"&&document.createElement("link").relList;return n&&n.supports&&n.supports("modulepreload")?"modulepreload":"preload"}(),Eo=function(e){return"/"+e},zt={},uh=function(n,t,r){let i=Promise.resolve();if(t&&t.length>0){document.getElementsByTagName("link");const l=document.querySelector("meta[property=csp-nonce]"),a=(l==null?void 0:l.nonce)||(l==null?void 0:l.getAttribute("nonce"));i=Promise.allSettled(t.map(s=>{if(s=Eo(s),s in zt)return;zt[s]=!0;const u=s.endsWith(".css"),f=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${s}"]${f}`))return;const c=document.createElement("link");if(c.rel=u?"stylesheet":Co,u||(c.as="script"),c.crossOrigin="",c.href=s,a&&c.setAttribute("nonce",a),document.head.appendChild(c),u)return new Promise((h,p)=>{c.addEventListener("load",h),c.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${s}`)))})}))}function o(l){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=l,window.dispatchEvent(a),!a.defaultPrevented)throw l}return i.then(l=>{for(const a of l||[])a.status==="rejected"&&o(a.reason);return n().catch(o)})};function Nt(e){const n=[],t=String(e||"");let r=t.indexOf(","),i=0,o=!1;for(;!o;){r===-1&&(r=t.length,o=!0);const l=t.slice(i,r).trim();(l||!o)&&n.push(l),i=r+1,r=t.indexOf(",",i)}return n}function Ao(e,n){const t={};return(e[e.length-1]===""?[...e,""]:e).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}const Io=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,To=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Fo={};function Rt(e,n){return(Fo.jsx?To:Io).test(e)}const Lo=/[ \t\n\f\r]/g;function Oo(e){return typeof e=="object"?e.type==="text"?Pt(e.value):!1:Pt(e)}function Pt(e){return e.replace(Lo,"")===""}class nn{constructor(n,t,r){this.normal=t,this.property=n,r&&(this.space=r)}}nn.prototype.normal={};nn.prototype.property={};nn.prototype.space=void 0;function Br(e,n){const t={},r={};for(const i of e)Object.assign(t,i.property),Object.assign(r,i.normal);return new nn(t,r,n)}function Ke(e){return e.toLowerCase()}class le{constructor(n,t){this.attribute=t,this.property=n}}le.prototype.attribute="";le.prototype.booleanish=!1;le.prototype.boolean=!1;le.prototype.commaOrSpaceSeparated=!1;le.prototype.commaSeparated=!1;le.prototype.defined=!1;le.prototype.mustUseProperty=!1;le.prototype.number=!1;le.prototype.overloadedBoolean=!1;le.prototype.property="";le.prototype.spaceSeparated=!1;le.prototype.space=void 0;let _o=0;const M=_e(),Y=_e(),Vn=_e(),E=_e(),V=_e(),Me=_e(),ue=_e();function _e(){return 2**++_o}const Gn=Object.freeze(Object.defineProperty({__proto__:null,boolean:M,booleanish:Y,commaOrSpaceSeparated:ue,commaSeparated:Me,number:E,overloadedBoolean:Vn,spaceSeparated:V},Symbol.toStringTag,{value:"Module"})),Fn=Object.keys(Gn);class at extends le{constructor(n,t,r,i){let o=-1;if(super(n,t),Mt(this,"space",i),typeof r=="number")for(;++o<Fn.length;){const l=Fn[o];Mt(this,Fn[o],(r&Gn[l])===Gn[l])}}}at.prototype.defined=!0;function Mt(e,n,t){t&&(e[n]=t)}function $e(e){const n={},t={};for(const[r,i]of Object.entries(e.properties)){const o=new at(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),n[r]=o,t[Ke(r)]=r,t[Ke(o.attribute)]=r}return new nn(n,t,e.space)}const Hr=$e({properties:{ariaActiveDescendant:null,ariaAtomic:Y,ariaAutoComplete:null,ariaBusy:Y,ariaChecked:Y,ariaColCount:E,ariaColIndex:E,ariaColSpan:E,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:E,ariaLive:null,ariaModal:Y,ariaMultiLine:Y,ariaMultiSelectable:Y,ariaOrientation:null,ariaOwns:V,ariaPlaceholder:null,ariaPosInSet:E,ariaPressed:Y,ariaReadOnly:Y,ariaRelevant:null,ariaRequired:Y,ariaRoleDescription:V,ariaRowCount:E,ariaRowIndex:E,ariaRowSpan:E,ariaSelected:Y,ariaSetSize:E,ariaSort:null,ariaValueMax:E,ariaValueMin:E,ariaValueNow:E,ariaValueText:null,role:null},transform(e,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()}});function Ur(e,n){return n in e?e[n]:n}function qr(e,n){return Ur(e,n.toLowerCase())}const Do=$e({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Me,acceptCharset:V,accessKey:V,action:null,allow:null,allowFullScreen:M,allowPaymentRequest:M,allowUserMedia:M,alt:null,as:null,async:M,autoCapitalize:null,autoComplete:V,autoFocus:M,autoPlay:M,blocking:V,capture:null,charSet:null,checked:M,cite:null,className:V,cols:E,colSpan:null,content:null,contentEditable:Y,controls:M,controlsList:V,coords:E|Me,crossOrigin:null,data:null,dateTime:null,decoding:null,default:M,defer:M,dir:null,dirName:null,disabled:M,download:Vn,draggable:Y,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:M,formTarget:null,headers:V,height:E,hidden:Vn,high:E,href:null,hrefLang:null,htmlFor:V,httpEquiv:V,id:null,imageSizes:null,imageSrcSet:null,inert:M,inputMode:null,integrity:null,is:null,isMap:M,itemId:null,itemProp:V,itemRef:V,itemScope:M,itemType:V,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:M,low:E,manifest:null,max:null,maxLength:E,media:null,method:null,min:null,minLength:E,multiple:M,muted:M,name:null,nonce:null,noModule:M,noValidate:M,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:M,optimum:E,pattern:null,ping:V,placeholder:null,playsInline:M,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:M,referrerPolicy:null,rel:V,required:M,reversed:M,rows:E,rowSpan:E,sandbox:V,scope:null,scoped:M,seamless:M,selected:M,shadowRootClonable:M,shadowRootDelegatesFocus:M,shadowRootMode:null,shape:null,size:E,sizes:null,slot:null,span:E,spellCheck:Y,src:null,srcDoc:null,srcLang:null,srcSet:null,start:E,step:null,style:null,tabIndex:E,target:null,title:null,translate:null,type:null,typeMustMatch:M,useMap:null,value:Y,width:E,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:V,axis:null,background:null,bgColor:null,border:E,borderColor:null,bottomMargin:E,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:M,declare:M,event:null,face:null,frame:null,frameBorder:null,hSpace:E,leftMargin:E,link:null,longDesc:null,lowSrc:null,marginHeight:E,marginWidth:E,noResize:M,noHref:M,noShade:M,noWrap:M,object:null,profile:null,prompt:null,rev:null,rightMargin:E,rules:null,scheme:null,scrolling:Y,standby:null,summary:null,text:null,topMargin:E,valueType:null,version:null,vAlign:null,vLink:null,vSpace:E,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:M,disableRemotePlayback:M,prefix:null,property:null,results:E,security:null,unselectable:null},space:"html",transform:qr}),zo=$e({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:ue,accentHeight:E,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:E,amplitude:E,arabicForm:null,ascent:E,attributeName:null,attributeType:null,azimuth:E,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:E,by:null,calcMode:null,capHeight:E,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:E,diffuseConstant:E,direction:null,display:null,dur:null,divisor:E,dominantBaseline:null,download:M,dx:null,dy:null,edgeMode:null,editable:null,elevation:E,enableBackground:null,end:null,event:null,exponent:E,externalResourcesRequired:null,fill:null,fillOpacity:E,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:Me,g2:Me,glyphName:Me,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:E,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:E,horizOriginX:E,horizOriginY:E,id:null,ideographic:E,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:E,k:E,k1:E,k2:E,k3:E,k4:E,kernelMatrix:ue,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:E,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:E,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:E,overlineThickness:E,paintOrder:null,panose1:null,path:null,pathLength:E,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:V,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:E,pointsAtY:E,pointsAtZ:E,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ue,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ue,rev:ue,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ue,requiredFeatures:ue,requiredFonts:ue,requiredFormats:ue,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:E,specularExponent:E,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:E,strikethroughThickness:E,string:null,stroke:null,strokeDashArray:ue,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:E,strokeOpacity:E,strokeWidth:null,style:null,surfaceScale:E,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ue,tabIndex:E,tableValues:null,target:null,targetX:E,targetY:E,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ue,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:E,underlineThickness:E,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:E,values:null,vAlphabetic:E,vMathematical:E,vectorEffect:null,vHanging:E,vIdeographic:E,version:null,vertAdvY:E,vertOriginX:E,vertOriginY:E,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:E,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Ur}),Vr=$e({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()}}),Gr=$e({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:qr}),Wr=$e({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()}}),No={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Ro=/[A-Z]/g,jt=/-[a-z]/g,Po=/^data[-\w.:]+$/i;function Xr(e,n){const t=Ke(n);let r=n,i=le;if(t in e.normal)return e.property[e.normal[t]];if(t.length>4&&t.slice(0,4)==="data"&&Po.test(n)){if(n.charAt(4)==="-"){const o=n.slice(5).replace(jt,jo);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=n.slice(4);if(!jt.test(o)){let l=o.replace(Ro,Mo);l.charAt(0)!=="-"&&(l="-"+l),n="data"+l}}i=at}return new i(r,n)}function Mo(e){return"-"+e.toLowerCase()}function jo(e){return e.charAt(1).toUpperCase()}const Yr=Br([Hr,Do,Vr,Gr,Wr],"html"),kn=Br([Hr,zo,Vr,Gr,Wr],"svg");function $t(e){const n=String(e||"").trim();return n?n.split(/[ \t\n\r\f]+/g):[]}function $o(e){return e.join(" ").trim()}var st={},Bt=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Bo=/\n/g,Ho=/^\s*/,Uo=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,qo=/^:\s*/,Vo=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Go=/^[;\s]*/,Wo=/^\s+|\s+$/g,Xo=`
|
|
2
2
|
`,Ht="/",Ut="*",Le="",Yo="comment",Ko="declaration";function Zo(e,n){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];n=n||{};var t=1,r=1;function i(g){var b=g.match(Bo);b&&(t+=b.length);var w=g.lastIndexOf(Xo);r=~w?g.length-w:r+g.length}function o(){var g={line:t,column:r};return function(b){return b.position=new l(g),u(),b}}function l(g){this.start=g,this.end={line:t,column:r},this.source=n.source}l.prototype.content=e;function a(g){var b=new Error(n.source+":"+t+":"+r+": "+g);if(b.reason=g,b.filename=n.source,b.line=t,b.column=r,b.source=e,!n.silent)throw b}function s(g){var b=g.exec(e);if(b){var w=b[0];return i(w),e=e.slice(w.length),b}}function u(){s(Ho)}function f(g){var b;for(g=g||[];b=c();)b!==!1&&g.push(b);return g}function c(){var g=o();if(!(Ht!=e.charAt(0)||Ut!=e.charAt(1))){for(var b=2;Le!=e.charAt(b)&&(Ut!=e.charAt(b)||Ht!=e.charAt(b+1));)++b;if(b+=2,Le===e.charAt(b-1))return a("End of comment missing");var w=e.slice(2,b-2);return r+=2,i(w),e=e.slice(b),r+=2,g({type:Yo,comment:w})}}function h(){var g=o(),b=s(Uo);if(b){if(c(),!s(qo))return a("property missing ':'");var w=s(Vo),y=g({type:Ko,property:qt(b[0].replace(Bt,Le)),value:w?qt(w[0].replace(Bt,Le)):Le});return s(Go),y}}function p(){var g=[];f(g);for(var b;b=h();)b!==!1&&(g.push(b),f(g));return g}return u(),p()}function qt(e){return e?e.replace(Wo,Le):Le}var Qo=Zo,Jo=gn&&gn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(st,"__esModule",{value:!0});st.default=nl;const el=Jo(Qo);function nl(e,n){let t=null;if(!e||typeof e!="string")return t;const r=(0,el.default)(e),i=typeof n=="function";return r.forEach(o=>{if(o.type!=="declaration")return;const{property:l,value:a}=o;i?n(l,a,o):a&&(t=t||{},t[l]=a)}),t}var xn={};Object.defineProperty(xn,"__esModule",{value:!0});xn.camelCase=void 0;var tl=/^--[a-zA-Z0-9_-]+$/,rl=/-([a-z])/g,il=/^[^-]+$/,ol=/^-(webkit|moz|ms|o|khtml)-/,ll=/^-(ms)-/,al=function(e){return!e||il.test(e)||tl.test(e)},sl=function(e,n){return n.toUpperCase()},Vt=function(e,n){return"".concat(n,"-")},ul=function(e,n){return n===void 0&&(n={}),al(e)?e:(e=e.toLowerCase(),n.reactCompat?e=e.replace(ll,Vt):e=e.replace(ol,Vt),e.replace(rl,sl))};xn.camelCase=ul;var cl=gn&&gn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},fl=cl(st),pl=xn;function Wn(e,n){var t={};return!e||typeof e!="string"||(0,fl.default)(e,function(r,i){r&&i&&(t[(0,pl.camelCase)(r,n)]=i)}),t}Wn.default=Wn;var hl=Wn;const gl=$r(hl),Kr=Zr("end"),ut=Zr("start");function Zr(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 dl(e){const n=ut(e),t=Kr(e);if(n&&t)return{start:n,end:t}}function Ge(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Gt(e.position):"start"in e||"end"in e?Gt(e):"line"in e||"column"in e?Xn(e):""}function Xn(e){return Wt(e&&e.line)+":"+Wt(e&&e.column)}function Gt(e){return Xn(e&&e.start)+"-"+Xn(e&&e.end)}function Wt(e){return e&&typeof e=="number"?e:1}class te extends Error{constructor(n,t,r){super(),typeof t=="string"&&(r=t,t=void 0);let i="",o={},l=!1;if(t&&("line"in t&&"column"in t?o={place:t}:"start"in t&&"end"in t?o={place:t}:"type"in t?o={ancestors:[t],place:t.position}:o={...t}),typeof n=="string"?i=n:!o.cause&&n&&(l=!0,i=n.message,o.cause=n),!o.ruleId&&!o.source&&typeof r=="string"){const s=r.indexOf(":");s===-1?o.ruleId=r:(o.source=r.slice(0,s),o.ruleId=r.slice(s+1))}if(!o.place&&o.ancestors&&o.ancestors){const s=o.ancestors[o.ancestors.length-1];s&&(o.place=s.position)}const a=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=a?a.line:void 0,this.name=Ge(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=l&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}te.prototype.file="";te.prototype.name="";te.prototype.reason="";te.prototype.message="";te.prototype.stack="";te.prototype.column=void 0;te.prototype.line=void 0;te.prototype.ancestors=void 0;te.prototype.cause=void 0;te.prototype.fatal=void 0;te.prototype.place=void 0;te.prototype.ruleId=void 0;te.prototype.source=void 0;const ct={}.hasOwnProperty,ml=new Map,yl=/[A-Z]/g,bl=new Set(["table","tbody","thead","tfoot","tr"]),kl=new Set(["td","th"]),Qr="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function xl(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=Tl(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=Il(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"?kn:Yr,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},o=Jr(i,e,void 0);return o&&typeof o!="string"?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function Jr(e,n,t){if(n.type==="element")return wl(e,n,t);if(n.type==="mdxFlowExpression"||n.type==="mdxTextExpression")return Sl(e,n);if(n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement")return Cl(e,n,t);if(n.type==="mdxjsEsm")return vl(e,n);if(n.type==="root")return El(e,n,t);if(n.type==="text")return Al(e,n)}function wl(e,n,t){const r=e.schema;let i=r;n.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=kn,e.schema=i),e.ancestors.push(n);const o=ni(e,n.tagName,!1),l=Fl(e,n);let a=pt(e,n);return bl.has(n.tagName)&&(a=a.filter(function(s){return typeof s=="string"?!Oo(s):!0})),ei(e,l,o,n),ft(l,a),e.ancestors.pop(),e.schema=r,e.create(n,o,l,t)}function Sl(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)}Ze(e,n.position)}function vl(e,n){if(n.data&&n.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(n.data.estree);Ze(e,n.position)}function Cl(e,n,t){const r=e.schema;let i=r;n.name==="svg"&&r.space==="html"&&(i=kn,e.schema=i),e.ancestors.push(n);const o=n.name===null?e.Fragment:ni(e,n.name,!0),l=Ll(e,n),a=pt(e,n);return ei(e,l,o,n),ft(l,a),e.ancestors.pop(),e.schema=r,e.create(n,o,l,t)}function El(e,n,t){const r={};return ft(r,pt(e,n)),e.create(n,e.Fragment,r,t)}function Al(e,n){return n.value}function ei(e,n,t,r){typeof t!="string"&&t!==e.Fragment&&e.passNode&&(n.node=r)}function ft(e,n){if(n.length>0){const t=n.length>1?n:n[0];t&&(e.children=t)}}function Il(e,n,t){return r;function r(i,o,l,a){const u=Array.isArray(l.children)?t:n;return a?u(o,l,a):u(o,l)}}function Tl(e,n){return t;function t(r,i,o,l){const a=Array.isArray(o.children),s=ut(r);return n(i,o,l,a,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function Fl(e,n){const t={};let r,i;for(i in n.properties)if(i!=="children"&&ct.call(n.properties,i)){const o=Ol(e,i,n.properties[i]);if(o){const[l,a]=o;e.tableCellAlignToStyle&&l==="align"&&typeof a=="string"&&kl.has(n.tagName)?r=a:t[l]=a}}if(r){const o=t.style||(t.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return t}function Ll(e,n){const t={};for(const r of n.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const o=r.data.estree.body[0];o.type;const l=o.expression;l.type;const a=l.properties[0];a.type,Object.assign(t,e.evaluater.evaluateExpression(a.argument))}else Ze(e,n.position);else{const i=r.name;let o;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,o=e.evaluater.evaluateExpression(a.expression)}else Ze(e,n.position);else o=r.value===null?!0:r.value;t[i]=o}return t}function pt(e,n){const t=[];let r=-1;const i=e.passKeys?new Map:ml;for(;++r<n.children.length;){const o=n.children[r];let l;if(e.passKeys){const s=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(s){const u=i.get(s)||0;l=s+"-"+u,i.set(s,u+1)}}const a=Jr(e,o,l);a!==void 0&&t.push(a)}return t}function Ol(e,n,t){const r=Xr(e.schema,n);if(!(t==null||typeof t=="number"&&Number.isNaN(t))){if(Array.isArray(t)&&(t=r.commaSeparated?Ao(t):$o(t)),r.property==="style"){let i=typeof t=="object"?t:_l(e,String(t));return e.stylePropertyNameCase==="css"&&(i=Dl(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?No[r.property]||r.property:r.attribute,t]}}function _l(e,n){try{return gl(n,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};const r=t,i=new te("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=Qr+"#cannot-parse-style-attribute",i}}function ni(e,n,t){let r;if(!t)r={type:"Literal",value:n};else if(n.includes(".")){const i=n.split(".");let o=-1,l;for(;++o<i.length;){const a=Rt(i[o])?{type:"Identifier",name:i[o]}:{type:"Literal",value:i[o]};l=l?{type:"MemberExpression",object:l,property:a,computed:!!(o&&a.type==="Literal"),optional:!1}:a}r=l}else r=Rt(n)&&!/^[a-z]/.test(n)?{type:"Identifier",name:n}:{type:"Literal",value:n};if(r.type==="Literal"){const i=r.value;return ct.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);Ze(e)}function Ze(e,n){const t=new te("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:n,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw t.file=e.filePath||void 0,t.url=Qr+"#cannot-handle-mdx-estrees-without-createevaluater",t}function Dl(e){const n={};let t;for(t in e)ct.call(e,t)&&(n[zl(t)]=e[t]);return n}function zl(e){let n=e.replace(yl,Nl);return n.slice(0,3)==="ms-"&&(n="-"+n),n}function Nl(e){return"-"+e.toLowerCase()}const Ln={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"]},Rl={};function ht(e,n){const t=Rl,r=typeof t.includeImageAlt=="boolean"?t.includeImageAlt:!0,i=typeof t.includeHtml=="boolean"?t.includeHtml:!0;return ti(e,r,i)}function ti(e,n,t){if(Pl(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 Xt(e.children,n,t)}return Array.isArray(e)?Xt(e,n,t):""}function Xt(e,n,t){const r=[];let i=-1;for(;++i<e.length;)r[i]=ti(e[i],n,t);return r.join("")}function Pl(e){return!!(e&&typeof e=="object")}const Yt=document.createElement("i");function Qe(e){const n="&"+e+";";Yt.innerHTML=n;const t=Yt.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 o=0,l;if(n<0?n=-n>i?0:i+n:n=n>i?i:n,t=t>0?t:0,r.length<1e4)l=Array.from(r),l.unshift(n,t),e.splice(...l);else for(t&&e.splice(n,t);o<r.length;)l=r.slice(o,o+1e4),l.unshift(n,0),e.splice(...l),o+=1e4,n+=1e4}function pe(e,n){return e.length>0?(ce(e,e.length,0,n),e):n}const Kt={}.hasOwnProperty;function ri(e){const n={};let t=-1;for(;++t<e.length;)Ml(n,e[t]);return n}function Ml(e,n){let t;for(t in n){const i=(Kt.call(e,t)?e[t]:void 0)||(e[t]={}),o=n[t];let l;if(o)for(l in o){Kt.call(i,l)||(i[l]=[]);const a=o[l];jl(i[l],Array.isArray(a)?a:a?[a]:[])}}}function jl(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 ii(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 ge(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const re=Ie(/[A-Za-z]/),ne=Ie(/[\dA-Za-z]/),$l=Ie(/[#-'*+\--9=?A-Z^-~]/);function dn(e){return e!==null&&(e<32||e===127)}const Yn=Ie(/\d/),Bl=Ie(/[\dA-Fa-f]/),Hl=Ie(/[!-/:-@[-`{-~]/);function D(e){return e!==null&&e<-2}function q(e){return e!==null&&(e<0||e===32)}function $(e){return e===-2||e===-1||e===32}const wn=Ie(new RegExp("\\p{P}|\\p{S}","u")),Oe=Ie(/\s/);function Ie(e){return n;function n(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function Be(e){const n=[];let t=-1,r=0,i=0;for(;++t<e.length;){const o=e.charCodeAt(t);let l="";if(o===37&&ne(e.charCodeAt(t+1))&&ne(e.charCodeAt(t+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(l=String.fromCharCode(o));else if(o>55295&&o<57344){const a=e.charCodeAt(t+1);o<56320&&a>56319&&a<57344?(l=String.fromCharCode(o,a),i=1):l="�"}else l=String.fromCharCode(o);l&&(n.push(e.slice(r,t),encodeURIComponent(l)),r=t+i+1,l=""),i&&(t+=i,i=0)}return n.join("")+e.slice(r)}function H(e,n,t,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return l;function l(s){return $(s)?(e.enter(t),a(s)):n(s)}function a(s){return $(s)&&o++<i?(e.consume(s),a):(e.exit(t),n(s))}}const Ul={tokenize:ql};function ql(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"),H(e,n,"linePrefix")}function i(a){return e.enter("paragraph"),o(a)}function o(a){const s=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=s),t=s,l(a)}function l(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return D(a)?(e.consume(a),e.exit("chunkText"),o):(e.consume(a),l)}}const Vl={tokenize:Gl},Zt={tokenize:Wl};function Gl(e){const n=this,t=[];let r=0,i,o,l;return a;function a(v){if(r<t.length){const T=t[r];return n.containerState=T[1],e.attempt(T[0].continuation,s,u)(v)}return u(v)}function s(v){if(r++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,i&&C();const T=n.events.length;let O=T,x;for(;O--;)if(n.events[O][0]==="exit"&&n.events[O][1].type==="chunkFlow"){x=n.events[O][1].end;break}y(r);let _=T;for(;_<n.events.length;)n.events[_][1].end={...x},_++;return ce(n.events,O+1,0,n.events.slice(T)),n.events.length=_,u(v)}return a(v)}function u(v){if(r===t.length){if(!i)return h(v);if(i.currentConstruct&&i.currentConstruct.concrete)return g(v);n.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(Zt,f,c)(v)}function f(v){return i&&C(),y(r),h(v)}function c(v){return n.parser.lazy[n.now().line]=r!==t.length,l=n.now().offset,g(v)}function h(v){return n.containerState={},e.attempt(Zt,p,g)(v)}function p(v){return r++,t.push([n.currentConstruct,n.containerState]),h(v)}function g(v){if(v===null){i&&C(),y(0),e.consume(v);return}return i=i||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:o}),b(v)}function b(v){if(v===null){w(e.exit("chunkFlow"),!0),y(0),e.consume(v);return}return D(v)?(e.consume(v),w(e.exit("chunkFlow")),r=0,n.interrupt=void 0,a):(e.consume(v),b)}function w(v,T){const O=n.sliceStream(v);if(T&&O.push(null),v.previous=o,o&&(o.next=v),o=v,i.defineSkip(v.start),i.write(O),n.parser.lazy[v.start.line]){let x=i.events.length;for(;x--;)if(i.events[x][1].start.offset<l&&(!i.events[x][1].end||i.events[x][1].end.offset>l))return;const _=n.events.length;let z=_,N,k;for(;z--;)if(n.events[z][0]==="exit"&&n.events[z][1].type==="chunkFlow"){if(N){k=n.events[z][1].end;break}N=!0}for(y(r),x=_;x<n.events.length;)n.events[x][1].end={...k},x++;ce(n.events,z+1,0,n.events.slice(_)),n.events.length=x}}function y(v){let T=t.length;for(;T-- >v;){const O=t[T];n.containerState=O[1],O[0].exit.call(n,e)}t.length=v}function C(){i.write([null]),o=void 0,i=void 0,n.containerState._closeFlow=void 0}}function Wl(e,n,t){return H(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function je(e){if(e===null||q(e)||Oe(e))return 1;if(wn(e))return 2}function Sn(e,n,t){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(n=o(n,t),r.push(o))}return n}const Kn={name:"attention",resolveAll:Xl,tokenize:Yl};function Xl(e,n){let t=-1,r,i,o,l,a,s,u,f;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 c={...e[r][1].end},h={...e[t][1].start};Qt(c,-s),Qt(h,s),l={type:s>1?"strongSequence":"emphasisSequence",start:c,end:{...e[r][1].end}},a={type:s>1?"strongSequence":"emphasisSequence",start:{...e[t][1].start},end:h},o={type:s>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[t][1].start}},i={type:s>1?"strong":"emphasis",start:{...l.start},end:{...a.end}},e[r][1].end={...l.start},e[t][1].start={...a.end},u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=pe(u,[["enter",e[r][1],n],["exit",e[r][1],n]])),u=pe(u,[["enter",i,n],["enter",l,n],["exit",l,n],["enter",o,n]]),u=pe(u,Sn(n.parser.constructs.insideSpan.null,e.slice(r+1,t),n)),u=pe(u,[["exit",o,n],["enter",a,n],["exit",a,n],["exit",i,n]]),e[t][1].end.offset-e[t][1].start.offset?(f=2,u=pe(u,[["enter",e[t][1],n],["exit",e[t][1],n]])):f=0,ce(e,r-1,t-r+3,u),t=r+u.length-f-2;break}}for(t=-1;++t<e.length;)e[t][1].type==="attentionSequence"&&(e[t][1].type="data");return e}function Yl(e,n){const t=this.parser.constructs.attentionMarkers.null,r=this.previous,i=je(r);let o;return l;function l(s){return o=s,e.enter("attentionSequence"),a(s)}function a(s){if(s===o)return e.consume(s),a;const u=e.exit("attentionSequence"),f=je(s),c=!f||f===2&&i||t.includes(s),h=!i||i===2&&f||t.includes(r);return u._open=!!(o===42?c:c&&(i||!h)),u._close=!!(o===42?h:h&&(f||!c)),n(s)}}function Qt(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const Kl={name:"autolink",tokenize:Zl};function Zl(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"),o}function o(p){return re(p)?(e.consume(p),l):p===64?t(p):u(p)}function l(p){return p===43||p===45||p===46||ne(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||ne(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||dn(p)?t(p):(e.consume(p),s)}function u(p){return p===64?(e.consume(p),f):$l(p)?(e.consume(p),u):t(p)}function f(p){return ne(p)?c(p):t(p)}function c(p){return p===46?(e.consume(p),r=0,f):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||ne(p))&&r++<63){const g=p===45?h:c;return e.consume(p),g}return t(p)}}const tn={partial:!0,tokenize:Ql};function Ql(e,n,t){return r;function r(o){return $(o)?H(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||D(o)?n(o):t(o)}}const oi={continuation:{tokenize:ea},exit:na,name:"blockQuote",tokenize:Jl};function Jl(e,n,t){const r=this;return i;function i(l){if(l===62){const a=r.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(l),e.exit("blockQuoteMarker"),o}return t(l)}function o(l){return $(l)?(e.enter("blockQuotePrefixWhitespace"),e.consume(l),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(l))}}function ea(e,n,t){const r=this;return i;function i(l){return $(l)?H(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):o(l)}function o(l){return e.attempt(oi,n,t)(l)}}function na(e){e.exit("blockQuote")}const li={name:"characterEscape",tokenize:ta};function ta(e,n,t){return r;function r(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),i}function i(o){return Hl(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):t(o)}}const ai={name:"characterReference",tokenize:ra};function ra(e,n,t){const r=this;let i=0,o,l;return a;function a(c){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),s}function s(c){return c===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(c),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),o=31,l=ne,f(c))}function u(c){return c===88||c===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(c),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,l=Bl,f):(e.enter("characterReferenceValue"),o=7,l=Yn,f(c))}function f(c){if(c===59&&i){const h=e.exit("characterReferenceValue");return l===ne&&!Qe(r.sliceSerialize(h))?t(c):(e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return l(c)&&i++<o?(e.consume(c),f):t(c)}}const Jt={partial:!0,tokenize:oa},er={concrete:!0,name:"codeFenced",tokenize:ia};function ia(e,n,t){const r=this,i={partial:!0,tokenize:O};let o=0,l=0,a;return s;function s(x){return u(x)}function u(x){const _=r.events[r.events.length-1];return o=_&&_[1].type==="linePrefix"?_[2].sliceSerialize(_[1],!0).length:0,a=x,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),f(x)}function f(x){return x===a?(l++,e.consume(x),f):l<3?t(x):(e.exit("codeFencedFenceSequence"),$(x)?H(e,c,"whitespace")(x):c(x))}function c(x){return x===null||D(x)?(e.exit("codeFencedFence"),r.interrupt?n(x):e.check(Jt,b,T)(x)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),h(x))}function h(x){return x===null||D(x)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(x)):$(x)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),H(e,p,"whitespace")(x)):x===96&&x===a?t(x):(e.consume(x),h)}function p(x){return x===null||D(x)?c(x):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),g(x))}function g(x){return x===null||D(x)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(x)):x===96&&x===a?t(x):(e.consume(x),g)}function b(x){return e.attempt(i,T,w)(x)}function w(x){return e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),y}function y(x){return o>0&&$(x)?H(e,C,"linePrefix",o+1)(x):C(x)}function C(x){return x===null||D(x)?e.check(Jt,b,T)(x):(e.enter("codeFlowValue"),v(x))}function v(x){return x===null||D(x)?(e.exit("codeFlowValue"),C(x)):(e.consume(x),v)}function T(x){return e.exit("codeFenced"),n(x)}function O(x,_,z){let N=0;return k;function k(P){return x.enter("lineEnding"),x.consume(P),x.exit("lineEnding"),I}function I(P){return x.enter("codeFencedFence"),$(P)?H(x,F,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(P):F(P)}function F(P){return P===a?(x.enter("codeFencedFenceSequence"),L(P)):z(P)}function L(P){return P===a?(N++,x.consume(P),L):N>=l?(x.exit("codeFencedFenceSequence"),$(P)?H(x,j,"whitespace")(P):j(P)):z(P)}function j(P){return P===null||D(P)?(x.exit("codeFencedFence"),_(P)):z(P)}}}function oa(e,n,t){const r=this;return i;function i(l){return l===null?t(l):(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o)}function o(l){return r.parser.lazy[r.now().line]?t(l):n(l)}}const On={name:"codeIndented",tokenize:aa},la={partial:!0,tokenize:sa};function aa(e,n,t){const r=this;return i;function i(u){return e.enter("codeIndented"),H(e,o,"linePrefix",5)(u)}function o(u){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?l(u):t(u)}function l(u){return u===null?s(u):D(u)?e.attempt(la,l,s)(u):(e.enter("codeFlowValue"),a(u))}function a(u){return u===null||D(u)?(e.exit("codeFlowValue"),l(u)):(e.consume(u),a)}function s(u){return e.exit("codeIndented"),n(u)}}function sa(e,n,t){const r=this;return i;function i(l){return r.parser.lazy[r.now().line]?t(l):D(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),i):H(e,o,"linePrefix",5)(l)}function o(l){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?n(l):D(l)?i(l):t(l)}}const ua={name:"codeText",previous:fa,resolve:ca,tokenize:pa};function ca(e){let n=e.length-4,t=3,r,i;if((e[t][1].type==="lineEnding"||e[t][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(r=t;++r<n;)if(e[r][1].type==="codeTextData"){e[t][1].type="codeTextPadding",e[n][1].type="codeTextPadding",t+=2,n-=2;break}}for(r=t-1,n++;++r<=n;)i===void 0?r!==n&&e[r][1].type!=="lineEnding"&&(i=r):(r===n||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),n-=r-i-2,r=i+2),i=void 0);return e}function fa(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function pa(e,n,t){let r=0,i,o;return l;function l(c){return e.enter("codeText"),e.enter("codeTextSequence"),a(c)}function a(c){return c===96?(e.consume(c),r++,a):(e.exit("codeTextSequence"),s(c))}function s(c){return c===null?t(c):c===32?(e.enter("space"),e.consume(c),e.exit("space"),s):c===96?(o=e.enter("codeTextSequence"),i=0,f(c)):D(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),s):(e.enter("codeTextData"),u(c))}function u(c){return c===null||c===32||c===96||D(c)?(e.exit("codeTextData"),s(c)):(e.consume(c),u)}function f(c){return c===96?(e.consume(c),i++,f):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),n(c)):(o.type="codeTextData",u(c))}}class ha{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 o=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&qe(this.left,r),o.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),qe(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),qe(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);qe(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);qe(this.left,t.reverse())}}}function qe(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 si(e){const n={};let t=-1,r,i,o,l,a,s,u;const f=new ha(e);for(;++t<f.length;){for(;t in n;)t=n[t];if(r=f.get(t),t&&r[1].type==="chunkFlow"&&f.get(t-1)[1].type==="listItemPrefix"&&(s=r[1]._tokenizer.events,o=0,o<s.length&&s[o][1].type==="lineEndingBlank"&&(o+=2),o<s.length&&s[o][1].type==="content"))for(;++o<s.length&&s[o][1].type!=="content";)s[o][1].type==="chunkText"&&(s[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(n,ga(f,t)),t=n[t],u=!0);else if(r[1]._container){for(o=t,i=void 0;o--;)if(l=f.get(o),l[1].type==="lineEnding"||l[1].type==="lineEndingBlank")l[0]==="enter"&&(i&&(f.get(i)[1].type="lineEndingBlank"),l[1].type="lineEnding",i=o);else if(!(l[1].type==="linePrefix"||l[1].type==="listItemIndent"))break;i&&(r[1].end={...f.get(i)[1].start},a=f.slice(i,t),a.unshift(r),f.splice(i,t-i+1,a))}}return ce(e,0,Number.POSITIVE_INFINITY,f.slice(0)),!u}function ga(e,n){const t=e.get(n)[1],r=e.get(n)[2];let i=n-1;const o=[];let l=t._tokenizer;l||(l=r.parser[t.contentType](t.start),t._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));const a=l.events,s=[],u={};let f,c,h=-1,p=t,g=0,b=0;const w=[b];for(;p;){for(;e.get(++i)[1]!==p;);o.push(i),p._tokenizer||(f=r.sliceStream(p),p.next||f.push(null),c&&l.defineSkip(p.start),p._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(f),p._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),c=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,w.push(b),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(l.events=[],p?(p._tokenizer=void 0,p.previous=void 0):w.pop(),h=w.length;h--;){const y=a.slice(w[h],w[h+1]),C=o.pop();s.push([C,C+y.length-1]),e.splice(C,2,y)}for(s.reverse(),h=-1;++h<s.length;)u[g+s[h][0]]=g+s[h][1],g+=s[h][1]-s[h][0]-1;return u}const da={resolve:ya,tokenize:ba},ma={partial:!0,tokenize:ka};function ya(e){return si(e),e}function ba(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?o(a):D(a)?e.check(ma,l,o)(a):(e.consume(a),i)}function o(a){return e.exit("chunkContent"),e.exit("content"),n(a)}function l(a){return e.consume(a),e.exit("chunkContent"),t.next=e.enter("chunkContent",{contentType:"content",previous:t}),t=t.next,i}}function ka(e,n,t){const r=this;return i;function i(l){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),H(e,o,"linePrefix")}function o(l){if(l===null||D(l))return t(l);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(l):e.interrupt(r.parser.constructs.flow,t,n)(l)}}function ui(e,n,t,r,i,o,l,a,s){const u=s||Number.POSITIVE_INFINITY;let f=0;return c;function c(y){return y===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(y),e.exit(o),h):y===null||y===32||y===41||dn(y)?t(y):(e.enter(r),e.enter(l),e.enter(a),e.enter("chunkString",{contentType:"string"}),b(y))}function h(y){return y===62?(e.enter(o),e.consume(y),e.exit(o),e.exit(i),e.exit(r),n):(e.enter(a),e.enter("chunkString",{contentType:"string"}),p(y))}function p(y){return y===62?(e.exit("chunkString"),e.exit(a),h(y)):y===null||y===60||D(y)?t(y):(e.consume(y),y===92?g:p)}function g(y){return y===60||y===62||y===92?(e.consume(y),p):p(y)}function b(y){return!f&&(y===null||y===41||q(y))?(e.exit("chunkString"),e.exit(a),e.exit(l),e.exit(r),n(y)):f<u&&y===40?(e.consume(y),f++,b):y===41?(e.consume(y),f--,b):y===null||y===32||y===40||dn(y)?t(y):(e.consume(y),y===92?w:b)}function w(y){return y===40||y===41||y===92?(e.consume(y),b):b(y)}}function ci(e,n,t,r,i,o){const l=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(o),f}function f(p){return a>999||p===null||p===91||p===93&&!s||p===94&&!a&&"_hiddenFootnoteSupport"in l.parser.constructs?t(p):p===93?(e.exit(o),e.enter(i),e.consume(p),e.exit(i),e.exit(r),n):D(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),c(p))}function c(p){return p===null||p===91||p===93||D(p)||a++>999?(e.exit("chunkString"),f(p)):(e.consume(p),s||(s=!$(p)),p===92?h:c)}function h(p){return p===91||p===92||p===93?(e.consume(p),a++,c):c(p)}}function fi(e,n,t,r,i,o){let l;return a;function a(h){return h===34||h===39||h===40?(e.enter(r),e.enter(i),e.consume(h),e.exit(i),l=h===40?41:h,s):t(h)}function s(h){return h===l?(e.enter(i),e.consume(h),e.exit(i),e.exit(r),n):(e.enter(o),u(h))}function u(h){return h===l?(e.exit(o),s(l)):h===null?t(h):D(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),H(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===l||h===null||D(h)?(e.exit("chunkString"),u(h)):(e.consume(h),h===92?c:f)}function c(h){return h===l||h===92?(e.consume(h),f):f(h)}}function We(e,n){let t;return r;function r(i){return D(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t=!0,r):$(i)?H(e,r,t?"linePrefix":"lineSuffix")(i):n(i)}}const xa={name:"definition",tokenize:Sa},wa={partial:!0,tokenize:va};function Sa(e,n,t){const r=this;let i;return o;function o(p){return e.enter("definition"),l(p)}function l(p){return ci.call(r,e,a,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function a(p){return i=ge(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 q(p)?We(e,u)(p):u(p)}function u(p){return ui(e,f,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function f(p){return e.attempt(wa,c,c)(p)}function c(p){return $(p)?H(e,h,"whitespace")(p):h(p)}function h(p){return p===null||D(p)?(e.exit("definition"),r.parser.defined.push(i),n(p)):t(p)}}function va(e,n,t){return r;function r(a){return q(a)?We(e,i)(a):t(a)}function i(a){return fi(e,o,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function o(a){return $(a)?H(e,l,"whitespace")(a):l(a)}function l(a){return a===null||D(a)?n(a):t(a)}}const Ca={name:"hardBreakEscape",tokenize:Ea};function Ea(e,n,t){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return D(o)?(e.exit("hardBreakEscape"),n(o)):t(o)}}const Aa={name:"headingAtx",resolve:Ia,tokenize:Ta};function Ia(e,n){let t=e.length-2,r=3,i,o;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},o={type:"chunkText",start:e[r][1].start,end:e[t][1].end,contentType:"text"},ce(e,r,t-r+1,[["enter",i,n],["enter",o,n],["exit",o,n],["exit",i,n]])),e}function Ta(e,n,t){let r=0;return i;function i(f){return e.enter("atxHeading"),o(f)}function o(f){return e.enter("atxHeadingSequence"),l(f)}function l(f){return f===35&&r++<6?(e.consume(f),l):f===null||q(f)?(e.exit("atxHeadingSequence"),a(f)):t(f)}function a(f){return f===35?(e.enter("atxHeadingSequence"),s(f)):f===null||D(f)?(e.exit("atxHeading"),n(f)):$(f)?H(e,a,"whitespace")(f):(e.enter("atxHeadingText"),u(f))}function s(f){return f===35?(e.consume(f),s):(e.exit("atxHeadingSequence"),a(f))}function u(f){return f===null||f===35||q(f)?(e.exit("atxHeadingText"),a(f)):(e.consume(f),u)}}const Fa=["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"],nr=["pre","script","style","textarea"],La={concrete:!0,name:"htmlFlow",resolveTo:Da,tokenize:za},Oa={partial:!0,tokenize:Ra},_a={partial:!0,tokenize:Na};function Da(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 za(e,n,t){const r=this;let i,o,l,a,s;return u;function u(m){return f(m)}function f(m){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(m),c}function c(m){return m===33?(e.consume(m),h):m===47?(e.consume(m),o=!0,b):m===63?(e.consume(m),i=3,r.interrupt?n:d):re(m)?(e.consume(m),l=String.fromCharCode(m),w):t(m)}function h(m){return m===45?(e.consume(m),i=2,p):m===91?(e.consume(m),i=5,a=0,g):re(m)?(e.consume(m),i=4,r.interrupt?n:d):t(m)}function p(m){return m===45?(e.consume(m),r.interrupt?n:d):t(m)}function g(m){const ae="CDATA[";return m===ae.charCodeAt(a++)?(e.consume(m),a===ae.length?r.interrupt?n:F:g):t(m)}function b(m){return re(m)?(e.consume(m),l=String.fromCharCode(m),w):t(m)}function w(m){if(m===null||m===47||m===62||q(m)){const ae=m===47,de=l.toLowerCase();return!ae&&!o&&nr.includes(de)?(i=1,r.interrupt?n(m):F(m)):Fa.includes(l.toLowerCase())?(i=6,ae?(e.consume(m),y):r.interrupt?n(m):F(m)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?t(m):o?C(m):v(m))}return m===45||ne(m)?(e.consume(m),l+=String.fromCharCode(m),w):t(m)}function y(m){return m===62?(e.consume(m),r.interrupt?n:F):t(m)}function C(m){return $(m)?(e.consume(m),C):k(m)}function v(m){return m===47?(e.consume(m),k):m===58||m===95||re(m)?(e.consume(m),T):$(m)?(e.consume(m),v):k(m)}function T(m){return m===45||m===46||m===58||m===95||ne(m)?(e.consume(m),T):O(m)}function O(m){return m===61?(e.consume(m),x):$(m)?(e.consume(m),O):v(m)}function x(m){return m===null||m===60||m===61||m===62||m===96?t(m):m===34||m===39?(e.consume(m),s=m,_):$(m)?(e.consume(m),x):z(m)}function _(m){return m===s?(e.consume(m),s=null,N):m===null||D(m)?t(m):(e.consume(m),_)}function z(m){return m===null||m===34||m===39||m===47||m===60||m===61||m===62||m===96||q(m)?O(m):(e.consume(m),z)}function N(m){return m===47||m===62||$(m)?v(m):t(m)}function k(m){return m===62?(e.consume(m),I):t(m)}function I(m){return m===null||D(m)?F(m):$(m)?(e.consume(m),I):t(m)}function F(m){return m===45&&i===2?(e.consume(m),W):m===60&&i===1?(e.consume(m),G):m===62&&i===4?(e.consume(m),K):m===63&&i===3?(e.consume(m),d):m===93&&i===5?(e.consume(m),ie):D(m)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(Oa,ee,L)(m)):m===null||D(m)?(e.exit("htmlFlowData"),L(m)):(e.consume(m),F)}function L(m){return e.check(_a,j,ee)(m)}function j(m){return e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),P}function P(m){return m===null||D(m)?L(m):(e.enter("htmlFlowData"),F(m))}function W(m){return m===45?(e.consume(m),d):F(m)}function G(m){return m===47?(e.consume(m),l="",J):F(m)}function J(m){if(m===62){const ae=l.toLowerCase();return nr.includes(ae)?(e.consume(m),K):F(m)}return re(m)&&l.length<8?(e.consume(m),l+=String.fromCharCode(m),J):F(m)}function ie(m){return m===93?(e.consume(m),d):F(m)}function d(m){return m===62?(e.consume(m),K):m===45&&i===2?(e.consume(m),d):F(m)}function K(m){return m===null||D(m)?(e.exit("htmlFlowData"),ee(m)):(e.consume(m),K)}function ee(m){return e.exit("htmlFlow"),n(m)}}function Na(e,n,t){const r=this;return i;function i(l){return D(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o):t(l)}function o(l){return r.parser.lazy[r.now().line]?t(l):n(l)}}function Ra(e,n,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(tn,n,t)}}const Pa={name:"htmlText",tokenize:Ma};function Ma(e,n,t){const r=this;let i,o,l;return a;function a(d){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(d),s}function s(d){return d===33?(e.consume(d),u):d===47?(e.consume(d),O):d===63?(e.consume(d),v):re(d)?(e.consume(d),z):t(d)}function u(d){return d===45?(e.consume(d),f):d===91?(e.consume(d),o=0,g):re(d)?(e.consume(d),C):t(d)}function f(d){return d===45?(e.consume(d),p):t(d)}function c(d){return d===null?t(d):d===45?(e.consume(d),h):D(d)?(l=c,G(d)):(e.consume(d),c)}function h(d){return d===45?(e.consume(d),p):c(d)}function p(d){return d===62?W(d):d===45?h(d):c(d)}function g(d){const K="CDATA[";return d===K.charCodeAt(o++)?(e.consume(d),o===K.length?b:g):t(d)}function b(d){return d===null?t(d):d===93?(e.consume(d),w):D(d)?(l=b,G(d)):(e.consume(d),b)}function w(d){return d===93?(e.consume(d),y):b(d)}function y(d){return d===62?W(d):d===93?(e.consume(d),y):b(d)}function C(d){return d===null||d===62?W(d):D(d)?(l=C,G(d)):(e.consume(d),C)}function v(d){return d===null?t(d):d===63?(e.consume(d),T):D(d)?(l=v,G(d)):(e.consume(d),v)}function T(d){return d===62?W(d):v(d)}function O(d){return re(d)?(e.consume(d),x):t(d)}function x(d){return d===45||ne(d)?(e.consume(d),x):_(d)}function _(d){return D(d)?(l=_,G(d)):$(d)?(e.consume(d),_):W(d)}function z(d){return d===45||ne(d)?(e.consume(d),z):d===47||d===62||q(d)?N(d):t(d)}function N(d){return d===47?(e.consume(d),W):d===58||d===95||re(d)?(e.consume(d),k):D(d)?(l=N,G(d)):$(d)?(e.consume(d),N):W(d)}function k(d){return d===45||d===46||d===58||d===95||ne(d)?(e.consume(d),k):I(d)}function I(d){return d===61?(e.consume(d),F):D(d)?(l=I,G(d)):$(d)?(e.consume(d),I):N(d)}function F(d){return d===null||d===60||d===61||d===62||d===96?t(d):d===34||d===39?(e.consume(d),i=d,L):D(d)?(l=F,G(d)):$(d)?(e.consume(d),F):(e.consume(d),j)}function L(d){return d===i?(e.consume(d),i=void 0,P):d===null?t(d):D(d)?(l=L,G(d)):(e.consume(d),L)}function j(d){return d===null||d===34||d===39||d===60||d===61||d===96?t(d):d===47||d===62||q(d)?N(d):(e.consume(d),j)}function P(d){return d===47||d===62||q(d)?N(d):t(d)}function W(d){return d===62?(e.consume(d),e.exit("htmlTextData"),e.exit("htmlText"),n):t(d)}function G(d){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),J}function J(d){return $(d)?H(e,ie,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d):ie(d)}function ie(d){return e.enter("htmlTextData"),l(d)}}const gt={name:"labelEnd",resolveAll:Ha,resolveTo:Ua,tokenize:qa},ja={tokenize:Va},$a={tokenize:Ga},Ba={tokenize:Wa};function Ha(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 Ua(e,n){let t=e.length,r=0,i,o,l,a;for(;t--;)if(i=e[t][1],o){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[t][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(l){if(e[t][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(o=t,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(l=t);const s={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[o][1].start},end:{...e[l][1].end}},f={type:"labelText",start:{...e[o+r+2][1].end},end:{...e[l-2][1].start}};return a=[["enter",s,n],["enter",u,n]],a=pe(a,e.slice(o+1,o+r+3)),a=pe(a,[["enter",f,n]]),a=pe(a,Sn(n.parser.constructs.insideSpan.null,e.slice(o+r+4,l-3),n)),a=pe(a,[["exit",f,n],e[l-2],e[l-1],["exit",u,n]]),a=pe(a,e.slice(l+1)),a=pe(a,[["exit",s,n]]),ce(e,o,e.length,a),e}function qa(e,n,t){const r=this;let i=r.events.length,o,l;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){o=r.events[i][1];break}return a;function a(h){return o?o._inactive?c(h):(l=r.parser.defined.includes(ge(r.sliceSerialize({start:o.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(ja,f,l?f:c)(h):h===91?e.attempt($a,f,l?u:c)(h):l?f(h):c(h)}function u(h){return e.attempt(Ba,f,c)(h)}function f(h){return n(h)}function c(h){return o._balanced=!0,t(h)}}function Va(e,n,t){return r;function r(c){return e.enter("resource"),e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),i}function i(c){return q(c)?We(e,o)(c):o(c)}function o(c){return c===41?f(c):ui(e,l,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function l(c){return q(c)?We(e,s)(c):f(c)}function a(c){return t(c)}function s(c){return c===34||c===39||c===40?fi(e,u,t,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):f(c)}function u(c){return q(c)?We(e,f)(c):f(c)}function f(c){return c===41?(e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),e.exit("resource"),n):t(c)}}function Ga(e,n,t){const r=this;return i;function i(a){return ci.call(r,e,o,l,"reference","referenceMarker","referenceString")(a)}function o(a){return r.parser.defined.includes(ge(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?n(a):t(a)}function l(a){return t(a)}}function Wa(e,n,t){return r;function r(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),i}function i(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),n):t(o)}}const Xa={name:"labelStartImage",resolveAll:gt.resolveAll,tokenize:Ya};function Ya(e,n,t){const r=this;return i;function i(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),o}function o(a){return a===91?(e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelImage"),l):t(a)}function l(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(a):n(a)}}const Ka={name:"labelStartLink",resolveAll:gt.resolveAll,tokenize:Za};function Za(e,n,t){const r=this;return i;function i(l){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelLink"),o}function o(l){return l===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(l):n(l)}}const _n={name:"lineEnding",tokenize:Qa};function Qa(e,n){return t;function t(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),H(e,n,"linePrefix")}}const cn={name:"thematicBreak",tokenize:Ja};function Ja(e,n,t){let r=0,i;return o;function o(u){return e.enter("thematicBreak"),l(u)}function l(u){return i=u,a(u)}function a(u){return u===i?(e.enter("thematicBreakSequence"),s(u)):r>=3&&(u===null||D(u))?(e.exit("thematicBreak"),n(u)):t(u)}function s(u){return u===i?(e.consume(u),r++,s):(e.exit("thematicBreakSequence"),$(u)?H(e,a,"whitespace")(u):a(u))}}const oe={continuation:{tokenize:rs},exit:os,name:"list",tokenize:ts},es={partial:!0,tokenize:ls},ns={partial:!0,tokenize:is};function ts(e,n,t){const r=this,i=r.events[r.events.length-1];let o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,l=0;return a;function a(p){const g=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(g==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:Yn(p)){if(r.containerState.type||(r.containerState.type=g,e.enter(g,{_container:!0})),g==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(cn,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 Yn(p)&&++l<10?(e.consume(p),s):(!r.interrupt||l<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(tn,r.interrupt?t:f,e.attempt(es,h,c))}function f(p){return r.containerState.initialBlankLine=!0,o++,h(p)}function c(p){return $(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),h):t(p)}function h(p){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(p)}}function rs(e,n,t){const r=this;return r.containerState._closeFlow=void 0,e.check(tn,i,o);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,H(e,n,"listItemIndent",r.containerState.size+1)(a)}function o(a){return r.containerState.furtherBlankLines||!$(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,l(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(ns,n,l)(a))}function l(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,H(e,e.attempt(oe,n,t),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function is(e,n,t){const r=this;return H(e,i,"listItemIndent",r.containerState.size+1);function i(o){const l=r.events[r.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===r.containerState.size?n(o):t(o)}}function os(e){e.exit(this.containerState.type)}function ls(e,n,t){const r=this;return H(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(o){const l=r.events[r.events.length-1];return!$(o)&&l&&l[1].type==="listItemPrefixWhitespace"?n(o):t(o)}}const tr={name:"setextUnderline",resolveTo:as,tokenize:ss};function as(e,n){let t=e.length,r,i,o;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),!o&&e[t][1].type==="definition"&&(o=t);const l={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",l,n]),e.splice(o+1,0,["exit",e[r][1],n]),e[r][1].end={...e[o][1].end}):e[r][1]=l,e.push(["exit",l,n]),e}function ss(e,n,t){const r=this;let i;return o;function o(u){let f=r.events.length,c;for(;f--;)if(r.events[f][1].type!=="lineEnding"&&r.events[f][1].type!=="linePrefix"&&r.events[f][1].type!=="content"){c=r.events[f][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||c)?(e.enter("setextHeadingLine"),i=u,l(u)):t(u)}function l(u){return e.enter("setextHeadingLineSequence"),a(u)}function a(u){return u===i?(e.consume(u),a):(e.exit("setextHeadingLineSequence"),$(u)?H(e,s,"lineSuffix")(u):s(u))}function s(u){return u===null||D(u)?(e.exit("setextHeadingLine"),n(u)):t(u)}}const us={tokenize:cs};function cs(e){const n=this,t=e.attempt(tn,r,e.attempt(this.parser.constructs.flowInitial,i,H(e,e.attempt(this.parser.constructs.flow,i,e.attempt(da,i)),"linePrefix")));return t;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),n.currentConstruct=void 0,t}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n.currentConstruct=void 0,t}}const fs={resolveAll:hi()},ps=pi("string"),hs=pi("text");function pi(e){return{resolveAll:hi(e==="text"?gs:void 0),tokenize:n};function n(t){const r=this,i=this.parser.constructs[e],o=t.attempt(i,l,a);return l;function l(f){return u(f)?o(f):a(f)}function a(f){if(f===null){t.consume(f);return}return t.enter("data"),t.consume(f),s}function s(f){return u(f)?(t.exit("data"),o(f)):(t.consume(f),s)}function u(f){if(f===null)return!0;const c=i[f];let h=-1;if(c)for(;++h<c.length;){const p=c[h];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function hi(e){return n;function n(t,r){let i=-1,o;for(;++i<=t.length;)o===void 0?t[i]&&t[i][1].type==="data"&&(o=i,i++):(!t[i]||t[i][1].type!=="data")&&(i!==o+2&&(t[o][1].end=t[i-1][1].end,t.splice(o+2,i-o-2),i=o+2),o=void 0);return e?e(t,r):t}}function gs(e,n){let t=0;for(;++t<=e.length;)if((t===e.length||e[t][1].type==="lineEnding")&&e[t-1][1].type==="data"){const r=e[t-1][1],i=n.sliceStream(r);let o=i.length,l=-1,a=0,s;for(;o--;){const u=i[o];if(typeof u=="string"){for(l=u.length;u.charCodeAt(l-1)===32;)a++,l--;if(l)break;l=-1}else if(u===-2)s=!0,a++;else if(u!==-1){o++;break}}if(n._contentTypeTextTrailing&&t===e.length&&(a=0),a){const u={type:t===e.length||s||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?l:r.start._bufferIndex+l,_index:r.start._index+o,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 ds={42:oe,43:oe,45:oe,48:oe,49:oe,50:oe,51:oe,52:oe,53:oe,54:oe,55:oe,56:oe,57:oe,62:oi},ms={91:xa},ys={[-2]:On,[-1]:On,32:On},bs={35:Aa,42:cn,45:[tr,cn],60:La,61:tr,95:cn,96:er,126:er},ks={38:ai,92:li},xs={[-5]:_n,[-4]:_n,[-3]:_n,33:Xa,38:ai,42:Kn,60:[Kl,Pa],91:Ka,92:[Ca,li],93:gt,95:Kn,96:ua},ws={null:[Kn,fs]},Ss={null:[42,95]},vs={null:[]},Cs=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Ss,contentInitial:ms,disable:vs,document:ds,flow:bs,flowInitial:ys,insideSpan:ws,string:ks,text:xs},Symbol.toStringTag,{value:"Module"}));function Es(e,n,t){let r={_bufferIndex:-1,_index:0,line:t&&t.line||1,column:t&&t.column||1,offset:t&&t.offset||0};const i={},o=[];let l=[],a=[];const s={attempt:_(O),check:_(x),consume:C,enter:v,exit:T,interrupt:_(x,{interrupt:!0})},u={code:null,containerState:{},defineSkip:b,events:[],now:g,parser:e,previous:null,sliceSerialize:h,sliceStream:p,write:c};let f=n.tokenize.call(u,s);return n.resolveAll&&o.push(n),u;function c(I){return l=pe(l,I),w(),l[l.length-1]!==null?[]:(z(n,0),u.events=Sn(o,u.events,u),u.events)}function h(I,F){return Is(p(I),F)}function p(I){return As(l,I)}function g(){const{_bufferIndex:I,_index:F,line:L,column:j,offset:P}=r;return{_bufferIndex:I,_index:F,line:L,column:j,offset:P}}function b(I){i[I.line]=I.column,k()}function w(){let I;for(;r._index<l.length;){const F=l[r._index];if(typeof F=="string")for(I=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===I&&r._bufferIndex<F.length;)y(F.charCodeAt(r._bufferIndex));else y(F)}}function y(I){f=f(I)}function C(I){D(I)?(r.line++,r.column=1,r.offset+=I===-3?2:1,k()):I!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===l[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=I}function v(I,F){const L=F||{};return L.type=I,L.start=g(),u.events.push(["enter",L,u]),a.push(L),L}function T(I){const F=a.pop();return F.end=g(),u.events.push(["exit",F,u]),F}function O(I,F){z(I,F.from)}function x(I,F){F.restore()}function _(I,F){return L;function L(j,P,W){let G,J,ie,d;return Array.isArray(j)?ee(j):"tokenize"in j?ee([j]):K(j);function K(X){return we;function we(fe){const Se=fe!==null&&X[fe],ve=fe!==null&&X.null,De=[...Array.isArray(Se)?Se:Se?[Se]:[],...Array.isArray(ve)?ve:ve?[ve]:[]];return ee(De)(fe)}}function ee(X){return G=X,J=0,X.length===0?W:m(X[J])}function m(X){return we;function we(fe){return d=N(),ie=X,X.partial||(u.currentConstruct=X),X.name&&u.parser.constructs.disable.null.includes(X.name)?de():X.tokenize.call(F?Object.assign(Object.create(u),F):u,s,ae,de)(fe)}}function ae(X){return I(ie,d),P}function de(X){return d.restore(),++J<G.length?m(G[J]):W}}}function z(I,F){I.resolveAll&&!o.includes(I)&&o.push(I),I.resolve&&ce(u.events,F,u.events.length-F,I.resolve(u.events.slice(F),u)),I.resolveTo&&(u.events=I.resolveTo(u.events,u))}function N(){const I=g(),F=u.previous,L=u.currentConstruct,j=u.events.length,P=Array.from(a);return{from:j,restore:W};function W(){r=I,u.previous=F,u.currentConstruct=L,u.events.length=j,a=P,k()}}function k(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function As(e,n){const t=n.start._index,r=n.start._bufferIndex,i=n.end._index,o=n.end._bufferIndex;let l;if(t===i)l=[e[t].slice(r,o)];else{if(l=e.slice(t,i),r>-1){const a=l[0];typeof a=="string"?l[0]=a.slice(r):l.shift()}o>0&&l.push(e[i].slice(0,o))}return l}function Is(e,n){let t=-1;const r=[];let i;for(;++t<e.length;){const o=e[t];let l;if(typeof o=="string")l=o;else switch(o){case-5:{l="\r";break}case-4:{l=`
|
|
3
3
|
`;break}case-3:{l=`\r
|
|
4
4
|
`;break}case-2:{l=n?" ":" ";break}case-1:{if(!n&&i)continue;l=" ";break}default:l=String.fromCharCode(o)}i=o===-2,r.push(l)}return r.join("")}function Ts(e){const r={constructs:ri([Cs,...(e||{}).extensions||[]]),content:i(Ul),defined:[],document:i(Vl),flow:i(us),lazy:{},string:i(ps),text:i(hs)};return r;function i(o){return l;function l(a){return Es(r,o,a)}}}function Fs(e){for(;!si(e););return e}const rr=/[\0\t\n\r]/g;function Ls(){let e=1,n="",t=!0,r;return i;function i(o,l,a){const s=[];let u,f,c,h,p;for(o=n+(typeof o=="string"?o.toString():new TextDecoder(l||void 0).decode(o)),c=0,n="",t&&(o.charCodeAt(0)===65279&&c++,t=void 0);c<o.length;){if(rr.lastIndex=c,u=rr.exec(o),h=u&&u.index!==void 0?u.index:o.length,p=o.charCodeAt(h),!u){n=o.slice(c);break}if(p===10&&c===h&&r)s.push(-3),r=void 0;else switch(r&&(s.push(-5),r=void 0),c<h&&(s.push(o.slice(c,h)),e+=h-c),p){case 0:{s.push(65533),e++;break}case 9:{for(f=Math.ceil(e/4)*4,s.push(-2);e++<f;)s.push(-1);break}case 10:{s.push(-4),e=1;break}default:r=!0,e=1}c=h+1}return a&&(r&&s.push(-5),n&&s.push(n),s.push(null)),s}}const Os=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function _s(e){return e.replace(Os,Ds)}function Ds(e,n,t){if(n)return n;if(t.charCodeAt(0)===35){const i=t.charCodeAt(1),o=i===120||i===88;return ii(t.slice(o?2:1),o?16:10)}return Qe(t)||e}const gi={}.hasOwnProperty;function zs(e,n,t){return typeof n!="string"&&(t=n,n=void 0),Ns(t)(Fs(Ts(t).document().write(Ls()(e,n,!0))))}function Ns(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(_t),autolinkProtocol:N,autolinkEmail:N,atxHeading:o(Ft),blockQuote:o(ve),characterEscape:N,characterReference:N,codeFenced:o(De),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:o(De,l),codeText:o(go,l),codeTextData:N,data:N,codeFlowValue:N,definition:o(mo),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:o(yo),hardBreakEscape:o(Lt),hardBreakTrailing:o(Lt),htmlFlow:o(Ot,l),htmlFlowData:N,htmlText:o(Ot,l),htmlTextData:N,image:o(bo),label:l,link:o(_t),listItem:o(ko),listItemValue:h,listOrdered:o(Dt,c),listUnordered:o(Dt),paragraph:o(xo),reference:m,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:o(Ft),strong:o(wo),thematicBreak:o(vo)},exit:{atxHeading:s(),atxHeadingSequence:O,autolink:s(),autolinkEmail:Se,autolinkProtocol:fe,blockQuote:s(),characterEscapeValue:k,characterReferenceMarkerHexadecimal:de,characterReferenceMarkerNumeric:de,characterReferenceValue:X,characterReference:we,codeFenced:s(w),codeFencedFence:b,codeFencedFenceInfo:p,codeFencedFenceMeta:g,codeFlowValue:k,codeIndented:s(y),codeText:s(P),codeTextData:k,data:k,definition:s(),definitionDestinationString:T,definitionLabelString:C,definitionTitleString:v,emphasis:s(),hardBreakEscape:s(F),hardBreakTrailing:s(F),htmlFlow:s(L),htmlFlowData:k,htmlText:s(j),htmlTextData:k,image:s(G),label:ie,labelText:J,lineEnding:I,link:s(W),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:ae,resourceDestinationString:d,resourceTitleString:K,resource:ee,setextHeading:s(z),setextHeadingLineSequence:_,setextHeadingText:x,strong:s(),thematicBreak:s()}};di(n,(e||{}).mdastExtensions||[]);const t={};return r;function r(S){let A={type:"root",children:[]};const R={stack:[A],tokenStack:[],config:n,enter:a,exit:u,buffer:l,resume:f,data:t},B=[];let U=-1;for(;++U<S.length;)if(S[U][1].type==="listOrdered"||S[U][1].type==="listUnordered")if(S[U][0]==="enter")B.push(U);else{const he=B.pop();U=i(S,he,U)}for(U=-1;++U<S.length;){const he=n[S[U][0]];gi.call(he,S[U][1].type)&&he[S[U][1].type].call(Object.assign({sliceSerialize:S[U][2].sliceSerialize},R),S[U][1])}if(R.tokenStack.length>0){const he=R.tokenStack[R.tokenStack.length-1];(he[1]||ir).call(R,void 0,he[0])}for(A.position={start:Ce(S.length>0?S[0][1].start:{line:1,column:1,offset:0}),end:Ce(S.length>0?S[S.length-2][1].end:{line:1,column:1,offset:0})},U=-1;++U<n.transforms.length;)A=n.transforms[U](A)||A;return A}function i(S,A,R){let B=A-1,U=-1,he=!1,Te,be,He,Ue;for(;++B<=R;){const se=S[B];switch(se[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{se[0]==="enter"?U++:U--,Ue=void 0;break}case"lineEndingBlank":{se[0]==="enter"&&(Te&&!Ue&&!U&&!He&&(He=B),Ue=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Ue=void 0}if(!U&&se[0]==="enter"&&se[1].type==="listItemPrefix"||U===-1&&se[0]==="exit"&&(se[1].type==="listUnordered"||se[1].type==="listOrdered")){if(Te){let ze=B;for(be=void 0;ze--;){const ke=S[ze];if(ke[1].type==="lineEnding"||ke[1].type==="lineEndingBlank"){if(ke[0]==="exit")continue;be&&(S[be][1].type="lineEndingBlank",he=!0),ke[1].type="lineEnding",be=ze}else if(!(ke[1].type==="linePrefix"||ke[1].type==="blockQuotePrefix"||ke[1].type==="blockQuotePrefixWhitespace"||ke[1].type==="blockQuoteMarker"||ke[1].type==="listItemIndent"))break}He&&(!be||He<be)&&(Te._spread=!0),Te.end=Object.assign({},be?S[be][1].start:se[1].end),S.splice(be||B,0,["exit",Te,se[2]]),B++,R++}if(se[1].type==="listItemPrefix"){const ze={type:"listItem",_spread:!1,start:Object.assign({},se[1].start),end:void 0};Te=ze,S.splice(B,0,["enter",ze,se[2]]),B++,R++,He=void 0,Ue=!0}}}return S[A][1]._spread=he,R}function o(S,A){return R;function R(B){a.call(this,S(B),B),A&&A.call(this,B)}}function l(){this.stack.push({type:"fragment",children:[]})}function a(S,A,R){this.stack[this.stack.length-1].children.push(S),this.stack.push(S),this.tokenStack.push([A,R||void 0]),S.position={start:Ce(A.start),end:void 0}}function s(S){return A;function A(R){S&&S.call(this,R),u.call(this,R)}}function u(S,A){const R=this.stack.pop(),B=this.tokenStack.pop();if(B)B[0].type!==S.type&&(A?A.call(this,S,B[0]):(B[1]||ir).call(this,S,B[0]));else throw new Error("Cannot close `"+S.type+"` ("+Ge({start:S.start,end:S.end})+"): it’s not open");R.position.end=Ce(S.end)}function f(){return ht(this.stack.pop())}function c(){this.data.expectingFirstListItemValue=!0}function h(S){if(this.data.expectingFirstListItemValue){const A=this.stack[this.stack.length-2];A.start=Number.parseInt(this.sliceSerialize(S),10),this.data.expectingFirstListItemValue=void 0}}function p(){const S=this.resume(),A=this.stack[this.stack.length-1];A.lang=S}function g(){const S=this.resume(),A=this.stack[this.stack.length-1];A.meta=S}function b(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function w(){const S=this.resume(),A=this.stack[this.stack.length-1];A.value=S.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function y(){const S=this.resume(),A=this.stack[this.stack.length-1];A.value=S.replace(/(\r?\n|\r)$/g,"")}function C(S){const A=this.resume(),R=this.stack[this.stack.length-1];R.label=A,R.identifier=ge(this.sliceSerialize(S)).toLowerCase()}function v(){const S=this.resume(),A=this.stack[this.stack.length-1];A.title=S}function T(){const S=this.resume(),A=this.stack[this.stack.length-1];A.url=S}function O(S){const A=this.stack[this.stack.length-1];if(!A.depth){const R=this.sliceSerialize(S).length;A.depth=R}}function x(){this.data.setextHeadingSlurpLineEnding=!0}function _(S){const A=this.stack[this.stack.length-1];A.depth=this.sliceSerialize(S).codePointAt(0)===61?1:2}function z(){this.data.setextHeadingSlurpLineEnding=void 0}function N(S){const R=this.stack[this.stack.length-1].children;let B=R[R.length-1];(!B||B.type!=="text")&&(B=So(),B.position={start:Ce(S.start),end:void 0},R.push(B)),this.stack.push(B)}function k(S){const A=this.stack.pop();A.value+=this.sliceSerialize(S),A.position.end=Ce(S.end)}function I(S){const A=this.stack[this.stack.length-1];if(this.data.atHardBreak){const R=A.children[A.children.length-1];R.position.end=Ce(S.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(A.type)&&(N.call(this,S),k.call(this,S))}function F(){this.data.atHardBreak=!0}function L(){const S=this.resume(),A=this.stack[this.stack.length-1];A.value=S}function j(){const S=this.resume(),A=this.stack[this.stack.length-1];A.value=S}function P(){const S=this.resume(),A=this.stack[this.stack.length-1];A.value=S}function W(){const S=this.stack[this.stack.length-1];if(this.data.inReference){const A=this.data.referenceType||"shortcut";S.type+="Reference",S.referenceType=A,delete S.url,delete S.title}else delete S.identifier,delete S.label;this.data.referenceType=void 0}function G(){const S=this.stack[this.stack.length-1];if(this.data.inReference){const A=this.data.referenceType||"shortcut";S.type+="Reference",S.referenceType=A,delete S.url,delete S.title}else delete S.identifier,delete S.label;this.data.referenceType=void 0}function J(S){const A=this.sliceSerialize(S),R=this.stack[this.stack.length-2];R.label=_s(A),R.identifier=ge(A).toLowerCase()}function ie(){const S=this.stack[this.stack.length-1],A=this.resume(),R=this.stack[this.stack.length-1];if(this.data.inReference=!0,R.type==="link"){const B=S.children;R.children=B}else R.alt=A}function d(){const S=this.resume(),A=this.stack[this.stack.length-1];A.url=S}function K(){const S=this.resume(),A=this.stack[this.stack.length-1];A.title=S}function ee(){this.data.inReference=void 0}function m(){this.data.referenceType="collapsed"}function ae(S){const A=this.resume(),R=this.stack[this.stack.length-1];R.label=A,R.identifier=ge(this.sliceSerialize(S)).toLowerCase(),this.data.referenceType="full"}function de(S){this.data.characterReferenceType=S.type}function X(S){const A=this.sliceSerialize(S),R=this.data.characterReferenceType;let B;R?(B=ii(A,R==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):B=Qe(A);const U=this.stack[this.stack.length-1];U.value+=B}function we(S){const A=this.stack.pop();A.position.end=Ce(S.end)}function fe(S){k.call(this,S);const A=this.stack[this.stack.length-1];A.url=this.sliceSerialize(S)}function Se(S){k.call(this,S);const A=this.stack[this.stack.length-1];A.url="mailto:"+this.sliceSerialize(S)}function ve(){return{type:"blockquote",children:[]}}function De(){return{type:"code",lang:null,meta:null,value:""}}function go(){return{type:"inlineCode",value:""}}function mo(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function yo(){return{type:"emphasis",children:[]}}function Ft(){return{type:"heading",depth:0,children:[]}}function Lt(){return{type:"break"}}function Ot(){return{type:"html",value:""}}function bo(){return{type:"image",title:null,url:"",alt:null}}function _t(){return{type:"link",title:null,url:"",children:[]}}function Dt(S){return{type:"list",ordered:S.type==="listOrdered",start:null,spread:S._spread,children:[]}}function ko(S){return{type:"listItem",spread:S._spread,checked:null,children:[]}}function xo(){return{type:"paragraph",children:[]}}function wo(){return{type:"strong",children:[]}}function So(){return{type:"text",value:""}}function vo(){return{type:"thematicBreak"}}}function Ce(e){return{line:e.line,column:e.column,offset:e.offset}}function di(e,n){let t=-1;for(;++t<n.length;){const r=n[t];Array.isArray(r)?di(e,r):Rs(e,r)}}function Rs(e,n){let t;for(t in n)if(gi.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 ir(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+Ge({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+Ge({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+Ge({start:n.start,end:n.end})+") is still open")}function Ps(e){const n=this;n.parser=t;function t(r){return zs(r,{...n.data("settings"),...e,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}function Ms(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 js(e,n){const t={type:"element",tagName:"br",properties:{},children:[]};return e.patch(n,t),[e.applyData(n,t),{type:"text",value:`
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import{r as s,a as Xe,j as p,b as Pn,c as Rn,u as Tn,o as An,s as _n,f as On,d as Nn,e as In,h as Dn,l as Mn,g as Ln,R as z}from"./vendor-react-BalntB5F.js";function Ct(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function ne(...e){return t=>{let r=!1;const n=e.map(o=>{const a=Ct(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():Ct(e[o],null)}}}}function N(...e){return s.useCallback(ne(...e),e)}var jn=Symbol.for("react.lazy"),Ce=Xe[" use ".trim().toString()];function Fn(e){return typeof e=="object"&&e!==null&&"then"in e}function Lt(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===jn&&"_payload"in e&&Fn(e._payload)}function kn(e){const t=$n(e),r=s.forwardRef((n,o)=>{let{children:a,...i}=n;Lt(a)&&typeof Ce=="function"&&(a=Ce(a._payload));const c=s.Children.toArray(a),u=c.find(Bn);if(u){const l=u.props.children,d=c.map(f=>f===u?s.Children.count(l)>1?s.Children.only(null):s.isValidElement(l)?l.props.children:null:f);return p.jsx(t,{...i,ref:o,children:s.isValidElement(l)?s.cloneElement(l,void 0,d):null})}return p.jsx(t,{...i,ref:o,children:a})});return r.displayName=`${e}.Slot`,r}var ei=kn("Slot");function $n(e){const t=s.forwardRef((r,n)=>{let{children:o,...a}=r;if(Lt(o)&&typeof Ce=="function"&&(o=Ce(o._payload)),s.isValidElement(o)){const i=Vn(o),c=Hn(a,o.props);return o.type!==s.Fragment&&(c.ref=n?ne(n,i):i),s.cloneElement(o,c)}return s.Children.count(o)>1?s.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Wn=Symbol("radix.slottable");function Bn(e){return s.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Wn}function Hn(e,t){const r={...t};for(const n in t){const o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...c)=>{const u=a(...c);return o(...c),u}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}function Vn(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function P(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e==null||e(o),r===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function Un(e,t){const r=s.createContext(t),n=a=>{const{children:i,...c}=a,u=s.useMemo(()=>c,Object.values(c));return p.jsx(r.Provider,{value:u,children:i})};n.displayName=e+"Provider";function o(a){const i=s.useContext(r);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,o]}function H(e,t=[]){let r=[];function n(a,i){const c=s.createContext(i),u=r.length;r=[...r,i];const l=f=>{var b;const{scope:v,children:m,...y}=f,h=((b=v==null?void 0:v[e])==null?void 0:b[u])||c,g=s.useMemo(()=>y,Object.values(y));return p.jsx(h.Provider,{value:g,children:m})};l.displayName=a+"Provider";function d(f,v){var h;const m=((h=v==null?void 0:v[e])==null?void 0:h[u])||c,y=s.useContext(m);if(y)return y;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${a}\``)}return[l,d]}const o=()=>{const a=r.map(i=>s.createContext(i));return function(c){const u=(c==null?void 0:c[e])||a;return s.useMemo(()=>({[`__scope${e}`]:{...c,[e]:u}}),[c,u])}};return o.scopeName=e,[n,zn(o,...t)]}function zn(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const i=n.reduce((c,{useScope:u,scopeName:l})=>{const f=u(a)[`__scope${l}`];return{...c,...f}},{});return s.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}var W=globalThis!=null&&globalThis.document?s.useLayoutEffect:()=>{},Yn=Xe[" useId ".trim().toString()]||(()=>{}),Gn=0;function Y(e){const[t,r]=s.useState(Yn());return W(()=>{r(n=>n??String(Gn++))},[e]),e||(t?`radix-${t}`:"")}var Xn=Xe[" useInsertionEffect ".trim().toString()]||W;function se({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,a,i]=Kn({defaultProp:t,onChange:r}),c=e!==void 0,u=c?e:o;{const d=s.useRef(e!==void 0);s.useEffect(()=>{const f=d.current;f!==c&&console.warn(`${n} is changing from ${f?"controlled":"uncontrolled"} to ${c?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=c},[c,n])}const l=s.useCallback(d=>{var f;if(c){const v=Zn(d)?d(e):d;v!==e&&((f=i.current)==null||f.call(i,v))}else a(d)},[c,e,a,i]);return[u,l]}function Kn({defaultProp:e,onChange:t}){const[r,n]=s.useState(e),o=s.useRef(r),a=s.useRef(t);return Xn(()=>{a.current=t},[t]),s.useEffect(()=>{var i;o.current!==r&&((i=a.current)==null||i.call(a,r),o.current=r)},[r,o]),[r,n,a]}function Zn(e){return typeof e=="function"}function qn(e){const t=Qn(e),r=s.forwardRef((n,o)=>{const{children:a,...i}=n,c=s.Children.toArray(a),u=c.find(eo);if(u){const l=u.props.children,d=c.map(f=>f===u?s.Children.count(l)>1?s.Children.only(null):s.isValidElement(l)?l.props.children:null:f);return p.jsx(t,{...i,ref:o,children:s.isValidElement(l)?s.cloneElement(l,void 0,d):null})}return p.jsx(t,{...i,ref:o,children:a})});return r.displayName=`${e}.Slot`,r}function Qn(e){const t=s.forwardRef((r,n)=>{const{children:o,...a}=r;if(s.isValidElement(o)){const i=ro(o),c=to(a,o.props);return o.type!==s.Fragment&&(c.ref=n?ne(n,i):i),s.cloneElement(o,c)}return s.Children.count(o)>1?s.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Jn=Symbol("radix.slottable");function eo(e){return s.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Jn}function to(e,t){const r={...t};for(const n in t){const o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...c)=>{const u=a(...c);return o(...c),u}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}function ro(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var no=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],_=no.reduce((e,t)=>{const r=qn(`Primitive.${t}`),n=s.forwardRef((o,a)=>{const{asChild:i,...c}=o,u=i?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(u,{...c,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function oo(e,t){e&&Pn.flushSync(()=>e.dispatchEvent(t))}function D(e){const t=s.useRef(e);return s.useEffect(()=>{t.current=e}),s.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}function ao(e,t=globalThis==null?void 0:globalThis.document){const r=D(e);s.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var so="DismissableLayer",Ve="dismissableLayer.update",io="dismissableLayer.pointerDownOutside",co="dismissableLayer.focusOutside",wt,jt=s.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),xe=s.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:i,onDismiss:c,...u}=e,l=s.useContext(jt),[d,f]=s.useState(null),v=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=s.useState({}),y=N(t,S=>f(S)),h=Array.from(l.layers),[g]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),b=h.indexOf(g),C=d?h.indexOf(d):-1,w=l.layersWithOutsidePointerEventsDisabled.size>0,E=C>=b,x=fo(S=>{const T=S.target,A=[...l.branches].some(O=>O.contains(T));!E||A||(o==null||o(S),i==null||i(S),S.defaultPrevented||c==null||c())},v),R=po(S=>{const T=S.target;[...l.branches].some(O=>O.contains(T))||(a==null||a(S),i==null||i(S),S.defaultPrevented||c==null||c())},v);return ao(S=>{C===l.layers.size-1&&(n==null||n(S),!S.defaultPrevented&&c&&(S.preventDefault(),c()))},v),s.useEffect(()=>{if(d)return r&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(wt=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(d)),l.layers.add(d),Et(),()=>{r&&l.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=wt)}},[d,v,r,l]),s.useEffect(()=>()=>{d&&(l.layers.delete(d),l.layersWithOutsidePointerEventsDisabled.delete(d),Et())},[d,l]),s.useEffect(()=>{const S=()=>m({});return document.addEventListener(Ve,S),()=>document.removeEventListener(Ve,S)},[]),p.jsx(_.div,{...u,ref:y,style:{pointerEvents:w?E?"auto":"none":void 0,...e.style},onFocusCapture:P(e.onFocusCapture,R.onFocusCapture),onBlurCapture:P(e.onBlurCapture,R.onBlurCapture),onPointerDownCapture:P(e.onPointerDownCapture,x.onPointerDownCapture)})});xe.displayName=so;var lo="DismissableLayerBranch",uo=s.forwardRef((e,t)=>{const r=s.useContext(jt),n=s.useRef(null),o=N(t,n);return s.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),p.jsx(_.div,{...e,ref:o})});uo.displayName=lo;function fo(e,t=globalThis==null?void 0:globalThis.document){const r=D(e),n=s.useRef(!1),o=s.useRef(()=>{});return s.useEffect(()=>{const a=c=>{if(c.target&&!n.current){let u=function(){Ft(io,r,l,{discrete:!0})};const l={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=u,t.addEventListener("click",o.current,{once:!0})):u()}else t.removeEventListener("click",o.current);n.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function po(e,t=globalThis==null?void 0:globalThis.document){const r=D(e),n=s.useRef(!1);return s.useEffect(()=>{const o=a=>{a.target&&!n.current&&Ft(co,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function Et(){const e=new CustomEvent(Ve);document.dispatchEvent(e)}function Ft(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?oo(o,a):o.dispatchEvent(a)}var Le="focusScope.autoFocusOnMount",je="focusScope.autoFocusOnUnmount",St={bubbles:!1,cancelable:!0},vo="FocusScope",Ke=s.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[c,u]=s.useState(null),l=D(o),d=D(a),f=s.useRef(null),v=N(t,h=>u(h)),m=s.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;s.useEffect(()=>{if(n){let h=function(w){if(m.paused||!c)return;const E=w.target;c.contains(E)?f.current=E:B(f.current,{select:!0})},g=function(w){if(m.paused||!c)return;const E=w.relatedTarget;E!==null&&(c.contains(E)||B(f.current,{select:!0}))},b=function(w){if(document.activeElement===document.body)for(const x of w)x.removedNodes.length>0&&B(c)};document.addEventListener("focusin",h),document.addEventListener("focusout",g);const C=new MutationObserver(b);return c&&C.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",g),C.disconnect()}}},[n,c,m.paused]),s.useEffect(()=>{if(c){Pt.add(m);const h=document.activeElement;if(!c.contains(h)){const b=new CustomEvent(Le,St);c.addEventListener(Le,l),c.dispatchEvent(b),b.defaultPrevented||(ho(Co(kt(c)),{select:!0}),document.activeElement===h&&B(c))}return()=>{c.removeEventListener(Le,l),setTimeout(()=>{const b=new CustomEvent(je,St);c.addEventListener(je,d),c.dispatchEvent(b),b.defaultPrevented||B(h??document.body,{select:!0}),c.removeEventListener(je,d),Pt.remove(m)},0)}}},[c,l,d,m]);const y=s.useCallback(h=>{if(!r&&!n||m.paused)return;const g=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,b=document.activeElement;if(g&&b){const C=h.currentTarget,[w,E]=mo(C);w&&E?!h.shiftKey&&b===E?(h.preventDefault(),r&&B(w,{select:!0})):h.shiftKey&&b===w&&(h.preventDefault(),r&&B(E,{select:!0})):b===C&&h.preventDefault()}},[r,n,m.paused]);return p.jsx(_.div,{tabIndex:-1,...i,ref:v,onKeyDown:y})});Ke.displayName=vo;function ho(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(B(n,{select:t}),document.activeElement!==r)return}function mo(e){const t=kt(e),r=xt(t,e),n=xt(t.reverse(),e);return[r,n]}function kt(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function xt(e,t){for(const r of e)if(!go(r,{upTo:t}))return r}function go(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function bo(e){return e instanceof HTMLInputElement&&"select"in e}function B(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&bo(e)&&t&&e.select()}}var Pt=yo();function yo(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=Rt(e,t),e.unshift(t)},remove(t){var r;e=Rt(e,t),(r=e[0])==null||r.resume()}}}function Rt(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function Co(e){return e.filter(t=>t.tagName!=="A")}var wo="Portal",Ze=s.forwardRef((e,t)=>{var c;const{container:r,...n}=e,[o,a]=s.useState(!1);W(()=>a(!0),[]);const i=r||o&&((c=globalThis==null?void 0:globalThis.document)==null?void 0:c.body);return i?Rn.createPortal(p.jsx(_.div,{...n,ref:t}),i):null});Ze.displayName=wo;function Eo(e,t){return s.useReducer((r,n)=>t[r][n]??r,e)}var M=e=>{const{present:t,children:r}=e,n=So(t),o=typeof r=="function"?r({present:n.isPresent}):s.Children.only(r),a=N(n.ref,xo(o));return typeof r=="function"||n.isPresent?s.cloneElement(o,{ref:a}):null};M.displayName="Presence";function So(e){const[t,r]=s.useState(),n=s.useRef(null),o=s.useRef(e),a=s.useRef("none"),i=e?"mounted":"unmounted",[c,u]=Eo(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return s.useEffect(()=>{const l=pe(n.current);a.current=c==="mounted"?l:"none"},[c]),W(()=>{const l=n.current,d=o.current;if(d!==e){const v=a.current,m=pe(l);e?u("MOUNT"):m==="none"||(l==null?void 0:l.display)==="none"?u("UNMOUNT"):u(d&&v!==m?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,u]),W(()=>{if(t){let l;const d=t.ownerDocument.defaultView??window,f=m=>{const h=pe(n.current).includes(CSS.escape(m.animationName));if(m.target===t&&h&&(u("ANIMATION_END"),!o.current)){const g=t.style.animationFillMode;t.style.animationFillMode="forwards",l=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=g)})}},v=m=>{m.target===t&&(a.current=pe(n.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{d.clearTimeout(l),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:s.useCallback(l=>{n.current=l?getComputedStyle(l):null,r(l)},[])}}function pe(e){return(e==null?void 0:e.animationName)||"none"}function xo(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Fe=0;function $t(){s.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Tt()),document.body.insertAdjacentElement("beforeend",e[1]??Tt()),Fe++,()=>{Fe===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Fe--}},[])}function Tt(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var F=function(){return F=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},F.apply(this,arguments)};function Wt(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function ti(e,t,r,n){function o(a){return a instanceof r?a:new r(function(i){i(a)})}return new(r||(r=Promise))(function(a,i){function c(d){try{l(n.next(d))}catch(f){i(f)}}function u(d){try{l(n.throw(d))}catch(f){i(f)}}function l(d){d.done?a(d.value):o(d.value).then(c,u)}l((n=n.apply(e,t||[])).next())})}function ri(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,o,a,i=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return i.next=c(0),i.throw=c(1),i.return=c(2),typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function c(l){return function(d){return u([l,d])}}function u(l){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(r=0)),r;)try{if(n=1,o&&(a=l[0]&2?o.return:l[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,l[1])).done)return a;switch(o=0,a&&(l=[l[0]&2,a.value]),l[0]){case 0:case 1:a=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,o=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]<a[3])){r.label=l[1];break}if(l[0]===6&&r.label<a[1]){r.label=a[1],a=l;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(l);break}a[2]&&r.ops.pop(),r.trys.pop();continue}l=t.call(e,r)}catch(d){l=[6,d],o=0}finally{n=a=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function ni(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,a=[],i;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)a.push(o.value)}catch(c){i={error:c}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(i)throw i.error}}return a}function Po(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var be="right-scroll-bar-position",ye="width-before-scroll-bar",Ro="with-scroll-bars-hidden",To="--removed-body-scroll-bar-size";function ke(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Ao(e,t){var r=s.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var _o=typeof window<"u"?s.useLayoutEffect:s.useEffect,At=new WeakMap;function Oo(e,t){var r=Ao(null,function(n){return e.forEach(function(o){return ke(o,n)})});return _o(function(){var n=At.get(r);if(n){var o=new Set(n),a=new Set(e),i=r.current;o.forEach(function(c){a.has(c)||ke(c,null)}),a.forEach(function(c){o.has(c)||ke(c,i)})}At.set(r,e)},[e]),r}function No(e){return e}function Io(e,t){t===void 0&&(t=No);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var i=t(a,n);return r.push(i),function(){r=r.filter(function(c){return c!==i})}},assignSyncMedium:function(a){for(n=!0;r.length;){var i=r;r=[],i.forEach(a)}r={push:function(c){return a(c)},filter:function(){return r}}},assignMedium:function(a){n=!0;var i=[];if(r.length){var c=r;r=[],c.forEach(a),i=r}var u=function(){var d=i;i=[],d.forEach(a)},l=function(){return Promise.resolve().then(u)};l(),r={push:function(d){i.push(d),l()},filter:function(d){return i=i.filter(d),r}}}};return o}function Do(e){e===void 0&&(e={});var t=Io(null);return t.options=F({async:!0,ssr:!1},e),t}var Bt=function(e){var t=e.sideCar,r=Wt(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return s.createElement(n,F({},r))};Bt.isSideCarExport=!0;function Mo(e,t){return e.useMedium(t),Bt}var Ht=Do(),$e=function(){},Pe=s.forwardRef(function(e,t){var r=s.useRef(null),n=s.useState({onScrollCapture:$e,onWheelCapture:$e,onTouchMoveCapture:$e}),o=n[0],a=n[1],i=e.forwardProps,c=e.children,u=e.className,l=e.removeScrollBar,d=e.enabled,f=e.shards,v=e.sideCar,m=e.noRelative,y=e.noIsolation,h=e.inert,g=e.allowPinchZoom,b=e.as,C=b===void 0?"div":b,w=e.gapMode,E=Wt(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),x=v,R=Oo([r,t]),S=F(F({},E),o);return s.createElement(s.Fragment,null,d&&s.createElement(x,{sideCar:Ht,removeScrollBar:l,shards:f,noRelative:m,noIsolation:y,inert:h,setCallbacks:a,allowPinchZoom:!!g,lockRef:r,gapMode:w}),i?s.cloneElement(s.Children.only(c),F(F({},S),{ref:R})):s.createElement(C,F({},S,{className:u,ref:R}),c))});Pe.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Pe.classNames={fullWidth:ye,zeroRight:be};var Lo=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function jo(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Lo();return t&&e.setAttribute("nonce",t),e}function Fo(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function ko(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var $o=function(){var e=0,t=null;return{add:function(r){e==0&&(t=jo())&&(Fo(t,r),ko(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Wo=function(){var e=$o();return function(t,r){s.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Vt=function(){var e=Wo(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},Bo={left:0,top:0,right:0,gap:0},We=function(e){return parseInt(e||"",10)||0},Ho=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[We(r),We(n),We(o)]},Vo=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Bo;var t=Ho(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},Uo=Vt(),J="data-scroll-locked",zo=function(e,t,r,n){var o=e.left,a=e.top,i=e.right,c=e.gap;return r===void 0&&(r="margin"),`
|
|
2
|
+
.`.concat(Ro,` {
|
|
3
|
+
overflow: hidden `).concat(n,`;
|
|
4
|
+
padding-right: `).concat(c,"px ").concat(n,`;
|
|
5
|
+
}
|
|
6
|
+
body[`).concat(J,`] {
|
|
7
|
+
overflow: hidden `).concat(n,`;
|
|
8
|
+
overscroll-behavior: contain;
|
|
9
|
+
`).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
|
|
10
|
+
padding-left: `.concat(o,`px;
|
|
11
|
+
padding-top: `).concat(a,`px;
|
|
12
|
+
padding-right: `).concat(i,`px;
|
|
13
|
+
margin-left:0;
|
|
14
|
+
margin-top:0;
|
|
15
|
+
margin-right: `).concat(c,"px ").concat(n,`;
|
|
16
|
+
`),r==="padding"&&"padding-right: ".concat(c,"px ").concat(n,";")].filter(Boolean).join(""),`
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.`).concat(be,` {
|
|
20
|
+
right: `).concat(c,"px ").concat(n,`;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.`).concat(ye,` {
|
|
24
|
+
margin-right: `).concat(c,"px ").concat(n,`;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.`).concat(be," .").concat(be,` {
|
|
28
|
+
right: 0 `).concat(n,`;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.`).concat(ye," .").concat(ye,` {
|
|
32
|
+
margin-right: 0 `).concat(n,`;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
body[`).concat(J,`] {
|
|
36
|
+
`).concat(To,": ").concat(c,`px;
|
|
37
|
+
}
|
|
38
|
+
`)},_t=function(){var e=parseInt(document.body.getAttribute(J)||"0",10);return isFinite(e)?e:0},Yo=function(){s.useEffect(function(){return document.body.setAttribute(J,(_t()+1).toString()),function(){var e=_t()-1;e<=0?document.body.removeAttribute(J):document.body.setAttribute(J,e.toString())}},[])},Go=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;Yo();var a=s.useMemo(function(){return Vo(o)},[o]);return s.createElement(Uo,{styles:zo(a,!t,o,r?"":"!important")})},Ue=!1;if(typeof window<"u")try{var ve=Object.defineProperty({},"passive",{get:function(){return Ue=!0,!0}});window.addEventListener("test",ve,ve),window.removeEventListener("test",ve,ve)}catch{Ue=!1}var Z=Ue?{passive:!1}:!1,Xo=function(e){return e.tagName==="TEXTAREA"},Ut=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!Xo(e)&&r[t]==="visible")},Ko=function(e){return Ut(e,"overflowY")},Zo=function(e){return Ut(e,"overflowX")},Ot=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=zt(e,n);if(o){var a=Yt(e,n),i=a[1],c=a[2];if(i>c)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},qo=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},Qo=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},zt=function(e,t){return e==="v"?Ko(t):Zo(t)},Yt=function(e,t){return e==="v"?qo(t):Qo(t)},Jo=function(e,t){return e==="h"&&t==="rtl"?-1:1},ea=function(e,t,r,n,o){var a=Jo(e,window.getComputedStyle(t).direction),i=a*n,c=r.target,u=t.contains(c),l=!1,d=i>0,f=0,v=0;do{if(!c)break;var m=Yt(e,c),y=m[0],h=m[1],g=m[2],b=h-g-a*y;(y||b)&&zt(e,c)&&(f+=b,v+=y);var C=c.parentNode;c=C&&C.nodeType===Node.DOCUMENT_FRAGMENT_NODE?C.host:C}while(!u&&c!==document.body||u&&(t.contains(c)||t===c));return(d&&Math.abs(f)<1||!d&&Math.abs(v)<1)&&(l=!0),l},he=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Nt=function(e){return[e.deltaX,e.deltaY]},It=function(e){return e&&"current"in e?e.current:e},ta=function(e,t){return e[0]===t[0]&&e[1]===t[1]},ra=function(e){return`
|
|
39
|
+
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
40
|
+
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
41
|
+
`)},na=0,q=[];function oa(e){var t=s.useRef([]),r=s.useRef([0,0]),n=s.useRef(),o=s.useState(na++)[0],a=s.useState(Vt)[0],i=s.useRef(e);s.useEffect(function(){i.current=e},[e]),s.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var h=Po([e.lockRef.current],(e.shards||[]).map(It),!0).filter(Boolean);return h.forEach(function(g){return g.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),h.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var c=s.useCallback(function(h,g){if("touches"in h&&h.touches.length===2||h.type==="wheel"&&h.ctrlKey)return!i.current.allowPinchZoom;var b=he(h),C=r.current,w="deltaX"in h?h.deltaX:C[0]-b[0],E="deltaY"in h?h.deltaY:C[1]-b[1],x,R=h.target,S=Math.abs(w)>Math.abs(E)?"h":"v";if("touches"in h&&S==="h"&&R.type==="range")return!1;var T=window.getSelection(),A=T&&T.anchorNode,O=A?A===R||A.contains(R):!1;if(O)return!1;var I=Ot(S,R);if(!I)return!0;if(I?x=S:(x=S==="v"?"h":"v",I=Ot(S,R)),!I)return!1;if(!n.current&&"changedTouches"in h&&(w||E)&&(n.current=x),!x)return!0;var U=n.current||x;return ea(U,g,h,U==="h"?w:E)},[]),u=s.useCallback(function(h){var g=h;if(!(!q.length||q[q.length-1]!==a)){var b="deltaY"in g?Nt(g):he(g),C=t.current.filter(function(x){return x.name===g.type&&(x.target===g.target||g.target===x.shadowParent)&&ta(x.delta,b)})[0];if(C&&C.should){g.cancelable&&g.preventDefault();return}if(!C){var w=(i.current.shards||[]).map(It).filter(Boolean).filter(function(x){return x.contains(g.target)}),E=w.length>0?c(g,w[0]):!i.current.noIsolation;E&&g.cancelable&&g.preventDefault()}}},[]),l=s.useCallback(function(h,g,b,C){var w={name:h,delta:g,target:b,should:C,shadowParent:aa(b)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(E){return E!==w})},1)},[]),d=s.useCallback(function(h){r.current=he(h),n.current=void 0},[]),f=s.useCallback(function(h){l(h.type,Nt(h),h.target,c(h,e.lockRef.current))},[]),v=s.useCallback(function(h){l(h.type,he(h),h.target,c(h,e.lockRef.current))},[]);s.useEffect(function(){return q.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:v}),document.addEventListener("wheel",u,Z),document.addEventListener("touchmove",u,Z),document.addEventListener("touchstart",d,Z),function(){q=q.filter(function(h){return h!==a}),document.removeEventListener("wheel",u,Z),document.removeEventListener("touchmove",u,Z),document.removeEventListener("touchstart",d,Z)}},[]);var m=e.removeScrollBar,y=e.inert;return s.createElement(s.Fragment,null,y?s.createElement(a,{styles:ra(o)}):null,m?s.createElement(Go,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function aa(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const sa=Mo(Ht,oa);var qe=s.forwardRef(function(e,t){return s.createElement(Pe,F({},e,{ref:t,sideCar:sa}))});qe.classNames=Pe.classNames;var ia=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Q=new WeakMap,me=new WeakMap,ge={},Be=0,Gt=function(e){return e&&(e.host||Gt(e.parentNode))},ca=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=Gt(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},la=function(e,t,r,n){var o=ca(t,Array.isArray(e)?e:[e]);ge[r]||(ge[r]=new WeakMap);var a=ge[r],i=[],c=new Set,u=new Set(o),l=function(f){!f||c.has(f)||(c.add(f),l(f.parentNode))};o.forEach(l);var d=function(f){!f||u.has(f)||Array.prototype.forEach.call(f.children,function(v){if(c.has(v))d(v);else try{var m=v.getAttribute(n),y=m!==null&&m!=="false",h=(Q.get(v)||0)+1,g=(a.get(v)||0)+1;Q.set(v,h),a.set(v,g),i.push(v),h===1&&y&&me.set(v,!0),g===1&&v.setAttribute(r,"true"),y||v.setAttribute(n,"true")}catch(b){console.error("aria-hidden: cannot operate on ",v,b)}})};return d(t),c.clear(),Be++,function(){i.forEach(function(f){var v=Q.get(f)-1,m=a.get(f)-1;Q.set(f,v),a.set(f,m),v||(me.has(f)||f.removeAttribute(n),me.delete(f)),m||f.removeAttribute(r)}),Be--,Be||(Q=new WeakMap,Q=new WeakMap,me=new WeakMap,ge={})}},Xt=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=ia(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),la(n,o,r,"aria-hidden")):function(){return null}};function ua(e){const t=da(e),r=s.forwardRef((n,o)=>{const{children:a,...i}=n,c=s.Children.toArray(a),u=c.find(pa);if(u){const l=u.props.children,d=c.map(f=>f===u?s.Children.count(l)>1?s.Children.only(null):s.isValidElement(l)?l.props.children:null:f);return p.jsx(t,{...i,ref:o,children:s.isValidElement(l)?s.cloneElement(l,void 0,d):null})}return p.jsx(t,{...i,ref:o,children:a})});return r.displayName=`${e}.Slot`,r}function da(e){const t=s.forwardRef((r,n)=>{const{children:o,...a}=r;if(s.isValidElement(o)){const i=ha(o),c=va(a,o.props);return o.type!==s.Fragment&&(c.ref=n?ne(n,i):i),s.cloneElement(o,c)}return s.Children.count(o)>1?s.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var fa=Symbol("radix.slottable");function pa(e){return s.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===fa}function va(e,t){const r={...t};for(const n in t){const o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...c)=>{const u=a(...c);return o(...c),u}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}function ha(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Re="Dialog",[Kt]=H(Re),[ma,j]=Kt(Re),Zt=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:o,onOpenChange:a,modal:i=!0}=e,c=s.useRef(null),u=s.useRef(null),[l,d]=se({prop:n,defaultProp:o??!1,onChange:a,caller:Re});return p.jsx(ma,{scope:t,triggerRef:c,contentRef:u,contentId:Y(),titleId:Y(),descriptionId:Y(),open:l,onOpenChange:d,onOpenToggle:s.useCallback(()=>d(f=>!f),[d]),modal:i,children:r})};Zt.displayName=Re;var qt="DialogTrigger",ga=s.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=j(qt,r),a=N(t,o.triggerRef);return p.jsx(_.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":et(o.open),...n,ref:a,onClick:P(e.onClick,o.onOpenToggle)})});ga.displayName=qt;var Qe="DialogPortal",[ba,Qt]=Kt(Qe,{forceMount:void 0}),Jt=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:o}=e,a=j(Qe,t);return p.jsx(ba,{scope:t,forceMount:r,children:s.Children.map(n,i=>p.jsx(M,{present:r||a.open,children:p.jsx(Ze,{asChild:!0,container:o,children:i})}))})};Jt.displayName=Qe;var we="DialogOverlay",er=s.forwardRef((e,t)=>{const r=Qt(we,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=j(we,e.__scopeDialog);return a.modal?p.jsx(M,{present:n||a.open,children:p.jsx(Ca,{...o,ref:t})}):null});er.displayName=we;var ya=ua("DialogOverlay.RemoveScroll"),Ca=s.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=j(we,r);return p.jsx(qe,{as:ya,allowPinchZoom:!0,shards:[o.contentRef],children:p.jsx(_.div,{"data-state":et(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),G="DialogContent",tr=s.forwardRef((e,t)=>{const r=Qt(G,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=j(G,e.__scopeDialog);return p.jsx(M,{present:n||a.open,children:a.modal?p.jsx(wa,{...o,ref:t}):p.jsx(Ea,{...o,ref:t})})});tr.displayName=G;var wa=s.forwardRef((e,t)=>{const r=j(G,e.__scopeDialog),n=s.useRef(null),o=N(t,r.contentRef,n);return s.useEffect(()=>{const a=n.current;if(a)return Xt(a)},[]),p.jsx(rr,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:P(e.onCloseAutoFocus,a=>{var i;a.preventDefault(),(i=r.triggerRef.current)==null||i.focus()}),onPointerDownOutside:P(e.onPointerDownOutside,a=>{const i=a.detail.originalEvent,c=i.button===0&&i.ctrlKey===!0;(i.button===2||c)&&a.preventDefault()}),onFocusOutside:P(e.onFocusOutside,a=>a.preventDefault())})}),Ea=s.forwardRef((e,t)=>{const r=j(G,e.__scopeDialog),n=s.useRef(!1),o=s.useRef(!1);return p.jsx(rr,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var i,c;(i=e.onCloseAutoFocus)==null||i.call(e,a),a.defaultPrevented||(n.current||(c=r.triggerRef.current)==null||c.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{var u,l;(u=e.onInteractOutside)==null||u.call(e,a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=a.target;((l=r.triggerRef.current)==null?void 0:l.contains(i))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),rr=s.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...i}=e,c=j(G,r),u=s.useRef(null),l=N(t,u);return $t(),p.jsxs(p.Fragment,{children:[p.jsx(Ke,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:p.jsx(xe,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":et(c.open),...i,ref:l,onDismiss:()=>c.onOpenChange(!1)})}),p.jsxs(p.Fragment,{children:[p.jsx(Sa,{titleId:c.titleId}),p.jsx(Pa,{contentRef:u,descriptionId:c.descriptionId})]})]})}),Je="DialogTitle",nr=s.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=j(Je,r);return p.jsx(_.h2,{id:o.titleId,...n,ref:t})});nr.displayName=Je;var or="DialogDescription",ar=s.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=j(or,r);return p.jsx(_.p,{id:o.descriptionId,...n,ref:t})});ar.displayName=or;var sr="DialogClose",ir=s.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=j(sr,r);return p.jsx(_.button,{type:"button",...n,ref:t,onClick:P(e.onClick,()=>o.onOpenChange(!1))})});ir.displayName=sr;function et(e){return e?"open":"closed"}var cr="DialogTitleWarning",[oi,lr]=Un(cr,{contentName:G,titleName:Je,docsSlug:"dialog"}),Sa=({titleId:e})=>{const t=lr(cr),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
42
|
+
|
|
43
|
+
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
44
|
+
|
|
45
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return s.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},xa="DialogDescriptionWarning",Pa=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${lr(xa).contentName}}.`;return s.useEffect(()=>{var a;const o=(a=e.current)==null?void 0:a.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},ai=Zt,si=Jt,ii=er,ci=tr,li=nr,ui=ar,di=ir,Ra=s.createContext(void 0);function tt(e){const t=s.useContext(Ra);return e||t||"ltr"}function Ta(e,[t,r]){return Math.min(r,Math.max(t,e))}function Aa(e,t){return s.useReducer((r,n)=>t[r][n]??r,e)}var rt="ScrollArea",[ur]=H(rt),[_a,L]=ur(rt),dr=s.forwardRef((e,t)=>{const{__scopeScrollArea:r,type:n="hover",dir:o,scrollHideDelay:a=600,...i}=e,[c,u]=s.useState(null),[l,d]=s.useState(null),[f,v]=s.useState(null),[m,y]=s.useState(null),[h,g]=s.useState(null),[b,C]=s.useState(0),[w,E]=s.useState(0),[x,R]=s.useState(!1),[S,T]=s.useState(!1),A=N(t,I=>u(I)),O=tt(o);return p.jsx(_a,{scope:r,type:n,dir:O,scrollHideDelay:a,scrollArea:c,viewport:l,onViewportChange:d,content:f,onContentChange:v,scrollbarX:m,onScrollbarXChange:y,scrollbarXEnabled:x,onScrollbarXEnabledChange:R,scrollbarY:h,onScrollbarYChange:g,scrollbarYEnabled:S,onScrollbarYEnabledChange:T,onCornerWidthChange:C,onCornerHeightChange:E,children:p.jsx(_.div,{dir:O,...i,ref:A,style:{position:"relative","--radix-scroll-area-corner-width":b+"px","--radix-scroll-area-corner-height":w+"px",...e.style}})})});dr.displayName=rt;var fr="ScrollAreaViewport",pr=s.forwardRef((e,t)=>{const{__scopeScrollArea:r,children:n,nonce:o,...a}=e,i=L(fr,r),c=s.useRef(null),u=N(t,c,i.onViewportChange);return p.jsxs(p.Fragment,{children:[p.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),p.jsx(_.div,{"data-radix-scroll-area-viewport":"",...a,ref:u,style:{overflowX:i.scrollbarXEnabled?"scroll":"hidden",overflowY:i.scrollbarYEnabled?"scroll":"hidden",...e.style},children:p.jsx("div",{ref:i.onContentChange,style:{minWidth:"100%",display:"table"},children:n})})]})});pr.displayName=fr;var k="ScrollAreaScrollbar",Oa=s.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=L(k,e.__scopeScrollArea),{onScrollbarXEnabledChange:a,onScrollbarYEnabledChange:i}=o,c=e.orientation==="horizontal";return s.useEffect(()=>(c?a(!0):i(!0),()=>{c?a(!1):i(!1)}),[c,a,i]),o.type==="hover"?p.jsx(Na,{...n,ref:t,forceMount:r}):o.type==="scroll"?p.jsx(Ia,{...n,ref:t,forceMount:r}):o.type==="auto"?p.jsx(vr,{...n,ref:t,forceMount:r}):o.type==="always"?p.jsx(nt,{...n,ref:t}):null});Oa.displayName=k;var Na=s.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=L(k,e.__scopeScrollArea),[a,i]=s.useState(!1);return s.useEffect(()=>{const c=o.scrollArea;let u=0;if(c){const l=()=>{window.clearTimeout(u),i(!0)},d=()=>{u=window.setTimeout(()=>i(!1),o.scrollHideDelay)};return c.addEventListener("pointerenter",l),c.addEventListener("pointerleave",d),()=>{window.clearTimeout(u),c.removeEventListener("pointerenter",l),c.removeEventListener("pointerleave",d)}}},[o.scrollArea,o.scrollHideDelay]),p.jsx(M,{present:r||a,children:p.jsx(vr,{"data-state":a?"visible":"hidden",...n,ref:t})})}),Ia=s.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=L(k,e.__scopeScrollArea),a=e.orientation==="horizontal",i=Ae(()=>u("SCROLL_END"),100),[c,u]=Aa("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return s.useEffect(()=>{if(c==="idle"){const l=window.setTimeout(()=>u("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(l)}},[c,o.scrollHideDelay,u]),s.useEffect(()=>{const l=o.viewport,d=a?"scrollLeft":"scrollTop";if(l){let f=l[d];const v=()=>{const m=l[d];f!==m&&(u("SCROLL"),i()),f=m};return l.addEventListener("scroll",v),()=>l.removeEventListener("scroll",v)}},[o.viewport,a,u,i]),p.jsx(M,{present:r||c!=="hidden",children:p.jsx(nt,{"data-state":c==="hidden"?"hidden":"visible",...n,ref:t,onPointerEnter:P(e.onPointerEnter,()=>u("POINTER_ENTER")),onPointerLeave:P(e.onPointerLeave,()=>u("POINTER_LEAVE"))})})}),vr=s.forwardRef((e,t)=>{const r=L(k,e.__scopeScrollArea),{forceMount:n,...o}=e,[a,i]=s.useState(!1),c=e.orientation==="horizontal",u=Ae(()=>{if(r.viewport){const l=r.viewport.offsetWidth<r.viewport.scrollWidth,d=r.viewport.offsetHeight<r.viewport.scrollHeight;i(c?l:d)}},10);return ee(r.viewport,u),ee(r.content,u),p.jsx(M,{present:n||a,children:p.jsx(nt,{"data-state":a?"visible":"hidden",...o,ref:t})})}),nt=s.forwardRef((e,t)=>{const{orientation:r="vertical",...n}=e,o=L(k,e.__scopeScrollArea),a=s.useRef(null),i=s.useRef(0),[c,u]=s.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),l=br(c.viewport,c.content),d={...n,sizes:c,onSizesChange:u,hasThumb:l>0&&l<1,onThumbChange:v=>a.current=v,onThumbPointerUp:()=>i.current=0,onThumbPointerDown:v=>i.current=v};function f(v,m){return $a(v,i.current,c,m)}return r==="horizontal"?p.jsx(Da,{...d,ref:t,onThumbPositionChange:()=>{if(o.viewport&&a.current){const v=o.viewport.scrollLeft,m=Dt(v,c,o.dir);a.current.style.transform=`translate3d(${m}px, 0, 0)`}},onWheelScroll:v=>{o.viewport&&(o.viewport.scrollLeft=v)},onDragScroll:v=>{o.viewport&&(o.viewport.scrollLeft=f(v,o.dir))}}):r==="vertical"?p.jsx(Ma,{...d,ref:t,onThumbPositionChange:()=>{if(o.viewport&&a.current){const v=o.viewport.scrollTop,m=Dt(v,c);a.current.style.transform=`translate3d(0, ${m}px, 0)`}},onWheelScroll:v=>{o.viewport&&(o.viewport.scrollTop=v)},onDragScroll:v=>{o.viewport&&(o.viewport.scrollTop=f(v))}}):null}),Da=s.forwardRef((e,t)=>{const{sizes:r,onSizesChange:n,...o}=e,a=L(k,e.__scopeScrollArea),[i,c]=s.useState(),u=s.useRef(null),l=N(t,u,a.onScrollbarXChange);return s.useEffect(()=>{u.current&&c(getComputedStyle(u.current))},[u]),p.jsx(mr,{"data-orientation":"horizontal",...o,ref:l,sizes:r,style:{bottom:0,left:a.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:a.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Te(r)+"px",...e.style},onThumbPointerDown:d=>e.onThumbPointerDown(d.x),onDragScroll:d=>e.onDragScroll(d.x),onWheelScroll:(d,f)=>{if(a.viewport){const v=a.viewport.scrollLeft+d.deltaX;e.onWheelScroll(v),Cr(v,f)&&d.preventDefault()}},onResize:()=>{u.current&&a.viewport&&i&&n({content:a.viewport.scrollWidth,viewport:a.viewport.offsetWidth,scrollbar:{size:u.current.clientWidth,paddingStart:Se(i.paddingLeft),paddingEnd:Se(i.paddingRight)}})}})}),Ma=s.forwardRef((e,t)=>{const{sizes:r,onSizesChange:n,...o}=e,a=L(k,e.__scopeScrollArea),[i,c]=s.useState(),u=s.useRef(null),l=N(t,u,a.onScrollbarYChange);return s.useEffect(()=>{u.current&&c(getComputedStyle(u.current))},[u]),p.jsx(mr,{"data-orientation":"vertical",...o,ref:l,sizes:r,style:{top:0,right:a.dir==="ltr"?0:void 0,left:a.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Te(r)+"px",...e.style},onThumbPointerDown:d=>e.onThumbPointerDown(d.y),onDragScroll:d=>e.onDragScroll(d.y),onWheelScroll:(d,f)=>{if(a.viewport){const v=a.viewport.scrollTop+d.deltaY;e.onWheelScroll(v),Cr(v,f)&&d.preventDefault()}},onResize:()=>{u.current&&a.viewport&&i&&n({content:a.viewport.scrollHeight,viewport:a.viewport.offsetHeight,scrollbar:{size:u.current.clientHeight,paddingStart:Se(i.paddingTop),paddingEnd:Se(i.paddingBottom)}})}})}),[La,hr]=ur(k),mr=s.forwardRef((e,t)=>{const{__scopeScrollArea:r,sizes:n,hasThumb:o,onThumbChange:a,onThumbPointerUp:i,onThumbPointerDown:c,onThumbPositionChange:u,onDragScroll:l,onWheelScroll:d,onResize:f,...v}=e,m=L(k,r),[y,h]=s.useState(null),g=N(t,A=>h(A)),b=s.useRef(null),C=s.useRef(""),w=m.viewport,E=n.content-n.viewport,x=D(d),R=D(u),S=Ae(f,10);function T(A){if(b.current){const O=A.clientX-b.current.left,I=A.clientY-b.current.top;l({x:O,y:I})}}return s.useEffect(()=>{const A=O=>{const I=O.target;(y==null?void 0:y.contains(I))&&x(O,E)};return document.addEventListener("wheel",A,{passive:!1}),()=>document.removeEventListener("wheel",A,{passive:!1})},[w,y,E,x]),s.useEffect(R,[n,R]),ee(y,S),ee(m.content,S),p.jsx(La,{scope:r,scrollbar:y,hasThumb:o,onThumbChange:D(a),onThumbPointerUp:D(i),onThumbPositionChange:R,onThumbPointerDown:D(c),children:p.jsx(_.div,{...v,ref:g,style:{position:"absolute",...v.style},onPointerDown:P(e.onPointerDown,A=>{A.button===0&&(A.target.setPointerCapture(A.pointerId),b.current=y.getBoundingClientRect(),C.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",m.viewport&&(m.viewport.style.scrollBehavior="auto"),T(A))}),onPointerMove:P(e.onPointerMove,T),onPointerUp:P(e.onPointerUp,A=>{const O=A.target;O.hasPointerCapture(A.pointerId)&&O.releasePointerCapture(A.pointerId),document.body.style.webkitUserSelect=C.current,m.viewport&&(m.viewport.style.scrollBehavior=""),b.current=null})})})}),Ee="ScrollAreaThumb",ja=s.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=hr(Ee,e.__scopeScrollArea);return p.jsx(M,{present:r||o.hasThumb,children:p.jsx(Fa,{ref:t,...n})})}),Fa=s.forwardRef((e,t)=>{const{__scopeScrollArea:r,style:n,...o}=e,a=L(Ee,r),i=hr(Ee,r),{onThumbPositionChange:c}=i,u=N(t,f=>i.onThumbChange(f)),l=s.useRef(void 0),d=Ae(()=>{l.current&&(l.current(),l.current=void 0)},100);return s.useEffect(()=>{const f=a.viewport;if(f){const v=()=>{if(d(),!l.current){const m=Wa(f,c);l.current=m,c()}};return c(),f.addEventListener("scroll",v),()=>f.removeEventListener("scroll",v)}},[a.viewport,d,c]),p.jsx(_.div,{"data-state":i.hasThumb?"visible":"hidden",...o,ref:u,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...n},onPointerDownCapture:P(e.onPointerDownCapture,f=>{const m=f.target.getBoundingClientRect(),y=f.clientX-m.left,h=f.clientY-m.top;i.onThumbPointerDown({x:y,y:h})}),onPointerUp:P(e.onPointerUp,i.onThumbPointerUp)})});ja.displayName=Ee;var ot="ScrollAreaCorner",gr=s.forwardRef((e,t)=>{const r=L(ot,e.__scopeScrollArea),n=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&n?p.jsx(ka,{...e,ref:t}):null});gr.displayName=ot;var ka=s.forwardRef((e,t)=>{const{__scopeScrollArea:r,...n}=e,o=L(ot,r),[a,i]=s.useState(0),[c,u]=s.useState(0),l=!!(a&&c);return ee(o.scrollbarX,()=>{var f;const d=((f=o.scrollbarX)==null?void 0:f.offsetHeight)||0;o.onCornerHeightChange(d),u(d)}),ee(o.scrollbarY,()=>{var f;const d=((f=o.scrollbarY)==null?void 0:f.offsetWidth)||0;o.onCornerWidthChange(d),i(d)}),l?p.jsx(_.div,{...n,ref:t,style:{width:a,height:c,position:"absolute",right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function Se(e){return e?parseInt(e,10):0}function br(e,t){const r=e/t;return isNaN(r)?0:r}function Te(e){const t=br(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,n=(e.scrollbar.size-r)*t;return Math.max(n,18)}function $a(e,t,r,n="ltr"){const o=Te(r),a=o/2,i=t||a,c=o-i,u=r.scrollbar.paddingStart+i,l=r.scrollbar.size-r.scrollbar.paddingEnd-c,d=r.content-r.viewport,f=n==="ltr"?[0,d]:[d*-1,0];return yr([u,l],f)(e)}function Dt(e,t,r="ltr"){const n=Te(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-o,i=t.content-t.viewport,c=a-n,u=r==="ltr"?[0,i]:[i*-1,0],l=Ta(e,u);return yr([0,i],[0,c])(l)}function yr(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}function Cr(e,t){return e>0&&e<t}var Wa=(e,t=()=>{})=>{let r={left:e.scrollLeft,top:e.scrollTop},n=0;return function o(){const a={left:e.scrollLeft,top:e.scrollTop},i=r.left!==a.left,c=r.top!==a.top;(i||c)&&t(),r=a,n=window.requestAnimationFrame(o)}(),()=>window.cancelAnimationFrame(n)};function Ae(e,t){const r=D(e),n=s.useRef(0);return s.useEffect(()=>()=>window.clearTimeout(n.current),[]),s.useCallback(()=>{window.clearTimeout(n.current),n.current=window.setTimeout(r,t)},[r,t])}function ee(e,t){const r=D(t);W(()=>{let n=0;if(e){const o=new ResizeObserver(()=>{cancelAnimationFrame(n),n=window.requestAnimationFrame(r)});return o.observe(e),()=>{window.cancelAnimationFrame(n),o.unobserve(e)}}},[e,r])}var fi=dr,pi=pr,vi=gr,Ba="Arrow",wr=s.forwardRef((e,t)=>{const{children:r,width:n=10,height:o=5,...a}=e;return p.jsx(_.svg,{...a,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:p.jsx("polygon",{points:"0,0 30,0 15,10"})})});wr.displayName=Ba;var Ha=wr;function Va(e){const[t,r]=s.useState(void 0);return W(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let i,c;if("borderBoxSize"in a){const u=a.borderBoxSize,l=Array.isArray(u)?u[0]:u;i=l.inlineSize,c=l.blockSize}else i=e.offsetWidth,c=e.offsetHeight;r({width:i,height:c})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var at="Popper",[Er,_e]=H(at),[Ua,Sr]=Er(at),xr=e=>{const{__scopePopper:t,children:r}=e,[n,o]=s.useState(null);return p.jsx(Ua,{scope:t,anchor:n,onAnchorChange:o,children:r})};xr.displayName=at;var Pr="PopperAnchor",Rr=s.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...o}=e,a=Sr(Pr,r),i=s.useRef(null),c=N(t,i),u=s.useRef(null);return s.useEffect(()=>{const l=u.current;u.current=(n==null?void 0:n.current)||i.current,l!==u.current&&a.onAnchorChange(u.current)}),n?null:p.jsx(_.div,{...o,ref:c})});Rr.displayName=Pr;var st="PopperContent",[za,Ya]=Er(st),Tr=s.forwardRef((e,t)=>{var pt,vt,ht,mt,gt,bt;const{__scopePopper:r,side:n="bottom",sideOffset:o=0,align:a="center",alignOffset:i=0,arrowPadding:c=0,avoidCollisions:u=!0,collisionBoundary:l=[],collisionPadding:d=0,sticky:f="partial",hideWhenDetached:v=!1,updatePositionStrategy:m="optimized",onPlaced:y,...h}=e,g=Sr(st,r),[b,C]=s.useState(null),w=N(t,oe=>C(oe)),[E,x]=s.useState(null),R=Va(E),S=(R==null?void 0:R.width)??0,T=(R==null?void 0:R.height)??0,A=n+(a!=="center"?"-"+a:""),O=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},I=Array.isArray(l)?l:[l],U=I.length>0,X={padding:O,boundary:I.filter(Xa),altBoundary:U},{refs:dt,floatingStyles:le,placement:$,isPositioned:ue,middlewareData:K}=Tn({strategy:"fixed",placement:A,whileElementsMounted:(...oe)=>Ln(...oe,{animationFrame:m==="always"}),elements:{reference:g.anchor},middleware:[An({mainAxis:o+T,alignmentAxis:i}),u&&_n({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?Mn():void 0,...X}),u&&On({...X}),Nn({...X,apply:({elements:oe,rects:yt,availableWidth:wn,availableHeight:En})=>{const{width:Sn,height:xn}=yt.reference,fe=oe.floating.style;fe.setProperty("--radix-popper-available-width",`${wn}px`),fe.setProperty("--radix-popper-available-height",`${En}px`),fe.setProperty("--radix-popper-anchor-width",`${Sn}px`),fe.setProperty("--radix-popper-anchor-height",`${xn}px`)}}),E&&In({element:E,padding:c}),Ka({arrowWidth:S,arrowHeight:T}),v&&Dn({strategy:"referenceHidden",...X})]}),[ft,hn]=Or($),de=D(y);W(()=>{ue&&(de==null||de())},[ue,de]);const mn=(pt=K.arrow)==null?void 0:pt.x,gn=(vt=K.arrow)==null?void 0:vt.y,bn=((ht=K.arrow)==null?void 0:ht.centerOffset)!==0,[yn,Cn]=s.useState();return W(()=>{b&&Cn(window.getComputedStyle(b).zIndex)},[b]),p.jsx("div",{ref:dt.setFloating,"data-radix-popper-content-wrapper":"",style:{...le,transform:ue?le.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:yn,"--radix-popper-transform-origin":[(mt=K.transformOrigin)==null?void 0:mt.x,(gt=K.transformOrigin)==null?void 0:gt.y].join(" "),...((bt=K.hide)==null?void 0:bt.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:p.jsx(za,{scope:r,placedSide:ft,onArrowChange:x,arrowX:mn,arrowY:gn,shouldHideArrow:bn,children:p.jsx(_.div,{"data-side":ft,"data-align":hn,...h,ref:w,style:{...h.style,animation:ue?void 0:"none"}})})})});Tr.displayName=st;var Ar="PopperArrow",Ga={top:"bottom",right:"left",bottom:"top",left:"right"},_r=s.forwardRef(function(t,r){const{__scopePopper:n,...o}=t,a=Ya(Ar,n),i=Ga[a.placedSide];return p.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:p.jsx(Ha,{...o,ref:r,style:{...o.style,display:"block"}})})});_r.displayName=Ar;function Xa(e){return e!==null}var Ka=e=>({name:"transformOrigin",options:e,fn(t){var g,b,C;const{placement:r,rects:n,middlewareData:o}=t,i=((g=o.arrow)==null?void 0:g.centerOffset)!==0,c=i?0:e.arrowWidth,u=i?0:e.arrowHeight,[l,d]=Or(r),f={start:"0%",center:"50%",end:"100%"}[d],v=(((b=o.arrow)==null?void 0:b.x)??0)+c/2,m=(((C=o.arrow)==null?void 0:C.y)??0)+u/2;let y="",h="";return l==="bottom"?(y=i?f:`${v}px`,h=`${-u}px`):l==="top"?(y=i?f:`${v}px`,h=`${n.floating.height+u}px`):l==="right"?(y=`${-u}px`,h=i?f:`${m}px`):l==="left"&&(y=`${n.floating.width+u}px`,h=i?f:`${m}px`),{data:{x:y,y:h}}}});function Or(e){const[t,r="center"]=e.split("-");return[t,r]}var Nr=xr,it=Rr,Ir=Tr,Dr=_r;function Za(e){const t=qa(e),r=s.forwardRef((n,o)=>{const{children:a,...i}=n,c=s.Children.toArray(a),u=c.find(Ja);if(u){const l=u.props.children,d=c.map(f=>f===u?s.Children.count(l)>1?s.Children.only(null):s.isValidElement(l)?l.props.children:null:f);return p.jsx(t,{...i,ref:o,children:s.isValidElement(l)?s.cloneElement(l,void 0,d):null})}return p.jsx(t,{...i,ref:o,children:a})});return r.displayName=`${e}.Slot`,r}function qa(e){const t=s.forwardRef((r,n)=>{const{children:o,...a}=r;if(s.isValidElement(o)){const i=ts(o),c=es(a,o.props);return o.type!==s.Fragment&&(c.ref=n?ne(n,i):i),s.cloneElement(o,c)}return s.Children.count(o)>1?s.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Qa=Symbol("radix.slottable");function Ja(e){return s.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Qa}function es(e,t){const r={...t};for(const n in t){const o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...c)=>{const u=a(...c);return o(...c),u}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}function ts(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Oe="Popover",[Mr]=H(Oe,[_e]),ie=_e(),[rs,V]=Mr(Oe),Lr=e=>{const{__scopePopover:t,children:r,open:n,defaultOpen:o,onOpenChange:a,modal:i=!1}=e,c=ie(t),u=s.useRef(null),[l,d]=s.useState(!1),[f,v]=se({prop:n,defaultProp:o??!1,onChange:a,caller:Oe});return p.jsx(Nr,{...c,children:p.jsx(rs,{scope:t,contentId:Y(),triggerRef:u,open:f,onOpenChange:v,onOpenToggle:s.useCallback(()=>v(m=>!m),[v]),hasCustomAnchor:l,onCustomAnchorAdd:s.useCallback(()=>d(!0),[]),onCustomAnchorRemove:s.useCallback(()=>d(!1),[]),modal:i,children:r})})};Lr.displayName=Oe;var jr="PopoverAnchor",ns=s.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=V(jr,r),a=ie(r),{onCustomAnchorAdd:i,onCustomAnchorRemove:c}=o;return s.useEffect(()=>(i(),()=>c()),[i,c]),p.jsx(it,{...a,...n,ref:t})});ns.displayName=jr;var Fr="PopoverTrigger",kr=s.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=V(Fr,r),a=ie(r),i=N(t,o.triggerRef),c=p.jsx(_.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Vr(o.open),...n,ref:i,onClick:P(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?c:p.jsx(it,{asChild:!0,...a,children:c})});kr.displayName=Fr;var ct="PopoverPortal",[os,as]=Mr(ct,{forceMount:void 0}),$r=e=>{const{__scopePopover:t,forceMount:r,children:n,container:o}=e,a=V(ct,t);return p.jsx(os,{scope:t,forceMount:r,children:p.jsx(M,{present:r||a.open,children:p.jsx(Ze,{asChild:!0,container:o,children:n})})})};$r.displayName=ct;var te="PopoverContent",Wr=s.forwardRef((e,t)=>{const r=as(te,e.__scopePopover),{forceMount:n=r.forceMount,...o}=e,a=V(te,e.__scopePopover);return p.jsx(M,{present:n||a.open,children:a.modal?p.jsx(is,{...o,ref:t}):p.jsx(cs,{...o,ref:t})})});Wr.displayName=te;var ss=Za("PopoverContent.RemoveScroll"),is=s.forwardRef((e,t)=>{const r=V(te,e.__scopePopover),n=s.useRef(null),o=N(t,n),a=s.useRef(!1);return s.useEffect(()=>{const i=n.current;if(i)return Xt(i)},[]),p.jsx(qe,{as:ss,allowPinchZoom:!0,children:p.jsx(Br,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:P(e.onCloseAutoFocus,i=>{var c;i.preventDefault(),a.current||(c=r.triggerRef.current)==null||c.focus()}),onPointerDownOutside:P(e.onPointerDownOutside,i=>{const c=i.detail.originalEvent,u=c.button===0&&c.ctrlKey===!0,l=c.button===2||u;a.current=l},{checkForDefaultPrevented:!1}),onFocusOutside:P(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1})})})}),cs=s.forwardRef((e,t)=>{const r=V(te,e.__scopePopover),n=s.useRef(!1),o=s.useRef(!1);return p.jsx(Br,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var i,c;(i=e.onCloseAutoFocus)==null||i.call(e,a),a.defaultPrevented||(n.current||(c=r.triggerRef.current)==null||c.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{var u,l;(u=e.onInteractOutside)==null||u.call(e,a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=a.target;((l=r.triggerRef.current)==null?void 0:l.contains(i))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),Br=s.forwardRef((e,t)=>{const{__scopePopover:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:i,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:l,onInteractOutside:d,...f}=e,v=V(te,r),m=ie(r);return $t(),p.jsx(Ke,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:p.jsx(xe,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:d,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:l,onDismiss:()=>v.onOpenChange(!1),children:p.jsx(Ir,{"data-state":Vr(v.open),role:"dialog",id:v.contentId,...m,...f,ref:t,style:{...f.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),Hr="PopoverClose",ls=s.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=V(Hr,r);return p.jsx(_.button,{type:"button",...n,ref:t,onClick:P(e.onClick,()=>o.onOpenChange(!1))})});ls.displayName=Hr;var us="PopoverArrow",ds=s.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=ie(r);return p.jsx(Dr,{...o,...n,ref:t})});ds.displayName=us;function Vr(e){return e?"open":"closed"}var hi=Lr,mi=kr,gi=$r,bi=Wr,fs=Symbol("radix.slottable");function ps(e){const t=({children:r})=>p.jsx(p.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=fs,t}var vs=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),hs="VisuallyHidden",Ur=s.forwardRef((e,t)=>p.jsx(_.span,{...e,ref:t,style:{...vs,...e.style}}));Ur.displayName=hs;var ms=Ur,[Ne]=H("Tooltip",[_e]),Ie=_e(),zr="TooltipProvider",gs=700,ze="tooltip.open",[bs,lt]=Ne(zr),Yr=e=>{const{__scopeTooltip:t,delayDuration:r=gs,skipDelayDuration:n=300,disableHoverableContent:o=!1,children:a}=e,i=s.useRef(!0),c=s.useRef(!1),u=s.useRef(0);return s.useEffect(()=>{const l=u.current;return()=>window.clearTimeout(l)},[]),p.jsx(bs,{scope:t,isOpenDelayedRef:i,delayDuration:r,onOpen:s.useCallback(()=>{window.clearTimeout(u.current),i.current=!1},[]),onClose:s.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>i.current=!0,n)},[n]),isPointerInTransitRef:c,onPointerInTransitChange:s.useCallback(l=>{c.current=l},[]),disableHoverableContent:o,children:a})};Yr.displayName=zr;var ae="Tooltip",[ys,De]=Ne(ae),Gr=e=>{const{__scopeTooltip:t,children:r,open:n,defaultOpen:o,onOpenChange:a,disableHoverableContent:i,delayDuration:c}=e,u=lt(ae,e.__scopeTooltip),l=Ie(t),[d,f]=s.useState(null),v=Y(),m=s.useRef(0),y=i??u.disableHoverableContent,h=c??u.delayDuration,g=s.useRef(!1),[b,C]=se({prop:n,defaultProp:o??!1,onChange:S=>{S?(u.onOpen(),document.dispatchEvent(new CustomEvent(ze))):u.onClose(),a==null||a(S)},caller:ae}),w=s.useMemo(()=>b?g.current?"delayed-open":"instant-open":"closed",[b]),E=s.useCallback(()=>{window.clearTimeout(m.current),m.current=0,g.current=!1,C(!0)},[C]),x=s.useCallback(()=>{window.clearTimeout(m.current),m.current=0,C(!1)},[C]),R=s.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>{g.current=!0,C(!0),m.current=0},h)},[h,C]);return s.useEffect(()=>()=>{m.current&&(window.clearTimeout(m.current),m.current=0)},[]),p.jsx(Nr,{...l,children:p.jsx(ys,{scope:t,contentId:v,open:b,stateAttribute:w,trigger:d,onTriggerChange:f,onTriggerEnter:s.useCallback(()=>{u.isOpenDelayedRef.current?R():E()},[u.isOpenDelayedRef,R,E]),onTriggerLeave:s.useCallback(()=>{y?x():(window.clearTimeout(m.current),m.current=0)},[x,y]),onOpen:E,onClose:x,disableHoverableContent:y,children:r})})};Gr.displayName=ae;var Ye="TooltipTrigger",Xr=s.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=De(Ye,r),a=lt(Ye,r),i=Ie(r),c=s.useRef(null),u=N(t,c,o.onTriggerChange),l=s.useRef(!1),d=s.useRef(!1),f=s.useCallback(()=>l.current=!1,[]);return s.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),p.jsx(it,{asChild:!0,...i,children:p.jsx(_.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...n,ref:u,onPointerMove:P(e.onPointerMove,v=>{v.pointerType!=="touch"&&!d.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),d.current=!0)}),onPointerLeave:P(e.onPointerLeave,()=>{o.onTriggerLeave(),d.current=!1}),onPointerDown:P(e.onPointerDown,()=>{o.open&&o.onClose(),l.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:P(e.onFocus,()=>{l.current||o.onOpen()}),onBlur:P(e.onBlur,o.onClose),onClick:P(e.onClick,o.onClose)})})});Xr.displayName=Ye;var Cs="TooltipPortal",[yi,ws]=Ne(Cs,{forceMount:void 0}),re="TooltipContent",Kr=s.forwardRef((e,t)=>{const r=ws(re,e.__scopeTooltip),{forceMount:n=r.forceMount,side:o="top",...a}=e,i=De(re,e.__scopeTooltip);return p.jsx(M,{present:n||i.open,children:i.disableHoverableContent?p.jsx(Zr,{side:o,...a,ref:t}):p.jsx(Es,{side:o,...a,ref:t})})}),Es=s.forwardRef((e,t)=>{const r=De(re,e.__scopeTooltip),n=lt(re,e.__scopeTooltip),o=s.useRef(null),a=N(t,o),[i,c]=s.useState(null),{trigger:u,onClose:l}=r,d=o.current,{onPointerInTransitChange:f}=n,v=s.useCallback(()=>{c(null),f(!1)},[f]),m=s.useCallback((y,h)=>{const g=y.currentTarget,b={x:y.clientX,y:y.clientY},C=Ts(b,g.getBoundingClientRect()),w=As(b,C),E=_s(h.getBoundingClientRect()),x=Ns([...w,...E]);c(x),f(!0)},[f]);return s.useEffect(()=>()=>v(),[v]),s.useEffect(()=>{if(u&&d){const y=g=>m(g,d),h=g=>m(g,u);return u.addEventListener("pointerleave",y),d.addEventListener("pointerleave",h),()=>{u.removeEventListener("pointerleave",y),d.removeEventListener("pointerleave",h)}}},[u,d,m,v]),s.useEffect(()=>{if(i){const y=h=>{const g=h.target,b={x:h.clientX,y:h.clientY},C=(u==null?void 0:u.contains(g))||(d==null?void 0:d.contains(g)),w=!Os(b,i);C?v():w&&(v(),l())};return document.addEventListener("pointermove",y),()=>document.removeEventListener("pointermove",y)}},[u,d,i,l,v]),p.jsx(Zr,{...e,ref:a})}),[Ss,xs]=Ne(ae,{isInside:!1}),Ps=ps("TooltipContent"),Zr=s.forwardRef((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:i,...c}=e,u=De(re,r),l=Ie(r),{onClose:d}=u;return s.useEffect(()=>(document.addEventListener(ze,d),()=>document.removeEventListener(ze,d)),[d]),s.useEffect(()=>{if(u.trigger){const f=v=>{const m=v.target;m!=null&&m.contains(u.trigger)&&d()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[u.trigger,d]),p.jsx(xe,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:f=>f.preventDefault(),onDismiss:d,children:p.jsxs(Ir,{"data-state":u.stateAttribute,...l,...c,ref:t,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[p.jsx(Ps,{children:n}),p.jsx(Ss,{scope:r,isInside:!0,children:p.jsx(ms,{id:u.contentId,role:"tooltip",children:o||n})})]})})});Kr.displayName=re;var qr="TooltipArrow",Rs=s.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=Ie(r);return xs(qr,r).isInside?null:p.jsx(Dr,{...o,...n,ref:t})});Rs.displayName=qr;function Ts(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(r,n,o,a)){case a:return"left";case o:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function As(e,t,r=5){const n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return n}function _s(e){const{top:t,right:r,bottom:n,left:o}=e;return[{x:o,y:t},{x:r,y:t},{x:r,y:n},{x:o,y:n}]}function Os(e,t){const{x:r,y:n}=e;let o=!1;for(let a=0,i=t.length-1;a<t.length;i=a++){const c=t[a],u=t[i],l=c.x,d=c.y,f=u.x,v=u.y;d>n!=v>n&&r<(f-l)*(n-d)/(v-d)+l&&(o=!o)}return o}function Ns(e){const t=e.slice();return t.sort((r,n)=>r.x<n.x?-1:r.x>n.x?1:r.y<n.y?-1:r.y>n.y?1:0),Is(t)}function Is(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const o=e[n];for(;t.length>=2;){const a=t[t.length-1],i=t[t.length-2];if((a.x-i.x)*(o.y-i.y)>=(a.y-i.y)*(o.x-i.x))t.pop();else break}t.push(o)}t.pop();const r=[];for(let n=e.length-1;n>=0;n--){const o=e[n];for(;r.length>=2;){const a=r[r.length-1],i=r[r.length-2];if((a.x-i.x)*(o.y-i.y)>=(a.y-i.y)*(o.x-i.x))r.pop();else break}r.push(o)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}var Ci=Yr,wi=Gr,Ei=Xr,Si=Kr;function Mt(e){const t=Ds(e),r=s.forwardRef((n,o)=>{const{children:a,...i}=n,c=s.Children.toArray(a),u=c.find(Ls);if(u){const l=u.props.children,d=c.map(f=>f===u?s.Children.count(l)>1?s.Children.only(null):s.isValidElement(l)?l.props.children:null:f);return p.jsx(t,{...i,ref:o,children:s.isValidElement(l)?s.cloneElement(l,void 0,d):null})}return p.jsx(t,{...i,ref:o,children:a})});return r.displayName=`${e}.Slot`,r}function Ds(e){const t=s.forwardRef((r,n)=>{const{children:o,...a}=r;if(s.isValidElement(o)){const i=Fs(o),c=js(a,o.props);return o.type!==s.Fragment&&(c.ref=n?ne(n,i):i),s.cloneElement(o,c)}return s.Children.count(o)>1?s.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ms=Symbol("radix.slottable");function Ls(e){return s.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ms}function js(e,t){const r={...t};for(const n in t){const o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...c)=>{const u=a(...c);return o(...c),u}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}function Fs(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function ks(e){const t=e+"CollectionProvider",[r,n]=H(t),[o,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),i=h=>{const{scope:g,children:b}=h,C=z.useRef(null),w=z.useRef(new Map).current;return p.jsx(o,{scope:g,itemMap:w,collectionRef:C,children:b})};i.displayName=t;const c=e+"CollectionSlot",u=Mt(c),l=z.forwardRef((h,g)=>{const{scope:b,children:C}=h,w=a(c,b),E=N(g,w.collectionRef);return p.jsx(u,{ref:E,children:C})});l.displayName=c;const d=e+"CollectionItemSlot",f="data-radix-collection-item",v=Mt(d),m=z.forwardRef((h,g)=>{const{scope:b,children:C,...w}=h,E=z.useRef(null),x=N(g,E),R=a(d,b);return z.useEffect(()=>(R.itemMap.set(E,{ref:E,...w}),()=>void R.itemMap.delete(E))),p.jsx(v,{[f]:"",ref:x,children:C})});m.displayName=d;function y(h){const g=a(e+"CollectionConsumer",h);return z.useCallback(()=>{const C=g.collectionRef.current;if(!C)return[];const w=Array.from(C.querySelectorAll(`[${f}]`));return Array.from(g.itemMap.values()).sort((R,S)=>w.indexOf(R.ref.current)-w.indexOf(S.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:i,Slot:l,ItemSlot:m},y,n]}var He="rovingFocusGroup.onEntryFocus",$s={bubbles:!1,cancelable:!0},ce="RovingFocusGroup",[Ge,Qr,Ws]=ks(ce),[Bs,Jr]=H(ce,[Ws]),[Hs,Vs]=Bs(ce),en=s.forwardRef((e,t)=>p.jsx(Ge.Provider,{scope:e.__scopeRovingFocusGroup,children:p.jsx(Ge.Slot,{scope:e.__scopeRovingFocusGroup,children:p.jsx(Us,{...e,ref:t})})}));en.displayName=ce;var Us=s.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:a,currentTabStopId:i,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:u,onEntryFocus:l,preventScrollOnEntryFocus:d=!1,...f}=e,v=s.useRef(null),m=N(t,v),y=tt(a),[h,g]=se({prop:i,defaultProp:c??null,onChange:u,caller:ce}),[b,C]=s.useState(!1),w=D(l),E=Qr(r),x=s.useRef(!1),[R,S]=s.useState(0);return s.useEffect(()=>{const T=v.current;if(T)return T.addEventListener(He,w),()=>T.removeEventListener(He,w)},[w]),p.jsx(Hs,{scope:r,orientation:n,dir:y,loop:o,currentTabStopId:h,onItemFocus:s.useCallback(T=>g(T),[g]),onItemShiftTab:s.useCallback(()=>C(!0),[]),onFocusableItemAdd:s.useCallback(()=>S(T=>T+1),[]),onFocusableItemRemove:s.useCallback(()=>S(T=>T-1),[]),children:p.jsx(_.div,{tabIndex:b||R===0?-1:0,"data-orientation":n,...f,ref:m,style:{outline:"none",...e.style},onMouseDown:P(e.onMouseDown,()=>{x.current=!0}),onFocus:P(e.onFocus,T=>{const A=!x.current;if(T.target===T.currentTarget&&A&&!b){const O=new CustomEvent(He,$s);if(T.currentTarget.dispatchEvent(O),!O.defaultPrevented){const I=E().filter($=>$.focusable),U=I.find($=>$.active),X=I.find($=>$.id===h),le=[U,X,...I].filter(Boolean).map($=>$.ref.current);nn(le,d)}}x.current=!1}),onBlur:P(e.onBlur,()=>C(!1))})})}),tn="RovingFocusGroupItem",rn=s.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:a,children:i,...c}=e,u=Y(),l=a||u,d=Vs(tn,r),f=d.currentTabStopId===l,v=Qr(r),{onFocusableItemAdd:m,onFocusableItemRemove:y,currentTabStopId:h}=d;return s.useEffect(()=>{if(n)return m(),()=>y()},[n,m,y]),p.jsx(Ge.ItemSlot,{scope:r,id:l,focusable:n,active:o,children:p.jsx(_.span,{tabIndex:f?0:-1,"data-orientation":d.orientation,...c,ref:t,onMouseDown:P(e.onMouseDown,g=>{n?d.onItemFocus(l):g.preventDefault()}),onFocus:P(e.onFocus,()=>d.onItemFocus(l)),onKeyDown:P(e.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){d.onItemShiftTab();return}if(g.target!==g.currentTarget)return;const b=Gs(g,d.orientation,d.dir);if(b!==void 0){if(g.metaKey||g.ctrlKey||g.altKey||g.shiftKey)return;g.preventDefault();let w=v().filter(E=>E.focusable).map(E=>E.ref.current);if(b==="last")w.reverse();else if(b==="prev"||b==="next"){b==="prev"&&w.reverse();const E=w.indexOf(g.currentTarget);w=d.loop?Xs(w,E+1):w.slice(E+1)}setTimeout(()=>nn(w))}}),children:typeof i=="function"?i({isCurrentTabStop:f,hasTabStop:h!=null}):i})})});rn.displayName=tn;var zs={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Ys(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Gs(e,t,r){const n=Ys(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return zs[n]}function nn(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function Xs(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var Ks=en,Zs=rn,Me="Tabs",[qs]=H(Me,[Jr]),on=Jr(),[Qs,ut]=qs(Me),an=s.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,onValueChange:o,defaultValue:a,orientation:i="horizontal",dir:c,activationMode:u="automatic",...l}=e,d=tt(c),[f,v]=se({prop:n,onChange:o,defaultProp:a??"",caller:Me});return p.jsx(Qs,{scope:r,baseId:Y(),value:f,onValueChange:v,orientation:i,dir:d,activationMode:u,children:p.jsx(_.div,{dir:d,"data-orientation":i,...l,ref:t})})});an.displayName=Me;var sn="TabsList",cn=s.forwardRef((e,t)=>{const{__scopeTabs:r,loop:n=!0,...o}=e,a=ut(sn,r),i=on(r);return p.jsx(Ks,{asChild:!0,...i,orientation:a.orientation,dir:a.dir,loop:n,children:p.jsx(_.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});cn.displayName=sn;var ln="TabsTrigger",un=s.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,disabled:o=!1,...a}=e,i=ut(ln,r),c=on(r),u=pn(i.baseId,n),l=vn(i.baseId,n),d=n===i.value;return p.jsx(Zs,{asChild:!0,...c,focusable:!o,active:d,children:p.jsx(_.button,{type:"button",role:"tab","aria-selected":d,"aria-controls":l,"data-state":d?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:u,...a,ref:t,onMouseDown:P(e.onMouseDown,f=>{!o&&f.button===0&&f.ctrlKey===!1?i.onValueChange(n):f.preventDefault()}),onKeyDown:P(e.onKeyDown,f=>{[" ","Enter"].includes(f.key)&&i.onValueChange(n)}),onFocus:P(e.onFocus,()=>{const f=i.activationMode!=="manual";!d&&!o&&f&&i.onValueChange(n)})})})});un.displayName=ln;var dn="TabsContent",fn=s.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,forceMount:o,children:a,...i}=e,c=ut(dn,r),u=pn(c.baseId,n),l=vn(c.baseId,n),d=n===c.value,f=s.useRef(d);return s.useEffect(()=>{const v=requestAnimationFrame(()=>f.current=!1);return()=>cancelAnimationFrame(v)},[]),p.jsx(M,{present:o||d,children:({present:v})=>p.jsx(_.div,{"data-state":d?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":u,hidden:!v,id:l,tabIndex:0,...i,ref:t,style:{...e.style,animationDuration:f.current?"0s":void 0},children:v&&a})})});fn.displayName=dn;function pn(e,t){return`${e}-trigger-${t}`}function vn(e,t){return`${e}-content-${t}`}var xi=an,Pi=cn,Ri=un,Ti=fn;export{ci as C,ui as D,Pi as L,ii as O,si as P,ai as R,ei as S,li as T,pi as V,Po as _,di as a,fi as b,vi as c,Oa as d,ja as e,gi as f,bi as g,hi as h,mi as i,Si as j,Ci as k,wi as l,Ei as m,xi as n,Ri as o,Ti as p,ni as q,ti as r,ri as s,F as t,Wt as u};
|