@tickernelz/paperclip-pro-ui 2026.1016.2 → 2026.1017.1
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/assets/{AgentAvatar-DZh8tNnK.js → AgentAvatar-Cy7DadMK.js} +1 -1
- package/dist/assets/{Agents.production-CVULb5cR.js → Agents.production-BJyEbiQk.js} +2 -2
- package/dist/assets/{BreadcrumbContext-Bxr1TyKN.js → BreadcrumbContext-CIC8QOSJ.js} +2 -2
- package/dist/assets/{CompanyActivity.production-Wked11oO.js → CompanyActivity.production-Dp4ldx4P.js} +1 -1
- package/dist/assets/{CompanyExport-CsJNakda.js → CompanyExport-BBAKbfHg.js} +2 -2
- package/dist/assets/{CompanySkills.production-CXPBOlb3.js → CompanySkills.production-XuOHqAg6.js} +3 -3
- package/dist/assets/{EmptyState-DliXLd04.js → EmptyState-Dvu_j1Dk.js} +1 -1
- package/dist/assets/{MarkdownBody-B5ygzgk6.js → MarkdownBody-Dh6kczcO.js} +3 -3
- package/dist/assets/{MarkdownEditor-D7suACD6.js → MarkdownEditor-nPcj3w4g.js} +4 -4
- package/dist/assets/{OrgChart.production-BjDW9Rac.js → OrgChart.production-B-U1K3BO.js} +1 -1
- package/dist/assets/{PageSkeleton-BZF4K6Hf.js → PageSkeleton-B858kNMV.js} +1 -1
- package/dist/assets/{RoutineDetail.production-C03tDWie.js → RoutineDetail.production-DR37hdFP.js} +1 -1
- package/dist/assets/{RoutineRunVariablesDialog-DE5hp-_u.js → RoutineRunVariablesDialog-TmqPj_PL.js} +2 -2
- package/dist/assets/{Routines.production-CDaXZ2Kc.js → Routines.production-D4Jwvus7.js} +1 -1
- package/dist/assets/{StatusIcon-YdJnE47W.js → StatusIcon-PIDWeOS3.js} +1 -1
- package/dist/assets/{ToastContext-Dh8dPdr5.js → ToastContext-B6w8XXdu.js} +1 -1
- package/dist/assets/{agent-avatar-url-BnmqahQ7.js → agent-avatar-url-Dp-4-Emx.js} +1 -1
- package/dist/assets/{alert-dialog-BxpRolrb.js → alert-dialog-Cgn1_GT7.js} +1 -1
- package/dist/assets/{arrow-right-bnOoaiPg.js → arrow-right-Dblp-MTW.js} +1 -1
- package/dist/assets/{badge-D5aOL1Ll.js → badge-B6lcLGFG.js} +1 -1
- package/dist/assets/{bot-DpNd1tv2.js → bot-BIsZWSPn.js} +1 -1
- package/dist/assets/{card-PCL2aF_L.js → card-Byu34cBe.js} +1 -1
- package/dist/assets/{check-BiXfODpl.js → check-AN9f-5s7.js} +1 -1
- package/dist/assets/{checkbox-5wFlZdZn.js → checkbox-DVrU8RYw.js} +1 -1
- package/dist/assets/{clipboard-CTmezHYG.js → clipboard-Bj1LrAus.js} +1 -1
- package/dist/assets/{company-members-Dd6xBf6K.js → company-members-B3Kl56Wi.js} +1 -1
- package/dist/assets/{definition-CjvFnh6k.js → definition-DSY4nExe.js} +1 -1
- package/dist/assets/{dist-BrRwU9U9.js → dist-BoN0lntx.js} +1 -1
- package/dist/assets/{dist-CvM0_U_m.js → dist-DNeg6Olm.js} +1 -1
- package/dist/assets/{dist-CMegW-DS.js → dist-qobNlkwf.js} +1 -1
- package/dist/assets/{environments-Bj-4l7Ol.js → environments-CnsaRGwX.js} +1 -1
- package/dist/assets/{external-link-LnxJtUIq.js → external-link-DJ5KXpF5.js} +1 -1
- package/dist/assets/{file-text-Ba5Wddur.js → file-text-BqJfYVg5.js} +1 -1
- package/dist/assets/{health-D8T5Zr74.js → health-DXJ-aWLi.js} +1 -1
- package/dist/assets/{heartbeats-Dae6h2SU.js → heartbeats-BoD7FLml.js} +1 -1
- package/dist/assets/{index-D4MfEOIw.js → index-BVwUuuxT.js} +168 -168
- package/dist/assets/{input-CtLHwxEw.js → input-BGjNwUvf.js} +1 -1
- package/dist/assets/{label-YjU0jMtG.js → label-CKJXPwWx.js} +2 -2
- package/dist/assets/{mention-chips-ClRmijVb.js → mention-chips-BovBgzq0.js} +1 -1
- package/dist/assets/{rotate-ccw-2WnWy1fs.js → rotate-ccw-B7ntLtp4.js} +1 -1
- package/dist/assets/{select-DRgGQ-iP.js → select-DIma4_VX.js} +1 -1
- package/dist/assets/{sheet-CACWxbsc.js → sheet-C9tsiOQC.js} +1 -1
- package/dist/assets/skeleton-CyS6Uq5n.js +1 -0
- package/dist/assets/{tabs-BfOtoFWj.js → tabs-nc-7quf8.js} +1 -1
- package/dist/assets/{use-adapter-capabilities-JhD0-FlQ.js → use-adapter-capabilities-DiUfxjZz.js} +1 -1
- package/dist/assets/{use-copy-action-qHyHFl14.js → use-copy-action-RWCAx8p8.js} +1 -1
- package/dist/assets/{useHiddenSettings-Dz7GWNDr.js → useHiddenSettings-Be7MTSIM.js} +1 -1
- package/dist/index.html +39 -39
- package/dist/sw.js +1 -1
- package/package.json +1 -1
- package/dist/assets/skeleton-DCrngTtF.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
var l=Object.defineProperty;var n=(s,t)=>l(s,"name",{value:t,configurable:!0});import{i as o}from"./rolldown-runtime-ZpX3ckPj.js";import{
|
|
1
|
+
var l=Object.defineProperty;var n=(s,t)=>l(s,"name",{value:t,configurable:!0});import{i as o}from"./rolldown-runtime-ZpX3ckPj.js";import{Ba as c}from"./agent-avatar-url-Dp-4-Emx.js";import{ct as i,i as u}from"./BreadcrumbContext-CIC8QOSJ.js";var e=o(c(),1);function b({icon:s,title:t,message:m,description:r,action:a,onAction:x,hideActionIcon:d=!1}){return(0,e.jsxs)("div",{className:"flex flex-col items-center justify-center py-16 text-center",children:[(0,e.jsx)("div",{className:"bg-muted/50 p-4 mb-4",children:(0,e.jsx)(s,{className:"h-10 w-10 text-muted-foreground/50"})}),t?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("p",{className:"text-base font-semibold text-foreground mb-1.5",children:t}),(0,e.jsx)("p",{className:"text-sm text-muted-foreground mb-4 max-w-md",children:m})]}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("p",{className:"text-sm font-medium text-foreground mb-1",children:m}),r&&(0,e.jsx)("p",{className:"max-w-md text-sm text-muted-foreground mb-4",children:r})]}),a&&x&&(0,e.jsxs)(u,{onClick:x,children:[!d&&(0,e.jsx)(i,{className:"h-4 w-4 mr-1.5"}),a]})]})}n(b,"EmptyState");export{b as t};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/mermaid.core-Be3XJK9z.js","assets/preload-helper-CceJXRIF.js","assets/chunk-Y2CYZVJY-OvsAdhaO.js","assets/src-Bssc388C.js","assets/rolldown-runtime-ZpX3ckPj.js","assets/chunk-DU6HZSFF-mLZ_DAj9.js","assets/chunk-75Z2AOVW-CTyOxDW3.js","assets/dist-Cj4C2HPs.js","assets/chunk-PWAF6VOD-DHqPPKbd.js","assets/chunk-GMAD6QVW-Vk29EsOn.js","assets/chunk-P2QGCYS3-DD1uZyrA.js","assets/chunk-4HAMMTFA-Duh1dbZg.js","assets/rough.esm-DnC5Tr1g.js","assets/chunk-GVQU2GXP-D5bNpR4K.js","assets/chunk-OSK3NFVY-BfvIkdmA.js","assets/line-Dk_ouzM8.js","assets/path-D6mommQw.js","assets/array-CL5Tisss.js","assets/graphlib-DHhK3saS.js","assets/chunk-L3NEJ4N5-GADujcju.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
var tr=Object.defineProperty;var i=(e,t)=>tr(e,"name",{value:t,configurable:!0});import{i as ve,n as nr,t as pe}from"./rolldown-runtime-ZpX3ckPj.js";import{G as $,Gi as ge,Ia as rr,Or as or,Ra as Ze,St as ee,Ta as ir,Va as lr,Wi as gt,aa as Je,gt as Qe,n as Vt,za as ur}from"./agent-avatar-url-BnmqahQ7.js";import{t as ar}from"./preload-helper-CceJXRIF.js";import{I as sr,Kt as cr,Ln as qt,d as pr,f as fr,ft as dr,m as hr,p as mr,r as gr,s as et,un as Xt}from"./BreadcrumbContext-Bxr1TyKN.js";import{$ as Dr,C as yr,D as Gt,F as $e,H as ae,I as Dt,J as tt,K,L as Fr,P as T,R as wr,S as Cr,U as se,W as kr,Y as re,_ as Er,c as Ar,d as br,et as vr,f as xr,g as fe,h as Sr,i as Yt,j as nt,k as yt,l as Ir,m as Br,p as Pr,r as Zt,u as Lr,x as rt,z as Rr}from"./mention-chips-ClRmijVb.js";import{c as jr,l as Jt,m as Ft,p as _r,r as Qt,s as Tr,t as Nr,u as Or}from"./StatusIcon-YdJnE47W.js";import{t as Mr}from"./check-BiXfODpl.js";import{a as zr,i as Ur,n as $r,o as Hr,t as Wr}from"./clipboard-CTmezHYG.js";import{n as Kr,t as Vr}from"./external-link-LnxJtUIq.js";var en={name:"file-code-corner",size:24,node:[["path",{d:"M4 12.15V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-3.35",key:"1wthlu"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m5 16-3 3 3 3",key:"331omg"}],["path",{d:"m9 22 3-3-3-3",key:"lsp7cz"}]],aliases:["file-code-2"]};en.node;var qr=Vt(en),tn={name:"text-wrap",size:24,node:[["path",{d:"m16 16-3 3 3 3",key:"117b85"}],["path",{d:"M3 12h14.5a1 1 0 0 1 0 7H13",key:"18xa6z"}],["path",{d:"M3 19h6",key:"1ygdsz"}],["path",{d:"M3 5h18",key:"1u36vt"}]],aliases:["wrap-text"]};tn.node;var Xr=Vt(tn);function ie(e){const t=[];let n=-1,r=0,o=0;for(;++n<e.length;){const u=e.charCodeAt(n);let l="";if(u===37&&se(e.charCodeAt(n+1))&&se(e.charCodeAt(n+2)))o=2;else if(u<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(u))||(l=String.fromCharCode(u));else if(u>55295&&u<57344){const a=e.charCodeAt(n+1);u<56320&&a>56319&&a<57344?(l=String.fromCharCode(u,a),o=1):l="�"}else l=String.fromCharCode(u);l&&(t.push(e.slice(r,n),encodeURIComponent(l)),r=n+o+1,l=""),o&&(n+=o,o=0)}return t.join("")+e.slice(r)}i(ie,"normalizeUri");var y=ve(lr(),1),D=ve(ur(),1);function Gr(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}i(Gr,"escapeStringRegexp");var nn="paperclip.theme",Yr="#18181b",Zr="#ffffff",rn=(0,y.createContext)(void 0);function Jr(){return typeof document>"u"||document.documentElement.classList.contains("dark")?"dark":"light"}i(Jr,"resolveThemeFromDocument");function Qr(){if(typeof window>"u")return!1;try{const e=window.localStorage.getItem(nn);return e==="light"||e==="dark"}catch{return!1}}i(Qr,"hasStoredTheme");function eo(e){if(typeof document>"u")return;const t=e==="dark",n=document.documentElement;n.classList.toggle("dark",t),n.style.colorScheme=t?"dark":"light";const r=document.querySelector('meta[name="theme-color"]');r instanceof HTMLMetaElement&&r.setAttribute("content",t?Yr:Zr)}i(eo,"applyTheme");function as({children:e}){const[t,n]=(0,y.useState)(()=>Jr()),[r,o]=(0,y.useState)(()=>Qr()),u=(0,y.useCallback)(s=>{o(!0),n(s)},[]),l=(0,y.useCallback)(()=>{o(!0),n(s=>s==="dark"?"light":"dark")},[]);(0,y.useEffect)(()=>{if(eo(t),!!r)try{localStorage.setItem(nn,t)}catch{}},[t,r]),(0,y.useEffect)(()=>{if(r||typeof window>"u"||typeof window.matchMedia!="function")return;const s=window.matchMedia("(prefers-color-scheme: dark)"),p=i(f=>{n(f.matches?"dark":"light")},"handleChange");return s.addEventListener("change",p),()=>s.removeEventListener("change",p)},[r]);const a=(0,y.useMemo)(()=>({theme:t,setTheme:u,toggleTheme:l}),[t,u,l]);return(0,D.jsx)(rn.Provider,{value:a,children:e})}i(as,"ThemeProvider");function to(){const e=(0,y.useContext)(rn);if(!e)throw new Error("useTheme must be used within ThemeProvider");return e}i(to,"useTheme");function no(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}i(no,"stringify$1");var ro=/[ \t\n\f\r]/g;function oo(e){return typeof e=="object"?e.type==="text"?wt(e.value):!1:wt(e)}i(oo,"whitespace");function wt(e){return e.replace(ro,"")===""}i(wt,"empty");var de=class{static{i(this,"Schema")}constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};de.prototype.normal={};de.prototype.property={};de.prototype.space=void 0;function on(e,t){const n={},r={};for(const o of e)Object.assign(n,o.property),Object.assign(r,o.normal);return new de(n,r,t)}i(on,"merge");function He(e){return e.toLowerCase()}i(He,"normalize$1");var O=class{static{i(this,"Info")}constructor(e,t){this.attribute=t,this.property=e}};O.prototype.attribute="";O.prototype.booleanish=!1;O.prototype.boolean=!1;O.prototype.commaOrSpaceSeparated=!1;O.prototype.commaSeparated=!1;O.prototype.defined=!1;O.prototype.mustUseProperty=!1;O.prototype.number=!1;O.prototype.overloadedBoolean=!1;O.prototype.property="";O.prototype.spaceSeparated=!1;O.prototype.space=void 0;var We=nr({boolean:i(()=>b,"boolean"),booleanish:i(()=>_,"booleanish"),commaOrSpaceSeparated:i(()=>z,"commaOrSpaceSeparated"),commaSeparated:i(()=>Q,"commaSeparated"),number:i(()=>m,"number"),overloadedBoolean:i(()=>Ke,"overloadedBoolean"),spaceSeparated:i(()=>R,"spaceSeparated")}),io=0,b=te(),_=te(),Ke=te(),m=te(),R=te(),Q=te(),z=te();function te(){return 2**++io}i(te,"increment");var Se=Object.keys(We),ot=class extends O{static{i(this,"DefinedInfo")}constructor(e,t,n,r){let o=-1;if(super(e,t),Ct(this,"space",r),typeof n=="number")for(;++o<Se.length;){const u=Se[o];Ct(this,Se[o],(n&We[u])===We[u])}}};ot.prototype.defined=!0;function Ct(e,t,n){n&&(e[t]=n)}i(Ct,"mark");function le(e){const t={},n={};for(const[r,o]of Object.entries(e.properties)){const u=new ot(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(u.mustUseProperty=!0),t[r]=u,n[He(r)]=r,n[He(u.attribute)]=r}return new de(t,n,e.space)}i(le,"create");var ln=le({properties:{ariaActiveDescendant:null,ariaAtomic:_,ariaAutoComplete:null,ariaBusy:_,ariaChecked:_,ariaColCount:m,ariaColIndex:m,ariaColSpan:m,ariaControls:R,ariaCurrent:null,ariaDescribedBy:R,ariaDetails:null,ariaDisabled:_,ariaDropEffect:R,ariaErrorMessage:null,ariaExpanded:_,ariaFlowTo:R,ariaGrabbed:_,ariaHasPopup:null,ariaHidden:_,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:R,ariaLevel:m,ariaLive:null,ariaModal:_,ariaMultiLine:_,ariaMultiSelectable:_,ariaOrientation:null,ariaOwns:R,ariaPlaceholder:null,ariaPosInSet:m,ariaPressed:_,ariaReadOnly:_,ariaRelevant:null,ariaRequired:_,ariaRoleDescription:R,ariaRowCount:m,ariaRowIndex:m,ariaRowSpan:m,ariaSelected:_,ariaSetSize:m,ariaSort:null,ariaValueMax:m,ariaValueMin:m,ariaValueNow:m,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function un(e,t){return t in e?e[t]:t}i(un,"caseSensitiveTransform");function an(e,t){return un(e,t.toLowerCase())}i(an,"caseInsensitiveTransform");var lo=le({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Q,acceptCharset:R,accessKey:R,action:null,allow:null,allowFullScreen:b,allowPaymentRequest:b,allowUserMedia:b,alpha:b,alt:null,as:null,async:b,autoCapitalize:null,autoComplete:R,autoFocus:b,autoPlay:b,blocking:R,capture:null,charSet:null,checked:b,cite:null,className:R,closedBy:null,colorSpace:null,cols:m,colSpan:m,command:null,commandFor:null,content:null,contentEditable:_,controls:b,controlsList:R,coords:m|Q,crossOrigin:null,data:null,dateTime:null,decoding:null,default:b,defer:b,dir:null,dirName:null,disabled:b,download:Ke,draggable:_,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:b,formTarget:null,headers:R,height:m,hidden:Ke,high:m,href:null,hrefLang:null,htmlFor:R,httpEquiv:R,id:null,imageSizes:null,imageSrcSet:null,inert:b,inputMode:null,integrity:null,is:null,isMap:b,itemId:null,itemProp:R,itemRef:R,itemScope:b,itemType:R,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:b,low:m,manifest:null,max:null,maxLength:m,media:null,method:null,min:null,minLength:m,multiple:b,muted:b,name:null,nonce:null,noModule:b,noValidate:b,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:b,optimum:m,pattern:null,ping:R,placeholder:null,playsInline:b,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:b,referrerPolicy:null,rel:R,required:b,reversed:b,rows:m,rowSpan:m,sandbox:R,scope:null,scoped:b,seamless:b,selected:b,shadowRootClonable:b,shadowRootCustomElementRegistry:b,shadowRootDelegatesFocus:b,shadowRootMode:null,shadowRootSerializable:b,shape:null,size:m,sizes:null,slot:null,span:m,spellCheck:_,src:null,srcDoc:null,srcLang:null,srcSet:null,start:m,step:null,style:null,tabIndex:m,target:null,title:null,translate:null,type:null,typeMustMatch:b,useMap:null,value:_,width:m,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:R,axis:null,background:null,bgColor:null,border:m,borderColor:null,bottomMargin:m,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:b,declare:b,event:null,face:null,frame:null,frameBorder:null,hSpace:m,leftMargin:m,link:null,longDesc:null,lowSrc:null,marginHeight:m,marginWidth:m,noResize:b,noHref:b,noShade:b,noWrap:b,object:null,profile:null,prompt:null,rev:null,rightMargin:m,rules:null,scheme:null,scrolling:_,standby:null,summary:null,text:null,topMargin:m,valueType:null,version:null,vAlign:null,vLink:null,vSpace:m,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:b,disablePictureInPicture:b,disableRemotePlayback:b,exportParts:Q,part:R,prefix:null,property:null,results:m,security:null,unselectable:null},space:"html",transform:an}),uo=le({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",maskType:"mask-type",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:z,accentHeight:m,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:m,amplitude:m,arabicForm:null,ascent:m,attributeName:null,attributeType:null,azimuth:m,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:m,by:null,calcMode:null,capHeight:m,className:R,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:m,diffuseConstant:m,direction:null,display:null,dur:null,divisor:m,dominantBaseline:null,download:b,dx:null,dy:null,edgeMode:null,editable:null,elevation:m,enableBackground:null,end:null,event:null,exponent:m,externalResourcesRequired:null,fill:null,fillOpacity:m,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:Q,g2:Q,glyphName:Q,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:m,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:m,horizOriginX:m,horizOriginY:m,id:null,ideographic:m,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:m,k:m,k1:m,k2:m,k3:m,k4:m,kernelMatrix:z,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:m,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:m,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:m,overlineThickness:m,paintOrder:null,panose1:null,path:null,pathLength:m,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:R,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:m,pointsAtY:m,pointsAtZ:m,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:z,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:z,rev:z,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:z,requiredFeatures:z,requiredFonts:z,requiredFormats:z,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:m,specularExponent:m,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:m,strikethroughThickness:m,string:null,stroke:null,strokeDashArray:z,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:m,strokeOpacity:m,strokeWidth:null,style:null,surfaceScale:m,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:z,tabIndex:m,tableValues:null,target:null,targetX:m,targetY:m,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:z,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:m,underlineThickness:m,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:m,values:null,vAlphabetic:m,vMathematical:m,vectorEffect:null,vHanging:m,vIdeographic:m,version:null,vertAdvY:m,vertOriginX:m,vertOriginY:m,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:m,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:un}),sn=le({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),cn=le({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:an}),pn=le({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),ao={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},so=/[A-Z]/g,kt=/-[a-z]/g,co=/^data[-\w.:]+$/i;function po(e,t){const n=He(t);let r=t,o=O;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&co.test(t)){if(t.charAt(4)==="-"){const u=t.slice(5).replace(kt,ho);r="data"+u.charAt(0).toUpperCase()+u.slice(1)}else{const u=t.slice(4);if(!kt.test(u)){let l=u.replace(so,fo);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}o=ot}return new o(r,t)}i(po,"find");function fo(e){return"-"+e.toLowerCase()}i(fo,"kebab");function ho(e){return e.charAt(1).toUpperCase()}i(ho,"camelcase");var mo=on([ln,lo,sn,cn,pn],"html"),it=on([ln,uo,sn,cn,pn],"svg");function go(e){return e.join(" ").trim()}i(go,"stringify");var Do=pe(((e,t)=>{var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,o=/^\s*/,u=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,l=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,p=/^\s+|\s+$/g,f=`
|
|
2
|
+
var tr=Object.defineProperty;var i=(e,t)=>tr(e,"name",{value:t,configurable:!0});import{i as ve,n as nr,t as pe}from"./rolldown-runtime-ZpX3ckPj.js";import{Ba as rr,Ea as or,G as $,Gi as gt,Ha as ir,Ki as ge,La as lr,Or as ur,St as ee,gt as Ze,n as Vt,oa as Je,za as Qe}from"./agent-avatar-url-Dp-4-Emx.js";import{t as ar}from"./preload-helper-CceJXRIF.js";import{I as sr,Kt as cr,Ln as qt,d as pr,f as fr,ft as dr,m as hr,p as mr,r as gr,s as et,un as Xt}from"./BreadcrumbContext-CIC8QOSJ.js";import{$ as Dr,C as yr,D as Gt,F as $e,H as ae,I as Dt,J as tt,K,L as Fr,P as T,R as wr,S as Cr,U as se,W as kr,Y as re,_ as Er,c as Ar,d as br,et as vr,f as xr,g as fe,h as Sr,i as Yt,j as nt,k as yt,l as Ir,m as Br,p as Pr,r as Zt,u as Lr,x as rt,z as Rr}from"./mention-chips-BovBgzq0.js";import{c as jr,l as Jt,m as Ft,p as _r,r as Qt,s as Tr,t as Nr,u as Or}from"./StatusIcon-PIDWeOS3.js";import{t as Mr}from"./check-AN9f-5s7.js";import{a as zr,i as Ur,n as $r,o as Hr,t as Wr}from"./clipboard-Bj1LrAus.js";import{n as Kr,t as Vr}from"./external-link-DJ5KXpF5.js";var en={name:"file-code-corner",size:24,node:[["path",{d:"M4 12.15V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-3.35",key:"1wthlu"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m5 16-3 3 3 3",key:"331omg"}],["path",{d:"m9 22 3-3-3-3",key:"lsp7cz"}]],aliases:["file-code-2"]};en.node;var qr=Vt(en),tn={name:"text-wrap",size:24,node:[["path",{d:"m16 16-3 3 3 3",key:"117b85"}],["path",{d:"M3 12h14.5a1 1 0 0 1 0 7H13",key:"18xa6z"}],["path",{d:"M3 19h6",key:"1ygdsz"}],["path",{d:"M3 5h18",key:"1u36vt"}]],aliases:["wrap-text"]};tn.node;var Xr=Vt(tn);function ie(e){const t=[];let n=-1,r=0,o=0;for(;++n<e.length;){const u=e.charCodeAt(n);let l="";if(u===37&&se(e.charCodeAt(n+1))&&se(e.charCodeAt(n+2)))o=2;else if(u<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(u))||(l=String.fromCharCode(u));else if(u>55295&&u<57344){const a=e.charCodeAt(n+1);u<56320&&a>56319&&a<57344?(l=String.fromCharCode(u,a),o=1):l="�"}else l=String.fromCharCode(u);l&&(t.push(e.slice(r,n),encodeURIComponent(l)),r=n+o+1,l=""),o&&(n+=o,o=0)}return t.join("")+e.slice(r)}i(ie,"normalizeUri");var y=ve(ir(),1),D=ve(rr(),1);function Gr(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}i(Gr,"escapeStringRegexp");var nn="paperclip.theme",Yr="#18181b",Zr="#ffffff",rn=(0,y.createContext)(void 0);function Jr(){return typeof document>"u"||document.documentElement.classList.contains("dark")?"dark":"light"}i(Jr,"resolveThemeFromDocument");function Qr(){if(typeof window>"u")return!1;try{const e=window.localStorage.getItem(nn);return e==="light"||e==="dark"}catch{return!1}}i(Qr,"hasStoredTheme");function eo(e){if(typeof document>"u")return;const t=e==="dark",n=document.documentElement;n.classList.toggle("dark",t),n.style.colorScheme=t?"dark":"light";const r=document.querySelector('meta[name="theme-color"]');r instanceof HTMLMetaElement&&r.setAttribute("content",t?Yr:Zr)}i(eo,"applyTheme");function as({children:e}){const[t,n]=(0,y.useState)(()=>Jr()),[r,o]=(0,y.useState)(()=>Qr()),u=(0,y.useCallback)(s=>{o(!0),n(s)},[]),l=(0,y.useCallback)(()=>{o(!0),n(s=>s==="dark"?"light":"dark")},[]);(0,y.useEffect)(()=>{if(eo(t),!!r)try{localStorage.setItem(nn,t)}catch{}},[t,r]),(0,y.useEffect)(()=>{if(r||typeof window>"u"||typeof window.matchMedia!="function")return;const s=window.matchMedia("(prefers-color-scheme: dark)"),p=i(f=>{n(f.matches?"dark":"light")},"handleChange");return s.addEventListener("change",p),()=>s.removeEventListener("change",p)},[r]);const a=(0,y.useMemo)(()=>({theme:t,setTheme:u,toggleTheme:l}),[t,u,l]);return(0,D.jsx)(rn.Provider,{value:a,children:e})}i(as,"ThemeProvider");function to(){const e=(0,y.useContext)(rn);if(!e)throw new Error("useTheme must be used within ThemeProvider");return e}i(to,"useTheme");function no(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}i(no,"stringify$1");var ro=/[ \t\n\f\r]/g;function oo(e){return typeof e=="object"?e.type==="text"?wt(e.value):!1:wt(e)}i(oo,"whitespace");function wt(e){return e.replace(ro,"")===""}i(wt,"empty");var de=class{static{i(this,"Schema")}constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};de.prototype.normal={};de.prototype.property={};de.prototype.space=void 0;function on(e,t){const n={},r={};for(const o of e)Object.assign(n,o.property),Object.assign(r,o.normal);return new de(n,r,t)}i(on,"merge");function He(e){return e.toLowerCase()}i(He,"normalize$1");var O=class{static{i(this,"Info")}constructor(e,t){this.attribute=t,this.property=e}};O.prototype.attribute="";O.prototype.booleanish=!1;O.prototype.boolean=!1;O.prototype.commaOrSpaceSeparated=!1;O.prototype.commaSeparated=!1;O.prototype.defined=!1;O.prototype.mustUseProperty=!1;O.prototype.number=!1;O.prototype.overloadedBoolean=!1;O.prototype.property="";O.prototype.spaceSeparated=!1;O.prototype.space=void 0;var We=nr({boolean:i(()=>b,"boolean"),booleanish:i(()=>_,"booleanish"),commaOrSpaceSeparated:i(()=>z,"commaOrSpaceSeparated"),commaSeparated:i(()=>Q,"commaSeparated"),number:i(()=>m,"number"),overloadedBoolean:i(()=>Ke,"overloadedBoolean"),spaceSeparated:i(()=>R,"spaceSeparated")}),io=0,b=te(),_=te(),Ke=te(),m=te(),R=te(),Q=te(),z=te();function te(){return 2**++io}i(te,"increment");var Se=Object.keys(We),ot=class extends O{static{i(this,"DefinedInfo")}constructor(e,t,n,r){let o=-1;if(super(e,t),Ct(this,"space",r),typeof n=="number")for(;++o<Se.length;){const u=Se[o];Ct(this,Se[o],(n&We[u])===We[u])}}};ot.prototype.defined=!0;function Ct(e,t,n){n&&(e[t]=n)}i(Ct,"mark");function le(e){const t={},n={};for(const[r,o]of Object.entries(e.properties)){const u=new ot(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(u.mustUseProperty=!0),t[r]=u,n[He(r)]=r,n[He(u.attribute)]=r}return new de(t,n,e.space)}i(le,"create");var ln=le({properties:{ariaActiveDescendant:null,ariaAtomic:_,ariaAutoComplete:null,ariaBusy:_,ariaChecked:_,ariaColCount:m,ariaColIndex:m,ariaColSpan:m,ariaControls:R,ariaCurrent:null,ariaDescribedBy:R,ariaDetails:null,ariaDisabled:_,ariaDropEffect:R,ariaErrorMessage:null,ariaExpanded:_,ariaFlowTo:R,ariaGrabbed:_,ariaHasPopup:null,ariaHidden:_,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:R,ariaLevel:m,ariaLive:null,ariaModal:_,ariaMultiLine:_,ariaMultiSelectable:_,ariaOrientation:null,ariaOwns:R,ariaPlaceholder:null,ariaPosInSet:m,ariaPressed:_,ariaReadOnly:_,ariaRelevant:null,ariaRequired:_,ariaRoleDescription:R,ariaRowCount:m,ariaRowIndex:m,ariaRowSpan:m,ariaSelected:_,ariaSetSize:m,ariaSort:null,ariaValueMax:m,ariaValueMin:m,ariaValueNow:m,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function un(e,t){return t in e?e[t]:t}i(un,"caseSensitiveTransform");function an(e,t){return un(e,t.toLowerCase())}i(an,"caseInsensitiveTransform");var lo=le({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Q,acceptCharset:R,accessKey:R,action:null,allow:null,allowFullScreen:b,allowPaymentRequest:b,allowUserMedia:b,alpha:b,alt:null,as:null,async:b,autoCapitalize:null,autoComplete:R,autoFocus:b,autoPlay:b,blocking:R,capture:null,charSet:null,checked:b,cite:null,className:R,closedBy:null,colorSpace:null,cols:m,colSpan:m,command:null,commandFor:null,content:null,contentEditable:_,controls:b,controlsList:R,coords:m|Q,crossOrigin:null,data:null,dateTime:null,decoding:null,default:b,defer:b,dir:null,dirName:null,disabled:b,download:Ke,draggable:_,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:b,formTarget:null,headers:R,height:m,hidden:Ke,high:m,href:null,hrefLang:null,htmlFor:R,httpEquiv:R,id:null,imageSizes:null,imageSrcSet:null,inert:b,inputMode:null,integrity:null,is:null,isMap:b,itemId:null,itemProp:R,itemRef:R,itemScope:b,itemType:R,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:b,low:m,manifest:null,max:null,maxLength:m,media:null,method:null,min:null,minLength:m,multiple:b,muted:b,name:null,nonce:null,noModule:b,noValidate:b,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:b,optimum:m,pattern:null,ping:R,placeholder:null,playsInline:b,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:b,referrerPolicy:null,rel:R,required:b,reversed:b,rows:m,rowSpan:m,sandbox:R,scope:null,scoped:b,seamless:b,selected:b,shadowRootClonable:b,shadowRootCustomElementRegistry:b,shadowRootDelegatesFocus:b,shadowRootMode:null,shadowRootSerializable:b,shape:null,size:m,sizes:null,slot:null,span:m,spellCheck:_,src:null,srcDoc:null,srcLang:null,srcSet:null,start:m,step:null,style:null,tabIndex:m,target:null,title:null,translate:null,type:null,typeMustMatch:b,useMap:null,value:_,width:m,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:R,axis:null,background:null,bgColor:null,border:m,borderColor:null,bottomMargin:m,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:b,declare:b,event:null,face:null,frame:null,frameBorder:null,hSpace:m,leftMargin:m,link:null,longDesc:null,lowSrc:null,marginHeight:m,marginWidth:m,noResize:b,noHref:b,noShade:b,noWrap:b,object:null,profile:null,prompt:null,rev:null,rightMargin:m,rules:null,scheme:null,scrolling:_,standby:null,summary:null,text:null,topMargin:m,valueType:null,version:null,vAlign:null,vLink:null,vSpace:m,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:b,disablePictureInPicture:b,disableRemotePlayback:b,exportParts:Q,part:R,prefix:null,property:null,results:m,security:null,unselectable:null},space:"html",transform:an}),uo=le({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",maskType:"mask-type",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:z,accentHeight:m,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:m,amplitude:m,arabicForm:null,ascent:m,attributeName:null,attributeType:null,azimuth:m,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:m,by:null,calcMode:null,capHeight:m,className:R,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:m,diffuseConstant:m,direction:null,display:null,dur:null,divisor:m,dominantBaseline:null,download:b,dx:null,dy:null,edgeMode:null,editable:null,elevation:m,enableBackground:null,end:null,event:null,exponent:m,externalResourcesRequired:null,fill:null,fillOpacity:m,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:Q,g2:Q,glyphName:Q,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:m,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:m,horizOriginX:m,horizOriginY:m,id:null,ideographic:m,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:m,k:m,k1:m,k2:m,k3:m,k4:m,kernelMatrix:z,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:m,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:m,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:m,overlineThickness:m,paintOrder:null,panose1:null,path:null,pathLength:m,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:R,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:m,pointsAtY:m,pointsAtZ:m,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:z,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:z,rev:z,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:z,requiredFeatures:z,requiredFonts:z,requiredFormats:z,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:m,specularExponent:m,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:m,strikethroughThickness:m,string:null,stroke:null,strokeDashArray:z,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:m,strokeOpacity:m,strokeWidth:null,style:null,surfaceScale:m,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:z,tabIndex:m,tableValues:null,target:null,targetX:m,targetY:m,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:z,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:m,underlineThickness:m,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:m,values:null,vAlphabetic:m,vMathematical:m,vectorEffect:null,vHanging:m,vIdeographic:m,version:null,vertAdvY:m,vertOriginX:m,vertOriginY:m,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:m,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:un}),sn=le({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),cn=le({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:an}),pn=le({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),ao={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},so=/[A-Z]/g,kt=/-[a-z]/g,co=/^data[-\w.:]+$/i;function po(e,t){const n=He(t);let r=t,o=O;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&co.test(t)){if(t.charAt(4)==="-"){const u=t.slice(5).replace(kt,ho);r="data"+u.charAt(0).toUpperCase()+u.slice(1)}else{const u=t.slice(4);if(!kt.test(u)){let l=u.replace(so,fo);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}o=ot}return new o(r,t)}i(po,"find");function fo(e){return"-"+e.toLowerCase()}i(fo,"kebab");function ho(e){return e.charAt(1).toUpperCase()}i(ho,"camelcase");var mo=on([ln,lo,sn,cn,pn],"html"),it=on([ln,uo,sn,cn,pn],"svg");function go(e){return e.join(" ").trim()}i(go,"stringify");var Do=pe(((e,t)=>{var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,o=/^\s*/,u=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,l=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,p=/^\s+|\s+$/g,f=`
|
|
3
3
|
`,c="/",d="*",h="",g="comment",F="declaration";function w(C,v){if(typeof C!="string")throw new TypeError("First argument must be a string");if(!C)return[];v=v||{};var x=1,P=1;function q(B){var k=B.match(r);k&&(x+=k.length);var N=B.lastIndexOf(f);P=~N?B.length-N:P+B.length}i(q,"updatePosition");function M(){var B={line:x,column:P};return function(k){return k.position=new j(B),I(),k}}i(M,"position");function j(B){this.start=B,this.end={line:x,column:P},this.source=v.source}i(j,"Position"),j.prototype.content=C;function L(B){var k=new Error(v.source+":"+x+":"+P+": "+B);if(k.reason=B,k.filename=v.source,k.line=x,k.column=P,k.source=C,!v.silent)throw k}i(L,"error");function A(B){var k=B.exec(C);if(k){var N=k[0];return q(N),C=C.slice(N.length),k}}i(A,"match");function I(){A(o)}i(I,"whitespace");function S(B){var k;for(B=B||[];k=U();)k!==!1&&B.push(k);return B}i(S,"comments");function U(){var B=M();if(!(c!=C.charAt(0)||d!=C.charAt(1))){for(var k=2;h!=C.charAt(k)&&(d!=C.charAt(k)||c!=C.charAt(k+1));)++k;if(k+=2,h===C.charAt(k-1))return L("End of comment missing");var N=C.slice(2,k-2);return P+=2,q(N),C=C.slice(k),P+=2,B({type:g,comment:N})}}i(U,"comment");function G(){var B=M(),k=A(u);if(k){if(U(),!A(l))return L("property missing ':'");var N=A(a),me=B({type:F,property:E(k[0].replace(n,h)),value:N?E(N[0].replace(n,h)):h});return A(s),me}}i(G,"declaration");function Y(){var B=[];S(B);for(var k;k=G();)k!==!1&&(B.push(k),S(B));return B}return i(Y,"declarations"),I(),Y()}i(w,"index");function E(C){return C?C.replace(p,h):h}i(E,"trim"),t.exports=w})),yo=pe((e=>{var t=e&&e.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;var n=t(Do());function r(o,u){let l=null;if(!o||typeof o!="string")return l;const a=(0,n.default)(o),s=typeof u=="function";return a.forEach(p=>{if(p.type!=="declaration")return;const{property:f,value:c}=p;s?u(f,c,p):c&&(l=l||{},l[f]=c)}),l}i(r,"StyleToObject")})),Fo=pe((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,r=/^[^-]+$/,o=/^-(webkit|moz|ms|o|khtml)-/,u=/^-(ms)-/,l=i(function(f){return!f||r.test(f)||t.test(f)},"skipCamelCase"),a=i(function(f,c){return c.toUpperCase()},"capitalize"),s=i(function(f,c){return"".concat(c,"-")},"trimHyphen"),p=i(function(f,c){return c===void 0&&(c={}),l(f)?f:(f=f.toLowerCase(),c.reactCompat?f=f.replace(u,s):f=f.replace(o,s),f.replace(n,a))},"camelCase");e.camelCase=p})),wo=pe(((e,t)=>{var n=(e&&e.__importDefault||function(u){return u&&u.__esModule?u:{default:u}})(yo()),r=Fo();function o(u,l){var a={};return!u||typeof u!="string"||(0,n.default)(u,function(s,p){s&&p&&(a[(0,r.camelCase)(s,l)]=p)}),a}i(o,"StyleToJS"),o.default=o,t.exports=o})),fn=dn("end"),lt=dn("start");function dn(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}i(dn,"point");function Co(e){const t=lt(e),n=fn(e);if(t&&n)return{start:t,end:n}}i(Co,"position");var ko=ve(wo(),1),ut={}.hasOwnProperty,Eo=new Map,Ao=/[A-Z]/g,bo=new Set(["table","tbody","thead","tfoot","tr"]),vo=new Set(["td","th"]),hn="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function xo(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=_o(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=jo(n,t.jsx,t.jsxs)}const o={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?it:mo,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},u=mn(o,e,void 0);return u&&typeof u!="string"?u:o.create(e,o.Fragment,{children:u||void 0},void 0)}i(xo,"toJsxRuntime");function mn(e,t,n){if(t.type==="element")return So(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return Io(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return Po(e,t,n);if(t.type==="mdxjsEsm")return Bo(e,t);if(t.type==="root")return Lo(e,t,n);if(t.type==="text")return Ro(e,t)}i(mn,"one$1");function So(e,t,n){const r=e.schema;let o=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(o=it,e.schema=o),e.ancestors.push(t);const u=Dn(e,t.tagName,!1),l=To(e,t);let a=st(e,t);return bo.has(t.tagName)&&(a=a.filter(function(s){return typeof s=="string"?!oo(s):!0})),gn(e,l,u,t),at(l,a),e.ancestors.pop(),e.schema=r,e.create(t,u,l,n)}i(So,"element");function Io(e,t){if(t.data&&t.data.estree&&e.evaluater){const n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}ce(e,t.position)}i(Io,"mdxExpression");function Bo(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);ce(e,t.position)}i(Bo,"mdxEsm");function Po(e,t,n){const r=e.schema;let o=r;t.name==="svg"&&r.space==="html"&&(o=it,e.schema=o),e.ancestors.push(t);const u=t.name===null?e.Fragment:Dn(e,t.name,!0),l=No(e,t),a=st(e,t);return gn(e,l,u,t),at(l,a),e.ancestors.pop(),e.schema=r,e.create(t,u,l,n)}i(Po,"mdxJsxElement");function Lo(e,t,n){const r={};return at(r,st(e,t)),e.create(t,e.Fragment,r,n)}i(Lo,"root$1");function Ro(e,t){return t.value}i(Ro,"text$2");function gn(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}i(gn,"addNode");function at(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}i(at,"addChildren");function jo(e,t,n){return r;function r(o,u,l,a){const s=Array.isArray(l.children)?n:t;return a?s(u,l,a):s(u,l)}}i(jo,"productionCreate");function _o(e,t){return n;function n(r,o,u,l){const a=Array.isArray(u.children),s=lt(r);return t(o,u,l,a,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}i(_o,"developmentCreate");function To(e,t){const n={};let r,o;for(o in t.properties)if(o!=="children"&&ut.call(t.properties,o)){const u=Oo(e,o,t.properties[o]);if(u){const[l,a]=u;e.tableCellAlignToStyle&&l==="align"&&typeof a=="string"&&vo.has(t.tagName)?r=a:n[l]=a}}if(r){const u=n.style||(n.style={});u[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}i(To,"createElementProps");function No(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const o=r.data.estree.body[0];o.type;const u=o.expression;u.type;const l=u.properties[0];l.type,Object.assign(n,e.evaluater.evaluateExpression(l.argument))}else ce(e,t.position);else{const o=r.name;let u;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const l=r.value.data.estree.body[0];l.type,u=e.evaluater.evaluateExpression(l.expression)}else ce(e,t.position);else u=r.value===null?!0:r.value;n[o]=u}return n}i(No,"createJsxElementProps");function st(e,t){const n=[];let r=-1;const o=e.passKeys?new Map:Eo;for(;++r<t.children.length;){const u=t.children[r];let l;if(e.passKeys){const s=u.type==="element"?u.tagName:u.type==="mdxJsxFlowElement"||u.type==="mdxJsxTextElement"?u.name:void 0;if(s){const p=o.get(s)||0;l=s+"-"+p,o.set(s,p+1)}}const a=mn(e,u,l);a!==void 0&&n.push(a)}return n}i(st,"createChildren");function Oo(e,t,n){const r=po(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?no(n):go(n)),r.property==="style"){let o=typeof n=="object"?n:Mo(e,String(n));return e.stylePropertyNameCase==="css"&&(o=zo(o)),["style",o]}return[e.elementAttributeNameCase==="react"&&r.space?ao[r.property]||r.property:r.attribute,n]}}i(Oo,"createProperty");function Mo(e,t){try{return(0,ko.default)(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,o=new nt("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw o.file=e.filePath||void 0,o.url=hn+"#cannot-parse-style-attribute",o}}i(Mo,"parseStyle");function Dn(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const o=t.split(".");let u=-1,l;for(;++u<o.length;){const a=yt(o[u])?{type:"Identifier",name:o[u]}:{type:"Literal",value:o[u]};l=l?{type:"MemberExpression",object:l,property:a,computed:!!(u&&a.type==="Literal"),optional:!1}:a}r=l}else r=yt(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const o=r.value;return ut.call(e.components,o)?e.components[o]:o}if(e.evaluater)return e.evaluater.evaluateExpression(r);ce(e)}i(Dn,"findComponentFromName");function ce(e,t){const n=new nt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=hn+"#cannot-handle-mdx-estrees-without-createevaluater",n}i(ce,"crashEstree");function zo(e){const t={};let n;for(n in e)ut.call(e,n)&&(t[Uo(n)]=e[n]);return t}i(zo,"transformStylesToCssCasing");function Uo(e){let t=e.replace(Ao,$o);return t.slice(0,3)==="ms-"&&(t="-"+t),t}i(Uo,"transformStyleToCssCasing");function $o(e){return"-"+e.toLowerCase()}i($o,"toDash");var Ie={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"]};function Ho(e){const t=this;t.parser=n;function n(r){return Br(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}i(n,"parser")}i(Ho,"remarkParse");function Wo(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}i(Wo,"blockquote");function Ko(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
4
4
|
`}]}i(Ko,"hardBreak");function Vo(e,t){const n=t.value?t.value+`
|
|
5
5
|
`:"",r={},o=t.lang?t.lang.split(/\s+/):[];o.length>0&&(r.className=["language-"+o[0]]);let u={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(u.data={meta:t.meta}),e.patch(t,u),u=e.applyData(t,u),u={type:"element",tagName:"pre",properties:{},children:[u]},e.patch(t,u),u}i(Vo,"code$1");function qo(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}i(qo,"strikethrough");function Xo(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}i(Xo,"emphasis");function Go(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),o=ie(r.toLowerCase()),u=e.footnoteOrder.indexOf(r);let l,a=e.footnoteCounts.get(r);a===void 0?(a=0,e.footnoteOrder.push(r),l=e.footnoteOrder.length):l=u+1,a+=1,e.footnoteCounts.set(r,a);const s={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+o,id:n+"fnref-"+o+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(l)}]};e.patch(t,s);const p={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,p),e.applyData(t,p)}i(Go,"footnoteReference$1");function Yo(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}i(Yo,"heading");function Zo(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}i(Zo,"html");function yn(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const o=e.all(t),u=o[0];u&&u.type==="text"?u.value="["+u.value:o.unshift({type:"text",value:"["});const l=o[o.length-1];return l&&l.type==="text"?l.value+=r:o.push({type:"text",value:r}),o}i(yn,"revert");function Jo(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return yn(e,t);const o={src:ie(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(o.title=r.title);const u={type:"element",tagName:"img",properties:o,children:[]};return e.patch(t,u),e.applyData(t,u)}i(Jo,"imageReference");function Qo(e,t){const n={src:ie(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}i(Qo,"image");function ei(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}i(ei,"inlineCode");function ti(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return yn(e,t);const o={href:ie(r.url||"")};r.title!==null&&r.title!==void 0&&(o.title=r.title);const u={type:"element",tagName:"a",properties:o,children:e.all(t)};return e.patch(t,u),e.applyData(t,u)}i(ti,"linkReference");function ni(e,t){const n={href:ie(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}i(ni,"link");function ri(e,t,n){const r=e.all(t),o=n?oi(n):Fn(t),u={},l=[];if(typeof t.checked=="boolean"){const f=r[0];let c;f&&f.type==="element"&&f.tagName==="p"?c=f:(c={type:"element",tagName:"p",properties:{},children:[]},r.unshift(c)),c.children.length>0&&c.children.unshift({type:"text",value:" "}),c.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),u.className=["task-list-item"]}let a=-1;for(;++a<r.length;){const f=r[a];(o||a!==0||f.type!=="element"||f.tagName!=="p")&&l.push({type:"text",value:`
|
|
@@ -11,6 +11,6 @@ var tr=Object.defineProperty;var i=(e,t)=>tr(e,"name",{value:t,configurable:!0})
|
|
|
11
11
|
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
|
|
12
12
|
`}),n}i(Si,"wrap$1");function It(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}i(It,"trimMarkdownSpaceStart");function Bt(e,t){const n=Ai(e,t),r=n.one(e,void 0),o=ki(n),u=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return o&&("children"in u,u.children.push({type:"text",value:`
|
|
13
13
|
`},o)),u}i(Bt,"toHast");function Ii(e,t){return e&&"run"in e?async function(n,r){const o=Bt(n,{file:r,...t});await e.run(o,r)}:function(n,r){return Bt(n,{file:r,...e||t})}}i(Ii,"remarkRehype");function Pt(e){if(e)throw e}i(Pt,"bail");var Bi=pe(((e,t)=>{var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,o=Object.defineProperty,u=Object.getOwnPropertyDescriptor,l=i(function(c){return typeof Array.isArray=="function"?Array.isArray(c):r.call(c)==="[object Array]"},"isArray"),a=i(function(c){if(!c||r.call(c)!=="[object Object]")return!1;var d=n.call(c,"constructor"),h=c.constructor&&c.constructor.prototype&&n.call(c.constructor.prototype,"isPrototypeOf");if(c.constructor&&!d&&!h)return!1;var g;for(g in c);return typeof g>"u"||n.call(c,g)},"isPlainObject"),s=i(function(c,d){o&&d.name==="__proto__"?o(c,d.name,{enumerable:!0,configurable:!0,value:d.newValue,writable:!0}):c[d.name]=d.newValue},"setProperty"),p=i(function(c,d){if(d==="__proto__")if(n.call(c,d)){if(u)return u(c,d).value}else return;return c[d]},"getProperty");t.exports=i(function f(){var c,d,h,g,F,w,E=arguments[0],C=1,v=arguments.length,x=!1;for(typeof E=="boolean"&&(x=E,E=arguments[1]||{},C=2),(E==null||typeof E!="object"&&typeof E!="function")&&(E={});C<v;++C)if(c=arguments[C],c!=null)for(d in c)h=p(E,d),g=p(c,d),E!==g&&(x&&g&&(a(g)||(F=l(g)))?(F?(F=!1,w=h&&l(h)?h:[]):w=h&&a(h)?h:{},s(E,{name:d,newValue:f(x,w,g)})):typeof g<"u"&&s(E,{name:d,newValue:g}));return E},"extend")})),Be=ve(Bi(),1);function qe(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}i(qe,"isPlainObject");function Pi(){const e=[],t={run:n,use:r};return t;function n(...o){let u=-1;const l=o.pop();if(typeof l!="function")throw new TypeError("Expected function as last argument, not "+l);a(null,...o);function a(s,...p){const f=e[++u];let c=-1;if(s){l(s);return}for(;++c<o.length;)(p[c]===null||p[c]===void 0)&&(p[c]=o[c]);o=p,f?Li(f,a)(...p):l(null,...p)}i(a,"next")}function r(o){if(typeof o!="function")throw new TypeError("Expected `middelware` to be a function, not "+o);return e.push(o),t}}i(Pi,"trough");function Li(e,t){let n;return r;function r(...l){const a=e.length>l.length;let s;a&&l.push(o);try{s=e.apply(this,l)}catch(p){const f=p;if(a&&n)throw f;return o(f)}a||(s&&s.then&&typeof s.then=="function"?s.then(u,o):s instanceof Error?o(s):u(s))}function o(l,...a){n||(n=!0,t(l,...a))}function u(l){o(null,l)}}i(Li,"wrap");var W={basename:Ri,dirname:ji,extname:_i,join:Ti,sep:"/"};function Ri(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');he(e);let n=0,r=-1,o=e.length,u;if(t===void 0||t.length===0||t.length>e.length){for(;o--;)if(e.codePointAt(o)===47){if(u){n=o+1;break}}else r<0&&(u=!0,r=o+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let l=-1,a=t.length-1;for(;o--;)if(e.codePointAt(o)===47){if(u){n=o+1;break}}else l<0&&(u=!0,l=o+1),a>-1&&(e.codePointAt(o)===t.codePointAt(a--)?a<0&&(r=o):(a=-1,r=l));return n===r?r=l:r<0&&(r=e.length),e.slice(n,r)}i(Ri,"basename");function ji(e){if(he(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}i(ji,"dirname");function _i(e){he(e);let t=e.length,n=-1,r=0,o=-1,u=0,l;for(;t--;){const a=e.codePointAt(t);if(a===47){if(l){r=t+1;break}continue}n<0&&(l=!0,n=t+1),a===46?o<0?o=t:u!==1&&(u=1):o>-1&&(u=-1)}return o<0||n<0||u===0||u===1&&o===n-1&&o===r+1?"":e.slice(o,n)}i(_i,"extname");function Ti(...e){let t=-1,n;for(;++t<e.length;)he(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":Ni(n)}i(Ti,"join");function Ni(e){he(e);const t=e.codePointAt(0)===47;let n=Oi(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}i(Ni,"normalize");function Oi(e,t){let n="",r=0,o=-1,u=0,l=-1,a,s;for(;++l<=e.length;){if(l<e.length)a=e.codePointAt(l);else{if(a===47)break;a=47}if(a===47){if(!(o===l-1||u===1))if(o!==l-1&&u===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(s=n.lastIndexOf("/"),s!==n.length-1){s<0?(n="",r=0):(n=n.slice(0,s),r=n.length-1-n.lastIndexOf("/")),o=l,u=0;continue}}else if(n.length>0){n="",r=0,o=l,u=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(o+1,l):n=e.slice(o+1,l),r=l-o-1;o=l,u=0}else a===46&&u>-1?u++:u=-1}return n}i(Oi,"normalizeString");function he(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}i(he,"assertPath$1");var Mi={cwd:zi};function zi(){return"/"}i(zi,"cwd");function Xe(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}i(Xe,"isUrl");function Ui(e){if(typeof e=="string")e=new URL(e);else if(!Xe(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return $i(e)}i(Ui,"urlToPath");function $i(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const o=new TypeError("File URL path must not include encoded / characters");throw o.code="ERR_INVALID_FILE_URL_PATH",o}}return decodeURIComponent(t)}i($i,"getPathFromURLPosix");var Pe=["history","path","basename","stem","extname","dirname"],wn=class{static{i(this,"VFile")}constructor(e){let t;e?Xe(e)?t={path:e}:typeof e=="string"||Hi(e)?t={value:e}:t=e:t={},this.cwd="cwd"in t?"":Mi.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<Pe.length;){const o=Pe[n];o in t&&t[o]!==void 0&&t[o]!==null&&(this[o]=o==="history"?[...t[o]]:t[o])}let r;for(r in t)Pe.includes(r)||(this[r]=t[r])}get basename(){return typeof this.path=="string"?W.basename(this.path):void 0}set basename(e){Re(e,"basename"),Le(e,"basename"),this.path=W.join(this.dirname||"",e)}get dirname(){return typeof this.path=="string"?W.dirname(this.path):void 0}set dirname(e){Lt(this.basename,"dirname"),this.path=W.join(e||"",this.basename)}get extname(){return typeof this.path=="string"?W.extname(this.path):void 0}set extname(e){if(Le(e,"extname"),Lt(this.dirname,"extname"),e){if(e.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=W.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){Xe(e)&&(e=Ui(e)),Re(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path=="string"?W.basename(this.path,this.extname):void 0}set stem(e){Re(e,"stem"),Le(e,"stem"),this.path=W.join(this.dirname||"",e+(this.extname||""))}fail(e,t,n){const r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){const r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){const r=new nt(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(e||void 0).decode(this.value)}};function Le(e,t){if(e&&e.includes(W.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+W.sep+"`")}i(Le,"assertPart");function Re(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}i(Re,"assertNonEmpty");function Lt(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}i(Lt,"assertPath");function Hi(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}i(Hi,"isUint8Array$1");var Wi=i((function(e){const t=this.constructor.prototype,n=t[e],r=i(function(){return n.apply(r,arguments)},"apply");return Object.setPrototypeOf(r,t),r}),"CallableInstance"),Ki={}.hasOwnProperty,Vi=class Cn extends Wi{static{i(this,"Processor")}constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=Pi()}copy(){const t=new Cn;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data((0,Be.default)(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Te("data",this.frozen),this.namespace[t]=n,this):Ki.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Te("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const o=n.call(t,...r);typeof o=="function"&&this.transformers.use(o)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=Fe(t),r=this.parser||this.Parser;return je("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),je("process",this.parser||this.Parser),_e("process",this.compiler||this.Compiler),n?o(void 0,n):new Promise(o);function o(u,l){const a=Fe(t),s=r.parse(a);r.run(s,a,function(f,c,d){if(f||!c||!d)return p(f);const h=c,g=r.stringify(h,d);Gi(g)?d.value=g:d.result=g,p(f,d)});function p(f,c){f||!c?l(f):u?u(c):n(void 0,c)}i(p,"realDone")}i(o,"executor")}processSync(t){let n=!1,r;return this.freeze(),je("processSync",this.parser||this.Parser),_e("processSync",this.compiler||this.Compiler),this.process(t,o),jt("processSync","process",n),r;function o(u,l){n=!0,Pt(u),r=l}i(o,"realDone")}run(t,n,r){Rt(t),this.freeze();const o=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?u(void 0,r):new Promise(u);function u(l,a){const s=Fe(n);o.run(t,s,p);function p(f,c,d){const h=c||t;f?a(f):l?l(h):r(void 0,h,d)}i(p,"realDone")}i(u,"executor")}runSync(t,n){let r=!1,o;return this.run(t,n,u),jt("runSync","run",r),o;function u(l,a){Pt(l),o=a,r=!0}i(u,"realDone")}stringify(t,n){this.freeze();const r=Fe(n),o=this.compiler||this.Compiler;return _e("stringify",o),Rt(t),o(t,r)}use(t,...n){const r=this.attachers,o=this.namespace;if(Te("use",this.frozen),t!=null)if(typeof t=="function")s(t,n);else if(typeof t=="object")Array.isArray(t)?a(t):l(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function u(p){if(typeof p=="function")s(p,[]);else if(typeof p=="object")if(Array.isArray(p)){const[f,...c]=p;s(f,c)}else l(p);else throw new TypeError("Expected usable value, not `"+p+"`")}function l(p){if(!("plugins"in p)&&!("settings"in p))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");a(p.plugins),p.settings&&(o.settings=(0,Be.default)(!0,o.settings,p.settings))}function a(p){let f=-1;if(p!=null)if(Array.isArray(p))for(;++f<p.length;){const c=p[f];u(c)}else throw new TypeError("Expected a list of plugins, not `"+p+"`")}function s(p,f){let c=-1,d=-1;for(;++c<r.length;)if(r[c][0]===p){d=c;break}if(d===-1)r.push([p,...f]);else if(f.length>0){let[h,...g]=f;const F=r[d][1];qe(F)&&qe(h)&&(h=(0,Be.default)(!0,F,h)),r[d]=[p,h,...g]}}}},qi=new Vi().freeze();function je(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}i(je,"assertParser");function _e(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}i(_e,"assertCompiler");function Te(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}i(Te,"assertUnfrozen");function Rt(e){if(!qe(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}i(Rt,"assertNode");function jt(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}i(jt,"assertDone");function Fe(e){return Xi(e)?e:new wn(e)}i(Fe,"vfile");function Xi(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}i(Xi,"looksLikeAVFile");function Gi(e){return typeof e=="string"||Yi(e)}i(Gi,"looksLikeAValue");function Yi(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}i(Yi,"isUint8Array");var _t=[],Tt={allowDangerousHtml:!0},Zi=/^(https?|ircs?|mailto|xmpp)$/i,Ji=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Qi(e){const t=el(e),n=tl(e);return nl(t.runSync(t.parse(n),n),e)}i(Qi,"Markdown");function el(e){const t=e.rehypePlugins||_t,n=e.remarkPlugins||_t,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Tt}:Tt;return qi().use(Ho).use(n).use(Ii,r).use(t)}i(el,"createProcessor");function tl(e){const t=e.children||"",n=new wn;return typeof t=="string"?n.value=t:""+t,n}i(tl,"createFile");function nl(e,t){const n=t.allowedElements,r=t.allowElement,o=t.components,u=t.disallowedElements,l=t.skipHtml,a=t.unwrapDisallowed,s=t.urlTransform||kn;for(const f of Ji)Object.hasOwn(t,f.from)&&""+f.from+(f.to?"use `"+f.to+"` instead":"remove it")+f.id;return rt(e,p),xo(e,{Fragment:D.Fragment,components:o,ignoreInvalidStyle:!0,jsx:D.jsx,jsxs:D.jsxs,passKeys:!0,passNode:!0});function p(f,c,d){if(f.type==="raw"&&d&&typeof c=="number")return l?d.children.splice(c,1):d.children[c]={type:"text",value:f.value},c;if(f.type==="element"){let h;for(h in Ie)if(Object.hasOwn(Ie,h)&&Object.hasOwn(f.properties,h)){const g=f.properties[h],F=Ie[h];(F===null||F.includes(f.tagName))&&(f.properties[h]=s(String(g||""),h,f))}}if(f.type==="element"){let h=n?!n.includes(f.tagName):u?u.includes(f.tagName):!1;if(!h&&r&&typeof c=="number"&&(h=!r(f,c,d)),h&&d&&typeof c=="number")return a&&f.children?d.children.splice(c,1,...f.children):d.children.splice(c,1),c}}i(p,"transform")}i(nl,"post");function kn(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),o=e.indexOf("/");return t===-1||o!==-1&&t>o||n!==-1&&t>n||r!==-1&&t>r||Zi.test(e.slice(0,t))?e:""}i(kn,"defaultUrlTransform");function rl(e,t,n){const r=yr((n||{}).ignore||[]),o=ol(t);let u=-1;for(;++u<o.length;)Cr(e,"text",l);function l(s,p){let f=-1,c;for(;++f<p.length;){const d=p[f],h=c?c.children:void 0;if(r(d,h?h.indexOf(d):void 0,c))return;c=d}if(c)return a(s,p)}i(l,"visitor");function a(s,p){const f=p[p.length-1],c=o[u][0],d=o[u][1];let h=0;const g=f.children.indexOf(s);let F=!1,w=[];c.lastIndex=0;let E=c.exec(s.value);for(;E;){const C=E.index,v={index:E.index,input:E.input,stack:[...p,s]};let x=d(...E,v);if(typeof x=="string"&&(x=x.length>0?{type:"text",value:x}:void 0),x===!1?c.lastIndex=C+1:(h!==C&&w.push({type:"text",value:s.value.slice(h,C)}),Array.isArray(x)?w.push(...x):x&&w.push(x),h=C+E[0].length,F=!0),!c.global)break;E=c.exec(s.value)}return F?(h<s.value.length&&w.push({type:"text",value:s.value.slice(h)}),f.children.splice(g,1,...w)):w=[s],g+w.length}i(a,"handler")}i(rl,"findAndReplace");function ol(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const o=n[r];t.push([il(o[0]),ll(o[1])])}return t}i(ol,"toPairs");function il(e){return typeof e=="string"?new RegExp(Gr(e),"g"):e}i(il,"toExpression");function ll(e){return typeof e=="function"?e:function(){return e}}i(ll,"toFunction");var Ne="phrasing",Oe=["autolink","link","image","label"];function ul(){return{transforms:[hl],enter:{literalAutolink:sl,literalAutolinkEmail:Me,literalAutolinkHttp:Me,literalAutolinkWww:Me},exit:{literalAutolink:dl,literalAutolinkEmail:fl,literalAutolinkHttp:cl,literalAutolinkWww:pl}}}i(ul,"gfmAutolinkLiteralFromMarkdown");function al(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Ne,notInConstruct:Oe},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Ne,notInConstruct:Oe},{character:":",before:"[ps]",after:"\\/",inConstruct:Ne,notInConstruct:Oe}]}}i(al,"gfmAutolinkLiteralToMarkdown");function sl(e){this.enter({type:"link",title:null,url:"",children:[]},e)}i(sl,"enterLiteralAutolink");function Me(e){this.config.enter.autolinkProtocol.call(this,e)}i(Me,"enterLiteralAutolinkValue");function cl(e){this.config.exit.autolinkProtocol.call(this,e)}i(cl,"exitLiteralAutolinkHttp");function pl(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}i(pl,"exitLiteralAutolinkWww");function fl(e){this.config.exit.autolinkEmail.call(this,e)}i(fl,"exitLiteralAutolinkEmail");function dl(e){this.exit(e)}i(dl,"exitLiteralAutolink");function hl(e){rl(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,ml],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),gl]],{ignore:["link","linkReference"]})}i(hl,"transformGfmAutolinkLiterals");function ml(e,t,n,r,o){let u="";if(!En(o)||(/^w/i.test(t)&&(n=t+n,t="",u="http://"),!Dl(n)))return!1;const l=yl(n+r);if(!l[0])return!1;const a={type:"link",title:null,url:u+t+l[0],children:[{type:"text",value:t+l[0]}]};return l[1]?[a,{type:"text",value:l[1]}]:a}i(ml,"findUrl");function gl(e,t,n,r){return!En(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}i(gl,"findEmail");function Dl(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}i(Dl,"isCorrectDomain");function yl(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const o=Dt(e,"(");let u=Dt(e,")");for(;r!==-1&&o>u;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),u++;return[e,n]}i(yl,"splitUrl");function En(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||re(n)||tt(n))&&(!t||n!==47)}i(En,"previous");An.peek=xl;function Fl(){this.buffer()}i(Fl,"enterFootnoteCallString");function wl(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}i(wl,"enterFootnoteCall");function Cl(){this.buffer()}i(Cl,"enterFootnoteDefinitionLabelString");function kl(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}i(kl,"enterFootnoteDefinition");function El(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=fe(this.sliceSerialize(e)).toLowerCase(),n.label=t}i(El,"exitFootnoteCallString");function Al(e){this.exit(e)}i(Al,"exitFootnoteCall");function bl(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=fe(this.sliceSerialize(e)).toLowerCase(),n.label=t}i(bl,"exitFootnoteDefinitionLabelString");function vl(e){this.exit(e)}i(vl,"exitFootnoteDefinition");function xl(){return"["}i(xl,"footnoteReferencePeek");function An(e,t,n,r){const o=n.createTracker(r);let u=o.move("[^");const l=n.enter("footnoteReference"),a=n.enter("reference");return u+=o.move(n.safe(n.associationId(e),{after:"]",before:u})),a(),l(),u+=o.move("]"),u}i(An,"footnoteReference");function Sl(){return{enter:{gfmFootnoteCallString:Fl,gfmFootnoteCall:wl,gfmFootnoteDefinitionLabelString:Cl,gfmFootnoteDefinition:kl},exit:{gfmFootnoteCallString:El,gfmFootnoteCall:Al,gfmFootnoteDefinitionLabelString:bl,gfmFootnoteDefinition:vl}}}i(Sl,"gfmFootnoteFromMarkdown");function Il(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:An},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,o,u,l){const a=u.createTracker(l);let s=a.move("[^");const p=u.enter("footnoteDefinition"),f=u.enter("label");return s+=a.move(u.safe(u.associationId(r),{before:s,after:"]"})),f(),s+=a.move("]:"),r.children&&r.children.length>0&&(a.shift(4),s+=a.move((t?`
|
|
14
|
-
`:" ")+u.indentLines(u.containerFlow(r,a.current()),t?bn:Bl))),p(),s}i(n,"footnoteDefinition")}i(Il,"gfmFootnoteToMarkdown");function Bl(e,t,n){return t===0?e:bn(e,t,n)}i(Bl,"mapExceptFirst");function bn(e,t,n){return(n?"":" ")+e}i(bn,"mapAll");function Pl(){return[ul(),Sl(),Fr(),Ir(),br()]}i(Pl,"gfmFromMarkdown");function Ll(e){return{extensions:[al(),Il(e),wr(),Lr(e),xr()]}}i(Ll,"gfmToMarkdown");var Rl={tokenize:Ml,partial:!0},vn={tokenize:zl,partial:!0},xn={tokenize:Ul,partial:!0},Sn={tokenize:$l,partial:!0},jl={tokenize:Hl,partial:!0},In={name:"wwwAutolink",tokenize:Nl,previous:Pn},Bn={name:"protocolAutolink",tokenize:Ol,previous:Ln},X={name:"emailAutolink",tokenize:Tl,previous:Rn},V={};function _l(){return{text:V}}i(_l,"gfmAutolinkLiteral");var Z=48;for(;Z<123;)V[Z]=X,Z++,Z===58?Z=65:Z===91&&(Z=97);V[43]=X;V[45]=X;V[46]=X;V[95]=X;V[72]=[X,Bn];V[104]=[X,Bn];V[87]=[X,In];V[119]=[X,In];function Tl(e,t,n){const r=this;let o,u;return l;function l(c){return!Ge(c)||!Rn.call(r,r.previous)||ct(r.events)?n(c):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(c))}function a(c){return Ge(c)?(e.consume(c),a):c===64?(e.consume(c),s):n(c)}function s(c){return c===46?e.check(jl,f,p)(c):c===45||c===95||se(c)?(u=!0,e.consume(c),s):f(c)}function p(c){return e.consume(c),o=!0,s}function f(c){return u&&o&&ae(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(c)):n(c)}}i(Tl,"tokenizeEmailAutolink");function Nl(e,t,n){const r=this;return o;function o(l){return l!==87&&l!==119||!Pn.call(r,r.previous)||ct(r.events)?n(l):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Rl,e.attempt(vn,e.attempt(xn,u),n),n)(l))}function u(l){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(l)}}i(Nl,"tokenizeWwwAutolink");function Ol(e,t,n){const r=this;let o="",u=!1;return l;function l(c){return(c===72||c===104)&&Ln.call(r,r.previous)&&!ct(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),o+=String.fromCodePoint(c),e.consume(c),a):n(c)}function a(c){if(ae(c)&&o.length<5)return o+=String.fromCodePoint(c),e.consume(c),a;if(c===58){const d=o.toLowerCase();if(d==="http"||d==="https")return e.consume(c),s}return n(c)}function s(c){return c===47?(e.consume(c),u?p:(u=!0,s)):n(c)}function p(c){return c===null||kr(c)||K(c)||re(c)||tt(c)?n(c):e.attempt(vn,e.attempt(xn,f),n)(c)}function f(c){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(c)}}i(Ol,"tokenizeProtocolAutolink");function Ml(e,t,n){let r=0;return o;function o(l){return(l===87||l===119)&&r<3?(r++,e.consume(l),o):l===46&&r===3?(e.consume(l),u):n(l)}function u(l){return l===null?n(l):t(l)}}i(Ml,"tokenizeWwwPrefix");function zl(e,t,n){let r,o,u;return l;function l(p){return p===46||p===95?e.check(Sn,s,a)(p):p===null||K(p)||re(p)||p!==45&&tt(p)?s(p):(u=!0,e.consume(p),l)}function a(p){return p===95?r=!0:(o=r,r=void 0),e.consume(p),l}function s(p){return o||r||!u?n(p):t(p)}}i(zl,"tokenizeDomain");function Ul(e,t){let n=0,r=0;return o;function o(l){return l===40?(n++,e.consume(l),o):l===41&&r<n?u(l):l===33||l===34||l===38||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===60||l===63||l===93||l===95||l===126?e.check(Sn,t,u)(l):l===null||K(l)||re(l)?t(l):(e.consume(l),o)}function u(l){return l===41&&r++,e.consume(l),o}}i(Ul,"tokenizePath");function $l(e,t,n){return r;function r(a){return a===33||a===34||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===63||a===95||a===126?(e.consume(a),r):a===38?(e.consume(a),u):a===93?(e.consume(a),o):a===60||a===null||K(a)||re(a)?t(a):n(a)}function o(a){return a===null||a===40||a===91||K(a)||re(a)?t(a):r(a)}function u(a){return ae(a)?l(a):n(a)}function l(a){return a===59?(e.consume(a),r):ae(a)?(e.consume(a),l):n(a)}}i($l,"tokenizeTrail");function Hl(e,t,n){return r;function r(u){return e.consume(u),o}function o(u){return se(u)?n(u):t(u)}}i(Hl,"tokenizeEmailDomainDotTrail");function Pn(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||K(e)}i(Pn,"previousWww");function Ln(e){return!ae(e)}i(Ln,"previousProtocol");function Rn(e){return!(e===47||Ge(e))}i(Rn,"previousEmail");function Ge(e){return e===43||e===45||e===46||e===95||se(e)}i(Ge,"gfmAtext");function ct(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}i(ct,"previousUnbalanced");var Wl={tokenize:Jl,partial:!0};function Kl(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Gl,continuation:{tokenize:Yl},exit:Zl}},text:{91:{name:"gfmFootnoteCall",tokenize:Xl},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Vl,resolveTo:ql}}}}i(Kl,"gfmFootnote");function Vl(e,t,n){const r=this;let o=r.events.length;const u=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l;for(;o--;){const s=r.events[o][1];if(s.type==="labelImage"){l=s;break}if(s.type==="gfmFootnoteCall"||s.type==="labelLink"||s.type==="label"||s.type==="image"||s.type==="link")break}return a;function a(s){if(!l||!l._balanced)return n(s);const p=fe(r.sliceSerialize({start:l.end,end:r.now()}));return p.codePointAt(0)!==94||!u.includes(p.slice(1))?n(s):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),t(s))}}i(Vl,"tokenizePotentialGfmFootnoteCall");function ql(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;const u={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},e[e.length-1][1].start)},l={type:"chunkString",contentType:"string",start:Object.assign({},u.start),end:Object.assign({},u.end)},a=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",o,t],["exit",o,t],["enter",u,t],["enter",l,t],["exit",l,t],["exit",u,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...a),e}i(ql,"resolveToPotentialGfmFootnoteCall");function Xl(e,t,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let u=0,l;return a;function a(c){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),s}function s(c){return c!==94?n(c):(e.enter("gfmFootnoteCallMarker"),e.consume(c),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",p)}function p(c){if(u>999||c===93&&!l||c===null||c===91||K(c))return n(c);if(c===93){e.exit("chunkString");const d=e.exit("gfmFootnoteCallString");return o.includes(fe(r.sliceSerialize(d)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(c)}return K(c)||(l=!0),u++,e.consume(c),c===92?f:p}function f(c){return c===91||c===92||c===93?(e.consume(c),u++,p):p(c)}}i(Xl,"tokenizeGfmFootnoteCall");function Gl(e,t,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let u,l=0,a;return s;function s(g){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),p}function p(g){return g===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",f):n(g)}function f(g){if(l>999||g===93&&!a||g===null||g===91||K(g))return n(g);if(g===93){e.exit("chunkString");const F=e.exit("gfmFootnoteDefinitionLabelString");return u=fe(r.sliceSerialize(F)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return K(g)||(a=!0),l++,e.consume(g),g===92?c:f}function c(g){return g===91||g===92||g===93?(e.consume(g),l++,f):f(g)}function d(g){return g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),o.includes(u)||o.push(u),Gt(e,h,"gfmFootnoteDefinitionWhitespace")):n(g)}function h(g){return t(g)}}i(Gl,"tokenizeDefinitionStart");function Yl(e,t,n){return e.check(Sr,t,e.attempt(Wl,t,n))}i(Yl,"tokenizeDefinitionContinuation");function Zl(e){e.exit("gfmFootnoteDefinition")}i(Zl,"gfmFootnoteDefinitionEnd");function Jl(e,t,n){const r=this;return Gt(e,o,"gfmFootnoteDefinitionIndent",5);function o(u){const l=r.events[r.events.length-1];return l&&l[1].type==="gfmFootnoteDefinitionIndent"&&l[2].sliceSerialize(l[1],!0).length===4?t(u):n(u)}}i(Jl,"tokenizeIndent");function Ql(e){return Er([_l(),Kl(),Rr(e),Ar(),Pr()])}i(Ql,"gfm");var eu={};function tu(e){const t=this,n=e||eu,r=t.data(),o=r.micromarkExtensions||(r.micromarkExtensions=[]),u=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),l=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);o.push(Ql(n)),u.push(Pl()),l.push(Ll(n))}i(tu,"remarkGfm");var nu=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g,ru=Object.hasOwnProperty,ou=class{static{i(this,"BananaSlug")}constructor(){this.occurrences,this.reset()}slug(e,t){const n=this;let r=iu(e,t===!0);const o=r;for(;ru.call(n.occurrences,r);)n.occurrences[o]++,r=o+"-"+n.occurrences[o];return n.occurrences[r]=0,r}reset(){this.occurrences=Object.create(null)}};function iu(e,t){return typeof e!="string"?"":(t||(e=e.toLowerCase()),e.replace(nu,"").replace(/ /g,"-"))}i(iu,"slug");function lu(e){const t=e.type==="element"?e.tagName.toLowerCase():"",n=t.length===2&&t.charCodeAt(0)===104?t.charCodeAt(1):0;return n>48&&n<55?n-48:void 0}i(lu,"headingRank");function uu(e){return"children"in e?jn(e):"value"in e?e.value:""}i(uu,"toString");function au(e){return e.type==="text"?e.value:"children"in e?jn(e):""}i(au,"one");function jn(e){let t=-1;const n=[];for(;++t<e.children.length;)n[t]=au(e.children[t]);return n.join("")}i(jn,"all");var su={},Nt=new ou;function cu(e){const t=(e||su).prefix||"";return function(n){Nt.reset(),rt(n,"element",function(r){lu(r)&&!r.properties.id&&(r.properties.id=t+Nt.slug(uu(r)))})}}i(cu,"rehypeSlug");function ss(e){return typeof e=="object"&&e!==null&&e.locked===!0}i(ss,"isLockedIssueStub");function pu({identifier:e,className:t,unavailable:n=!1}){const r=e??(n?"Unavailable":"Private"),o=n?Kr:dr;return(0,D.jsxs)("span",{"data-testid":"locked-issue-chip","aria-label":`${r} — ${n?"unavailable or you don't have access":"private, you don't have access"}`,className:$("inline-flex shrink-0 select-none items-center gap-1 rounded-md border border-dashed border-border px-1.5 py-0.5","font-mono text-(length:--text-nano) leading-tight text-muted-foreground sm:text-(length:--text-micro)",t),children:[(0,D.jsx)(o,{className:"h-3 w-3 shrink-0","aria-hidden":"true"}),(0,D.jsx)("span",{className:"truncate",children:r})]})}i(pu,"LockedIssueChip");var fu=3e5;var du="200px",hu=new Set(["issue.updated","issue.checked_out","issue.released","issue.admin_force_release","issue.reassigned","issue.status_decision_recorded","issue.stalled_review_decided","issue.execution_recovery_settled","issue.tree_cancel_status_updated","issue.tree_restore_status_updated"]);function oe(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}i(oe,"isRecord");function J(e){return typeof e=="string"&&e.length>0?e:null}i(J,"readString");function _n(e){const t=Dr(e);if(t)return t;const n=e.trim();return or(n)?n.toLowerCase():null}i(_n,"normalizeIssueRef");function Tn(e,t){return e.id.toLowerCase()===t||e.identifier?.toUpperCase()===t}i(Tn,"matchesIssueRef");function mu(e){if(!oe(e))return null;const t=J(e.id),n=J(e.status);if(!t||!n)return null;const r=J(e.identifier);return{id:t,identifier:r,title:typeof e.title=="string"?e.title:r??t,status:n}}i(mu,"toIssueRef");function gu(e){return Array.isArray(e)?e:oe(e)&&Array.isArray(e.pages)?e.pages.flatMap(t=>Array.isArray(t)?t:[]):[]}i(gu,"issueListRows");function Du(e,t,n){let r;const o=i((l,a)=>{const s=mu(l);!s||!Tn(s,n)||oe(l)&&typeof l.companyId=="string"&&l.companyId!==t||(!r||a>r.updatedAt)&&(r={ref:s,updatedAt:a})},"consider"),u=e.getQueryCache();for(const l of u.findAll({queryKey:["issues","detail"]}))o(l.state.data,l.state.dataUpdatedAt);for(const l of u.findAll({queryKey:ee.issues.list(t)}))for(const a of gu(l.state.data))o(a,l.state.dataUpdatedAt);return r}i(Du,"readCachedIssueRef");function yu(){const e=new Map;let t=null;const n=i((o,u,l)=>{const a=new Map;for(const s of l)a.set(s.id.toLowerCase(),s),s.identifier&&a.set(s.identifier.toUpperCase(),s);for(const s of u)for(const p of o.get(s)??[])p.resolve(a.get(s)??null)},"settle"),r=i(()=>{t=null;const o=Array.from(e);e.clear();for(const[u,l]of o){const a=Array.from(l.keys());for(let s=0;s<a.length;s+=100){const p=a.slice(s,s+100);Xt.refs(u,p).then(f=>n(l,p,f),f=>{for(const c of p)for(const d of l.get(c)??[])d.reject(f)})}}},"flush");return(o,u)=>new Promise((l,a)=>{let s=e.get(o);s||(s=new Map,e.set(o,s));const p=s.get(u);p?p.push({resolve:l,reject:a}):s.set(u,[{resolve:l,reject:a}]),t??=setTimeout(r,30)})}i(yu,"createIssueRefBatcher");var Ot=new WeakMap;function Fu(e,t,n){let r=Ot.get(e);return r||(r=yu(),Ot.set(e,r)),r(t,n)}i(Fu,"loadIssueRef");function wu(e){const t=oe(e?.changes)?e.changes:null,n={};for(const r of["status","title"]){const o=t?.[r];!oe(o)||o.updated===!0||typeof o.to!="string"||(r==="status"?n.status=o.to:n.title=o.to)}return n}i(wu,"readIssueRefPatch");function cs(e,t,n){if(n.entityType!=="issue")return;const r=J(n.entityId);if(!r)return;const o=oe(n.details)?n.details:null,u=new Set([r,J(o?.identifier),J(o?.issueIdentifier)].flatMap(p=>p?[_n(p)]:[]).filter(p=>p!==null));if(u.size===0)return;const l=e.getQueryCache().findAll({queryKey:ee.issues.refs(t)}).filter(p=>{const f=p.state.data;return u.has(String(p.queryKey[3]))?!0:!!f&&Array.from(u).some(c=>Tn(f,c))});if(l.length===0)return;const a=wu(o);if(Object.keys(a).length>0){for(const p of l){const f=p.state.data;f&&e.setQueryData(p.queryKey,{...f,...a})}return}const s=J(n.action);if(!(!s||!hu.has(s)))for(const p of l)e.invalidateQueries({queryKey:p.queryKey,exact:!0,refetchType:"active"})}i(cs,"applyIssueRefActivity");var we=null;function Cu(e){if(we?.ctor===e)return we;const t=new Map,n=new e(r=>{for(const o of r){if(!o.isIntersecting)continue;const u=t.get(o.target);u&&(t.delete(o.target),n.unobserve(o.target),u())}},{rootMargin:du});return we={ctor:e,observer:n,callbacks:t},we}i(Cu,"getNearViewportRegistry");function ku(e,t){const n=globalThis.IntersectionObserver;if(typeof n!="function")return t(),()=>{};const r=Cu(n);return r.callbacks.set(e,t),r.observer.observe(e),()=>{r.callbacks.get(e)===t&&(r.callbacks.delete(e),r.observer.unobserve(e))}}i(ku,"observeNearViewport");function Eu(e){const t=Ze(),n=Qe()?.selectedCompanyId??null,r=(0,y.useMemo)(()=>_n(e),[e]),[o,u]=(0,y.useState)(null),[l,a]=(0,y.useState)(!1),s=!!(n&&r),p=(0,y.useRef)(null),f=i(()=>{if(!n||!r)return;const d=`${n}:${r}`;return p.current?.key!==d&&(p.current={key:d,value:Du(t,n,r)}),p.current.value},"readSeed");(0,y.useEffect)(()=>{if(!(!s||l||!o))return ku(o,()=>a(!0))},[s,l,o]);const c=Je({queryKey:ee.issues.ref(n??"",r??e),queryFn:i(()=>Fu(t,n,r),"queryFn"),enabled:s&&l,staleTime:fu,initialData:i(()=>f()?.ref,"initialData"),initialDataUpdatedAt:i(()=>f()?.updatedAt,"initialDataUpdatedAt")});return{issueRef:c.data??null,updatedAt:c.dataUpdatedAt,observe:u}}i(Eu,"useIssueRefStatus");var Au=/^[A-Z][A-Z0-9]*-C\d+$/i,bu=/\b[A-Z][A-Z0-9]*-C\d+\b/gi;function Nn(e,t){if(!e)return null;const n=e.trim();if(!Au.test(n))return null;const r=n.toUpperCase();if(t&&t.size>0){const o=r.split("-")[0];if(!o||!t.has(o))return null}return{identifier:r,href:`/cases/${encodeURIComponent(r)}`}}i(Nn,"parseCaseReferenceFromHref");function On(e,t,n="text"){return{type:"link",url:t,children:[{type:n,value:e}]}}i(On,"createCaseLinkNode");function vu(e,t){const n=[];let r=0,o=!1;for(const u of e.matchAll(bu)){const l=u[0];if(!l)continue;const a=Nn(l,t);if(!a)continue;const s=u.index??0;o=!0,s>r&&n.push({type:"text",value:e.slice(r,s)}),n.push(On(l,a.href)),r=s+l.length}return o?(r<e.length&&n.push({type:"text",value:e.slice(r)}),n):null}i(vu,"linkifyCaseReferencesInText");function Mn(e,t){if(!Array.isArray(e.children)||e.children.length===0||e.type==="link"||e.type==="linkReference"||e.type==="code"||e.type==="definition"||e.type==="html")return;const n=[];for(const r of e.children){if(r.type==="inlineCode"&&typeof r.value=="string"){const o=Nn(r.value,t);if(o){n.push(On(r.value,o.href,"inlineCode"));continue}}if(r.type==="text"&&typeof r.value=="string"){const o=vu(r.value,t);if(o){n.push(...o);continue}}Mn(r,t),n.push(r)}e.children=n}i(Mn,"rewriteMarkdownTree$2");function xu(e){const t=e?.knownPrefixes&&e.knownPrefixes.length>0?new Set(e.knownPrefixes.map(n=>n.toUpperCase())):void 0;return n=>{Mn(n,t)}}i(xu,"remarkLinkCaseReferences");var Su=new Set(["link","linkReference","code","inlineCode","definition","html"]),Iu=/[\p{L}\p{N}_]/u,Bu=/[\s\p{P}]/u;function Pu(e){if(!e?.length)return null;const t=new Map;for(const r of e){if(!r.name?.trim())continue;const o=r.status!=="terminated"&&!t.has(r.name);t.set(r.name,o?r.id:null)}const n=[...t.entries()];return n.some(([,r])=>r)?n.sort(([r],[o])=>o.length-r.length||(r<o?-1:r>o?1:0)):null}i(Pu,"buildAgentNameMentionIndex");function Lu(e,t,n){for(const r of n){const o=r[0];if(!e.startsWith(o,t))continue;const u=t+o.length;if(!(u<e.length&&!Bu.test(e[u])))return r}return null}i(Lu,"matchAgentNameAt");function Ru(e,t){const n=[];let r=0,o=e.indexOf("@");for(;o!==-1;){let u=o+1;if(o===0||!Iu.test(e[o-1])){const l=Lu(e,o+1,t);l&&(u=o+1+l[0].length,l[1]&&(o>r&&n.push({type:"text",value:e.slice(r,o)}),n.push({type:"link",url:vr(l[1]),children:[{type:"text",value:`@${l[0]}`}]}),r=u))}o=e.indexOf("@",u)}return r===0?null:(r<e.length&&n.push({type:"text",value:e.slice(r)}),n)}i(Ru,"linkifyAgentNamesInText");function zn(e,t){if(!Array.isArray(e.children)||e.children.length===0||Su.has(e.type))return;const n=[];for(const r of e.children){if(r.type==="text"&&typeof r.value=="string"&&r.value.includes("@")){const o=Ru(r.value,t);if(o){n.push(...o);continue}}zn(r,t),n.push(r)}e.children=n}i(zn,"rewriteMarkdownTree$1");function ju(e){return t=>{zn(t,e.index)}}i(ju,"remarkLinkAgentNameMentions");var _u=/^([A-Za-z0-9_.\-+][A-Za-z0-9_./\-+]*\.[A-Za-z0-9_+\-]{1,10})(?::([1-9]\d*)(?::([1-9]\d*))?|#L([1-9]\d*)(?:C([1-9]\d*))?)?$/,Tu=/^([A-Za-z0-9_.\-+][A-Za-z0-9_./\-+]+\/[A-Za-z0-9_.\-+]+)(?::([1-9]\d*)(?::([1-9]\d*))?|#L([1-9]\d*)(?:C([1-9]\d*))?)?$/,Nu=/^([A-Za-z0-9_.\-+][A-Za-z0-9_./\-+]*\/)$/,Ou=["/","./","../","~/"];function Ce(e){if(!e)return null;const t=Number.parseInt(e,10);return!Number.isFinite(t)||t<=0?null:t}i(Ce,"toPositiveInt");function Mt(e,t){if(!e||e.length>512||e.includes("\\")||e.includes("\0")||e.startsWith("/")||e.startsWith("~")||/^[A-Za-z]:/.test(e)||e.includes("//")||Ou.some(o=>e===o.slice(0,-1)))return!1;const n=t.allowTrailingSlash&&e.endsWith("/")?e.slice(0,-1):e;if(!n||/^\.+$/.test(n))return!1;const r=n.split("/");for(const o of r)if(o===""||o==="."||o==="..")return!1;return!0}i(Mt,"looksLikeWorkspacePath");function Un(e){if(typeof e!="string")return null;const t=e.trim();if(!t)return null;const n=t.match(Nu);if(n){const[,c]=n;return!c||!Mt(c,{allowTrailingSlash:!0})||!c.slice(0,-1).includes("/")?null:{path:c,resourceKind:"directory",line:null,column:null,raw:t}}const r=t.match(_u)??t.match(Tu);if(!r)return null;const[,o,u,l,a,s]=r;if(!o||!Mt(o,{allowTrailingSlash:!1}))return null;const p=Ce(u)??Ce(a),f=Ce(l)??Ce(s);return!o.includes("/")&&p===null?null:{path:o,resourceKind:"file",line:p,column:f,raw:t}}i(Un,"parseWorkspaceFileRef");function Mu(e){const t=e.line&&e.column?`${e.path}:${e.line}:${e.column}`:e.line?`${e.path}:${e.line}`:e.path;return e.projectName?`${e.projectName} / ${t}`:t}i(Mu,"formatWorkspaceFileRefDisplay");var $n="workspace-file:";function Hn(e){const t=new URLSearchParams;return e.projectId&&t.set("projectId",e.projectId),e.workspaceId&&t.set("workspaceId",e.workspaceId),e.workspace&&e.workspace!=="auto"&&t.set("workspace",e.workspace),e.resourceKind==="directory"&&t.set("kind","directory"),t.set("path",e.path),e.line!==null&&t.set("line",String(e.line)),e.column!==null&&t.set("column",String(e.column)),e.projectName&&t.set("projectName",e.projectName),`${$n}?${t.toString()}`}i(Hn,"buildWorkspaceFileHref");function zu(e){if(!e||typeof e!="string"||!e.startsWith($n))return null;const t=e.slice(15),n=t.startsWith("?")?t.slice(1):t,r=new URLSearchParams(n),o=r.get("path");if(!o)return null;const u=r.get("projectId"),l=r.get("workspaceId"),a=!!(u&&l),s=r.get("projectName"),p=r.get("workspace"),f=p==="execution"||p==="project"?p:"auto",c=r.get("kind"),d=r.get("line"),h=r.get("column"),g=d?Number.parseInt(d,10):NaN,F=h?Number.parseInt(h,10):NaN;return{path:o,resourceKind:c==="directory"||o.endsWith("/")?"directory":"file",line:Number.isFinite(g)&&g>0?g:null,column:Number.isFinite(F)&&F>0?F:null,projectId:a?u:null,workspaceId:a?l:null,projectName:s||null,workspace:f,raw:o}}i(zu,"parseWorkspaceFileHref");function Uu(e){return{type:"link",url:Hn(e),children:[{type:"inlineCode",value:e.raw}]}}i(Uu,"createWorkspaceFileLinkNode");function $u(e){if(!Array.isArray(e.children)||e.children.length!==1)return null;const[t]=e.children;return t?.type!=="inlineCode"||typeof t.value!="string"?null:Un(t.value)}i($u,"parseSingleInlineCodeFileRef");function Hu(e,t){return{...e,workspace:t.workspace,projectId:t.projectId??e.projectId??null,workspaceId:t.workspaceId??e.workspaceId??null,projectName:e.projectName??null}}i(Hu,"applyResolvedTarget");function zt(e,t){const n=t(e);return n?Hu(e,n):null}i(zt,"openableRef");function Wn(e,t){if(!Array.isArray(e.children)||e.children.length===0)return;if(e.type==="link"){const r=$u(e),o=r?zt(r,t):null;o&&(e.url=Hn(o));return}if(e.type==="linkReference"||e.type==="code"||e.type==="definition"||e.type==="html")return;const n=[];for(const r of e.children){if(r.type==="inlineCode"&&typeof r.value=="string"){const o=Un(r.value),u=o?zt(o,t):null;if(u){n.push(Uu(u));continue}}Wn(r,t),n.push(r)}e.children=n}i(Wn,"rewriteMarkdownTree");function Wu(e){return i(function(){return n=>{Wn(n,e)}},"remarkWorkspaceFileRefs")}i(Wu,"createRemarkWorkspaceFileRefs");function Ku(e){return typeof e=="object"&&e!==null&&Array.isArray(e.children)}i(Ku,"isParentNode");function Vu(e){const t=e.split(`
|
|
14
|
+
`:" ")+u.indentLines(u.containerFlow(r,a.current()),t?bn:Bl))),p(),s}i(n,"footnoteDefinition")}i(Il,"gfmFootnoteToMarkdown");function Bl(e,t,n){return t===0?e:bn(e,t,n)}i(Bl,"mapExceptFirst");function bn(e,t,n){return(n?"":" ")+e}i(bn,"mapAll");function Pl(){return[ul(),Sl(),Fr(),Ir(),br()]}i(Pl,"gfmFromMarkdown");function Ll(e){return{extensions:[al(),Il(e),wr(),Lr(e),xr()]}}i(Ll,"gfmToMarkdown");var Rl={tokenize:Ml,partial:!0},vn={tokenize:zl,partial:!0},xn={tokenize:Ul,partial:!0},Sn={tokenize:$l,partial:!0},jl={tokenize:Hl,partial:!0},In={name:"wwwAutolink",tokenize:Nl,previous:Pn},Bn={name:"protocolAutolink",tokenize:Ol,previous:Ln},X={name:"emailAutolink",tokenize:Tl,previous:Rn},V={};function _l(){return{text:V}}i(_l,"gfmAutolinkLiteral");var Z=48;for(;Z<123;)V[Z]=X,Z++,Z===58?Z=65:Z===91&&(Z=97);V[43]=X;V[45]=X;V[46]=X;V[95]=X;V[72]=[X,Bn];V[104]=[X,Bn];V[87]=[X,In];V[119]=[X,In];function Tl(e,t,n){const r=this;let o,u;return l;function l(c){return!Ge(c)||!Rn.call(r,r.previous)||ct(r.events)?n(c):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(c))}function a(c){return Ge(c)?(e.consume(c),a):c===64?(e.consume(c),s):n(c)}function s(c){return c===46?e.check(jl,f,p)(c):c===45||c===95||se(c)?(u=!0,e.consume(c),s):f(c)}function p(c){return e.consume(c),o=!0,s}function f(c){return u&&o&&ae(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(c)):n(c)}}i(Tl,"tokenizeEmailAutolink");function Nl(e,t,n){const r=this;return o;function o(l){return l!==87&&l!==119||!Pn.call(r,r.previous)||ct(r.events)?n(l):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Rl,e.attempt(vn,e.attempt(xn,u),n),n)(l))}function u(l){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(l)}}i(Nl,"tokenizeWwwAutolink");function Ol(e,t,n){const r=this;let o="",u=!1;return l;function l(c){return(c===72||c===104)&&Ln.call(r,r.previous)&&!ct(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),o+=String.fromCodePoint(c),e.consume(c),a):n(c)}function a(c){if(ae(c)&&o.length<5)return o+=String.fromCodePoint(c),e.consume(c),a;if(c===58){const d=o.toLowerCase();if(d==="http"||d==="https")return e.consume(c),s}return n(c)}function s(c){return c===47?(e.consume(c),u?p:(u=!0,s)):n(c)}function p(c){return c===null||kr(c)||K(c)||re(c)||tt(c)?n(c):e.attempt(vn,e.attempt(xn,f),n)(c)}function f(c){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(c)}}i(Ol,"tokenizeProtocolAutolink");function Ml(e,t,n){let r=0;return o;function o(l){return(l===87||l===119)&&r<3?(r++,e.consume(l),o):l===46&&r===3?(e.consume(l),u):n(l)}function u(l){return l===null?n(l):t(l)}}i(Ml,"tokenizeWwwPrefix");function zl(e,t,n){let r,o,u;return l;function l(p){return p===46||p===95?e.check(Sn,s,a)(p):p===null||K(p)||re(p)||p!==45&&tt(p)?s(p):(u=!0,e.consume(p),l)}function a(p){return p===95?r=!0:(o=r,r=void 0),e.consume(p),l}function s(p){return o||r||!u?n(p):t(p)}}i(zl,"tokenizeDomain");function Ul(e,t){let n=0,r=0;return o;function o(l){return l===40?(n++,e.consume(l),o):l===41&&r<n?u(l):l===33||l===34||l===38||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===60||l===63||l===93||l===95||l===126?e.check(Sn,t,u)(l):l===null||K(l)||re(l)?t(l):(e.consume(l),o)}function u(l){return l===41&&r++,e.consume(l),o}}i(Ul,"tokenizePath");function $l(e,t,n){return r;function r(a){return a===33||a===34||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===63||a===95||a===126?(e.consume(a),r):a===38?(e.consume(a),u):a===93?(e.consume(a),o):a===60||a===null||K(a)||re(a)?t(a):n(a)}function o(a){return a===null||a===40||a===91||K(a)||re(a)?t(a):r(a)}function u(a){return ae(a)?l(a):n(a)}function l(a){return a===59?(e.consume(a),r):ae(a)?(e.consume(a),l):n(a)}}i($l,"tokenizeTrail");function Hl(e,t,n){return r;function r(u){return e.consume(u),o}function o(u){return se(u)?n(u):t(u)}}i(Hl,"tokenizeEmailDomainDotTrail");function Pn(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||K(e)}i(Pn,"previousWww");function Ln(e){return!ae(e)}i(Ln,"previousProtocol");function Rn(e){return!(e===47||Ge(e))}i(Rn,"previousEmail");function Ge(e){return e===43||e===45||e===46||e===95||se(e)}i(Ge,"gfmAtext");function ct(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}i(ct,"previousUnbalanced");var Wl={tokenize:Jl,partial:!0};function Kl(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Gl,continuation:{tokenize:Yl},exit:Zl}},text:{91:{name:"gfmFootnoteCall",tokenize:Xl},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Vl,resolveTo:ql}}}}i(Kl,"gfmFootnote");function Vl(e,t,n){const r=this;let o=r.events.length;const u=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l;for(;o--;){const s=r.events[o][1];if(s.type==="labelImage"){l=s;break}if(s.type==="gfmFootnoteCall"||s.type==="labelLink"||s.type==="label"||s.type==="image"||s.type==="link")break}return a;function a(s){if(!l||!l._balanced)return n(s);const p=fe(r.sliceSerialize({start:l.end,end:r.now()}));return p.codePointAt(0)!==94||!u.includes(p.slice(1))?n(s):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),t(s))}}i(Vl,"tokenizePotentialGfmFootnoteCall");function ql(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;const u={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},e[e.length-1][1].start)},l={type:"chunkString",contentType:"string",start:Object.assign({},u.start),end:Object.assign({},u.end)},a=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",o,t],["exit",o,t],["enter",u,t],["enter",l,t],["exit",l,t],["exit",u,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...a),e}i(ql,"resolveToPotentialGfmFootnoteCall");function Xl(e,t,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let u=0,l;return a;function a(c){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),s}function s(c){return c!==94?n(c):(e.enter("gfmFootnoteCallMarker"),e.consume(c),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",p)}function p(c){if(u>999||c===93&&!l||c===null||c===91||K(c))return n(c);if(c===93){e.exit("chunkString");const d=e.exit("gfmFootnoteCallString");return o.includes(fe(r.sliceSerialize(d)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(c)}return K(c)||(l=!0),u++,e.consume(c),c===92?f:p}function f(c){return c===91||c===92||c===93?(e.consume(c),u++,p):p(c)}}i(Xl,"tokenizeGfmFootnoteCall");function Gl(e,t,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let u,l=0,a;return s;function s(g){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),p}function p(g){return g===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",f):n(g)}function f(g){if(l>999||g===93&&!a||g===null||g===91||K(g))return n(g);if(g===93){e.exit("chunkString");const F=e.exit("gfmFootnoteDefinitionLabelString");return u=fe(r.sliceSerialize(F)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return K(g)||(a=!0),l++,e.consume(g),g===92?c:f}function c(g){return g===91||g===92||g===93?(e.consume(g),l++,f):f(g)}function d(g){return g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),o.includes(u)||o.push(u),Gt(e,h,"gfmFootnoteDefinitionWhitespace")):n(g)}function h(g){return t(g)}}i(Gl,"tokenizeDefinitionStart");function Yl(e,t,n){return e.check(Sr,t,e.attempt(Wl,t,n))}i(Yl,"tokenizeDefinitionContinuation");function Zl(e){e.exit("gfmFootnoteDefinition")}i(Zl,"gfmFootnoteDefinitionEnd");function Jl(e,t,n){const r=this;return Gt(e,o,"gfmFootnoteDefinitionIndent",5);function o(u){const l=r.events[r.events.length-1];return l&&l[1].type==="gfmFootnoteDefinitionIndent"&&l[2].sliceSerialize(l[1],!0).length===4?t(u):n(u)}}i(Jl,"tokenizeIndent");function Ql(e){return Er([_l(),Kl(),Rr(e),Ar(),Pr()])}i(Ql,"gfm");var eu={};function tu(e){const t=this,n=e||eu,r=t.data(),o=r.micromarkExtensions||(r.micromarkExtensions=[]),u=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),l=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);o.push(Ql(n)),u.push(Pl()),l.push(Ll(n))}i(tu,"remarkGfm");var nu=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g,ru=Object.hasOwnProperty,ou=class{static{i(this,"BananaSlug")}constructor(){this.occurrences,this.reset()}slug(e,t){const n=this;let r=iu(e,t===!0);const o=r;for(;ru.call(n.occurrences,r);)n.occurrences[o]++,r=o+"-"+n.occurrences[o];return n.occurrences[r]=0,r}reset(){this.occurrences=Object.create(null)}};function iu(e,t){return typeof e!="string"?"":(t||(e=e.toLowerCase()),e.replace(nu,"").replace(/ /g,"-"))}i(iu,"slug");function lu(e){const t=e.type==="element"?e.tagName.toLowerCase():"",n=t.length===2&&t.charCodeAt(0)===104?t.charCodeAt(1):0;return n>48&&n<55?n-48:void 0}i(lu,"headingRank");function uu(e){return"children"in e?jn(e):"value"in e?e.value:""}i(uu,"toString");function au(e){return e.type==="text"?e.value:"children"in e?jn(e):""}i(au,"one");function jn(e){let t=-1;const n=[];for(;++t<e.children.length;)n[t]=au(e.children[t]);return n.join("")}i(jn,"all");var su={},Nt=new ou;function cu(e){const t=(e||su).prefix||"";return function(n){Nt.reset(),rt(n,"element",function(r){lu(r)&&!r.properties.id&&(r.properties.id=t+Nt.slug(uu(r)))})}}i(cu,"rehypeSlug");function ss(e){return typeof e=="object"&&e!==null&&e.locked===!0}i(ss,"isLockedIssueStub");function pu({identifier:e,className:t,unavailable:n=!1}){const r=e??(n?"Unavailable":"Private"),o=n?Kr:dr;return(0,D.jsxs)("span",{"data-testid":"locked-issue-chip","aria-label":`${r} — ${n?"unavailable or you don't have access":"private, you don't have access"}`,className:$("inline-flex shrink-0 select-none items-center gap-1 rounded-md border border-dashed border-border px-1.5 py-0.5","font-mono text-(length:--text-nano) leading-tight text-muted-foreground sm:text-(length:--text-micro)",t),children:[(0,D.jsx)(o,{className:"h-3 w-3 shrink-0","aria-hidden":"true"}),(0,D.jsx)("span",{className:"truncate",children:r})]})}i(pu,"LockedIssueChip");var fu=3e5;var du="200px",hu=new Set(["issue.updated","issue.checked_out","issue.released","issue.admin_force_release","issue.reassigned","issue.status_decision_recorded","issue.stalled_review_decided","issue.execution_recovery_settled","issue.tree_cancel_status_updated","issue.tree_restore_status_updated"]);function oe(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}i(oe,"isRecord");function J(e){return typeof e=="string"&&e.length>0?e:null}i(J,"readString");function _n(e){const t=Dr(e);if(t)return t;const n=e.trim();return ur(n)?n.toLowerCase():null}i(_n,"normalizeIssueRef");function Tn(e,t){return e.id.toLowerCase()===t||e.identifier?.toUpperCase()===t}i(Tn,"matchesIssueRef");function mu(e){if(!oe(e))return null;const t=J(e.id),n=J(e.status);if(!t||!n)return null;const r=J(e.identifier);return{id:t,identifier:r,title:typeof e.title=="string"?e.title:r??t,status:n}}i(mu,"toIssueRef");function gu(e){return Array.isArray(e)?e:oe(e)&&Array.isArray(e.pages)?e.pages.flatMap(t=>Array.isArray(t)?t:[]):[]}i(gu,"issueListRows");function Du(e,t,n){let r;const o=i((l,a)=>{const s=mu(l);!s||!Tn(s,n)||oe(l)&&typeof l.companyId=="string"&&l.companyId!==t||(!r||a>r.updatedAt)&&(r={ref:s,updatedAt:a})},"consider"),u=e.getQueryCache();for(const l of u.findAll({queryKey:["issues","detail"]}))o(l.state.data,l.state.dataUpdatedAt);for(const l of u.findAll({queryKey:ee.issues.list(t)}))for(const a of gu(l.state.data))o(a,l.state.dataUpdatedAt);return r}i(Du,"readCachedIssueRef");function yu(){const e=new Map;let t=null;const n=i((o,u,l)=>{const a=new Map;for(const s of l)a.set(s.id.toLowerCase(),s),s.identifier&&a.set(s.identifier.toUpperCase(),s);for(const s of u)for(const p of o.get(s)??[])p.resolve(a.get(s)??null)},"settle"),r=i(()=>{t=null;const o=Array.from(e);e.clear();for(const[u,l]of o){const a=Array.from(l.keys());for(let s=0;s<a.length;s+=100){const p=a.slice(s,s+100);Xt.refs(u,p).then(f=>n(l,p,f),f=>{for(const c of p)for(const d of l.get(c)??[])d.reject(f)})}}},"flush");return(o,u)=>new Promise((l,a)=>{let s=e.get(o);s||(s=new Map,e.set(o,s));const p=s.get(u);p?p.push({resolve:l,reject:a}):s.set(u,[{resolve:l,reject:a}]),t??=setTimeout(r,30)})}i(yu,"createIssueRefBatcher");var Ot=new WeakMap;function Fu(e,t,n){let r=Ot.get(e);return r||(r=yu(),Ot.set(e,r)),r(t,n)}i(Fu,"loadIssueRef");function wu(e){const t=oe(e?.changes)?e.changes:null,n={};for(const r of["status","title"]){const o=t?.[r];!oe(o)||o.updated===!0||typeof o.to!="string"||(r==="status"?n.status=o.to:n.title=o.to)}return n}i(wu,"readIssueRefPatch");function cs(e,t,n){if(n.entityType!=="issue")return;const r=J(n.entityId);if(!r)return;const o=oe(n.details)?n.details:null,u=new Set([r,J(o?.identifier),J(o?.issueIdentifier)].flatMap(p=>p?[_n(p)]:[]).filter(p=>p!==null));if(u.size===0)return;const l=e.getQueryCache().findAll({queryKey:ee.issues.refs(t)}).filter(p=>{const f=p.state.data;return u.has(String(p.queryKey[3]))?!0:!!f&&Array.from(u).some(c=>Tn(f,c))});if(l.length===0)return;const a=wu(o);if(Object.keys(a).length>0){for(const p of l){const f=p.state.data;f&&e.setQueryData(p.queryKey,{...f,...a})}return}const s=J(n.action);if(!(!s||!hu.has(s)))for(const p of l)e.invalidateQueries({queryKey:p.queryKey,exact:!0,refetchType:"active"})}i(cs,"applyIssueRefActivity");var we=null;function Cu(e){if(we?.ctor===e)return we;const t=new Map,n=new e(r=>{for(const o of r){if(!o.isIntersecting)continue;const u=t.get(o.target);u&&(t.delete(o.target),n.unobserve(o.target),u())}},{rootMargin:du});return we={ctor:e,observer:n,callbacks:t},we}i(Cu,"getNearViewportRegistry");function ku(e,t){const n=globalThis.IntersectionObserver;if(typeof n!="function")return t(),()=>{};const r=Cu(n);return r.callbacks.set(e,t),r.observer.observe(e),()=>{r.callbacks.get(e)===t&&(r.callbacks.delete(e),r.observer.unobserve(e))}}i(ku,"observeNearViewport");function Eu(e){const t=Qe(),n=Ze()?.selectedCompanyId??null,r=(0,y.useMemo)(()=>_n(e),[e]),[o,u]=(0,y.useState)(null),[l,a]=(0,y.useState)(!1),s=!!(n&&r),p=(0,y.useRef)(null),f=i(()=>{if(!n||!r)return;const d=`${n}:${r}`;return p.current?.key!==d&&(p.current={key:d,value:Du(t,n,r)}),p.current.value},"readSeed");(0,y.useEffect)(()=>{if(!(!s||l||!o))return ku(o,()=>a(!0))},[s,l,o]);const c=Je({queryKey:ee.issues.ref(n??"",r??e),queryFn:i(()=>Fu(t,n,r),"queryFn"),enabled:s&&l,staleTime:fu,initialData:i(()=>f()?.ref,"initialData"),initialDataUpdatedAt:i(()=>f()?.updatedAt,"initialDataUpdatedAt")});return{issueRef:c.data??null,updatedAt:c.dataUpdatedAt,observe:u}}i(Eu,"useIssueRefStatus");var Au=/^[A-Z][A-Z0-9]*-C\d+$/i,bu=/\b[A-Z][A-Z0-9]*-C\d+\b/gi;function Nn(e,t){if(!e)return null;const n=e.trim();if(!Au.test(n))return null;const r=n.toUpperCase();if(t&&t.size>0){const o=r.split("-")[0];if(!o||!t.has(o))return null}return{identifier:r,href:`/cases/${encodeURIComponent(r)}`}}i(Nn,"parseCaseReferenceFromHref");function On(e,t,n="text"){return{type:"link",url:t,children:[{type:n,value:e}]}}i(On,"createCaseLinkNode");function vu(e,t){const n=[];let r=0,o=!1;for(const u of e.matchAll(bu)){const l=u[0];if(!l)continue;const a=Nn(l,t);if(!a)continue;const s=u.index??0;o=!0,s>r&&n.push({type:"text",value:e.slice(r,s)}),n.push(On(l,a.href)),r=s+l.length}return o?(r<e.length&&n.push({type:"text",value:e.slice(r)}),n):null}i(vu,"linkifyCaseReferencesInText");function Mn(e,t){if(!Array.isArray(e.children)||e.children.length===0||e.type==="link"||e.type==="linkReference"||e.type==="code"||e.type==="definition"||e.type==="html")return;const n=[];for(const r of e.children){if(r.type==="inlineCode"&&typeof r.value=="string"){const o=Nn(r.value,t);if(o){n.push(On(r.value,o.href,"inlineCode"));continue}}if(r.type==="text"&&typeof r.value=="string"){const o=vu(r.value,t);if(o){n.push(...o);continue}}Mn(r,t),n.push(r)}e.children=n}i(Mn,"rewriteMarkdownTree$2");function xu(e){const t=e?.knownPrefixes&&e.knownPrefixes.length>0?new Set(e.knownPrefixes.map(n=>n.toUpperCase())):void 0;return n=>{Mn(n,t)}}i(xu,"remarkLinkCaseReferences");var Su=new Set(["link","linkReference","code","inlineCode","definition","html"]),Iu=/[\p{L}\p{N}_]/u,Bu=/[\s\p{P}]/u;function Pu(e){if(!e?.length)return null;const t=new Map;for(const r of e){if(!r.name?.trim())continue;const o=r.status!=="terminated"&&!t.has(r.name);t.set(r.name,o?r.id:null)}const n=[...t.entries()];return n.some(([,r])=>r)?n.sort(([r],[o])=>o.length-r.length||(r<o?-1:r>o?1:0)):null}i(Pu,"buildAgentNameMentionIndex");function Lu(e,t,n){for(const r of n){const o=r[0];if(!e.startsWith(o,t))continue;const u=t+o.length;if(!(u<e.length&&!Bu.test(e[u])))return r}return null}i(Lu,"matchAgentNameAt");function Ru(e,t){const n=[];let r=0,o=e.indexOf("@");for(;o!==-1;){let u=o+1;if(o===0||!Iu.test(e[o-1])){const l=Lu(e,o+1,t);l&&(u=o+1+l[0].length,l[1]&&(o>r&&n.push({type:"text",value:e.slice(r,o)}),n.push({type:"link",url:vr(l[1]),children:[{type:"text",value:`@${l[0]}`}]}),r=u))}o=e.indexOf("@",u)}return r===0?null:(r<e.length&&n.push({type:"text",value:e.slice(r)}),n)}i(Ru,"linkifyAgentNamesInText");function zn(e,t){if(!Array.isArray(e.children)||e.children.length===0||Su.has(e.type))return;const n=[];for(const r of e.children){if(r.type==="text"&&typeof r.value=="string"&&r.value.includes("@")){const o=Ru(r.value,t);if(o){n.push(...o);continue}}zn(r,t),n.push(r)}e.children=n}i(zn,"rewriteMarkdownTree$1");function ju(e){return t=>{zn(t,e.index)}}i(ju,"remarkLinkAgentNameMentions");var _u=/^([A-Za-z0-9_.\-+][A-Za-z0-9_./\-+]*\.[A-Za-z0-9_+\-]{1,10})(?::([1-9]\d*)(?::([1-9]\d*))?|#L([1-9]\d*)(?:C([1-9]\d*))?)?$/,Tu=/^([A-Za-z0-9_.\-+][A-Za-z0-9_./\-+]+\/[A-Za-z0-9_.\-+]+)(?::([1-9]\d*)(?::([1-9]\d*))?|#L([1-9]\d*)(?:C([1-9]\d*))?)?$/,Nu=/^([A-Za-z0-9_.\-+][A-Za-z0-9_./\-+]*\/)$/,Ou=["/","./","../","~/"];function Ce(e){if(!e)return null;const t=Number.parseInt(e,10);return!Number.isFinite(t)||t<=0?null:t}i(Ce,"toPositiveInt");function Mt(e,t){if(!e||e.length>512||e.includes("\\")||e.includes("\0")||e.startsWith("/")||e.startsWith("~")||/^[A-Za-z]:/.test(e)||e.includes("//")||Ou.some(o=>e===o.slice(0,-1)))return!1;const n=t.allowTrailingSlash&&e.endsWith("/")?e.slice(0,-1):e;if(!n||/^\.+$/.test(n))return!1;const r=n.split("/");for(const o of r)if(o===""||o==="."||o==="..")return!1;return!0}i(Mt,"looksLikeWorkspacePath");function Un(e){if(typeof e!="string")return null;const t=e.trim();if(!t)return null;const n=t.match(Nu);if(n){const[,c]=n;return!c||!Mt(c,{allowTrailingSlash:!0})||!c.slice(0,-1).includes("/")?null:{path:c,resourceKind:"directory",line:null,column:null,raw:t}}const r=t.match(_u)??t.match(Tu);if(!r)return null;const[,o,u,l,a,s]=r;if(!o||!Mt(o,{allowTrailingSlash:!1}))return null;const p=Ce(u)??Ce(a),f=Ce(l)??Ce(s);return!o.includes("/")&&p===null?null:{path:o,resourceKind:"file",line:p,column:f,raw:t}}i(Un,"parseWorkspaceFileRef");function Mu(e){const t=e.line&&e.column?`${e.path}:${e.line}:${e.column}`:e.line?`${e.path}:${e.line}`:e.path;return e.projectName?`${e.projectName} / ${t}`:t}i(Mu,"formatWorkspaceFileRefDisplay");var $n="workspace-file:";function Hn(e){const t=new URLSearchParams;return e.projectId&&t.set("projectId",e.projectId),e.workspaceId&&t.set("workspaceId",e.workspaceId),e.workspace&&e.workspace!=="auto"&&t.set("workspace",e.workspace),e.resourceKind==="directory"&&t.set("kind","directory"),t.set("path",e.path),e.line!==null&&t.set("line",String(e.line)),e.column!==null&&t.set("column",String(e.column)),e.projectName&&t.set("projectName",e.projectName),`${$n}?${t.toString()}`}i(Hn,"buildWorkspaceFileHref");function zu(e){if(!e||typeof e!="string"||!e.startsWith($n))return null;const t=e.slice(15),n=t.startsWith("?")?t.slice(1):t,r=new URLSearchParams(n),o=r.get("path");if(!o)return null;const u=r.get("projectId"),l=r.get("workspaceId"),a=!!(u&&l),s=r.get("projectName"),p=r.get("workspace"),f=p==="execution"||p==="project"?p:"auto",c=r.get("kind"),d=r.get("line"),h=r.get("column"),g=d?Number.parseInt(d,10):NaN,F=h?Number.parseInt(h,10):NaN;return{path:o,resourceKind:c==="directory"||o.endsWith("/")?"directory":"file",line:Number.isFinite(g)&&g>0?g:null,column:Number.isFinite(F)&&F>0?F:null,projectId:a?u:null,workspaceId:a?l:null,projectName:s||null,workspace:f,raw:o}}i(zu,"parseWorkspaceFileHref");function Uu(e){return{type:"link",url:Hn(e),children:[{type:"inlineCode",value:e.raw}]}}i(Uu,"createWorkspaceFileLinkNode");function $u(e){if(!Array.isArray(e.children)||e.children.length!==1)return null;const[t]=e.children;return t?.type!=="inlineCode"||typeof t.value!="string"?null:Un(t.value)}i($u,"parseSingleInlineCodeFileRef");function Hu(e,t){return{...e,workspace:t.workspace,projectId:t.projectId??e.projectId??null,workspaceId:t.workspaceId??e.workspaceId??null,projectName:e.projectName??null}}i(Hu,"applyResolvedTarget");function zt(e,t){const n=t(e);return n?Hu(e,n):null}i(zt,"openableRef");function Wn(e,t){if(!Array.isArray(e.children)||e.children.length===0)return;if(e.type==="link"){const r=$u(e),o=r?zt(r,t):null;o&&(e.url=Hn(o));return}if(e.type==="linkReference"||e.type==="code"||e.type==="definition"||e.type==="html")return;const n=[];for(const r of e.children){if(r.type==="inlineCode"&&typeof r.value=="string"){const o=Un(r.value),u=o?zt(o,t):null;if(u){n.push(Uu(u));continue}}Wn(r,t),n.push(r)}e.children=n}i(Wn,"rewriteMarkdownTree");function Wu(e){return i(function(){return n=>{Wn(n,e)}},"remarkWorkspaceFileRefs")}i(Wu,"createRemarkWorkspaceFileRefs");function Ku(e){return typeof e=="object"&&e!==null&&Array.isArray(e.children)}i(Ku,"isParentNode");function Vu(e){const t=e.split(`
|
|
15
15
|
`),n=[];for(let r=0;r<t.length;r+=1){const o=t[r];o.length>0&&n.push({type:"text",value:o}),r<t.length-1&&n.push({type:"break"})}return n.length>0?n:[{type:"text",value:""}]}i(Vu,"buildSoftBreakReplacement");function Kn(e){if(Ku(e))for(let t=0;t<e.children.length;t+=1){const n=e.children[t];if(n?.type==="text"&&typeof n.value=="string"&&n.value.includes(`
|
|
16
|
-
`)){const r=Vu(n.value);e.children.splice(t,1,...r),t+=r.length-1;continue}Kn(n)}}i(Kn,"transformNode");function qu(){return e=>{Kn(e)}}i(qu,"remarkSoftBreaks");function ke(e){const t=new URLSearchParams;return e.projectId&&e.workspaceId&&(t.set("projectId",e.projectId),t.set("workspaceId",e.workspaceId)),"path"in e&&e.path&&t.set("path",e.path),e.workspace&&e.workspace!=="auto"&&t.set("workspace",e.workspace),"mode"in e&&e.mode&&e.mode!=="all"&&t.set("mode",e.mode),"q"in e&&e.q&&t.set("q",e.q),"limit"in e&&e.limit&&t.set("limit",String(e.limit)),"offset"in e&&e.offset&&t.set("offset",String(e.offset)),t.toString()}i(ke,"buildQuery");function Xu(e,t){const n=new URLSearchParams(ke(t));return n.set("download","1"),`/api/issues/${encodeURIComponent(e)}/file-resources/content?${n.toString()}`}i(Xu,"buildFileResourceDownloadUrl");var Gu={list(e,t={},n){const r=ke(t),o=r?`?${r}`:"";return ge.get(`/issues/${encodeURIComponent(e)}/file-resources/list${o}`,n)},availability(e,t){return ge.post(`/issues/${encodeURIComponent(e)}/file-resources/availability`,{queries:t.map(n=>({path:n.path,...n.workspace&&n.workspace!=="auto"?{workspace:n.workspace}:{},...n.projectId&&n.workspaceId?{projectId:n.projectId,workspaceId:n.workspaceId}:{}}))})},resolve(e,t){return ge.get(`/issues/${encodeURIComponent(e)}/file-resources/resolve?${ke(t)}`)},content(e,t){return ge.get(`/issues/${encodeURIComponent(e)}/file-resources/content?${ke(t)}`)},downloadUrl:Xu};var Yu=3e4,Zu={state:"pending"};function ps(e){return{path:e.path,workspace:e.workspace??"auto",projectId:e.projectId??null,workspaceId:e.workspaceId??null}}i(ps,"workspaceFileAvailabilityRef");function Ut(e){return JSON.stringify([e.workspace,e.projectId,e.workspaceId,e.path])}i(Ut,"workspaceFileAvailabilityKey");function Ju(e,t=100){if(e.length<=t)return e.length>0?[e]:[];const n=[];for(let r=0;r<e.length;r+=t)n.push(e.slice(r,r+t));return n}i(Ju,"chunkWorkspaceFileAvailabilityRefs");function Qu(e){return e.workspaceKind==="project_workspace"&&e.projectId&&e.workspaceId?{workspace:"project",projectId:e.projectId,workspaceId:e.workspaceId,projectName:e.projectName??null}:{workspace:e.workspaceKind==="project_workspace"?"project":"execution",projectId:null,workspaceId:null,projectName:e.projectName??null}}i(Qu,"workspaceFileAvailabilityTarget");function ea(e){return!e.openable||!e.resource?{state:"unavailable",reason:e.unavailableReason??null}:{state:"openable",target:Qu(e.resource)}}i(ea,"workspaceFileAvailabilityFromResult");var ta=2;function na(e,t){return e[0]==="issues"&&e[1]==="file-resources"&&e[2]===t}i(na,"isFileResourceKeyForIssue");function ra(e){const t=Ze(),[n,r]=(0,y.useState)(0),o=(0,y.useRef)(new Map),u=(0,y.useRef)(new Map),l=(0,y.useRef)(new Set),a=(0,y.useRef)([]),s=(0,y.useRef)(0),p=(0,y.useRef)(null),f=(0,y.useRef)(!0),c=(0,y.useRef)(0),d=(0,y.useRef)(t);d.current=t;const h=(0,y.useRef)(e);h.current!==e&&(h.current=e,c.current+=1,p.current!==null&&(clearTimeout(p.current),p.current=null),o.current.clear(),u.current.clear(),l.current.clear(),a.current=[]);const g=(0,y.useCallback)(()=>{f.current&&r(v=>v+1)},[]),F=(0,y.useCallback)(async({chunk:v,issueId:x,generation:P})=>{const q=v.map(([M])=>M).sort();try{const M=await d.current.fetchQuery({queryKey:ee.issues.fileResourceAvailability(x,q),queryFn:i(()=>Gu.availability(x,v.map(([,L])=>L)),"queryFn"),staleTime:Yu});if(P!==c.current)return;const j=new Map(M.results.map(L=>[Ut(L.query),ea(L)]));for(const[L]of v)o.current.set(L,j.get(L)??{state:"unavailable",reason:"unmatched_reference"}),l.current.delete(L);g()}catch{if(P!==c.current)return;for(const[M]of v)l.current.delete(M)}},[g]),w=(0,y.useCallback)(()=>{for(;s.current<ta&&a.current.length>0;){const v=a.current.shift();s.current+=1,F(v).finally(()=>{s.current-=1,w()})}},[F]),E=(0,y.useCallback)(()=>{p.current=null;const v=[...u.current.entries()];u.current.clear();const x=v.filter(([P])=>!l.current.has(P)&&!o.current.has(P));if(x.length!==0){for(const[P]of x)l.current.add(P);a.current.push(...Ju(x).map(P=>({chunk:P,issueId:e,generation:c.current}))),w()}},[w,e]),C=(0,y.useCallback)(v=>{const x=Ut(v),P=o.current.get(x);return P||(!l.current.has(x)&&!u.current.has(x)&&(u.current.set(x,v),p.current===null&&(p.current=setTimeout(E,0))),Zu)},[E]);return(0,y.useEffect)(()=>(f.current=!0,u.current.size>0&&p.current===null&&(p.current=setTimeout(E,0)),()=>{f.current=!1,p.current!==null&&(clearTimeout(p.current),p.current=null)}),[E]),(0,y.useEffect)(()=>t.getQueryCache().subscribe(v=>{v.type!=="updated"||v.action.type!=="invalidate"||na(v.query.queryKey,e)&&o.current.size!==0&&(o.current.clear(),g())}),[g,e,t]),(0,y.useMemo)(()=>({version:n,check:C}),[n,C])}i(ra,"useWorkspaceFileAvailability");var pt=(0,y.createContext)(null),oa={replace:!1,preventScrollReset:!0};function Vn(e){return typeof window>"u"?e:window.location.search}i(Vn,"getCurrentFileViewerSearch");function ia(e,t){return e!==Vn(t)}i(ia,"shouldNavigateFileViewerSearch");function la(e){const t=new URLSearchParams(e),n=t.get("file");if(!n)return null;const r=t.get("line"),o=t.get("column"),u=t.get("workspace"),l=t.get("projectId"),a=t.get("workspaceId"),s=!!(l&&a),p=r?Number.parseInt(r,10):NaN,f=o?Number.parseInt(o,10):NaN,c=u==="execution"||u==="project"?u:"auto";return{path:n,line:Number.isFinite(p)&&p>0?p:null,column:Number.isFinite(f)&&f>0?f:null,workspace:c,projectId:s?l:null,workspaceId:s?a:null}}i(la,"readFileViewerStateFromSearch");function Ye(e,t){const n=new URLSearchParams(e);n.delete("browse"),n.delete("q"),n.delete("folder"),t?(n.set("file",t.path),t.line!==null?n.set("line",String(t.line)):n.delete("line"),t.column!==null?n.set("column",String(t.column)):n.delete("column"),t.workspace&&t.workspace!=="auto"?n.set("workspace",t.workspace):n.delete("workspace"),t.projectId?n.set("projectId",t.projectId):n.delete("projectId"),t.workspaceId?n.set("workspaceId",t.workspaceId):n.delete("workspaceId")):(n.delete("file"),n.delete("line"),n.delete("column"),n.delete("workspace"),n.delete("projectId"),n.delete("workspaceId"));const r=n.toString();return r?`?${r}`:""}i(Ye,"writeFileViewerStateToSearch");function ua(e){const t=new URLSearchParams(e);if(t.get("browse")!=="1")return null;const n=t.get("q"),r=t.get("folder"),o=t.get("projectId"),u=t.get("workspaceId");return{q:n&&n.length>0?n:null,folderPath:r&&r.length>0?r:null,projectId:o||null,workspaceId:u||null}}i(ua,"readBrowseStateFromSearch");function qn(e,t){const n=new URLSearchParams(e);n.delete("file"),n.delete("line"),n.delete("column"),n.delete("workspace"),n.delete("q"),n.set("browse","1"),n.set("folder",t.path),t.projectId?n.set("projectId",t.projectId):n.delete("projectId"),t.workspaceId?n.set("workspaceId",t.workspaceId):n.delete("workspaceId");const r=n.toString();return r?`?${r}`:""}i(qn,"writeFolderViewerStateToSearch");function aa(e,t){const n=new URLSearchParams(e);if(n.set("browse","1"),"q"in t){const o=t.q?.trim()??"";o?n.set("q",o):n.delete("q")}if("folderPath"in t){const o=t.folderPath?.trim()??"";o?n.set("folder",o):n.delete("folder")}"projectId"in t&&(t.projectId?n.set("projectId",t.projectId):n.delete("projectId")),"workspaceId"in t&&(t.workspaceId?n.set("workspaceId",t.workspaceId):n.delete("workspaceId"));const r=n.toString();return r?`?${r}`:""}i(aa,"writeBrowseStateToSearch");function fs({issueId:e,children:t,enabled:n=!0}){return n?(0,D.jsx)(sa,{issueId:e,children:t}):(0,D.jsx)(D.Fragment,{children:t})}i(fs,"FileViewerProvider");function sa({issueId:e,children:t}){const n=qt(),r=fr(),o=(0,y.useMemo)(()=>la(n.search),[n.search]),u=(0,y.useMemo)(()=>ua(n.search),[n.search]),l=ra(e),a=(0,y.useCallback)((F,w)=>{ia(F,n.search)&&r({pathname:n.pathname,hash:n.hash,search:F},{...oa,...w,state:n.state})},[n.hash,n.pathname,n.state,r]),s=(0,y.useCallback)((F,w)=>{let E=Ye(n.search,{path:F.path,line:F.line??null,column:F.column??null,workspace:F.workspace??"auto",projectId:F.projectId??null,workspaceId:F.workspaceId??null});if(w?.fromBrowse){const C=new URLSearchParams(E);C.set("browse","1");const v=new URLSearchParams(n.search),x=v.get("q"),P=v.get("folder"),q=Object.prototype.hasOwnProperty.call(w.browseState??{},"q")?w.browseState?.q:x,M=Object.prototype.hasOwnProperty.call(w.browseState??{},"folderPath")?w.browseState?.folderPath:P;q?C.set("q",q):C.delete("q"),M?C.set("folder",M):C.delete("folder"),E=C.toString()?`?${C.toString()}`:""}a(E)},[n.search,a]),p=(0,y.useCallback)(F=>{const w=new URLSearchParams(n.search);w.delete("file"),w.delete("line"),w.delete("column"),w.delete("folder"),w.set("browse","1"),typeof F?.q=="string"&&F.q.length>0?w.set("q",F.q):w.delete("q"),a(w.toString()?`?${w.toString()}`:"")},[n.search,a]),f=(0,y.useCallback)(F=>{a(aa(n.search,F),{replace:!0})},[n.search,a]),c=(0,y.useCallback)(F=>{const w=qn(n.search,{path:F.path,projectId:F.projectId??null,workspaceId:F.workspaceId??null});a(w)},[n.search,a]),d=(0,y.useCallback)(()=>{const F=new URLSearchParams(n.search);F.delete("file"),F.delete("line"),F.delete("column"),F.delete("workspace"),F.set("browse","1"),a(F.toString()?`?${F.toString()}`:"")},[n.search,a]),h=(0,y.useCallback)(()=>{const F=Vn(n.search),w=new URLSearchParams(Ye(F,null).replace(/^\?/,""));w.delete("browse"),w.delete("q"),w.delete("folder"),a(w.toString()?`?${w.toString()}`:"")},[n.search,a]),g=(0,y.useMemo)(()=>({issueId:e,availability:l,state:o,browse:u!==null,query:u?.q??null,browseProjectId:u?.projectId??null,browseWorkspaceId:u?.workspaceId??null,folderPath:u?.folderPath??null,open:s,openBrowse:p,updateBrowseState:f,openFolder:c,backToFiles:d,close:h}),[e,l,o,u,s,p,f,c,d,h]);return(0,D.jsx)(pt.Provider,{value:g,children:t})}i(sa,"EnabledFileViewerProvider");function ca(){return(0,y.useContext)(pt)}i(ca,"useFileViewer");function ds(){const e=(0,y.useContext)(pt);if(!e)throw new Error("useRequiredFileViewer must be used within a FileViewerProvider");return e}i(ds,"useRequiredFileViewer");function pa({workspaceFileRef:e,label:t,className:n,onOpen:r,showIcon:o=!0,title:u}){const l=ca(),a=qt(),s=typeof t<"u"?t:Mu(e),p=!!(r||l),f=e.resourceKind==="directory"||e.path.endsWith("/"),c=e.line?` line ${e.line}${e.column?` column ${e.column}`:""}`:"",d=p?`Open ${e.path}${c} in the ${f?"workspace browser":"file viewer"}`:`Workspace ${f?"folder":"file"} ${e.path}${c}`,h=u??(p?`Open ${e.path}${c} in the ${f?"workspace browser":"file viewer"}`:`Workspace ${f?"folder":"file"} ${e.path}${c}`),g=f?qn(a.search,{path:e.path,projectId:e.projectId??null,workspaceId:e.workspaceId??null}):Ye(a.search,{path:e.path,line:e.line??null,column:e.column??null,workspace:e.workspace??"auto",projectId:e.projectId??null,workspaceId:e.workspaceId??null}),F=p?`${a.pathname}${g}${a.hash}`:"#",w=i(E=>{E.metaKey||E.ctrlKey||E.shiftKey||E.altKey||E.button===0&&(E.preventDefault(),p&&(r?r(e):f?l?.openFolder(e):l?.open(e)))},"handleClick");return(0,D.jsxs)("a",{href:F,role:p?"button":void 0,"data-workspace-file-link":"true","data-workspace-file-path":e.path,"aria-label":d,title:h,className:$("paperclip-workspace-file-link inline-flex items-center gap-1 rounded-sm border border-border bg-muted/60 px-1.5 py-0.5 font-mono text-xs leading-tight text-foreground/90 align-middle no-underline hover:bg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1",n),onClick:w,children:[o?f?(0,D.jsx)(Ur,{"aria-hidden":"true",className:"h-3 w-3 shrink-0 opacity-70"}):(0,D.jsx)(qr,{"aria-hidden":"true",className:"h-3 w-3 shrink-0 opacity-70"}):null,(0,D.jsx)("span",{className:"max-w-full whitespace-normal break-all text-left",children:s})]})}i(pa,"WorkspaceFileLink");var Xn=(0,y.createContext)(new Map),Gn=/^\/api\/(?:attachments\/[^/?#]+|assets\/[^/?#]+|public\/share\/[^/?#]+\/assets\/[^/?#]+)\/content\/?$/,fa="X-Paperclip-Purged-At",ze=new Map;function xe(e){const t=typeof window<"u"&&window.location?window.location.origin:"http://localhost";try{const n=new URL(e,t);return n.origin!==t?null:n.pathname}catch{return null}}i(xe,"sameOriginPath");function Ae(e){if(!e)return!1;const t=xe(e);return t!==null&&Gn.test(t)}i(Ae,"isPurgeableContentPath");function da(e){if(!e)return null;const t=e instanceof Date?e:new Date(e);return Number.isNaN(t.getTime())?null:t.toISOString().slice(0,10)}i(da,"purgedDateLabel");function ha(e){const t=da(e);return t?`File removed by retention (${t})`:"File removed by retention"}i(ha,"purgedFileText");function Yn(e){const t=xe(e);if(!t||!Gn.test(t))return Promise.resolve(null);const n=ze.get(t);if(n)return n;const r=fetch(t,{method:"HEAD",credentials:"include",cache:"no-store"}).then(o=>o.status===410?{purgedAt:o.headers.get(fa)}:null).catch(()=>null);return ze.set(t,r),r.then(o=>{o===null&&ze.delete(t)}),r}i(Yn,"probePurgedContent");function hs(e){const t=new Map;for(const n of e){if(!n.purgedAt||!n.contentPath)continue;const r=xe(n.contentPath);if(!r)continue;const o=n.purgedAt instanceof Date?n.purgedAt.toISOString():String(n.purgedAt);t.set(r,o)}return t}i(hs,"purgedContentPaths");function Zn(e,t){if(!t||e.size===0)return null;const n=xe(t);return n?e.get(n)??null:null}i(Zn,"lookupPurgedPath");function be({purgedAt:e,className:t}){return(0,D.jsx)("span",{"data-purged-file":"",className:$("inline-flex max-w-full rounded-md border border-border bg-muted px-2 py-1 text-xs text-muted-foreground",t),children:ha(e)})}i(be,"PurgedFileNotice");function ma({src:e,onError:t,...n}){const r=(0,y.useContext)(Xn),o=Zn(r,e),[u,l]=(0,y.useState)(null);return(0,y.useEffect)(()=>{l(null)},[e]),o?(0,D.jsx)(be,{purgedAt:o}):u?(0,D.jsx)(be,{purgedAt:u.purgedAt}):(0,D.jsx)("img",{src:e,...n,onError:i(a=>{t?.(a),Ae(e)&&Yn(e).then(s=>{s&&l(s)})},"onError")})}i(ma,"RetentionAwareImage");function ga(e){return e.button===0&&!e.metaKey&&!e.ctrlKey&&!e.shiftKey&&!e.altKey}i(ga,"isPlainLeftClick");function Da({href:e,onClick:t,children:n,...r}){const o=(0,y.useContext)(Xn),u=Zn(o,e),[l,a]=(0,y.useState)(null);return(0,y.useEffect)(()=>{a(null)},[e]),u?(0,D.jsx)(be,{purgedAt:u}):l?(0,D.jsx)(be,{purgedAt:l.purgedAt}):(0,D.jsx)("a",{...r,href:e,onClick:i(s=>{if(t?.(s),s.defaultPrevented||!e||!ga(s)||!Ae(e))return;s.preventDefault();const p=r.target==="_blank"?window.open("about:blank","_blank"):null;p&&(p.opener=null),Yn(e).then(f=>{if(f){p?.close(),a(f);return}p?p.location.href=e:r.target==="_blank"?window.open(e,"_blank","noopener,noreferrer"):window.location.assign(e)})},"onClick"),children:n})}i(Da,"RetentionAwareLink");function ya({category:e,liveness:t,statusIconKey:n,label:r,className:o,sizeClassName:u="h-3.5 w-3.5",inline:l=!1}){const a=$r(),s=jr(n)??Tr(e),p=n==="git-merge"?"text-violet-600 border-violet-600 dark:text-violet-400 dark:border-violet-400":sr[e]??"text-muted-foreground border-muted-foreground",f=t==="fresh"||t==="unknown"?"":` (${Jt(t)})`,c=`${r??Qt(e)}${f}`,d=l?"relative mr-1 inline-flex shrink-0 align-(--va-0_125em)":"relative inline-flex shrink-0",h=l?"h-3 w-3":u,g=e==="running"&&!a?"animate-spin":"";return(0,D.jsxs)("span",{role:"img","aria-label":c,className:$(d,o),children:[(0,D.jsx)(s,{"aria-hidden":"true",className:$(h,p.split(" ").filter(F=>F.startsWith("text-")).join(" "),g)}),t==="stale"?(0,D.jsx)(Hr,{"aria-hidden":"true",className:$("absolute -bottom-0.5 -right-0.5 h-2 w-2 rounded-full bg-background text-muted-foreground",l?"":"p-px")}):null]})}i(ya,"ExternalObjectStatusIcon");var Fa=/^\/cases\/([A-Z][A-Z0-9]*-C\d+)$/i,wa=[cu];function Ca(e){if(!e)return null;const t=decodeURIComponent(e.trim()).match(Fa);return t?t[1].toUpperCase():null}i(Ca,"caseIdentifierFromHref");var ka=i(()=>()=>{},"noCacheSubscription");function Ea(e){const t=(0,y.useContext)(rr),n=e?ir(ee.agents.list(e)):null,r=(0,y.useMemo)(()=>t&&n?u=>t.getQueryCache().subscribe(u):ka,[t,n]),o=i(()=>t&&n?t.getQueryCache().get(n)?.state.data:void 0,"read");return(0,y.useSyncExternalStore)(r,o,o)}i(Ea,"useCachedCompanyAgents");function Aa({agentId:e,children:t,style:n}){const r=Qe()?.selectedCompanyId,{data:o}=Je({queryKey:ee.agents.list(r??"__none__"),queryFn:i(()=>gr.list(r),"queryFn"),enabled:!!r,staleTime:6e4}),u=o?.find(l=>l.id===e)?.appearance;return(0,D.jsx)("a",{href:`/agents/${e}`,className:"paperclip-mention-chip paperclip-mention-chip--agent","data-mention-kind":"agent",style:{...H(n),...Zt({kind:"agent",agentId:e,icon:null,appearance:u})},children:t})}i(Aa,"MarkdownAgentMention");var Ue=null;function ba({issuePathId:e,href:t,children:n}){const r=Ze(),[o,u]=(0,y.useState)(!1),{data:l,dataUpdatedAt:a,error:s}=Je({queryKey:ee.issues.detail(e),enabled:o,placeholderData:cr(r,e),queryFn:i(()=>Xt.get(e),"queryFn"),staleTime:6e4,retry:i((C,v)=>!(v instanceof gt&&v.status===404)&&C<3,"retry")}),{issueRef:p,updatedAt:f,observe:c}=Eu(e),d=l&&(!p||a>f)?l:p??l;if(s instanceof gt&&s.status===404)return(0,D.jsx)(pu,{identifier:e,unavailable:!0});const h=d?.identifier??e,g=d?.title??h,F=d?.status,w=g!==h?`Issue ${h}: ${g}`:`Issue ${h}`,E=!l;return(0,D.jsxs)(et,{ref:c,to:t,"data-mention-kind":"issue",disableIssueQuicklook:E,"data-mention-pending":E?"true":void 0,onPointerEnter:i(()=>u(!0),"onPointerEnter"),onFocus:i(()=>u(!0),"onFocus"),className:$("paperclip-markdown-issue-ref","font-normal underline"),title:g,"aria-label":w,children:[F?(0,D.jsx)(Nr,{status:F,size:"md",className:"relative -top-px mr-1 inline-block h-4 w-4 align-middle"}):null,n]})}i(ba,"MarkdownIssueLink");function va({identifier:e,children:t}){const n=pr();return(0,D.jsx)(et,{to:n(e),"data-mention-kind":"case",className:$("paperclip-markdown-case-ref","font-normal underline"),"aria-label":`Case ${e}`,children:t})}i(va,"MarkdownCaseLink");function xa({href:e,reference:t,children:n}){const r=Or(t.providerKey),o=t.displayKey?.trim()||r,u=t.statusLabel??Qt(t.statusCategory),l=Jt(t.liveness),a=t.liveness==="fresh"||t.liveness==="unknown"?"":` (${l})`,s=[t.displayTitle??`${o} ${u}`,`${o} — ${u}${a}`].filter(Boolean).join(" · ");return(0,D.jsxs)("a",{href:e,target:"_blank",rel:"noopener noreferrer","data-external-link":"resolved","data-external-status":t.statusCategory,"data-external-liveness":t.liveness,title:s,"aria-label":`${o} ${u}${a}: ${t.displayTitle??e}`,className:"paperclip-markdown-external-ref",children:[(0,D.jsx)(ya,{category:t.statusCategory,liveness:t.liveness,statusIconKey:t.statusIconKey,label:`${o}: ${u}`,inline:!0}),n]})}i(xa,"MarkdownExternalLink");function Sa(){return Ue||(Ue=ar(()=>import("./mermaid.core-Be3XJK9z.js").then(e=>e.default),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19]))),Ue}i(Sa,"loadMermaid");var Ia={overflowWrap:"anywhere",wordBreak:"break-word"},Ba={maxWidth:"100%",overflowX:"auto"},Pa={position:"absolute",top:"0.4rem",right:"0.4rem",display:"inline-flex",alignItems:"center",gap:"0.25rem"},Jn={position:"static",opacity:1,display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"0.25rem",minHeight:"1.55rem",padding:"0.2rem 0.4rem",borderRadius:"calc(var(--radius) - 4px)",border:"1px solid color-mix(in oklab, var(--foreground) 14%, transparent)",backgroundColor:"var(--background)",color:"var(--muted-foreground)",fontSize:"var(--text-micro)",lineHeight:1,cursor:"pointer"},$t={...Jn,width:"1.55rem",paddingInline:0},La={overflowWrap:"anywhere",wordBreak:"normal"};function Ra(e){return e.type==="html"&&typeof e.value=="string"&&/^<!--[\s\S]*-->$/.test(e.value.trim())}i(Ra,"isHtmlCommentNode");function ja(e){if(e.type!=="text"||typeof e.value!="string")return!1;const t=e.value.trim();return/^\\?<!--(?:\s*-{0,2}>?)?$/.test(t)||/^<!--(?:\s*-{0,2}(?:>)?)?$/.test(t)}i(ja,"isEscapedHtmlCommentPlaceholder");function _a(){return e=>{const t=i(n=>{const r=n.children;if(r){n.children=r.filter(o=>!Ra(o)&&!ja(o));for(const o of n.children)t(o)}},"visit");t(e)}}i(_a,"remarkDropHtmlComments");function H(e){return{...Ia,...e}}i(H,"mergeWrapStyle");function Ht(e){return{...La,...e}}i(Ht,"mergeTableCellStyle");function Ta(e){return{...Ba,...e}}i(Ta,"mergeScrollableBlockStyle");function ft(e){return e==null?"":typeof e=="string"||typeof e=="number"?String(e):Array.isArray(e)?e.map(t=>ft(t)).join(""):""}i(ft,"flattenText");function Na(e){if(!(0,y.isValidElement)(e))return null;const t=e.props;return typeof t.className!="string"||!/\blanguage-mermaid\b/i.test(t.className)?null:ft(t.children).replace(/\n$/,"")}i(Na,"extractMermaidSource");function Oa(e){return e.startsWith("workspace-file:")||Yt(e)?e:kn(e)}i(Oa,"safeMarkdownUrlTransform");var Ma=/\[\[([^\]\r\n]+)\]\]/g,za=new Set(["definition","image","imageReference","link","linkReference"]);function Ua(e){const[t,...n]=e.split("|"),r=t?.trim()??"",o=n.length>0?n.join("|").trim():r;return!r||r.includes("[")||r.includes("]")?null:{target:r,label:o||r}}i(Ua,"parseWikiLinkBody");function $a(e){const t=e.trim();if(!t||/^[a-z][a-z\d+.-]*:/i.test(t)||t.startsWith("//"))return null;const n=t.indexOf("#"),r=(n>=0?t.slice(0,n):t).trim().replace(/^\/+/,"");if(!r||r.includes("\\")||r.split("/").some(l=>!l||l==="."||l===".."))return null;const o=r.split("/").map(l=>encodeURIComponent(l)).join("/"),u=n>=0?t.slice(n+1).trim():"";return u?`${o}#${encodeURIComponent(u)}`:o}i($a,"encodeWikiLinkTarget");function Wt(e,t){const n=$a(e);if(!n)return null;const r=t?.trim().replace(/\/+$/,"")??"";return r?`${r}/${n}`:n}i(Wt,"defaultWikiLinkHref");function Ha(e,t){return{type:"link",url:e,title:null,data:{hProperties:{"data-paperclip-wiki-link":"true","data-paperclip-wiki-target":t.target}},children:[{type:"text",value:t.label}]}}i(Ha,"createWikiLinkNode");function Wa(e,t){const n=[];let r=0;for(const o of e.matchAll(Ma)){const u=o[0]??"",l=o[1]??"",a=o.index??0;a>r&&n.push({type:"text",value:e.slice(r,a)});const s=Ua(l);let p=null;if(s)if(t.resolveWikiLinkHref){const f=t.resolveWikiLinkHref(s.target,s.label);p=f===void 0?Wt(s.target,t.wikiLinkRoot):f}else p=Wt(s.target,t.wikiLinkRoot);s&&p?n.push(Ha(p,s)):n.push({type:"text",value:u}),r=a+u.length}return r<e.length&&n.push({type:"text",value:e.slice(r)}),n}i(Wa,"splitTextByWikiLinks");function Qn(e,t){!e.children||za.has(e.type??"")||(e.children=e.children.flatMap(n=>n.type==="text"&&typeof n.value=="string"&&n.value.includes("[[")?Wa(n.value,t):(Qn(n,t),n)))}i(Qn,"transformWikiLinkChildren");function Ka(e){return i(function(){return n=>{Qn(n,e)}},"remarkWikiLinks")}i(Ka,"createRemarkWikiLinks");function Va(e){if(!e)return!1;try{const t=new URL(e);return t.protocol==="https:"&&(t.hostname==="github.com"||t.hostname==="www.github.com")}catch{return!1}}i(Va,"isGitHubUrl");function qa(e){if(!e)return!1;try{const t=new URL(e);return t.protocol!=="http:"&&t.protocol!=="https:"?!1:typeof window>"u"?!0:t.origin!==window.location.origin}catch{return!1}}i(qa,"isExternalHttpUrl");function Kt(e,t,n){if(!t&&!n)return e;if(typeof e=="string"&&e.length>0){if(e.length===1)return(0,D.jsxs)("span",{style:{whiteSpace:"nowrap"},children:[t,e,n]});const r=e[0],o=e[e.length-1],u=e.slice(1,-1);return(0,D.jsxs)(D.Fragment,{children:[t?(0,D.jsxs)("span",{style:{whiteSpace:"nowrap"},children:[t,r]}):r,u,n?(0,D.jsxs)("span",{style:{whiteSpace:"nowrap"},children:[o,n]}):o]})}return(0,D.jsxs)(D.Fragment,{children:[t,e,n]})}i(Kt,"renderLinkBody");function Xa({children:e,preProps:t}){const[n,r]=(0,y.useState)(!1),[o,u]=(0,y.useState)(!1),[l,a]=(0,y.useState)(!1),s=(0,y.useRef)(null),p=(0,y.useRef)(void 0);(0,y.useEffect)(()=>()=>clearTimeout(p.current),[]);const f=(0,y.useCallback)(async()=>{const h=s.current?.innerText??ft(e);try{await Wr(h),u(!1),r(!0)}catch{u(!0),r(!0)}clearTimeout(p.current),p.current=setTimeout(()=>{r(!1),u(!1)},1500)},[e]),c=o?"Copy failed":n?"Copied!":"Copy",d=l?"Unwrap lines":"Wrap lines";return(0,D.jsxs)("div",{className:"paperclip-markdown-codeblock","data-wrap-lines":l||void 0,children:[(0,D.jsx)("pre",{...t,ref:s,style:{...Ta(t.style),...l?{overflowX:"hidden",whiteSpace:"pre-wrap",overflowWrap:"anywhere",wordBreak:"break-word"}:null},children:e}),(0,D.jsxs)("div",{className:"paperclip-markdown-codeblock-actions",style:Pa,"data-active":n||o||l||void 0,children:[(0,D.jsx)("button",{type:"button",onClick:i(()=>a(h=>!h),"onClick"),"aria-label":d,title:d,className:"paperclip-markdown-codeblock-action paperclip-markdown-codeblock-wrap",style:l?{...$t,borderColor:"color-mix(in oklab, var(--primary) 38%, transparent)",color:"var(--primary)"}:$t,"aria-pressed":l,"data-active":l||void 0,children:(0,D.jsx)(Xr,{"aria-hidden":"true",className:"h-3.5 w-3.5"})}),(0,D.jsxs)("button",{type:"button",onClick:f,"aria-label":"Copy code",title:c,className:"paperclip-markdown-codeblock-action paperclip-markdown-codeblock-copy",style:Jn,"data-copied":n||void 0,"data-failed":o||void 0,children:[n&&!o?(0,D.jsx)(Mr,{"aria-hidden":"true",className:"h-3.5 w-3.5"}):(0,D.jsx)(zr,{"aria-hidden":"true",className:"h-3.5 w-3.5"}),(0,D.jsx)("span",{className:"paperclip-markdown-codeblock-action-label",children:c})]})]})]})}i(Xa,"CodeBlock");function Ga({source:e,darkMode:t}){const n=(0,y.useId)().replace(/[^a-zA-Z0-9_-]/g,""),[r,o]=(0,y.useState)(null),[u,l]=(0,y.useState)(null);return(0,y.useEffect)(()=>{let a=!0;return o(null),l(null),Sa().then(async s=>{s.initialize({startOnLoad:!1,securityLevel:"strict",theme:t?"dark":"default",fontFamily:"inherit",suppressErrorRendering:!0});const p=await s.render(`paperclip-mermaid-${n}`,e);a&&o(p.svg)}).catch(s=>{if(!a)return;const p=s instanceof Error&&s.message?s.message:"Failed to render Mermaid diagram.";l(p)}),()=>{a=!1}},[t,n,e]),(0,D.jsx)("div",{className:"paperclip-mermaid",children:r?(0,D.jsx)("div",{dangerouslySetInnerHTML:{__html:r}}):(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("p",{className:$("paperclip-mermaid-status",u&&"paperclip-mermaid-status-error"),children:u?`Unable to render Mermaid diagram: ${u}`:"Rendering Mermaid diagram..."}),(0,D.jsx)("pre",{className:"paperclip-mermaid-source",children:(0,D.jsx)("code",{className:"language-mermaid",children:e})})]})})}i(Ga,"MermaidDiagramBlock");function Ya({children:e,className:t,style:n,softBreaks:r=!0,linkIssueReferences:o=!0,linkCaseReferences:u=!1,enableWikiLinks:l=!1,wikiLinkRoot:a,resolveWikiLinkHref:s,externalReferences:p,resolveImageSrc:f,onImageClick:c,mediaMode:d="render",resolveWorkspaceFileRef:h}){const{theme:g}=to(),F=Qe(),w=F?.companies,E=(0,y.useMemo)(()=>w?.length?w.map(j=>j.issuePrefix):void 0,[w]),C=Ea(F?.selectedCompanyId),v=(0,y.useMemo)(()=>JSON.stringify(Pu(C)),[C]),x=(0,y.useMemo)(()=>JSON.parse(v),[v]),P=(0,y.useMemo)(()=>{if(!p)return null;const j={};for(const[L,A]of Object.entries(p)){const I=Ft(L)??L;j[I]=A}return j},[p]),q=(0,y.useMemo)(()=>{const j=[tu,_a];return l&&j.push(Ka({wikiLinkRoot:a,resolveWikiLinkHref:s})),h&&j.push(Wu(h)),x&&j.push([ju,{index:x}]),o&&j.push([hr,{knownPrefixes:E}]),u&&j.push([xu,{knownPrefixes:E}]),r&&j.push(qu),j},[l,a,s,h,x,o,u,E,r]),M=(0,y.useMemo)(()=>{const j={p:i(({node:L,style:A,children:I,...S})=>(0,D.jsx)("p",{...S,style:H(A),children:I}),"p"),li:i(({node:L,style:A,children:I,...S})=>(0,D.jsx)("li",{...S,style:H(A),children:I}),"li"),blockquote:i(({node:L,style:A,children:I,...S})=>(0,D.jsx)("blockquote",{...S,style:H(A),children:I}),"blockquote"),table:i(({node:L,style:A,children:I,...S})=>(0,D.jsx)("div",{className:"paperclip-markdown-table-scroll",role:"region","aria-label":"Scrollable table",tabIndex:0,children:(0,D.jsx)("table",{...S,style:A,children:I})}),"table"),td:i(({node:L,style:A,children:I,...S})=>(0,D.jsx)("td",{...S,style:Ht(A),children:I}),"td"),th:i(({node:L,style:A,children:I,...S})=>(0,D.jsx)("th",{...S,style:Ht(A),children:I}),"th"),pre:i(({node:L,children:A,...I})=>{const S=Na(A);return S&&d==="render"?(0,D.jsx)(Ga,{source:S,darkMode:g==="dark"}):(0,D.jsx)(Xa,{preProps:I,children:A})},"pre"),code:i(({node:L,style:A,children:I,...S})=>(0,D.jsx)("code",{...S,style:H(A),children:I}),"code"),a:i(({node:L,href:A,style:I,children:S,...U})=>{const G=zu(A);if(G)return(0,D.jsx)(pa,{workspaceFileRef:G,label:S,className:typeof U.className=="string"?U.className:void 0});if(U["data-paperclip-wiki-link"]==="true"&&A&&!/^[a-z][a-z\d+.-]*:/i.test(A)&&!A.startsWith("//"))return(0,D.jsx)(et,{to:A,...U,rel:"noreferrer",style:H(I),children:S});const Y=o?mr(A):null;if(Y)return(0,D.jsx)(ba,{issuePathId:Y.issuePathId,href:Y.href,children:S});const B=u?Ca(A):null;if(B)return(0,D.jsx)(va,{identifier:B,children:S});const k=A?Yt(A):null;if(k){if(k.kind==="agent")return(0,D.jsx)(Aa,{agentId:k.agentId,style:I,children:S});const er=k.kind==="project"?`/projects/${k.projectId}`:k.kind==="issue"?`/issues/${k.identifier}`:k.kind==="skill"?`/skills/${k.skillId}`:k.kind==="routine"?`/routines/${k.routineId}`:"/company/settings/access";return(0,D.jsx)("a",{href:er,className:$("paperclip-mention-chip",`paperclip-mention-chip--${k.kind}`,k.kind==="project"&&"paperclip-project-mention-chip"),"data-mention-kind":k.kind,style:{...H(I),...Zt(k)},children:S})}const N=A&&P?P[Ft(A)??""]??null:null;if(N&&A)return(0,D.jsx)(xa,{href:A,reference:N,children:S});const me=Va(A),dt=qa(A),ht=me?(0,D.jsx)(_r,{"aria-hidden":"true",className:"mr-1 inline h-3.5 w-3.5 align-(--va-0_125em)"}):null,mt=dt&&!me?(0,D.jsx)(Vr,{"aria-hidden":"true",className:"ml-1 inline h-3 w-3 align-(--va-0_125em)"}):null;return Ae(A)?(0,D.jsx)(Da,{href:A,rel:"noreferrer",style:H(I),children:Kt(S,ht,mt)}):(0,D.jsx)("a",{href:A,...dt?{target:"_blank",rel:"noopener noreferrer"}:{rel:"noreferrer"},style:H(I),children:Kt(S,ht,mt)})},"a")};return d==="reference"?j.img=({src:L,alt:A,title:I})=>(0,D.jsxs)("span",{"data-markdown-image-reference":!0,title:I,children:["Image: ",A||"Untitled image",L?` (${L})`:""]}):j.img=({node:L,src:A,alt:I,...S})=>{const U=(f&&A?f(A):null)??A,G={...S,src:U,alt:I??"",onClick:c&&U?Y=>{Y.preventDefault(),c(U)}:void 0,style:c?{cursor:"pointer",...S.style}:S.style};return Ae(U)?(0,D.jsx)(ma,{...G}):(0,D.jsx)("img",{...G})},j},[g,o,u,P,f,c,d]);return(0,D.jsx)("div",{className:$("paperclip-markdown prose prose-sm min-w-0 max-w-full break-words overflow-hidden",g==="dark"&&"prose-invert",t),style:H(n),children:(0,D.jsx)(Qi,{remarkPlugins:q,rehypePlugins:wa,components:M,urlTransform:Oa,children:e})})}i(Ya,"MarkdownBodyImpl");var ms=(0,y.memo)(Ya);export{Qi as C,qr as E,ss as S,to as T,ps as _,Xn as a,cs as b,fs as c,la as d,ia as f,Ye as g,aa as h,hs as i,Vn as l,ds as m,ya as n,pa as o,ca as p,be as r,oa as s,ms as t,ua as u,Gu as v,as as w,pu as x,Un as y};
|
|
16
|
+
`)){const r=Vu(n.value);e.children.splice(t,1,...r),t+=r.length-1;continue}Kn(n)}}i(Kn,"transformNode");function qu(){return e=>{Kn(e)}}i(qu,"remarkSoftBreaks");function ke(e){const t=new URLSearchParams;return e.projectId&&e.workspaceId&&(t.set("projectId",e.projectId),t.set("workspaceId",e.workspaceId)),"path"in e&&e.path&&t.set("path",e.path),e.workspace&&e.workspace!=="auto"&&t.set("workspace",e.workspace),"mode"in e&&e.mode&&e.mode!=="all"&&t.set("mode",e.mode),"q"in e&&e.q&&t.set("q",e.q),"limit"in e&&e.limit&&t.set("limit",String(e.limit)),"offset"in e&&e.offset&&t.set("offset",String(e.offset)),t.toString()}i(ke,"buildQuery");function Xu(e,t){const n=new URLSearchParams(ke(t));return n.set("download","1"),`/api/issues/${encodeURIComponent(e)}/file-resources/content?${n.toString()}`}i(Xu,"buildFileResourceDownloadUrl");var Gu={list(e,t={},n){const r=ke(t),o=r?`?${r}`:"";return ge.get(`/issues/${encodeURIComponent(e)}/file-resources/list${o}`,n)},availability(e,t){return ge.post(`/issues/${encodeURIComponent(e)}/file-resources/availability`,{queries:t.map(n=>({path:n.path,...n.workspace&&n.workspace!=="auto"?{workspace:n.workspace}:{},...n.projectId&&n.workspaceId?{projectId:n.projectId,workspaceId:n.workspaceId}:{}}))})},resolve(e,t){return ge.get(`/issues/${encodeURIComponent(e)}/file-resources/resolve?${ke(t)}`)},content(e,t){return ge.get(`/issues/${encodeURIComponent(e)}/file-resources/content?${ke(t)}`)},downloadUrl:Xu};var Yu=3e4,Zu={state:"pending"};function ps(e){return{path:e.path,workspace:e.workspace??"auto",projectId:e.projectId??null,workspaceId:e.workspaceId??null}}i(ps,"workspaceFileAvailabilityRef");function Ut(e){return JSON.stringify([e.workspace,e.projectId,e.workspaceId,e.path])}i(Ut,"workspaceFileAvailabilityKey");function Ju(e,t=100){if(e.length<=t)return e.length>0?[e]:[];const n=[];for(let r=0;r<e.length;r+=t)n.push(e.slice(r,r+t));return n}i(Ju,"chunkWorkspaceFileAvailabilityRefs");function Qu(e){return e.workspaceKind==="project_workspace"&&e.projectId&&e.workspaceId?{workspace:"project",projectId:e.projectId,workspaceId:e.workspaceId,projectName:e.projectName??null}:{workspace:e.workspaceKind==="project_workspace"?"project":"execution",projectId:null,workspaceId:null,projectName:e.projectName??null}}i(Qu,"workspaceFileAvailabilityTarget");function ea(e){return!e.openable||!e.resource?{state:"unavailable",reason:e.unavailableReason??null}:{state:"openable",target:Qu(e.resource)}}i(ea,"workspaceFileAvailabilityFromResult");var ta=2;function na(e,t){return e[0]==="issues"&&e[1]==="file-resources"&&e[2]===t}i(na,"isFileResourceKeyForIssue");function ra(e){const t=Qe(),[n,r]=(0,y.useState)(0),o=(0,y.useRef)(new Map),u=(0,y.useRef)(new Map),l=(0,y.useRef)(new Set),a=(0,y.useRef)([]),s=(0,y.useRef)(0),p=(0,y.useRef)(null),f=(0,y.useRef)(!0),c=(0,y.useRef)(0),d=(0,y.useRef)(t);d.current=t;const h=(0,y.useRef)(e);h.current!==e&&(h.current=e,c.current+=1,p.current!==null&&(clearTimeout(p.current),p.current=null),o.current.clear(),u.current.clear(),l.current.clear(),a.current=[]);const g=(0,y.useCallback)(()=>{f.current&&r(v=>v+1)},[]),F=(0,y.useCallback)(async({chunk:v,issueId:x,generation:P})=>{const q=v.map(([M])=>M).sort();try{const M=await d.current.fetchQuery({queryKey:ee.issues.fileResourceAvailability(x,q),queryFn:i(()=>Gu.availability(x,v.map(([,L])=>L)),"queryFn"),staleTime:Yu});if(P!==c.current)return;const j=new Map(M.results.map(L=>[Ut(L.query),ea(L)]));for(const[L]of v)o.current.set(L,j.get(L)??{state:"unavailable",reason:"unmatched_reference"}),l.current.delete(L);g()}catch{if(P!==c.current)return;for(const[M]of v)l.current.delete(M)}},[g]),w=(0,y.useCallback)(()=>{for(;s.current<ta&&a.current.length>0;){const v=a.current.shift();s.current+=1,F(v).finally(()=>{s.current-=1,w()})}},[F]),E=(0,y.useCallback)(()=>{p.current=null;const v=[...u.current.entries()];u.current.clear();const x=v.filter(([P])=>!l.current.has(P)&&!o.current.has(P));if(x.length!==0){for(const[P]of x)l.current.add(P);a.current.push(...Ju(x).map(P=>({chunk:P,issueId:e,generation:c.current}))),w()}},[w,e]),C=(0,y.useCallback)(v=>{const x=Ut(v),P=o.current.get(x);return P||(!l.current.has(x)&&!u.current.has(x)&&(u.current.set(x,v),p.current===null&&(p.current=setTimeout(E,0))),Zu)},[E]);return(0,y.useEffect)(()=>(f.current=!0,u.current.size>0&&p.current===null&&(p.current=setTimeout(E,0)),()=>{f.current=!1,p.current!==null&&(clearTimeout(p.current),p.current=null)}),[E]),(0,y.useEffect)(()=>t.getQueryCache().subscribe(v=>{v.type!=="updated"||v.action.type!=="invalidate"||na(v.query.queryKey,e)&&o.current.size!==0&&(o.current.clear(),g())}),[g,e,t]),(0,y.useMemo)(()=>({version:n,check:C}),[n,C])}i(ra,"useWorkspaceFileAvailability");var pt=(0,y.createContext)(null),oa={replace:!1,preventScrollReset:!0};function Vn(e){return typeof window>"u"?e:window.location.search}i(Vn,"getCurrentFileViewerSearch");function ia(e,t){return e!==Vn(t)}i(ia,"shouldNavigateFileViewerSearch");function la(e){const t=new URLSearchParams(e),n=t.get("file");if(!n)return null;const r=t.get("line"),o=t.get("column"),u=t.get("workspace"),l=t.get("projectId"),a=t.get("workspaceId"),s=!!(l&&a),p=r?Number.parseInt(r,10):NaN,f=o?Number.parseInt(o,10):NaN,c=u==="execution"||u==="project"?u:"auto";return{path:n,line:Number.isFinite(p)&&p>0?p:null,column:Number.isFinite(f)&&f>0?f:null,workspace:c,projectId:s?l:null,workspaceId:s?a:null}}i(la,"readFileViewerStateFromSearch");function Ye(e,t){const n=new URLSearchParams(e);n.delete("browse"),n.delete("q"),n.delete("folder"),t?(n.set("file",t.path),t.line!==null?n.set("line",String(t.line)):n.delete("line"),t.column!==null?n.set("column",String(t.column)):n.delete("column"),t.workspace&&t.workspace!=="auto"?n.set("workspace",t.workspace):n.delete("workspace"),t.projectId?n.set("projectId",t.projectId):n.delete("projectId"),t.workspaceId?n.set("workspaceId",t.workspaceId):n.delete("workspaceId")):(n.delete("file"),n.delete("line"),n.delete("column"),n.delete("workspace"),n.delete("projectId"),n.delete("workspaceId"));const r=n.toString();return r?`?${r}`:""}i(Ye,"writeFileViewerStateToSearch");function ua(e){const t=new URLSearchParams(e);if(t.get("browse")!=="1")return null;const n=t.get("q"),r=t.get("folder"),o=t.get("projectId"),u=t.get("workspaceId");return{q:n&&n.length>0?n:null,folderPath:r&&r.length>0?r:null,projectId:o||null,workspaceId:u||null}}i(ua,"readBrowseStateFromSearch");function qn(e,t){const n=new URLSearchParams(e);n.delete("file"),n.delete("line"),n.delete("column"),n.delete("workspace"),n.delete("q"),n.set("browse","1"),n.set("folder",t.path),t.projectId?n.set("projectId",t.projectId):n.delete("projectId"),t.workspaceId?n.set("workspaceId",t.workspaceId):n.delete("workspaceId");const r=n.toString();return r?`?${r}`:""}i(qn,"writeFolderViewerStateToSearch");function aa(e,t){const n=new URLSearchParams(e);if(n.set("browse","1"),"q"in t){const o=t.q?.trim()??"";o?n.set("q",o):n.delete("q")}if("folderPath"in t){const o=t.folderPath?.trim()??"";o?n.set("folder",o):n.delete("folder")}"projectId"in t&&(t.projectId?n.set("projectId",t.projectId):n.delete("projectId")),"workspaceId"in t&&(t.workspaceId?n.set("workspaceId",t.workspaceId):n.delete("workspaceId"));const r=n.toString();return r?`?${r}`:""}i(aa,"writeBrowseStateToSearch");function fs({issueId:e,children:t,enabled:n=!0}){return n?(0,D.jsx)(sa,{issueId:e,children:t}):(0,D.jsx)(D.Fragment,{children:t})}i(fs,"FileViewerProvider");function sa({issueId:e,children:t}){const n=qt(),r=fr(),o=(0,y.useMemo)(()=>la(n.search),[n.search]),u=(0,y.useMemo)(()=>ua(n.search),[n.search]),l=ra(e),a=(0,y.useCallback)((F,w)=>{ia(F,n.search)&&r({pathname:n.pathname,hash:n.hash,search:F},{...oa,...w,state:n.state})},[n.hash,n.pathname,n.state,r]),s=(0,y.useCallback)((F,w)=>{let E=Ye(n.search,{path:F.path,line:F.line??null,column:F.column??null,workspace:F.workspace??"auto",projectId:F.projectId??null,workspaceId:F.workspaceId??null});if(w?.fromBrowse){const C=new URLSearchParams(E);C.set("browse","1");const v=new URLSearchParams(n.search),x=v.get("q"),P=v.get("folder"),q=Object.prototype.hasOwnProperty.call(w.browseState??{},"q")?w.browseState?.q:x,M=Object.prototype.hasOwnProperty.call(w.browseState??{},"folderPath")?w.browseState?.folderPath:P;q?C.set("q",q):C.delete("q"),M?C.set("folder",M):C.delete("folder"),E=C.toString()?`?${C.toString()}`:""}a(E)},[n.search,a]),p=(0,y.useCallback)(F=>{const w=new URLSearchParams(n.search);w.delete("file"),w.delete("line"),w.delete("column"),w.delete("folder"),w.set("browse","1"),typeof F?.q=="string"&&F.q.length>0?w.set("q",F.q):w.delete("q"),a(w.toString()?`?${w.toString()}`:"")},[n.search,a]),f=(0,y.useCallback)(F=>{a(aa(n.search,F),{replace:!0})},[n.search,a]),c=(0,y.useCallback)(F=>{const w=qn(n.search,{path:F.path,projectId:F.projectId??null,workspaceId:F.workspaceId??null});a(w)},[n.search,a]),d=(0,y.useCallback)(()=>{const F=new URLSearchParams(n.search);F.delete("file"),F.delete("line"),F.delete("column"),F.delete("workspace"),F.set("browse","1"),a(F.toString()?`?${F.toString()}`:"")},[n.search,a]),h=(0,y.useCallback)(()=>{const F=Vn(n.search),w=new URLSearchParams(Ye(F,null).replace(/^\?/,""));w.delete("browse"),w.delete("q"),w.delete("folder"),a(w.toString()?`?${w.toString()}`:"")},[n.search,a]),g=(0,y.useMemo)(()=>({issueId:e,availability:l,state:o,browse:u!==null,query:u?.q??null,browseProjectId:u?.projectId??null,browseWorkspaceId:u?.workspaceId??null,folderPath:u?.folderPath??null,open:s,openBrowse:p,updateBrowseState:f,openFolder:c,backToFiles:d,close:h}),[e,l,o,u,s,p,f,c,d,h]);return(0,D.jsx)(pt.Provider,{value:g,children:t})}i(sa,"EnabledFileViewerProvider");function ca(){return(0,y.useContext)(pt)}i(ca,"useFileViewer");function ds(){const e=(0,y.useContext)(pt);if(!e)throw new Error("useRequiredFileViewer must be used within a FileViewerProvider");return e}i(ds,"useRequiredFileViewer");function pa({workspaceFileRef:e,label:t,className:n,onOpen:r,showIcon:o=!0,title:u}){const l=ca(),a=qt(),s=typeof t<"u"?t:Mu(e),p=!!(r||l),f=e.resourceKind==="directory"||e.path.endsWith("/"),c=e.line?` line ${e.line}${e.column?` column ${e.column}`:""}`:"",d=p?`Open ${e.path}${c} in the ${f?"workspace browser":"file viewer"}`:`Workspace ${f?"folder":"file"} ${e.path}${c}`,h=u??(p?`Open ${e.path}${c} in the ${f?"workspace browser":"file viewer"}`:`Workspace ${f?"folder":"file"} ${e.path}${c}`),g=f?qn(a.search,{path:e.path,projectId:e.projectId??null,workspaceId:e.workspaceId??null}):Ye(a.search,{path:e.path,line:e.line??null,column:e.column??null,workspace:e.workspace??"auto",projectId:e.projectId??null,workspaceId:e.workspaceId??null}),F=p?`${a.pathname}${g}${a.hash}`:"#",w=i(E=>{E.metaKey||E.ctrlKey||E.shiftKey||E.altKey||E.button===0&&(E.preventDefault(),p&&(r?r(e):f?l?.openFolder(e):l?.open(e)))},"handleClick");return(0,D.jsxs)("a",{href:F,role:p?"button":void 0,"data-workspace-file-link":"true","data-workspace-file-path":e.path,"aria-label":d,title:h,className:$("paperclip-workspace-file-link inline-flex items-center gap-1 rounded-sm border border-border bg-muted/60 px-1.5 py-0.5 font-mono text-xs leading-tight text-foreground/90 align-middle no-underline hover:bg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1",n),onClick:w,children:[o?f?(0,D.jsx)(Ur,{"aria-hidden":"true",className:"h-3 w-3 shrink-0 opacity-70"}):(0,D.jsx)(qr,{"aria-hidden":"true",className:"h-3 w-3 shrink-0 opacity-70"}):null,(0,D.jsx)("span",{className:"max-w-full whitespace-normal break-all text-left",children:s})]})}i(pa,"WorkspaceFileLink");var Xn=(0,y.createContext)(new Map),Gn=/^\/api\/(?:attachments\/[^/?#]+|assets\/[^/?#]+|public\/share\/[^/?#]+\/assets\/[^/?#]+)\/content\/?$/,fa="X-Paperclip-Purged-At",ze=new Map;function xe(e){const t=typeof window<"u"&&window.location?window.location.origin:"http://localhost";try{const n=new URL(e,t);return n.origin!==t?null:n.pathname}catch{return null}}i(xe,"sameOriginPath");function Ae(e){if(!e)return!1;const t=xe(e);return t!==null&&Gn.test(t)}i(Ae,"isPurgeableContentPath");function da(e){if(!e)return null;const t=e instanceof Date?e:new Date(e);return Number.isNaN(t.getTime())?null:t.toISOString().slice(0,10)}i(da,"purgedDateLabel");function ha(e){const t=da(e);return t?`File removed by retention (${t})`:"File removed by retention"}i(ha,"purgedFileText");function Yn(e){const t=xe(e);if(!t||!Gn.test(t))return Promise.resolve(null);const n=ze.get(t);if(n)return n;const r=fetch(t,{method:"HEAD",credentials:"include",cache:"no-store"}).then(o=>o.status===410?{purgedAt:o.headers.get(fa)}:null).catch(()=>null);return ze.set(t,r),r.then(o=>{o===null&&ze.delete(t)}),r}i(Yn,"probePurgedContent");function hs(e){const t=new Map;for(const n of e){if(!n.purgedAt||!n.contentPath)continue;const r=xe(n.contentPath);if(!r)continue;const o=n.purgedAt instanceof Date?n.purgedAt.toISOString():String(n.purgedAt);t.set(r,o)}return t}i(hs,"purgedContentPaths");function Zn(e,t){if(!t||e.size===0)return null;const n=xe(t);return n?e.get(n)??null:null}i(Zn,"lookupPurgedPath");function be({purgedAt:e,className:t}){return(0,D.jsx)("span",{"data-purged-file":"",className:$("inline-flex max-w-full rounded-md border border-border bg-muted px-2 py-1 text-xs text-muted-foreground",t),children:ha(e)})}i(be,"PurgedFileNotice");function ma({src:e,onError:t,...n}){const r=(0,y.useContext)(Xn),o=Zn(r,e),[u,l]=(0,y.useState)(null);return(0,y.useEffect)(()=>{l(null)},[e]),o?(0,D.jsx)(be,{purgedAt:o}):u?(0,D.jsx)(be,{purgedAt:u.purgedAt}):(0,D.jsx)("img",{src:e,...n,onError:i(a=>{t?.(a),Ae(e)&&Yn(e).then(s=>{s&&l(s)})},"onError")})}i(ma,"RetentionAwareImage");function ga(e){return e.button===0&&!e.metaKey&&!e.ctrlKey&&!e.shiftKey&&!e.altKey}i(ga,"isPlainLeftClick");function Da({href:e,onClick:t,children:n,...r}){const o=(0,y.useContext)(Xn),u=Zn(o,e),[l,a]=(0,y.useState)(null);return(0,y.useEffect)(()=>{a(null)},[e]),u?(0,D.jsx)(be,{purgedAt:u}):l?(0,D.jsx)(be,{purgedAt:l.purgedAt}):(0,D.jsx)("a",{...r,href:e,onClick:i(s=>{if(t?.(s),s.defaultPrevented||!e||!ga(s)||!Ae(e))return;s.preventDefault();const p=r.target==="_blank"?window.open("about:blank","_blank"):null;p&&(p.opener=null),Yn(e).then(f=>{if(f){p?.close(),a(f);return}p?p.location.href=e:r.target==="_blank"?window.open(e,"_blank","noopener,noreferrer"):window.location.assign(e)})},"onClick"),children:n})}i(Da,"RetentionAwareLink");function ya({category:e,liveness:t,statusIconKey:n,label:r,className:o,sizeClassName:u="h-3.5 w-3.5",inline:l=!1}){const a=$r(),s=jr(n)??Tr(e),p=n==="git-merge"?"text-violet-600 border-violet-600 dark:text-violet-400 dark:border-violet-400":sr[e]??"text-muted-foreground border-muted-foreground",f=t==="fresh"||t==="unknown"?"":` (${Jt(t)})`,c=`${r??Qt(e)}${f}`,d=l?"relative mr-1 inline-flex shrink-0 align-(--va-0_125em)":"relative inline-flex shrink-0",h=l?"h-3 w-3":u,g=e==="running"&&!a?"animate-spin":"";return(0,D.jsxs)("span",{role:"img","aria-label":c,className:$(d,o),children:[(0,D.jsx)(s,{"aria-hidden":"true",className:$(h,p.split(" ").filter(F=>F.startsWith("text-")).join(" "),g)}),t==="stale"?(0,D.jsx)(Hr,{"aria-hidden":"true",className:$("absolute -bottom-0.5 -right-0.5 h-2 w-2 rounded-full bg-background text-muted-foreground",l?"":"p-px")}):null]})}i(ya,"ExternalObjectStatusIcon");var Fa=/^\/cases\/([A-Z][A-Z0-9]*-C\d+)$/i,wa=[cu];function Ca(e){if(!e)return null;const t=decodeURIComponent(e.trim()).match(Fa);return t?t[1].toUpperCase():null}i(Ca,"caseIdentifierFromHref");var ka=i(()=>()=>{},"noCacheSubscription");function Ea(e){const t=(0,y.useContext)(lr),n=e?or(ee.agents.list(e)):null,r=(0,y.useMemo)(()=>t&&n?u=>t.getQueryCache().subscribe(u):ka,[t,n]),o=i(()=>t&&n?t.getQueryCache().get(n)?.state.data:void 0,"read");return(0,y.useSyncExternalStore)(r,o,o)}i(Ea,"useCachedCompanyAgents");function Aa({agentId:e,children:t,style:n}){const r=Ze()?.selectedCompanyId,{data:o}=Je({queryKey:ee.agents.list(r??"__none__"),queryFn:i(()=>gr.list(r),"queryFn"),enabled:!!r,staleTime:6e4}),u=o?.find(l=>l.id===e)?.appearance;return(0,D.jsx)("a",{href:`/agents/${e}`,className:"paperclip-mention-chip paperclip-mention-chip--agent","data-mention-kind":"agent",style:{...H(n),...Zt({kind:"agent",agentId:e,icon:null,appearance:u})},children:t})}i(Aa,"MarkdownAgentMention");var Ue=null;function ba({issuePathId:e,href:t,children:n}){const r=Qe(),[o,u]=(0,y.useState)(!1),{data:l,dataUpdatedAt:a,error:s}=Je({queryKey:ee.issues.detail(e),enabled:o,placeholderData:cr(r,e),queryFn:i(()=>Xt.get(e),"queryFn"),staleTime:6e4,retry:i((C,v)=>!(v instanceof gt&&v.status===404)&&C<3,"retry")}),{issueRef:p,updatedAt:f,observe:c}=Eu(e),d=l&&(!p||a>f)?l:p??l;if(s instanceof gt&&s.status===404)return(0,D.jsx)(pu,{identifier:e,unavailable:!0});const h=d?.identifier??e,g=d?.title??h,F=d?.status,w=g!==h?`Issue ${h}: ${g}`:`Issue ${h}`,E=!l;return(0,D.jsxs)(et,{ref:c,to:t,"data-mention-kind":"issue",disableIssueQuicklook:E,"data-mention-pending":E?"true":void 0,onPointerEnter:i(()=>u(!0),"onPointerEnter"),onFocus:i(()=>u(!0),"onFocus"),className:$("paperclip-markdown-issue-ref","font-normal underline"),title:g,"aria-label":w,children:[F?(0,D.jsx)(Nr,{status:F,size:"md",className:"relative -top-px mr-1 inline-block h-4 w-4 align-middle"}):null,n]})}i(ba,"MarkdownIssueLink");function va({identifier:e,children:t}){const n=pr();return(0,D.jsx)(et,{to:n(e),"data-mention-kind":"case",className:$("paperclip-markdown-case-ref","font-normal underline"),"aria-label":`Case ${e}`,children:t})}i(va,"MarkdownCaseLink");function xa({href:e,reference:t,children:n}){const r=Or(t.providerKey),o=t.displayKey?.trim()||r,u=t.statusLabel??Qt(t.statusCategory),l=Jt(t.liveness),a=t.liveness==="fresh"||t.liveness==="unknown"?"":` (${l})`,s=[t.displayTitle??`${o} ${u}`,`${o} — ${u}${a}`].filter(Boolean).join(" · ");return(0,D.jsxs)("a",{href:e,target:"_blank",rel:"noopener noreferrer","data-external-link":"resolved","data-external-status":t.statusCategory,"data-external-liveness":t.liveness,title:s,"aria-label":`${o} ${u}${a}: ${t.displayTitle??e}`,className:"paperclip-markdown-external-ref",children:[(0,D.jsx)(ya,{category:t.statusCategory,liveness:t.liveness,statusIconKey:t.statusIconKey,label:`${o}: ${u}`,inline:!0}),n]})}i(xa,"MarkdownExternalLink");function Sa(){return Ue||(Ue=ar(()=>import("./mermaid.core-Be3XJK9z.js").then(e=>e.default),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19]))),Ue}i(Sa,"loadMermaid");var Ia={overflowWrap:"anywhere",wordBreak:"break-word"},Ba={maxWidth:"100%",overflowX:"auto"},Pa={position:"absolute",top:"0.4rem",right:"0.4rem",display:"inline-flex",alignItems:"center",gap:"0.25rem"},Jn={position:"static",opacity:1,display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"0.25rem",minHeight:"1.55rem",padding:"0.2rem 0.4rem",borderRadius:"calc(var(--radius) - 4px)",border:"1px solid color-mix(in oklab, var(--foreground) 14%, transparent)",backgroundColor:"var(--background)",color:"var(--muted-foreground)",fontSize:"var(--text-micro)",lineHeight:1,cursor:"pointer"},$t={...Jn,width:"1.55rem",paddingInline:0},La={overflowWrap:"anywhere",wordBreak:"normal"};function Ra(e){return e.type==="html"&&typeof e.value=="string"&&/^<!--[\s\S]*-->$/.test(e.value.trim())}i(Ra,"isHtmlCommentNode");function ja(e){if(e.type!=="text"||typeof e.value!="string")return!1;const t=e.value.trim();return/^\\?<!--(?:\s*-{0,2}>?)?$/.test(t)||/^<!--(?:\s*-{0,2}(?:>)?)?$/.test(t)}i(ja,"isEscapedHtmlCommentPlaceholder");function _a(){return e=>{const t=i(n=>{const r=n.children;if(r){n.children=r.filter(o=>!Ra(o)&&!ja(o));for(const o of n.children)t(o)}},"visit");t(e)}}i(_a,"remarkDropHtmlComments");function H(e){return{...Ia,...e}}i(H,"mergeWrapStyle");function Ht(e){return{...La,...e}}i(Ht,"mergeTableCellStyle");function Ta(e){return{...Ba,...e}}i(Ta,"mergeScrollableBlockStyle");function ft(e){return e==null?"":typeof e=="string"||typeof e=="number"?String(e):Array.isArray(e)?e.map(t=>ft(t)).join(""):""}i(ft,"flattenText");function Na(e){if(!(0,y.isValidElement)(e))return null;const t=e.props;return typeof t.className!="string"||!/\blanguage-mermaid\b/i.test(t.className)?null:ft(t.children).replace(/\n$/,"")}i(Na,"extractMermaidSource");function Oa(e){return e.startsWith("workspace-file:")||Yt(e)?e:kn(e)}i(Oa,"safeMarkdownUrlTransform");var Ma=/\[\[([^\]\r\n]+)\]\]/g,za=new Set(["definition","image","imageReference","link","linkReference"]);function Ua(e){const[t,...n]=e.split("|"),r=t?.trim()??"",o=n.length>0?n.join("|").trim():r;return!r||r.includes("[")||r.includes("]")?null:{target:r,label:o||r}}i(Ua,"parseWikiLinkBody");function $a(e){const t=e.trim();if(!t||/^[a-z][a-z\d+.-]*:/i.test(t)||t.startsWith("//"))return null;const n=t.indexOf("#"),r=(n>=0?t.slice(0,n):t).trim().replace(/^\/+/,"");if(!r||r.includes("\\")||r.split("/").some(l=>!l||l==="."||l===".."))return null;const o=r.split("/").map(l=>encodeURIComponent(l)).join("/"),u=n>=0?t.slice(n+1).trim():"";return u?`${o}#${encodeURIComponent(u)}`:o}i($a,"encodeWikiLinkTarget");function Wt(e,t){const n=$a(e);if(!n)return null;const r=t?.trim().replace(/\/+$/,"")??"";return r?`${r}/${n}`:n}i(Wt,"defaultWikiLinkHref");function Ha(e,t){return{type:"link",url:e,title:null,data:{hProperties:{"data-paperclip-wiki-link":"true","data-paperclip-wiki-target":t.target}},children:[{type:"text",value:t.label}]}}i(Ha,"createWikiLinkNode");function Wa(e,t){const n=[];let r=0;for(const o of e.matchAll(Ma)){const u=o[0]??"",l=o[1]??"",a=o.index??0;a>r&&n.push({type:"text",value:e.slice(r,a)});const s=Ua(l);let p=null;if(s)if(t.resolveWikiLinkHref){const f=t.resolveWikiLinkHref(s.target,s.label);p=f===void 0?Wt(s.target,t.wikiLinkRoot):f}else p=Wt(s.target,t.wikiLinkRoot);s&&p?n.push(Ha(p,s)):n.push({type:"text",value:u}),r=a+u.length}return r<e.length&&n.push({type:"text",value:e.slice(r)}),n}i(Wa,"splitTextByWikiLinks");function Qn(e,t){!e.children||za.has(e.type??"")||(e.children=e.children.flatMap(n=>n.type==="text"&&typeof n.value=="string"&&n.value.includes("[[")?Wa(n.value,t):(Qn(n,t),n)))}i(Qn,"transformWikiLinkChildren");function Ka(e){return i(function(){return n=>{Qn(n,e)}},"remarkWikiLinks")}i(Ka,"createRemarkWikiLinks");function Va(e){if(!e)return!1;try{const t=new URL(e);return t.protocol==="https:"&&(t.hostname==="github.com"||t.hostname==="www.github.com")}catch{return!1}}i(Va,"isGitHubUrl");function qa(e){if(!e)return!1;try{const t=new URL(e);return t.protocol!=="http:"&&t.protocol!=="https:"?!1:typeof window>"u"?!0:t.origin!==window.location.origin}catch{return!1}}i(qa,"isExternalHttpUrl");function Kt(e,t,n){if(!t&&!n)return e;if(typeof e=="string"&&e.length>0){if(e.length===1)return(0,D.jsxs)("span",{style:{whiteSpace:"nowrap"},children:[t,e,n]});const r=e[0],o=e[e.length-1],u=e.slice(1,-1);return(0,D.jsxs)(D.Fragment,{children:[t?(0,D.jsxs)("span",{style:{whiteSpace:"nowrap"},children:[t,r]}):r,u,n?(0,D.jsxs)("span",{style:{whiteSpace:"nowrap"},children:[o,n]}):o]})}return(0,D.jsxs)(D.Fragment,{children:[t,e,n]})}i(Kt,"renderLinkBody");function Xa({children:e,preProps:t}){const[n,r]=(0,y.useState)(!1),[o,u]=(0,y.useState)(!1),[l,a]=(0,y.useState)(!1),s=(0,y.useRef)(null),p=(0,y.useRef)(void 0);(0,y.useEffect)(()=>()=>clearTimeout(p.current),[]);const f=(0,y.useCallback)(async()=>{const h=s.current?.innerText??ft(e);try{await Wr(h),u(!1),r(!0)}catch{u(!0),r(!0)}clearTimeout(p.current),p.current=setTimeout(()=>{r(!1),u(!1)},1500)},[e]),c=o?"Copy failed":n?"Copied!":"Copy",d=l?"Unwrap lines":"Wrap lines";return(0,D.jsxs)("div",{className:"paperclip-markdown-codeblock","data-wrap-lines":l||void 0,children:[(0,D.jsx)("pre",{...t,ref:s,style:{...Ta(t.style),...l?{overflowX:"hidden",whiteSpace:"pre-wrap",overflowWrap:"anywhere",wordBreak:"break-word"}:null},children:e}),(0,D.jsxs)("div",{className:"paperclip-markdown-codeblock-actions",style:Pa,"data-active":n||o||l||void 0,children:[(0,D.jsx)("button",{type:"button",onClick:i(()=>a(h=>!h),"onClick"),"aria-label":d,title:d,className:"paperclip-markdown-codeblock-action paperclip-markdown-codeblock-wrap",style:l?{...$t,borderColor:"color-mix(in oklab, var(--primary) 38%, transparent)",color:"var(--primary)"}:$t,"aria-pressed":l,"data-active":l||void 0,children:(0,D.jsx)(Xr,{"aria-hidden":"true",className:"h-3.5 w-3.5"})}),(0,D.jsxs)("button",{type:"button",onClick:f,"aria-label":"Copy code",title:c,className:"paperclip-markdown-codeblock-action paperclip-markdown-codeblock-copy",style:Jn,"data-copied":n||void 0,"data-failed":o||void 0,children:[n&&!o?(0,D.jsx)(Mr,{"aria-hidden":"true",className:"h-3.5 w-3.5"}):(0,D.jsx)(zr,{"aria-hidden":"true",className:"h-3.5 w-3.5"}),(0,D.jsx)("span",{className:"paperclip-markdown-codeblock-action-label",children:c})]})]})]})}i(Xa,"CodeBlock");function Ga({source:e,darkMode:t}){const n=(0,y.useId)().replace(/[^a-zA-Z0-9_-]/g,""),[r,o]=(0,y.useState)(null),[u,l]=(0,y.useState)(null);return(0,y.useEffect)(()=>{let a=!0;return o(null),l(null),Sa().then(async s=>{s.initialize({startOnLoad:!1,securityLevel:"strict",theme:t?"dark":"default",fontFamily:"inherit",suppressErrorRendering:!0});const p=await s.render(`paperclip-mermaid-${n}`,e);a&&o(p.svg)}).catch(s=>{if(!a)return;const p=s instanceof Error&&s.message?s.message:"Failed to render Mermaid diagram.";l(p)}),()=>{a=!1}},[t,n,e]),(0,D.jsx)("div",{className:"paperclip-mermaid",children:r?(0,D.jsx)("div",{dangerouslySetInnerHTML:{__html:r}}):(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("p",{className:$("paperclip-mermaid-status",u&&"paperclip-mermaid-status-error"),children:u?`Unable to render Mermaid diagram: ${u}`:"Rendering Mermaid diagram..."}),(0,D.jsx)("pre",{className:"paperclip-mermaid-source",children:(0,D.jsx)("code",{className:"language-mermaid",children:e})})]})})}i(Ga,"MermaidDiagramBlock");function Ya({children:e,className:t,style:n,softBreaks:r=!0,linkIssueReferences:o=!0,linkCaseReferences:u=!1,enableWikiLinks:l=!1,wikiLinkRoot:a,resolveWikiLinkHref:s,externalReferences:p,resolveImageSrc:f,onImageClick:c,mediaMode:d="render",resolveWorkspaceFileRef:h}){const{theme:g}=to(),F=Ze(),w=F?.companies,E=(0,y.useMemo)(()=>w?.length?w.map(j=>j.issuePrefix):void 0,[w]),C=Ea(F?.selectedCompanyId),v=(0,y.useMemo)(()=>JSON.stringify(Pu(C)),[C]),x=(0,y.useMemo)(()=>JSON.parse(v),[v]),P=(0,y.useMemo)(()=>{if(!p)return null;const j={};for(const[L,A]of Object.entries(p)){const I=Ft(L)??L;j[I]=A}return j},[p]),q=(0,y.useMemo)(()=>{const j=[tu,_a];return l&&j.push(Ka({wikiLinkRoot:a,resolveWikiLinkHref:s})),h&&j.push(Wu(h)),x&&j.push([ju,{index:x}]),o&&j.push([hr,{knownPrefixes:E}]),u&&j.push([xu,{knownPrefixes:E}]),r&&j.push(qu),j},[l,a,s,h,x,o,u,E,r]),M=(0,y.useMemo)(()=>{const j={p:i(({node:L,style:A,children:I,...S})=>(0,D.jsx)("p",{...S,style:H(A),children:I}),"p"),li:i(({node:L,style:A,children:I,...S})=>(0,D.jsx)("li",{...S,style:H(A),children:I}),"li"),blockquote:i(({node:L,style:A,children:I,...S})=>(0,D.jsx)("blockquote",{...S,style:H(A),children:I}),"blockquote"),table:i(({node:L,style:A,children:I,...S})=>(0,D.jsx)("div",{className:"paperclip-markdown-table-scroll",role:"region","aria-label":"Scrollable table",tabIndex:0,children:(0,D.jsx)("table",{...S,style:A,children:I})}),"table"),td:i(({node:L,style:A,children:I,...S})=>(0,D.jsx)("td",{...S,style:Ht(A),children:I}),"td"),th:i(({node:L,style:A,children:I,...S})=>(0,D.jsx)("th",{...S,style:Ht(A),children:I}),"th"),pre:i(({node:L,children:A,...I})=>{const S=Na(A);return S&&d==="render"?(0,D.jsx)(Ga,{source:S,darkMode:g==="dark"}):(0,D.jsx)(Xa,{preProps:I,children:A})},"pre"),code:i(({node:L,style:A,children:I,...S})=>(0,D.jsx)("code",{...S,style:H(A),children:I}),"code"),a:i(({node:L,href:A,style:I,children:S,...U})=>{const G=zu(A);if(G)return(0,D.jsx)(pa,{workspaceFileRef:G,label:S,className:typeof U.className=="string"?U.className:void 0});if(U["data-paperclip-wiki-link"]==="true"&&A&&!/^[a-z][a-z\d+.-]*:/i.test(A)&&!A.startsWith("//"))return(0,D.jsx)(et,{to:A,...U,rel:"noreferrer",style:H(I),children:S});const Y=o?mr(A):null;if(Y)return(0,D.jsx)(ba,{issuePathId:Y.issuePathId,href:Y.href,children:S});const B=u?Ca(A):null;if(B)return(0,D.jsx)(va,{identifier:B,children:S});const k=A?Yt(A):null;if(k){if(k.kind==="agent")return(0,D.jsx)(Aa,{agentId:k.agentId,style:I,children:S});const er=k.kind==="project"?`/projects/${k.projectId}`:k.kind==="issue"?`/issues/${k.identifier}`:k.kind==="skill"?`/skills/${k.skillId}`:k.kind==="routine"?`/routines/${k.routineId}`:"/company/settings/access";return(0,D.jsx)("a",{href:er,className:$("paperclip-mention-chip",`paperclip-mention-chip--${k.kind}`,k.kind==="project"&&"paperclip-project-mention-chip"),"data-mention-kind":k.kind,style:{...H(I),...Zt(k)},children:S})}const N=A&&P?P[Ft(A)??""]??null:null;if(N&&A)return(0,D.jsx)(xa,{href:A,reference:N,children:S});const me=Va(A),dt=qa(A),ht=me?(0,D.jsx)(_r,{"aria-hidden":"true",className:"mr-1 inline h-3.5 w-3.5 align-(--va-0_125em)"}):null,mt=dt&&!me?(0,D.jsx)(Vr,{"aria-hidden":"true",className:"ml-1 inline h-3 w-3 align-(--va-0_125em)"}):null;return Ae(A)?(0,D.jsx)(Da,{href:A,rel:"noreferrer",style:H(I),children:Kt(S,ht,mt)}):(0,D.jsx)("a",{href:A,...dt?{target:"_blank",rel:"noopener noreferrer"}:{rel:"noreferrer"},style:H(I),children:Kt(S,ht,mt)})},"a")};return d==="reference"?j.img=({src:L,alt:A,title:I})=>(0,D.jsxs)("span",{"data-markdown-image-reference":!0,title:I,children:["Image: ",A||"Untitled image",L?` (${L})`:""]}):j.img=({node:L,src:A,alt:I,...S})=>{const U=(f&&A?f(A):null)??A,G={...S,src:U,alt:I??"",onClick:c&&U?Y=>{Y.preventDefault(),c(U)}:void 0,style:c?{cursor:"pointer",...S.style}:S.style};return Ae(U)?(0,D.jsx)(ma,{...G}):(0,D.jsx)("img",{...G})},j},[g,o,u,P,f,c,d]);return(0,D.jsx)("div",{className:$("paperclip-markdown prose prose-sm min-w-0 max-w-full break-words overflow-hidden",g==="dark"&&"prose-invert",t),style:H(n),children:(0,D.jsx)(Qi,{remarkPlugins:q,rehypePlugins:wa,components:M,urlTransform:Oa,children:e})})}i(Ya,"MarkdownBodyImpl");var ms=(0,y.memo)(Ya);export{Qi as C,qr as E,ss as S,to as T,ps as _,Xn as a,cs as b,fs as c,la as d,ia as f,Ye as g,aa as h,hs as i,Vn as l,ds as m,ya as n,pa as o,ca as p,be as r,oa as s,ms as t,ua as u,Gu as v,as as w,pu as x,Un as y};
|