1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2505,65714],{30074:function(e,t,n){n.r(t);var r=n(57437),o=n(2265),a=n(29233),i=n.n(a),s=n(71488),d=n(33145),l=n(38452);t.default=e=>{let{text:t,tooltipLabel:n,copiedLabel:a,iconSrc:u="/images/icons/copy-clipboard.svg",iconAlt:c="copy",iconSize:p=20,className:f="",dataTestId:m="copy-to-clipboard",tooltipClass:b=""}=e,[g,x]=(0,o.useState)(!1),[h,v]=(0,o.useState)(!1),y=(0,o.useCallback)(()=>{x(!0),v(!0),setTimeout(()=>{x(!1),v(!1)},2e3)},[]);return(0,r.jsx)(i(),{onCopy:y,text:t,"data-testid":m,children:(0,r.jsx)("div",{className:"shrink-0 flex justify-center items-center bg-transparent ".concat(f),children:(0,r.jsx)(s.pn,{children:(0,r.jsxs)(s.u,{open:h,onOpenChange:v,delayDuration:200,children:[(0,r.jsx)(s.aJ,{asChild:!0,children:(0,r.jsx)("div",{className:"relative shadow-lg",children:(0,r.jsx)(d.default,{src:u,alt:c,width:p,height:p,className:"relative z-10"})})}),(0,r.jsx)(s._v,{className:(0,l.cn)("bg-black !w-fit min-h-[30px] max-h-[364px] overflow-y-auto scrollbar-hide",b),variant:"bottom",side:"bottom",align:"end",sideOffset:8,alignOffset:-8,children:(0,r.jsx)("p",{children:g?a:n})})]})})})})}},75686:function(e,t,n){n.r(t);var r=n(57437),o=n(29),a=n.n(o),i=n(2265),s=n(61994),d=n(65714),l=n(30074),u=n(75832);t.default=function(e){var t;let{code:n,language:o,className:c=""}=e,[p,f]=(0,i.useState)(""),m=(0,i.useMemo)(()=>{var e;return null!==(e=u.y.find(e=>e.id===o))&&void 0!==e?e:u.y[0]},[o]);return(0,i.useEffect)(()=>{let e=!0;return async function(){try{let t=(await (0,d.getShiki)()).codeToHtml(n,{lang:m.shiki,theme:"aiornot-code-dark"});e&&f(t)}catch(t){e&&f("")}}(),()=>{e=!1}},[n,m]),(0,r.jsxs)("div",{className:"jsx-e1e2ab8a1f709a2d "+((0,s.Z)("w-full overflow-hidden rounded-[18px] border border-[rgba(48,48,48,1)] bg-[rgba(10,11,12,1)]",c)||""),children:[(0,r.jsxs)("div",{className:"jsx-e1e2ab8a1f709a2d flex h-[46px] items-center justify-between border-b border-[rgba(48,48,48,1)] bg-[rgba(16,17,18,1)] px-[14px]",children:[(0,r.jsxs)("div",{className:"jsx-e1e2ab8a1f709a2d flex items-center gap-[12px]",children:[(0,r.jsxs)("div",{className:"jsx-e1e2ab8a1f709a2d flex items-center gap-[6px]",children:[(0,r.jsx)("span",{className:"jsx-e1e2ab8a1f709a2d h-[9px] w-[9px] rounded-full bg-[rgba(58,58,58,1)]"}),(0,r.jsx)("span",{className:"jsx-e1e2ab8a1f709a2d h-[9px] w-[9px] rounded-full bg-[rgba(58,58,58,1)]"}),(0,r.jsx)("span",{className:"jsx-e1e2ab8a1f709a2d h-[9px] w-[9px] rounded-full bg-[rgba(58,58,58,1)]"})]}),(0,r.jsx)("span",{className:"jsx-e1e2ab8a1f709a2d font-mono text-[12px] text-[rgba(143,143,143,1)]",children:"request"})]}),(0,r.jsxs)("div",{className:"jsx-e1e2ab8a1f709a2d flex items-center gap-[10px]",children:[(0,r.jsxs)("span",{className:"jsx-e1e2ab8a1f709a2d inline-flex items-center gap-[8px] rounded-[8px] border border-[rgba(48,48,48,1)] bg-[rgba(21,21,21,1)] px-[10px] py-[5px] text-[12px] text-white/80",children:[(0,r.jsx)("span",{className:"jsx-e1e2ab8a1f709a2d inline-flex h-[14px] w-[14px] shrink-0 items-center justify-center text-white/80",children:null!==(t=m.badgeIcon)&&void 0!==t?t:m.icon}),(0,r.jsx)("span",{className:"jsx-e1e2ab8a1f709a2d",children:m.label})]}),(0,r.jsx)(l.default,{text:n,dataTestId:"sandbox-code",tooltipLabel:"Copy Request",copiedLabel:"Copied!",iconSrc:"/images/icons/copy-clipboard.svg",iconSize:16,className:"h-[32px] w-[32px] rounded-[8px] border border-[rgba(48,48,48,1)] bg-[rgba(21,21,21,1)] transition-colors hover:bg-[rgba(28,28,28,1)]",tooltipClass:"!rou
1nded-[10px] !border-[rgba(48,48,48,1)] !bg-[rgba(12,13,14,1)] !text-white"})]})]}),(0,r.jsx)("div",{className:"jsx-e1e2ab8a1f709a2d max-h-[440px] min-h-[320px] overflow-auto bg-[rgba(10,11,12,1)]",children:(0,r.jsx)("div",{dangerouslySetInnerHTML:{__html:p},className:"jsx-e1e2ab8a1f709a2d "+((0,s.Z)("sandbox-request-shiki")||"")})}),(0,r.jsx)(a(),{id:"e1e2ab8a1f709a2d",children:'.sandbox-request-shiki pre.shiki{margin:0!important;min-height:320px;overflow-x:auto;background:transparent!important;padding:12px 0!important;white-space:pre!important;font-family:var(--font-geist-mono),ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,monospace!important;font-size:13px!important;line-height:20px!important;-moz-tab-size:4;-o-tab-size:4;tab-size:4;counter-reset:line}.sandbox-request-shiki pre.shiki>code{display:-webkit-box!important;display:-webkit-flex!important;display:-moz-box!important;display:-ms-flexbox!important;display:flex!important;-webkit-box-orient:vertical!important;-webkit-box-direction:normal!important;-webkit-flex-direction:column!important;-moz-box-orient:vertical!important;-moz-box-direction:normal!important;-ms-flex-direction:column!important;flex-direction:column!important;white-space:pre!important;font-family:inherit!important;font-size:inherit!important;line-height:inherit!important;margin:0!important;padding:0!important}.sandbox-request-shiki pre.shiki code>span.line,.sandbox-request-shiki pre.shiki .line{display:block!important;height:20px!important;line-height:20px!important;margin:0!important;padding:0 18px 0 52px!important;white-space:pre!important;counter-increment:line;position:relative;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0}.sandbox-request-shiki pre.shiki span{font-family:var(--font-geist-mono),ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,monospace!important}.sandbox-request-shiki pre.shiki code>span.line::before,.sandbox-request-shiki pre.shiki .line::before{content:counter(line);position:absolute;left:0;width:36px;text-align:right;color:rgba(100,100,100,.45);font-family:var(--font-geist-mono),ui-monospace,monospace;font-size:12px;font-variant-numeric:tabular-nums;line-height:20px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none}'})]})}},71488:function(e,t,n){n.d(t,{_v:function(){return u},aJ:function(){return l},pn:function(){return s},u:function(){return d}});var r=n(57437),o=n(2265),a=n(91668),i=n(38452);let s=a.zt,d=a.fC,l=a.xz,u=o.forwardRef((e,t)=>{let{className:n,sideOffset:o=4,variant:s,...d}=e;return(0,r.jsxs)(a.VY,{ref:t,sideOffset:o,align:"center",className:(0,i.cn)("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ",n,"bottom"===s&&"border-[#25503E] rounded-[8px] p-[12px] gap-[12px] flex flex-col tooltip-content bg-[#192421]"),...d,children:["bottom"===s&&(0,r.jsx)("div",{className:"w-[11px] absolute right-[12px] -top-[5px] h-[11px] border border-[#25503E] bg-[#192421] border-b-0 border-r-0 transform rotate-45"}),d.children]})});u.displayName=a.VY.displayName},65714:function(e,t,n){n.d(t,{getShiki:function(){return d}});var r=n(27689);let o=null,a={name:"aiornot-code-dark",type:"dark",colors:{"editor.background":"#0c0d0e","editor.foreground":"#e0e0e0","editorLineNumber.foreground":"#505050"},tokenColors:[{scope:["comment","punctuation.definition.comment"],settings:{foreground:"#505050",fontStyle:"italic"}},{scope:["keyword","keyword.control","keyword.operator","storage.type","storage.modifier","keyword.control.import","keyword.control.from"],settings:{foreground:"#808080"}},{scope:["string","string.quoted","string.template"],settings:{foreground:"#96E071"}},{scope:["constant.numeric","constant.language","constant.character"],settings:{foreground:"#b0b0b0"}},{scope:["entity.name.function","support.function","meta.function-call"],settings:{foreground:"#e0e0e0"}},{scope:["variable","variable.parameter","variable.other"],settings:{foreground:"#d0d0d0"}},{scope:["entity.name.type","entity.name.class","support.type","support.class"],settings:{foreground:"#96E071"}}
1,{scope:["variable.other.property","meta.object-literal.key","support.type.property-name"],settings:{foreground:"#c0c0c0"}},{scope:["punctuation","keyword.operator.assignment"],settings:{foreground:"#707070"}},{scope:["entity.name.tag","entity.other.attribute-name","entity.name.import"],settings:{foreground:"#96E071"}},{scope:["variable.other.normal.shell","punctuation.definition.variable.shell"],settings:{foreground:"#b0b0b0"}}]},i={name:"aiornot-json-dark",type:"dark",colors:{"editor.background":"#090a0b","editor.foreground":"#d4d6da","editorLineNumber.foreground":"#4f545b"},tokenColors:[{scope:["support.type.property-name.json","meta.structure.dictionary.json support.type.property-name.json"],settings:{foreground:"#d9dce1"}},{scope:["string.quoted.double.json","meta.structure.dictionary.value.json string.quoted.double.json"],settings:{foreground:"#96E071"}},{scope:"constant.numeric.json",settings:{foreground:"#cfd3d9"}},{scope:["keyword.other.json","constant.language.json","constant.language.boolean.json","constant.language.null.json"],settings:{foreground:"#a8afb8"}},{scope:["punctuation.separator.key-value.json","punctuation.separator.dictionary.key-value.json","punctuation.separator.dictionary.pair.json","punctuation.separator.array.json","punctuation.definition.string.begin.json","punctuation.definition.string.end.json","meta.structure.dictionary.json punctuation","meta.structure.array.json punctuation"],settings:{foreground:"#5f646c"}}]},s={name:"aiornot-docs-dark",type:"dark",colors:{"editor.background":"#0a0b0c","editor.foreground":"#d8dadf","editorLineNumber.foreground":"#4f545b"},tokenColors:[{scope:["comment","punctuation.definition.comment"],settings:{foreground:"#646a73",fontStyle:"italic"}},{scope:["string","string.quoted","string.template","string.interpolated","constant.numeric","constant.language","constant.character","constant.other","keyword","keyword.control","keyword.operator","storage.type","storage.modifier","entity.name.function","support.function","meta.function-call","variable","variable.parameter","variable.other","variable.other.property","variable.other.normal.shell","punctuation.definition.variable.shell","entity.name.type","entity.name.class","support.type","support.class","entity.name.tag","entity.other.attribute-name","entity.name.import","entity.name.section","meta.object-literal.key","support.type.property-name"],settings:{foreground:"#d8dadf"}},{scope:["punctuation","keyword.operator.assignment"],settings:{foreground:"#9aa0a8"}}]};function d(){return o||(o=(0,r.e$)({themes:["github-dark",a,i,s],langs:["python","javascript","bash","typescript","php","go","java","ruby","shell","json","toml"]})),o}},15278:function(e,t,n){n.d(t,{I0:function(){return x},XB:function(){return p},fC:function(){return g}});var r,o=n(2265),a=n(6741),i=n(82912),s=n(98575),d=n(26606),l=n(57437),u="dismissableLayer.update",c=o.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),p=o.forwardRef((e,t)=>{var n,p;let{disableOutsidePointerEvents:f=!1,onEscapeKeyDown:g,onPointerDownOutside:x,onFocusOutside:h,onInteractOutside:v,onDismiss:y,...j}=e,k=o.useContext(c),[w,E]=o.useState(null),C=null!==(p=null==w?void 0:w.ownerDocument)&&void 0!==p?p:null===(n=globalThis)||void 0===n?void 0:n.document,[,N]=o.useState({}),L=(0,s.e)(t,e=>E(e)),S=Array.from(k.layers),[z]=[...k.layersWithOutsidePointerEventsDisabled].slice(-1),D=S.indexOf(z),P=w?S.indexOf(w):-1,O=k.layersWithOutsidePointerEventsDisabled.size>0,q=P>=D,W=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,r=(0,d.W)(e),a=o.useRef(!1),i=o.useRef(()=>{});return o.useEffect(()=>{let e=e=>{if(e.target&&!a.current){let t=function(){b("dismissableLayer.pointerDownOutside",r,o,{discrete:!0})},o={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",i.current),i.current=t,n.addEventListener("click",i.current,{once:!0})):t()}else n.removeEventListener("click",i.current);a.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",i.current)}},[n,r]),{onPointerDownCapture:()=>a.current=!0}}(e=>{let t=e.target,n=[...k.branches].some(e=>e.contains(t));!q||n||(null==x||x(e),null==v||v(e),e.defaultPrevented||null==y||y())},C),M=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,r=(0,d.W)(e),a=o.useRef(!1);return o.useEffect(()=>{let e=e=>{e.target&&!a.current&&b("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>a.current=!0,onBlurCapture:()=>a.current=!1}}(e=>{let t=e.target;[...k.branches].some(e=>e.contains(t))||(null==h||h(e),null==v||v(e),e.defaultPrevented||null==y||y())},C);return!function(e,t=globalThis?.document){let n=(0,d.W)(e);o.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{P!==k.layers.size-1||(null==g||g(e),!e.defaultPrevented&&y&&(e.preventDefault(),y()))},C),o.useEffect(()=>{if(w)return f&&(0===k.layersWithOutsidePointerEventsDisabled.size&&(r=C.body.style.pointerEvents,C.body.style.pointerEvents="none"),k.layersWithOutsidePointerEventsDisabled.add(w)),k.layers.add(w),m(),()=>{f&&1===k.layersWithOutsidePointerEventsDisabled.size&&(C.body.style.pointerEvents=r)}},[w,C,f,k]),o.useEffect(()=>()=>{w&&(k.layers.delete(w),k.layersWithOutsidePointerEventsDisabled.delete(w),m())},[w,k]),o.useEffect(()=>{let e=()=>N({});return document.addEventListener(u,e),()=>document.removeEventListener(u,e)}
1,[]),(0,l.jsx)(i.WV.div,{...j,ref:L,style:{pointerEvents:O?q?"auto":"none":void 0,...e.style},onFocusCapture:(0,a.Mj)(e.onFocusCapture,M.onFocusCapture),onBlurCapture:(0,a.Mj)(e.onBlurCapture,M.onBlurCapture),onPointerDownCapture:(0,a.Mj)(e.onPointerDownCapture,W.onPointerDownCapture)})});p.displayName="DismissableLayer";var f=o.forwardRef((e,t)=>{let n=o.useContext(c),r=o.useRef(null),a=(0,s.e)(t,r);return o.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,l.jsx)(i.WV.div,{...e,ref:a})});function m(){let e=new CustomEvent(u);document.dispatchEvent(e)}function b(e,t,n,r){let{discrete:o}=r,a=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),o?(0,i.jH)(a,s):a.dispatchEvent(s)}f.displayName="DismissableLayerBranch";var g=p,x=f},99255:function(e,t,n){n.d(t,{M:function(){return d}});var r,o=n(2265),a=n(61188),i=(r||(r=n.t(o,2)))[" useId ".trim().toString()]||(()=>void 0),s=0;function d(e){let[t,n]=o.useState(i());return(0,a.b)(()=>{e||n(e=>e??String(s++))},[e]),e||(t?`radix-${t}`:"")}},83832:function(e,t,n){n.d(t,{h:function(){return d}});var r=n(2265),o=n(54887),a=n(82912),i=n(61188),s=n(57437),d=r.forwardRef((e,t)=>{var n,d;let{container:l,...u}=e,[c,p]=r.useState(!1);(0,i.b)(()=>p(!0),[]);let f=l||c&&(null===(d=globalThis)||void 0===d?void 0:null===(n=d.document)||void 0===n?void 0:n.body);return f?o.createPortal((0,s.jsx)(a.WV.div,{...u,ref:t}),f):null});d.displayName="Portal"},26606:function(e,t,n){n.d(t,{W:function(){return o}});var r=n(2265);function o(e){let t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}}}]);
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.