(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,137631,e=>{"use strict";e.s(["LoaderCircleIcon",()=>t]);let t=(0,e.i(930733).default)("LoaderCircleIcon",[["path",{d:"M15.75 9a6.75 6.75 0 1 1 -4.6643 -6.42",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}]],"outlined")},886235,e=>{"use strict";e.s(["base64ToUint8Array",()=>t,"bytesToBase64",()=>r,"stringToBase64",()=>o]);let t=e=>{let t=atob(e),r=new Uint8Array(t.length);for(let e=0;e{let t="";for(let r=0;rr(new TextEncoder().encode(e))},127344,e=>{"use strict";function t(e,t){let r=e.replace(/\s+/g," ").trim();if(r.length<=t)return r;let o=r.slice(0,t+1),a=o.lastIndexOf(" ");return -1===a?r.slice(0,t).trim():o.slice(0,a).trim()}e.s(["truncateAtWordBoundary",()=>t])},834386,e=>{"use strict";function t(e){return e.startsWith("/")&&!e.startsWith("//")||e.startsWith("#")||e.startsWith("./")||e.startsWith("../")}e.s(["isInternalHref",()=>t])},995047,e=>{"use strict";e.s(["DynamicLink",()=>p]);var t=e.i(843476),r=e.i(91557),o=e.i(590280),a=e.i(476781),n=e.i(834386),i=e.i(432686),l=e.i(428681),s=e.i(296548),d=e.i(522016),c=e.i(271645);function p({href:e,ref:p,onMouseEnter:u,onMouseLeave:g,style:b,className:f,children:x,onClick:h,onInternalLinkClick:m,target:y,rel:k,allowTarget:w=!1,node:C,...v}){let{docsConfig:j}=(0,c.useContext)(r.DocsConfigContext),{getLivePreviewHref:L,requestContentEarly:_}=(0,c.useContext)(o.LivePreviewContext),I=w?y:void 0,A=w?k:void 0,N=(e,t)=>{let r=I??e;if(!r)return A?{rel:A}:{};let o=A??t;if(!I&&!A||"_blank"!==r)return{target:r,rel:o};let a=new Set(o?o.split(/\s+/).filter(Boolean):[]);return a.add("noopener"),a.add("noreferrer"),{target:r,rel:[...a].join(" ")}},P=t=>{let r=0===t.button&&!t.metaKey&&!t.ctrlKey&&!t.shiftKey&&!t.altKey;e&&r&&_?.(e),m?.(),h?.(t)};if(e&&(0,n.isInternalHref)(e)){if(e.startsWith("/")){let r=L(j?.seo?.trailingSlash?function(e){let t=/^([^?#]*)([?#].*)?$/.exec(e),r=(0,l.replaceSlashIndex)(t?.[1]??e)||"/",o=t?.[2]??"";return(0,i.addTrailingSlash)(`${r}${o}`,{skipFileExtensions:!1})}(e):e);return(0,t.jsx)(d.default,{href:r,ref:p,passHref:!0,onMouseEnter:u,onMouseLeave:g,style:b,className:(0,s.cn)(a.Classes.Link,f),onClick:P,...N(),...v,children:x})}return(0,t.jsx)("a",{href:e,ref:p,onMouseEnter:u,onMouseLeave:g,style:b,className:(0,s.cn)(a.Classes.Link,f),onClick:P,...N(),...v,children:x})}return(0,t.jsx)("a",{href:e,...N("_blank","noreferrer"),ref:p,onMouseEnter:u,onMouseLeave:g,style:b,className:(0,s.cn)(a.Classes.Link,f),onClick:h,...v,children:x})}},379841,e=>{"use strict";e.s(["Table",()=>i]);var t=e.i(843476),r=e.i(91557),o=e.i(152537),a=e.i(296548),n=e.i(271645);function i({children:e,className:i,"aria-label":l="Scrollable table",...s}){let{docsConfig:d}=(0,n.useContext)(r.DocsConfigContext),c=d?.theme,p=function(e){let t=[];return!function e(t,r){for(let o of n.Children.toArray(t))(0,n.isValidElement)(o)&&(o.type===n.Fragment?e(o.props.children,r):"colgroup"===o.type&&r.push(o))}(e,t),0!==t.length&&t.every(e=>{let t=n.Children.toArray(e.props.children).filter(n.isValidElement);return t.length>0&&t.every(e=>"col"===e.type&&(null!=e.props.width||e.props.style?.width!=null))})}(e);return(0,t.jsxs)(o.ScrollArea,{"data-table-wrapper":!0,className:(0,a.cn)(i,("mint"===c||"linden"===c||"aspen"===c||"luma"===c)&&"[--page-padding:20px]",("maple"===c||"willow"===c)&&"[--page-padding:16px]","almond"===c&&"[--page-padding:32px]","palm"===c&&"w-full -mx-0","flex w-[calc(100%+(var(--page-padding)*2))] my-[1em] py-[1em] -mx-(--page-padding) max-w-none [contain:inline-size]"),...s,children:[(0,t.jsx)(o.ScrollAreaViewport,{role:"region","aria-label":l,className:"overflow-y-hidden!",children:(0,t.jsx)(o.ScrollAreaContent,{className:"flex",children:(0,t.jsx)("div",{className:"px-(--page-padding) grow max-w-none table",children:(0,t.jsx)("table",{className:(0,a.cn)("m-0 min-w-full w-full max-w-none table [&_th]:text-left [&_td[data-numeric]]:tabular-nums",p?"table-fixed [&_td]:min-w-0 [&_td]:break-words [&_th]:break-words":"[&_td]:min-w-[150px]"),children:e})})})}),(0,t.jsx)(o.ScrollAreaScrollbar,{orientation:"horizontal"})]})}},231116,e=>{"use strict";e.s(["default",()=>i],231116);var t=e.i(843476),r=e.i(271645);function o(){return(o=Object.assign.bind()).apply(this,arguments)}var a=["html","dangerouslySetInnerHTML"];let n=function(e){var t=e.html,n=function(e,t){if(null==e)return{};var r,o,a={},n=Object.keys(e);for(o=0;o=0||(a[r]=e[r]);return a}(e,a),i=(0,r.useRef)(null),l=(0,r.useRef)(!0);return(0,r.useEffect)(function(){if(!t||!i.current)throw Error("html prop cant't be null");if(l.current){l.current=!1;var e=document.createRange().createContextualFragment(t);i.current.innerHTML="",i.current.appendChild(e)}},[t,i]),r.default.createElement("div",o({},n,{ref:i}))},i=({children:e})=>"object"==typeof e&&"props"in e&&e.props?.dangerouslySetInnerHTML?(0,t.jsx)(t.Fragment,{children:e.props.dangerouslySetInnerHTML.__html?(0,t.jsx)(n,{html:e.props.dangerouslySetInnerHTML.__html}):e}):null},393789,e=>{"use strict";e.s(["Badge",()=>s]);var t=e.i(843476),r=e.i(568258),o=e.i(296548),a=e.i(271645);let n=new Set(["p","div","section","ul","ol","table","pre","blockquote"]),i={lg:'gap-1 py-1 pl-2.5 pr-2.5 [&_svg]:size-3.5 [&_img]:size-3.5 text-sm tracking-[-0.1px] data-[shape="rounded"]:rounded-[8px]',md:'gap-1 py-0.5 pl-2 pr-2 [&_svg]:size-3.5 [&_img]:size-3.5 text-sm tracking-[-0.1px] data-[shape="rounded"]:rounded-[8px]',sm:'gap-[3px] py-0.5 pl-1.5 pr-1.5 [&_svg]:size-3 [&_img]:size-3 text-xs data-[shape="rounded"]:rounded-[6px]',xs:'gap-0.5 py-0 pl-1 pr-1 [&_svg]:size-2.5 [&_img]:size-2.5 text-xs data-[shape="rounded"]:rounded-[4px]'},l={gray:"[--color-bg:#F5F5F4] dark:[--color-bg:#44403C] [--color-text:#57534E] dark:[--color-text:#A8A29E] [--color-bg-disabled:#FAFAF9] dark:[--color-bg-disabled:#1C1917] [--color-text-disabled:#D6D3D1] dark:[--color-text-disabled:#44403C]",blue:"[--color-bg:rgba(37,99,235,0.20)] dark:[--color-bg:rgba(37,99,235,0.20)] [--color-text:#1D4ED8] dark:[--color-text:#93C5FD] [--color-bg-disabled:rgba(37,99,235,0.08)] dark:[--color-bg-disabled:rgba(37,99,235,0.08)] [--color-text-disabled:rgba(37,99,235,0.20)] dark:[--color-text-disabled:rgba(37,99,235,0.20)]",green:"[--color-bg:rgba(22,163,74,0.20)] dark:[--color-bg:rgba(22,163,74,0.20)] [--color-text:#15803D] dark:[--color-text:#86EFAC] [--color-bg-disabled:rgba(22,163,74,0.08)] dark:[--color-bg-disabled:rgba(22,163,74,0.08)] [--color-text-disabled:rgba(22,163,74,0.20)] dark:[--color-text-disabled:rgba(22,163,74,0.20)]",yellow:"[--color-bg:rgba(202,138,4,0.10)] dark:[--color-bg:rgba(202,138,4,0.30)] [--color-text:#A16207] dark:[--color-text:#FDE047] [--color-bg-disabled:rgba(202,138,4,0.08)] dark:[--color-bg-disabled:rgba(202,138,4,0.15)] [--color-text-disabled:rgba(202,138,4,0.20)] dark:[--color-text-disabled:rgba(253,224,71,0.30)]",orange:"[--color-bg:rgba(234,88,12,0.20)] dark:[--color-bg:rgba(234,88,12,0.20)] [--color-text:#C2410C] dark:[--color-text:#FDBA74] [--color-bg-disabled:rgba(234,88,12,0.08)] dark:[--color-bg-disabled:rgba(234,88,12,0.08)] [--color-text-disabled:#FED7AA] dark:[--color-text-disabled:#9A3412]",red:"[--color-bg:rgba(220,38,38,0.20)] dark:[--color-bg:rgba(220,38,38,0.20)] [--color-text:#B91C1C] dark:[--color-text:#FCA5A5] [--color-bg-disabled:rgba(220,38,38,0.08)] dark:[--color-bg-disabled:rgba(220,38,38,0.08)] [--color-text-disabled:#FECACA] dark:[--color-text-disabled:#991B1B]",purple:"[--color-bg:rgba(147,51,234,0.20)] dark:[--color-bg:rgba(147,51,234,0.20)] [--color-text:#7E22CE] dark:[--color-text:#D8B4FE] [--color-bg-disabled:rgba(147,51,234,0.08)] dark:[--color-bg-disabled:rgba(147,51,234,0.08)] [--color-text-disabled:#E9D5FF] dark:[--color-text-disabled:#6B21A8]",white:"[--color-bg:rgba(255,255,255,0.95)] dark:[--color-bg:rgba(255,255,255,0.95)] [--color-text:rgba(11,12,14,0.60)] dark:[--color-text:rgba(11,12,14,0.60)] [--color-bg-disabled:rgba(255,255,255,0.08)] dark:[--color-bg-disabled:rgba(255,255,255,0.24)] [--color-text-disabled:#E9E9EA] dark:[--color-text-disabled:#3C3C3D]",surface:"[--color-bg:rgba(255,255,255,0.95)] dark:[--color-bg:#262727] [--color-text:#78787A] dark:[--color-text:#D7D7D7] [--color-bg-disabled:rgba(255,255,255,0.95)] dark:[--color-bg-disabled:#262727] [--color-text-disabled:#E9E9EA] dark:[--color-text-disabled:#3C3C3D]","white-destructive":"[--color-bg:rgba(255,255,255,0.95)] dark:[--color-bg:rgba(255,255,255,0.95)] [--color-text:#E6483D] dark:[--color-text:#E6483D] [--color-bg-disabled:rgba(255,255,255,0.08)] dark:[--color-bg-disabled:rgba(255,255,255,0.24)] [--color-text-disabled:rgba(230,72,61,0.30)] dark:[--color-text-disabled:rgba(230,72,61,0.40)]","surface-destructive":"[--color-bg:rgba(255,255,255,0.95)] dark:[--color-bg:#262727] [--color-text:#E6483D] dark:[--color-text:#E6483D] [--color-bg-disabled:rgba(255,255,255,0.95)] dark:[--color-bg-disabled:#262727] [--color-text-disabled:rgba(230,72,61,0.30)] dark:[--color-text-disabled:rgba(230,72,61,0.40)]"},s=({children:e,className:s,color:d="gray",shape:c="rounded",stroke:p=!1,disabled:u=!1,size:g="md",icon:b,iconType:f,"data-component-part":x,"data-version-tag":h})=>{for(let t of(f&&"string"!=typeof b&&console.warn(': "iconType" is ignored unless "icon" is a string icon name.'),a.Children.toArray(e)))(0,a.isValidElement)(t)&&"string"==typeof t.type&&n.has(t.type)&&console.warn(`<${t.type}> cannot be a child of the inline . Use inline content instead.`);let m="string"==typeof b?(0,t.jsx)(r.ComponentIcon,{icon:b,iconType:f,className:"shrink-0 bg-(--color-text) group-data-[disabled=true]/badge:bg-(--color-text-disabled)",overrideColor:!0}):b;return(0,t.jsxs)("span",{"data-badge":"true","data-color":d,"data-size":g,"data-shape":c,"data-stroke":p,"data-disabled":u,...x&&{"data-component-part":x},...void 0!==h&&{"data-version-tag":h},className:(0,o.cn)('group/badge print:print-color-exact print:[&_img]:m-0! inline-flex items-center w-fit font-medium relative data-[disabled="true"]:cursor-not-allowed',"data-[shape='pill']:rounded-full","data-[stroke='true']:outline data-[stroke='true']:outline-1 data-[stroke='true']:outline-offset-[-1px] data-[stroke='true']:outline-[rgba(11,12,14,0.08)] dark:data-[stroke='true']:outline-[rgba(255,255,255,0.14)]","bg-(--color-bg) text-(--color-text) data-[disabled='true']:bg-(--color-bg-disabled) data-[disabled='true']:text-(--color-text-disabled)",i[g]??i.md,l[d]??l.gray,s),children:[!!m&&m,e]})}},966768,780578,813191,759261,248511,e=>{"use strict";e.s(["PageHeader",()=>ey],966768);var t=e.i(843476),r=e.i(184472),o=e.i(91557),a=e.i(590280),n=e.i(803333),i=e.i(693619);e.s(["usePageMode",()=>d],780578);var l=e.i(271645),s=e.i(343534);let d=()=>{let{pageMetadata:e}=(0,l.useContext)(o.PageContext);return(0,l.useMemo)(()=>(0,s.getPageMode)(e),[e])};var c=e.i(111048),p=e.i(479721),u=e.i(343590),g=e.i(476781),b=e.i(194838),f=e.i(427751),x=e.i(752473);e.i(914140);var h=e.i(773626);let m=e=>"string"!=typeof e&&"group"in e&&"pages"in e,y=e=>{let t=e[0];if(t)return"string"==typeof t?t:m(t)?y(Array.isArray(t.pages)?t.pages:[]):t.href};function k(e,t){if("pages"in e&&Array.isArray(e.pages)){let r=e.root,o="string"==typeof r?r:r?.href,a={title:e.group,path:(0,b.optionallyAddLeadingSlash)(o??y(e.pages)??"")};if(o&&(0,h.isEqualIgnoringLeadingSlash)(o,t))return[a];for(let r of e.pages)if(m(r)){let e=k(r,t);if(e.length>0)return[a,...e]}else{let e="string"==typeof r?r:r.href;if((0,h.isEqualIgnoringLeadingSlash)(e,t))return[a]}}return[]}e.s(["getSectionTitle",()=>v],813191);var w=e.i(220758),C=e.i(517956);function v(e,t){if(!t)return"";if("pages"in t){for(let r of t.pages)if((0,w.isGroup)(r)){let t=j(r,e);if(t)return t}}if("groups"in t)for(let r of t.groups){let t=j(r,e);if(t)return t}for(let r of x.divisions){let o=(0,f.readObjectArrayProperty)(t,r);if(o)for(let t of o){let r=v(e,t);if(r)return r}}return""}function j(e,t){if("pages"in e&&Array.isArray(e.pages)){if(e.root&&(0,h.isEqualIgnoringLeadingSlash)(e.root.href,t))return e.group;for(let r of e.pages)if((0,w.isGroup)(r)){let e=j(r,t);if(e)return e}else if((0,C.isPage)(r)&&(0,h.isEqualIgnoringLeadingSlash)(r.href,t))return e.group}return""}var L=e.i(357332),_=e.i(296548),I=e.i(522016);function A(){let e=(0,n.useCurrentPath)(),{docsConfig:r}=(0,l.useContext)(o.DocsConfigContext),{navWithMetadata:a}=(0,l.useContext)(u.NavigationContext),i=v(e,a),s=function e(t,r){if(!r)return[];if("pages"in r){for(let e of r.pages)if(m(e)){let r=k(e,t);if(r.length>0)return r}}if("groups"in r)for(let e of r.groups){let r=k(e,t);if(r.length>0)return r}for(let o of x.divisions){let a=(0,f.readObjectArrayProperty)(r,o);if(a)for(let r of a){let o=e(t,r);if(o.length>0)return o}}return[]}(e,a);return(0,t.jsx)(t.Fragment,{children:r?.styling?.eyebrows==="breadcrumbs"?(0,t.jsx)(N,{breadcrumbs:s}):i&&(0,t.jsx)("div",{className:(0,_.cn)(g.Classes.Eyebrow,"h-5 text-primary dark:text-primary-light",(0,p.themeEyebrow)({theme:r?.theme})),children:i})})}let N=({breadcrumbs:e})=>0===e.length?null:(0,t.jsx)("div",{className:(0,_.cn)(g.Classes.BreadcrumbList,"flex flex-row items-center gap-1.5"),children:e.map((r,o)=>(0,t.jsxs)("div",{className:(0,_.cn)(g.Classes.BreadcrumbItem,"inline-flex items-center gap-1.5 text-sm text-gray-500 hover:text-gray-900 dark:text-gray-400 dark:hover:text-gray-300"),"data-breadcrumb-title":r.title,children:[(0,t.jsx)(I.default,{href:r.path??"#",children:r.title}),oep],759261);var D=e.i(536224),R=e.i(961508),U=e.i(771455);function $(e){if(!(0,R.isAbsoluteUrl)(e))return D.PNG_MIME_TYPE;let t=new URL(e).pathname,r=t.split(".").pop()?.toLowerCase();return D.mimeTypeMap.get(r)??D.PNG_MIME_TYPE}function B(e,t,r){return(0,U.getS3URI)(e,`_generated/favicon${r?"-dark":""}/${t}?v=3`)}let F={media:"(prefers-color-scheme: light)"},O={media:"(prefers-color-scheme: dark)"},z={rel:"apple-touch-icon",sizes:"180x180",href:"",type:D.PNG_MIME_TYPE},H={rel:"icon",sizes:"32x32",href:"",type:D.PNG_MIME_TYPE},q={rel:"icon",sizes:"16x16",href:"",type:D.PNG_MIME_TYPE},W={rel:"shortcut icon",href:"",type:D.ICO_MIME_TYPE};function G(e,t,r,o){return(0,R.isAbsoluteUrl)(e)?[{...z,href:e,type:$(e)},{...H,...o,href:e,type:$(e)},{...q,...o,href:e,type:$(e)},{...W,...o,href:e,type:$(e)}]:[{...z,href:B(t,"apple-touch-icon.png",r)},{...H,...o,href:B(t,"favicon-32x32.png",r)},{...q,...o,href:B(t,"favicon-16x16.png",r)},{...W,...o,href:B(t,"favicon.ico",r)}]}var K=e.i(206558),V=e.i(865420),X=e.i(95323),Y=e.i(395787),J=e.i(477222),Q=e.i(193726);async function Z(e){try{let t=new URLSearchParams({path:e}),r=await fetch(`${K.NEXT_PUBLIC.BASE_PATH}/openapi-specs.download?${t.toString()}`,{cache:"no-store"});if(!r.ok)return!1;let o=await r.blob(),a=function(e){if(!e)return null;let t=/filename="([^"]+)"/.exec(e);return t?.[1]??null}(r.headers.get("content-disposition"))??"api-specs",n=URL.createObjectURL(o),i=document.createElement("a");return i.href=n,i.download=a,document.body.appendChild(i),i.click(),document.body.removeChild(i),URL.revokeObjectURL(n),!0}catch(e){return console.error("Failed to download API specs:",e),!1}}function ee(e){return void 0!==e}var et=e.i(886235),er=e.i(724156);let eo=()=>{let e=K.NEXT_PUBLIC.BASE_PATH||"",t=window.location.href;if(t){let r=new URL(t);return`${(0,er.optionallyRemoveTrailingSlash)(r.origin)}${e}/mcp`}return`${e}/mcp`};var ea=e.i(699510);function en(e,t){if(void 0===e)return;let r=ea.contextualSchema.safeParse(e);if(r.success)return r.data;console.warn("page metadata"===t?"Invalid contextual config in page metadata; falling back to the docs.json contextual config.":"Invalid contextual config in docs.json; ignoring the contextual config.",r.error.issues)}var ei=e.i(127344);let el=(0,e.i(930733).default)("DownloadIcon",[["path",{d:"M11.75 6.25H12.335C13.3 6.25 14.127 6.939 14.302 7.888L15.315 13.388C15.541 14.617 14.598 15.75 13.348 15.75H4.65196C3.40196 15.75 2.45896 14.617 2.68496 13.388L3.69796 7.888C3.87296 6.939 4.69996 6.25 5.66496 6.25H6.24996",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}],["path",{d:"M12 9.5L9 12.5L6 9.5",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}],["path",{d:"M9 12.5V1.25",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}]],"outlined");var es=e.i(133922),ed=e.i(346089),ec=e.i(760391);function ep(e){let{docsConfig:t}=(0,l.useContext)(o.DocsConfigContext),{subdomain:r,actualSubdomain:i}=(0,l.useContext)(o.DeploymentMetadataContext),{pageMetadata:s}=(0,l.useContext)(o.PageContext),{hasChatPermissions:d}=(0,l.useContext)(J.SearchContext),{onChatSheetToggle:c}=(0,l.useContext)(J.ChatAssistantContext),p=(0,n.useCurrentPath)(),{isLivePreview:g,getCompiledContent:b,isPathLoading:f}=(0,l.useContext)(a.LivePreviewContext),x=(0,l.useMemo)(()=>g?(0,X.buildLivePreviewMarkdown)(b(p)):void 0,[b,g,p]),h=(0,X.shouldWaitForLivePreviewMarkdown)(g,x,f(p)),m=e??s,y=(0,l.useMemo)(()=>(function({globalContextual:e,pageContextual:t}){return en(t,"page metadata")??en(e,"docs.json")})({globalContextual:t?.contextual,pageContextual:m.contextual}),[m.contextual,t?.contextual]),k=!!m.api||!!m.openapi||!!m.asyncapi,w=(0,V.useAnalyticsContext)("docs.context_menu.copy_page"),C=(0,V.useAnalyticsContext)("docs.context_menu.copy_mcp_link"),v=(0,V.useAnalyticsContext)("docs.context_menu.download_api_spec"),j=(0,V.useAnalyticsContext)("docs.context_menu.ai_provider_click"),L=(0,V.useAnalyticsContext)("docs.context_menu.install_mcp_server"),_=(0,V.useAnalyticsContext)("docs.context_menu.copy_add_mcp_command"),[I,A]=(0,l.useState)(!1),{copyPage:N,viewAsMarkdown:P,downloadApiSpec:E,downloadApiSpecDescription:M,openInChatGPT:T,openInClaude:S,openInPerplexity:D,openInGrok:U,openInGoogleAIStudio:$,openInDevin:z,openInDevinDesktop:H,copyPageAsMarkdown:q,viewPageAsMarkdown:W,askQuestionsAboutPage:er,askAssistant:ea,copyMCPServer:ep,copyMCPServerDescription:eu,copyAddMCPCommand:eg,copyAddMCPCommandDescription:eb,connectToCursor:ef,installMCPServerOnCursor:ex,connectToVSCode:eh,installMCPServerOnVSCode:em,connectToDevin:ey,installMCPServerOnDevin:ek}=(0,u.useSelectedLocale)(),ew=(0,l.useCallback)(async()=>{if(h)return!1;let e=await (0,X.copyMarkdownToClipboard)({pathname:p,markdown:x});return w({path:p}).catch(console.error),e},[x,h,p,w]),eC=(0,l.useCallback)(()=>{if(h)return;if(void 0!==x){let e=URL.createObjectURL(new Blob([x],{type:"text/markdown;charset=utf-8"}));window.open(e,"_blank","noopener,noreferrer"),window.setTimeout(()=>URL.revokeObjectURL(e),6e4);return}let e=`${K.NEXT_PUBLIC.BASE_PATH}${p}.md`;window.open(e,"_blank","noopener,noreferrer")},[x,h,p]),ev=(0,l.useCallback)(async()=>{let e=i??r;if(!e)return!1;A(!0);try{let t=p.replace(/^\/+/,""),r=await fetch(`${K.NEXT_PUBLIC.BASE_PATH}/_mintlify/api/generate-single-pdf/${encodeURIComponent(e)}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:t})});if(!r.ok)return!1;let o=function(e){if("object"==typeof e&&null!==e&&"pdfBuffer"in e)return"string"==typeof e.pdfBuffer?e.pdfBuffer:void 0}(await r.json());if(!o)return!1;let a=atob(o),n=new Uint8Array(a.length);for(let e=0;e{let e=await Z(p);return v({path:p,succeeded:e}).catch(console.error),e},[p,v]),eL=(0,l.useCallback)(async e=>{let t=new URL(window.location.href);t.hash="";let r=t.toString(),o=encodeURIComponent(`Read from ${r}.md so I can ask questions about it.`),a=encodeURIComponent(`Read from ${r} so I can ask questions about it.`);switch(e){case"chatgpt":window.open(`https://chat.openai.com/?hints=search&q=${a}`,"_blank","noopener,noreferrer");break;case"claude":window.open(`https://claude.ai/new?q=${o}`,"_blank","noopener,noreferrer");break;case"perplexity":window.open(`https://www.perplexity.ai/search?q=${o}`,"_blank","noopener,noreferrer");break;case"grok":window.open(`https://grok.com/?q=${o}`,"_blank","noopener,noreferrer");break;case"aistudio":window.open(`https://aistudio.google.com/prompts/new_chat?prompt=${o}`,"_blank","noopener,noreferrer");break;case"devin":window.open(`https://app.devin.ai/?prompt=${o}`,"_blank","noopener,noreferrer");break;case"devin-desktop":window.open(`devin://cascade?prompt=${o}`,"_blank","noopener,noreferrer")}j({provider:e}).catch(console.error)},[j]),e_=(0,l.useCallback)(async()=>{let e=eo(),t=await (0,Q.copyToClipboard)(e);return C({path:p}).catch(console.error),"success"===t},[p,C]),eI=(0,l.useCallback)(async()=>{let e=eo(),t=`npx add-mcp ${e}`,r=await (0,Q.copyToClipboard)(t);return _({path:p}).catch(console.error),"success"===r},[p,_]),eA=(0,l.useCallback)(e=>{let o=eo(),a={name:(0,ei.truncateAtWordBoundary)(t?.name||"Documentation",30),url:o},n=null;if("cursor"===e)n=(e=>{try{let t=JSON.stringify(e),r=(0,et.stringToBase64)(t).replace(/\+/g,"%2B");return`cursor://anysphere.cursor-deeplink/mcp/install?name=${encodeURIComponent(e.name)}&config=${encodeURIComponent(r)}`}catch(e){return console.error("Error generating Cursor deep link:",e),null}})(a);else if("devin"===e){let{name:e,url:o}=a,i=r&&t?.favicon?function(e,t){let r=B(e,"browserconfig.xml"),o=[];if("string"!=typeof t&&t){o.push(...G(t.light,e,!1,F));let r=G(t.dark,e,!0,O);o.push(...r.slice(1))}else o.push(...G(t,e,!1));return{icons:o,browserconfig:r}}(r,t.favicon).icons[0]?.href:void 0,l=btoa(unescape(encodeURIComponent(JSON.stringify({name:e,description:t?.description??void 0,icon:i,transport:"HTTP",url:o}))));n=`https://app.devin.ai/settings/mcp-marketplace/setup/custom?config=${l}`}else n=`vscode:mcp/install?${encodeURIComponent(JSON.stringify(a))}`;n&&window.open(n,"_blank","noopener,noreferrer"),L({ide:e}).catch(console.error)},[t?.name,t?.description,t?.favicon,r,L]),eN=(0,l.useCallback)(async e=>{if("string"==typeof e.href)window.open(e.href,"_blank","noopener,noreferrer");else{let t,{base:r,query:o}=e.href,a=async e=>{let t=e;if(t.includes("$page")){let e=await (0,X.getPageMarkdown)(p);t=t.replace("$page",e.slice(0,200))}return t.includes("$path")&&(t=t.replace("$path",p)),t.includes("$mcp")&&(t=t.replace("$mcp",eo())),t};try{t=new URL(await a(r))}catch(e){console.error("Invalid custom option URL",e);return}if(o)for(let{key:e,value:r}of o){let o=await a(r);t.searchParams.set(e,o)}window.open(t.toString(),"_blank","noopener,noreferrer")}},[p]),eP=(0,l.useMemo)(()=>[{id:"copy",title:N,description:q,icon:ec.DuplicateIcon,action:()=>ew(),isLoading:h},{id:"assistant",title:ea,description:er,icon:ed.Sparkle3Icon,action:()=>c({entryPoint:"context-menu"})},{id:"view",title:P,description:W,icon:Y.MarkdownIcon,action:eC,externalLink:!0,isLoading:h},{id:"download-pdf",title:"Download PDF",description:"Download this page as a PDF",icon:el,action:()=>ev(),isLoading:I},{id:"download-spec",title:E,description:M,icon:el,action:()=>ej()},{id:"chatgpt",title:T,description:er,icon:Y.ChatGPTIcon,action:()=>void eL("chatgpt"),externalLink:!0},{id:"claude",title:S,description:er,icon:Y.ClaudeIcon,action:()=>void eL("claude"),externalLink:!0},{id:"perplexity",title:D,description:er,icon:Y.PerplexityIcon,action:()=>void eL("perplexity"),externalLink:!0},{id:"grok",title:U,description:er,icon:Y.GrokIcon,action:()=>void eL("grok"),externalLink:!0},{id:"aistudio",title:$,description:er,icon:Y.GoogleAIStudioIcon,action:()=>void eL("aistudio"),externalLink:!0},{id:"devin",title:z,description:er,icon:Y.CognitionIcon,action:()=>void eL("devin"),externalLink:!0},{id:"windsurf",title:H,description:er,icon:Y.DevinDesktopIcon,action:()=>void eL("devin-desktop"),externalLink:!0},{id:"mcp",title:ep,description:eu,icon:Y.MCPServerIcon,action:()=>e_()},{id:"add-mcp",title:eg,description:eb,icon:es.SquareTerminalIcon,action:()=>eI()},{id:"cursor",title:ef,description:ex,icon:Y.CursorIcon,action:()=>eA("cursor"),externalLink:!0},{id:"vscode",title:eh,description:em,icon:Y.VSCodeIcon,action:()=>eA("vscode"),externalLink:!0},{id:"devin-mcp",title:ey,description:ek,icon:Y.CognitionIcon,action:()=>eA("devin"),externalLink:!0}],[ea,er,c,N,q,ew,h,P,W,eC,ev,I,E,M,ej,T,eL,S,D,U,$,z,H,ep,eu,e_,eg,eb,eI,ef,ex,eA,eh,em,ey,ek]);return{options:(0,l.useMemo)(()=>{let e=y?.options;return e?Array.from(new Set(e.map(e=>"string"==typeof e?eP.find(t=>t.id===e):{id:`custom-${e.title}`,title:e.title,description:e.description,icon:e.icon,action:()=>void eN(e),externalLink:"string"==typeof e.href?(0,R.isAbsoluteUrl)(e.href):(0,R.isAbsoluteUrl)(e.href.base)}).filter(ee).filter(e=>"assistant"!==e.id||d).filter(e=>"download-spec"!==e.id||k))):[]},[y?.options,eP,eN,d,k]),display:y?.display??"header"}}function eu({idleText:e,copyingText:t,copiedText:r,failedText:o,resetDelay:a=2e3,timeout:n=3e4}={}){let[i,s]=(0,l.useState)("idle"),d=(0,u.useSelectedLocale)(),c=(0,l.useRef)(0),p=e??d.copyPage,g=t??d.copying,b=r??d.copied,f=o??d.copyFailed;(0,l.useEffect)(()=>{if("copied"===i||"failed"===i){let e=setTimeout(()=>{s("idle")},a);return()=>clearTimeout(e)}},[i,a]);let x=(0,l.useCallback)(async e=>{s("copying");let t=++c.current,r=new Promise(e=>{setTimeout(()=>e("timeout"),n)});try{let o=await Promise.race([Promise.resolve(e()).then(e=>({type:"success",value:e})),r.then(()=>({type:"timeout"}))]);if(c.current!==t)return;if("timeout"===o.type){console.error("Copy action timed out"),s("failed");return}let a=void 0===o.value||o.value;s(a?"copied":"failed")}catch(e){if(c.current!==t)return;console.error("Copy action failed:",e),s("failed")}},[n]),h=(0,l.useMemo)(()=>{switch(i){case"copying":return g;case"copied":return b;case"failed":return f;default:return p}},[i,p,g,b,f]);return{state:i,text:h,execute:x,isDisabled:"copying"===i}}e.s(["useCopyPage",()=>eu],248511);var eg=e.i(588420),eb=e.i(137631),ef=e.i(568258);let ex="regular",eh=e=>"copy"===e||"mcp"===e||"add-mcp"===e,em=({className:e})=>{let{pageMetadata:r}=(0,l.useContext)(o.PageContext),a=!0===r.rss,n=(0,u.useSelectedLocale)(),{options:i,display:s}=ep(),[d,p]=(0,l.useState)(!1),{state:g,text:b,execute:f,isDisabled:x}=eu({idleText:i[0]?.title}),h=(0,l.useCallback)((e,t)=>async()=>{if("download-pdf"===e)return void t();p(!1),eh(e)?await f(t):t()},[f]),m=(0,l.useMemo)(()=>i.map(e=>({...e,action:h(e.id,e.action)})),[i,h]),y=()=>{let e=window.location.origin+window.location.pathname;window.open(`${e}/rss.xml`,"_blank","noopener,noreferrer")},k=({icon:e})=>"function"==typeof e||"object"==typeof e&&"render"in e?(0,t.jsx)(e,{className:"size-4 shrink-0"}):(0,t.jsx)(ef.ComponentIcon,{icon:"string"==typeof e?e:e?.name??"info",iconType:"string"==typeof e?ex:e?.style||ex,className:"size-4 bg-gray-700 dark:bg-gray-300",overrideColor:!0});if("toc"===s)return a?(0,t.jsx)("div",{id:c.Ids.PageContextMenu,className:(0,_.cn)("flex items-center shrink-0",e),children:(0,t.jsx)("button",{className:"flex items-center text-gray-700 dark:text-gray-300 border border-gray-200 dark:border-white/[0.07] bg-background-light dark:bg-background-dark rounded-xl p-2 hover:bg-gray-600/5 dark:hover:bg-gray-200/5",onClick:y,"data-testid":"rss-feed-button","aria-label":n["aria.openRssFeed"],children:(0,t.jsx)(Y.RssIcon,{className:"size-4"})})}):null;if(!m.length&&!a)return null;let w=m[0],C=e=>e.isLoading&&"download-pdf"===e.id?"Downloading PDF":e.title;return(0,t.jsxs)("div",{id:c.Ids.PageContextMenu,className:(0,_.cn)("flex items-center shrink-0",eh(w?.id)&&"min-w-[156px]",e),children:[w&&(0,t.jsx)("button",{id:c.Ids.PageContextMenuButton,className:(0,_.cn)("rounded-l-xl px-3 text-gray-700 dark:text-gray-300 py-1.5 border border-gray-200 dark:border-white/[0.07] bg-background-light dark:bg-background-dark hover:bg-gray-600/5 dark:hover:bg-gray-200/5",1===m.length?"rounded-xl":"border-r-0","idle"!==g&&"text-gray-600 dark:text-gray-400"),onClick:()=>{w.action()},disabled:x||w.isLoading,"aria-label":w.title,children:(0,t.jsx)("div",{className:"flex items-center gap-2 text-sm text-center font-medium",children:eh(w.id)?(0,t.jsxs)(t.Fragment,{children:["copy"===w.id?(0,t.jsx)(ec.DuplicateIcon,{"aria-hidden":"true",className:"size-4 shrink-0"}):(0,t.jsx)(k,{icon:w.icon}),(0,t.jsxs)("span",{className:"grid",children:[(0,t.jsx)("span",{"aria-hidden":"true",className:"invisible col-start-1 row-start-1",children:w.title}),(0,t.jsx)("span",{className:"col-start-1 row-start-1",children:b})]})]}):(0,t.jsxs)(t.Fragment,{children:[w.isLoading?(0,t.jsx)(eb.LoaderCircleIcon,{"aria-hidden":"true",className:"size-4 animate-spin shrink-0"}):(0,t.jsx)(k,{icon:w.icon}),(0,t.jsx)("span",{children:C(w)})]})})}),m.length>1&&(0,t.jsxs)(S.DropdownMenu,{open:d,onOpenChange:p,children:[(0,t.jsx)(S.DropdownMenuTrigger,{className:(0,_.cn)("rounded-none","rounded-r-xl border flex items-center justify-center h-[34px] border-gray-200 aspect-square dark:border-white/[0.07] bg-background-light dark:bg-background-dark hover:bg-gray-600/5 dark:hover:bg-gray-200/5"),"aria-label":n["aria.moreActions"],children:(0,t.jsx)(Y.DropdownArrowIcon,{className:(0,_.cn)("rotate-90",d&&"rotate-[270deg]")})}),(0,t.jsx)(S.DropdownMenuContent,{side:"bottom",align:"end",className:"inline-flex max-h-[420px] max-w-64 md:max-w-lg p-1 border border-gray-200 dark:border-white/[0.07] flex-col",children:m.map((e,r)=>(0,t.jsxs)(S.DropdownMenuItem,{onClick:()=>{e.action()},closeOnClick:"download-pdf"!==e.id,disabled:e.isLoading,className:"flex items-start justify-normal px-1.5 py-1.5 gap-1 hover:bg-gray-600/5 dark:hover:bg-gray-200/5 cursor-pointer rounded-xl focus:outline-hidden! focus-visible:bg-gray-600/5 dark:focus-visible:bg-gray-200/5 data-disabled:opacity-70 data-disabled:pointer-events-none",children:[(0,t.jsx)("div",{className:"mt-1 border border-gray-200 dark:border-white/[0.07] rounded-md p-1.5",children:e.isLoading?(0,t.jsx)(eb.LoaderCircleIcon,{"aria-hidden":"true",className:"size-4 animate-spin shrink-0"}):(0,t.jsx)(k,{icon:e.icon})}),(0,t.jsxs)("div",{className:"flex min-w-0 flex-col px-1",children:[(0,t.jsxs)("div",{className:"text-sm font-medium text-gray-800 dark:text-gray-300 flex items-center gap-1",children:[C(e),e.externalLink&&(0,t.jsx)(eg.ArrowUpRight2Icon,{"aria-hidden":"true",strokeWidth:2,className:"size-2.5 text-gray-600 dark:text-gray-400 shrink-0"})]}),(0,t.jsx)("div",{className:"text-xs text-gray-600 dark:text-gray-400 wrap-break-word",children:e.description})]})]},e.id+r))})]}),a&&(0,t.jsx)("button",{className:"flex items-center text-gray-700 dark:text-gray-300 border border-gray-200 dark:border-white/[0.07] bg-background-light dark:bg-background-dark rounded-xl p-2 ml-2 hover:bg-gray-600/5 dark:hover:bg-gray-200/5",onClick:y,"data-testid":"rss-feed-button","aria-label":n["aria.openRssFeed"],children:(0,t.jsx)(Y.RssIcon,{className:"size-4"})})]})};function ey(){let{description:e,isContentLoading:s,pageMetadata:u,pageType:g}=(0,l.useContext)(o.PageContext),{docsConfig:b}=(0,l.useContext)(o.DocsConfigContext),f=b?.theme,{isLivePreview:x}=(0,l.useContext)(a.LivePreviewContext),[{pageMetadata:h}]=(0,i.useMDXContent)(),m=(0,n.useCurrentPath)(),{openApiReferenceData:y}=(0,l.useContext)(E.OpenApiReferenceContext),{isCustom:k,isFrame:w}=d(),C=y.operation?.deprecated??h.deprecated,v=x&&h.title||u.title||h.title||(0,M.slugToTitle)(m),j=x&&h.description||e,L="pdf"===g,I=L||"willow"===f;if(s)return(0,t.jsxs)("header",{className:"relative animate-pulse space-y-3","aria-label":"Loading page header",children:[(0,t.jsx)("div",{className:"h-10 w-2/5 rounded bg-gray-200 dark:bg-gray-700"}),(0,t.jsx)("div",{className:"h-5 w-3/5 rounded bg-gray-200 dark:bg-gray-700"})]});if(!v&&!j||k||w)return null;let N=!v.trim().includes(" ");return(0,t.jsxs)("header",{id:L?m.replace(/[\/\\:*?"<>|]/g,"-"):c.Ids.Header,className:"relative leading-none @container/page-header",children:[(0,t.jsxs)("div",{className:(0,_.cn)("mt-0.5","sequoia"===f?"space-y-1":"space-y-2.5"),children:[(0,t.jsx)(A,{}),(0,t.jsxs)("div",{className:"flex flex-col sm:flex-row items-start sm:items-center relative gap-2 min-w-0",children:[(0,t.jsx)("h1",{id:c.Ids.PageTitle,className:(0,_.cn)("text-3xl sm:text-4xl text-gray-900 tracking-tight dark:text-gray-200 [overflow-wrap:anywhere]",N&&"break-all",(0,p.themeTitle)({theme:f})),children:v}),C&&(0,t.jsx)(P.DeprecatedLabel,{}),!I&&(0,t.jsx)(em,{className:"justify-end ml-auto hidden @[520px]/page-header:flex"})]})]}),(0,t.jsx)(({className:e})=>"string"==typeof j?(0,t.jsx)("div",{className:(0,_.cn)("mt-2 text-lg prose prose-gray dark:prose-invert [overflow-wrap:anywhere]",e),children:j}):j?(0,t.jsx)("div",{className:(0,_.cn)("mt-2 text-lg prose prose-gray dark:prose-invert [&>*]:[overflow-wrap:anywhere]",e),children:(0,t.jsx)(T.MDXClient,{components:r.default,...j})}):null,{className:(0,p.themeDescription)({theme:f})}),!I&&(0,t.jsx)(em,{className:"mt-3 @[520px]/page-header:hidden"})]})}}]);