PageSourceSearch

https://snapapi.ai/_next/static/chunks/2886ee16739ed561.js

js snapapi.ai collected 2026-10-05 14:43:43 UTC 30,369 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,998183,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={assign:function(){return l},searchParamsToUrlQuery:function(){return s},urlQueryToSearchParams:function(){return i}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});function s(e){let t={};for(let[r,n]of e.entries()){let e=t[r];void 0===e?t[r]=n:Array.isArray(e)?e.push(n):t[r]=[e,n]}return t}function o(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function i(e){let t=new URLSearchParams;for(let[r,n]of Object.entries(e))if(Array.isArray(n))for(let e of n)t.append(r,o(e));else t.set(r,o(n));return t}function l(e,...t){for(let r of t){for(let t of r.keys())e.delete(t);for(let[t,n]of r.entries())e.append(t,n)}return e}},195057,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return i},formatWithValidation:function(){return d},urlObjectKeys:function(){return l}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let s=e.r(190809)._(e.r(998183)),o=/https?|ftp|gopher|file/;function i(e){let{auth:t,hostname:r}=e,n=e.protocol||"",a=e.pathname||"",i=e.hash||"",l=e.query||"",d=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?d=t+e.host:r&&(d=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(d+=":"+e.port)),l&&"object"==typeof l&&(l=String(s.urlQueryToSearchParams(l)));let c=e.search||l&&`?${l}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||o.test(n))&&!1!==d?(d="//"+(d||""),a&&"/"!==a[0]&&(a="/"+a)):d||(d=""),i&&"#"!==i[0]&&(i="#"+i),c&&"?"!==c[0]&&(c="?"+c),a=a.replace(/[?#]/g,encodeURIComponent),c=c.replace("#","%23"),`${n}${d}${a}${c}${i}`}let l=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function d(e){return i(e)}},718967,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={DecodeError:function(){return g},MiddlewareNotFoundError:function(){return k},MissingStaticPage:function(){return v},NormalizeError:function(){return b},PageNotFoundError:function(){return y},SP:function(){return h},ST:function(){return x},WEB_VITALS:function(){return s},execOnce:function(){return o},getDisplayName:function(){return u},getLocationOrigin:function(){return d},getURL:function(){return c},isAbsoluteUrl:function(){return l},isResSent:function(){return f},loadGetInitialProps:function(){return m},normalizeRepeatedSlashes:function(){return p},stringifyError:function(){return j}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let s=["CLS","FCP","FID","INP","LCP","TTFB"];function o(e){let t,r=!1;return(...n)=>(r||(r=!0,t=e(...n)),t)}let i=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,l=e=>i.test(e);function d(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function c(){let{href:e}=window.location,t=d();return e.substring(t.length)}function u(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function f(e){return e.finished||e.headersSent}function p(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function m(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await m(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&f(r))return n;if(!n)throw Object.defineProperty(Error(`"${u(e)}.getInitialProps()" should resolve to an object. But found "${n}" instead.`),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return n}let h="undefined"!=typeof performance,x=h&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class g extends Error{}class b extends Error{}class y extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class v extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}
1class k extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function j(e){return JSON.stringify({message:e.message,stack:e.stack})}},573668,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return s}});let n=e.r(718967),a=e.r(652817);function s(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,a.hasBasePath)(r.pathname)}catch(e){return!1}}},284508,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"errorOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},522016,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return g},useLinkStatus:function(){return y}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let s=e.r(190809),o=e.r(843476),i=s._(e.r(271645)),l=e.r(195057),d=e.r(8372),c=e.r(818581),u=e.r(718967),f=e.r(405550);e.r(233525);let p=e.r(91949),m=e.r(573668),h=e.r(509396);function x(e){return"string"==typeof e?e:(0,l.formatUrl)(e)}function g(t){var r;let n,a,s,[l,g]=(0,i.useOptimistic)(p.IDLE_LINK_STATUS),y=(0,i.useRef)(null),{href:v,as:k,children:j,prefetch:N=null,passHref:w,replace:C,shallow:E,scroll:$,onClick:S,onMouseEnter:M,onTouchStart:O,legacyBehavior:P=!1,onNavigate:R,ref:T,unstable_dynamicOnHover:L,..._}=t;n=j,P&&("string"==typeof n||"number"==typeof n)&&(n=(0,o.jsx)("a",{children:n}));let z=i.default.useContext(d.AppRouterContext),A=!1!==N,D=!1!==N?null===(r=N)||"auto"===r?h.FetchStrategy.PPR:h.FetchStrategy.Full:h.FetchStrategy.PPR,{href:I,as:U}=i.default.useMemo(()=>{let e=x(v);return{href:e,as:k?x(k):e}},[v,k]);if(P){if(n?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});a=i.default.Children.only(n)}let F=P?a&&"object"==typeof a&&a.ref:T,B=i.default.useCallback(e=>(null!==z&&(y.current=(0,p.mountLinkInstance)(e,I,z,D,A,g)),()=>{y.current&&((0,p.unmountLinkForCurrentNavigation)(y.current),y.current=null),(0,p.unmountPrefetchableInstance)(e)}),[A,I,z,D,g]),K={ref:(0,c.useMergedRef)(B,F),onClick(t){P||"function"!=typeof S||S(t),P&&a.props&&"function"==typeof a.props.onClick&&a.props.onClick(t),!z||t.defaultPrevented||function(t,r,n,a,s,o,l){if("undefined"!=typeof window){let d,{nodeName:c}=t.currentTarget;if("A"===c.toUpperCase()&&((d=t.currentTarget.getAttribute("target"))&&"_self"!==d||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,m.isLocalURL)(r)){s&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),l){let e=!1;if(l({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:u}=e.r(699781);i.default.startTransition(()=>{u(n||r,s?"replace":"push",o??!0,a.current)})}}(t,I,U,y,C,$,R)},onMouseEnter(e){P||"function"!=typeof M||M(e),P&&a.props&&"function"==typeof a.props.onMouseEnter&&a.props.onMouseEnter(e),z&&A&&(0,p.onNavigationIntent)(e.currentTarget,!0===L)},onTouchStart:function(e){P||"function"!=typeof O||O(e),P&&a.props&&"function"==typeof a.props.onTouchStart&&a.props.onTouchStart(e),z&&A&&(0,p.onNavigationIntent)(e.currentTarget,!0===L)}};return(0,u.isAbsoluteUrl)(U)?K.href=U:P&&!w&&("a"!==a.type||"href"in a.props)||(K.href=(0,f.addBasePath)(U)),s=P?i.default.cloneElement(a,K):(0,o.jsx)("a",{..._,...K,children:n}),(0,o.jsx)(b.Provider,{value:l,children:s})}e.r(284508);let b=(0,i.createContext)(p.IDLE_LINK_STATUS),y=()=>(0,i.useContext)(b);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},487486,e=>{"use strict";var t=e.i(843476),r=e.i(991918),n=e.i(225913),a=e.i(975157);let s=(0,n.cva)("inline-flex items-center justify-center rounded-full border 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",success:"border-green-200 bg-green-50 text-green-700 dark:border-green-800 dark:bg-green-950 dark:text-green-400",warning:"border-amber-200 bg-amber-50 text-amber-700 dark:border-amber-800 dark:bg-amber-950 dar
1k:text-amber-400",error:"border-red-200 bg-red-50 text-red-700 dark:border-red-800 dark:bg-red-950 dark:text-red-400"},size:{default:"px-2 py-0.5 text-xs",sm:"px-1.5 py-0 text-[10px]"}},defaultVariants:{variant:"default",size:"default"}});function o({className:e,variant:n,size:o,asChild:i=!1,...l}){let d=i?r.Slot:"span";return(0,t.jsx)(d,{"data-slot":"badge",className:(0,a.cn)(s({variant:n,size:o}),e),...l})}e.s(["Badge",()=>o])},178583,e=>{"use strict";let t=(0,e.i(475254).default)("file-text",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);e.s(["FileText",()=>t],178583)},561659,e=>{"use strict";let t=(0,e.i(475254).default)("credit-card",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]]);e.s(["CreditCard",()=>t],561659)},492161,e=>{"use strict";var t=e.i(956477);e.s(["Menu",()=>t.default])},37727,e=>{"use strict";var t=e.i(841947);e.s(["X",()=>t.default])},463059,e=>{"use strict";var t=e.i(246349);e.s(["ChevronRight",()=>t.default])},555436,e=>{"use strict";let t=(0,e.i(475254).default)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);e.s(["Search",()=>t],555436)},473708,e=>{"use strict";let t=(0,e.i(475254).default)("image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);e.s(["Image",()=>t],473708)},278716,e=>{"use strict";let t=(0,e.i(475254).default)("video",[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]]);e.s(["Video",()=>t],278716)},209912,e=>{"use strict";let t=(0,e.i(475254).default)("rocket",[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]]);e.s(["Rocket",()=>t],209912)},98113,e=>{"use strict";let t=/\*\*([^*]+)\*\*/g,r=/`([^`]+)`/g,n=/\[([^\]]+)\]\((https?:\/\/[^)]+|#[^)]+)\)/g,a="text-primary underline underline-offset-2 hover:text-emerald-600",s="rounded bg-muted px-1 py-0.5 font-mono text-[1em]",o=/([a-z0-9])([A-Z])/g,i=/[^a-z0-9]+/g,l=/^-|-$/g;function d(e,t,r){if(t.startsWith("#")){let n=r?`/${r}/docs/${t.slice(1).replace(o,"$1-$2").toLowerCase().replace(i,"-").replace(l,"")}`:t;return`<a href="${n}" class="${a}">${e}</a>`}return`<a href="${t}" target="_blank" rel="noopener noreferrer" class="${a}">${e}</a>`}function c(e,a){let o=e;return(o=(o=(o=(o=o.replace(n,(e,t,r)=>d(t,r,a))).replace(t,"<strong>$1</strong>")).replace(r,`<code class="${s}">$1</code>`)).replace(/\n\n/g,"<br/><br/>")).replace(/\n/g,"<br/>")}let u={2:"mt-5 mb-2 text-[15px] font-bold text-foreground first:mt-0",3:"mt-4 mb-1.5 text-sm font-semibold text-foreground first:mt-0",4:"mt-3 mb-1 text-sm font-medium text-foreground first:mt-0"};function f(e,a){let o=e.replace(n,(e,t,r)=>d(t,r,a));return(o=o.replace(t,"<strong>$1</strong>")).replace(r,`<code class="${s}">$1</code>`)}function p(e){return e.trim().replace(/^\|/,"").replace(/\|$/,"").split("|").map(e=>e.trim())}function m(e,t){let r=e.split(/```/),n=[];for(let e=0;e<r.length;e++){if(e%2==1){let t=r[e],a=t.indexOf("\n"),s=a>=0?t.slice(a+1):t;n.push(`<pre class="mt-3 overflow-x-auto rounded-lg bg-zinc-950 p-3 font-mono text-xs leading-relaxed text-zinc-300 first:mt-0"><code>${s.replace(/\n$/,"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}</code></pre>`);continue}let s=r[e].split("\n"),o=[],i=()=>{o.length&&(n.push(`<p class="mt-3 leading-relaxed first:mt-0">${o.map(e=>f(e,t)).join("<br/>")}</p>`),o=[])};for(let e=0;e<s.length;e++){var a;let r=s[e],l=r.match(/^(#{2,4})\s+(.+)$/);if(l){i();let e=l[1].length;n.push(`<h${e} class="${u[e]}">${f(l[2],t)}</h${e}>`);continue}if(r.trim().startsWith("|")&&e+1<s.length&&(a=s[e+1],/^\s*\|?[\s:|-]*-[\s:|-]*\|?\s*$/.test(a)&&a.includes("-"))){i();let r=[];for(;e<s.length&&s[e].trim().startsWith("|");)r.push(s[e]),e++;e--,n.push(function(e,t){let r=p(e[0]),n=e.slice(2).map(p),a=`<thead><tr>${r.map(e=>`<th>${f(e,t)}</th>`).join("")}</tr></thead>`,s=`<tbody>${n.map(e=>`<tr>${e.map(e=>`<td>${f(e,t)}</td>`).join("")}</tr>`).join("")}</tbody>`;return`<div class="mt-3 overflow-x-auto first:mt-0"><table>${a}${s}</table></div>`}(r,t));continue}if(""===r.trim()){i();continue}o.push(r)}i()}return n.join("")}e.s(["METHOD_COLORS",0,{get:"bg-cyan-500/15 text-cyan-600 dark:text-cyan-400 border-cyan-500/25",post:"bg-emerald-500/15 text-emerald-600 dark:text-emerald-400 border-emerald-500/25",put:"bg-amber-500/15 text-amber-600 dar
1k:text-amber-400 border-amber-500/25",patch:"bg-purple-500/15 text-purple-600 dark:text-purple-400 border-purple-500/25",delete:"bg-red-500/15 text-red-600 dark:text-red-400 border-red-500/25"},"SIDEBAR_METHOD_COLORS",0,{get:"bg-cyan-500/15 text-cyan-700 dark:text-cyan-400",post:"bg-emerald-500/15 text-emerald-700 dark:text-emerald-400",put:"bg-amber-500/15 text-amber-700 dark:text-amber-400",patch:"bg-purple-500/15 text-purple-700 dark:text-purple-400",delete:"bg-red-500/15 text-red-700 dark:text-red-400"},"TYPE_BADGE_COLORS",0,{string:"bg-blue-500/10 text-blue-600 dark:text-blue-400 border-blue-500/20",number:"bg-amber-500/10 text-amber-600 dark:text-amber-400 border-amber-500/20",integer:"bg-amber-500/10 text-amber-600 dark:text-amber-400 border-amber-500/20",boolean:"bg-purple-500/10 text-purple-600 dark:text-purple-400 border-purple-500/20",array:"bg-cyan-500/10 text-cyan-600 dark:text-cyan-400 border-cyan-500/20",object:"bg-emerald-500/10 text-emerald-600 dark:text-emerald-400 border-emerald-500/20"},"descriptionToHtml",()=>c,"descriptionToRichHtml",()=>m])},181365,e=>{"use strict";var t=e.i(843476),r=e.i(271645),n=e.i(618566),a=e.i(519455),s=e.i(492161),o=e.i(37727),i=e.i(522016),l=e.i(107308),d=e.i(463059),c=e.i(178583),u=e.i(209912),f=e.i(561659),p=e.i(473708),m=e.i(278716),h=e.i(475254);let x=(0,h.default)("files",[["path",{d:"M15 2h-4a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V8",key:"14sh0y"}],["path",{d:"M16.706 2.706A2.4 2.4 0 0 0 15 2v5a1 1 0 0 0 1 1h5a2.4 2.4 0 0 0-.706-1.706z",key:"1970lx"}],["path",{d:"M5 7a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 1.732-1",key:"l4dndm"}]]);var g=e.i(487486),b=e.i(975157),y=e.i(98113);function v({method:e,label:r,href:n,isActive:a,onNavigate:s,ref:o,className:l}){return(0,t.jsxs)(i.default,{ref:o,href:n,onClick:s,"aria-current":a?"page":void 0,className:(0,b.cn)("flex w-full items-start gap-2 px-4 py-2 pl-5 text-left text-sm transition-colors","hover:bg-muted/50 hover:text-foreground","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-inset",a?"bg-emerald-500/5 font-semibold text-foreground":"text-foreground/70",l),children:[(0,t.jsx)(g.Badge,{className:(0,b.cn)("mt-0.5 shrink-0 border-0 px-1 py-0 text-[9px] font-bold uppercase leading-4",y.SIDEBAR_METHOD_COLORS[e]),children:e}),(0,t.jsx)("span",{className:"break-words",children:r})]})}var k=e.i(174080),j=e.i(555436);let N=(0,h.default)("corner-down-left",[["path",{d:"M20 4v7a4 4 0 0 1-4 4H4",key:"6o5b7l"}],["path",{d:"m9 10-5 5 5 5",key:"1kshq7"}]]),w=(0,h.default)("square-terminal",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]]);function C({text:e,query:n}){if(!n)return(0,t.jsx)(t.Fragment,{children:e});let a=n.toLowerCase(),s=e.split(RegExp(`(${n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")})`,"ig"));return(0,t.jsx)(t.Fragment,{children:s.map((e,n)=>e.toLowerCase()===a?(0,t.jsx)("mark",{className:"rounded-[2px] bg-emerald-500/20 text-emerald-600 dark:text-emerald-400",children:e},n):(0,t.jsx)(r.Fragment,{children:e},n))})}function E({tags:e,lang:a,onNavigate:s}){let o=(0,n.useRouter)(),[i,l]=r.useState(!1),[c,u]=r.useState(""),[f,p]=r.useState(0),[m,h]=r.useState(""),[x,g]=r.useState(!0),[v,E]=r.useState(!1),$=r.useRef(null),S=r.useRef(null),M=r.useMemo(()=>(function(e){let t=[];for(let r of e)for(let e of r.endpoints)t.push({id:e.id,title:e.summary||e.path,href:e.slug,method:e.method,subtitle:e.description||e.path,breadcrumb:function(e){let t=[];for(let r of e){let e=r?.trim();e&&t[t.length-1]!==e&&t.push(e)}return t}([r.name,e.docsSection,e.docsSubsection])});return t})(e),[e]),O=c.toLowerCase().trim(),P=r.useMemo(()=>O?M.map((e,t)=>{let r,n,a,s,o;
1return{entry:e,index:t,score:(r=e.title.toLowerCase(),n=e.subtitle.toLowerCase(),a=e.breadcrumb.join(" ").toLowerCase(),s=e.method.toLowerCase(),o=0,r===O?o=Math.max(o,100):r.startsWith(O)?o=Math.max(o,80):r.includes(O)&&(o=Math.max(o,60)),s===O&&(o=Math.max(o,55)),n.startsWith(O)?o=Math.max(o,50):n.includes(O)&&(o=Math.max(o,40)),a.includes(O)&&(o=Math.max(o,25)),s.includes(O)&&(o=Math.max(o,15)),o)}}).filter(e=>e.score>0).sort((e,t)=>t.score-e.score||e.index-t.index).map(e=>e.entry):M,[M,O]);O!==m&&(h(O),p(0)),r.useEffect(()=>{E(!0),g(/mac|iphone|ipad|ipod/i.test(navigator.userAgent))},[]),r.useEffect(()=>{let e=e=>{if((e.metaKey||e.ctrlKey)&&"k"===e.key.toLowerCase())e.preventDefault(),l(!0);else{let t;"/"!==e.key||(t=e.target)instanceof HTMLElement&&(t.isContentEditable||["INPUT","TEXTAREA","SELECT"].includes(t.tagName))||(e.preventDefault(),l(!0))}};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[]),r.useEffect(()=>{if(!i)return;$.current?.focus();let e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}},[i]),r.useEffect(()=>{if(!i)return;let e=S.current?.children[f];e?.scrollIntoView({block:"nearest"})},[f,i]);let R=r.useCallback(()=>{l(!1),u("")},[]),T=r.useCallback(e=>{e&&(R(),s?.(),o.push(`/${a}/docs/${e.href}`))},[R,a,s,o]);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(j.Search,{className:"pointer-events-none absolute left-2.5 top-1/2 size-3.5 -translate-y-1/2 text-muted-foreground","aria-hidden":"true"}),(0,t.jsx)("button",{type:"button",onClick:()=>l(!0),"aria-label":"Search endpoints","aria-haspopup":"dialog",className:"flex h-8 w-full items-center rounded-md border border-input bg-transparent pl-8 pr-12 text-left text-xs text-muted-foreground shadow-xs transition-colors hover:bg-muted/40 focu
1s-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:(0,t.jsx)("span",{className:"truncate",children:"Search endpoints…"})}),(0,t.jsx)("kbd",{className:"pointer-events-none absolute right-2 top-1/2 hidden -translate-y-1/2 select-none items-center gap-0.5 rounded border bg-background px-1.5 py-0.5 font-mono text-[10px] font-medium text-muted-foreground sm:flex",children:x?"⌘K":"/"})]}),v&&i&&(0,k.createPortal)((0,t.jsx)("div",{className:"fixed inset-0 z-[100] flex items-start justify-center bg-black/60 px-4 pt-[12vh] backdrop-blur-sm",role:"dialog","aria-modal":"true","aria-label":"Search endpoints",onMouseDown:e=>{e.target===e.currentTarget&&R()},children:(0,t.jsxs)("div",{className:"w-full max-w-2xl overflow-hidden rounded-xl border bg-popover shadow-2xl",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3 border-b px-4",children:[(0,t.jsx)(j.Search,{className:"size-5 shrink-0 text-muted-foreground","aria-hidden":"true"}),(0,t.jsx)("input",{ref:$,type:"text",role:"combobox","aria-expanded":!0,"aria-controls":"docs-search-results","aria-autocomplete":"list","aria-activedescendant":P.length>0?`docs-search-opt-${f}`:void 0,value:c,onChange:e=>u(e.target.value),onKeyDown:e=>{"ArrowDown"===e.key?(e.preventDefault(),p(e=>Math.min(e+1,P.length-1))):"ArrowUp"===e.key?(e.preventDefault(),p(e=>Math.max(e-1,0))):"Enter"===e.key?(e.preventDefault(),T(P[f])):"Escape"===e.key&&(e.preventDefault(),R())},placeholder:"Search endpoints…",className:"h-14 flex-1 bg-transparent text-base outline-none placeholder:text-muted-foreground"}),(0,t.jsx)("kbd",{className:"pointer-events-none hidden select-none items-center rounded border bg-muted px-2 py-1 font-mono text-[11px] font-medium text-muted-foreground sm:flex",children:"ESC"})]}),0===P.length?(0,t.jsxs)("p",{className:"px-4 py-10 text-center text-sm text-muted-foreground",children:["No endpoints found for “",c,"”"]}):(0,t.jsx)("ul",{ref:S,id:"docs-search-results",role:"listbox",className:"max-h-[min(60vh,28rem)] overflow-y-auto p-2",children:P.map((e,n)=>{let a=n===f;return(0,t.jsxs)("li",{id:`docs-search-opt-${n}`,role:"option","aria-selected":a,onMouseEnter:()=>p(n),onMouseDown:t=>{t.preventDefault(),T(e)},className:(0,b.cn)("flex cursor-pointer items-start gap-3 rounded-lg px-3 py-2.5",a&&"bg-muted"),children:[(0,t.jsx)(w,{className:(0,b.cn)("mt-0.5 size-5 shrink-0",a?"text-emerald-500":"text-muted-foreground"),"aria-hidden":"true"}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[e.breadcrumb.length>0&&(0,t.jsx)("div",{className:"flex flex-wrap items-center gap-x-1 text-xs text-muted-foreground",children:e.breadcrumb.map((e,n)=>(0,t.jsxs)(r.Fragment,{children:[n>0&&(0,t.jsx)(d.ChevronRight,{className:"size-3 shrink-0","aria-hidden":"true"}),(0,t.jsx)("span",{children:(0,t.jsx)(C,{text:e,query:O})})]},n))}),(0,t.jsxs)("div",{className:"mt-0.5 flex items-center gap-2",children:[(0,t.jsx)("span",{className:(0,b.cn)("shrink-0 rounded px-1 py-0 text-[10px] font-bold uppercase leading-4",y.SIDEBAR_METHOD_COLORS[e.method]),children:e.method}),(0,t.jsx)("span",{className:"truncate text-sm font-semibold text-foreground",children:(0,t.jsx)(C,{text:e.title,query:O})})]}),(0,t.jsx)("p",{className:"mt-0.5 truncate text-xs text-muted-foreground",children:(0,t.jsx)(C,{text:e.subtitle,query:O})})]}),a&&(0,t.jsx)(N,{className:"mt-1 size-4 shrink-0 text-muted-foreground","aria-hidden":"true"})]},e.id)})})]})}),document.body)]})}let $=[{id:"images",label:"Images",icon:p.Image},{id:"videos",label:"Videos",icon:m.Video},{id:"files",label:"Files",icon:x}],S=e=>`type:${e}`,M=(e,t)=>`cat:${e}:${t}`;function O({tags:e,activeSlug:n,version:a,lang:s,onNavigate:o}){let[p,m]=r.useState(()=>new Set),h=r.useRef(!1),x=r.useRef(null),g=r.useRef(!1),b=r.useMemo(()=>{let t=new Map;for(let r of e)for(let e of r.endpoints){let r=e.docsMedia?e.docsMedia:e.path.startsWith("/v1/videos/")?"videos":e.path.startsWith("/v1/files/")?"files":"images",n=e.docsSubsection||e.docsSection||e.tag;t.has(r)||t.set(r,new Map);let a=t.get(r);a.has(n)||a.set(n,[]),a.get(n).push(e)}return $.map(e=>{let r=t.get(e.id),n=r?Array.from(r,([e,t])=>({name:e,endpoints:t})):[],a=n.reduce((e,t)=>
1e+t.endpoints.length,0);return{...e,categories:n,count:a}}).filter(e=>e.count>0)},[e]),y=r.useMemo(()=>{let e=null;for(let t of b)for(let r of t.categories)r.endpoints.some(e=>e.slug===n)&&(e={type:t.id,category:r.name});return e},[b,n]);r.useEffect(()=>{m(e=>{let t=new Set(e);return h.current||t.add(S("images")),y&&(t.add(S(y.type)),t.add(M(y.type,y.category))),h.current=!0,t})},[y,b]),r.useEffect(()=>{g.current=window.matchMedia("(prefers-reduced-motion: reduce)").matches},[]),r.useEffect(()=>{x.current&&x.current.scrollIntoView({behavior:g.current?"auto":"smooth",block:"nearest"})},[n]);let k=r.useCallback(e=>{m(t=>{let r=new Set(t);return r.has(e)?r.delete(e):r.add(e),r})},[]);return(0,t.jsxs)("nav",{className:"flex h-full flex-col","aria-label":"API Reference",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between px-4 py-2",children:[(0,t.jsx)(i.default,{href:`/${s}/docs`,onClick:o,className:"rounded-sm text-base font-bold text-foreground transition-colors hover:text-emerald-600 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:"API Reference"}),(0,t.jsxs)("span",{className:"text-sm text-muted-foreground",children:["v",a]})]}),(0,t.jsx)("div",{className:"px-4 py-3",children:(0,t.jsx)(E,{tags:e,lang:s,onNavigate:o})}),(0,t.jsxs)("div",{className:"px-4 pb-2",children:[(0,t.jsxs)(i.default,{href:`/${s}/docs#quickstart`,onClick:o,className:"flex items-center gap-2 rounded-md px-2 py-2 text-sm text-foreground/70 transition-colors hover:bg-muted/50 hover:text-foreground",children:[(0,t.jsx)(u.Rocket,{className:"size-4 shrink-0"}),"Quickstart"]}),(0,t.jsxs)(i.default,{href:`/${s}/docs/changelog`,onClick:o,"aria-current":"changelog"===n?"page":void 0,className:`flex items-center gap-2 rounded-md px-2 py-2 text-sm transition-colors hover:bg-muted/50 hover:text-foreground ${"changelog"===n?"bg-muted/50 font-medium text-foreground":"text-foreground/70"}`,children:[(0,t.jsx)(c.FileText,{className:"size-4 shrink-0"}),"Changelog & Versioning"]}),(0,t.jsxs)(i.default,{href:`/${s}/pricing`,onClick:o,className:"flex items-center gap-2 rounded-md px-2 py-2 text-sm text-foreground/70 transition-colors hover:bg-muted/50 hover:text-foreground",children:[(0,t.jsx)(f.CreditCard,{className:"size-4 shrink-0"}),"Pricing"]})]}),(0,t.jsxs)("div",{className:"flex-1 overflow-y-auto py-2",children:[0===b.length&&(0,t.jsx)("p",{className:"px-4 py-6 text-center text-xs text-muted-foreground",children:"No endpoints yet"}),b.map(e=>{let r,a=e.icon;return(0,t.jsxs)(l.Collapsible,{open:(r=e.id,p.has(S(r))),onOpenChange:()=>k(S(e.id)),children:[(0,t.jsxs)(l.CollapsibleTrigger,{className:"flex w-full items-center gap-2 px-4 py-2 text-left text-sm font-semibold hover:bg-muted/50 hover:text-foreground",children:[(0,t.jsx)(d.ChevronRight,{className:"size-3.5 shrink-0 text-muted-foreground transition-transform duration-200 motion-reduce:transition-none [[data-state=open]>&]:rotate-90","aria-hidden":"true"}),(0,t.jsx)(a,{className:"size-4 shrink-0 text-muted-foreground"}),(0,t.jsx)("span",{className:"flex-1 truncate",children:e.label}),(0,t.jsx)("span",{className:"shrink-0 rounded-full bg-muted px-1.5 text-[10px] font-medium tabular-nums text-muted-foreground",children:e.count})]}),(0,t.jsx)(l.CollapsibleContent,{children:e.categories.map(r=>{let a,i;return(0,t.jsxs)(l.Collapsible,{open:(a=e.id,i=r.name,p.has(M(a,i))),onOpenChange:()=>k(M(e.id,r.name)),children:[(0,t.jsxs)(l.CollapsibleTrigger,{className:"flex w-full items-center gap-2 py-2 pl-9 pr-4 text-left text-sm font-medium text-foreground/80 hover:bg-muted/50 hover:text-foreground",children:[(0,t.jsx)(d.ChevronRight,{className:"size-3.5 shrink-0 text-muted-foreground transition-transform duration-200 motion-reduce:transition-none [[data-state=open]>&]:rotate-90","aria-hidden":"true"}),(0,t.jsx)("span",{className:"flex-1 truncate",children:r.name})]}),(0,t.jsx)(l.CollapsibleContent,{children:(0,t.jsx)("div",{className:"pb-1",children:r.endpoints.map(e=>{let r=n===e.slug;return(0,t.jsx)(v,{ref:r?x:void 0,href:`/${s}/docs/${e.slug}`,method:e.method,label:e.summary,isActive:r,onNavigate:o,className:"pl-14"},e.id)})})})]},r.name)})})]},e.id)})]})]})}function P({tags:e,version:i,lang:l,children:d}){let[c,u]=r.useState(!1),f=(0,n.usePathname)(),p=f.split("/docs/")[1]?.split(/[/#?]/)[0]??"";r.useEffect(()=>{u(!1)},[f]),r.useEffect(()=>{if(!c)return;let e=e=>{"Escape"===e.key&&u(!1)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[c]);let m=r.useCallback(()=>{u(!1)},[]);return(0,t.jsxs)("div",{className:"mx-auto flex min-h-[calc(100vh-80px)] max-w-[1440px]",children:[c&&(0,t.jsx)("div",{className:"fixed inset-0 z-40 bg-black/50 xl:hidden",role:"button",tabIndex:0,"aria-label":"Close sidebar",onClick:m,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&m()}}),(0,t.jsxs)("aside",{className:`fixed left-0 top-0 z-50 h-screen w-[300px] border-r bg-background transition-transform duration-300 motion-reduce:transition-none xl:sticky xl:top-20 xl:z-0 xl:h-[calc(100vh-80px)] xl:translate-x-0 ${c?"translate-x-0":"-translate-x-full xl:translate-x-0"}`,children:[(0,t.jsx)("div",{className:"flex items-center justify-end p-2 xl:hidden",children:(0,t.jsx)(a.Button,{variant:"ghost",size:"icon",className:"h-8 w-8",onClick:m,"aria-label":"Close sidebar",children:(0,t.jsx)(o.X,{className:"size-4","aria-hidden":"true"})})}),(0,t.jsx)(O,{tags:e,activeSlug:p,version:i,lang:l,onNavigate:m})]}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsxs)("div",{className:"sticky top-20 z-30 flex items-center gap-3 border-b bg-background/95 px-4 py-3 backdrop-blur xl:hidden",children:[(0,t.jsx)(a.Button,{variant:"ghost",size:"icon",className:"h-8 w-8",onClick:()=>u(!0),"aria-label":"Open sidebar",children:(0,t.jsx)(s.Menu,{className:"size-4","aria-hidden":"true"})}),(0,t.jsx)("span",{className:"text-sm font-semibold",children:"API Reference"})]}),d]})]})}e.s(["DocsShell",()=>P],181365)}]);

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.