gimeialeoon.gitbook.io
Open in
urlscan Pro
172.64.147.209
Public Scan
Submitted URL: http://gimeialeoon.gitbook.io/_next/static/chunks/1285-0e02bdd8841e53f6.js
Effective URL: https://gimeialeoon.gitbook.io/_next/static/chunks/1285-0e02bdd8841e53f6.js
Submission: On November 18 via api from US — Scanned from US
Effective URL: https://gimeialeoon.gitbook.io/_next/static/chunks/1285-0e02bdd8841e53f6.js
Submission: On November 18 via api from US — Scanned from US
Form analysis
0 forms found in the DOMText Content
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1285],{18014:function(){},42084:function(){},54533:function(e,t,n){"use strict";n.d(t,{Hp:function(){return i},tm:function(){return l},yh:function(){return a},aG:function(){return s}});var r=n(7653);function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{rootMargin:n,threshold:a=.5}=t,[o,i]=r.useState(null),s=r.useRef(new Map);return r.useEffect(()=>{i(null);let t=new IntersectionObserver(e=>{e.forEach(e=>{let t=e.target.id;t&&s.current.set(t,e.isIntersecting&&e.intersectionRatio>=a)});let t=Array.from(s.current.entries()).find(e=>{let[,t]=e;return t});t&&i(t[0])},{rootMargin:n,threshold:a});return e.forEach(e=>{try{let n=document.getElementById(e);n&&t.observe(n)}catch(e){console.log(e)}}),()=>{t.disconnect()}},[e,a,n]),o}var o=n(81695);function i(){var e,t,a;let i=(0,o.useParams)(),[s,l]=r.useState(null!==(a=null===(t=n.g.location)||void 0===t?void 0:null===(e=t.hash)||void 0===e?void 0:e.slice(1))&&void 0!==a?a:null);return r.useEffect(()=>{function e(){var e,t;l(null===(t=n.g.location)||void 0===t?void 0:null===(e=t.hash)||void 0===e?void 0:e.slice(1))}return n.g.addEventListener("hashchange",e),e(),()=>n.g.removeEventListener("hashchange",e)},[i]),s}function s(){let e=i(),t=(0,o.usePathname)();r.useLayoutEffect(()=>{if(e){let t=document.getElementById(e);t&&t.scrollIntoView({block:"start",behavior:"smooth"})}else window.scrollTo(0,0)},[e,t])}function l(){let[e,t]=r.useState(!1);return r.useEffect(()=>{t(!0)},[]),e}},75014:function(e,t,n){"use strict";n.r(t),n.d(t,{Button:function(){return i}});var r=n(27573),a=n(33298),o=n(22833);function i(e){let{href:t,onClick:n,children:i,variant:s="primary",size:l="default",className:c}=e,u={default:["text-base","px-4","py-2"],medium:["text-base","px-3","py-1"],small:["text-xs","px-3 py-2"]},d=u[l]||u.default,p=(0,a.t)("inline-block","rounded-md","straight-corners:rounded-none","place-self-start","ring-1","ring-inset","grow-0","shrink-0","truncate","transition-colors","primary"===s?["bg-primary-600","text-white","ring-dark/2","hover:bg-primary-500","dark:ring-light/3","dark:bg-primary-600","dark:hover:bg-primary-700"]:["bg-dark/2","ring-dark/1","hover:bg-dark/3","dark:bg-light/2","dark:ring-light/1","dark:hover:bg-light/3"],d,c);return t?(0,r.jsx)(o.Link,{href:t,className:p,children:i}):(0,r.jsx)("button",{type:"button",onClick:n,className:p,children:i})}},80718:function(e,t,n){"use strict";n.r(t),n.d(t,{Checkbox:function(){return l}});var r=n(27573),a=n(42172),o=n(61281),i=n(7653),s=n(33298);let l=i.forwardRef((e,t)=>{let{className:n,size:i="medium",...l}=e;return(0,r.jsx)(o.fC,{ref:t,className:(0,s.t)("peer","shrink-0","rounded-sm","straight-corners:rounded-none","ring-1","ring-dark/3","ring-inset","flex","items-center","justify-center","data-[state=checked]:bg-primary-500","data-[state=checked]:text-contrast-primary-500","contrast-more:data-[state=checked]:bg-primary-600","contrast-more:ring-dark","dark:ring-light/3","dark:contrast-more:ring-light/6","dark:data-[state=checked]:bg-primary-500",{small:"size-4",medium:"size-5"}[i],n),...l,children:(0,r.jsx)(o.z$,{className:"relative text-current",children:l.checked?(0,r.jsx)(a.JO,{icon:"check",iconStyle:a.ze.Solid,className:"size-3"}):null})})});l.displayName=o.fC.displayName},66819:function(e,t,n){"use strict";n.r(t),n.d(t,{DateRelative:function(){return i}});var r=n(27573),a=n(7653),o=n(63530);function i(e){let{value:t}=e,n=(0,o.ZK)(),[i,s]=a.useState(Date.now());a.useEffect(()=>{let e=setInterval(()=>{s(Date.now())},18e5);return()=>{clearInterval(e)}},[]);let l=new Date(t),c=i-l.getTime();return(0,r.jsx)("time",{"data-visual-test":"transparent",suppressHydrationWarning:!0,dateTime:t,title:l.toLocaleString(),children:function(e,t){if("undefined"==typeof Intl||void 0===Intl.RelativeTimeFormat)return"".concat(Math.floor(t/24/60/60/1e3)," days ago");let n=new Intl.RelativeTimeFormat(e,{style:"long"});return t<36e5?n.format(-Math.floor(t/60/1e3),"minute"):t<864e5?n.format(-Math.floor(t/60/60/1e3),"hour"):t<2592e6?n.format(-Math.floor(t/24/60/60/1e3),"day"):t<31536e6?n.format(-Math.floor(t/30/24/60/60/1e3),"month"):n.format(-Math.floor(t/365/24/60/60/1e3),"year")}(n.locale,c)})}},22833:function(e,t,n){"use strict";n.r(t),n.d(t,{Link:function(){return o}});var r=n(27573),a=n(88146);let o=n(7653).forwardRef(function(e,t){let{href:n,prefetch:o,children:i,...s}=e;return(URL.canParse?URL.canParse(e.href):e.href.startsWith("http"))?(0,r.jsx)("a",{ref:t,...s,href:n,children:i}):(0,r.jsx)(a.default,{ref:t,...e,children:i})})},45343:function(e,t,n){"use strict";n.d(t,{ZoomImage:function(){return p}});var r=n(27573),a=n(42172),o=n(45254),i=n.n(o),s=n(7653),l=n(3458),c=n(33298),u=n(97746),d=n.n(u);function p(e){let{src:t,alt:n,width:a}=e,o=s.useRef(null),[c,u]=s.useState(!1),[p,h]=s.useState(!1),[g,v]=s.useState(!1),[b,y]=s.useState(null);s.useEffect(()=>{if("ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0)return;let e="number"==typeof a?a:0,t=0,n=window.matchMedia("(min-width: 768px)"),r="undefined"!=typeof ResizeObserver?new ResizeObserver(e=>{let n=e[0];if(n&&0!==n.contentRect.width){var r;t=null===(r=e[0])||void 0===r?void 0:r.contentRect.width,y(e[0].contentRect),i()}}):null,i=()=>{n.matches?r&&e&&t&&e<=t?u(!1):u(!0):u(!1)};return n.addEventListener("change",i),o.current&&(null==r||r.observe(o.current)),r||i(),()=>{null==r||r.disconnect(),n.removeEventListener("change",i)}},[o,a]),c&&l.preload(t,{as:"image"});let k=s.useCallback(e=>{let n=new Image;n.src=t,n.onload=()=>{null==e||e()}},[t]),w=s.useCallback(()=>{f(()=>{v(!1)},()=>{h(!1)})},[]);return(0,r.jsx)(r.Fragment,{children:g?(0,r.jsxs)(r.Fragment,{children:[b?(0,r.jsx)("span",{style:{display:"block",width:b.width,height:b.height}}):null,l.createPortal((0,r.jsx)(m,{src:t,crossOrigin:e.crossOrigin,alt:null!=n?n:"",onClose:w}),document.body)]}):(0,r.jsx)("img",{ref:o,...e,alt:null!=n?n:"",onMouseEnter:()=>{c&&k()},onClick:()=>{c&&k(()=>{l.flushSync(()=>h(!0)),f(()=>{v(!0)})})},className:i()(e.className,c?d().zoomImg:null,p?d().zoomImageActive:null)})})}function m(e){let{src:t,alt:n,crossOrigin:o,onClose:l}=e,u=s.useRef(null);return s.useEffect(()=>{let e=e=>{"Escape"===e.key&&l()};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[l]),s.useEffect(()=>{var e;null===(e=u.current)||void 0===e||e.focus()},[]),(0,r.jsxs)("div",{className:i()(d().zoomModal,(0,c.t)("fixed","inset-0","z-50","flex","items-center","justify-center","bg-light","dark:bg-dark","p-8")),onClick:l,children:[(0,r.jsx)("img",{src:t,alt:n,crossOrigin:o,className:(0,c.t)("max-w-full","max-h-full","object-contain","bg-light","dark:bg-dark")}),(0,r.jsx)("button",{ref:u,className:(0,c.t)("absolute","top-5","right-5","flex","flex-row","items-center","justify-center","text-sm","text-dark/6","dark:text-light/5","hover:text-primary","p-4","dark:text-light/5","rounded-full","bg-white","dark:bg-dark/3","shadow-sm","hover:shadow-md","border-slate-300","dark:border-dark/2","border"),onClick:l,children:(0,r.jsx)(a.JO,{icon:"compress-wide",className:(0,c.t)("size-5")})})]})}function f(e,t){document.startViewTransition?document.startViewTransition(()=>{l.flushSync(()=>e())}).finished.then(()=>{t&&t()}):(e(),null==t||t())}},63530:function(e,t,n){"use strict";n.d(t,{Ff:function(){return a.F},Xg:function(){return o},ZK:function(){return i},t:function(){return a.t}});var r=n(7653),a=n(80807);let o=r.createContext(null);function i(){let e=r.useContext(o);if(!e)throw Error("The hook useLanguage should be wrapped in a <TranslateContext>");return e}},80807:function(e,t,n){"use strict";n.d(t,{F:function(){return i},t:function(){return o}});var r=n(27573),a=n(7653);function o(e,t){for(var n=arguments.length,o=Array(n>2?n-2:0),i=2;i<n;i++)o[i-2]=arguments[i];let s=e[t];if(!s)throw Error('Translation not found for "'.concat(t,'"'));let l=[],c=s;return(o.forEach((e,t)=>{if("string"==typeof e)c=c.replace("${".concat(t+1,"}"),e);else{let[n,o]=c.split("${".concat(t+1,"}"));l.push((0,r.jsx)(a.Fragment,{children:n},"string-".concat(t))),l.push((0,r.jsx)(a.Fragment,{children:e},"arg-".concat(t))),c=o}}),l.length)?(0,r.jsxs)(r.Fragment,{children:[l,c]}):c}function i(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),a=2;a<n;a++)r[a-2]=arguments[a];return function e(t){if("string"==typeof t||"number"==typeof t||"boolean"==typeof t)return"".concat(t);if(null==t)return"";if(Array.isArray(t))return t.map(e).join("");if("object"==typeof t&&"props"in t)return t.props.children.map(e).join("");throw Error("Unsupported type ".concat(typeof t))}(o(e,t,...r))}},33298:function(e,t,n){"use strict";n.d(t,{t:function(){return a}});var r=n(25579);function a(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,r.m6)(...t)}},97746:function(e){e.exports={zoomModal:"ZoomImage_zoomModal__VzJS3",zoomImg:"ZoomImage_zoomImg__teSyL",zoomImageActive:"ZoomImage_zoomImageActive__C33dt"}},22563:function(e,t,n){"use strict";n.r(t),n.d(t,{Icon:function(){return s}});var r=n(7653),a=JSON.parse('{"brands":["monero","hooli","yelp","cc-visa","lastfm","shopware","creative-commons-nc","aws","redhat","yoast","cloudflare","ups","pixiv","wpexplorer","dyalog","bity","stackpath","buysellads","first-order","modx","guilded","vnv","square-js","microsoft","qq","orcid","java","invision","creative-commons-pd-alt","centercode","glide-g","drupal","jxl","dart-lang","hire-a-helper","creative-commons-by","unity","whmcs","rocketchat","vk","untappd","mailchimp","css3-alt","square-reddit","vimeo-v","contao","square-font-awesome","deskpro","brave","sistrix","square-instagram","battle-net","the-red-yeti","square-hacker-news","edge","threads","napster","square-snapchat","google-plus-g","artstation","markdown","sourcetree","google-plus","diaspora","foursquare","stack-overflow","github-alt","phoenix-squadron","pagelines","algolia","red-river","creative-commons-sa","safari","google","square-font-awesome-stroke","atlassian","linkedin-in","digital-ocean","nimblr","chromecast","evernote","hacker-news","creative-commons-sampling","adversal","creative-commons","watchman-monitoring","fonticons","weixin","shirtsinbulk","codepen","git-alt","lyft","rev","windows","wizards-of-the-coast","square-viadeo","meetup","centos","adn","cloudsmith","opensuse","pied-piper-alt","square-dribbble","codiepie","node","mix","steam","cc-apple-pay","scribd","debian","openid","instalod","expeditedssl","sellcast","square-twitter","r-project","delicious","freebsd","vuejs","accusoft","ioxhost","fonticons-fi","app-store","cc-mastercard","itunes-note","golang","kickstarter","grav","weibo","uncharted","firstdraft","square-youtube","wikipedia-w","wpressr","angellist","galactic-republic","nfc-directional","skype","joget","fedora","stripe-s","meta","laravel","hotjar","bluetooth-b","square-letterboxd","sticker-mule","creative-commons-zero","hips","behance","reddit","discord","chrome","app-store-ios","cc-discover","wpbeginner","confluence","shoelace","mdb","dochub","accessible-icon","ebay","amazon","unsplash","yarn","square-steam","500px","square-vimeo","asymmetrik","font-awesome","gratipay","apple","hive","gitkraken","keybase","apple-pay","padlet","amazon-pay","square-github","stumbleupon","fedex","phoenix-framework","shopify","neos","square-threads","hackerrank","researchgate","swift","angular","speakap","angrycreative","y-combinator","empire","envira","google-scholar","square-gitlab","studiovinari","pied-piper","wordpress","product-hunt","firefox","linode","goodreads","square-odnoklassniki","jsfiddle","sith","themeisle","page4","hashnode","react","cc-paypal","squarespace","cc-stripe","creative-commons-share","bitcoin","keycdn","opera","itch-io","umbraco","galactic-senate","ubuntu","draft2digital","stripe","houzz","gg","dhl","square-pinterest","xing","blackberry","creative-commons-pd","playstation","quinscape","less","blogger-b","opencart","vine","signal-messenger","paypal","gitlab","typo3","reddit-alien","yahoo","dailymotion","affiliatetheme","pied-piper-pp","bootstrap","odnoklassniki","nfc-symbol","mintbit","ethereum","speaker-deck","creative-commons-nc-eu","patreon","avianex","ello","gofore","bimobject","brave-reverse","facebook-f","square-google-plus","web-awesome","mandalorian","first-order-alt","osi","google-wallet","d-and-d-beyond","periscope","fulcrum","cloudscale","forumbee","mizuni","schlix","square-xing","bandcamp","wpforms","cloudversify","usps","megaport","magento","spotify","optin-monster","fly","aviato","itunes","cuttlefish","blogger","flickr","viber","soundcloud","digg","tencent-weibo","letterboxd","symfony","maxcdn","etsy","facebook-messenger","audible","think-peaks","bilibili","erlang","x-twitter","cotton-bureau","dashcube","42-group","stack-exchange","elementor","square-pied-piper","creative-commons-nd","palfed","superpowers","resolving","xbox","square-web-awesome-stroke","searchengin","tiktok","square-facebook","renren","linux","glide","linkedin","hubspot","deploydog","twitch","flutter","ravelry","mixer","square-lastfm","vimeo","mendeley","uniregistry","figma","creative-commons-remix","cc-amazon-pay","dropbox","instagram","cmplid","upwork","facebook","gripfire","jedi-order","uikit","fort-awesome-alt","phabricator","ussunnah","earlybirds","trade-federation","autoprefixer","whatsapp","square-upwork","slideshare","google-play","viadeo","line","google-drive","servicestack","simplybuilt","bitbucket","imdb","deezer","raspberry-pi","jira","docker","screenpal","bluetooth","gitter","d-and-d","microblog","cc-diners-club","gg-circle","pied-piper-hat","kickstarter-k","yandex","readme","html5","sellsy","square-web-awesome","sass","wirsindhandwerk","buromobelexperte","salesforce","octopus-deploy","medapps","ns8","pinterest-p","apper","fort-awesome","waze","bluesky","cc-jcb","snapchat","fantasy-flight-games","rust","wix","square-behance","supple","webflow","rebel","css3","staylinked","kaggle","space-awesome","deviantart","cpanel","goodreads-g","square-git","square-tumblr","trello","creative-commons-nc-jp","get-pocket","perbyte","grunt","weebly","connectdevelop","leanpub","black-tie","themeco","python","android","bots","free-code-camp","hornbill","js","ideal","git","dev","sketch","yandex-international","cc-amex","uber","github","php","alipay","youtube","skyatlas","firefox-browser","replyd","suse","jenkins","twitter","rockrms","pinterest","buffer","npm","yammer","btc","dribbble","stumbleupon-circle","internet-explorer","stubber","telegram","old-republic","odysee","square-whatsapp","node-js","edge-legacy","slack","medrt","usb","tumblr","vaadin","quora","square-x-twitter","reacteurope","medium","amilia","mixcloud","flipboard","viacoin","critical-role","sitrox","discourse","joomla","mastodon","airbnb","wolf-pack-battalion","buy-n-large","gulp","creative-commons-sampling-plus","strava","ember","canadian-maple-leaf","teamspeak","pushed","wordpress-simple","nutritionix","wodu","google-pay","intercom","zhihu","korvue","pix","steam-symbol"],"custom-icons":["gitbook"]}');let o=new Map;var i=n(5145);let s=r.forwardRef(function(e,t){let n=(0,i.useIcons)(),{icon:s,iconStyle:l=n.iconStyle,className:c="",size:u,...d}=e,[p,m]=function(e,t){var n;let r=null===(n=o.get(t))||void 0===n?void 0:n.get(e);if(r)return r;let i=[e,t];for(let[e,n]of Object.entries(a))if(n.includes(t)){i=[e,t];break}return o.has(t)||o.set(t,new Map),o.get(t).set(e,i),i}(l,s),f=(0,i.getIconAssetURL)(n,p,m);return r.createElement("svg",{ref:t,...d,style:{maskImage:"url(".concat(f,")"),maskRepeat:"no-repeat",maskPosition:"center",...u?{width:u,height:u}:{},...d.style},className:"gb-icon "+c})})},5145:function(e,t,n){"use strict";n.r(t),n.d(t,{IconsProvider:function(){return i},getAssetURL:function(){return l},getIconAssetURL:function(){return c},useIcons:function(){return s}});var r=n(7653),a=n(49972);let o=r.createContext({iconStyle:a.z.Regular});function i(e){let t=r.useContext(o),{children:n,assetsURL:a=t.assetsURL,assetsURLToken:i=t.assetsURLToken,iconStyle:s=t.iconStyle,assetsByStyles:l=t.assetsByStyles}=e,c=r.useMemo(()=>({assetsURL:a,assetsURLToken:i,iconStyle:s,assetsByStyles:l}),[a,i,s,l]);return r.createElement(o.Provider,{value:c},n)}function s(){return r.useContext(o)}function l(e,t){if(!e.assetsURL)throw Error("You first need to pass a assetsURL to <IconsProvider>");let n=e.assetsURL+(e.assetsURL.endsWith("/")?"":"/")+t+"?v=".concat(2);if(!e.assetsURLToken)return n;{let t=new URL(n);return t.searchParams.set("token",e.assetsURLToken),t.toString()}}function c(e,t,n){var r,a;return l(null!==(a=null===(r=e.assetsByStyles)||void 0===r?void 0:r[t])&&void 0!==a?a:e,"svgs/".concat(t,"/").concat(n,".svg"))}},42172:function(e,t,n){"use strict";n.d(t,{JO:function(){return r.Icon},ze:function(){return a.z}});var r=n(22563),a=n(49972);n(5145)},49972:function(e,t,n){"use strict";var r,a;n.d(t,{z:function(){return r}}),(a=r||(r={})).Regular="regular",a.SharpRegular="sharp-regular",a.Solid="solid",a.SharpSolid="sharp-solid",a.Duotone="duotone",a.SharpDuotoneSolid="sharp-duotone-solid",a.Light="light",a.SharpLight="sharp-light",a.Thin="thin",a.SharpThin="sharp-thin"},48982:function(e,t,n){"use strict";n.r(t),n.d(t,{InteractiveSection:function(){return s}});var r=n(45254),a=n(7653),o=n(11067);let i=(0,o.cn)({key:"syncedTabState",default:{}});function s(e){var t,n,s;let{id:l,className:c,toggeable:u=!1,defaultOpened:d=!0,tabs:p=[],defaultTab:m=null===(t=p[0])||void 0===t?void 0:t.key,header:f,children:h,overlay:g,toggleOpenIcon:v="▶",toggleCloseIcon:b="▼",stateKey:y}=e,[k,w]=(0,o.FV)(i),x=y&&y in k?p.find(e=>e.key===k[y]):void 0,[E,N]=a.useState(d),[I,j]=a.useState(null!==(n=null==x?void 0:x.key)&&void 0!==n?n:m),q=null!==(s=null!=x?x:p.find(e=>e.key===I))&&void 0!==s?s:p[0];return a.createElement("div",{id:l,className:r("openapi-section",u?"openapi-section-toggeable":null,c,u?"".concat(c,"-").concat(E?"opened":"closed"):null)},a.createElement("div",{onClick:()=>{u&&N(!E)},className:r("openapi-section-header","".concat(c,"-header"))},a.createElement("div",{className:r("openapi-section-header-content","".concat(c,"-header-content"))},f),a.createElement("div",{className:r("openapi-section-header-controls","".concat(c,"-header-controls")),onClick:e=>{e.stopPropagation()}},p.length?a.createElement("select",{className:r("openapi-section-select","openapi-select","".concat(c,"-tabs-select")),value:q.key,onChange:e=>{j(e.target.value),y&&w(t=>({...t,[y]:e.target.value})),N(!0)}},p.map(e=>a.createElement("option",{key:e.key,value:e.key},e.label))):null,(h||(null==q?void 0:q.body))&&u?a.createElement("button",{className:r("openapi-section-toggle","".concat(c,"-toggle")),onClick:()=>N(!E)},E?b:v):null)),(!u||E)&&(h||(null==q?void 0:q.body))?a.createElement("div",{className:r("openapi-section-body","".concat(c,"-body"))},h,null==q?void 0:q.body):null,g)}},90790:function(e,t,n){"use strict";n.d(t,{OpenAPIServerURLVariable:function(){return o}});var r=n(7653),a=n(45254);function o(e){let{variable:t}=e;return r.createElement("span",{className:a("openapi-url-var")},t.default)}},63990:function(e,t,n){"use strict";n.d(t,{OpenAPISpec:function(){return N}});var r=n(7653),a=n(18279);n(2494),n(6515);var o=n(48982),i=n(45254);function s(e){let{source:t,className:n}=e;return r.createElement("div",{className:i("openapi-markdown",n),dangerouslySetInnerHTML:{__html:t}})}let l="__$refResolved";function c(e){if("object"==typeof e&&e&&"$ref"in e)throw Error("Reference found");return e}function u(e){let{propertyName:t,required:n,schema:a,circularRefs:l=new Map,context:c,className:u}=e,p=(0,r.useId)(),b=l.get(a),k=new Map(l).set(a,p),w=b?null:g(a),x=b?null:v(a,new Set(k.keys()));return r.createElement(o.InteractiveSection,{id:p,className:i("openapi-schema",u),toggeable:!!w||!!x,defaultOpened:!!c.defaultInteractiveOpened,toggleOpenIcon:c.icons.chevronRight,toggleCloseIcon:c.icons.chevronDown,tabs:null==x?void 0:x[0].map((e,t)=>({key:"".concat(t),label:y(e,x[1]),body:k.has(e)?r.createElement(f,{id:k.get(e),schema:e}):r.createElement(m,{schema:e,circularRefs:k,context:c})})),header:r.createElement("div",{className:i("openapi-schema-presentation")},r.createElement("div",{className:i("openapi-schema-name")},t?r.createElement("span",{className:i("openapi-schema-propertyname")},t):null,n?r.createElement("span",{className:i("openapi-schema-required")},"*"):null,r.createElement("span",{className:i("openapi-schema-type")},y(a))),a.description?r.createElement(s,{source:a.description,className:"openapi-schema-description"}):null,"string"==typeof a.example||"number"==typeof a.example||"boolean"==typeof a.example?r.createElement("span",{className:"openapi-schema-example"},"Example: ",r.createElement("code",null,JSON.stringify(a.example))):null,a.pattern?r.createElement("div",{className:"openapi-schema-pattern"},"Pattern: ",r.createElement("code",null,a.pattern)):null)},w&&w.length>0||a.enum&&a.enum.length>0||b?r.createElement(r.Fragment,null,(null==w?void 0:w.length)?r.createElement(d,{properties:w,circularRefs:k,context:c}):null,a.enum&&a.enum.length>0?r.createElement(h,{enumValues:a.enum}):null,b?r.createElement(f,{id:b,schema:a}):null):null)}function d(e){let{id:t,properties:n,circularRefs:a,context:o}=e;return n.length?r.createElement("div",{id:t,className:i("openapi-schema-properties")},n.map(e=>r.createElement(u,{key:e.propertyName,circularRefs:a,...e,context:o}))):null}function p(e){let{schema:t,context:n}=e,a=g(t);return a&&a.length>0?r.createElement(d,{properties:a,context:n}):r.createElement(u,{schema:t,context:n,className:"openapi-schema-root"})}function m(e){let{schema:t,circularRefs:n,context:a}=e,o=(0,r.useId)(),i=g(t);return r.createElement(d,{id:o,properties:null!=i?i:[{schema:t}],circularRefs:i?new Map(n).set(t,o):n,context:a})}function f(e){let{id:t,schema:n}=e;return r.createElement("div",{className:"openapi-schema-circular"},"Circular reference to ",r.createElement("a",{href:"#".concat(t)},y(n))," ",r.createElement("span",{className:"openapi-schema-circular-glyph"},"↩"))}function h(e){let{enumValues:t}=e;return r.createElement("div",{className:"openapi-schema-enum"},t.map((e,t)=>r.createElement("span",{key:t,className:"openapi-schema-enum-value"},"".concat(e))))}function g(e){if(e.allOf)return e.allOf.reduce((e,t)=>{var n;return[...e,...null!==(n=g(c(t)))&&void 0!==n?n:[{schema:c(t)}]]},[]);if("array"===e.type&&e.items){let t=c(e.items);return g(t)||[{propertyName:"items",schema:t}]}if("object"===e.type||e.properties){let t=[];if(e.properties&&Object.entries(e.properties).forEach(n=>{let[r,a]=n,o=c(a);o.deprecated||t.push({propertyName:r,required:Array.isArray(e.required)?e.required.includes(r):void 0,schema:o})}),e.additionalProperties){let n=c(e.additionalProperties);t.push({propertyName:"Other properties",schema:!0===n?{}:n})}return t}return null}function v(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set,n=new Set(t).add(e);return e.anyOf?[b("anyOf",e.anyOf.map(c),n),c(e.discriminator)]:e.oneOf?[b("oneOf",e.oneOf.map(c),n),c(e.discriminator)]:(e.allOf,null)}function b(e,t,n){return t.reduce((t,r)=>{if(r[e]&&!n.has(r)){var a;return[...t,...(null===(a=v(r,n))||void 0===a?void 0:a[0])||[]]}return[...t,r]},[])}function y(e,t){if(e.title)return e.title;if(t&&e.properties){let n=c(e.properties[t.propertyName]);if(n&&n.enum)return n.enum.map(e=>e.toString()).join(" | ")}let n="any";if(e.enum)n="enum";else if("array"===e.type&&e.items)n="array of ".concat(y(c(e.items)));else if(e.type||e.properties){var r;n=null!==(r=e.type)&&void 0!==r?r:"object",e.format&&(n+=" (".concat(e.format,")"))}else"anyOf"in e?n="any of":"oneOf"in e?n="one of":"allOf"in e?n="all of":"not"in e&&(n="not");return l in e&&(n="".concat(e[l]," (").concat(n,")")),e.nullable&&(n="nullable ".concat(n)),n}function k(e){var t;let{requestBody:n,context:a}=e;return r.createElement(o.InteractiveSection,{header:"Body",className:"openapi-requestbody",tabs:Object.entries(null!==(t=n.content)&&void 0!==t?t:{}).map(e=>{var t;let[n,o]=e;return{key:n,label:n,body:r.createElement(p,{schema:null!==(t=c(o.schema))&&void 0!==t?t:{},context:a})}}),defaultOpened:a.defaultInteractiveOpened},n.description?r.createElement(s,{source:n.description,className:"openapi-requestbody-description"}):null)}function w(e){var t,n;let{response:a,context:l}=e,u=Object.entries(null!==(t=a.content)&&void 0!==t?t:{}),m=Object.entries(null!==(n=a.headers)&&void 0!==n?n:{}).map(e=>{var t;let[n,r]=e;return[n,null!==(t=c(r))&&void 0!==t?t:{}]});return 0!==u.length||a.description||0!==m.length?r.createElement(r.Fragment,null,a.description?r.createElement(s,{source:a.description,className:"openapi-response-description"}):null,m.length>0?r.createElement(o.InteractiveSection,{toggeable:!0,defaultOpened:!!l.defaultInteractiveOpened,toggleCloseIcon:l.icons.chevronDown,toggleOpenIcon:l.icons.chevronRight,header:"Headers",className:i("openapi-responseheaders")},r.createElement(d,{properties:m.map(e=>{var t;let[n,r]=e;return{propertyName:n,schema:null!==(t=c(r.schema))&&void 0!==t?t:{},required:r.required}}),context:l})):null,u.length>0?r.createElement(o.InteractiveSection,{header:"Body",className:i("openapi-responsebody"),tabs:u.map(e=>{var t;let[n,a]=e;return{key:n,label:n,body:r.createElement(p,{schema:null!==(t=c(a.schema))&&void 0!==t?t:{},context:l})}})}):null):null}function x(e){var t,n;let{responses:a,context:s}=e;return r.createElement(o.InteractiveSection,{stateKey:(t="response",(n=s.blockKey)?"".concat(n,"_").concat(t):t),header:"Response",className:i("openapi-responses"),tabs:Object.entries(a).map(e=>{let[t,n]=e;return{key:t,label:t,body:r.createElement(w,{response:c(n),context:s})}})})}function E(e){let{securities:t,context:n}=e;return 0===t.length?null:r.createElement(o.InteractiveSection,{header:"Authorization",className:"openapi-securities",toggeable:!0,defaultOpened:!1,toggleCloseIcon:n.icons.chevronDown,toggleOpenIcon:n.icons.chevronRight,tabs:t.map(e=>{let[t,n]=e;return{key:t,label:t,body:r.createElement(r.Fragment,null,r.createElement("p",{className:"openapi-securities-label"},function(e){switch(e.type){case"apiKey":return"API Key";case"http":if("basic"===e.scheme)return"Basic Auth";if("bearer"==e.scheme)return"Bearer Token ".concat(e.bearerFormat?"(".concat(e.bearerFormat,")"):"");return"HTTP";case"oauth2":return"OAuth2";case"openIdConnect":return"OpenID Connect";default:return e.type}}(n)),n.description?r.createElement(s,{source:n.description,className:"openapi-securities-description"}):null)}})})}function N(e){let{rawData:t,context:n}=e,{operation:i,securities:s}=(0,a.im)(t),l=function(e){let t=["path","query","header"],n=[];return e.forEach(e=>{let t=e.in,r=function(e){switch(e){case"path":return"Path parameters";case"query":return"Query parameters";case"header":return"Header parameters";default:return e}}(e.in),a=n.find(e=>e.key===t);a?a.parameters.push(e):n.push({key:t,label:r,parameters:[e]})}),n.sort((e,n)=>t.indexOf(e.key)-t.indexOf(n.key)),n}((i.parameters||[]).map(c));return r.createElement(r.Fragment,null,s.length>0?r.createElement(E,{securities:s,context:n}):null,l.map(e=>r.createElement(o.InteractiveSection,{key:e.key,className:"openapi-parameters",toggeable:!0,toggleOpenIcon:n.icons.chevronRight,toggleCloseIcon:n.icons.chevronDown,header:e.label,defaultOpened:"path"===e.key||n.defaultInteractiveOpened},r.createElement(d,{properties:e.parameters.map(e=>{var t;return{propertyName:e.name,schema:{description:e.description,example:e.example,...null!==(t=c(e.schema))&&void 0!==t?t:{}},required:e.required}}),context:n}))),i.requestBody?r.createElement(k,{requestBody:c(i.requestBody),context:n}):null,i.responses?r.createElement(x,{responses:c(i.responses),context:n}):null)}},71362:function(e,t,n){"use strict";n.d(t,{ScalarApiButton:function(){return o}});var r=n(66880),a=n(7653);function o(e){let{method:t,path:n}=e,o=(0,r._)();return a.createElement("div",{className:"scalar scalar-activate"},a.createElement("button",{className:"scalar-activate-button",onClick:()=>null==o?void 0:o.open({method:t,path:n})},a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"12",fill:"none"},a.createElement("path",{stroke:"currentColor",strokeWidth:"1.5",d:"M1 10.05V1.43c0-.2.2-.31.37-.22l7.26 4.08c.17.1.17.33.01.43l-7.26 4.54a.25.25 0 0 1-.38-.21Z"})),"Test it"))}}}]); //# sourceMappingURL=1285-0e02bdd8841e53f6.js.map