PageSourceSearch

https://app.tyce.ai/assets/switch-BAKuG0hN.js

js tyce.ai collected 2026-09-28 12:44:10 UTC 209,338 bytes, 55 lines download raw bytes

1
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="ae94afa4-88ae-5a9a-a023-1378289e82a1")}catch(e){}}();
3import{j as d}from"./jsx-runtime-DNCVYYl4.js";import{r as R,a as Hl,R as we,g as ri}from"./chunk-QMGIS6GS-CY8nrIh9.js";import"./sdk.gen-BYaQaD1T.js";import{u as Ul,c as ql,N as Vl,e as st,h as Wl,d as Kl,f as ii,O as Ql,P as Gl}from"./react-query.gen-D2IhZJ8k.js";import{u as Yl,g as Zn,d as $t,w as er,Q as Xl,x as tr,B as Jl,P as Zl}from"./use-backend-user-D0JxJM1w.js";import{a as li,H as Ht}from"./ky-kHzIpPGP.js";import{I as un,F as ea,c as ai,g as ta,d as jt,u as jn,e as na}from"./index-DGKA17Ve.js";import{c as ra}from"./debug-build-B7yAYnSr.js";import{u as Nt}from"./QueryClientProvider-DeUBzeDg.js";import{u as ut}from"./useMutation-CnS5EHR1.js";import{u as ia}from"./index-BdsP6ZH8.js";import{u as la,a as aa,f as oa,b as nr,c as sa,I as ua,i as ca,h as rr,D as fa}from"./ingestion-status-icon-CJnMp-Ts.js";import{d as ha,F as ir}from"./index-CSrVBwj9.js";import{c as he}from"./utils-DYsnKI6Z.js";import{B as X,S as pa,c as da,u as Nn}from"./button-CvlrdPvd.js";import{D as ma,a as ga,b as xa,c as oi,e as ya,g as si}from"./dialog-BMDIVz3o.js";import{I as Xe}from"./input-B02GdGgH.js";import{P as cn,a as fn,b as hn}from"./popover-BTNoMvKD.js";import{d as lr,e as ar,S as ka,f as ui,C as ba,a as wa,b as va,c as or,I as Sa}from"./context-menu-DYSeiK-y.js";import{S as Ut,a as Be,b as $e,c as He,T as pn}from"./tooltip-Be7lOOYW.js";import{I as Ca}from"./IconSearch-Py72g94F.js";import{I as dn,u as Ia}from"./middleware-BfotxAGh.js";import{F as Ea,C as Ta}from"./input-BHKmC0yC.js";import{c as Aa}from"./client-1wX2uHdq.js";import{C as qt,a as ja,I as Na,u as Pa}from"./checkbox-DWJtCkpR.js";import{S as ci}from"./separator-vfPImT3a.js";import{T as Da}from"./textarea-BdGEFCUh.js";import{c as Pt}from"./createReactComponent-CPrb-Vt-.js";import{I as Ge}from"./IconLoader2-Dhh4eThH.js";import{b as mn,a as Fa,u as za}from"./index-BQJ61H7T.js";import{I as fi,c as hi,R as La,T as _a,b as Ra}from"./index-A5T1v03g.js";import{I as Ma}from"./IconInfoCircle-e60i5YjF.js";import{I as Oa}from"./IconChevronDown-Vga7HvFR.js";import{u as Ba}from"./use-workspace-BwezXS7H.js";import{t as sr}from"./index-DyIiZxoe.js";import{u as $a}from"./index-DTXZWGTA.js";/**
4 * @license @tabler/icons-react v3.34.0 - MIT
5 *
6 * This source code is licensed under the MIT license.
7 * See the LICENSE file in the root directory of this source tree.
8 */var Ha=Pt("outline","arrows-maximize","IconArrowsMaximize",[["path",{d:"M16 4l4 0l0 4",key:"svg-0"}],["path",{d:"M14 10l6 -6",key:"svg-1"}],["path",{d:"M8 20l-4 0l0 -4",key:"svg-2"}],["path",{d:"M4 20l6 -6",key:"svg-3"}],["path",{d:"M16 20l4 0l0 -4",key:"svg-4"}],["path",{d:"M14 14l6 6",key:"svg-5"}],["path",{d:"M8 4l-4 0l0 4",key:"svg-6"}],["path",{d:"M4 4l6 6",key:"svg-7"}]]);/**
9 * @license @tabler/icons-react v3.34.0 - MIT
10 *
11 * This source code is licensed under the MIT license.
12 * See the LICENSE file in the root directory of this source tree.
13 */var Ua=Pt("outline","arrows-minimize","IconArrowsMinimize",[["path",{d:"M5 9l4 0l0 -4",key:"svg-0"}],["path",{d:"M3 3l6 6",key:"svg-1"}],["path",{d:"M5 15l4 0l0 4",key:"svg-2"}],["path",{d:"M3 21l6 -6",key:"svg-3"}],["path",{d:"M19 9l-4 0l0 -4",key:"svg-4"}],["path",{d:"M15 9l6 -6",key:"svg-5"}],["path",{d:"M19 15l-4 0l0 4",key:"svg-6"}],["path",{d:"M15 15l6 6",key:"svg-7"}]]);/**
14 * @license @tabler/icons-react v3.34.0 - MIT
15 *
16 * This source code is licensed under the MIT license.
17 * See the LICENSE file in the root directory of this source tree.
18 */var qa=Pt("outline","file-description","IconFileDescription",[["path",{d:"M14 3v4a1 1 0 0 0 1 1h4",key:"svg-0"}],["path",{d:"M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z",key:"svg-1"}],["path",{d:"M9 17h6",key:"svg-2"}],["path",{d:"M9 13h6",key:"svg-3"}]]);/**
19 * @license @tabler/icons-react v3.34.0 - MIT
20 *
21 * This source code is licensed under the MIT license.
22 * See the LICENSE file in the root directory of this source tree.
23 */var yt=Pt("filled","circle-filled","IconCircleFilled",[["path",{d:"M7 3.34a10 10 0 1 1 -4.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 4.995 -8.336z",key:"svg-0"}]]);async function Va(e,n){const t=e.getReader();let r;for(;!(r=await t.read()).done;)n(r.value)}function Wa(e){let n,t,r,i=!1;return function(l){n===void 0?(n=l,t=0,r=-1):n=Qa(n,l);const o=n.length;let s=0;for(;t<o;){i&&(n[t]===10&&(s=++t),i=!1);let u=-1;for(;t<o&&u===-1;++t)switch(n[t]){case 58:r===-1&&(r=t-s);break;case 13:i=!0;case 10:u=t;break}if(u===-1)break;e(n.subarray(s,u),r),s=t,r=-1}s===o?n=void 0:s!==0&&(n=n.subarray(s),t-=s)}}function Ka(e,n,t){let r=ur();const i=new TextDecoder;return function(l,o){if(l.length===0)t==null||t(r),r=ur();else if(o>0){const s=i.decode(l.subarray(0,o)),u=o+(l[o+1]===32?2:1),f=i.decode(l.subarray(u));switch(s){case"data":r.data=r.data?r.data+`
24`+f:f;break;case"event":r.event=f;break;case"id":e(r.id=f);break;case"retry":const c=parseInt(f,10);isNaN(c)||n(r.retry=c);break}}}}function Qa(e,n){const t=new Uint8Array(e.length+n.length);return t.set(e),t.set(n,e.length),t}function ur(){return{data:"",event:"",id:"",retry:void 0}}var Ga=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)n.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(t[r[i]]=e[r[i]]);return t};const gn="text/event-stream",Ya=1e3,cr="last-event-id";function Xa(e,n){var{signal:t,headers:r,onopen:i,onmessage:a,onclose:l,onerror:o,openWhenHidden:s,fetch:u}=n,f=Ga(n,["signal","headers","onopen","onmessage","onclose","onerror","openWhenHidden","fetch"]);return new Promise((c,p)=>{const h=Object.assign({},r);h.accept||(h.accept=gn);let x;function b(){x.abort(),document.hidden||E()}s||document.addEventListener("visibilitychange",b);let C=Ya,y=0;function v(){document.removeEventListener("visibilitychange",b),window.clearTimeout(y),x.abort()}t==null||t.addEventListener("abort",()=>{v(),c()});const S=u??window.fetch,j=i??Ja;async function E(){var w;x=new AbortController;try{const z=await S(e,Object.assign(Object.assign({},f),{headers:h,signal:x.signal}));await j(z),await Va(z.body,Wa(Ka(_=>
24{_?h[cr]=_:delete h[cr]},_=>{C=_},a))),l==null||l(),v(),c()}catch(z){if(!x.signal.aborted)try{const _=(w=o==null?void 0:o(z))!==null&&w!==void 0?w:C;window.clearTimeout(y),y=window.setTimeout(E,_)}catch(_){v(),p(_)}}}E()})}function Ja(e){const n=e.headers.get("content-type");if(!(n!=null&&n.startsWith(gn)))throw new Error(`Expected content-type to be ${gn}, Actual: ${n}`)}const Za=250;function eo({multiple:e,onPick:n,onOpenFile:t,selectionMode:r,accept:i,initialSelectedItems:a,...l}){const[o,s]=R.useState([]),[u,f]=R.useState([]),[c,p]=R.useState(void 0),[h,x]=R.useState({updateDate:"desc"}),[b,C]=R.useState(""),[y,v]=R.useState("");Yl(),R.useEffect(()=>{l.open&&a&&s(a)},[l.open,a]);const{ancestors:S,navigateBreadcrumb:j}=la({setCurrentPath:f,browsedFolderId:c,setBrowsedFolderId:p}),E=u.length===0,w=E&&!y,{files:z,isLoading:_}=aa({sort:h,query:y,parentId:c,isUnifiedRoot:E}),B=Nt(),k=R.useRef(null),P=R.useCallback(()=>{k.current&&(clearTimeout(k.current),k.current=null)},[]),F=R.useMemo(()=>ha(v,300),[]);R.useEffect(()=>{l.open&&B.invalidateQueries({queryKey:["files"]})},[l.open,B]);const L=T=>{var Q;T||(P(),s([]),f([]),p(void 0),C(""),v("")),(Q=l.onOpenChange)==null||Q.call(l,T)},D=T=>!!(r==="both"||r==="files"&&!T.isFolder||r==="folders"&&T.isFolder),M=T=>o.some(Q=>Q.documentId===T.documentId),Y=T=>T.isSharedWithMe===!0,re=T=>Y(T)?{isSharedWithMe:!0,sharedWithMeFolders:er(T.visiblePath??"")}:{isSharedWithMe:!1},ue=T=>({documentId:T.documentId,path:T.path,name:T.name,isFolder:T.isFolder,isLongDocument:T.isLongDocument,parentId:T.parentId??void 0,...re(T)}),fe=T=>{s(Q=>{const g=Q.some(oe=>oe.documentId===T.documentId),le=ue(T);return e?g?Q.filter(oe=>oe.documentId!==T.documentId):[...Q,le]:g?[]:[le]})},m=T=>Xl(T)||"All";return d.jsx(ma,{...l,onOpenChange:L,"data-sentry-element":"Dialog","data-sentry-component":"KnowledgeBaseSelector","data-sentry-source-file":"knowledge-base-selector.tsx",children:d.jsxs(ga,{className:"max-w-5/6 lg:max-w-3/5 h-[90dvh] flex flex-col gap-0 p-0","aria-describedby":void 0,"data-sentry-element":"DialogContent","data-sentry-source-file":"knowledge-base-selector.tsx",children:[d.jsx(xa,{className:"px-1 flex-1 min-w-0","data-sentry-element":"DialogHeader","data-sentry-source-file":"knowledge-base-selector.tsx",children:y?d.jsx(oi,{className:"text-base font-semibold text-[#333333] capitalize py-2",children:"Search Results"}):d.jsx(to,{isAtRoot:w,ancestors:S,onNavigate:j,maxCrumbs:3})}),d.jsxs("div",{className:"flex-1 flex flex-col p-6 bg-[#F6F7F8] overflow-hidden",children:[d.jsxs("div",{className:"relative",children:[d.jsx(Ca,{className:"absolute top-1/2 -translate-y-1/2 size-8 p-2 mx-2","data-sentry-element":"IconSearch","data-sentry-source-file":"knowledge-base-selector.tsx"}),d.jsx(Xe,{value:b,placeholder:"Search a file or folder",onChange:T=>{C(T.currentTarget.value),F(T.currentTarget.value)},className:"focus:ring-0! focus:ring-offset-0! rounded-full h-12 px-4 pl-10",autoFocus:!0,"data-sentry-element":"Input","data-sentry-source-file":"knowledge-base-selector.tsx"}),y&&d.jsx(X,{size:"icon",variant:"ghost",className:"absolute top-1/2 right-1 -translate-y-1/2 size-8 p-2 mx-2 rounded-full",onClick:()=>{C(""),v("")},children:d.jsx(un,{})})]}),d.jsxs("div",{className:"flex flex-col flex-1 min-h-0 gap-3 bg-white py-4 rounded-2xl mt-4",children:[d.jsxs("div",{className:he("grid gap-6 items-center py-2 px-8 border-b border-neutral-200 grid-cols-[3fr_1fr_auto]"),children:[d.jsxs(X,{className:"text-[#4f4f4f] font-medium flex items-center gap-2 max-w-min p-0",variant:"link",onClick:()=>{x(T=>({name:T.name==="desc"?"asc":"desc"}))},"data-sentry-element":"Button","data-sentry-source-file":"knowledge-base-selector.tsx",children:["Name",h.name&&(h.name==="asc"?d.jsx(lr,{}):d.jsx(ar,{}))]}),d.jsxs(X,{className:"text-[#4f4f4f] font-medium flex items-center gap-2 max-w-min p-0",variant:"link",onClick:()=>{x(T=>({updateDate:T.updateDate==="desc"?"asc":"desc"}))},"data-sentry-element":"Button","data-sentry-source-file":"knowledge-base-selector.tsx",children:["Last Updated",h.updateDate&&(h.updateDate==="asc"?d.jsx(lr,{}):d.jsx(ar,{}))]}),d.jsx("div",{className:"w-10"})]}),d.jsxs(ka,{className:"flex-1 px-6","data-sentry-element":"ScrollArea","data-sentry-source-file":"knowledge-base-selector.tsx",children:[_&&Array.from({length:5}).fill(null).map((T,Q)=>d.jsxs("div",{className:he("grid gap-6 items-center py-3 px-2 select-none grid-cols-[3fr_1fr_auto]"),children:[d.jsxs("div",{className:"place-items-center flex align-center gap-6",children:[d.jsx(Ut,{className:"size-10 rounded-md bg-neutral-300 select-none"}),d.jsx(Ut,{className:"h-5 w-2/3 bg-neutral-300 select-none"})]}),d.jsx("div",{className:"text-[#828282]",children:d.jsx(Ut,{className:"h-5 w-1/4 bg-neutral-300 select-none"})}),d.jsx("div",{children:d.jsx(X,{variant:"ghost",size:"icon",className:"text-[#828282]",children:d.jsx(ui,{className:"h-5 w-5"})})})]},Q)),!_&&z.map((T,Q)=>{const g=T.isFolder||!i||i.includes(T.name.split(".").at(-1)),le=g&&D(T),oe=M(T),ae=Q>0&&M(z[Q-1]),Se=Q<z.length-1&&M(z[Q+1]);return d.jsxs("div",{"data-testid":"kb-selector-file-item",className:he("grid grid-cols-[3fr_1fr_50px] gap-6 items-center py-3 px-2 rounded-lg select-none cursor-pointer transition-[border-radius]",oe?"bg-primary/10":"hover:bg-[#f2f2f2]",oe&&ae&&"rounded-t-none",oe&&Se&&"rounded-b-none",!T.isFolder&&!g&&"opacity-50"),onDoubleClick:$=>{if($.preventDefault(),P(),T.isFolder)f(T.path.split("/").filter(
24Boolean)),p(T.documentId);else if(g){const q=ue(T);t?(L(!1),t(q)):e||(L(!1),n([q]))}C(""),v("")},onClick:$=>{if($.preventDefault(),!le||$.detail>1)return;const q=()=>{if(!e){fe(T);return}if(!$.shiftKey&&!$.metaKey&&!$.ctrlKey&&fe(T),($.metaKey||$.ctrlKey)&&fe(T),$.shiftKey){const ie=o.at(-1);if(ie){const ce=z.findIndex(Ee=>Ee.documentId===ie.documentId);if(ce!==-1){const Ee=Math.min(ce,Q),G=Math.max(ce,Q),Z=z.slice(Ee,G+1).filter(J=>(J.isFolder||!i||i.includes(J.name.split(".").at(-1)))&&D(J));s(J=>{const ge=new Set(J.map(tt=>tt.documentId)),Ne=Z.filter(tt=>!ge.has(tt.documentId)).map(ue);return[...J,...Ne]})}}else fe(T)}};P(),T.isFolder?k.current=setTimeout(q,Za):q()},children:[d.jsxs("div",{className:"place-items-center flex align-center gap-6 @container",children:[d.jsx(X,{size:"icon",variant:"secondary",className:he("rounded-lg min-w-12 [&_svg]:size-5 pointer-events-none",T.isFolder?"[&_svg]:text-primary! bg-[#EAF2FF] hover:bg-[#EAF2FF]":"[&_svg]:text-[#9747FF]! bg-[#E7DDFF] hover:bg-[#E7DDFF]"),children:T.isFolder?d.jsx(dn,{}):d.jsx(ir,{name:T.name})}),d.jsxs("div",{className:"flex flex-col min-w-0 max-w-[100cqi]",children:[d.jsxs(Be,{children:[d.jsx($e,{asChild:!0,children:d.jsx("span",{className:"text-[#333333] truncate",children:T.name})}),d.jsx(He,{children:T.name})]}),y&&d.jsx("span",{className:"text-xs text-[#4f4f4f] truncate",title:Zn(T).join(" / "),children:Zn(T).join(" / ")})]})]}),d.jsx("div",{className:"pl-1 text-[#08091B]",children:d.jsxs(Be,{children:[d.jsx($e,{className:"cursor-pointer",children:!T.isFolder&&$t().to(T.uploadDate)}),d.jsx(He,{children:$t(T.uploadDate).tz($t.tz.guess()).format("lll")})]})}),d.jsx("div",{className:"flex gap-2 items-center",children:d.jsx(oa,{file:T})})]},T.documentId)})]})]})]}),o.length>0&&d.jsxs("div",{className:"flex flex-wrap gap-2 px-4 py-3 border-t bg-white",children:[o.map(T=>d.jsxs("div",{className:"flex items-center gap-1.5 bg-[#F6F7F8] pl-2 pr-1 py-1 rounded-lg max-w-[200px]",children:[d.jsxs(Be,{children:[d.jsx($e,{asChild:!0,children:d.jsxs("button",{type:"button",className:"flex items-center gap-1.5 min-w-0 hover:underline",onClick:()=>{T.isSharedWithMe?T.isFolder?(f([...T.sharedWithMeFolders??[],T.name]),p(T.documentId)):(f([]),p(void 0)):(f(er(T.path)),p(T.parentId))},children:[T.isFolder?d.jsx(dn,{className:"size-4 text-primary shrink-0"}):d.jsx(ir,{name:T.name,className:"size-4 shrink-0"}),d.jsx("span",{className:"text-sm text-[#333333] truncate",children:T.name})]})}),d.jsx(He,{children:T.isSharedWithMe?[...T.sharedWithMeFolders??[],T.name].join(" / "):m(T.path)})]}),d.jsx(X,{size:"icon",variant:"ghost",className:"size-5 min-w-5 rounded-full hover:bg-neutral-200",onClick:()=>{s(Q=>Q.filter(g=>g.documentId!==T.documentId))},children:d.jsx(un,{className:"size-3"})})]},T.documentId)),d.jsx(X,{variant:"ghost",size:"sm",className:"text-xs text-[#828282] h-auto px-2 py-1",onClick:()=>s([]),children:"Clear all"})]}),d.jsxs(ya,{className:"p-4 border-t","data-sentry-element":"DialogFooter","data-sentry-source-file":"knowledge-base-selector.tsx",children:[d.jsx(si,{asChild:!0,"data-sentry-element":"DialogClose","data-sentry-source-file":"knowledge-base-selector.tsx",children:d.jsx(X,{variant:"outline","data-sentry-element":"Button","data-sentry-source-file":"knowledge-base-selector.tsx",children:"Close"})}),d.jsx(X,{variant:"primary",onClick:()=>{n(o),L(!1)},"data-sentry-element":"Button","data-sentry-source-file":"knowledge-base-selector.tsx",children:o.length===0?"Select":`Select ${o.length} item${o.length!==1?"s":""}`})]})]})})}function to({ancestors:e,onNavigate:n,maxCrumbs:t}){const r=e.length>t,i=Math.max(1,t-2),a=r?e.slice(0,e.length-i):[],l=r?e.slice(e.length-i):e,o=e.length-l.length;return d.jsxs(oi,{className:"flex items-center gap-2 text-base font-semibold text-[#333333] capitalize overflow-hidden min-w-0","data-sentry-element":"DialogTitle","data-sentry-component":"Breadcrumbs","data-sentry-source-file":"knowledge-base-selector.tsx",children:[d.jsx(X,{size:"icon",variant:"ghost",className:"size-10 [&_svg]:size-7 shrink-0",onClick:()=>n("home"),"data-sentry-element":"Button","data-sentry-source-file":"knowledge-base-selector.tsx",children:d.jsx("div",{className:"flex items-center gap-2 text-xl font-semibold text-[#333333]",children:d.jsx(dn,{style:{width:"1.75rem",he
24ight:"1.75rem"},"data-sentry-element":"IconFolder","data-sentry-source-file":"knowledge-base-selector.tsx"})})}),r&&d.jsxs(d.Fragment,{children:[d.jsx(nr,{className:"size-6 stroke-[1.5] shrink-0"}),d.jsxs(cn,{children:[d.jsx(fn,{asChild:!0,children:d.jsx(X,{variant:"ghost",size:"icon",className:"size-8 shrink-0",children:d.jsx(ui,{})})}),d.jsx(hn,{className:"flex flex-col max-h-min p-1 w-max max-w-md rounded-xl",align:"start",children:a.map((s,u)=>d.jsxs(X,{variant:"ghost",size:"sm",className:"flex-1 p-2 justify-start",title:s.name,style:{paddingLeft:`${Math.min(u,6)*16+8}px`},onClick:()=>n(u),children:[u>0&&d.jsx(sa,{className:"size-4 shrink-0 text-neutral-400"}),d.jsx("span",{className:"truncate",children:s.name})]},s.id??`${s.name}-${u}`))})]})]}),l.map((s,u)=>{const f=o+u===e.length-1;return d.jsxs(R.Fragment,{children:[d.jsx(nr,{className:"size-6 stroke-[1.5] shrink-0"}),d.jsx(X,{variant:"link",size:"sm",title:s.name,className:he("font-semibold text-base px-0 min-w-0",f?"shrink":"max-w-56 shrink-[2]"),onClick:()=>n(o+u),children:d.jsx("span",{className:"truncate",children:s.name})})]},s.id??`${s.name}-${o+u}`)})]})}async function no(e){var t;if(!((t=e.get("content"))!=null&&t.toString().trim()))throw Error("Prompt is required");return(await li.post("skill",{body:e})).json()}async function ro(e,n){var r;if(!((r=n.get("content"))!=null&&r.toString().trim()))throw Error("Prompt is required");return(await li.patch(`skill/${e}`,{body:n})).json()}const io=da("inline-flex items-center justify-center rounded-full border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function fr({className:e,variant:n,asChild:t=!1,...r}){const i=t?pa:"span";return d.jsx(i,{"data-slot":"badge",className:he(io({variant:n}),e),...r,"data-sentry-element":"Comp","data-sentry-component":"Badge","data-sentry-source-file":"badge.tsx"})}function lo({disableActions:e,activeTags:n,onSelect:t,onCreate:r,filter:i}){const[a,l]=R.useState(!1),[o,s]=R.useState(""),[u,f]=R.useState(),{data:c}=Ul(ql()),p=Nt(),{mutate:h,isPending:x}=ut({...Vl(),async onSuccess(E){await p.invalidateQueries({queryKey:st()}),s(""),l(!1),r==null||r(E)}}),{mutate:b,isPending:C}=ut({...Wl(),onSuccess:()=>p.invalidateQueries({queryKey:st()})}),{mutate:y,isPending:v}=ut({...Kl(),async onSuccess(){await p.invalidateQueries({queryKey:st()}),s(""),f(void 0)}});let S=c;i&&(S=c==null?void 0:c.filter(i));function j(E){E.relatedTarget instanceof HTMLButtonElement&&E.relatedTarget.type==="submit"||(l(!1),f(void 0),s(""))}return d.jsxs("div",{className:"flex flex-col gap-1 items-start","data-sentry-component":"TagList","data-sentry-source-file":"tag-list.tsx",children:[a?d.jsxs("form",{className:"flex items-center gap-2 py-1 pl-2 pr-1 h-8 [&_svg]:size-2",tabIndex:0,onBlur:j,onSubmit:E=>{E.preventDefault(),E.stopPropagation(),!x&&o.trim()&&h({query:{name:o.trim()}})},children:[d.jsx(yt,{className:"size-2 mx-0.5 text-neutral-300"}),d.jsx(Xe,{autoFocus:!0,value:o,onChange:E=>s(E.currentTarget.value),className:"px-1 flex-1 h-8 focus:focus-visible:ring-0 focus:focus-visible:ring-transparent"}),d.jsx(X,{type:"submit",variant:"ghost",size:"icon",className:"h-6 size-6 p-1!",disabled:x,children:x?d.jsx(Ge,{className:"animate-spin"}):d.jsx(mn,{})})]}):d.jsxs(X,{type:"button",variant:"ghost",size:"sm",onClick:()=>l(!0),className:"h-7 justify-start w-full [&_svg]:size-3 [&_svg]:text-neutral-600 text-neutral-500 data-active:[&_svg]:text-primary data-active:text-primary data-active:bg-primary/10",children:[d.jsx(fi,{})," Create new tag"]}),!!(S!=null&&S.length)&&d.jsx("div",{className:"flex flex-col gap-1 items-start max-h-[66dvh] overflow-y-auto @container w-full",children:S==null?void 0:S.map(E=>u===E.id?d.jsxs("form",{className:"flex items-center gap-2 py-1 pl-3 pr-1 h-8 [&_svg]:size-2",onBlur:j,onSubmit:w=>{w.preventDefault(),w.stopPropagation(),!v&&o!==E.name&&o.trim()&&y({path:{id:E.id},query:{name:o.trim()}})},children:[d.jsx(yt,{className:"size-2 mx-0.5 text-neutral-300"}),d.jsx(Xe,{autoFocus:!0,value:o,onChange:w=>s(w.currentTarget.value),className:"px-1 flex-1 h-8 focus:focus-visible:ring-0 focus:focus-visible:ring-transparent"}),d.jsx(X,{type:"submit",variant:"ghost",size:"icon",className:"h-6 size-6 p-1!",disabled:v,children:v?d.jsx(Ge,{className:"animate-spin"}):d.jsx(mn,{})})]},E.id):e?d.jsxs(X,{type:"button",variant:"ghost",size:"sm","data-active":(n==null?void 0:n.includes(E.id))||void 0,title:E.name,onClick:()=>t(E),className:"h-7 [&_svg]:size-2 [&_svg]:mx-0.5 [&_svg]:text-neutral-300 text-neutral-500 data-active:[&_svg]:text-primary data-active:text-primary data-active:bg-primary/10 w-full",children:[d.jsx(yt,{}
24),d.jsx("span",{className:"flex-1 text-start inline-block truncate",children:E.name}),d.jsx("span",{className:"ml-auto font-normal text-xs tabular-nums opacity-80",children:E.count})]},E.id):d.jsxs(ba,{children:[d.jsx(wa,{asChild:!0,children:d.jsxs(X,{type:"button",variant:"ghost",size:"sm","data-active":(n==null?void 0:n.includes(E.id))||void 0,title:E.name,onClick:()=>t(E),className:"h-7 [&_svg]:size-2 [&_svg]:mx-0.5 [&_svg]:text-neutral-300 text-neutral-500 data-active:[&_svg]:text-primary data-active:text-primary data-active:bg-primary/10 w-full",children:[d.jsx(yt,{}),d.jsx("span",{className:"flex-1 text-start inline-block truncate",children:E.name}),d.jsx("span",{className:"ml-auto font-normal text-xs tabular-nums opacity-80",children:E.count})]})}),d.jsxs(va,{className:"bg-white rounded-xl",children:[d.jsxs(or,{className:"rounded-xl",onClick:()=>{f(E.id),s(E.name)},children:[d.jsx(ua,{}),"Rename"]}),d.jsxs(or,{className:"hover:bg-red-500/10 text-red-500 rounded-xl",onClick:()=>b({path:{id:E.id}}),children:[C?d.jsx(Ge,{className:"animate-spin"}):d.jsx(Sa,{}),"Delete"]})]})]},E.id))})]})}const Ce={FORMATTING:"Formatting",WRITING_STYLE:"Writing Style"};function Kd({skill:{id:e,type:n,style_prompt_document:t,title:r,description:i,content:a,is_shared:l,style_prompt_type:o,tags:s}={},onCreate:u,onClose:f,dialog:c}){const[p,h]=R.useState(r??""),[x,b]=R.useState(i??""),[C,y]=R.useState(a??""),[v,S]=R.useState(),[j,E]=R.useState(),[w,z]=R.useState(!1),[_,B]=R.useState(),[k,P]=R.useState(),[F,L]=R.useState(s??[]),[D,M]=R.useState(),[Y,re]=R.useState(o??[Ce.FORMATTING,Ce.WRITING_STYLE]),ue=Hl(),fe=ia(Ea.ORGANIZATION_SKILLS),m=R.useRef(new AbortController),T=Nt(),{mutate:Q,isPending:g,error:le}=ut({async mutationFn($){var ie;const q=(ie=$.get("id"))==null?void 0:ie.toString();return q?ro(q,$):no($)},async onSuccess($){E(void 0),await Promise.all([T.invalidateQueries({queryKey:ii()}),T.invalidateQueries({queryKey:Ql({path:{skill_id:$.id}})}),T.invalidateQueries({queryKey:st()})]),u==null||u($),f==null||f()},async onError($){if($ instanceof Ht&&$.response.status===409){const q=await $.response.clone().json().catch(()=>{});E(q==null?void 0:q.detail)}}});async function oe($,q){if(!$||!q.length)return z(!1);z(!0),y(""),S(void 0);const ce=await Aa().auth.getSession();if(!ce.data.session)return ue("/signin");const Ee=new URL("https://api.tyce.ai/skill/extract");Ee.searchParams.set("prompt_type",q.join(","));let G;if(typeof $=="object"&&"documentId"in $){G=$.path;const J=G.split(".").at(-1);$=`${tr.DOCUMENTS}/${$.documentId}.${J}`}const Z=new FormData;Z.set("file",$),await Xa(Ee.toString(),{method:"POST",body:Z,openWhenHidden:!0,headers:{Authorization:`Bearer ${ce.data.session.access_token}`},async onopen(J){if(m.current.signal.aborted)throw Error("Aborted");const ge=J.headers.get("content-type");if(J.ok&&!(ge!=null&&ge.startsWith("text/event-stream")))throw new Error(`Expected content-type to be text/event-stream, Actual: ${ge}`);if(!J.ok){B(void 0),P(void 0),z(!1);const Ne=(await J.json()).detail;S(Ne??"There was an error while extracting prompt. Please try again with another document."),m.current.abort()}},onmessage(J){if(J.event==="delta"){const ge=JSON.parse(J.data);y(Ne=>Ne+ge.delta)}},onerror(J){throw ra(J),B(void 0),P(void 0),z(!1),S("There was an error while extracting prompt. Please try again with another document."),J},onclose(){z(!1)},signal:m.current.signal})}function ae($,q){if(q){if(!Y.includes($))return Y.concat([$])}else return Y.filter(ie=>ie!==$);return Y}const Se=(_==null?void 0:_.name)||(k==null?void 0:k.name)||(t==null?void 0:t.split("/").at(-1));return n?d.jsxs(d.Fragment,{children:[d.jsx(ca,{disabled:n!=="style",noClick:!0,accept:{"application/vnd.openxmlformats-officedocument.wordprocessingml.document":[".docx"],"application/pdf":[".pdf"]},onDrop:async $=>{const q=$.at(0);if(q){let ie=Y;if(q.name.toLowerCase().endsWith(".pdf")){if(await Jl(q)){S("File is too large in size or has too many pages to process. Please try with different file.");return}ie=[Ce.WRITING_STYLE],re([Ce.WRITING_STYLE])}
24y(""),B(q),P(void 0),m.current.abort(),m.current=new AbortController,oe(q,ie)}},"data-sentry-element":"Dropzone","data-sentry-source-file":"create.tsx",children:({getRootProps:$,getInputProps:q,open:ie})=>{var ce,Ee;return d.jsxs("section",{className:"h-[80svh] flex flex-col flex-1 gap-4 pb-4",...$(),children:[d.jsxs("form",{id:"prompt-form",className:"px-8 py-6 items-center flex flex-col gap-4 flex-1 [&>*]:w-full overflow-y-auto",onSubmit:G=>{G.preventDefault();const Z=new FormData(G.currentTarget);if(k){const J=k.path.split("/").at(-1),ge=J.split(".").at(-1),Ne=`${tr.DOCUMENTS}/${k.documentId}.${ge}`;Z.set("file",Ne),Z.set("filename",J)}Z.has("is_shared")||Z.set("is_shared","false"),Z.set("tag_ids",F.map(J=>J.id).join(",")),Z.set("content",C),E(void 0),Q(Z)},children:[e&&d.jsx("input",{type:"hidden",name:"id",value:e}),d.jsx("input",{type:"hidden",name:"type",value:n}),d.jsx("input",{...q({name:"file"})}),(k||n==="style")&&d.jsx("input",{type:"hidden",name:"filename",value:(k==null?void 0:k.name)||""}),d.jsxs("div",{className:"flex flex-col gap-1",children:[d.jsx("label",{htmlFor:"title",className:"text-sm font-semibold text-neutral-500 uppercase tracking-wider",children:"Name"}),d.jsx(Xe,{"data-testid":"prompt-name-input",id:"title",name:"title",value:p,maxLength:128,onChange:G=>h(G.currentTarget.value.trimStart()),placeholder:"Name"}),le instanceof Ht&&le.response.status===409&&d.jsx("small",{className:"text-red-500",children:j??"This name is taken. Please choose a different name."})]}),d.jsxs("div",{className:"flex flex-col gap-1",children:[d.jsxs("label",{htmlFor:"description",className:"flex items-center gap-2 text-sm font-semibold text-neutral-500 uppercase tracking-wider",children:["Description",d.jsxs(Be,{children:[d.jsx($e,{children:d.jsx(Ma,{className:"size-4"})}),d.jsx(He,{children:"Describe the skill and when Tyce Agent should use it"})]})]}),d.jsx(Xe,{"data-testid":"prompt-description-input",id:"description",name:"description",value:x,onChange:G=>b(G.currentTarget.value.trimStart()),placeholder:"Description"})]}),n==="style"&&d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"flex flex-col gap-1",children:[d.jsx("label",{className:"text-sm font-semibold text-neutral-500 uppercase tracking-wider",children:"Document"}),d.jsxs("div",{className:"flex border border-neutral-200 rounded-lg p-1 gap-2 items-center @container",children:[Se&&d.jsxs(d.Fragment,{children:[d.jsx(qa,{className:"size-5 text-neutral-600 ml-1"}),d.jsx("span",{className:"truncate text-sm",children:Se})]}),d.jsxs(cn,{children:[d.jsx(X,{asChild:!0,variant:"ghost",size:"sm",className:he("h-8 px-3 text-primary",Se&&"ml-auto"),children:d.jsx(fn,{children:Se?"Change":"Upload"})}),d.jsxs(hn,{className:"flex flex-col gap-1 max-w-min p-1",children:[d.jsx(X,{type:"button",variant:"ghost",size:"sm",className:"text-sm h-min font-normal px-2 justify-start",onClick:ie,children:"From Computer"}),d.jsx(X,{type:"button",variant:"ghost",size:"sm",className:"text-sm h-min font-normal px-2 justify-start",onClick:()=>M("style_document"),children:"From Documents"})]})]})]})]}),d.jsxs("div",{className:"flex flex-col gap-1",children:[d.jsx("label",{className:"text-sm font-semibold text-neutral-500 uppercase tracking-wider",children:"Extract"}),d.jsxs("div",{className:"flex gap-4 items-center text-sm",children:[d.jsxs("label",{htmlFor:"formatting",className:"flex items-center gap-2 has-[input:disabled]:opacity-50",children:[d.jsx(qt,{id:"formatting",name:"style_prompt_type",value:Ce.FORMATTING,className:"data-[state=checked]:bg-primary",checked:Y.includes(Ce.FORMATTING),disabled:(Ee=(ce=(_==null?void 0:_.name)||(k==null?void 0:k.name)||t)==null?void 0:ce.toLowerCase())==null?void 0:Ee.endsWith(".pdf"),onCheckedChange:G=>{let Z=ae(Ce.FORMATTING,G);re(Z),m.current.abort(),m.current=new AbortController,oe(_||k||t,Z)}}),"Formatting"]}),d.jsxs("label",{htmlFor:"writing_style",className:"flex items-center gap-2",children:[d.jsx(qt,{id:"writing_style",name:"style_prompt_type",value:Ce.WRITING_STYLE,className:"data-[state=checked]:bg-primary",checked:Y.includes(Ce.WRITING_STYLE),onCheckedChange:G=>{let Z=ae(Ce.WRITING_STYLE,G);
24re(Z),m.current.abort(),m.current=new AbortController,oe(_||k||t,Z)}}),"Writing Style"]})]})]})]}),d.jsxs("div",{className:"flex flex-col gap-1 flex-1",children:[d.jsx("label",{htmlFor:"content",className:"text-sm font-semibold text-neutral-500 uppercase tracking-wider",children:"Prompt"}),d.jsxs("div",{className:"relative flex flex-1",children:[w?d.jsx(Da,{id:"content",name:"content",className:"flex-1 resize-none rounded-lg",value:C,onChange:G=>y(G.currentTarget.value),readOnly:!0,placeholder:`Extracting ${new Intl.ListFormat("en").format(Y)} from ${(_==null?void 0:_.name)??(k==null?void 0:k.name)??(t==null?void 0:t.split("/").at(-1))}`}):d.jsx(Ta,{className:"flex-1 min-h-full *:min-h-[calc(100%-8px)] rounded-lg border border-neutral-200",name:"content",as:"normal",value:C,onValueChange:G=>y(G),placeholder:"Skill Prompt"}),w&&d.jsx(Ge,{className:"animate-spin absolute bottom-0 right-0 m-2 text-primary"})]}),le&&!(le instanceof Ht)&&d.jsx("small",{className:"text-red-500",children:le.message})]}),d.jsxs("div",{className:"flex flex-col gap-1",children:[d.jsx("label",{className:"text-sm font-semibold text-neutral-500 uppercase tracking-wider",children:"TAGS"}),d.jsxs("div",{className:"flex items-center gap-1 flex-wrap",children:[F==null?void 0:F.map(G=>d.jsxs(fr,{variant:"outline",onClick:()=>L(Z=>Z.filter(J=>J.id!==G.id)),children:[G.name,d.jsx(un,{})]},G.id)),d.jsxs(cn,{modal:!0,children:[d.jsx(fn,{children:d.jsxs(fr,{variant:"outline",children:[d.jsx(fi,{}),"Add tag"]})}),d.jsx(hn,{className:"w-max p-1 [&_button]:px-2",children:d.jsx(lo,{disableActions:!0,onSelect:G=>L(Z=>Z.concat([G])),onCreate:G=>L(Z=>Z.concat([G])),filter:G=>F.findIndex(Z=>Z.id==G.id)===-1})})]})]})]}),fe&&d.jsxs("label",{htmlFor:"is_shared",className:"flex items-start gap-3 cursor-pointer rounded-xl",children:[d.jsx(qt,{name:"is_shared",id:"is_shared",className:"mt-0.5 rounded-sm",defaultChecked:l}),d.jsx("div",{className:"flex flex-col text-sm select-none",children:"Share with Organization"})]}),v&&d.jsx("small",{className:"text-red-600 -my-4",children:v})]}),d.jsx(ci,{}),d.jsxs("footer",{className:"flex justify-end gap-2 px-8",children:[c?d.jsx(si,{asChild:!0,children:d.jsx(X,{variant:"outline",size:"sm",onClick:()=>{f==null||f(),m.current.abort()},children:"Close"})}):d.jsx(X,{variant:"outline",size:"sm",onClick:()=>{f==null||f(),m.current.abort()},children:"Back"}),d.jsxs(X,{type:"submit",form:"prompt-form",variant:"primary",size:"sm",disabled:!p||!C||w||g,children:[g&&d.jsx(Ge,{className:"animate-spin"}),"Save"]})]})]})}}),d.jsx(ea,{className:"contents","data-sentry-element":"FocusScope","data-sentry-source-file":"create.tsx",children:d.jsx(eo,{open:D!==void 0,onOpenChange:$=>!$&&M(void 0),multiple:D==="resource",selectionMode:"files",accept:["pdf","tc"],onPick:$=>{if(D==="style_document"){const q=$[0];if(q){const ie={documentId:q.documentId,name:q.name,path:q.path};let ce=Y;q.name.toLowerCase().endsWith(".pdf")&&(ce=[Ce.WRITING_STYLE],re([Ce.WRITING_STYLE])),P(ie),B(void 0),m.current.abort(),m.current=new AbortController,oe(ie,ce)}}M(void 0)},"data-sentry-element":"KnowledgeBaseSelector","data-sentry-source-file":"create.tsx"})})]}):null}var je="Accordion",ao=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Pn,oo,so]=Fa(je),[Dt,Qd]=ai(je,[so,hi]),Dn=hi(),pi=we.forwardRef((e,n)=>{const{type:t,...r}=e,i=r,a=r;return d.jsx(Pn.Provider,{scope:e.__scopeAccordion,children:t==="multiple"?d.jsx(ho,{...a,ref:n}):d.jsx(fo,{...i,ref:n})})});pi.displayName=je;var[di,uo]=Dt(je),[mi,co]=Dt(je,{collapsible:!1}),fo=we.forwardRef((e,n)=>{const{value:t,defaultValue:r,onValueChange:i=()=>{},collapsible:a=!1,...l}=e,[o,s]=jn({prop:t,defaultProp:r??"",onChange:i,caller:je});return d.jsx(di,{scope:e.__scopeAccordion,value:we.useMemo(()=>o?[o]:[],[o]),onItemOpen:s,onItemClose:we.useCallback(()=>a&&s(""),[a,s]),children:d.jsx(mi,{scope:e.__scopeAccordion,collapsible:a,children:d.jsx(gi,{...l,ref:n})})})}),ho=we.forwardRef((e,n)=>{const{value:t,defaultValue:r,onValueChange:i=()=>{},...a}=e,[l,o]=jn({prop:t,defaultProp:r??[],onChange:i,caller:je}),s=we.useCallback(f=>o((c=[])=>[...c,f]),[o]),u=we.useCallback(f=>o((c=[])=>c.filter(p=>p!==f)),[o]);return d.jsx(di,{scope:e.__scopeAccordion,value:l,onItemOpen:s,onItemClose:u,children:d.jsx(mi,{scope:e.__scopeAccordion,collapsible:!0,children:d.jsx(gi,{...a,ref:n})})})}
24),[po,Ft]=Dt(je),gi=we.forwardRef((e,n)=>{const{__scopeAccordion:t,disabled:r,dir:i,orientation:a="vertical",...l}=e,o=we.useRef(null),s=Nn(o,n),u=oo(t),c=za(i)==="ltr",p=na(e.onKeyDown,h=>{var _;if(!ao.includes(h.key))return;const x=h.target,b=u().filter(B=>{var k;return!((k=B.ref.current)!=null&&k.disabled)}),C=b.findIndex(B=>B.ref.current===x),y=b.length;if(C===-1)return;h.preventDefault();let v=C;const S=0,j=y-1,E=()=>{v=C+1,v>j&&(v=S)},w=()=>{v=C-1,v<S&&(v=j)};switch(h.key){case"Home":v=S;break;case"End":v=j;break;case"ArrowRight":a==="horizontal"&&(c?E():w());break;case"ArrowDown":a==="vertical"&&E();break;case"ArrowLeft":a==="horizontal"&&(c?w():E());break;case"ArrowUp":a==="vertical"&&w();break}const z=v%y;(_=b[z].ref.current)==null||_.focus()});return d.jsx(po,{scope:t,disabled:r,direction:i,orientation:a,children:d.jsx(Pn.Slot,{scope:t,children:d.jsx(jt.div,{...l,"data-orientation":a,ref:s,onKeyDown:r?void 0:p})})})}),Ct="AccordionItem",[mo,Fn]=Dt(Ct),xi=we.forwardRef((e,n)=>{const{__scopeAccordion:t,value:r,...i}=e,a=Ft(Ct,t),l=uo(Ct,t),o=Dn(t),s=ta(),u=r&&l.value.includes(r)||!1,f=a.disabled||e.disabled;return d.jsx(mo,{scope:t,open:u,disabled:f,triggerId:s,children:d.jsx(La,{"data-orientation":a.orientation,"data-state":Si(u),...o,...i,ref:n,disabled:f,open:u,onOpenChange:c=>{c?l.onItemOpen(r):l.onItemClose(r)}})})});xi.displayName=Ct;var yi="AccordionHeader",ki=we.forwardRef((e,n)=>{const{__scopeAccordion:t,...r}=e,i=Ft(je,t),a=Fn(yi,t);return d.jsx(jt.h3,{"data-orientation":i.orientation,"data-state":Si(a.open),"data-disabled":a.disabled?"":void 0,...r,ref:n})});ki.displayName=yi;var xn="AccordionTrigger",bi=we.forwardRef((e,n)=>{const{__scopeAccordion:t,...r}=e,i=Ft(je,t),a=Fn(xn,t),l=co(xn,t),o=Dn(t);return d.jsx(Pn.ItemSlot,{scope:t,children:d.jsx(_a,{"aria-disabled":a.open&&!l.collapsible||void 0,"data-orientation":i.orientation,id:a.triggerId,...o,...r,ref:n})})});bi.displayName=xn;var wi="AccordionContent",vi=we.forwardRef((e,n)=>{const{__scopeAccordion:t,...r}=e,i=Ft(je,t),a=Fn(wi,t),l=Dn(t);return d.jsx(Ra,{role:"region","aria-labelledby":a.triggerId,"data-orientation":i.orientation,...l,...r,ref:n,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});vi.displayName=wi;function Si(e){return e?"open":"closed"}var go=pi,xo=xi,yo=ki,Ci=bi,Ii=vi;const Gd=go,ko=R.forwardRef(({className:e,...n},t)=>d.jsx(xo,{ref:t,className:he("not-last:border-b",e),...n}));ko.displayName="AccordionItem";const bo=R.forwardRef(({className:e,children:n,...t},r)=>d.jsx(yo,{className:"flex",children:d.jsxs(Ci,{ref:r,className:he("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",e),...t,children:[n,d.jsx(Oa,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})}));bo.displayName=Ci.displayName;const wo=R.forwardRef(({className:e,children:n,...t},r)=>d.jsx(Ii,{ref:r,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...t,children:d.jsx("div",{className:he("pb-4 pt-0",e),children:n})}));wo.displayName=Ii.displayName;function Yd(){}function Xd(){}function Jd(e){const n=[],t=String(e||"");let r=t.indexOf(","),i=0,a=!1;for(;!a;){r===-1&&(r=t.length,a=!0);const l=t.slice(i,r).trim();(l||!a)&&n.push(l),i=r+1,r=t.indexOf(",",i)}return n}function vo(e,n){const t=n||{};return(e[e.length-1]===""?[...e,""]:e).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}const So=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Co=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Io={};function hr(e,n){return(Io.jsx?Co:So).test(e)}const Eo=/[ \t\n\f\r]/g;function To(e){return typeof e=="object"?e.type==="text"?pr(e.value):!1:pr(e)}function pr(e){return e.replace(Eo,"")===""}class mt{constructor(n,t,r){this.normal=t,this.property=n,r&&(this.space=r)}}mt.prototype.normal={};mt.prototype.property={};mt.prototype.space=void 0;function Ei(e,n){const t={},r={};for(const i of e)Object.assign(t,i.property),Object.assign(r,i.normal);return new mt(t,r,n)}function yn(e){return e.toLowerCase()}class ye{constructor(n,t){this.attribute=t,this.property=n}}ye.prototype.attribute="";ye.prototype.booleanish=!1;ye.prototype.boolean=!1;ye.prototype.commaOrSpaceSeparated=!1;ye.prototype.commaSeparated=!1;ye.prototype.defined=!1;ye.prototype.mustUseProperty=!1;ye.prototype.number=!1;ye.prototype.overloadedBoolean=!1;ye.prototype.property="";ye.prototype.spaceSeparated=!1;ye.prototype.space=void 0;let Ao=0;const U=qe(),se=qe(),kn=qe(),A=qe(),ne=qe(),Ye=qe(),be=qe();function qe(){return 2**++Ao}const bn=Object.freeze(Object.defineProperty({__proto__:null,boolean:U,booleanish:se,commaOrSpaceSeparated:be,commaSeparated:Ye,number:A,overloadedBoolean:kn,spaceSeparated:ne},Symbol.toStringTag,{value:"Module"})),Vt=Object.keys(bn);class zn extends ye{constructor(n,t,r,i){let a=-1;if(super(n,t),dr(this,"space",i),typeof r=="number")for(;++a<Vt.length;){const l=Vt[a];dr(this,Vt[a],(r&bn[l])===bn[l])}}}zn.prototype.defined=!0;function dr(e,n,t){t&&(e[n]=t)}function Ze(e){const n={},t={};for(const[r,i]of Object.entries(e.properties)){const a=new zn(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),n[r]=a,t[yn(r)]=r,t[yn(a.attribute)]=r}return new mt(n,t,e.space)}const Ti=Ze({properties:{ariaActiveDescendant:null,ariaAtomic:se,ariaAutoComplete:null,ariaBusy:se,ariaChecked:se,ariaColCount:A,ariaColIndex:A,ariaColSpan:A,ariaControl
vendor: 5,361 bytes, line 24
24s:ne,ariaCurrent:null,ariaDescribedBy:ne,ariaDetails:null,ariaDisabled:se,ariaDropEffect:ne,ariaErrorMessage:null,ariaExpanded:se,ariaFlowTo:ne,ariaGrabbed:se,ariaHasPopup:null,ariaHidden:se,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ne,ariaLevel:A,ariaLive:null,ariaModal:se,ariaMultiLine:se,ariaMultiSelectable:se,ariaOrientation:null,ariaOwns:ne,ariaPlaceholder:null,ariaPosInSet:A,ariaPressed:se,ariaReadOnly:se,ariaRelevant:null,ariaRequired:se,ariaRoleDescription:ne,ariaRowCount:A,ariaRowIndex:A,ariaRowSpan:A,ariaSelected:se,ariaSetSize:A,ariaSort:null,ariaValueMax:A,ariaValueMin:A,ariaValueNow:A,ariaValueText:null,role:null},transform(e,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()}});function Ai(e,n){return n in e?e[n]:n}function ji(e,n){return Ai(e,n.toLowerCase())}const jo=Ze({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ye,acceptCharset:ne,accessKey:ne,action:null,allow:null,allowFullScreen:U,allowPaymentRequest:U,allowUserMedia:U,alt:null,as:null,async:U,autoCapitalize:null,autoComplete:ne,autoFocus:U,autoPlay:U,blocking:ne,capture:null,charSet:null,checked:U,cite:null,className:ne,cols:A,colSpan:null,content:null,contentEditable:se,controls:U,controlsList:ne,coords:A|Ye,crossOrigin:null,data:null,dateTime:null,decoding:null,default:U,defer:U,dir:null,dirName:null,disabled:U,download:kn,draggable:se,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:U,formTarget:null,headers:ne,height:A,hidden:kn,high:A,href:null,hrefLang:null,htmlFor:ne,httpEquiv:ne,id:null,imageSizes:null,imageSrcSet:null,inert:U,inputMode:null,integrity:null,is:null,isMap:U,itemId:null,itemProp:ne,itemRef:ne,itemScope:U,itemType:ne,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:U,low:A,manifest:null,max:null,maxLength:A,media:null,method:null,min:null,minLength:A,multiple:U,muted:U,name:null,nonce:null,noModule:U,noValidate:U,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:U,optimum:A,pattern:null,ping:ne,placeholder:null,playsInline:U,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:U,referrerPolicy:null,rel:ne,required:U,reversed:U,rows:A,rowSpan:A,sandbox:ne,scope:null,scoped:U,seamless:U,selected:U,shadowRootClonable:U,shadowRootDelegatesFocus:U,shadowRootMode:null,shape:null,size:A,sizes:null,slot:null,span:A,spellCheck:se,src:null,srcDoc:null,srcLang:null,srcSet:null,start:A,step:null,style:null,tabIndex:A,target:null,title:null,translate:null,type:null,typeMustMatch:U,useMap:null,value:se,width:A,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ne,axis:null,background:null,bgColor:null,border:A,borderColor:null,bottomMargin:A,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:U,declare:U,event:null,face:null,frame:null,frameBorder:null,hSpace:A,leftMargin:A,link:null,longDesc:null,lowSrc:null,marginHeight:A,marginWidth:A,noResize:U,noHref:U,noShade:U,noWrap:U,object:null,profile:null,prompt:null,rev:null,rightMargin:A,rules:null,scheme:null,scrolling:se,standby:null,summary:null,text:null,topMargin:A,valueType:null,version:null,vAlign:null,vLink:null,vSpace:A,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:U,disableRemotePlayback:U,prefix:null,property:null,results:A,security:null,unselectable:null},space:"html",transform:ji}),No=Ze({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRen
24dering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:be,accentHeight:A,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:A,amplitude:A,arabicForm:null,ascent:A,attributeName:null,attributeType:null,azimuth:A,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:A,by:null,calcMode:null,capHeight:A,className:ne,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRen
24dering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:A,diffuseConstant:A,direction:null,display:null,dur:null,divisor:A,dominantBaseline:null,download:U,dx:null,dy:null,edgeMode:null,editable:null,elevation:A,enableBackground:null,end:null,event:null,exponent:A,externalResourcesRequired:null,fill:null,fillOpacity:A,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:Ye,g2:Ye,glyphName:Ye,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:A,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:A,horizOriginX:A,horizOriginY:A,id:null,ideographic:A,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:A,k:A,k1:A,k2:A,k3:A,k4:A,kernelMatrix:be,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:A,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:A,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:A,overlineThickness:A,paintOrder:null,panose1:null,path:null,pathLength:A,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ne,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:A,pointsAtY:A,pointsAtZ:A,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:be,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:be,rev:be,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:be,requiredFeatures:be,requiredFonts:be,requiredFormats:be,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:A,specularExponent:A,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:A,strikethroughThickness:A,string:null,stroke:null,strokeDashArray:be,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:A,strokeOpacity:A,strokeWidth:null,style:null,surfaceScale:A,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:be,tabIndex:A,tableValues:null,target:null,targetX:A,targetY:A,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:be,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:A,underlineThickness:A,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:A,values:null,vAlphabetic:A,vMathematical:A,vectorEffect:null,vHanging:A,vIdeographic:A,version:null,vertAdvY:A,vertOriginX:A,vertOriginY:A,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:A,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Ai}),Ni=Ze({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}
vendor: 6,862 bytes, lines 24-25
24,space:"xlink",transform(e,n){return"xlink:"+n.slice(5).toLowerCase()}}),Pi=Ze({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:ji}),Di=Ze({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()}}),Po={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"},Do=/[A-Z]/g,mr=/-[a-z]/g,Fo=/^data[-\w.:]+$/i;function zo(e,n){const t=yn(n);let r=n,i=ye;if(t in e.normal)return e.property[e.normal[t]];if(t.length>4&&t.slice(0,4)==="data"&&Fo.test(n)){if(n.charAt(4)==="-"){const a=n.slice(5).replace(mr,_o);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=n.slice(4);if(!mr.test(a)){let l=a.replace(Do,Lo);l.charAt(0)!=="-"&&(l="-"+l),n="data"+l}}i=zn}return new i(r,n)}function Lo(e){return"-"+e.toLowerCase()}function _o(e){return e.charAt(1).toUpperCase()}const Ro=Ei([Ti,jo,Ni,Pi,Di],"html"),Ln=Ei([Ti,No,Ni,Pi,Di],"svg");function Zd(e){const n=String(e||"").trim();return n?n.split(/[ \t\n\r\f]+/g):[]}function Mo(e){return e.join(" ").trim()}var We={},Wt,gr;function Oo(){if(gr)return Wt;gr=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,t=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,o=/^\s+|\s+$/g,s=`
25`,u="/",f="*",c="",p="comment",h="declaration";Wt=function(b,C){if(typeof b!="string")throw new TypeError("First argument must be a string");if(!b)return[];C=C||{};var y=1,v=1;function S(L){var D=L.match(n);D&&(y+=D.length);var M=L.lastIndexOf(s);v=~M?L.length-M:v+L.length}function j(){var L={line:y,column:v};return function(D){return D.position=new E(L),_(),D}}function E(L){this.start=L,this.end={line:y,column:v},this.source=C.source}E.prototype.content=b;function w(L){var D=new Error(C.source+":"+y+":"+v+": "+L);if(D.reason=L,D.filename=C.source,D.line=y,D.column=v,D.source=b,!C.silent)throw D}function z(L){var D=L.exec(b);if(D){var M=D[0];return S(M),b=b.slice(M.length),D}}function _(){z(t)}function B(L){var D;for(L=L||[];D=k();)D!==!1&&L.push(D);return L}function k(){var L=j();if(!(u!=b.charAt(0)||f!=b.charAt(1))){for(var D=2;c!=b.charAt(D)&&(f!=b.charAt(D)||u!=b.charAt(D+1));)++D;if(D+=2,c===b.charAt(D-1))return w("End of comment missing");var M=b.slice(2,D-2);return v+=2,S(M),b=b.slice(D),v+=2,L({type:p,comment:M})}}function P(){var L=j(),D=z(r);if(D){if(k(),!z(i))return w("property missing ':'");var M=z(a),Y=L({type:h,property:x(D[0].replace(e,c)),value:M?x(M[0].replace(e,c)):c});return z(l),Y}}function F(){var L=[];B(L);for(var D;D=P();)D!==!1&&(L.push(D),B(L));return L}return _(),F()};function x(b){return b?b.replace(o,c):c}return Wt}var xr;function Bo(){if(xr)return We;xr=1;var e=We&&We.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(We,"__esModule",{value:!0}),We.default=t;var n=e(Oo());function t(r,i){var a=null;if(!r||typeof r!="string")return a;var l=(0,n.default)(r),o=typeof i=="function";return l.forEach(function(s){if(s.type==="declaration"){var u=s.property,f=s.value;o?i(u,f,s):f&&(a=a||{},a[u]=f)}}),a}return We}var it={},yr;function $o(){if(yr)return it;yr=1,Object.defineProperty(it,"__esModule",{value:!0}),it.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,t=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,a=function(u){return!u||t.test(u)||e.test(u)},l=function(u,f){return f.toUpperCase()},o=function(u,f){return"".concat(f,"-")},s=function(u,f){return f===void 0&&(f={}),a(u)?u:(u=u.toLowerCase(),f.reactCompat?u=u.replace(i,o):u=u.replace(r,o),u.replace(n,l))};return it.camelCase=s,it}var lt,kr;function Ho(){if(kr)return lt;kr=1;var e=lt&&lt.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},n=e(Bo()),t=$o();function r(i,a){var l={};return!i||typeof i!="string"||(0,n.default)(i,function(o,s){o&&s&&(l[(0,t.camelCase)(o,a)]=s)}),l}return r.default=r,lt=r,lt}var Uo=Ho();const qo=ri(Uo),Fi=zi("end"),_n=zi("start");function zi(e){return n;function n(t){const r=t&&t.position&&t.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function Vo(e){const n=_n(e),t=Fi(e);if(n&&t)return{start:n,end:t}}function ct(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?br(e.position):"start"in e||"end"in e?br(e):"line"in e||"column"in e?wn(e):""}function wn(e){return wr(e&&e.line)+":"+wr(e&&e.column)}function br(e){return wn(e&&e.start)+"-"+wn(e&&e.end)}function wr(e){return e&&typeof e=="number"?e:1}class de extends Error{constructor(n,t,r){super(),typeof t=="string"&&(r=t,t=void 0);let i="",a={},l=!1;if(t&&("line"in t&&"column"in t?a={place:t}:"start"in t&&"end"in t?a={place:t}:"type"in t?a={ancestors:[t],place:t.position}:a={...t}),typeof n=="string"?i=n:!a.cause&&n&&(l=!0,i=n.message,a.cause=n),!a.ruleId&&!a.source&&typeof r=="string"){const s=r.indexOf(":");s===-1?a.ruleId=r:(a.source=r.slice(0,s),a.ruleId=r.slice(s+1))}if(!a.place&&a.ancestors&&a.ancestors){const s=a.ancestors[a.ancestors.length-1];s&&(a.place=s.position)}const o=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=o?o.line:void 0,this.name=ct(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=l&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual,this.expected,this.note,this.url}}de.prototype.file="";de.prototype.name="";de.prototype.reason="";de.prototype.message="";de.prototype.stack="";de.prototype.column=void 0;de.prototype.line=void 0;de.prototype.ancestors=void 0;de.prototype.cause=void 0;de.prototype.fatal=void 0;de.prototype.place=void 0;de.prototype.ruleId=void 0;de.prototype.source=void 0;const Rn={}.hasOwnProperty,Wo=new Map,Ko=/[A-Z]/g,Qo=new Set(["table","tbody","thead","tfoot","tr"]),Go=new Set(["td","th"]),Li="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Yo(e,n){if(!n||n.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const t=n.filePath||void 0;let r;if(n.development){if(typeof n.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=is(t,n.jsxDEV)}else{if(typeof n.jsx!="function")throw new TypeError("Expected `jsx` in production options");
vendor: 10,521 bytes, line 25
25if(typeof n.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=rs(t,n.jsx,n.jsxs)}const i={Fragment:n.Fragment,ancestors:[],components:n.components||{},create:r,elementAttributeNameCase:n.elementAttributeNameCase||"react",evaluater:n.createEvaluater?n.createEvaluater():void 0,filePath:t,ignoreInvalidStyle:n.ignoreInvalidStyle||!1,passKeys:n.passKeys!==!1,passNode:n.passNode||!1,schema:n.space==="svg"?Ln:Ro,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},a=_i(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function _i(e,n,t){if(n.type==="element")return Xo(e,n,t);if(n.type==="mdxFlowExpression"||n.type==="mdxTextExpression")return Jo(e,n);if(n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement")return es(e,n,t);if(n.type==="mdxjsEsm")return Zo(e,n);if(n.type==="root")return ts(e,n,t);if(n.type==="text")return ns(e,n)}function Xo(e,n,t){const r=e.schema;let i=r;n.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Ln,e.schema=i),e.ancestors.push(n);const a=Mi(e,n.tagName,!1),l=ls(e,n);let o=On(e,n);return Qo.has(n.tagName)&&(o=o.filter(function(s){return typeof s=="string"?!To(s):!0})),Ri(e,l,a,n),Mn(l,o),e.ancestors.pop(),e.schema=r,e.create(n,a,l,t)}function Jo(e,n){if(n.data&&n.data.estree&&e.evaluater){const r=n.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}pt(e,n.position)}function Zo(e,n){if(n.data&&n.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(n.data.estree);pt(e,n.position)}function es(e,n,t){const r=e.schema;let i=r;n.name==="svg"&&r.space==="html"&&(i=Ln,e.schema=i),e.ancestors.push(n);const a=n.name===null?e.Fragment:Mi(e,n.name,!0),l=as(e,n),o=On(e,n);return Ri(e,l,a,n),Mn(l,o),e.ancestors.pop(),e.schema=r,e.create(n,a,l,t)}function ts(e,n,t){const r={};return Mn(r,On(e,n)),e.create(n,e.Fragment,r,t)}function ns(e,n){return n.value}function Ri(e,n,t,r){typeof t!="string"&&t!==e.Fragment&&e.passNode&&(n.node=r)}function Mn(e,n){if(n.length>0){const t=n.length>1?n:n[0];t&&(e.children=t)}}function rs(e,n,t){return r;function r(i,a,l,o){const u=Array.isArray(l.children)?t:n;return o?u(a,l,o):u(a,l)}}function is(e,n){return t;function t(r,i,a,l){const o=Array.isArray(a.children),s=_n(r);return n(i,a,l,o,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function ls(e,n){const t={};let r,i;for(i in n.properties)if(i!=="children"&&Rn.call(n.properties,i)){const a=os(e,i,n.properties[i]);if(a){const[l,o]=a;e.tableCellAlignToStyle&&l==="align"&&typeof o=="string"&&Go.has(n.tagName)?r=o:t[l]=o}}if(r){const a=t.style||(t.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return t}function as(e,n){const t={};for(const r of n.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const a=r.data.estree.body[0];a.type;const l=a.expression;l.type;const o=l.properties[0];o.type,Object.assign(t,e.evaluater.evaluateExpression(o.argument))}else pt(e,n.position);else{const i=r.name;let a;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const o=r.value.data.estree.body[0];o.type,a=e.evaluater.evaluateExpression(o.expression)}else pt(e,n.position);else a=r.value===null?!0:r.value;t[i]=a}return t}function On(e,n){const t=[];let r=-1;const i=e.passKeys?new Map:Wo;for(;++r<n.children.length;){const a=n.children[r];let l;if(e.passKeys){const s=a.type==="element"?a.tagName:a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement"?a.name:void 0;if(s){const u=i.get(s)||0;l=s+"-"+u,i.set(s,u+1)}}const o=_i(e,a,l);o!==void 0&&t.push(o)}return t}function os(e,n,t){const r=zo(e.schema,n);if(!(t==null||typeof t=="number"&&Number.isNaN(t))){if(Array.isArray(t)&&(t=r.commaSeparated?vo(t):Mo(t)),r.property==="style"){let i=typeof t=="object"?t:ss(e,String(t));return e.stylePropertyNameCase==="css"&&(i=us(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?Po[r.property]||r.property:r.attribute,t]}}function ss(e,n){try{return qo(n,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};const r=t,i=new de("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=Li+"#cannot-parse-style-attribute",i}}function Mi(e,n,t){let r;if(!t)r={type:"Literal",value:n};else if(n.includes(".")){const i=n.split(".");let a=-1,l;for(;++a<i.length;){const o=hr(i[a])?{type:"Identifier",name:i[a]}:{type:"Literal",value:i[a]};l=l?{type:"MemberExpression",object:l,property:o,computed:!!(a&&o.type==="Literal"),optional:!1}:o}r=l}else r=hr(n)&&!/^[a-z]/.test(n)?{type:"Identifier",name:n}:{type:"Literal",value:n};if(r.type==="Literal"){const i=r.value;return Rn.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);pt(e)}function pt(e,n){const t=new de("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:n,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw t.file=e.filePath||void 0,t.url=Li+"#cannot-handle-mdx-estrees-without-createevaluater",t}function us(e){const n={};let t;for(t in e)Rn.call(e,t)&&(n[cs(t)]=e[t]);return n}function cs(e){let n=e.replace(Ko,fs);return n.slice(0,3)==="ms-"&&(n="-"+n),n}function fs(e){return"-"+e.toLowerCase()}const Kt={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"]},hs={};function Bn(e,n){const t=hs,r=typeof t.includeImageAlt=="boolean"?t.includeImageAlt:!0,i=typeof t.includeHtml=="boolean"?t.includeHtml:!0;return Oi(e,r,i)}function Oi(e,n,t){if(ps(e)){if("value"in e)return e.type==="html"&&!t?"":e.value;if(n&&"alt"in e&&e.alt)return e.alt;if("children"in e)return vr(e.children,n,t)}return Array.isArray(e)?vr(e,n,t):""}function vr(e,n,t){const r=[];let i=-1;for(;++i<e.length;)r[i]=Oi(e[i],n,t);return r.join("")}function ps(e){return!!(e&&typeof e=="object")}const Sr=document.createElement("i");function $n(e){const n="&"+e+";";Sr.innerHTML=n;const t=Sr.textContent;return t.charCodeAt(t.length-1)===59&&e!=="semi"||t===n?!1:t}function ve(e,n,t,r){const i=e.length;let a=0,l;if(n<0?n=-n>i?0:i+n:n=n>i?i:n,t=t>0?t:0,r.length<1e4)l=Array.from(r),l.unshift(n,t),e.splice(...l);else for(t&&e.splice(n,t);a<r.length;)l=r.slice(a,a+1e4),l.unshift(n,0),e.splice(...l),a+=1e4,n+=1e4}function Ie(e,n){return e.length>0?(ve(e,e.length,0,n),e):n}const Cr={}.hasOwnProperty;function Bi(e){const n={};let t=-1;for(;++t<e.length;)ds(n,e[t]);return n}function ds(e,n){let t;for(t in n){const i=(Cr.call(e,t)?e[t]:void 0)||(e[t]={}),a=n[t];let l;if(a)for(l in a){Cr.call(i,l)||(i[l]=[]);const o=a[l];ms(i[l],Array.isArray(o)?o:o?[o]:[])}}}function ms(e,n){let t=-1;const r=[];for(;++t<n.length;)(n[t].add==="after"?e:r).push(n[t]);ve(e,0,0,r)}function $i(e,n){const t=Number.parseInt(e,n);return t<9||t===11||t>13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||(t&65535)===65535||(t&65535)===65534||t>1114111?"�":String.fromCodePoint(t)}function Ae(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const me=Re(/[A-Za-z]/),pe=Re(/[\dA-Za-z]/),gs=Re(/[#-'*+\--9=?A-Z^-~]/);function It(e){return e!==null&&(e<32||e===127)}const vn=Re(/\d/),xs=Re(/[\dA-Fa-f]/),ys=Re(/[!-/:-@[-`{-~]/);function O(e){return e!==null&&e<-2}function te(e){return e!==null&&(e<0||e===32)}function V(e){return e===-2||e===-1||e===32}const zt=Re(new RegExp("\\p{P}|\\p{S}","u")),Ue=Re(/\s/);function Re(e){return n;function n(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function et(e){const n=[];let t=-1,r=0,i=0;for(;++t<e.length;){const a=e.charCodeAt(t);let l="";if(a===37&&pe(e.charCodeAt(t+1))&&pe(e.charCodeAt(t+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(l=String.fromCharCode(a));else if(a>55295&&a<57344){const o=e.charCodeAt(t+1);a<56320&&o>56319&&o<57344?(l=String.fromCharCode(a,o),i=1):l="�"}else l=String.fromCharCode(a);l&&(n.push(e.slice(r,t),encodeURIComponent(l)),r=t+i+1,l=""),i&&(t+=i,i=0)}return n.join("")+e.slice(r)}function K(e,n,t,r){const i=r?r-1:Number.POSITIVE_INFINITY;let a=0;return l;function l(s){return V(s)?(e.enter(t),o(s)):n(s)}function o(s){return V(s)&&a++<i?(e.consume(s),o):(e.exit(t),n(s))}}const ks={tokenize:bs};function bs(e){const n=e.attempt(this.parser.constructs.contentInitial,r,i);let t;return n;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),K(e,n,"linePrefix")}function i(o){return e.enter("paragraph"),a(o)}function a(o){const s=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=s),t=s,l(o)}function l(o){if(o===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(o);return}return O(o)?(e.consume(o),e.exit("chunkText"),a):(e.consume(o),l)}}const ws={tokenize:vs},Ir={tokenize:Ss};function vs(e){const n=this,t=[];let r=0,i,a,l;return o;function o(S){if(r<t.length){const j=t[r];return n.containerState=j[1],e.attempt(j[0].continuation,s,u)(S)}return u(S)}function s(S){if(r++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,i&&v();const j=n.events.length;let E=j,w;for(;E--;)if(n.events[E][0]==="exit"&&n.events[E][1].type==="chunkFlow"){w=n.events[E][1].end;break}y(r);let z=j;for(;z<n.events.length;)n.events[z][1].end={...w},z++;return ve(n.events,E+1,0,n.events.slice(j)),n.events.length=z,u(S)}return o(S)}function u(S){if(r===t.length){if(!i)return p(S);if(i.currentConstruct&&i.currentConstruct.concrete)return x(S);n.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(Ir,f,c)(S)}function f(S){return i&&v(),y(r),p(S)}function c(S){return n.parser.lazy[n.now().line]=r!==t.length,l=n.now().offset,x(S)}function p(S){return n.containerState={},e.attempt(Ir,h,x)(S)}function h(S){return r++,t.push([n.currentConstruct,n.containerState]),p(S)}function x(S){if(S===null){i&&v(),y(0),e.consume(S);return}return i=i||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:a}),b(S)}function b(S){if(S===null){C(e.exit("chunkFlow"),!0),y(0),e.consume(S);return}return O(S)?(e.consume(S),C(e.exit("chunkFlow")),r=0,n.interrupt=void 0,o):(e.consume(S),b)}function C(S,j){const E=n.sliceStream(S);
vendor: 6,646 bytes, line 25
25if(j&&E.push(null),S.previous=a,a&&(a.next=S),a=S,i.defineSkip(S.start),i.write(E),n.parser.lazy[S.start.line]){let w=i.events.length;for(;w--;)if(i.events[w][1].start.offset<l&&(!i.events[w][1].end||i.events[w][1].end.offset>l))return;const z=n.events.length;let _=z,B,k;for(;_--;)if(n.events[_][0]==="exit"&&n.events[_][1].type==="chunkFlow"){if(B){k=n.events[_][1].end;break}B=!0}for(y(r),w=z;w<n.events.length;)n.events[w][1].end={...k},w++;ve(n.events,_+1,0,n.events.slice(z)),n.events.length=w}}function y(S){let j=t.length;for(;j-- >S;){const E=t[j];n.containerState=E[1],E[0].exit.call(n,e)}t.length=S}function v(){i.write([null]),a=void 0,i=void 0,n.containerState._closeFlow=void 0}}function Ss(e,n,t){return K(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Je(e){if(e===null||te(e)||Ue(e))return 1;if(zt(e))return 2}function Lt(e,n,t){const r=[];let i=-1;for(;++i<e.length;){const a=e[i].resolveAll;a&&!r.includes(a)&&(n=a(n,t),r.push(a))}return n}const Sn={name:"attention",resolveAll:Cs,tokenize:Is};function Cs(e,n){let t=-1,r,i,a,l,o,s,u,f;for(;++t<e.length;)if(e[t][0]==="enter"&&e[t][1].type==="attentionSequence"&&e[t][1]._close){for(r=t;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&n.sliceSerialize(e[r][1]).charCodeAt(0)===n.sliceSerialize(e[t][1]).charCodeAt(0)){if((e[r][1]._close||e[t][1]._open)&&(e[t][1].end.offset-e[t][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[t][1].end.offset-e[t][1].start.offset)%3))continue;s=e[r][1].end.offset-e[r][1].start.offset>1&&e[t][1].end.offset-e[t][1].start.offset>1?2:1;const c={...e[r][1].end},p={...e[t][1].start};Er(c,-s),Er(p,s),l={type:s>1?"strongSequence":"emphasisSequence",start:c,end:{...e[r][1].end}},o={type:s>1?"strongSequence":"emphasisSequence",start:{...e[t][1].start},end:p},a={type:s>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[t][1].start}},i={type:s>1?"strong":"emphasis",start:{...l.start},end:{...o.end}},e[r][1].end={...l.start},e[t][1].start={...o.end},u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=Ie(u,[["enter",e[r][1],n],["exit",e[r][1],n]])),u=Ie(u,[["enter",i,n],["enter",l,n],["exit",l,n],["enter",a,n]]),u=Ie(u,Lt(n.parser.constructs.insideSpan.null,e.slice(r+1,t),n)),u=Ie(u,[["exit",a,n],["enter",o,n],["exit",o,n],["exit",i,n]]),e[t][1].end.offset-e[t][1].start.offset?(f=2,u=Ie(u,[["enter",e[t][1],n],["exit",e[t][1],n]])):f=0,ve(e,r-1,t-r+3,u),t=r+u.length-f-2;break}}for(t=-1;++t<e.length;)e[t][1].type==="attentionSequence"&&(e[t][1].type="data");return e}function Is(e,n){const t=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Je(r);let a;return l;function l(s){return a=s,e.enter("attentionSequence"),o(s)}function o(s){if(s===a)return e.consume(s),o;const u=e.exit("attentionSequence"),f=Je(s),c=!f||f===2&&i||t.includes(s),p=!i||i===2&&f||t.includes(r);return u._open=!!(a===42?c:c&&(i||!p)),u._close=!!(a===42?p:p&&(f||!c)),n(s)}}function Er(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const Es={name:"autolink",tokenize:Ts};function Ts(e,n,t){let r=0;return i;function i(h){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(h){return me(h)?(e.consume(h),l):h===64?t(h):u(h)}function l(h){return h===43||h===45||h===46||pe(h)?(r=1,o(h)):u(h)}function o(h){return h===58?(e.consume(h),r=0,s):(h===43||h===45||h===46||pe(h))&&r++<32?(e.consume(h),o):(r=0,u(h))}function s(h){return h===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),n):h===null||h===32||h===60||It(h)?t(h):(e.consume(h),s)}function u(h){return h===64?(e.consume(h),f):gs(h)?(e.consume(h),u):t(h)}function f(h){return pe(h)?c(h):t(h)}function c(h){return h===46?(e.consume(h),r=0,f):h===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),n):p(h)}function p(h){if((h===45||pe(h))&&r++<63){const x=h===45?p:c;return e.consume(h),x}return t(h)}}const gt={partial:!0,tokenize:As};function As(e,n,t){return r;function r(a){return V(a)?K(e,i,"linePrefix")(a):i(a)}function i(a){return a===null||O(a)?n(a):t(a)}}const Hi={continuation:{tokenize:Ns},exit:Ps,name:"blockQuote",tokenize:js};function js(e,n,t){const r=this;return i;function i(l){if(l===62){const o=r.containerState;return o.open||(e.enter("blockQuote",{_container:!0}),o.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(l),e.exit("blockQuoteMarker"),a}return t(l)}function a(l){return V(l)?(e.enter("blockQuotePrefixWhitespace"),e.consume(l),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(l))}}function Ns(e,n,t){const r=this;return i;function i(l){return V(l)?K(e,a,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):a(l)}function a(l){return e.attempt(Hi,n,t)(l)}}function Ps(e){e.exit("blockQuote")}const Ui={name:"characterEscape",tokenize:Ds};function Ds(e,n,t){return r;function r(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),i}function i(a){return ys(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):t(a)}}const qi={name:"characterReference",tokenize:Fs};function Fs(e,n,t){const r=this;let i=0,a,l;return o;function o(c){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),s}function s(c){return c===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(c),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),a=31,l=pe,f(c))}function u(c){return c===88||c===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(c),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,l=xs,f):(e.enter("characterReferenceValue"),a=7,l=vn,f(c))}function f(c){if(c===59&&i){const p=e.exit("characterReferenceValue");return l===pe&&!$n(r.sliceSerialize(p))?t(c):(e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return l(c)&&i++<a?(e.consume(c),f):t(c)}}const Tr={partial:!0,tokenize:Ls},Ar={concrete:!0,name:"codeFenced",tokenize:zs};function zs(e,n,t){const r=this,i={partial:!0,tokenize:E};let a=0,l=0,o;return s;function s(w){return u(w)}function u(w){const z=r.events[r.events.length-1];return a=z&&z[1].type==="linePrefix"?z[2].sliceSerialize(z[1],!0).length:0,o=w,e.enter("co
25deFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),f(w)}function f(w){return w===o?(l++,e.consume(w),f):l<3?t(w):(e.exit("codeFencedFenceSequence"),V(w)?K(e,c,"whitespace")(w):c(w))}function c(w){return w===null||O(w)?(e.exit("codeFencedFence"),r.interrupt?n(w):e.check(Tr,b,j)(w)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(w))}function p(w){return w===null||O(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(w)):V(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),K(e,h,"whitespace")(w)):w===96&&w===o?t(w):(e.consume(w),p)}function h(w){return w===null||O(w)?c(w):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),x(w))}function x(w){return w===null||O(w)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(w)):w===96&&w===o?t(w):(e.consume(w),x)}function b(w){return e.attempt(i,j,C)(w)}function C(w){return e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),y}function y(w){return a>0&&V(w)?K(e,v,"linePrefix",a+1)(w):v(w)}function v(w){return w===null||O(w)?e.check(Tr,b,j)(w):(e.enter("codeFlowValue"),S(w))}function S(w){return w===null||O(w)?(e.exit("codeFlowValue"),v(w)):(e.consume(w),S)}function j(w){return e.exit("codeFenced"),n(w)}function E(w,z,_){let B=0;return k;function k(M){return w.enter("lineEnding"),w.consume(M),w.exit("lineEnding"),P}function P(M){return w.enter("codeFencedFence"),V(M)?K(w,F,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(M):F(M)}function F(M){return M===o?(w.enter("codeFencedFenceSequence"),L(M)):_(M)}function L(M){return M===o?(B++,w.consume(M),L):B>=l?(w.exit("codeFencedFenceSequence"),V(M)?K(w,D,"whitespace")(M):D(M)):_(M)}function D(M){return M===null||O(M)?(w.exit("codeFencedFence"),z(M)):_(M)}}}function Ls(e,n,t){const r=this;return i;function i(l){return l===null?t(l):(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),a)}function a(l){return r.parser.lazy[r.now().line]?t(l):n(l)}}const Qt={name:"codeIndented",tokenize:Rs},_s={partial:!0,tokenize:Ms};function Rs(e,n,t){const r=this;return i;function i(u){return e.enter("codeIndented"),K(e,a,"linePrefix",5)(u)}function a(u){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?l(u):t(u)}function l(u){return u===null?s(u):O(u)?e.attempt(_s,l,s)(u):(e.enter("codeFlowValue"),o(u))}function o(u){return u===null||O(u)?(e.exit("codeFlowValue"),l(u)):(e.consume(u),o)}function s(u){return e.exit("codeIndented"),n(u)}}function Ms(e,n,t){const r=this;return i;function i(l){return r.parser.lazy[r.now().line]?t(l):O(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),i):K(e,a,"linePrefix",5)(l)}function a(l){const o=r.events[r.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?n(l):O(l)?i(l):t(l)}}const Os={name:"codeText",previous:$s,resolve:Bs,tokenize:Hs};function Bs(e){let n=e.length-4,t=3,r,i;if((e[t][1].type==="lineEnding"||e[t][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(r=t;++r<n;)if(e[r][1].type==="codeTextData"){e[t][1].type="codeTextPadding",e[n][1].type="codeTextPadding",t+=2,n-=2;break}}for(r=t-1,n++;++r<=n;)i===void 0?r!==n&&e[r][1].type!=="lineEnding"&&(i=r):(r===n||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),n-=r-i-2,r=i+2),i=void 0);return e}function $s(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Hs(e,n,t){let r=0,i,a;return l;function l(c){return e.enter("codeText"),e.enter("codeTextSequence"),o(c)}function o(c){return c===96?(e.consume(c),r++,o):(e.exit("codeTextSequence"),s(c))}function s(c){return c===null?t(c):c===32?(e.enter("space"),e.consume(c),e.exit("space"),s):c===96?(a=e.enter("codeTextSequence"),i=0,f(c)):O(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),s):(e.enter("codeTextData"),u(c))}function u(c){return c===null||c===32||c===96||O(c)?(e.exit("codeTextData"),s(c)):(e.consume(c),u)}function f(c){return c===96?(e.consume(c),i++,f):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),n(c)):(a.type="codeTextData",u(c))}}class Us{constructor(n){this.left=n?[...n]:[],this.right=[]}get(n){if(n<0||n>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+n+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return n<this.left.length?this.left[n]:this.right[this.right.length-n+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(n,t){const r=t??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(n,r):n>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-n+this.left.length).reverse():this.left.slice(n).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(n,t,r){const i=t||0;this.setCursor(Math.trunc(n));const a=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&at(this.left,r),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(n){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(n)}pushMany(n){this.setCursor(Number.POSITIVE_INFINITY),at(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),at(this.right,n.reverse())}setCursor(n){if(!(n===this.left.length||n>this.left.length&&this.right.length===0||n<0&&this.left.length===0))if(n<this.left.length){const t=this.left.splice(n,Number.POSITIVE_INFINITY);at(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);at(this.left,t.reverse())}}}function at(e,n){let t=0;if(n.length<1e4)e.push(...n);else for(;t<n.length;)e.push(...n.slice(t,t+1e4)),t+=1e4}function Vi(e){const n={};let t=-1,r,i,a,l,o,s,u;const f=new Us(e);for(;++t<f.length;){for(;t in n;)t=n[t];if(r=f.get(t),t&&r[1].type==="chunkFlow"&&f.get(t-1)[1].type==="listItemPrefix"&&(s=r[1]._tokenizer.events,a=0,a<s.length&&s[a][1].type==="lineEndingBlank"&&(a+=2),a<s.length&&s[a][1].type==="content"))for(;++a<s.length&&s[a][1].type!=="content";)s[a][1].type==="chunkText"&&(s[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]==="enter")r[1].contentType&&(Object.assign(n,qs(f,t)),t=n[t],u=!0);else if(r[1]._container){for(a=t,i=void 0;a--;)if(l=f.get(a),l[1].type==="lineEnding"||l[1].type==="lineEndingBlank")l[0]==="enter"&&(i&&(f.get(i)[1].type="lineEndingBlank"),l[1].type="lineEnding",i=a);else if(!(l[1].type==="linePrefix"||l[1].type==="listItemIndent"))break;i&&(r[1].end={...f.get(i)[1].start},o=f.slice(i,t),o.unshift(r),f.splice(i,t-i+1,o))}}return ve(e,0,Number.POSITIVE_INFINITY,f.slice(0)),!u}function qs(e,n){const t=e.get(n)[1],r=e.get(n)[2];let i=n-1;const a=[];let l=t._tokenizer;l||(l=r.parser[t.contentType](t.start),t._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));const o=l.events,s=[],u={};let f,c,p=-1,h=t,x=0,b=0;const C=[b];for(;h;){for(;e.get(++i)[1]!==h;);
vendor: 22,924 bytes, line 25
25a.push(i),h._tokenizer||(f=r.sliceStream(h),h.next||f.push(null),c&&l.defineSkip(h.start),h._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(f),h._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),c=h,h=h.next}for(h=t;++p<o.length;)o[p][0]==="exit"&&o[p-1][0]==="enter"&&o[p][1].type===o[p-1][1].type&&o[p][1].start.line!==o[p][1].end.line&&(b=p+1,C.push(b),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(l.events=[],h?(h._tokenizer=void 0,h.previous=void 0):C.pop(),p=C.length;p--;){const y=o.slice(C[p],C[p+1]),v=a.pop();s.push([v,v+y.length-1]),e.splice(v,2,y)}for(s.reverse(),p=-1;++p<s.length;)u[x+s[p][0]]=x+s[p][1],x+=s[p][1]-s[p][0]-1;return u}const Vs={resolve:Ks,tokenize:Qs},Ws={partial:!0,tokenize:Gs};function Ks(e){return Vi(e),e}function Qs(e,n){let t;return r;function r(o){return e.enter("content"),t=e.enter("chunkContent",{contentType:"content"}),i(o)}function i(o){return o===null?a(o):O(o)?e.check(Ws,l,a)(o):(e.consume(o),i)}function a(o){return e.exit("chunkContent"),e.exit("content"),n(o)}function l(o){return e.consume(o),e.exit("chunkContent"),t.next=e.enter("chunkContent",{contentType:"content",previous:t}),t=t.next,i}}function Gs(e,n,t){const r=this;return i;function i(l){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),K(e,a,"linePrefix")}function a(l){if(l===null||O(l))return t(l);const o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?n(l):e.interrupt(r.parser.constructs.flow,t,n)(l)}}function Wi(e,n,t,r,i,a,l,o,s){const u=s||Number.POSITIVE_INFINITY;let f=0;return c;function c(y){return y===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(y),e.exit(a),p):y===null||y===32||y===41||It(y)?t(y):(e.enter(r),e.enter(l),e.enter(o),e.enter("chunkString",{contentType:"string"}),b(y))}function p(y){return y===62?(e.enter(a),e.consume(y),e.exit(a),e.exit(i),e.exit(r),n):(e.enter(o),e.enter("chunkString",{contentType:"string"}),h(y))}function h(y){return y===62?(e.exit("chunkString"),e.exit(o),p(y)):y===null||y===60||O(y)?t(y):(e.consume(y),y===92?x:h)}function x(y){return y===60||y===62||y===92?(e.consume(y),h):h(y)}function b(y){return!f&&(y===null||y===41||te(y))?(e.exit("chunkString"),e.exit(o),e.exit(l),e.exit(r),n(y)):f<u&&y===40?(e.consume(y),f++,b):y===41?(e.consume(y),f--,b):y===null||y===32||y===40||It(y)?t(y):(e.consume(y),y===92?C:b)}function C(y){return y===40||y===41||y===92?(e.consume(y),b):b(y)}}function Ki(e,n,t,r,i,a){const l=this;let o=0,s;return u;function u(h){return e.enter(r),e.enter(i),e.consume(h),e.exit(i),e.enter(a),f}function f(h){return o>999||h===null||h===91||h===93&&!s||h===94&&!o&&"_hiddenFootnoteSupport"in l.parser.constructs?t(h):h===93?(e.exit(a),e.enter(i),e.consume(h),e.exit(i),e.exit(r),n):O(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),c(h))}function c(h){return h===null||h===91||h===93||O(h)||o++>999?(e.exit("chunkString"),f(h)):(e.consume(h),s||(s=!V(h)),h===92?p:c)}function p(h){return h===91||h===92||h===93?(e.consume(h),o++,c):c(h)}}function Qi(e,n,t,r,i,a){let l;return o;function o(p){return p===34||p===39||p===40?(e.enter(r),e.enter(i),e.consume(p),e.exit(i),l=p===40?41:p,s):t(p)}function s(p){return p===l?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),n):(e.enter(a),u(p))}function u(p){return p===l?(e.exit(a),s(l)):p===null?t(p):O(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),K(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===l||p===null||O(p)?(e.exit("chunkString"),u(p)):(e.consume(p),p===92?c:f)}function c(p){return p===l||p===92?(e.consume(p),f):f(p)}}function ft(e,n){let t;return r;function r(i){return O(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t=!0,r):V(i)?K(e,r,t?"linePrefix":"lineSuffix")(i):n(i)}}const Ys={name:"definition",tokenize:Js},Xs={partial:!0,tokenize:Zs};function Js(e,n,t){const r=this;let i;return a;function a(h){return e.enter("definition"),l(h)}function l(h){return Ki.call(r,e,o,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function o(h){return i=Ae(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),s):t(h)}function s(h){return te(h)?ft(e,u)(h):u(h)}function u(h){return Wi(e,f,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function f(h){return e.attempt(Xs,c,c)(h)}function c(h){return V(h)?K(e,p,"whitespace")(h):p(h)}function p(h){return h===null||O(h)?(e.exit("definition"),r.parser.defined.push(i),n(h)):t(h)}}function Zs(e,n,t){return r;function r(o){return te(o)?ft(e,i)(o):t(o)}function i(o){return Qi(e,a,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function a(o){return V(o)?K(e,l,"whitespace")(o):l(o)}function l(o){return o===null||O(o)?n(o):t(o)}}const eu={name:"hardBreakEscape",tokenize:tu};function tu(e,n,t){return r;function r(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return O(a)?(e.exit("hardBreakEscape"),n(a)):t(a)}}const nu={name:"headingAtx",resolve:ru,tokenize:iu};function ru(e,n){let t=e.length-2,r=3,i,a;return e[r][1].type==="whitespace"&&(r+=2),t-2>r&&e[t][1].type==="whitespace"&&(t-=2),e[t][1].type==="atxHeadingSequence"&&(r===t-1||t-4>r&&e[t-2][1].type==="whitespace")&&(t-=r+1===t?2:4),t>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[t][1].end},a={type:"chunkText",start:e[r][1].start,end:e[t][1].end,contentType:"text"},ve(e,r,t-r+1,[["enter",i,n],["enter",a,n],["exit",a,n],["exit",i,n]])),e}function iu(e,n,t){let r=0;return i;function i(f){return e.enter("atxHeading"),a(f)}function a(f){return e.enter("atxHeadingSequence"),l(f)}function l(f){return f===35&&r++<6?(e.consume(f),l):f===null||te(f)?(e.exit("atxHeadingSequence"),o(f)):t(f)}function o(f){return f===35?(e.enter("atxHeadingSequence"),s(f)):f===null||O(f)?(e.exit("atxHeading"),n(f)):V(f)?K(e,o,"whitespace")(f):(e.enter("atxHeadingText"),u(f))}function s(f){return f===35?(e.consume(f),s):(e.exit("atxHeadingSequence"),o(f))}function u(f){return f===null||f===35||te(f)?(e.exit("atxHeadingText"),o(f)):(e.consume(f),u)}}const lu=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],jr=["pre","script","style","textarea"],au={concrete:!0,name:"htmlFlow",resolveTo:uu,tokenize:cu},ou={partial:!0,tokenize:hu},su={partial:!0,tokenize:fu};function uu(e){let n=e.length;for(;n--&&!(e[n][0]==="enter"&&e[n][1].type==="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e}function cu(e,n,t){const r=this;let i,a,l,o,s;return u;function u(g){return f(g)}function f(g){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(g),c}function c(g){return g===33?(e.consume(g),p):g===47?(e.consume(g),a=!0,b):g===63?(e.consume(g),i=3,r.interrupt?n:m):me(g)?(e.consume(g),l=String.fromCharCode(g),C):t(g)}function p(g){return g===45?(e.consume(g),i=2,h):g===91?(e.consume(g),i=5,o=0,x):me(g)?(e.consume(g),i=4,r.interrupt?n:m):t(g)}function h(g){return g===45?(e.consume(g),r.interrupt?n:m):t(g)}function x(g){const le="CDATA[";return g===le.charCodeAt(o++)?(e.consume(g),o===le.length?r.interrupt?n:F:x):t(g)}function b(g){return me(g)?(e.consume(g),l=String.fromCharCode(g),C):t(g)}function C(g){if(g===null||g===47||g===62||te(g)){const le=g===47,oe=l.toLowerCase();return!le&&!a&&jr.includes(oe)?(i=1,r.interrupt?n(g):F(g)):lu.includes(l.toLowerCase())?(i=6,le?(e.consume(g),y):r.interrupt?n(g):F(g)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?t(g):a?v(g):S(g))}return g===45||pe(g)?(e.consume(g),l+=String.fromCharCode(g),C):t(g)}function y(g){return g===62?(e.consume(g),r.interrupt?n:F):t(g)}function v(g){return V(g)?(e.consume(g),v):k(g)}function S(g){return g===47?(e.consume(g),k):g===58||g===95||me(g)?(e.consume(g),j):V(g)?(e.consume(g),S):k(g)}function j(g){return g===45||g===46||g===58||g===95||pe(g)?(e.consume(g),j):E(g)}function E(g){return g===61?(e.consume(g),w):V(g)?(e.consume(g),E):S(g)}function w(g){return g===null||g===60||g===61||g===62||g===96?t(g):g===34||g===39?(e.consume(g),s=g,z):V(g)?(e.consume(g),w):_(g)}function z(g){return g===s?(e.consume(g),s=null,B):g===null||O(g)?t(g):(e.consume(g),z)}function _(g){return g===null||g===34||g===39||g===47||g===60||g===61||g===62||g===96||te(g)?E(g):(e.consume(g),_)}function B(g){return g===47||g===62||V(g)?S(g):t(g)}function k(g){return g===62?(e.consume(g),P):t(g)}function P(g){return g===null||O(g)?F(g):V(g)?(e.consume(g),P):t(g)}function F(g){return g===45&&i===2?(e.consume(g),Y):g===60&&i===1?(e.consume(g),re):g===62&&i===4?(e.consume(g),T):g===63&&i===3?(e.consume(g),m):g===93&&i===5?(e.consume(g),fe):O(g)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(ou,Q,L)(g)):g===null||O(g)?(e.exit("htmlFlowData"),L(g)):(e.consume(g),F)}function L(g){return e.check(su,D,Q)(g)}function D(g){return e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),M}function M(g){return g===null||O(g)?L(g):(e.enter("htmlFlowData"),F(g))}function Y(g){return g===45?(e.consume(g),m):F(g)}function re(g){return g===47?(e.consume(g),l="",ue):F(g)}function ue(g){if(g===62){const le=l.toLowerCase();return jr.includes(le)?(e.consume(g),T):F(g)}return me(g)&&l.length<8?(e.consume(g),l+=String.fromCharCode(g),ue):F(g)}function fe(g){return g===93?(e.consume(g),m):F(g)}function m(g){return g===62?(e.consume(g),T):g===45&&i===2?(e.consume(g),m):F(g)}function T(g){return g===null||O(g)?(e.exit("htmlFlowData"),Q(g)):(e.consume(g),T)}function Q(g){return e.exit("htmlFlow"),n(g)}}function fu(e,n,t){const r=this;return i;function i(l){return O(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),a):t(l)}function a(l){return r.parser.lazy[r.now().line]?t(l):n(l)}}function hu(e,n,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(gt,n,t)}}const pu={name:"htmlText",tokenize:du};function du(e,n,t){const r=this;let i,a,l;return o;function o(m){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(m),s}function s(m){return m===33?(e.consume(m),u):m===47?(e.consume(m),E):m===63?(e.consume(m),S):me(m)?(e.consume(m),_):t(m)}function u(m){return m===45?(e.consume(m),f):m===91?(e.consume(m),a=0,x):me(m)?(e.consume(m),v):t(m)}function f(m){return m===45?(e.consume(m),h):t(m)}function c(m){return m===null?t(m):m===45?(e.consume(m),p):O(m)?(l=c,re(m)):(e.consume(m),c)}function p(m){return m===45?(e.consume(m),h):c(m)}function h(m){return m===62?Y(m):m===45?p(m):c(m)}function x(m){const T="CDATA[";return m===T.charCodeAt(a++)?(e.consume(m),a===T.length?b:x):t(m)}function b(m){return m===null?t(m):m===93?(e.consume(m),C):O(m)?(l=b,re(m)):(e.consume(m),b)}function C(m){return m===93?(e.consume(m),y):b(m)}function y(m){return m===62?Y(m):m===93?(e.consume(m),y):b(m)}function v(m){return m===null||m===62?Y(m):O(m)?(l=v,re(m)):(e.consume(m),v)}function S(m){return m===null?t(m):m===63?(e.consume(m),j):O(m)?(l=S,re(m)):(e.consume(m),S)}function j(m){return m===62?Y(m):S(m)}function E(m){return me(m)?(e.consume(m),w):t(m)}function w(m){return m===45||pe(m)?(e.consume(m),w):z(m)}function z(m){return O(m)?(l=z,re(m)):V(m)?(e.consume(m),z):Y(m)}function _(m){return m===45||pe(m)?(e.consume(m),_):m===47||m===62||te(m)?B(m):t(m)}function B(m){return m===47?(e.consume(m),Y):m===58||m===95||me(m)?(e.consume(m),k):O(m)?(l=B,re(m)):V(m)?(e.consume(m),B):Y(m)}function k(m){return m===45||m===46||m===58||m===95||pe(m)?(e.consume(m),k):P(m)}function P(m){return m===61?(e.consume(m),F):O(m)?(l=P,re(m)):V(m)?(e.consume(m),P):B(m)}function F(m){return m===null||m===60||m===61||m===62||m===96?t(m):m===34||m===39?(e.consume(m),i=m,L):O(m)?(l=F,re(m)):V(m)?(e.consume(m),F):(e.consume(m),D)}function L(m){return m===i?(e.consume(m),i=void 0,M):m===null?t(m):O(m)?(l=L,re(m)):(e.consume(m),L)}function D(m){return m===null||m===34||m===39||m===60||m===61||m===96?t(m):m===47||m===62||te(m)?B(m):(e.consume(m),D)}function M(m){return m===47||m===62||te(m)?B(m):t(m)}function Y(m){return m===62?(e.consume(m),e.exit("htmlTextData"),e.exit("htmlText"),n):t(m)}function re(m){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),ue}function ue(m){return V(m)?K(e,fe,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(m):fe(m)}function fe(m){return e.enter("htmlTextData"),l(m)}}const Hn={name:"labelEnd",resolveAll:yu,resolveTo:ku,tokenize:bu},mu={tokenize:wu},gu={tokenize:vu},xu={tokenize:Su};function yu(e){let n=-1;const t=[];for(;++n<e.length;){const r=e[n][1];if(t.push(e[n]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",n+=i}}return e.length!==t.length&&ve(e,0,e.length,t),e}function ku(e,n){let t=e.length,r=0,i,a,l,o;for(;t--;)if(i=e[t][1],a){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[t][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(l){if(e[t][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(a=t,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(l=t);const s={type:e[a][1].type==="labelLink"?"link":"image",start:{...e[a][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[a][1].start},end:{...e[l][1].end}},f={type:"labelText",start:{...e[a+r+2][1].end},end:{...e[l-2][1].start}};return o=[["enter",s,n],["enter",u,n]],o=Ie(o,e.slice(a+1,a+r+3)),o=Ie(o,[["enter",f,n]]),o=Ie(o,Lt(n.parser.constructs.insideSpan.null,e.slice(a+r+4,l-3),n)),o=Ie(o,[["exit",f,n],e[l-2],e[l-1],["exit",u,n]]),o=Ie(o,e.slice(l+1)),o=Ie(o,[["exit",s,n]]),ve(e,a,e.length,o),e}function bu(e,n,t){const r=this;let i=r.events.length,a,l;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){a=r.events[i][1];break}return o;function o(p){return a?a._inactive?c(p):(l=r.parser.defined.includes(Ae(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),s):t(p)}function s(p){return p===40?e.attempt(mu,f,l?f:c)(p):p===91?e.attempt(gu,f,l?u:c)(p):l?f(p):c(p)}function u(p){return e.attempt(xu,f,c)(p)}function f(p){return n(p)}function c(p){return a._balanced=!0,t(p)}}function wu(e,n,t){return r;function r(c){return e.enter("resource"),e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),i}function i(c){return te(c)?ft(e,a)(c):a(c)}function a(c){return c===41?f(c):Wi(e,l,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function l(c){return te(c)?ft(e,s)(c):f(c)}function o(c){return t(c)}function s(c){return c===34||c===39||c===40?Qi(e,u,t,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):f(c)}function u(c){return te(c)?ft(e,f)(c):f(c)}function f(c){return c===41?(e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),e.exit("resource"),n):t(c)}}function vu(e,n,t){const r=this;return i;function i(o){return Ki.call(r,e,a,l,"reference","referenceMarker","referenceString")(o)}function a(o){return r.parser.defined.includes(Ae(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?n(o):t(o)}function l(o){return t(o)}}function Su(e,n,t){return r;function r(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),i}function i(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),n):t(a)}}const Cu={name:"labelStartImage",resolveAll:Hn.resolveAll,tokenize:Iu};function Iu(e,n,t){const r=this;return i;function i(o){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(o),e.exit("labelImageMarker"),a}function a(o){return o===91?(e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelImage"),l):t(o)}function l(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(o):n(o)}}const Eu={name:"labelStartLink",resolveAll:Hn.resolveAll,tokenize:Tu};function Tu(e,n,t){const r=this;return i;function i(l){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelLink"),a}function a(l){return l===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(l):n(l)}}const Gt={name:"lineEnding",tokenize:Au};function Au(e,n){return t;function t(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),K(e,n,"linePrefix")}}const St={name:"thematicBreak",tokenize:ju};function ju(e,n,t){let r=0,i;return a;function a(u){return e.enter("thematicBreak"),l(u)}function l(u){return i=u,o(u)}function o(u){return u===i?(e.enter("thematicBreakSequence"),s(u)):r>=3&&(u===null||O(u))?(e.exit("thematicBreak"),n(u)):t(u)}function s(u){return u===i?(e.consume(u),r++,s):(e.exit("thematicBreakSequence"),V(u)?K(e,o,"whitespace")(u):o(u))}}const xe={continuation:{tokenize:Fu},exit:Lu,name:"list",tokenize:Du},Nu={partial:!0,tokenize:_u},Pu={partial:!0,tokenize:zu};function Du(e,n,t){const r=this,i=r.events[r.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,l=0;return o;function o(h){const x=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(x==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:vn(h)){if(r.containerState.type||(r.containerState.type=x,e.enter(x,{_container:!0})),x==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(St,t,u)(h):u(h);if(!r.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(h)}return t(h)}function s(h){return vn(h)&&++l<10?(e.consume(h),s):(!r.interrupt||l<2)&&(r.containerState.marker?h===r.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),u(h)):t(h)}function u(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||h,e.check(gt,r.interrupt?t:f,e.attempt(Nu,p,c))}function f(h){return r.containerState.initialBlankLine=!0,a++,p(h)}function c(h){return V(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),p):t(h)}function p(h){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(h)}}function Fu(e,n,t){const r=this;return r.containerState._closeFlow=void 0,e.check(gt,i,a);function i(o){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,K(e,n,"listItemIndent",r.containerState.size+1)(o)}function a(o){return r.containerState.furtherBlankLines||!V(o)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,l(o)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Pu,n,l)(o))}function l(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,K(e,e.attempt(xe,n,t),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function zu(e,n,t){const r=this;return K(e,i,"listItemIndent",r.containerState.size+1);function i(a){const l=r.events[r.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===r.containerState.size?n(a):t(a)}}function Lu(e){e.exit(this.containerState.type)}function _u(e,n,t){const r=this;return K(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(a){const l=r.events[r.events.length-1];return!V(a)&&l&&l[1].type==="listItemPrefixWhitespace"?n(a):t(a)}}const Nr={name:"setextUnderline",resolveTo:Ru,tokenize:Mu};function Ru(e,n){let t=e.length,r,i,a;for(;t--;)if(e[t][0]==="enter"){if(e[t][1].type==="content"){r=t;break}e[t][1].type==="paragraph"&&(i=t)}else e[t][1].type==="content"&&e.splice(t,1),!a&&e[t][1].type==="definition"&&(a=t);const l={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",l,n]),e.splice(a+1,0,["exit",e[r][1],n]),e[r][1].end={...e[a][1].end}):e[r][1]=l,e.push(["exit",l,n]),e}function Mu(e,n,t){const r=this;let i;return a;function a(u){let f=r.events.length,c;for(;f--;)if(r.events[f][1].type!=="lineEnding"&&r.events[f][1].type!=="linePrefix"&&r.events[f][1].type!=="content"){c=r.events[f][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||c)?(e.enter("setextHeadingLine"),i=u,l(u)):t(u)}function l(u){return e.enter("setextHeadingLineSequence"),o(u)}function o(u){return u===i?(e.consume(u),o):(e.exit("setextHeadingLineSequence"),V(u)?K(e,s,"lineSuffix")(u):s(u))}function s(u){return u===null||O(u)?(e.exit("setextHeadingLine"),n(u)):t(u)}}const Ou={tokenize:Bu};function Bu(e){const n=this,t=e.attempt(gt,r,e.attempt(this.parser.constructs.flowInitial,i,K(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Vs,i)),"linePrefix")));return t;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),n.currentConstruct=void 0,t}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n.currentConstruct=void 0,t}}const $u={resolveAll:Yi()},Hu=Gi("string"),Uu=Gi("text");function Gi(e){return{resolveAll:Yi(e==="text"?qu:void 0),tokenize:n};function n(t){const r=this,i=this.parser.constructs[e],a=t.attempt(i,l,o);return l;function l(f){return u(f)?a(f):o(f)}function o(f){if(f===null){t.consume(f);return}return t.enter("data"),t.consume(f),s}function s(f){return u(f)?(t.exit("data"),a(f)):(t.consume(f),s)}function u(f){if(f===null)return!0;const c=i[f];let p=-1;if(c)for(;++p<c.length;){const h=c[p];if(!h.previous||h.previous.call(r,r.previous))return!0}return!1}}}function Yi(e){return n;function n(t,r){let i=-1,a;for(;++i<=t.length;)a===void 0?t[i]&&t[i][1].type==="data"&&(a=i,i++):(!t[i]||t[i][1].type!=="data")&&(i!==a+2&&(t[a][1].end=t[i-1][1].end,t.splice(a+2,i-a-2),i=a+2),a=void 0);return e?e(t,r):t}}function qu(e,n){let t=0;for(;++t<=e.length;)if((t===e.length||e[t][1].type==="lineEnding")&&e[t-1][1].type==="data"){const r=e[t-1][1],i=n.sliceStream(r);let a=i.length,l=-1,o=0,s;for(;a--;){const u=i[a];if(typeof u=="string"){for(l=u.length;u.charCodeAt(l-1)===32;)o++,l--;if(l)break;l=-1}else if(u===-2)s=!0,o++;else if(u!==-1){a++;break}}
vendor: 1,883 bytes, line 25
25if(n._contentTypeTextTrailing&&t===e.length&&(o=0),o){const u={type:t===e.length||s||o<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?l:r.start._bufferIndex+l,_index:r.start._index+a,line:r.end.line,column:r.end.column-o,offset:r.end.offset-o},end:{...r.end}};r.end={...u.start},r.start.offset===r.end.offset?Object.assign(r,u):(e.splice(t,0,["enter",u,n],["exit",u,n]),t+=2)}t++}return e}const Vu={42:xe,43:xe,45:xe,48:xe,49:xe,50:xe,51:xe,52:xe,53:xe,54:xe,55:xe,56:xe,57:xe,62:Hi},Wu={91:Ys},Ku={[-2]:Qt,[-1]:Qt,32:Qt},Qu={35:nu,42:St,45:[Nr,St],60:au,61:Nr,95:St,96:Ar,126:Ar},Gu={38:qi,92:Ui},Yu={[-5]:Gt,[-4]:Gt,[-3]:Gt,33:Cu,38:qi,42:Sn,60:[Es,pu],91:Eu,92:[eu,Ui],93:Hn,95:Sn,96:Os},Xu={null:[Sn,$u]},Ju={null:[42,95]},Zu={null:[]},ec=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Ju,contentInitial:Wu,disable:Zu,document:Vu,flow:Qu,flowInitial:Ku,insideSpan:Xu,string:Gu,text:Yu},Symbol.toStringTag,{value:"Module"}));function tc(e,n,t){let r={_bufferIndex:-1,_index:0,line:t&&t.line||1,column:t&&t.column||1,offset:t&&t.offset||0};const i={},a=[];let l=[],o=[];const s={attempt:z(E),check:z(w),consume:v,enter:S,exit:j,interrupt:z(w,{interrupt:!0})},u={code:null,containerState:{},defineSkip:b,events:[],now:x,parser:e,previous:null,sliceSerialize:p,sliceStream:h,write:c};let f=n.tokenize.call(u,s);return n.resolveAll&&a.push(n),u;function c(P){return l=Ie(l,P),C(),l[l.length-1]!==null?[]:(_(n,0),u.events=Lt(a,u.events,u),u.events)}function p(P,F){return rc(h(P),F)}function h(P){return nc(l,P)}function x(){const{_bufferIndex:P,_index:F,line:L,column:D,offset:M}=r;return{_bufferIndex:P,_index:F,line:L,column:D,offset:M}}function b(P){i[P.line]=P.column,k()}function C(){let P;for(;r._index<l.length;){const F=l[r._index];if(typeof F=="string")for(P=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===P&&r._bufferIndex<F.length;
vendor: 19,187 bytes, lines 25-31
25)y(F.charCodeAt(r._bufferIndex));else y(F)}}function y(P){f=f(P)}function v(P){O(P)?(r.line++,r.column=1,r.offset+=P===-3?2:1,k()):P!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===l[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=P}function S(P,F){const L=F||{};return L.type=P,L.start=x(),u.events.push(["enter",L,u]),o.push(L),L}function j(P){const F=o.pop();return F.end=x(),u.events.push(["exit",F,u]),F}function E(P,F){_(P,F.from)}function w(P,F){F.restore()}function z(P,F){return L;function L(D,M,Y){let re,ue,fe,m;return Array.isArray(D)?Q(D):"tokenize"in D?Q([D]):T(D);function T(ae){return Se;function Se($){const q=$!==null&&ae[$],ie=$!==null&&ae.null,ce=[...Array.isArray(q)?q:q?[q]:[],...Array.isArray(ie)?ie:ie?[ie]:[]];return Q(ce)($)}}function Q(ae){return re=ae,ue=0,ae.length===0?Y:g(ae[ue])}function g(ae){return Se;function Se($){return m=B(),fe=ae,ae.partial||(u.currentConstruct=ae),ae.name&&u.parser.constructs.disable.null.includes(ae.name)?oe():ae.tokenize.call(F?Object.assign(Object.create(u),F):u,s,le,oe)($)}}function le(ae){return P(fe,m),M}function oe(ae){return m.restore(),++ue<re.length?g(re[ue]):Y}}}function _(P,F){P.resolveAll&&!a.includes(P)&&a.push(P),P.resolve&&ve(u.events,F,u.events.length-F,P.resolve(u.events.slice(F),u)),P.resolveTo&&(u.events=P.resolveTo(u.events,u))}function B(){const P=x(),F=u.previous,L=u.currentConstruct,D=u.events.length,M=Array.from(o);return{from:D,restore:Y};function Y(){r=P,u.previous=F,u.currentConstruct=L,u.events.length=D,o=M,k()}}function k(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function nc(e,n){const t=n.start._index,r=n.start._bufferIndex,i=n.end._index,a=n.end._bufferIndex;let l;if(t===i)l=[e[t].slice(r,a)];else{if(l=e.slice(t,i),r>-1){const o=l[0];typeof o=="string"?l[0]=o.slice(r):l.shift()}a>0&&l.push(e[i].slice(0,a))}return l}function rc(e,n){let t=-1;const r=[];let i;for(;++t<e.length;){const a=e[t];let l;if(typeof a=="string")l=a;else switch(a){case-5:{l="\r";break}case-4:{l=`
26`;break}case-3:{l=`\r
27`;break}case-2:{l=n?" ":"	";break}case-1:{if(!n&&i)continue;l=" ";break}default:l=String.fromCharCode(a)}i=a===-2,r.push(l)}return r.join("")}function ic(e){const r={constructs:Bi([ec,...(e||{}).extensions||[]]),content:i(ks),defined:[],document:i(ws),flow:i(Ou),lazy:{},string:i(Hu),text:i(Uu)};return r;function i(a){return l;function l(o){return tc(r,a,o)}}}function lc(e){for(;!Vi(e););return e}const Pr=/[\0\t\n\r]/g;function ac(){let e=1,n="",t=!0,r;return i;function i(a,l,o){const s=[];let u,f,c,p,h;for(a=n+(typeof a=="string"?a.toString():new TextDecoder(l||void 0).decode(a)),c=0,n="",t&&(a.charCodeAt(0)===65279&&c++,t=void 0);c<a.length;){if(Pr.lastIndex=c,u=Pr.exec(a),p=u&&u.index!==void 0?u.index:a.length,h=a.charCodeAt(p),!u){n=a.slice(c);break}if(h===10&&c===p&&r)s.push(-3),r=void 0;else switch(r&&(s.push(-5),r=void 0),c<p&&(s.push(a.slice(c,p)),e+=p-c),h){case 0:{s.push(65533),e++;break}case 9:{for(f=Math.ceil(e/4)*4,s.push(-2);e++<f;)s.push(-1);break}case 10:{s.push(-4),e=1;break}default:r=!0,e=1}c=p+1}return o&&(r&&s.push(-5),n&&s.push(n),s.push(null)),s}}const oc=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function sc(e){return e.replace(oc,uc)}function uc(e,n,t){if(n)return n;if(t.charCodeAt(0)===35){const i=t.charCodeAt(1),a=i===120||i===88;return $i(t.slice(a?2:1),a?16:10)}return $n(t)||e}const Xi={}.hasOwnProperty;function cc(e,n,t){return typeof n!="string"&&(t=n,n=void 0),fc(t)(lc(ic(t).document().write(ac()(e,n,!0))))}function fc(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(Xn),autolinkProtocol:B,autolinkEmail:B,atxHeading:a(J),blockQuote:a(ie),characterEscape:B,characterReference:B,codeFenced:a(ce),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:a(ce,l),codeText:a(Ee,l),codeTextData:B,data:B,codeFlowValue:B,definition:a(G),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:a(Z),hardBreakEscape:a(ge),hardBreakTrailing:a(ge),htmlFlow:a(Ne,l),htmlFlowData:B,htmlText:a(Ne,l),htmlTextData:B,image:a(tt),label:l,link:a(Xn),listItem:a(Rl),listItemValue:p,listOrdered:a(Jn,c),listUnordered:a(Jn),paragraph:a(Ml),reference:g,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:a(J),strong:a(Ol),thematicBreak:a($l)},exit:{atxHeading:s(),atxHeadingSequence:E,autolink:s(),autolinkEmail:q,autolinkProtocol:$,blockQuote:s(),characterEscapeValue:k,characterReferenceMarkerHexadecimal:oe,characterReferenceMarkerNumeric:oe,characterReferenceValue:ae,characterReference:Se,codeFenced:s(C),codeFencedFence:b,codeFencedFenceInfo:h,codeFencedFenceMeta:x,codeFlowValue:k,codeIndented:s(y),codeText:s(M),codeTextData:k,data:k,definition:s(),definitionDestinationString:j,definitionLabelString:v,definitionTitleString:S,emphasis:s(),hardBreakEscape:s(F),hardBreakTrailing:s(F),htmlFlow:s(L),htmlFlowData:k,htmlText:s(D),htmlTextData:k,image:s(re),label:fe,labelText:ue,lineEnding:P,link:s(Y),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:le,resourceDestinationString:m,resourceTitleString:T,resource:Q,setextHeading:s(_),setextHeadingLineSequence:z,setextHeadingText:w,strong:s(),thematicBreak:s()}};Ji(n,(e||{}).mdastExtensions||[]);const t={};return r;function r(I){let N={type:"root",children:[]};const H={stack:[N],tokenStack:[],config:n,enter:o,exit:u,buffer:l,resume:f,data:t},W=[];let ee=-1;for(;++ee<I.length;)if(I[ee][1].type==="listOrdered"||I[ee][1].type==="listUnordered")if(I[ee][0]==="enter")W.push(ee);else{const Te=W.pop();ee=i(I,Te,ee)}for(ee=-1;++ee<I.length;){const Te=n[I[ee][0]];Xi.call(Te,I[ee][1].type)&&Te[I[ee][1].type].call(Object.assign({sliceSerialize:I[ee][2].sliceSerialize},H),I[ee][1])}if(H.tokenStack.length>0){const Te=H.tokenStack[H.tokenStack.length-1];(Te[1]||Dr).call(H,void 0,Te[0])}for(N.position={start:_e(I.length>0?I[0][1].start:{line:1,column:1,offset:0}),end:_e(I.length>0?I[I.length-2][1].end:{line:1,column:1,offset:0})},ee=-1;++ee<n.transforms.length;)N=n.transforms[ee](N)||N;return N}function i(I,N,H){let W=N-1,ee=-1,Te=!1,Me,Fe,nt,rt;for(;++W<=H;){const ke=I[W];switch(ke[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ke[0]==="enter"?ee++:ee--,rt=void 0;break}case"lineEndingBlank":{ke[0]==="enter"&&(Me&&!rt&&!ee&&!nt&&(nt=W),rt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:rt=void 0}if(!ee&&ke[0]==="enter"&&ke[1].type==="listItemPrefix"||ee===-1&&ke[0]==="exit"&&(ke[1].type==="listUnordered"||ke[1].type==="listOrdered")){if(Me){let Ve=W;for(Fe=void 0;Ve--;){const ze=I[Ve];if(ze[1].type==="lineEnding"||ze[1].type==="lineEndingBlank"){if(ze[0]==="exit")continue;Fe&&(I[Fe][1].type="lineEndingBlank",Te=!0),ze[1].type="lineEnding",Fe=Ve}else if(!(ze[1].type==="linePrefix"||ze[1].type==="blockQuotePrefix"||ze[1].type==="blockQuotePrefixWhitespace"||ze[1].type==="blockQuoteMarker"||ze[1].type==="listItemIndent"))break}nt&&(!Fe||nt<Fe)&&(Me._spread=!0),Me.end=Object.assign({},Fe?I[Fe][1].start:ke[1].end),I.splice(Fe||W,0,["exit",Me,ke[2]]),W++,H++}if(ke[1].type==="listItemPrefix"){const Ve={type:"listItem",_spread:!1,start:Object.assign({},ke[1].start),end:void 0};Me=Ve,I.splice(W,0,["enter",Ve,ke[2]]),W++,H++,nt=void 0,rt=!0}}}return I[N][1]._spread=Te,H}function a(I,N){return H;function H(W){o.call(this,I(W),W),N&&N.call(this,W)}}function l(){this.stack.push({type:"fragment",children:[]})}function o(I,N,H){this.stack[this.stack.length-1].children.push(I),this.stack.push(I),this.tokenStack.push([N,H||void 0]),I.position={start:_e(N.start),end:void 0}}function s(I){return N;function N(H){I&&I.call(this,H),u.call(this,H)}}function u(I,N){const H=this.stack.pop(),W=this.tokenStack.pop();if(W)W[0].type!==I.type&&(N?N.call(this,I,W[0]):(W[1]||Dr).call(this,I,W[0]));else throw new Error("Cannot close `"+I.type+"` ("+ct({start:I.start,end:I.end})+"): it’s not open");H.position.end=_e(I.end)}function f(){return Bn(this.stack.pop())}function c(){this.data.expectingFirstListItemValue=!0}function p(I){if(this.data.expectingFirstListItemValue){const N=this.stack[this.stack.length-2];N.start=Number.parseInt(this.sliceSerialize(I),10),this.data.expectingFirstListItemValue=void 0}}function h(){const I=this.resume(),N=this.stack[this.stack.length-1];N.lang=I}function x(){const I=this.resume(),N=this.stack[this.stack.length-1];N.meta=I}function b(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function C(){const I=this.resume(),N=this.stack[this.stack.length-1];N.value=I.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function y(){const I=this.resume(),N=this.stack[this.stack.length-1];N.value=I.replace(/(\r?\n|\r)$/g,"")}function v(I){const N=this.resume(),H=this.stack[this.stack.length-1];H.label=N,H.identifier=Ae(this.sliceSerialize(I)).toLowerCase()}function S(){const I=this.resume(),N=this.stack[this.stack.length-1];N.title=I}function j(){const I=this.resume(),N=this.stack[this.stack.length-1];N.url=I}function E(I){const N=this.stack[this.stack.length-1];if(!N.depth){const H=this.sliceSerialize(I).length;N.depth=H}}function w(){this.data.setextHeadingSlurpLineEnding=!0}function z(I){const N=this.stack[this.stack.length-1];N.depth=this.sliceSerialize(I).codePointAt(0)===61?1:2}function _(){this.data.setextHeadingSlurpLineEnding=void 0}function B(I){const H=this.stack[this.stack.length-1].children;let W=H[H.length-1];(!W||W.type!=="text")&&(W=Bl(),W.position={start:_e(I.start),end:void 0},H.push(W)),this.stack.push(W)}function k(I){const N=this.stack.pop();N.value+=this.sliceSerialize(I),N.position.end=_e(I.end)}function P(I){const N=this.stack[this.stack.length-1];if(this.data.atHardBreak){const H=N.children[N.children.length-1];H.position.end=_e(I.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(N.type)&&(B.call(this,I),k.call(this,I))}function F(){this.data.atHardBreak=!0}function L(){const I=this.resume(),N=this.stack[this.stack.length-1];N.value=I}function D(){const I=this.resume(),N=this.stack[this.stack.length-1];N.value=I}function M(){const I=this.resume(),N=this.stack[this.stack.length-1];N.value=I}function Y(){const I=this.stack[this.stack.length-1];if(this.data.inReference){const N=this.data.referenceType||"shortcut";I.type+="Reference",I.referenceType=N,delete I.url,delete I.title}else delete I.identifier,delete I.label;this.data.referenceType=void 0}function re(){const I=this.stack[this.stack.length-1];if(this.data.inReference){const N=this.data.referenceType||"shortcut";I.type+="Reference",I.referenceType=N,delete I.url,delete I.title}else delete I.identifier,delete I.label;this.data.referenceType=void 0}function ue(I){const N=this.sliceSerialize(I),H=this.stack[this.stack.length-2];H.label=sc(N),H.identifier=Ae(N).toLowerCase()}function fe(){const I=this.stack[this.stack.length-1],N=this.resume(),H=this.stack[this.stack.length-1];if(this.data.inReference=!0,H.type==="link"){const W=I.children;H.children=W}else H.alt=N}function m(){const I=this.resume(),N=this.stack[this.stack.length-1];N.url=I}function T(){const I=this.resume(),N=this.stack[this.stack.length-1];N.title=I}function Q(){this.data.inReference=void 0}function g(){this.data.referenceType="collapsed"}function le(I){const N=this.resume(),H=this.stack[this.stack.length-1];H.label=N,H.identifier=Ae(this.sliceSerialize(I)).toLowerCase(),this.data.referenceType="full"}function oe(I){this.data.characterReferenceType=I.type}function ae(I){const N=this.sliceSerialize(I),H=this.data.characterReferenceType;let W;H?(W=$i(N,H==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):W=$n(N);const ee=this.stack[this.stack.length-1];ee.value+=W}function Se(I){const N=this.stack.pop();N.position.end=_e(I.end)}function $(I){k.call(this,I);const N=this.stack[this.stack.length-1];N.url=this.sliceSerialize(I)}function q(I){k.call(this,I);const N=this.stack[this.stack.length-1];N.url="mailto:"+this.sliceSerialize(I)}function ie(){return{type:"blockquote",children:[]}}function ce(){return{type:"code",lang:null,meta:null,value:""}}function Ee(){return{type:"inlineCode",value:""}}function G(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Z(){return{type:"emphasis",children:[]}}function J(){return{type:"heading",depth:0,children:[]}}function ge(){return{type:"break"}}function Ne(){return{type:"html",value:""}}function tt(){return{type:"image",title:null,url:"",alt:null}}function Xn(){return{type:"link",title:null,url:"",children:[]}}function Jn(I){return{type:"list",ordered:I.type==="listOrdered",start:null,spread:I._spread,children:[]}}function Rl(I){return{type:"listItem",spread:I._spread,checked:null,children:[]}}function Ml(){return{type:"paragraph",children:[]}}function Ol(){return{type:"strong",children:[]}}function Bl(){return{type:"text",value:""}}function $l(){return{type:"thematicBreak"}}}function _e(e){return{line:e.line,column:e.column,offset:e.offset}}function Ji(e,n){let t=-1;for(;++t<n.length;){const r=n[t];Array.isArray(r)?Ji(e,r):hc(e,r)}}function hc(e,n){let t;for(t in n)if(Xi.call(n,t))switch(t){case"canContainEols":{const r=n[t];r&&e[t].push(...r);break}case"transforms":{const r=n[t];r&&e[t].push(...r);break}case"enter":case"exit":{const r=n[t];r&&Object.assign(e[t],r);break}}}function Dr(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+ct({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+ct({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+ct({start:n.start,end:n.end})+") is still open")}function pc(e){const n=this;n.parser=t;function t(r){return cc(r,{...n.data("settings"),...e,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}function dc(e,n){const t={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(n),!0)};return e.patch(n,t),e.applyData(n,t)}function mc(e,n){const t={type:"element",tagName:"br",properties:{},children:[]};return e.patch(n,t),[e.applyData(n,t),{type:"text",value:`
28`}]}function gc(e,n){const t=n.value?n.value+`
29`:"",r={};n.lang&&(r.className=["language-"+n.lang]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:t}]};return n.meta&&(i.data={meta:n.meta}),e.patch(n,i),i=e.applyData(n,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(n,i),i}function xc(e,n){const t={type:"element",tagName:"del",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function yc(e,n){const t={type:"element",tagName:"em",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function kc(e,n){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(n.identifier).toUpperCase(),i=et(r.toLowerCase()),a=e.footnoteOrder.indexOf(r);let l,o=e.footnoteCounts.get(r);o===void 0?(o=0,e.footnoteOrder.push(r),l=e.footnoteOrder.length):l=a+1,o+=1,e.footnoteCounts.set(r,o);const s={type:"element",tagName:"a",properties:{href:"#"+t+"fn-"+i,id:t+"fnref-"+i+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(l)}]};e.patch(n,s);const u={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(n,u),e.applyData(n,u)}function bc(e,n){const t={type:"element",tagName:"h"+n.depth,properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function wc(e,n){if(e.options.allowDangerousHtml){const t={type:"raw",value:n.value};return e.patch(n,t),e.applyData(n,t)}}function Zi(e,n){const t=n.referenceType;let r="]";if(t==="collapsed"?r+="[]":t==="full"&&(r+="["+(n.label||n.identifier)+"]"),n.type==="imageReference")return[{type:"text",value:"!["+n.alt+r}];const i=e.all(n),a=i[0];a&&a.type==="text"?a.value="["+a.value:i.unshift({type:"text",value:"["});const l=i[i.length-1];return l&&l.type==="text"?l.value+=r:i.push({type:"text",value:r}),i}function vc(e,n){const t=String(n.identifier).toUpperCase(),r=e.definitionById.get(t);if(!r)return Zi(e,n);const i={src:et(r.url||""),alt:n.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(n,a),e.applyData(n,a)}function Sc(e,n){const t={src:et(n.url)};n.alt!==null&&n.alt!==void 0&&(t.alt=n.alt),n.title!==null&&n.title!==void 0&&(t.title=n.title);const r={type:"element",tagName:"img",properties:t,children:[]};return e.patch(n,r),e.applyData(n,r)}function Cc(e,n){const t={type:"text",value:n.value.replace(/\r?\n|\r/g," ")};e.patch(n,t);const r={type:"element",tagName:"code",properties:{},children:[t]};return e.patch(n,r),e.applyData(n,r)}function Ic(e,n){const t=String(n.identifier).toUpperCase(),r=e.definitionById.get(t);if(!r)return Zi(e,n);const i={href:et(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"a",properties:i,children:e.all(n)};return e.patch(n,a),e.applyData(n,a)}function Ec(e,n){const t={href:et(n.url)};n.title!==null&&n.title!==void 0&&(t.title=n.title);const r={type:"element",tagName:"a",properties:t,children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function Tc(e,n,t){const r=e.all(n),i=t?Ac(t):el(n),a={},l=[];if(typeof n.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:n.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let o=-1;for(;++o<r.length;){const f=r[o];(i||o!==0||f.type!=="element"||f.tagName!=="p")&&l.push({type:"text",value:`
30`}),f.type==="element"&&f.tagName==="p"&&!i?l.push(...f.children):l.push(f)}const s=r[r.length-1];s&&(i||s.type!=="element"||s.tagName!=="p")&&l.push({type:"text",value:`
31`});const u={type:"element",tagName:"li",properties:a,children:l};return e.patch(n,u),e.applyData(n,u)}function Ac(e){let n=!1;if(e.type==="list"){n=e.spread||!1;const t=e.children;let r=-1;for(;!n&&++r<t.length;)n=el(t[r])}return n}function el(e){const n=e.spread;return n??e.children.length>1}function jc(e,n){const t={},r=e.all(n);let i=-1;for(typeof n.start=="number"&&n.start!==1&&(t.start=n.start);++i<r.length;){const l=r[i];if(l.type==="element"&&l.tagName==="li"&&l.properties&&Array.isArray(l.properties.className)&&l.properties.className.includes("task-list-item")){t.className=["contains-task-list"];break}}const a={type:"element",tagName:n.ordered?"ol":"ul",properties:t,children:e.wrap(r,!0)};return e.patch(n,a),e.applyData(n,a)}function Nc(e,n){const t={type:"element",tagName:"p",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function Pc(e,n){const t={type:"root",children:e.wrap(e.all(n))};return e.patch(n,t),e.applyData(n,t)}function Dc(e,n){const t={type:"element",tagName:"strong",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}
vendor: 5,061 bytes, line 31
31function Fc(e,n){const t=e.all(n),r=t.shift(),i=[];if(r){const l={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(n.children[0],l),i.push(l)}if(t.length>0){const l={type:"element",tagName:"tbody",properties:{},children:e.wrap(t,!0)},o=_n(n.children[1]),s=Fi(n.children[n.children.length-1]);o&&s&&(l.position={start:o,end:s}),i.push(l)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(n,a),e.applyData(n,a)}function zc(e,n,t){const r=t?t.children:void 0,a=(r?r.indexOf(n):1)===0?"th":"td",l=t&&t.type==="table"?t.align:void 0,o=l?l.length:n.children.length;let s=-1;const u=[];for(;++s<o;){const c=n.children[s],p={},h=l?l[s]:void 0;h&&(p.align=h);let x={type:"element",tagName:a,properties:p,children:[]};c&&(x.children=e.all(c),e.patch(c,x),x=e.applyData(c,x)),u.push(x)}const f={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(n,f),e.applyData(n,f)}function Lc(e,n){const t={type:"element",tagName:"td",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}const Fr=9,zr=32;function _c(e){const n=String(e),t=/\r?\n|\r/g;let r=t.exec(n),i=0;const a=[];for(;r;)a.push(Lr(n.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=t.exec(n);return a.push(Lr(n.slice(i),i>0,!1)),a.join("")}function Lr(e,n,t){let r=0,i=e.length;if(n){let a=e.codePointAt(r);for(;a===Fr||a===zr;)r++,a=e.codePointAt(r)}if(t){let a=e.codePointAt(i-1);for(;a===Fr||a===zr;)i--,a=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function Rc(e,n){const t={type:"text",value:_c(String(n.value))};return e.patch(n,t),e.applyData(n,t)}function Mc(e,n){const t={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(n,t),e.applyData(n,t)}const Oc={blockquote:dc,break:mc,code:gc,delete:xc,emphasis:yc,footnoteReference:kc,heading:bc,html:wc,imageReference:vc,image:Sc,inlineCode:Cc,linkReference:Ic,link:Ec,listItem:Tc,list:jc,paragraph:Nc,root:Pc,strong:Dc,table:Fc,tableCell:Lc,tableRow:zc,text:Rc,thematicBreak:Mc,toml:kt,yaml:kt,definition:kt,footnoteDefinition:kt};function kt(){}const tl=-1,_t=0,ht=1,Et=2,Un=3,qn=4,Vn=5,Wn=6,nl=7,rl=8,_r=typeof self=="object"?self:globalThis,Bc=(e,n)=>{const t=(i,a)=>(e.set(a,i),i),r=i=>{if(e.has(i))return e.get(i);const[a,l]=n[i];switch(a){case _t:case tl:return t(l,i);case ht:{const o=t([],i);for(const s of l)o.push(r(s));return o}case Et:{const o=t({},i);for(const[s,u]of l)o[r(s)]=r(u);return o}case Un:return t(new Date(l),i);case qn:{const{source:o,flags:s}=l;return t(new RegExp(o,s),i)}case Vn:{const o=t(new Map,i);for(const[s,u]of l)o.set(r(s),r(u));return o}case Wn:{const o=t(new Set,i);for(const s of l)o.add(r(s));return o}case nl:{const{name:o,message:s}=l;return t(new _r[o](s),i)}case rl:return t(BigInt(l),i);case"BigInt":return t(Object(BigInt(l)),i);case"ArrayBuffer":return t(new Uint8Array(l).buffer,l);case"DataView":{const{buffer:o}=new Uint8Array(l);return t(new DataView(o),l)}}return t(new _r[a](l),i)};return r},Rr=e=>Bc(new Map,e)(0),Ke="",{toString:$c}={},{keys:Hc}=Object,ot=e=>{const n=typeof e;if(n!=="object"||!e)return[_t,n];const t=$c.call(e).slice(8,-1);switch(t){case"Array":return[ht,Ke];case"Object":return[Et,Ke];case"Date":return[Un,Ke];case"RegExp":return[qn,Ke];case"Map":return[Vn,Ke];case"Set":return[Wn,Ke];case"DataView":return[ht,t]}return t.includes("Array")?[ht,t]:t.includes("Error")?[nl,t]:[Et,t]},bt=([e,n])=>e===_t&&(n==="function"||n==="symbol"),Uc=(e,n,t,r)=>{const i=(l,o)=>{const s=r.push(l)-1;return t.set(o,s),s},a=l=>{if(t.has(l))return t.get(l);let[o,s]=ot(l);switch(o){case _t:{let f=l;switch(s){case"bigint":o=rl,f=l.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);f=null;break;case"undefined":return i([tl],l)}return i([o,f],l)}case ht:{if(s){let p=l;return s==="DataView"?p=new Uint8Array(l.buffer):s==="ArrayBuffer"&&(p=new Uint8Array(l)),i([s,[...p]],l)}const f=[],c=i([o,f],l);for(const p of l)f.push(a(p));return c}case Et:{if(s)switch(s){case"BigInt":return i([s,l.toString()],l);case"Boolean":case"Number":case"String":return i([s,l.valueOf()],l)}if(n&&"toJSON"in l)return a(l.toJSON());const f=[],c=i([o,f],l);for(const p of Hc(l))(e||!bt(ot(l[p])))&&f.push([a(p),a(l[p])]);return c}case Un:return i([o,l.toISOString()],l);case qn:{const{source:f,flags:c}=l;return i([o,{source:f,flags:c}],l)}case Vn:{const f=[],c=i([o,f],l);for(const[p,h]of l)(e||!(bt(ot(p))||bt(ot(h))))&&f.push([a(p),a(h)]);return c}case Wn:{const f=[],c=i([o,f],l);for(const p of l)(e||!bt(ot(p)))&&f.push(a(p));return c}}const{message:u}=l;return i([o,{name:s,message:u}],l)};return a},Mr=(e,{json:n,lossy:t}={})=>{const r=[];return Uc(!(n||t),!!n,new Map,r)(e),r},Tt=typeof structuredClone=="function"?(e,n)=>n&&("json"in n||"lossy"in n)?Rr(Mr(e,n)):structuredClone(e):(e,n)=>Rr(Mr(e,n));function qc(e,n){const t=[{type:"text",value:"↩"}];return n>1&&t.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(n)}]}),t}function Vc(e,n){return"Back to reference "+(e+1)+(n>1?"-"+n:"")}
vendor: 1,548 bytes, lines 31-32
31function Wc(e){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",t=e.options.footnoteBackContent||qc,r=e.options.footnoteBackLabel||Vc,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",l=e.options.footnoteLabelProperties||{className:["sr-only"]},o=[];let s=-1;for(;++s<e.footnoteOrder.length;){const u=e.footnoteById.get(e.footnoteOrder[s]);if(!u)continue;const f=e.all(u),c=String(u.identifier).toUpperCase(),p=et(c.toLowerCase());let h=0;const x=[],b=e.footnoteCounts.get(c);for(;b!==void 0&&++h<=b;){x.length>0&&x.push({type:"text",value:" "});let v=typeof t=="string"?t:t(s,h);typeof v=="string"&&(v={type:"text",value:v}),x.push({type:"element",tagName:"a",properties:{href:"#"+n+"fnref-"+p+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(s,h),className:["data-footnote-backref"]},children:Array.isArray(v)?v:[v]})}const C=f[f.length-1];if(C&&C.type==="element"&&C.tagName==="p"){const v=C.children[C.children.length-1];v&&v.type==="text"?v.value+=" ":C.children.push({type:"text",value:" "}),C.children.push(...x)}else f.push(...x);const y={type:"element",tagName:"li",properties:{id:n+"fn-"+p},children:e.wrap(f,!0)};e.patch(u,y),o.push(y)}if(o.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...Tt(l),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
32`},{type:"element",tagName:"ol",properties:{},children:e.wrap(o,!0)}
vendor: 5,292 bytes, lines 32-37
32,{type:"text",value:`
33`}]}}const Rt=function(e){if(e==null)return Yc;if(typeof e=="function")return Mt(e);if(typeof e=="object")return Array.isArray(e)?Kc(e):Qc(e);if(typeof e=="string")return Gc(e);throw new Error("Expected function, string, or object as test")};function Kc(e){const n=[];let t=-1;for(;++t<e.length;)n[t]=Rt(e[t]);return Mt(r);function r(...i){let a=-1;for(;++a<n.length;)if(n[a].apply(this,i))return!0;return!1}}function Qc(e){const n=e;return Mt(t);function t(r){const i=r;let a;for(a in e)if(i[a]!==n[a])return!1;return!0}}function Gc(e){return Mt(n);function n(t){return t&&t.type===e}}function Mt(e){return n;function n(t,r,i){return!!(Xc(t)&&e.call(this,t,typeof r=="number"?r:void 0,i||void 0))}}function Yc(){return!0}function Xc(e){return e!==null&&typeof e=="object"&&"type"in e}const il=[],Jc=!0,Cn=!1,Zc="skip";function ll(e,n,t,r){let i;typeof n=="function"&&typeof t!="function"?(r=t,t=n):i=n;const a=Rt(i),l=r?-1:1;o(e,void 0,[])();function o(s,u,f){const c=s&&typeof s=="object"?s:{};if(typeof c.type=="string"){const h=typeof c.tagName=="string"?c.tagName:typeof c.name=="string"?c.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(s.type+(h?"<"+h+">":""))+")"})}return p;function p(){let h=il,x,b,C;if((!n||a(s,u,f[f.length-1]||void 0))&&(h=ef(t(s,f)),h[0]===Cn))return h;if("children"in s&&s.children){const y=s;if(y.children&&h[0]!==Zc)for(b=(r?y.children.length:-1)+l,C=f.concat(y);b>-1&&b<y.children.length;){const v=y.children[b];if(x=o(v,b,C)(),x[0]===Cn)return x;b=typeof x[1]=="number"?x[1]:b+l}}return h}}}function ef(e){return Array.isArray(e)?e:typeof e=="number"?[Jc,e]:e==null?il:[e]}function Ot(e,n,t,r){let i,a,l;typeof n=="function"&&typeof t!="function"?(a=void 0,l=n,i=t):(a=n,l=t,i=r),ll(e,a,o,i);function o(s,u){const f=u[u.length-1],c=f?f.children.indexOf(s):void 0;return l(s,c,f)}}const In={}.hasOwnProperty,tf={};function nf(e,n){const t=n||tf,r=new Map,i=new Map,a=new Map,l={...Oc,...t.handlers},o={all:u,applyData:lf,definitionById:r,footnoteById:i,footnoteCounts:a,footnoteOrder:[],handlers:l,one:s,options:t,patch:rf,wrap:of};return Ot(e,function(f){if(f.type==="definition"||f.type==="footnoteDefinition"){const c=f.type==="definition"?r:i,p=String(f.identifier).toUpperCase();c.has(p)||c.set(p,f)}}),o;function s(f,c){const p=f.type,h=o.handlers[p];if(In.call(o.handlers,p)&&h)return h(o,f,c);if(o.options.passThrough&&o.options.passThrough.includes(p)){if("children"in f){const{children:b,...C}=f,y=Tt(C);return y.children=o.all(f),y}return Tt(f)}return(o.options.unknownHandler||af)(o,f,c)}function u(f){const c=[];if("children"in f){const p=f.children;let h=-1;for(;++h<p.length;){const x=o.one(p[h],f);if(x){if(h&&p[h-1].type==="break"&&(!Array.isArray(x)&&x.type==="text"&&(x.value=Or(x.value)),!Array.isArray(x)&&x.type==="element")){const b=x.children[0];b&&b.type==="text"&&(b.value=Or(b.value))}Array.isArray(x)?c.push(...x):c.push(x)}}}return c}}function rf(e,n){e.position&&(n.position=Vo(e))}function lf(e,n){let t=n;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,a=e.data.hProperties;if(typeof r=="string")if(t.type==="element")t.tagName=r;else{const l="children"in t?t.children:[t];t={type:"element",tagName:r,properties:{},children:l}}t.type==="element"&&a&&Object.assign(t.properties,Tt(a)),"children"in t&&t.children&&i!==null&&i!==void 0&&(t.children=i)}return t}function af(e,n){const t=n.data||{},r="value"in n&&!(In.call(t,"hProperties")||In.call(t,"hChildren"))?{type:"text",value:n.value}:{type:"element",tagName:"div",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function of(e,n){const t=[];let r=-1;for(n&&t.push({type:"text",value:`
34`});++r<e.length;)r&&t.push({type:"text",value:`
35`}),t.push(e[r]);return n&&e.length>0&&t.push({type:"text",value:`
36`}),t}function Or(e){let n=0,t=e.charCodeAt(n);for(;t===9||t===32;)n++,t=e.charCodeAt(n);return e.slice(n)}function Br(e,n){const t=nf(e,n),r=t.one(e,void 0),i=Wc(t),a=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&a.children.push({type:"text",value:`
37`},i),a}function sf(e,n){return e&&"run"in e?async function(t,r){const i=Br(t,{file:r,...n});await e.run(i,r)}:function(t,r){return Br(t,{file:r,...e||n})}}function $r(e){if(e)throw e}var Yt,Hr;function uf(){if(Hr)return Yt;Hr=1;var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString,t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(u){return typeof Array.isArray=="function"?Array.isArray(u):n.call(u)==="[object Array]"},a=function(u){if(!u||n.call(u)!=="[object Object]")return!1;var f=e.call(u,"constructor"),c=u.constructor&&u.constructor.prototype&&e.call(u.constructor.prototype,"isPrototypeOf");if(u.constructor&&!f&&!c)return!1;var p;for(p in u);return typeof p>"u"||e.call(u,p)},l=function(u,f){t&&f.name==="__proto__"?t(u,f.name,{enumerable:!0,configurable:!0,value:f.newValue,writable:!0}):u[f.name]=f.newValue},o=function(u,f){if(f==="__proto__")if(e.call(u,f)){if(r)return r(u,f).value}else return;return u[f]};return Yt=function s(){var u,f,c,p,h,x,b=arguments[0],C=1,y=arguments.length,v=!1;for(typeof b=="boolean"&&(v=b,b=arguments[1]||{},C=2),(b==null||typeof b!="object"&&typeof b!="function")&&(b={});C<y;++C)if(u=arguments[C],u!=null)for(f in u)c=o(b,f),p=o(u,f),b!==p&&
vendor: 3,940 bytes, line 37
37(v&&p&&(a(p)||(h=i(p)))?(h?(h=!1,x=c&&i(c)?c:[]):x=c&&a(c)?c:{},l(b,{name:f,newValue:s(v,x,p)})):typeof p<"u"&&l(b,{name:f,newValue:p}));return b},Yt}var cf=uf();const Xt=ri(cf);function En(e){if(typeof e!="object"||e===null)return!1;const n=Object.getPrototypeOf(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function ff(){const e=[],n={run:t,use:r};return n;function t(...i){let a=-1;const l=i.pop();if(typeof l!="function")throw new TypeError("Expected function as last argument, not "+l);o(null,...i);function o(s,...u){const f=e[++a];let c=-1;if(s){l(s);return}for(;++c<i.length;)(u[c]===null||u[c]===void 0)&&(u[c]=i[c]);i=u,f?hf(f,o)(...u):l(null,...u)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),n}}function hf(e,n){let t;return r;function r(...l){const o=e.length>l.length;let s;o&&l.push(i);try{s=e.apply(this,l)}catch(u){const f=u;if(o&&t)throw f;return i(f)}o||(s&&s.then&&typeof s.then=="function"?s.then(a,i):s instanceof Error?i(s):a(s))}function i(l,...o){t||(t=!0,n(l,...o))}function a(l){i(null,l)}}const Pe={basename:pf,dirname:df,extname:mf,join:gf,sep:"/"};function pf(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');xt(e);let t=0,r=-1,i=e.length,a;if(n===void 0||n.length===0||n.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){t=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?"":e.slice(t,r)}if(n===e)return"";let l=-1,o=n.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){t=i+1;break}}else l<0&&(a=!0,l=i+1),o>-1&&(e.codePointAt(i)===n.codePointAt(o--)?o<0&&(r=i):(o=-1,r=l));return t===r?r=l:r<0&&(r=e.length),e.slice(t,r)}function df(e){if(xt(e),e.length===0)return".";let n=-1,t=e.length,r;for(;--t;)if(e.codePointAt(t)===47){if(r){n=t;break}}else r||(r=!0);return n<0?e.codePointAt(0)===47?"/":".":n===1&&e.codePointAt(0)===47?"//":e.slice(0,n)}function mf(e){xt(e);let n=e.length,t=-1,r=0,i=-1,a=0,l;for(;n--;){const o=e.codePointAt(n);if(o===47){if(l){r=n+1;break}continue}t<0&&(l=!0,t=n+1),o===46?i<0?i=n:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||t<0||a===0||a===1&&i===t-1&&i===r+1?"":e.slice(i,t)}function gf(...e){let n=-1,t;for(;++n<e.length;)xt(e[n]),e[n]&&(t=t===void 0?e[n]:t+"/"+e[n]);return t===void 0?".":xf(t)}function xf(e){xt(e);const n=e.codePointAt(0)===47;let t=yf(e,!n);return t.length===0&&!n&&(t="."),t.length>0&&e.codePointAt(e.length-1)===47&&(t+="/"),n?"/"+t:t}function yf(e,n){let t="",r=0,i=-1,a=0,l=-1,o,s;for(;++l<=e.length;){if(l<e.length)o=e.codePointAt(l);else{if(o===47)break;o=47}if(o===47){if(!(i===l-1||a===1))if(i!==l-1&&a===2){if(t.length<2||r!==2||t.codePointAt(t.length-1)!==46||t.codePointAt(t.length-2)!==46){if(t.length>2){if(s=t.lastIndexOf("/"),s!==t.length-1){s<0?(t="",r=0):(t=t.slice(0,s),r=t.length-1-t.lastIndexOf("/")),i=l,a=0;continue}}else if(t.length>0){t="",r=0,i=l,a=0;continue}}n&&(t=t.length>0?t+"/..":"..",r=2)}else t.length>0?t+="/"+e.slice(i+1,l):t=e.slice(i+1,l),r=l-i-1;i=l,a=0}else o===46&&a>-1?a++:a=-1}return t}function xt(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const kf={cwd:bf};function bf(){return"/"}function Tn(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function wf(e){if(typeof e=="string")e=new URL(e);else if(!Tn(e)){const n=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw n.code="ERR_INVALID_ARG_TYPE",n}if(e.protocol!=="file:"){const n=new TypeError("The URL must be of scheme file");throw n.code="ERR_INVALID_URL_SCHEME",n}return vf(e)}function vf(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const n=e.pathname;let t=-1;for(;++t<n.length;
vendor: 9,459 bytes, line 37
37)if(n.codePointAt(t)===37&&n.codePointAt(t+1)===50){const r=n.codePointAt(t+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(n)}const Jt=["history","path","basename","stem","extname","dirname"];class al{constructor(n){let t;n?Tn(n)?t={path:n}:typeof n=="string"||Sf(n)?t={value:n}:t=n:t={},this.cwd="cwd"in t?"":kf.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Jt.length;){const a=Jt[r];a in t&&t[a]!==void 0&&t[a]!==null&&(this[a]=a==="history"?[...t[a]]:t[a])}let i;for(i in t)Jt.includes(i)||(this[i]=t[i])}get basename(){return typeof this.path=="string"?Pe.basename(this.path):void 0}set basename(n){en(n,"basename"),Zt(n,"basename"),this.path=Pe.join(this.dirname||"",n)}get dirname(){return typeof this.path=="string"?Pe.dirname(this.path):void 0}set dirname(n){Ur(this.basename,"dirname"),this.path=Pe.join(n||"",this.basename)}get extname(){return typeof this.path=="string"?Pe.extname(this.path):void 0}set extname(n){if(Zt(n,"extname"),Ur(this.dirname,"extname"),n){if(n.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(n.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Pe.join(this.dirname,this.stem+(n||""))}get path(){return this.history[this.history.length-1]}set path(n){Tn(n)&&(n=wf(n)),en(n,"path"),this.path!==n&&this.history.push(n)}get stem(){return typeof this.path=="string"?Pe.basename(this.path,this.extname):void 0}set stem(n){en(n,"stem"),Zt(n,"stem"),this.path=Pe.join(this.dirname||"",n+(this.extname||""))}fail(n,t,r){const i=this.message(n,t,r);throw i.fatal=!0,i}info(n,t,r){const i=this.message(n,t,r);return i.fatal=void 0,i}message(n,t,r){const i=new de(n,t,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(n){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(n||void 0).decode(this.value)}}function Zt(e,n){if(e&&e.includes(Pe.sep))throw new Error("`"+n+"` cannot be a path: did not expect `"+Pe.sep+"`")}function en(e,n){if(!e)throw new Error("`"+n+"` cannot be empty")}function Ur(e,n){if(!e)throw new Error("Setting `"+n+"` requires `path` to be set too")}function Sf(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Cf=function(e){const r=this.constructor.prototype,i=r[e],a=function(){return i.apply(a,arguments)};return Object.setPrototypeOf(a,r),a},If={}.hasOwnProperty;class Kn extends Cf{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=ff()}copy(){const n=new Kn;let t=-1;for(;++t<this.attachers.length;){const r=this.attachers[t];n.use(...r)}return n.data(Xt(!0,{},this.namespace)),n}data(n,t){return typeof n=="string"?arguments.length===2?(rn("data",this.frozen),this.namespace[n]=t,this):If.call(this.namespace,n)&&this.namespace[n]||void 0:n?(rn("data",this.frozen),this.namespace=n,this):this.namespace}freeze(){if(this.frozen)return this;const n=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=t.call(n,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(n){this.freeze();const t=wt(n),r=this.parser||this.Parser;return tn("parse",r),r(String(t),t)}process(n,t){const r=this;return this.freeze(),tn("process",this.parser||this.Parser),nn("process",this.compiler||this.Compiler),t?i(void 0,t):new Promise(i);function i(a,l){const o=wt(n),s=r.parse(o);r.run(s,o,function(f,c,p){if(f||!c||!p)return u(f);const h=c,x=r.stringify(h,p);Af(x)?p.value=x:p.result=x,u(f,p)});function u(f,c){f||!c?l(f):a?a(c):t(void 0,c)}}}processSync(n){let t=!1,r;return this.freeze(),tn("processSync",this.parser||this.Parser),nn("processSync",this.compiler||this.Compiler),this.process(n,i),Vr("processSync","process",t),r;function i(a,l){t=!0,$r(a),r=l}}run(n,t,r){qr(n),this.freeze();const i=this.transformers;return!r&&typeof t=="function"&&(r=t,t=void 0),r?a(void 0,r):new Promise(a);function a(l,o){const s=wt(t);i.run(n,s,u);function u(f,c,p){const h=c||n;f?o(f):l?l(h):r(void 0,h,p)}}}runSync(n,t){let r=!1,i;return this.run(n,t,a),Vr("runSync","run",r),i;function a(l,o){$r(l),i=o,r=!0}}stringify(n,t){this.freeze();const r=wt(t),i=this.compiler||this.Compiler;return nn("stringify",i),qr(n),i(n,r)}use(n,...t){const r=this.attachers,i=this.namespace;if(rn("use",this.frozen),n!=null)if(typeof n=="function")s(n,t);else if(typeof n=="object")Array.isArray(n)?o(n):l(n);else throw new TypeError("Expected usable value, not `"+n+"`");return this;function a(u){if(typeof u=="function")s(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[f,...c]=u;s(f,c)}else l(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function l(u){if(!("plugins"in u)&&!("settings"in u))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(u.plugins),u.settings&&(i.settings=Xt(!0,i.settings,u.settings))}function o(u){let f=-1;if(u!=null)if(Array.isArray(u))for(;++f<u.length;){const c=u[f];a(c)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function s(u,f){let c=-1,p=-1;for(;++c<r.length;)if(r[c][0]===u){p=c;break}if(p===-1)r.push([u,...f]);else if(f.length>0){let[h,...x]=f;const b=r[p][1];En(b)&&En(h)&&(h=Xt(!0,b,h)),r[p]=[u,h,...x]}}}}const Ef=new Kn().freeze();function tn(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function nn(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function rn(e,n){if(n)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function qr(e){if(!En(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Vr(e,n,t){if(!t)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function wt(e){return Tf(e)?e:new al(e)}function Tf(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Af(e){return typeof e=="string"||jf(e)}function jf(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Nf="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Wr=[],Kr={allowDangerousHtml:!0},Pf=/^(https?|ircs?|mailto|xmpp)$/i,Df=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Ff(e){const n=zf(e),t=Lf(e);return _f(n.runSync(n.parse(t),t),e)}function zf(e){const n=e.rehypePlugins||Wr,t=e.remarkPlugins||Wr,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Kr}:Kr;return Ef().use(pc).use(t).use(sf,r).use(n)}function Lf(e){const n=e.children||"",t=new al;return typeof n=="string"&&(t.value=n),t}function _f(e,n){const t=n.allowedElements,r=n.allowElement,i=n.components,a=n.disallowedElements,l=n.skipHtml,o=n.unwrapDisallowed,s=n.urlTransform||Rf;for(const f of Df)Object.hasOwn(n,f.from)&&(""+f.from+(f.to?"use `"+f.to+"` instead":"remove it")+Nf+f.id,void 0);return n.className&&(e={type:"element",tagName:"div",properties:{className:n.className},children:e.type==="root"?e.children:[e]}),Ot(e,u),Yo(e,{Fragment:d.Fragment,components:i,ignoreInvalidStyle:!0,jsx:d.jsx,jsxs:d.jsxs,passKeys:!0,passNode:!0});function u(f,c,p){if(f.type==="raw"&&p&&typeof c=="number")return l?p.children.splice(c,1):p.children[c]={type:"text",value:f.value},c;if(f.type==="element"){let h;for(h in Kt)if(Object.hasOwn(Kt,h)&&Object.hasOwn(f.properties,h)){const x=f.properties[h],b=Kt[h];(b===null||b.includes(f.tagName))&&(f.properties[h]=s(String(x||""),h,f))}}if(f.type==="element"){let h=t?!t.includes(f.tagName):a?a.includes(f.tagName):!1;if(!h&&r&&typeof c=="number"&&(h=!r(f,c,p)),h&&p&&typeof c=="number")return o&&f.children?p.children.splice(c,1,...f.children):p.children.splice(c,1),c}}}function Rf(e){const n=e.indexOf(":"),t=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return n===-1||i!==-1&&n>i||t!==-1&&n>t||r!==-1&&n>r||Pf.test(e.slice(0,n))?e:""}function Qr(e,n){const t=String(e);
vendor: 5,432 bytes, lines 37-38
37if(typeof n!="string")throw new TypeError("Expected character");let r=0,i=t.indexOf(n);for(;i!==-1;)r++,i=t.indexOf(n,i+n.length);return r}function Mf(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Of(e,n,t){const i=Rt((t||{}).ignore||[]),a=Bf(n);let l=-1;for(;++l<a.length;)ll(e,"text",o);function o(u,f){let c=-1,p;for(;++c<f.length;){const h=f[c],x=p?p.children:void 0;if(i(h,x?x.indexOf(h):void 0,p))return;p=h}if(p)return s(u,f)}function s(u,f){const c=f[f.length-1],p=a[l][0],h=a[l][1];let x=0;const C=c.children.indexOf(u);let y=!1,v=[];p.lastIndex=0;let S=p.exec(u.value);for(;S;){const j=S.index,E={index:S.index,input:S.input,stack:[...f,u]};let w=h(...S,E);if(typeof w=="string"&&(w=w.length>0?{type:"text",value:w}:void 0),w===!1?p.lastIndex=j+1:(x!==j&&v.push({type:"text",value:u.value.slice(x,j)}),Array.isArray(w)?v.push(...w):w&&v.push(w),x=j+S[0].length,y=!0),!p.global)break;S=p.exec(u.value)}return y?(x<u.value.length&&v.push({type:"text",value:u.value.slice(x)}),c.children.splice(C,1,...v)):v=[u],C+v.length}}function Bf(e){const n=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const t=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<t.length;){const i=t[r];n.push([$f(i[0]),Hf(i[1])])}return n}function $f(e){return typeof e=="string"?new RegExp(Mf(e),"g"):e}function Hf(e){return typeof e=="function"?e:function(){return e}}const ln="phrasing",an=["autolink","link","image","label"];function Uf(){return{transforms:[Yf],enter:{literalAutolink:Vf,literalAutolinkEmail:on,literalAutolinkHttp:on,literalAutolinkWww:on},exit:{literalAutolink:Gf,literalAutolinkEmail:Qf,literalAutolinkHttp:Wf,literalAutolinkWww:Kf}}}function qf(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:ln,notInConstruct:an},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:ln,notInConstruct:an},{character:":",before:"[ps]",after:"\\/",inConstruct:ln,notInConstruct:an}]}}function Vf(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function on(e){this.config.enter.autolinkProtocol.call(this,e)}function Wf(e){this.config.exit.autolinkProtocol.call(this,e)}function Kf(e){this.config.exit.data.call(this,e);const n=this.stack[this.stack.length-1];n.type,n.url="http://"+this.sliceSerialize(e)}function Qf(e){this.config.exit.autolinkEmail.call(this,e)}function Gf(e){this.exit(e)}function Yf(e){Of(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Xf],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),Jf]],{ignore:["link","linkReference"]})}function Xf(e,n,t,r,i){let a="";if(!ol(i)||(/^w/i.test(n)&&(t=n+t,n="",a="http://"),!Zf(t)))return!1;const l=eh(t+r);if(!l[0])return!1;const o={type:"link",title:null,url:a+n+l[0],children:[{type:"text",value:n+l[0]}]};return l[1]?[o,{type:"text",value:l[1]}]:o}function Jf(e,n,t,r){return!ol(r,!0)||/[-\d_]$/.test(t)?!1:{type:"link",title:null,url:"mailto:"+n+"@"+t,children:[{type:"text",value:n+"@"+t}]}}function Zf(e){const n=e.split(".");return!(n.length<2||n[n.length-1]&&(/_/.test(n[n.length-1])||!/[a-zA-Z\d]/.test(n[n.length-1]))||n[n.length-2]&&(/_/.test(n[n.length-2])||!/[a-zA-Z\d]/.test(n[n.length-2])))}function eh(e){const n=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!n)return[e,void 0];e=e.slice(0,n.index);let t=n[0],r=t.indexOf(")");const i=Qr(e,"(");let a=Qr(e,")");for(;r!==-1&&i>a;)e+=t.slice(0,r+1),t=t.slice(r+1),r=t.indexOf(")"),a++;return[e,t]}function ol(e,n){const t=e.input.charCodeAt(e.index-1);return(e.index===0||Ue(t)||zt(t))&&(!n||t!==47)}sl.peek=uh;function th(){this.buffer()}function nh(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function rh(){this.buffer()}function ih(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function lh(e){const n=this.resume(),t=this.stack[this.stack.length-1];t.type,t.identifier=Ae(this.sliceSerialize(e)).toLowerCase(),t.label=n}function ah(e){this.exit(e)}function oh(e){const n=this.resume(),t=this.stack[this.stack.length-1];t.type,t.identifier=Ae(this.sliceSerialize(e)).toLowerCase(),t.label=n}function sh(e){this.exit(e)}function uh(){return"["}function sl(e,n,t,r){const i=t.createTracker(r);let a=i.move("[^");const l=t.enter("footnoteReference"),o=t.enter("reference");return a+=i.move(t.safe(t.associationId(e),{after:"]",before:a})),o(),l(),a+=i.move("]"),a}function ch(){return{enter:{gfmFootnoteCallString:th,gfmFootnoteCall:nh,gfmFootnoteDefinitionLabelString:rh,gfmFootnoteDefinition:ih},exit:{gfmFootnoteCallString:lh,gfmFootnoteCall:ah,gfmFootnoteDefinitionLabelString:oh,gfmFootnoteDefinition:sh}}}function fh(e){let n=!1;return e&&e.firstLineBlank&&(n=!0),{handlers:{footnoteDefinition:t,footnoteReference:sl},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function t(r,i,a,l){const o=a.createTracker(l);let s=o.move("[^");const u=a.enter("footnoteDefinition"),f=a.enter("label");return s+=o.move(a.safe(a.associationId(r),{before:s,after:"]"})),f(),s+=o.move("]:"),r.children&&r.children.length>0&&(o.shift(4),s+=o.move((n?`
38`:" ")+a.indentLines(a.containerFlow(r,o.current()),n?ul:hh))),u(),s}}function hh(e,n,t){return n===0?e:ul(e,n,t)}function ul(e,n,t){return(t?"":"    ")+e}const ph=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];cl.peek=yh;
vendor: 12,065 bytes, lines 38-50
38function dh(){return{canContainEols:["delete"],enter:{strikethrough:gh},exit:{strikethrough:xh}}}function mh(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:ph}],handlers:{delete:cl}}}function gh(e){this.enter({type:"delete",children:[]},e)}function xh(e){this.exit(e)}function cl(e,n,t,r){const i=t.createTracker(r),a=t.enter("strikethrough");let l=i.move("~~");return l+=t.containerPhrasing(e,{...i.current(),before:l,after:"~"}),l+=i.move("~~"),a(),l}function yh(){return"~"}function kh(e){return e.length}function bh(e,n){const t=n||{},r=(t.align||[]).concat(),i=t.stringLength||kh,a=[],l=[],o=[],s=[];let u=0,f=-1;for(;++f<e.length;){const b=[],C=[];let y=-1;for(e[f].length>u&&(u=e[f].length);++y<e[f].length;){const v=wh(e[f][y]);if(t.alignDelimiters!==!1){const S=i(v);C[y]=S,(s[y]===void 0||S>s[y])&&(s[y]=S)}b.push(v)}l[f]=b,o[f]=C}let c=-1;if(typeof r=="object"&&"length"in r)for(;++c<u;)a[c]=Gr(r[c]);else{const b=Gr(r);for(;++c<u;)a[c]=b}c=-1;const p=[],h=[];for(;++c<u;){const b=a[c];let C="",y="";b===99?(C=":",y=":"):b===108?C=":":b===114&&(y=":");let v=t.alignDelimiters===!1?1:Math.max(1,s[c]-C.length-y.length);const S=C+"-".repeat(v)+y;t.alignDelimiters!==!1&&(v=C.length+v+y.length,v>s[c]&&(s[c]=v),h[c]=v),p[c]=S}l.splice(1,0,p),o.splice(1,0,h),f=-1;const x=[];for(;++f<l.length;){const b=l[f],C=o[f];c=-1;const y=[];for(;++c<u;){const v=b[c]||"";let S="",j="";if(t.alignDelimiters!==!1){const E=s[c]-(C[c]||0),w=a[c];w===114?S=" ".repeat(E):w===99?E%2?(S=" ".repeat(E/2+.5),j=" ".repeat(E/2-.5)):(S=" ".repeat(E/2),j=S):j=" ".repeat(E)}t.delimiterStart!==!1&&!c&&y.push("|"),t.padding!==!1&&!(t.alignDelimiters===!1&&v==="")&&(t.delimiterStart!==!1||c)&&y.push(" "),t.alignDelimiters!==!1&&y.push(S),y.push(v),t.alignDelimiters!==!1&&y.push(j),t.padding!==!1&&y.push(" "),(t.delimiterEnd!==!1||c!==u-1)&&y.push("|")}x.push(t.delimiterEnd===!1?y.join("").replace(/ +$/,""):y.join(""))}return x.join(`
39`)}function wh(e){return e==null?"":String(e)}function Gr(e){const n=typeof e=="string"?e.codePointAt(0):0;return n===67||n===99?99:n===76||n===108?108:n===82||n===114?114:0}function vh(e,n,t,r){const i=t.enter("blockquote"),a=t.createTracker(r);a.move("> "),a.shift(2);const l=t.indentLines(t.containerFlow(e,a.current()),Sh);return i(),l}function Sh(e,n,t){return">"+(t?"":" ")+e}function Ch(e,n){return Yr(e,n.inConstruct,!0)&&!Yr(e,n.notInConstruct,!1)}function Yr(e,n,t){if(typeof n=="string"&&(n=[n]),!n||n.length===0)return t;let r=-1;for(;++r<n.length;)if(e.includes(n[r]))return!0;return!1}function Xr(e,n,t,r){let i=-1;for(;++i<t.unsafe.length;)if(t.unsafe[i].character===`
40`&&Ch(t.stack,t.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
41`}function Ih(e,n){const t=String(e);let r=t.indexOf(n),i=r,a=0,l=0;if(typeof n!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++a>l&&(l=a):a=1,i=r+n.length,r=t.indexOf(n,i);return l}function Eh(e,n){return!!(n.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function Th(e){const n=e.options.fence||"`";if(n!=="`"&&n!=="~")throw new Error("Cannot serialize code with `"+n+"` for `options.fence`, expected `` ` `` or `~`");return n}function Ah(e,n,t,r){const i=Th(t),a=e.value||"",l=i==="`"?"GraveAccent":"Tilde";if(Eh(e,t)){const c=t.enter("codeIndented"),p=t.indentLines(a,jh);return c(),p}const o=t.createTracker(r),s=i.repeat(Math.max(Ih(a,i)+1,3)),u=t.enter("codeFenced");let f=o.move(s);if(e.lang){const c=t.enter(`codeFencedLang${l}`);f+=o.move(t.safe(e.lang,{before:f,after:" ",encode:["`"],...o.current()})),c()}if(e.lang&&e.meta){const c=t.enter(`codeFencedMeta${l}`);f+=o.move(" "),f+=o.move(t.safe(e.meta,{before:f,after:`
42`,encode:["`"],...o.current()})),c()}return f+=o.move(`
43`),a&&(f+=o.move(a+`
44`)),f+=o.move(s),u(),f}function jh(e,n,t){return(t?"":"    ")+e}function Qn(e){const n=e.options.quote||'"';if(n!=='"'&&n!=="'")throw new Error("Cannot serialize title with `"+n+"` for `options.quote`, expected `\"`, or `'`");return n}function Nh(e,n,t,r){const i=Qn(t),a=i==='"'?"Quote":"Apostrophe",l=t.enter("definition");let o=t.enter("label");const s=t.createTracker(r);let u=s.move("[");return u+=s.move(t.safe(t.associationId(e),{before:u,after:"]",...s.current()})),u+=s.move("]: "),o(),!e.url||/[\0- \u007F]/.test(e.url)?(o=t.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(t.safe(e.url,{before:u,after:">",...s.current()})),u+=s.move(">")):(o=t.enter("destinationRaw"),u+=s.move(t.safe(e.url,{before:u,after:e.title?" ":`
45`,...s.current()}))),o(),e.title&&(o=t.enter(`title${a}`),u+=s.move(" "+i),u+=s.move(t.safe(e.title,{before:u,after:i,...s.current()})),u+=s.move(i),o()),l(),u}function Ph(e){const n=e.options.emphasis||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize emphasis with `"+n+"` for `options.emphasis`, expected `*`, or `_`");return n}function dt(e){return"&#x"+e.toString(16).toUpperCase()+";"}function At(e,n,t){const r=Je(e),i=Je(n);return r===void 0?i===void 0?t==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}fl.peek=Dh;function fl(e,n,t,r){const i=Ph(t),a=t.enter("emphasis"),l=t.createTracker(r),o=l.move(i);let s=l.move(t.containerPhrasing(e,{after:i,before:o,...l.current()}));const u=s.charCodeAt(0),f=At(r.before.charCodeAt(r.before.length-1),u,i);f.inside&&(s=dt(u)+s.slice(1));const c=s.charCodeAt(s.length-1),p=At(r.after.charCodeAt(0),c,i);p.inside&&(s=s.slice(0,-1)+dt(c));const h=l.move(i);return a(),t.attentionEncodeSurroundingInfo={after:p.outside,before:f.outside},o+s+h}function Dh(e,n,t){return t.options.emphasis||"*"}function Fh(e,n){let t=!1;return Ot(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return t=!0,Cn}),!!((!e.depth||e.depth<3)&&Bn(e)&&(n.options.setext||t))}function zh(e,n,t,r){const i=Math.max(Math.min(6,e.depth||1),1),a=t.createTracker(r);if(Fh(e,t)){const f=t.enter("headingSetext"),c=t.enter("phrasing"),p=t.containerPhrasing(e,{...a.current(),before:`
46`,after:`
47`});return c(),f(),p+`
48`+(i===1?"=":"-").repeat(p.length-(Math.max(p.lastIndexOf("\r"),p.lastIndexOf(`
49`))+1))}const l="#".repeat(i),o=t.enter("headingAtx"),s=t.enter("phrasing");a.move(l+" ");let u=t.containerPhrasing(e,{before:"# ",after:`
50`,...a.current()});return/^[\t ]/.test(u)&&(u=dt(u.charCodeAt(0))+u.slice(1)),u=u?l+" "+u:l,t.options.closeAtx&&(u+=" "+l),s(),o(),u}hl.peek=Lh;function hl(e){return e.value||""}function Lh(){return"<"}pl.peek=_h;function pl(e,n,t,r){const i=Qn(t),a=i==='"'?"Quote":"Apostrophe",l=t.enter("image");let o=t.enter("label");const s=t.createTracker(r);let u=s.move("![");return u+=s.move(t.safe(e.alt,{before:u,after:"]",...s.current()})),u+=s.move("]("),o(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(o=t.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(t.safe(e.url,{before:u,after:">",...s.current()})),u+=s.move(">")):(o=t.enter("destinationRaw"),u+=s.move(t.safe(e.url,{before:u,after:e.title?" ":")",...s.current()}))),o(),e.title&&(o=t.enter(`title${a}`),u+=s.move(" "+i),u+=s.move(t.safe(e.title,{before:u,after:i,...s.current()})),u+=s.move(i),o()),u+=s.move(")"),l(),u}function _h(){return"!"}dl.peek=Rh;function dl(e,n,t,r){const i=e.referenceType,a=t.enter("imageReference");let l=t.enter("label");const o=t.createTracker(r);let s=o.move("![");const u=t.safe(e.alt,{before:s,after:"]",...o.current()});s+=o.move(u+"]["),l();const f=t.stack;t.stack=[],l=t.enter("reference");const c=t.safe(t.associationId(e),{before:s,after:"]",...o.current()});return l(),t.stack=f,a(),i==="full"||!u||u!==c?s+=o.move(c+"]"):i==="shortcut"?s=s.slice(0,-1):s+=o.move("]"),s}function Rh(){return"!"}ml.peek=Mh;function ml(e,n,t){let r=e.value||"",i="`",a=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++a<t.unsafe.length;){const l=t.unsafe[a],o=t.compilePattern(l);let s;if(l.atBreak)for(;s=o.exec(r);){let u=s.index;r.charCodeAt(u)===10&&r.charCodeAt(u-1)===13&&u--,r=r.slice(0,u)+" "+r.slice(s.index+1)}}return i+r+i}function Mh(){return"`"}function gl(e,n){const t=Bn(e);return!!(!n.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(t===e.url||"mailto:"+t===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}xl.peek=Oh;function xl(e,n,t,r){const i=Qn(t),a=i==='"'?"Quote":"Apostrophe",l=t.createTracker(r);let o,s;if(gl(e,t)){const f=t.stack;t.stack=[],o=t.enter("autolink");let c=l.move("<");return c+=l.move(t.containerPhrasing(e,{before:c,after:">",...l.current()})),c+=l.move(">"),o(),t.stack=f,c}o=t.enter("link"),s=t.enter("label");let u=l.move("[");return u+=l.move(t.containerPhrasing(e,{before:u,after:"](",...l.current()})),u+=l.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=t.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(t.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(s=t.enter("destinationRaw"),u+=l.move(t.safe(e.url,{before:u,after:e.title?" ":")",...l.current()}))),s(),e.title&&(s=t.enter(`title${a}`),u+=l.move(" "+i),u+=l.move(t.safe(e.title,{before:u,after:i,...l.current()})),u+=l.move(i),s()),u+=l.move(")"),o(),u}function Oh(e,n,t){return gl(e,t)?"<":"["}yl.peek=Bh;function yl(e,n,t,r){const i=e.referenceType,a=t.enter("linkReference");let l=t.enter("label");const o=t.createTracker(r);let s=o.move("[");const u=t.containerPhrasing(e,{before:s,after:"]",...o.current()});s+=o.move(u+"]["),l();const f=t.stack;t.stack=[],l=t.enter("reference");const c=t.safe(t.associationId(e),{before:s,after:"]",...o.current()});return l(),t.stack=f,a(),i==="full"||!u||u!==c?s+=o.move(c+"]"):i==="shortcut"?s=s.slice(0,-1):s+=o.move("]"),s}function Bh(){return"["}function Gn(e){const n=e.options.bullet||"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bullet`, expected `*`, `+`, or `-`");return n}function $h(e){const n=Gn(e),t=e.options.bulletOther;if(!t)return n==="*"?"-":"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(t===n)throw new Error("Expected `bullet` (`"+n+"`) and `bulletOther` (`"+t+"`) to be different");return t}function Hh(e){const n=e.options.bulletOrdered||".";if(n!=="."&&n!==")")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOrdered`, expected `.` or `)`");return n}function kl(e){const n=e.options.rule||"*";if(n!=="*"&&n!=="-"&&n!=="_")throw new Error("Cannot serialize rules with `"+n+"` for `options.rule`, expected `*`, `-`, or `_`");return n}function Uh(e,n,t,r){const i=t.enter("list"),a=t.bulletCurrent;let l=e.ordered?Hh(t):Gn(t);const o=e.ordered?l==="."?")":".":$h(t);let s=n&&t.bulletLastUsed?l===t.bulletLastUsed:!1;if(!e.ordered){const f=e.children?e.children[0]:void 0;if((l==="*"||l==="-")&&f&&(!f.children||!f.children[0])&&t.stack[t.stack.length-1]==="list"&&t.stack[t.stack.length-2]==="listItem"&&t.stack[t.stack.length-3]==="list"&&t.stack[t.stack.length-4]==="listItem"&&t.indexStack[t.indexStack.length-1]===0&&t.indexStack[t.indexStack.length-2]===0&&t.indexStack[t.indexStack.length-3]===0&&(s=!0),kl(t)===l&&f){let c=-1;for(;++c<e.children.length;){const p=e.children[c];if(p&&p.type==="listItem"&&p.children&&p.children[0]&&p.children[0].type==="thematicBreak"){s=!0;break}}}}s&&(l=o),t.bulletCurrent=l;const u=t.containerFlow(e,r);return t.bulletLastUsed=l,t.bulletCurrent=a,i(),u}function qh(e){const n=e.options.listItemIndent||"one";if(n!=="tab"&&n!=="one"&&n!=="mixed")throw new Error("Cannot serialize items with `"+n+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return n}function Vh(e,n,t,r){const i=qh(t);let a=t.bulletCurrent||Gn(t);n&&n.type==="list"&&n.ordered&&(a=(typeof n.start=="number"&&n.start>
vendor: 5,354 bytes, lines 50-52
50-1?n.start:1)+(t.options.incrementListMarker===!1?0:n.children.indexOf(e))+a);let l=a.length+1;(i==="tab"||i==="mixed"&&(n&&n.type==="list"&&n.spread||e.spread))&&(l=Math.ceil(l/4)*4);const o=t.createTracker(r);o.move(a+" ".repeat(l-a.length)),o.shift(l);const s=t.enter("listItem"),u=t.indentLines(t.containerFlow(e,o.current()),f);return s(),u;function f(c,p,h){return p?(h?"":" ".repeat(l))+c:(h?a:a+" ".repeat(l-a.length))+c}}function Wh(e,n,t,r){const i=t.enter("paragraph"),a=t.enter("phrasing"),l=t.containerPhrasing(e,r);return a(),i(),l}const Kh=Rt(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Qh(e,n,t,r){return(e.children.some(function(l){return Kh(l)})?t.containerPhrasing:t.containerFlow).call(t,e,r)}function Gh(e){const n=e.options.strong||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize strong with `"+n+"` for `options.strong`, expected `*`, or `_`");return n}bl.peek=Yh;function bl(e,n,t,r){const i=Gh(t),a=t.enter("strong"),l=t.createTracker(r),o=l.move(i+i);let s=l.move(t.containerPhrasing(e,{after:i,before:o,...l.current()}));const u=s.charCodeAt(0),f=At(r.before.charCodeAt(r.before.length-1),u,i);f.inside&&(s=dt(u)+s.slice(1));const c=s.charCodeAt(s.length-1),p=At(r.after.charCodeAt(0),c,i);p.inside&&(s=s.slice(0,-1)+dt(c));const h=l.move(i+i);return a(),t.attentionEncodeSurroundingInfo={after:p.outside,before:f.outside},o+s+h}function Yh(e,n,t){return t.options.strong||"*"}function Xh(e,n,t,r){return t.safe(e.value,r)}function Jh(e){const n=e.options.ruleRepetition||3;if(n<3)throw new Error("Cannot serialize rules with repetition `"+n+"` for `options.ruleRepetition`, expected `3` or more");return n}function Zh(e,n,t){const r=(kl(t)+(t.options.ruleSpaces?" ":"")).repeat(Jh(t));return t.options.ruleSpaces?r.slice(0,-1):r}const wl={blockquote:vh,break:Xr,code:Ah,definition:Nh,emphasis:fl,hardBreak:Xr,heading:zh,html:hl,image:pl,imageReference:dl,inlineCode:ml,link:xl,linkReference:yl,list:Uh,listItem:Vh,paragraph:Wh,root:Qh,strong:bl,text:Xh,thematicBreak:Zh};function ep(){return{enter:{table:tp,tableData:Jr,tableHeader:Jr,tableRow:rp},exit:{codeText:ip,table:np,tableData:sn,tableHeader:sn,tableRow:sn}}}function tp(e){const n=e._align;this.enter({type:"table",align:n.map(function(t){return t==="none"?null:t}),children:[]},e),this.data.inTable=!0}function np(e){this.exit(e),this.data.inTable=void 0}function rp(e){this.enter({type:"tableRow",children:[]},e)}function sn(e){this.exit(e)}function Jr(e){this.enter({type:"tableCell",children:[]},e)}function ip(e){let n=this.resume();this.data.inTable&&(n=n.replace(/\\([\\|])/g,lp));const t=this.stack[this.stack.length-1];t.type,t.value=n,this.exit(e)}function lp(e,n){return n==="|"?n:e}function ap(e){const n=e||{},t=n.tableCellPadding,r=n.tablePipeAlign,i=n.stringLength,a=t?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
51`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[	 :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:p,table:l,tableCell:s,tableRow:o}};function l(h,x,b,C){return u(f(h,b,C),h.align)}function o(h,x,b,C){const y=c(h,b,C),v=u([y]);return v.slice(0,v.indexOf(`
52`))}function s(h,x,b,C){const y=b.enter("tableCell"),v=b.enter("phrasing"),S=b.containerPhrasing(h,{...C,before:a,after:a});return v(),y(),S}function u(h,x){return bh(h,{align:x,alignDelimiters:r,padding:t,stringLength:i})}function f(h,x,b){const C=h.children;let y=-1;const v=[],S=x.enter("table");for(;++y<C.length;)v[y]=c(C[y],x,b);return S(),v}function c(h,x,b){const C=h.children;let y=-1;const v=[],S=x.enter("tableRow");for(;++y<C.length;)v[y]=s(C[y],h,x,b);return S(),v}function p(h,x,b){let C=wl.inlineCode(h,x,b);return b.stack.includes("tableCell")&&(C=C.replace(/\|/g,"\\$&")),C}}function op(){return{exit:{taskListCheckValueChecked:Zr,taskListCheckValueUnchecked:Zr,paragraph:up}}}function sp(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:cp}}}function Zr(e){const n=this.stack[this.stack.length-2];n.type,n.checked=e.type==="taskListCheckValueChecked"}function up(e){const n=this.stack[this.stack.length-2];if(n&&n.type==="listItem"&&typeof n.checked=="boolean"){const t=this.stack[this.stack.length-1];t.type;const r=t.children[0];if(r&&r.type==="text"){const i=n.children;let a=-1,l;for(;++a<i.length;){const o=i[a];if(o.type==="paragraph"){l=o;break}}l===t&&(r.value=r.value.slice(1),r.value.length===0?t.children.shift():t.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,t.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function cp(e,n,t,r){const i=e.children[0],a=typeof e.checked=="boolean"&&i&&i.type==="paragraph",l="["+(e.checked?"x":" ")+"] ",o=t.createTracker(r);a&&o.move(l);let s=wl.listItem(e,n,t,{...r,...o.current()});return a&&(s=s.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),s;function u(f){return f+l}}function fp(){return[Uf(),ch(),dh(),ep(),op()]}function hp(e){return{extensions:[qf(),fh(e),mh(),ap(e),sp()]}}const pp={tokenize:kp,partial:!0},vl={tokenize:bp,partial:!0},Sl={tokenize:wp,partial:!0}
vendor: 9,111 bytes, line 52
52,Cl={tokenize:vp,partial:!0},dp={tokenize:Sp,partial:!0},Il={name:"wwwAutolink",tokenize:xp,previous:Tl},El={name:"protocolAutolink",tokenize:yp,previous:Al},Le={name:"emailAutolink",tokenize:gp,previous:jl},De={};function mp(){return{text:De}}let Oe=48;for(;Oe<123;)De[Oe]=Le,Oe++,Oe===58?Oe=65:Oe===91&&(Oe=97);De[43]=Le;De[45]=Le;De[46]=Le;De[95]=Le;De[72]=[Le,El];De[104]=[Le,El];De[87]=[Le,Il];De[119]=[Le,Il];function gp(e,n,t){const r=this;let i,a;return l;function l(c){return!An(c)||!jl.call(r,r.previous)||Yn(r.events)?t(c):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),o(c))}function o(c){return An(c)?(e.consume(c),o):c===64?(e.consume(c),s):t(c)}function s(c){return c===46?e.check(dp,f,u)(c):c===45||c===95||pe(c)?(a=!0,e.consume(c),s):f(c)}function u(c){return e.consume(c),i=!0,s}function f(c){return a&&i&&me(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),n(c)):t(c)}}function xp(e,n,t){const r=this;return i;function i(l){return l!==87&&l!==119||!Tl.call(r,r.previous)||Yn(r.events)?t(l):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(pp,e.attempt(vl,e.attempt(Sl,a),t),t)(l))}function a(l){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),n(l)}}function yp(e,n,t){const r=this;let i="",a=!1;return l;function l(c){return(c===72||c===104)&&Al.call(r,r.previous)&&!Yn(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(c),e.consume(c),o):t(c)}function o(c){if(me(c)&&i.length<5)return i+=String.fromCodePoint(c),e.consume(c),o;if(c===58){const p=i.toLowerCase();if(p==="http"||p==="https")return e.consume(c),s}return t(c)}function s(c){return c===47?(e.consume(c),a?u:(a=!0,s)):t(c)}function u(c){return c===null||It(c)||te(c)||Ue(c)||zt(c)?t(c):e.attempt(vl,e.attempt(Sl,f),t)(c)}function f(c){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),n(c)}}function kp(e,n,t){let r=0;return i;function i(l){return(l===87||l===119)&&r<3?(r++,e.consume(l),i):l===46&&r===3?(e.consume(l),a):t(l)}function a(l){return l===null?t(l):n(l)}}function bp(e,n,t){let r,i,a;return l;function l(u){return u===46||u===95?e.check(Cl,s,o)(u):u===null||te(u)||Ue(u)||u!==45&&zt(u)?s(u):(a=!0,e.consume(u),l)}function o(u){return u===95?r=!0:(i=r,r=void 0),e.consume(u),l}function s(u){return i||r||!a?t(u):n(u)}}function wp(e,n){let t=0,r=0;return i;function i(l){return l===40?(t++,e.consume(l),i):l===41&&r<t?a(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(Cl,n,a)(l):l===null||te(l)||Ue(l)?n(l):(e.consume(l),i)}function a(l){return l===41&&r++,e.consume(l),i}}function vp(e,n,t){return r;function r(o){return o===33||o===34||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===63||o===95||o===126?(e.consume(o),r):o===38?(e.consume(o),a):o===93?(e.consume(o),i):o===60||o===null||te(o)||Ue(o)?n(o):t(o)}function i(o){return o===null||o===40||o===91||te(o)||Ue(o)?n(o):r(o)}function a(o){return me(o)?l(o):t(o)}function l(o){return o===59?(e.consume(o),r):me(o)?(e.consume(o),l):t(o)}}function Sp(e,n,t){return r;function r(a){return e.consume(a),i}function i(a){return pe(a)?t(a):n(a)}}function Tl(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||te(e)}function Al(e){return!me(e)}function jl(e){return!(e===47||An(e))}function An(e){return e===43||e===45||e===46||e===95||pe(e)}function Yn(e){let n=e.length,t=!1;for(;n--;){const r=e[n][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){t=!0;break}if(r._gfmAutolinkLiteralWalkedInto){t=!1;break}}return e.length>0&&!t&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),t}const Cp={tokenize:Dp,partial:!0};function Ip(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:jp,continuation:{tokenize:Np},exit:Pp}},text:{91:{name:"gfmFootnoteCall",tokenize:Ap},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Ep,resolveTo:Tp}}}}function Ep(e,n,t){const r=this;let i=r.events.length;const a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l;for(;i--;){const s=r.events[i][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 o;function o(s){if(!l||!l._balanced)return t(s);const u=Ae(r.sliceSerialize({start:l.end,end:r.now()}));return u.codePointAt(0)!==94||!a.includes(u.slice(1))?t(s):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),n(s))}}function Tp(e,n){let t=e.length;for(;t--;)if(e[t][1].type==="labelImage"&&e[t][0]==="enter"){e[t][1];break}e[t+1][1].type="data",e[t+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[t+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[t+3][1].end),end:Object.assign({},e[t+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},l={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},o=[e[t+1],e[t+2],["enter",r,n],e[t+3],e[t+4],["enter",i,n],["exit",i,n],["enter",a,n],["enter",l,n],["exit",l,n],["exit",a,n],e[e.length-2],e[e.length-1],["exit",r,n]];return e.splice(t,e.length-t+1,...o),e}function Ap(e,n,t){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a=0,l;return o;function o(c){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),s}function s(c){return c!==94?t(c):(e.enter("gfmFootnoteCallMarker"),e.consume(c),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(c){if(a>999||c===93&&!l||c===null||c===91||te(c))return t(c);if(c===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return i.includes(Ae(r.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),n):t(c)}return te(c)||(l=!0),a++,e.consume(c),c===92?f:u}function f(c){return c===91||c===92||c===93?(e.consume(c),a++,u):u(c)}}function jp(e,n,t){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,l=0,o;return s;function s(x){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(x),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(x){return x===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(x),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",f):t(x)}function f(x){if(l>999||x===93&&!o||x===null||x===91||te(x))return t(x);if(x===93){e.exit("chunkString");const b=e.exit("gfmFootnoteDefinitionLabelString");return a=Ae(r.sliceSerialize(b)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(x),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return te(x)||(o=!0),l++,e.consume(x),x===92?c:f}function c(x){return x===91||x===92||x===93?(e.consume(x),l++,f):f(x)}function p(x){return x===58?(e.enter("definitionMarker"),e.consume(x),e.exit("definitionMarker"),i.includes(a)||i.push(a),K(e,h,"gfmFootnoteDefinitionWhitespace")):t(x)}function h(x){return n(x)}}function Np(e,n,t){return e.check(gt,n,e.attempt(Cp,n,t))}function Pp(e){e.exit("gfmFootnoteDefinition")}function Dp(e,n,t){const r=this;return K(e,i,"gfmFootnoteDefinitionIndent",5);function i(a){const l=r.events[r.events.length-1];return l&&l[1].type==="gfmFootnoteDefinitionIndent"&&l[2].sliceSerialize(l[1],!0).length===4?n(a):t(a)}}function Fp(e){let t=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:a,resolveAll:i};return t==null&&(t=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(l,o){let s=-1;for(;++s<l.length;)if(l[s][0]==="enter"&&l[s][1].type==="strikethroughSequenceTemporary"&&l[s][1]._close){let u=s;for(;u--;)if(l[u][0]==="exit"&&l[u][1].type==="strikethroughSequenceTemporary"&&l[u][1]._open&&l[s][1].end.offset-l[s][1].start.offset===l[u][1].end.offset-l[u][1].start.offset){l[s][1].type="strikethroughSequence",l[u][1].type="strikethroughSequence";const f={type:"strikethrough",start:Object.assign({},l[u][1].start),end:Object.assign({},l[s][1].end)},c={type:"strikethroughText",start:Object.assign({},l[u][1].end),end:Object.assign({},l[s][1].start)},p=[["enter",f,o],["enter",l[u][1],o],["exit",l[u][1],o],["enter",c,o]],h=o.parser.constructs.insideSpan.null;h&&ve(p,p.length,0,Lt(h,l.slice(u+1,s),o)),ve(p,p.length,0,[["exit",c,o],["enter",l[s][1],o],["exit",l[s][1],o],["exit",f,o]]),ve(l,u-1,s-u+3,p),s=u+p.length-2;break}}for(s=-1;++s<l.length;)l[s][1].type==="strikethroughSequenceTemporary"&&(l[s][1].type="data");return l}function a(l,o,s){const u=this.previous,f=this.events;let c=0;return p;function p(x){return u===126&&f[f.length-1][1].type!=="characterEscape"?s(x):(l.enter("strikethroughSequenceTemporary"),h(x)
vendor: 4,098 bytes, line 52
52)}function h(x){const b=Je(u);if(x===126)return c>1?s(x):(l.consume(x),c++,h);if(c<2&&!t)return s(x);const C=l.exit("strikethroughSequenceTemporary"),y=Je(x);return C._open=!y||y===2&&!!b,C._close=!b||b===2&&!!y,o(x)}}}class zp{constructor(){this.map=[]}add(n,t,r){Lp(this,n,t,r)}consume(n){if(this.map.sort(function(a,l){return a[0]-l[0]}),this.map.length===0)return;let t=this.map.length;const r=[];for(;t>0;)t-=1,r.push(n.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),n.length=this.map[t][0];r.push(n.slice()),n.length=0;let i=r.pop();for(;i;){for(const a of i)n.push(a);i=r.pop()}this.map.length=0}}function Lp(e,n,t,r){let i=0;if(!(t===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===n){e.map[i][1]+=t,e.map[i][2].push(...r);return}i+=1}e.map.push([n,t,r])}}function _p(e,n){let t=!1;const r=[];for(;n<e.length;){const i=e[n];if(t){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[n+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[n-1][1].type==="tableDelimiterMarker"){const a=r.length-1;r[a]=r[a]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(t=!0);n+=1}return r}function Rp(){return{flow:{null:{name:"table",tokenize:Mp,resolveAll:Op}}}}function Mp(e,n,t){const r=this;let i=0,a=0,l;return o;function o(k){let P=r.events.length-1;for(;P>-1;){const D=r.events[P][1].type;if(D==="lineEnding"||D==="linePrefix")P--;else break}const F=P>-1?r.events[P][1].type:null,L=F==="tableHead"||F==="tableRow"?w:s;return L===w&&r.parser.lazy[r.now().line]?t(k):L(k)}function s(k){return e.enter("tableHead"),e.enter("tableRow"),u(k)}function u(k){return k===124||(l=!0,a+=1),f(k)}function f(k){return k===null?t(k):O(k)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),h):t(k):V(k)?K(e,f,"whitespace")(k):(a+=1,l&&(l=!1,i+=1),k===124?(e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),l=!0,f):(e.enter("data"),c(k)))}function c(k){return k===null||k===124||te(k)?(e.exit("data"),f(k)):(e.consume(k),k===92?p:c)}function p(k){return k===92||k===124?(e.consume(k),c):c(k)}function h(k){return r.interrupt=!1,r.parser.lazy[r.now().line]?t(k):(e.enter("tableDelimiterRow"),l=!1,V(k)?K(e,x,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(k):x(k))}function x(k){return k===45||k===58?C(k):k===124?(l=!0,e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),b):E(k)}function b(k){return V(k)?K(e,C,"whitespace")(k):C(k)}function C(k){return k===58?(a+=1,l=!0,e.enter("tableDelimiterMarker"),e.consume(k),e.exit("tableDelimiterMarker"),y):k===45?(a+=1,y(k)):k===null||O(k)?j(k):E(k)}function y(k){return k===45?(e.enter("tableDelimiterFiller"),v(k)):E(k)}function v(k){return k===45?(e.consume(k),v):k===58?(l=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(k),e.exit("tableDelimiterMarker"),S):(e.exit("tableDelimiterFiller"),S(k))}function S(k){return V(k)?K(e,j,"whitespace")(k):j(k)}function j(k){return k===124?x(k):k===null||O(k)?!l||i!==a?E(k):(e.exit("tableDelimiterRow"),e.exit("tableHead"),n(k)):E(k)}function E(k){return t(k)}function w(k){return e.enter("tableRow"),z(k)}function z(k){return k===124?(e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),z):k===null||O(k)?(e.exit("tableRow"),n(k)):V(k)?K(e,z,"whitespace")(k):(e.enter("data"),_(k))}function _(k){return k===null||k===124||te(k)?(e.exit("data"),z(k)):(e.consume(k),k===92?B:_)}function B(k){return k===92||k===124?(e.consume(k),_):_(k)}}function Op(e,n){let t=-1,r=!0,i=0,a=[0,0,0,0],l=[0,0,0,0],o=!1,s=0,u,f,c;const p=new zp;for(;++t<e.length;){const h=e[t],x=h[1];h[0]==="enter"?x.type==="tableHead"?(o=!1,s!==0&&(ei(p,n,s,u,f),f=void 0,s=0),u={type:"table",start:Object.assign({},x.start),end:Object.assign({},x.end)},p.add(t,0,[["enter",u,n]])):x.type==="tableRow"||x.type==="tableDelimiterRow"?(r=!0,c=void 0,a=[0,0,0,0],l=[0,t+1,0,0],o&&(o=!1,f={type:"tableBody",start:Object.assign({},x.start),end:Object.assign({},x.end)}
52,p.add(t,0,[["enter",f,n]])),i=x.type==="tableDelimiterRow"?2:f?3:1):i&&(x.type==="data"||x.type==="tableDelimiterMarker"||x.type==="tableDelimiterFiller")?(r=!1,l[2]===0&&(a[1]!==0&&(l[0]=l[1],c=vt(p,n,a,i,void 0,c),a=[0,0,0,0]),l[2]=t)):x.type==="tableCellDivider"&&(r?r=!1:(a[1]!==0&&(l[0]=l[1],c=vt(p,n,a,i,void 0,c)),a=l,l=[a[1],t,0,0])):x.type==="tableHead"?(o=!0,s=t):x.type==="tableRow"||x.type==="tableDelimiterRow"?(s=t,a[1]!==0?(l[0]=l[1],c=vt(p,n,a,i,t,c)):l[1]!==0&&(c=vt(p,n,l,i,t,c)),i=0):i&&(x.type==="data"||x.type==="tableDelimiterMarker"||x.type==="tableDelimiterFiller")&&(l[3]=t)}for(s!==0&&ei(p,n,s,u,f),p.consume(n.events),t=-1;++t<n.events.length;){const h=n.events[t];h[0]==="enter"&&h[1].type==="table"&&(h[1]._align=_p(n.events,t))}return e}function vt(e,n,t,r,i,a){const l=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",o="tableContent";t[0]!==0&&(a.end=Object.assign({},Qe(n.events,t[0])),e.add(t[0],0,[["exit",a,n]]));const s=Qe(n.events,t[1]);if(a={type:l,start:Object.assign({},s),end:Object.assign({},s)},e.add(t[1],0,[["enter",a,n]]),t[2]!==0){const u=Qe(n.events,t[2]),f=Qe(n.events,t[3]),c={type:o,start:Object.assign({},u),end:Object.assign({},f)};if(e.add(t[2],0,[["enter",c,n]]),r!==2){const p=n.events[t[2]],h=n.events[t[3]];if(p[1].end=Object.assign({},h[1].end),p[1].type="chunkText",p[1].contentType="text",t[3]>t[2]+1){const x=t[2]+1,b=t[3]-t[2]-1;e.add(x,b,[])}}e.add(t[3]+1,0,[["exit",c,n]])}return i!==void 0&&(a.end=Object.assign({},Qe(n.events,i)),e.add(i,0,[["exit",a,n]]),a=void 0),a}function ei(e,n,t,r,i){const a=[],l=Qe(n.events,t);i&&(i.end=Object.assign({},l),a.push(["exit",i,n])),r.end=Object.assign({},l),a.push(["exit",r,n]),e.add(t+1,0,a)}function Qe(e,n){const t=e[n],r=t[0]==="enter"?"start":"end";return t[1][r]}const Bp={name:"tasklistCheck",tokenize:Hp};function $p(){return{text:{91:Bp}}}function Hp(e,n,t){const r=this;return i;function i(s){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?t(s):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),a)}function a(s){return te(s)?(e.enter("taskListCheckValueUnchecked"),e.consume(s),e.exit("taskListCheckValueUnchecked"),l):s===88||s===120?(e.enter("taskListCheckValueChecked"),e.consume(s),e.exit("taskListCheckValueChecked"),l):t(s)}function l(s){return s===93?(e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):t(s)}function o(s){return O(s)?n(s):V(s)?e.check({tokenize:Up},n,t)(s):t(s)}}function Up(e,n,t){return K(e,r,"whitespace");function r(i){return i===null?t(i):n(i)}}function qp(e){return Bi([mp(),Ip(),Fp(e),Rp(),$p()])}const Vp={};function Wp(e){const n=this,t=e||Vp,r=n.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),a=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),l=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(qp(t)),a.push(fp()),l.push(hp(t))}const Kp=/\[(\d+)\]\((tyce:\/\/doc\/[^)\s]+)\)/g;function Qp(e){try{const t=new URL(e).searchParams.get("document_index");if(!t)return null;const r=Number.parseInt(t,10);return Number.isNaN(r)?null:r}catch{return null}}function Gp(e){return e.replace(Kp,(n,t,r)=>{const i=Qp(r);return i===null?"":`[${i}](${r})`})}const Yp=new RegExp("(?<!\\S)\\/([a-zA-Z0-9/-]+)","g"),Xp=()=>e=>{Ot(e,"text",(n,t,r)=>{if(!r||t==null)return;const i=n.value,a=[...i.matchAll(Yp)];if(a.length===0)return;const l=[];let o=0;for(const s of a){const u=s[0],f=s[1],c=s.index??0;c>o&&l.push({type:"text",value:i.slice(o,c)}),l.push({type:"skill",data:{hName:"skill",hProperties:{skill:f}},value:f}),o=c+u.length}o<i.length&&l.push({type:"text",value:i.slice(o)}),r.children.splice(t,1,...l)})};function Jp(){return e=>{var r,i;const n=e.children??[];let t=0;for(let a=0;a<n.length;a++){const l=n[a];if(l.type!=="table")continue;const o=n[a-1],s=(o==null?void 0:o.type)==="heading"?((i=(r=o.children)==null?void 0:r.find(u=>u.type==="text"))==null?void 0:i.value)??"":"";l.data=l.data??{},l.data.hProperties={...l.data.hProperties,tableId:String(t++),...s?{title:s}:{}}}}}const Zp=[Wp,Jp,Xp],Nl=R.createContext({messageId:"",openTableId:null,setOpenTableId:()=>{}}),ti={borderCollapse:"collapse",width:"100%",display:"block",maxWidth:"none"},ed={border:"1px solid #d1d5db",backgroundColor:"#f3f4f6",padding:"8px 16px",textAlign:"left",color:"#000",fontWeight:600,minWidth:"10rem"},td={border:"1px solid #d1d5db",backgroundColor:"#fff",padding:"8px 16px",color:"#000",minWidth:"10rem"};function ni(e){const n=new URL(e),r=n.pathname.split("/").filter(
52Boolean)[0],i=[],a=n.searchParams.get("name"),l=n.searchParams.get("chunk"),o=l?parseInt(l,10):null,s=n.searchParams.get("sheet"),u=n.searchParams.get("phrase");return{id:r,chunkIndex:o,nodeIds:i,name:a,sheet:s,phrase:u&&u!=="PHRASE_PLACEHOLDER"?u:null}}const nd=e=>e;function rd({node:e,children:n,tableId:t,...r}){const i=e==null?void 0:e.properties,a=i==null?void 0:i.title,{messageId:l,openTableId:o,setOpenTableId:s}=R.useContext(Nl),u=`${l}-${(i==null?void 0:i.tableId)??""}`,f=o===u,[c,p]=R.useState(!1),h=R.useCallback(()=>s(null),[s]),x=R.useRef(null),b=R.useRef(null);R.useEffect(()=>{if(!f)return;const v=requestAnimationFrame(()=>{var j;return(j=x.current)==null?void 0:j.focus()}),S=j=>{j.key==="Escape"&&h()};return window.addEventListener("keydown",S),()=>{cancelAnimationFrame(v),window.removeEventListener("keydown",S)}},[f,h]);const C=R.useCallback(()=>{var w;const v=(w=b.current)==null?void 0:w.querySelector("table");if(!v)return;const j=Array.from(v.querySelectorAll("tr")).map(z=>Array.from(z.querySelectorAll("th, td")).map(_=>`"${_.innerText.replace(/"/g,'""')}"`).join(",")).join(`
53`),E=new Blob([j],{type:"text/csv;charset=utf-8;"});Zl(E,a?`${a}.csv`:"Data Export.csv")},[a]),y=R.useCallback(async()=>{var j,E;const v=(j=b.current)==null?void 0:j.querySelector("table");if(!v)return;const S=((E=b.current)==null?void 0:E.innerText)??"";try{await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([v.outerHTML],{type:"text/html; charset=utf-8"}),"text/plain":new Blob([S],{type:"text/plain; charset=utf-8"})})]),p(!0),setTimeout(()=>p(!1),2e3),sr.success("Copied to clipboard")}catch{sr.error("Copy failed. Check clipboard permission.")}},[]);return d.jsxs("div",{className:"group relative w-full min-w-0","data-sentry-component":"TableWithOverlay","data-sentry-source-file":"chat-markdown-old.tsx",children:[d.jsxs("div",{className:"relative w-full bg-white rounded-sm overflow-hidden",children:[d.jsx("div",{className:"overflow-x-auto",children:d.jsx("table",{...r,style:{...ti,...r.style},children:n})}),d.jsx(X,{type:"button",variant:"ghost",size:"icon",className:"absolute right-1 top-1 h-7 w-7 rounded-md bg-white/90 shadow-sm hover:bg-white hidden group-hover:flex z-[1]",onClick:()=>s(u),"aria-label":"Expand table","data-sentry-element":"Button","data-sentry-source-file":"chat-markdown-old.tsx",children:d.jsx(Ha,{className:"h-4 w-4","data-sentry-element":"IconArrowsMaximize","data-sentry-source-file":"chat-markdown-old.tsx"})})]}),f&&d.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/70",role:"dialog","aria-modal":"true","aria-label":"Table full screen",onClick:h,children:d.jsxs("div",{className:"relative max-h-[90vh] w-full flex flex-col rounded-2xl bg-white m-[84px]",onClick:v=>v.stopPropagation(),children:[d.jsxs("div",{className:"max-w-[95%] mx-auto w-full shrink-0 flex justify-between items-center gap-1 bg-white pb-2 pt-4 pr-2",children:[a&&d.jsx("h3",{className:"text-md font-semibold text-gray-800 truncate !m-0",children:a}),d.jsxs("div",{className:"flex items-center gap-1 ml-auto shrink-0",children:[d.jsx(pn,{children:d.jsxs(Be,{children:[d.jsx($e,{asChild:!0,children:d.jsx(X,{type:"button",variant:"ghost",size:"icon",className:"h-8 w-8 rounded-md bg-white/90 shadow-sm hover:bg-white",onClick:C,"aria-label":"Download as CSV",children:d.jsx(ja,{className:"h-5 w-5"})})}),d.jsx(He,{children:"Download as CSV"})]})}),d.jsx(pn,{children:d.jsxs(Be,{children:[d.jsx($e,{asChild:!0,children:d.jsx(X,{type:"button",variant:"ghost",size:"icon",className:"h-8 w-8 rounded-md bg-white/90 shadow-sm hover:bg-white",onClick:y,"aria-label":c?"Copied":"Copy table",children:c?d.jsx(mn,{className:"h-5 w-5 text-green-600"}):d.jsx(Na,{className:"h-5 w-5"})})}),d.jsx(He,{children:c?"Copied!":"Copy table"})]})}),d.jsx(X,{ref:x,type:"button",variant:"ghost",size:"icon",className:"h-8 w-8 rounded-md bg-white/90 shadow-sm hover:bg-white",onClick:h,"aria-label":"Close",children:d.jsx(Ua,{className:"h-5 w-5"})})]})]}),d.jsx("div",{ref:b,className:"overflow-auto flex-1 min-h-0 max-w-[95%] mx-auto w-full pb-4 [&_thead_th]:sticky [&_thead_th]:top-0 [&_thead_th]:z-[2] [&_tbody_td]:!border-t-0 [&_tbody_th]:!border-t-0 [&_th:not(:first-child)]:!border-l-0 [&_td:not(:first-child)]:!border-l-0",children:d.jsx("table",{...r,style:{...ti,...r.style,display:"table",borderCollapse:"separate",borderSpacing:0},children:n})})]})})]})}function em({messageId:e="",className:n,...t}){const{openTab:r}=Ba(),i=rr(({setNodeHighlights:c})=>c),[a,l]=R.useState(null),o=R.useRef(r);o.current=r;const s=R.useRef(i);s.current=i;const u=R.useMemo(()=>
53{if(typeof t.children!="string")return t.children;const c=t.children.replace(/\s*\[\d+\]\(tyce:\/\/doc\/[^)]*$/g,"").replace(/<br\s*\/?>/gi," ");return Gp(c)},[t.children]);R.useCallback((c,p)=>{if(p.length>0){let h=setInterval(()=>{const{editor:x,documentStatus:b}=rr.getState(),{currentTab:C}=Ia.getState(),y=(C==null?void 0:C.documentId)===c;if(!x||!y||(b==null?void 0:b.status)!==fa.LOADED)return;clearInterval(h),s.current(p),x.view.dispatch(x.state.tr);const v=p[0];setTimeout(()=>{const S=document.getElementById(v);S&&(S.scrollIntoView({behavior:"smooth",block:"start"}),S.focus())},50)},10)}},[]);const f=R.useMemo(()=>({table:rd,h3:({node:c,...p})=>d.jsx("h3",{...p,style:{margin:0,...p.style}}),th:({node:c,...p})=>d.jsx("th",{...p,style:{...ed,...p.style}}),td:({node:c,...p})=>d.jsx("td",{...p,style:{...td,...p.style}}),skill({node:c}){var h;const p=(h=c.properties)==null?void 0:h.skill;return d.jsx("button",{className:"skill",children:p})},a:({node:c,href:p,children:h,...x})=>{if(p&&p.startsWith("tyce://doc/")){const{id:b,chunkIndex:C,name:y,sheet:v,phrase:S}=ni(p);let j;try{j=y?decodeURIComponent(y):void 0}catch{j=y??void 0}let E;if(v)try{E=decodeURIComponent(v)}catch{E=v}const z=(j==null?void 0:j.toLowerCase().endsWith(".pdf"))&&C!==null&&!isNaN(C),_=d.jsx("a",{...x,href:p,onMouseDown:P=>{if(P.button===0)if(P.preventDefault(),b)try{o.current({documentId:b,mode:"editor",chunk:z?C+1:void 0,phrase:z&&S?S:void 0})}catch(F){console.error("Failed to open tab for document:",b,F)}else console.error("No document ID found in link:",p)},className:he("inline-flex items-center px-1.5 py-0.5 rounded-md border border-gray-300 bg-gray-100 text-xs font-medium text-gray-800 hover:bg-gray-200 cursor-pointer",x.className),children:h});let B=j,k;return j&&z?B=`${j} (Page ${C+1})`:j&&E?B=`${j} · ${E}`:j&&C===null&&(B=`${j} (Summary)`,k="From the document's AI summary, not an exact content"),B?d.jsxs(d.Fragment,{children:[" ",d.jsx(pn,{delayDuration:0,children:d.jsxs(Be,{children:[d.jsx($e,{asChild:!0,children:_}),d.jsxs(He,{className:"bg-gray-900 text-white border-0 text-xs",children:[d.jsx("div",{children:B}),k&&d.jsx("div",{className:"text-gray-400",children:k})]})]})})]}):d.jsxs(d.Fragment,{children:[" ",_]})}if(p&&p.startsWith("tyce://mention/")){const{id:b}=ni(p),C=h==null?void 0:h.toString(),y=C==null?void 0:C.split("/").filter(Boolean).pop();let v=!1,S=!1;try{const j=new URL(p.replace("tyce://","https://"));v=j.searchParams.get("isLongDocument")==="true",S=j.searchParams.get("isFolder")==="true"}catch{}return S?d.jsxs("a",{href:p,onClick:j=>j.preventDefault(),className:he("mention !no-underline cursor-default",x.className),"aria-label":y,"data-type":"mention","data-id":b,"data-label":y,"data-path":C,"data-is-folder":"true",rel:"noopener",children:["@",y]}):d.jsxs("a",{href:p,onMouseDown:j=>{j.button===0&&(j.preventDefault(),b&&o.current({documentId:b,mode:"editor"}))},className:he("mention !no-underline",x.className),"aria-label":`Open ${y}`,"data-id":b,"data-label":y,"data-path":C,"data-is-long-document":v?"true":void 0,rel:"noopener",children:["@",y]})}return d.jsx("a",{...x,href:p,children:h})}}),[]);return d.jsx(Nl.Provider,{value:{messageId:e,openTableId:a,setOpenTableId:l},"data-sentry-element":"TableOpenContext.Provider","data-sentry-component":"ChatMarkdown","data-sentry-source-file":"chat-markdown-old.tsx",children:d.jsx(Ff,{remarkPlugins:Zp,urlTransform:nd,className:he("prose text-black prose-li:marker:text-black prose-hr:my-4 prose-headings:mt-0 prose-headings:mb-2 [&_a]:text-primary [&_a]:hover:underline [&_pre]:text-wrap [&_:is(th,td)]:min-w-40 [&_table]:block [&_table]:max-w-[100cqi] min-w-0 break-words prose-li:my-0 prose-p:my-0 prose-ol:my-2 prose-ul:my-2 [&_li>:is(ul,ol)]:my-1",n),components:f,...t,children:u,"data-sentry-element":"ReactMarkdown","data-sentry-source-file":"chat-markdown-old.tsx"})})}function tm({id:e,name:n,onClose:t}){const r=Nt(),[i,a]=R.useState(),{mutate:l,isPending:o}=ut({...Gl(),onSuccess:async s=>{a(void 0),await Promise.all([r.invalidateQueries({queryKey:ii()}),r.invalidateQueries({queryKey:st()})]),t(s)},onError(s){const u=s==null?void 0:s.detail;a(u??"This name is taken. Please choose a different name.")}});return d.jsxs("section",{className:"space-y-4 pb-4","data-sentry-component":"SkillDuplicate","data-sentry-source-file":"duplicate.tsx",children:[d.jsx("form",{id:"skill-duplicate-form",className:"px-8 py-6",onSubmit:s=>{var c;s.preventDefault();const f=(c=new FormData(s.currentTarget).get("name"))==null?void 0:c.toString();if(!(f!=null&&f.trim()))return a("Name is required");l({path:{skill_id:e},body:{name:f}})},children:d.jsxs("div",{className:"flex flex-col gap-1",children:[d.jsx("label",{htmlFor:"name",className:"text-sm font-semibold text-neutral-500 uppercase tracking-wider",children:"Name"}),d.jsx(Xe,{"data-testid":"prompt-name-input",id:"name",name:"name",maxLength:64,placeholder:"Name",defaultValue:n,"data-sentry-element":"Input","data-sentry-source-file":"duplicate.tsx"}),i&&d.jsx("small",{className:"text-red-500",children:i})]})}),d.jsx(ci,{"data-sentry-element":"Separator","data-sentry-source-file":"duplicate.tsx"}),d.jsxs("footer",{className:"flex items-center justify-end gap-2 px-8",children:[d.jsx(X,{variant:"outline",size:"sm",onClick:()=>t==null?void 0:t(),"data-sentry-element":"Button","data-sentry-source-file":"duplicate.tsx",children:"Close"}),d.jsxs(X,{type:"submit",form:"skill-duplicate-form",variant:"primary",size:"sm",disabled:o,"data-sentry-element":"Button","data-sentry-source-file":"duplicate.tsx",children:[o&&d.jsx(Ge,{className:"animate-spin"}),"Save"]})]})]})}function id(e,n,{checkForDefaultPrevented:t=!0}={}){return function(i){if(e==null||e(i),t===!1||!i.defaultPrevented)return n==null?void 0:n(i)}}var Bt="Switch",[ld,nm]=ai(Bt),[ad,od]=ld(Bt),Pl=R.forwardRef((e,n
vendor: 2,694 bytes, lines 53-55
53)=>{const{__scopeSwitch:t,name:r,checked:i,defaultChecked:a,required:l,disabled:o,value:s="on",onCheckedChange:u,form:f,...c}=e,[p,h]=R.useState(null),x=Nn(n,S=>h(S)),b=R.useRef(!1),C=p?f||!!p.closest("form"):!0,[y,v]=jn({prop:i,defaultProp:a??!1,onChange:u,caller:Bt});return d.jsxs(ad,{scope:t,checked:y,disabled:o,children:[d.jsx(jt.button,{type:"button",role:"switch","aria-checked":y,"aria-required":l,"data-state":Ll(y),"data-disabled":o?"":void 0,disabled:o,value:s,...c,ref:x,onClick:id(e.onClick,S=>{v(j=>!j),C&&(b.current=S.isPropagationStopped(),b.current||S.stopPropagation())})}),C&&d.jsx(zl,{control:p,bubbles:!b.current,name:r,value:s,checked:y,required:l,disabled:o,form:f,style:{transform:"translateX(-100%)"}})]})});Pl.displayName=Bt;var Dl="SwitchThumb",Fl=R.forwardRef((e,n)=>{const{__scopeSwitch:t,...r}=e,i=od(Dl,t);return d.jsx(jt.span,{"data-state":Ll(i.checked),"data-disabled":i.disabled?"":void 0,...r,ref:n})});Fl.displayName=Dl;var sd="SwitchBubbleInput",zl=R.forwardRef(({__scopeSwitch:e,control:n,checked:t,bubbles:r=!0,...i},a)=>{const l=R.useRef(null),o=Nn(l,a),s=Pa(t),u=$a(n);return R.useEffect(()=>{const f=l.current;if(!f)return;const c=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(c,"checked").set;if(s!==t&&h){const x=new Event("click",{bubbles:r});h.call(f,t),f.dispatchEvent(x)}},[s,t,r]),d.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:t,...i,tabIndex:-1,ref:o,style:{...i.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});zl.displayName=sd;function Ll(e){return e?"checked":"unchecked"}var _l=Pl,ud=Fl;const cd=R.forwardRef(({className:e,...n},t)=>d.jsx(_l,{className:he("peer inline-flex h-[1.15rem] w-8 shrink-0 cursor-pointer items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-neutral-200",e),...n,ref:t,children:d.jsx(ud,{className:he("pointer-events-none block size-4 rounded-full ring-0 transition-transform bg-white shadow-sm data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0")})}));cd.displayName=_l.displayName;export{Gd as A,fr as B,em as C,O as D,To as E,vo as F,Mo as G,Qr as H,Wp as I,Gp as J,eo as K,qa as L,pi as M,xi as N,bi as O,vi as P,ud as Q,_l as R,Kd as S,lo as T,al as V,ko as a,bo as b,wo as c,tm as d,cd as e,Ci as f,Xa as g,sf as h,Xd as i,Kt as j,zo as k,Jd as l,Ro as m,yn as n,Rt as o,Zd as p,ll as q,pc as r,Ln as s,Yo as t,Ef as u,Ot as v,Zc as w,Yd as x,Ih as y,K as z};
54
55//# debugId=ae94afa4-88ae-5a9a-a023-1378289e82a1

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