(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2709],{48852:function(e,t,i){var n={"./asset-hyperlink.json":94381,"./blockquote.json":41198,"./document.json":99291,"./embedded-asset-block.json":26940,"./embedded-entry-block.json":30010,"./embedded-entry-inline.json":66414,"./embedded-resource-block.json":49083,"./embedded-resource-inline.json":36426,"./entry-hyperlink.json":60260,"./heading-1.json":73405,"./heading-2.json":19699,"./heading-3.json":6,"./heading-4.json":36879,"./heading-5.json":5230,"./heading-6.json":36773,"./hr.json":52419,"./hyperlink.json":58865,"./list-item.json":67378,"./ordered-list.json":52150,"./paragraph.json":63590,"./resource-hyperlink.json":15113,"./table-cell.json":29098,"./table-header-cell.json":2030,"./table-row.json":65225,"./table.json":53725,"./text.json":87195,"./unordered-list.json":35968};function o(e){return i(l(e))}function l(e){if(!i.o(n,e)){var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}o.keys=function(){return Object.keys(n)},o.resolve=l,e.exports=o,o.id=48852},9702:function(e,t,i){"use strict";i.d(t,{SB:function(){return n},eY:function(){return o},pv:function(){return l}});let n=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!(t>10)){if("text"===e.nodeType){let t=/\[\[fn:(.*?)\]\]/g.exec(e.value),[,i]=null!=t?t:[];return i}if(e.content){let i;for(let o of e.content){let e=n(o,t+1);if(e){i=e;break}}return i}}},o=(e,t)=>"citation-".concat(t,"-").concat(e),l=e=>{let t=RegExp("".concat(/\[\[fn:(.*?)\]\]/g.source,"|").concat(/\$\$(.*?)\$\$/g.source),"g"),i=[],n=0;return Array.from(e.matchAll(t)).forEach(t=>{let[o,l,r]=t,d=t.index||0;d>n&&i.push({type:"text",content:e.slice(n,d)}),void 0!==l?i.push({type:"footnote",content:l}):void 0!==r&&i.push({type:"latex",content:r}),n=d+o.length}),n{let{trigger:t,value:i,onError:d,successMessage:s}=e,a=(0,l.Z)(),[c,u]=(0,o.useState)(!1),v=(0,o.useRef)(null),h=(0,o.useCallback)(async()=>{if(!c)try{await navigator.clipboard.writeText(i),u(!0),v.current=window.setTimeout(()=>{u(!1)},1e3)}catch(t){var e;d?d():null===(e=window)||void 0===e||e.alert(a.formatMessage({id:"components.copy_button.error",defaultMessage:"There was a problem copying to your clipboard.",description:"Feedback message for when copying to clipboard failed."}))}},[i,c,d,a]),p=o.cloneElement(t,{onClick:()=>{var e,i;null===(e=(i=t.props).onClick)||void 0===e||e.call(i),h()}});return c?(0,n.jsxs)("span",{className:"text-p2 gap-5xs flex items-center",children:[(0,n.jsx)(r.Z,{icon:"Check",width:12}),s||a.formatMessage({id:"components.copy_button.success",defaultMessage:"Copied",description:"Feedback message for when copying to clipboard succeeded."})]}):(0,n.jsx)(n.Fragment,{children:p})}},50579:function(e,t,i){"use strict";i.r(t);var n=i(57437),o=i(44839),l=i(66648),r=i(2265),d=i(28993);t.default=e=>{var t,i,s,a,c,u,v,h,p,f,m,g,w,j,x,b,y,k,N,S,E,I,C,P,A,L,_,K,M,O,R,T,F,W,q,B,Z,D,Y;let{asset:$,assetUrl:z,assetMobile:G,assetMobileUrl:H,assetDark:U,assetDarkUrl:Q,assetDarkMobile:J=U,assetDarkMobileUrl:V=Q,alt:X,aspectRatio:ee,borderRadius:et="rounded-md",className:ei,onLoad:en,priority:eo=!1,sizes:el="(min-width: 1728px) 1728px, 100vw",width:er,height:ed}=e,es=(0,d.RW)(ee),[ea,ec]=(0,r.useState)(!1),eu={sizes:el},{props:{srcSet:ev}}=(0,l.getImageProps)({...eu,width:null==$?void 0:null===(s=$.file)||void 0===s?void 0:null===(i=s.details)||void 0===i?void 0:null===(t=i.image)||void 0===t?void 0:t.width,height:null==$?void 0:null===(u=$.file)||void 0===u?void 0:null===(c=u.details)||void 0===c?void 0:null===(a=c.image)||void 0===a?void 0:a.height,quality:80,src:z||(0,d.tK)(null==$?void 0:null===(v=$.file)||void 0===v?void 0:v.url),alt:null!==(B=null!=X?X:null==$?void 0:$.description)&&void 0!==B?B:null==$?void 0:$.title}),{props:{srcSet:eh}}=U?(0,l.getImageProps)({...eu,width:null==U?void 0:null===(f=U.file)||void 0===f?void 0:null===(p=f.details)||void 0===p?void 0:null===(h=p.image)||void 0===h?void 0:h.width,height:null==U?void 0:null===(w=U.file)||void 0===w?void 0:null===(g=w.details)||void 0===g?void 0:null===(m=g.image)||void 0===m?void 0:m.height,quality:80,src:Q||(0,d.tK)(null!==(Z=null==U?void 0:null===(j=U.file)||void 0===j?void 0:j.url)&&void 0!==Z?Z:""),alt:(null!=X?X:null==U?void 0:U.description)?null==U?void 0:U.title:""}):{props:{srcSet:null}},{props:{srcSet:ep}}=G?(0,l.getImageProps)({...eu,width:null==G?void 0:null===(y=G.file)||void 0===y?void 0:null===(b=y.details)||void 0===b?void 0:null===(x=b.image)||void 0===x?void 0:x.width,height:null==G?void 0:null===(S=G.file)||void 0===S?void 0:null===(N=S.details)||void 0===N?void 0:null===(k=N.image)||void 0===k?void 0:k.height,quality:70,src:H||(0,d.tK)(null!==(D=null==G?void 0:null===(E=G.file)||void 0===E?void 0:E.url)&&void 0!==D?D:""),alt:(null!=X?X:null==G?void 0:G.description)?null==G?void 0:G.title:""}):{props:{srcSet:null}},{props:{srcSet:ef}}=J?(0,l.getImageProps)({...eu,width:null==J?void 0:null===(P=J.file)||void 0===P?void 0:null===(C=P.details)||void 0===C?void 0:null===(I=C.image)||void 0===I?void 0:I.width,height:null==J?void 0:null===(_=J.file)||void 0===_?void 0:null===(L=_.details)||void 0===L?void 0:null===(A=L.image)||void 0===A?void 0:A.height,quality:70,src:V||(0,d.tK)(null!==(Y=null==J?void 0:null===(K=J.file)||void 0===K?void 0:K.url)&&void 0!==Y?Y:""),alt:(null!=X?X:null==J?void 0:J.description)?null==J?void 0:J.title:""}):{props:{srcSet:null}},em=(0,n.jsx)(l.default,{src:(0,d.tK)(null===(M=$.file)||void 0===M?void 0:M.url),alt:null!=X?X:$.title,...es?{fill:!0}:{width:null===(T=$.file)||void 0===T?void 0:null===(R=T.details)||void 0===R?void 0:null===(O=R.image)||void 0===O?void 0:O.width,height:null===(q=$.file)||void 0===q?void 0:null===(W=q.details)||void 0===W?void 0:null===(F=W.image)||void 0===F?void 0:F.height},...!es&&er&&ed&&{width:er,height:ed},placeholder:"empty",sizes:el,className:(0,o.W)(es?"object-cover object-center":"mx-auto"),onLoad:()=>{ec(!0),en&&en()},priority:eo});return(0,n.jsx)("div",{className:(0,o.W)("relative h-full w-full overflow-hidden",et,es?"aspect-".concat(es):"aspect-auto",ea?"ease-curve-d duration-normal bg-transparent transition-[background]":"bg-surface-loading",ei),children:G||U||J||!$?(0,n.jsxs)("picture",{className:(0,o.W)(es?"object-cover object-center":"mx-auto"),children:[(0,n.jsx)("source",{media:"(min-width: 768px) and (prefers-color-scheme: light)",srcSet:ev}),ep&&(0,n.jsx)("source",{media:"(prefers-color-scheme: light)",srcSet:ep}),eh&&(0,n.jsx)("source",{media:"(min-width: 768px) and (prefers-color-scheme: dark)",srcSet:eh}),ef&&(0,n.jsx)("source",{media:"(prefers-color-scheme: dark)",srcSet:ef}),em]}):em})}},10635:function(e,t,i){"use strict";i.d(t,{OverlayProvider:function(){return d},w:function(){return s}});var n=i(57437),o=i(2265),l=i(70750);let r=(0,o.createContext)({navActive:!1,searchActive:!1,mobileNavActive:!1,modalActive:!1,setNavActive:()=>void 0,setSearchActive:()=>void 0,setMobileNavActive:()=>void 0,setModalActive:()=>void 0,scaleBackPage:!1,activeItem:"",setActiveItem:()=>void 0});function d(e){let{children:t}=e,[i,d]=(0,o.useState)(!1),[s,a]=(0,o.useState)(!1),[c,u]=(0,o.useState)(!1),[v,h]=(0,o.useState)(!1),[p,f]=(0,o.useState)(""),{lock:m,unlock:g}=(0,l.Pr)({autoLock:!1});return(0,o.useEffect)(()=>{let e=e=>{"Escape"===e.key&&(d(!1),u(!1),a(!1))};if(i||c||s||v)return document.addEventListener("keydown",e),m(),()=>{document.removeEventListener("keydown",e)};g()},[i,c,s,v]),(0,n.jsx)(r.Provider,{value:{navActive:i,setNavActive:d,searchActive:c,setSearchActive:u,mobileNavActive:s,setMobileNavActive:a,modalActive:v,setModalActive:h,scaleBackPage:i||c||s||v,activeItem:p,setActiveItem:f},children:t})}function s(){let e=(0,o.useContext)(r);if(!e)throw Error("useOverlayContext must be used within an OverlayProvider");return e}},16170:function(e,t,i){"use strict";var n=i(2265);t.Z=e=>{let{root:t,rootMargin:i="0px",threshold:o=0}=e,[l,r]=(0,n.useState)(!1),d=(0,n.useRef)(null);return(0,n.useEffect)(()=>{let e=new IntersectionObserver(e=>{for(let t of e)t.isIntersecting?r(!0):r(!1)},{root:t,rootMargin:i,threshold:o});return d.current&&e.observe(d.current),()=>{d.current&&e.unobserve(d.current)}},[t,i,o]),[l,d]}},43126:function(e,t,i){"use strict";i.r(t),t.default=e=>{let{src:t,width:i,quality:n}=e,o=t.includes(".svg")?"":"&fm=webp",l="".concat(t,"?w=").concat(i,"&q=").concat(null!=n?n:90).concat(o);return i&&i<1920&&t.includes(".gif")&&(l+="&fit=pad"),l}},29317:function(e,t,i){"use strict";i.d(t,{QK:function(){return h},pM:function(){return w},jz:function(){return f}});var n=i(57437),o=i(80193),l=i(57818),r=i(2265);let d=(0,l.default)(()=>Promise.all([i.e(45249),i.e(81157)]).then(i.bind(i,81157)),{loadableGenerated:{webpack:()=>[81157]}});var s=e=>(0,n.jsx)("div",{className:"not-prose border-black-5 rich-text-code-example min-w-[var(--tmp-code-example-min-width)] overflow-hidden rounded-lg border",children:(0,n.jsx)(d,{...e,width:"free"})}),a=i(90358);let c=(0,l.default)(()=>i.e(9341).then(i.bind(i,9341)),{loadableGenerated:{webpack:()=>[9341]}}),u="underline-offset-[0.125rem] underline decoration-gray-40 dark:decoration-gray-60 hover:decoration-copy-primary",v=/\[\[icon:(.*?)\]\]/;function h(e,t){return{renderNode:{[o.INLINES.ENTRY_HYPERLINK]:(e,t)=>(0,n.jsx)(c,{href:"/".concat(e.data.target.fields.slug),className:u,children:t}),[o.INLINES.HYPERLINK]:(e,t)=>g(e,t),[o.BLOCKS.EMBEDDED_ENTRY]:e=>{var t,i,o,l,r;return"componentCodeExample"===(null==e?void 0:null===(r=e.data)||void 0===r?void 0:null===(l=r.target)||void 0===l?void 0:null===(o=l.sys)||void 0===o?void 0:null===(i=o.contentType)||void 0===i?void 0:null===(t=i.sys)||void 0===t?void 0:t.id)?(0,n.jsx)(s,{...e.data.target.fields}):null}},renderText:i=>e?m(i,t):f(i)}}let p=e=>{let t=e.match(v),i=e.split(v);if(t&&t[1])return(0,n.jsx)(n.Fragment,{children:i.map((e,i)=>i%2==0?e:(0,n.jsx)(r.Fragment,{children:(0,n.jsx)("span",{className:"whitespace-nowrap",children:(0,n.jsx)(a.Z,{className:"inline",icon:t[1]})})},"text-".concat(i)))})},f=e=>e.split("\n").reduce((e,t,i)=>[...e,i>0?(0,n.jsx)("br",{},i):null,v.test(t)?p(t):t],[]).filter(Boolean),m=(e,t)=>{let i=e.split("\n");return i.reduce((e,o,l)=>{let d=l===i.length-1;return[...e,l>0&&(0,n.jsx)("br",{},"br-".concat(l)),d?(0,n.jsxs)(r.Fragment,{children:[o,(0,n.jsx)("span",{className:"whitespace-nowrap",children:(0,n.jsx)(a.Z,{className:"ml-[0.3em] inline",width:null!=t?t:"0.75rem",icon:"Arrow"})})]},"text-".concat(l)):o]},[])},g=(e,t)=>{let i=e.data.uri,o=w(i);return(0,n.jsxs)(c,{href:i,external:!o,className:u,children:[t,"⁠"]})},w=e=>!(e.startsWith("http")||e.startsWith("www"))||["https://openai.com","https://www.openai.com","http://openai.com","http://www.openai.com","/","openai.com","www.openai.com"].some(t=>e.startsWith(t))}}]);