@redocly/replay 0.8.10 → 0.8.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/replay.cjs +864 -864
  2. package/dist/replay.js +4871 -4871
  3. package/package.json +2 -2
package/dist/replay.cjs CHANGED
@@ -201,7 +201,7 @@ You should wrap it with \`css\` like this:
201
201
  `,uc=T.div`
202
202
  padding: var(--spacing-md) 0;
203
203
  --button-margin: 0;
204
- `;function an(){const t=je(),{environments:e,selectedEnvironmentId:n}=t,r=j.useMemo(()=>n.get(),[n]);return j.useMemo(()=>e.find(o=>o.get().id===r)||e[0],[e,r])}var R3=function(){var t=document.getSelection();if(!t.rangeCount)return function(){};for(var e=document.activeElement,n=[],r=0;r<t.rangeCount;r++)n.push(t.getRangeAt(r));switch(e.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":e.blur();break;default:e=null;break}return t.removeAllRanges(),function(){t.type==="Caret"&&t.removeAllRanges(),t.rangeCount||n.forEach(function(i){t.addRange(i)}),e&&e.focus()}},D3=R3,sy={"text/plain":"Text","text/html":"Url",default:"Text"},Q3="Copy to clipboard: #{key}, Enter";function B3(t){var e=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return t.replace(/#{\s*key\s*}/g,e)}function _3(t,e){var n,r,i,o,s,a,l=!1;e||(e={}),n=e.debug||!1;try{i=D3(),o=document.createRange(),s=document.getSelection(),a=document.createElement("span"),a.textContent=t,a.ariaHidden="true",a.style.all="unset",a.style.position="fixed",a.style.top=0,a.style.clip="rect(0, 0, 0, 0)",a.style.whiteSpace="pre",a.style.webkitUserSelect="text",a.style.MozUserSelect="text",a.style.msUserSelect="text",a.style.userSelect="text",a.addEventListener("copy",function(u){if(u.stopPropagation(),e.format)if(u.preventDefault(),typeof u.clipboardData>"u"){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var f=sy[e.format]||sy.default;window.clipboardData.setData(f,t)}else u.clipboardData.clearData(),u.clipboardData.setData(e.format,t);e.onCopy&&(u.preventDefault(),e.onCopy(u.clipboardData))}),document.body.appendChild(a),o.selectNodeContents(a),s.addRange(o);var c=document.execCommand("copy");if(!c)throw new Error("copy command was unsuccessful");l=!0}catch(u){n&&console.error("unable to copy using execCommand: ",u),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(e.format||"text",t),e.onCopy&&e.onCopy(window.clipboardData),l=!0}catch(f){n&&console.error("unable to copy using clipboardData: ",f),n&&console.error("falling back to prompt"),r=B3("message"in e?e.message:Q3),window.prompt(r,t)}}finally{s&&(typeof s.removeRange=="function"?s.removeRange(o):s.removeAllRanges()),a&&document.body.removeChild(a),i()}return l}var M3=_3;const N3=wa(M3);class F3{static copyCustom(e){return N3(e)}static selectElement(e){if(!e)return;let n,r;document.body.createTextRange?(n=document.body.createTextRange(),n.moveToElementText(e),n.select()):document.createRange&&window.getSelection&&(r=window.getSelection(),n=document.createRange(),n.selectNodeContents(e),r==null||r.removeAllRanges(),r==null||r.addRange(n))}}const CA={hide:{type:"boolean",default:!1},component:{type:"string",enum:["radio","checkbox"],default:"checkbox"},label:{type:"string"},items:{type:"array",items:{type:"string"}}},Ya={type:"object",properties:CA,additionalProperties:!1},Z3={type:"object",properties:{enabled:{type:"boolean",default:!1},label:{type:"string"},placeholder:{type:"string"}},additionalProperties:!1},jd={type:"object",properties:{hide:{type:"boolean",default:!1},type:{type:"string",enum:["rating","sentiment","comment","reasons","mood","scale"],default:"sentiment"},settings:{type:"object",properties:{label:{type:"string"},submitText:{type:"string"},buttonText:{type:"string"},component:{type:"string",enum:["radio","checkbox"],default:"checkbox"},items:{type:"array",items:{type:"string"},minItems:1},leftScaleLabel:{type:"string"},rightScaleLabel:{type:"string"},reasons:{type:"object",properties:Object.assign(Object.assign({},CA),{like:Ya,dislike:Ya,satisfied:Ya,neutral:Ya,dissatisfied:Ya}),additionalProperties:!1},comment:{type:"object",properties:{hide:{type:"boolean",default:!1},label:{type:"string"},likeLabel:{type:"string"},dislikeLabel:{type:"string"},satisfiedLabel:{type:"string"},neutralLabel:{type:"string"},dissatisfiedLabel:{type:"string"}},additionalProperties:!1},anonymousUserEmail:Z3},additionalProperties:!1}},additionalProperties:!1},xs={type:"object",properties:{includeByName:{type:"array",items:{type:"string"}},excludeByName:{type:"array",items:{type:"string"}}},additionalProperties:!1},W3={type:"object",properties:{name:{type:"string"},items:xs,queries:xs,mutations:xs,subscriptions:xs,types:xs,directives:xs},required:["name"],additionalProperties:!1},V3={type:"object",properties:{requireExactGroups:{type:"boolean"},groups:{type:"array",items:W3},otherItemsGroupName:{type:"string"}},required:["requireExactGroups","groups","otherItemsGroupName"],additionalProperties:!1},Of={type:"object",properties:{hidePaginationButtons:{type:"boolean"},menu:{type:"object",properties:Object.assign({},V3.properties),additionalProperties:!1},sidebar:{type:"object",properties:{hide:{type:"boolean"}}},apiLogo:{type:"object",properties:{imageUrl:{type:"string"},href:{type:"string"},altText:{type:"string"},backgroundColor:{type:"string"}}},jsonSamplesDepth:{type:"number"},samplesMaxInlineArgs:{type:"number"},licenseKey:{type:"string"},fieldExpandLevel:{type:"number"},baseUrlPath:{type:"string"},feedback:jd},additionalProperties:!1},z3={type:"object",properties:{languages:{type:"array",items:{type:"object",properties:{lang:{type:"string",enum:["curl","JavaScript","Node.js","Python","Java8+Apache","Java","C#","C#+Newtonsoft","PHP","Go","Ruby","R","Payload"]},label:{type:"string"},options:{type:"object",properties:{indent:{type:"string"},withImports:{type:"boolean"},withComments:{type:"boolean"},binary:{type:"boolean"},credentials:{type:"string",enum:["omit","same-origin","include"]}},additionalProperties:!1}},required:["lang"],additionalProperties:!1}},skipOptionalParameters:{type:"boolean"},withOAuth2Call:{type:"boolean"}},required:["languages"],additionalProperties:!1},L3={type:"array",items:{type:"object",properties:{title:{type:"string"},url:{type:"string"}},required:["url"],additionalProperties:!1}},ay={type:"object",properties:{licenseKey:{type:"string"},hideLoading:{type:"boolean"},disableRouter:{type:"boolean"},hideSidebar:{type:"boolean"},feedback:jd,hideReplay:{type:"boolean"},oAuth2RedirectURI:{type:"string",nullable:!0},corsProxyUrl:{type:"string"},sortRequiredPropsFirst:{type:"boolean"},sanitize:{type:"boolean"},hideDownloadButtons:{type:"boolean"},downloadUrls:L3,onlyRequiredInSamples:{type:"boolean"},generatedSamplesMaxDepth:{oneOf:[{type:"number"},{type:"string"}]},showExtensions:{oneOf:[{type:"boolean"},{type:"string"},{type:"array",items:{type:"string"}}]},hideSchemaTitles:{type:"boolean"},jsonSamplesExpandLevel:{oneOf:[{type:"number"},{type:"string"}]},schemasExpansionLevel:{oneOf:[{type:"number"},{type:"string"}]},mockServer:{type:"object",properties:{url:{type:"string"},position:{type:"string",enum:["first","last","replace","off"]},description:{type:"string"}}},maxDisplayedEnumValues:{type:"number"},schemaDefinitionsTagName:{type:"string"},layout:{type:"string",enum:["stacked","three-panel"]},hideInfoMetadata:{type:"boolean"},events:{type:"object"},skipBundle:{type:"boolean"},routingBasePath:{type:"string"},codeSamples:z3,ignoreNamedSchemas:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},hidePropertiesPrefix:{type:"boolean"},excludeFromSearch:{type:"boolean"}},additionalProperties:!1},X3={type:"object",properties:{label:{type:"string"},lang:{enum:["curl","C#","Go","Java","Java8+Apache","JavaScript","Node.js","PHP","Python","R","Ruby"]}},required:["lang"]},G3={type:"object",properties:{enum:{type:"string"},enumSingleValue:{type:"string"},enumArray:{type:"string"},default:{type:"string"},deprecated:{type:"string"},example:{type:"string"},examples:{type:"string"},nullable:{type:"string"},recursive:{type:"string"},arrayOf:{type:"string"},webhook:{type:"string"},authorizations:{type:"string"},tryItAuthBasicUsername:{type:"string"},tryItAuthBasicPassword:{type:"string"}}},ly={type:"object",properties:{label:{type:"string"},link:{type:"string"},target:{type:"string"}},required:["label","link"]},Y3={type:"object",properties:{beforeInfo:{type:"array",items:ly},end:{type:"array",items:ly}}},Vo={type:"object",properties:{main:{type:"string"},light:{type:"string"},dark:{type:"string"},contrastText:{type:"string"}}},Yc={type:"object",properties:{backgroundColor:{type:"string"},borderColor:{type:"string"},color:{type:"string"},tabTextColor:{type:"string"}}},q3={type:"object",properties:Rd(Vo.properties,["light","dark"])},U3={type:"object",properties:{basic:{type:"string"},delete:{type:"string"},get:{type:"string"},head:{type:"string"},link:{type:"string"},options:{type:"string"},patch:{type:"string"},post:{type:"string"},put:{type:"string"}}},H3={type:"object",properties:{error:Yc,info:Yc,redirect:Yc,success:Yc}},J3={type:"object",properties:Ea(Vo.properties,["dark"])},K3={type:"object",properties:{primary:{type:"string"},secondary:{type:"string"},light:{type:"string"}}},eB={type:"object",properties:{accent:Vo,border:q3,error:Vo,http:U3,primary:Vo,responses:H3,secondary:J3,success:Vo,text:K3,tonalOffset:{type:"number"},warning:Vo}},qc={type:"object",properties:{fontSize:{type:"string"},padding:{type:"string"},minWidth:{type:"string"}}},tB={type:"object",properties:{small:qc,medium:qc,large:qc,xlarge:qc}},yi={type:"object",properties:{fontFamily:{type:"string"},fontSize:{type:"string"},fontWeight:{type:"string"},lineHeight:{type:"string"}}},nB={type:"object",properties:Object.assign(Object.assign({},Ea(yi.properties,["fontSize","lineHeight"])),{borderRadius:{type:"string"},hoverStyle:{type:"string"},boxShadow:{type:"string"},hoverBoxShadow:{type:"string"},sizes:tB})},cy={type:"object",properties:Rd(yi.properties,["fontSize","lineHeight"])},rB={type:"object",properties:{medium:cy,small:cy}},iB={type:"object",properties:Object.assign(Object.assign({},Ea(yi.properties,["fontSize","lineHeight"])),{borderRadius:{type:"string"},color:{type:"string"},sizes:rB})},oB={type:"object",properties:{top:{type:"string"},width:{type:"string"},height:{type:"string"}}},sB={type:"object",properties:{borderRadius:{type:"string"},backgroundColor:{type:"string"}}},uy={type:"object",properties:{fullWidth:{type:"boolean"}}},aB={type:"object",properties:{buttons:nB,httpBadges:iB,layoutControls:oB,panels:sB,tryItButton:uy,tryItSendButton:uy}},xf={type:"object",properties:{small:{type:"string"},medium:{type:"string"},large:{type:"string"}}},lB={type:"object",properties:{maxWidth:xf}},cB={type:"object",properties:{maxWidth:xf,middlePanelMaxWidth:xf}},uB={type:"object",properties:{showDarkRightPanel:{type:"boolean"},stacked:lB,"three-panel":cB}},fy={type:"object",properties:{backgroundColor:{type:"string"},border:{type:"string"}}},fB={type:"object",properties:{breakFieldNames:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},constraints:fy,defaultDetailsWidth:{type:"string"},examples:fy,labelsTextSize:{type:"string"},linesColor:{type:"string"},nestedBackground:{type:"string"},nestingSpacing:{type:"string"},requireLabelColor:{type:"string"},typeNameColor:{type:"string"},typeTitleColor:{type:"string"}}},kA={type:"object",properties:{subItemsColor:{type:"string"},textTransform:{type:"string"},fontWeight:{type:"string"}}},dB={type:"object",properties:Rd(kA.properties,["textTransform"])},hB={type:"object",properties:{unit:{type:"number"},paddingHorizontal:{type:"string"},paddingVertical:{type:"string"},offsetTop:{type:"string"},offsetLeft:{type:"string"},offsetNesting:{type:"string"}}},pB={type:"object",properties:Object.assign(Object.assign({},Ea(yi.properties,["fontWeight","lineHeight"])),{activeBgColor:{type:"string"},activeTextColor:{type:"string"},backgroundColor:{type:"string"},borderRadius:{type:"string"},breakPath:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},groupItems:kA,level1items:dB,rightLineColor:{type:"string"},separatorLabelColor:{type:"string"},showAtBreakpoint:{type:"string"},spacing:hB,textColor:{type:"string"},width:{type:"string"}})},Uc={type:"object",properties:Object.assign(Object.assign({},yi.properties),{color:{type:"string"},transform:{type:"string"}})},gB={type:"object",properties:Object.assign(Object.assign({},yi.properties),{backgroundColor:{type:"string"},color:{type:"string"},wordBreak:{type:"string",enum:["break-all","break-word","keep-all","normal","revert","unset","inherit","initial"]},wrap:{type:"boolean"}})},mB={type:"object",properties:Ea(yi.properties,["fontSize"])},OB={type:"object",properties:{color:{type:"string"},hover:{type:"string"},textDecoration:{type:"string"},hoverTextDecoration:{type:"string"},visited:{type:"string"}}},xB={type:"object",properties:Object.assign(Object.assign({code:gB,fieldName:yi},Rd(yi.properties,["fontSize","fontFamily"])),{fontWeightBold:{type:"string"},fontWeightLight:{type:"string"},fontWeightRegular:{type:"string"},heading1:Uc,heading2:Uc,heading3:Uc,headings:mB,lineHeight:{type:"string"},links:OB,optimizeSpeed:{type:"boolean"},rightPanelHeading:Uc,smoothing:{type:"string",enum:["auto","none","antialiased","subpixel-antialiased","grayscale"]}})},vB={type:"object",properties:Object.assign({color:{type:"string"}},Ea(yi.properties,["fontWeight"]))},yB={type:"object",properties:{backgroundColor:{type:"string"},borderRadius:{type:"string"},tokens:vB}},bB={type:"object",properties:{gutter:{type:"string"},maxHeight:{type:"string"},maxWidth:{type:"string"}}},SB={type:"object",properties:{backgroundColor:{type:"string"},color:{type:"string"}}},dy={type:"object",properties:{custom:{type:"string"}}},wB={type:"object",properties:{DownloadButton:dy,NextSectionButton:dy}},CB={type:"object",properties:{backgroundColor:{type:"string"},panelBackgroundColor:{type:"string"},panelControlsBackgroundColor:{type:"string"},showAtBreakpoint:{type:"string"},textColor:{type:"string"},width:{type:"string"}}},kB={type:"object",properties:{borderRadius:{type:"string"}}},AB={type:"object",properties:{sectionHorizontal:{type:"number"},sectionVertical:{type:"number"},unit:{type:"number"}}},PB={type:"object",properties:{breakpoints:xf,codeBlock:yB,colors:eB,components:aB,layout:uB,logo:bB,fab:SB,overrides:wB,rightPanel:CB,schema:fB,shape:kB,sidebar:pB,spacing:AB,typography:xB,links:{properties:{color:{type:"string"}}},codeSample:{properties:{backgroundColor:{type:"string"}}}}},EB={type:"object",properties:{skipOptionalParameters:{type:"boolean"},languages:{type:"array",items:X3}},required:["languages"]},IB={type:"object",properties:{theme:PB,ctrlFHijack:{type:"boolean"},defaultSampleLanguage:{type:"string"},disableDeepLinks:{type:"boolean"},disableSearch:{type:"boolean"},disableSidebar:{type:"boolean"},downloadDefinitionUrl:{type:"string"},expandDefaultServerVariables:{type:"boolean"},enumSkipQuotes:{type:"boolean"},expandDefaultRequest:{type:"boolean"},expandDefaultResponse:{type:"boolean"},expandResponses:{type:"string"},expandSingleSchemaField:{type:"boolean"},generateCodeSamples:EB,generatedPayloadSamplesMaxDepth:{type:"number"},hideDownloadButton:{type:"boolean"},hideHostname:{type:"boolean"},hideInfoSection:{type:"boolean"},hideLogo:{type:"boolean"},hideRequestPayloadSample:{type:"boolean"},hideRightPanel:{type:"boolean"},hideSchemaPattern:{type:"boolean"},hideSingleRequestSampleTab:{type:"boolean"},hideSecuritySection:{type:"boolean"},hideTryItPanel:{type:"boolean"},hideFab:{type:"boolean"},hideOneOfDescription:{type:"boolean"},htmlTemplate:{type:"string"},jsonSampleExpandLevel:{oneOf:[{type:"number",minimum:1},{type:"string"}]},labels:G3,menuToggle:{type:"boolean"},nativeScrollbars:{type:"boolean"},noAutoAuth:{type:"boolean"},onDeepLinkClick:{type:"object"},pagination:{enum:["none","section","item"]},pathInMiddlePanel:{type:"boolean"},payloadSampleIdx:{type:"number",minimum:0},requestInterceptor:{type:"object"},requiredPropsFirst:{type:"boolean"},routingStrategy:{type:"string"},samplesTabsMaxCount:{type:"number"},schemaExpansionLevel:{oneOf:[{type:"number",minimum:0},{type:"string"}]},minCharacterLengthToInitSearch:{type:"number",minimum:1},maxResponseHeadersToShowInTryIt:{type:"number",minimum:0},scrollYOffset:{oneOf:[{type:"number"},{type:"string"}]},searchAutoExpand:{type:"boolean"},searchFieldLevelBoost:{type:"number",minimum:0},searchMaxDepth:{type:"number",minimum:1},searchMode:{type:"string",enum:["default","path-only"]},searchOperationTitleBoost:{type:"number"},searchTagTitleBoost:{type:"number"},sendXUserAgentInTryIt:{type:"boolean"},showChangeLayoutButton:{type:"boolean"},showConsole:{type:"boolean"},showNextButton:{type:"boolean"},showRightPanelToggle:{type:"boolean"},showSecuritySchemeType:{type:"boolean"},showWebhookVerb:{type:"boolean"},showObjectSchemaExamples:{type:"boolean"},disableTryItRequestUrlEncoding:{type:"boolean"},sidebarLinks:Y3,sideNavStyle:{type:"string",enum:["summary-only","path-first","id-only"]},simpleOneOfTypeLabel:{type:"boolean"},sortEnumValuesAlphabetically:{type:"boolean"},sortOperationsAlphabetically:{type:"boolean"},sortPropsAlphabetically:{type:"boolean"},sortTagsAlphabetically:{type:"boolean"},suppressWarnings:{type:"boolean"},unstable_externalDescription:{type:"boolean"},unstable_ignoreMimeParameters:{type:"boolean"},untrustedDefinition:{type:"boolean"},showAccessMode:{type:"boolean"},preserveOriginalExtensionsName:{type:"boolean"},markdownHeadingsAnchorLevel:{type:"number"}},additionalProperties:!1};function Rd(t,e){return Object.fromEntries(e.filter(n=>n in t).map(n=>[n,t[n]]))}function Ea(t,e){return Object.fromEntries(Object.entries(t).filter(([n])=>!e.includes(n)))}const jn={type:"object",properties:{hide:{type:"boolean"}},additionalProperties:!1},hy={type:"object",properties:{src:{type:"string"},async:{type:"boolean"},crossorigin:{type:"string"},defer:{type:"boolean"},fetchpriority:{type:"string"},integrity:{type:"string"},module:{type:"boolean"},nomodule:{type:"boolean"},nonce:{type:"string"},referrerpolicy:{type:"string"},type:{type:"string"}},required:["src"],additionalProperties:!0},Wh={type:"object",properties:{page:{type:"string"},directory:{type:"string"},disconnect:{type:"boolean",default:!1},group:{type:"string"},label:{type:"string"},href:{type:"string"},external:{type:"boolean"},labelTranslationKey:{type:"string"},groupTranslationKey:{type:"string"},icon:{oneOf:[{type:"string"},{type:"object",properties:{srcSet:{type:"string"}},required:["srcSet"]}]},separator:{type:"string"},separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"],default:"top"},version:{type:"string"},menuStyle:{type:"string",enum:["drilldown"]},expanded:{type:"string",const:"always"},selectFirstItemOnExpand:{type:"boolean"},flatten:{type:"boolean"},linkedSidebars:{type:"array",items:{type:"string"}},items:{type:"array",items:{type:"object",additionalProperties:!0}}}},PO={type:"array",items:Object.assign(Object.assign({},Wh),{properties:Object.assign(Object.assign({},Wh.properties),{items:{type:"array",items:Wh}})})},TB={type:"object",properties:{name:{type:"string"},icon:{type:"string"},folder:{type:"string"}},additionalProperties:!1,required:["name","folder"]},$B={type:"object",properties:{hide:{type:"boolean",default:!1},prompt:{type:"string"}},additionalProperties:!1},jB={type:"array",items:{type:"object",required:["name","field","type"],properties:{name:{type:"string"},field:{type:"string"},type:{type:"string",enum:["multi-select","select","tags"]},isTop:{type:"boolean"}},additionalProperties:!1}},RB={type:"object",properties:{page:{type:"string"},label:{type:"string"},labelTranslationKey:{type:"string"}},required:["page"]},AA={type:"object",properties:{image:{type:"string"},srcSet:{type:"string"},altText:{type:"string"},link:{type:"string"},favicon:{type:"string"}},additionalProperties:!1},PA={type:"object",properties:Object.assign({items:PO},jn.properties),additionalProperties:!1},EA={type:"object",additionalProperties:TB},IA={type:"object",properties:Object.assign({items:PO,copyrightText:{type:"string"},logo:jn},jn.properties),additionalProperties:!1},TA={type:"object",properties:Object.assign({separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"],default:"bottom"}},jn.properties),additionalProperties:!1},$A={type:"object",properties:{head:{type:"array",items:hy},body:{type:"array",items:hy}},additionalProperties:!1},jA={type:"array",items:{type:"object",properties:{href:{type:"string"},as:{type:"string"},crossorigin:{type:"string"},fetchpriority:{type:"string"},hreflang:{type:"string"},imagesizes:{type:"string"},imagesrcset:{type:"string"},integrity:{type:"string"},media:{type:"string"},prefetch:{type:"string"},referrerpolicy:{type:"string"},rel:{type:"string"},sizes:{type:"string"},title:{type:"string"},type:{type:"string"}},required:["href"],additionalProperties:!0}},RA={type:"object",properties:Object.assign({engine:{type:"string",enum:["flexsearch","typesense"],default:"flexsearch"},ai:$B,facets:jB,placement:{type:"string",default:"navbar"},shortcuts:{type:"array",items:{type:"string"},default:["/"]},suggestedPages:{type:"array",items:RB}},jn.properties),additionalProperties:!1},DA={type:"object",properties:Object.assign({ignoreDetection:{type:"boolean"},modes:{type:"array",items:{type:"string"},default:["light","dark"]}},jn.properties),additionalProperties:!1},QA={type:"object",properties:{nextButton:{type:"object",properties:Object.assign({text:{type:"string",default:"Next page"}},jn.properties),additionalProperties:!1,default:{}},previousButton:{type:"object",properties:Object.assign({text:{type:"string",default:"Previous page"}},jn.properties),additionalProperties:!1,default:{}}},additionalProperties:!1},BA={type:"object",properties:{elementFormat:{type:"string",default:"icon"},copy:{type:"object",properties:Object.assign({},jn.properties),additionalProperties:!1,default:{hide:!1}},report:{type:"object",properties:Object.assign({tooltipText:{type:"string"},buttonText:{type:"string"},label:{type:"string"}},jn.properties),additionalProperties:!1,default:{hide:!1}},expand:{type:"object",properties:Object.assign({},jn.properties),additionalProperties:!1,default:{hide:!1}},collapse:{type:"object",properties:Object.assign({},jn.properties),additionalProperties:!1,default:{hide:!1}}},additionalProperties:!1},_A={type:"object",properties:{frontMatterKeysToResolve:{type:"array",items:{type:"string"},default:["image","links"]},partialsFolders:{type:"array",items:{type:"string"},default:["_partials"]},lastUpdatedBlock:{type:"object",properties:Object.assign({format:{type:"string",enum:["timeago","iso","long","short"],default:"timeago"},locale:{type:"string"}},jn.properties),additionalProperties:!1,default:{}},toc:{type:"object",properties:Object.assign({header:{type:"string",default:"On this page"},depth:{type:"integer",default:3,minimum:1}},jn.properties),additionalProperties:!1,default:{}},editPage:{type:"object",properties:Object.assign({baseUrl:{type:"string"}},jn.properties),additionalProperties:!1,default:{}}},additionalProperties:!1,default:{}},vf=Object.assign(Object.assign({},ay),{properties:Object.assign(Object.assign({},ay.properties),IB.properties)}),DB={type:"object",properties:{includeInDevelopment:{type:"boolean"},scriptUrl:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["scriptUrl"]},QB={type:"object",properties:{includeInDevelopment:{type:"boolean"},apiKey:{type:"string"},head:{type:"boolean"},respectDNT:{type:"boolean"},exclude:{type:"array",items:{type:"string"}},outboundClickEventName:{type:"string"},pageViewEventName:{type:"string"},amplitudeConfig:{type:"object",additionalProperties:!0}},additionalProperties:!1,required:["apiKey"]},BB={type:"object",properties:{includeInDevelopment:{type:"boolean"},orgId:{type:"string"}},additionalProperties:!1,required:["orgId"]},_B={type:"object",properties:{includeInDevelopment:{type:"boolean"},appId:{type:"string"}},additionalProperties:!1,required:["appId"]},MB={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},dataPlaneUrl:{type:"string"},controlPlaneUrl:{type:"string"},sdkUrl:{type:"string"},loadOptions:{type:"object",additionalProperties:!0}},additionalProperties:!1,required:["writeKey"]},NB={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},includeTitleInPageCall:{type:"boolean"},host:{type:"string"}},additionalProperties:!1,required:["writeKey"]},FB={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},gtmAuth:{type:"string"},gtmPreview:{type:"string"},defaultDataLayer:{},dataLayerName:{type:"string"},enableWebVitalsTracking:{type:"boolean"},selfHostedOrigin:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["trackingId"]},MA={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},conversionId:{type:"string"},floodlightId:{type:"string"},optimizeId:{type:"string"},exclude:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["trackingId"]},ZB={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},conversionId:{type:"string"},floodlightId:{type:"string"},head:{type:"boolean"},respectDNT:{type:"boolean"},exclude:{type:"array",items:{type:"string"}},optimizeId:{type:"string"},anonymizeIp:{type:"boolean"},cookieExpires:{type:"number"},trackers:{type:"object",additionalProperties:MA}},additionalProperties:!1,required:["trackingId"]},NA={type:"object",properties:{adobe:DB,amplitude:QB,fullstory:BB,heap:_B,rudderstack:MB,segment:NB,gtm:FB,ga:ZB}},FA={type:"object",properties:Object.assign({items:{type:"array",items:{type:"object",properties:{label:{type:"string"},external:{type:"boolean"},link:{type:"string"},separatorLine:{type:"boolean"}},additionalProperties:!0},default:[]},hideLoginButton:{type:"boolean"}},jn.properties),additionalProperties:!1},ZA={type:"object",properties:{hide:{type:"boolean"},showForUnversioned:{type:"boolean"}}},WA={type:"object",properties:{hide:{type:"boolean"},prefixItems:{type:"array",items:{type:"object",properties:{label:{type:"string"},labelTranslationKey:{type:"string"},page:{type:"string"}},additionalProperties:!1,default:{}}}},additionalProperties:!1},WB={type:"object",additionalProperties:!1,required:["title","property"],properties:{type:{type:"string",enum:["select","checkboxes","date-range"],default:"checkboxes"},title:{type:"string"},titleTranslationKey:{type:"string"},property:{type:"string"},parentFilter:{type:"string"},valuesMapping:{type:"object",additionalProperties:{type:"string"}},missingCategoryName:{type:"string"},missingCategoryNameTranslationKey:{type:"string"},options:{type:"array",items:{type:"string"}}}},VB={type:"object",additionalProperties:!0,required:["slug","items"],properties:{slug:{type:"string"},filters:{type:"array",items:WB},groupByFirstFilter:{type:"boolean"},filterValuesCasing:{type:"string",enum:["sentence","original","lowercase","uppercase"]},items:PO,requiredPermission:{type:"string"},separateVersions:{type:"boolean"},title:{type:"string"},titleTranslationKey:{type:"string"},description:{type:"string"},descriptionTranslationKey:{type:"string"}}},VA={type:"object",patternProperties:{".*":VB}},zA={type:"object",additionalProperties:!0,required:[],properties:{ignoreNonCompliant:{type:"boolean",default:!1},teamMetadataProperty:{type:"object",properties:{property:{type:"string"},label:{type:"string"},default:{type:"string"}}},levels:{type:"array",items:{type:"object",required:["name"],properties:{name:{type:"string"},color:{type:"string"},extends:{type:"array",items:{type:"string"}},rules:{type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object"}]}}},additionalProperties:!1}},targets:{type:"array",items:{type:"object",required:["where"],properties:{minimumLevel:{type:"string"},rules:{type:"object",additionalProperties:!0},where:{type:"object",required:["metadata"],properties:{metadata:{type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1}},additionalProperties:!1}},ignore:{type:"array",items:{type:"string"}}}},_r={type:"object",properties:{imports:{type:"array",items:{type:"string"}},logo:AA,navbar:PA,products:EA,footer:IA,sidebar:TA,scripts:$A,links:jA,feedback:jd,search:RA,colorMode:DA,navigation:QA,codeSnippet:BA,markdown:_A,openapi:vf,graphql:Of,analytics:NA,userMenu:FA,versionPicker:ZA,breadcrumbs:WA,catalog:VA,scorecard:zA},additionalProperties:!0};Object.assign(Object.assign({},_r),{additionalProperties:!1});const zB="https://redocly.com/sso/teams";var yf;(function(t){t.OIDC="OIDC",t.SAML2="SAML2"})(yf||(yf={}));var bf;(function(t){t.SERVICE_ACCOUNT="SERVICE_ACCOUNT",t.OAUTH2="OAUTH2"})(bf||(bf={}));var py;(function(t){t.STACKED="stacked",t.THREE_PANEL="three-panel"})(py||(py={}));function Jg(t,e){return Object.fromEntries(Object.entries(t).map(([n,r])=>{if(n!==e)return typeof r!="object"||!r?[n,r]:Array.isArray(r)?[n,r.map(i=>typeof i=="object"?Jg(i,e):i)]:[n,Jg(r,e)]}).filter(Boolean))}const LB={type:"object",additionalProperties:{type:"string"}},XB={type:"object",additionalProperties:!1,patternProperties:{"^[a-zA-Z0-9_-]+$":{type:"string",format:"uri"}}},GB={type:"object",additionalProperties:!1,properties:{event:{type:"string",enum:["schedule"]},interval:{type:"string",pattern:"^[1-9]\\d*[mhdw]$"}},required:["event"]},YB={type:"object",properties:{ignoreLint:{oneOf:[{type:"boolean",default:!1},{type:"object",additionalProperties:{type:"boolean"}}]},ignoreLinkChecker:{type:"boolean"},ignoreMarkdocErrors:{type:"boolean"},jobs:{type:"array",items:{type:"object",properties:{path:{type:"string",pattern:"^(?!\\.\\./)(/[a-zA-Z0-9_\\-\\./]+|./[a-zA-Z0-9_\\-\\./]+|[a-zA-Z0-9_\\-\\./]+)$"},agent:{type:"string",enum:["spot"]},trigger:GB,inputs:LB,servers:XB},required:["path","trigger","agent"],additionalProperties:!1}}},additionalProperties:!1},qB={type:"object",properties:{end_session_endpoint:{type:"string"},token_endpoint:{type:"string"},authorization_endpoint:{type:"string"},jwks_uri:{type:"string"}},required:["token_endpoint","authorization_endpoint"],additionalProperties:!0},UB={type:"object",properties:{type:{type:"string",const:yf.OIDC},title:{type:"string"},pkce:{type:"boolean",default:!1},configurationUrl:{type:"string",minLength:1},configuration:qB,clientId:{type:"string",minLength:1},clientSecret:{type:"string",minLength:0},teamsClaimName:{type:"string"},teamsClaimMap:{type:"object",additionalProperties:{type:"string"}},defaultTeams:{type:"array",items:{type:"string"}},scopes:{type:"array",items:{type:"string"}},tokenExpirationTime:{type:"number"},authorizationRequestCustomParams:{type:"object",additionalProperties:{type:"string"}},tokenRequestCustomParams:{type:"object",additionalProperties:{type:"string"}},audience:{type:"array",items:{type:"string"}}},required:["type","clientId"],oneOf:[{required:["configurationUrl"]},{required:["configuration"]}],additionalProperties:!1},HB={type:"object",properties:{type:{type:"string",const:yf.SAML2},title:{type:"string"},issuerId:{type:"string"},entityId:{type:"string"},ssoUrl:{type:"string"},x509PublicCert:{type:"string"},teamsAttributeName:{type:"string",default:zB},teamsAttributeMap:{type:"object",additionalProperties:{type:"string"}},defaultTeams:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["type","issuerId","ssoUrl","x509PublicCert"]},JB={oneOf:[UB,HB],discriminator:{propertyName:"type"}},KB={type:"object",additionalProperties:JB},e_={oneOf:[{type:"array",items:{type:"string",enum:["REDOCLY","CORPORATE","GUEST"]},uniqueItems:!0},{type:"string",enum:["REDOCLY","CORPORATE","GUEST"]}]},t_={type:"object",properties:{to:{type:"string"},type:{type:"number",default:301}},additionalProperties:!1},n_={type:"object",additionalProperties:t_,default:{}},LA={type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object"}]}},XA={type:"object",properties:{root:{type:"string"},output:{type:"string",pattern:"(.ya?ml|.json)$"},rbac:{type:"object",additionalProperties:!0},openapi:vf,graphql:Of,theme:{type:"object",properties:{openapi:vf,graphql:Of},additionalProperties:!1},title:{type:"string"},metadata:{type:"object",additionalProperties:!0},rules:LA,decorators:{type:"object",additionalProperties:!0},preprocessors:{type:"object",additionalProperties:!0}},required:["root"]},r_={type:"object",additionalProperties:!0},i_={type:"object",additionalProperties:{type:"object",additionalProperties:!0}},o_={type:"object",properties:{title:{type:"string"},description:{type:"string"},siteUrl:{type:"string"},image:{type:"string"},keywords:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},lang:{type:"string"},jsonLd:{type:"object"},meta:{type:"array",items:{type:"object",properties:{name:{type:"string"},content:{type:"string"}},required:["name","content"],additionalProperties:!1}}},additionalProperties:!1},_o={type:"object",additionalProperties:{type:"string"}},s_={type:"object",properties:{teamNamePatterns:{type:"array",items:{type:"string"}},teamFolders:{type:"array",items:{type:"string"}},teamFoldersBaseRoles:_o,cms:_o,reunite:_o,features:{type:"object",properties:{aiSearch:_o},additionalProperties:!1},content:{type:"object",properties:{"**":_o},additionalProperties:_o}},additionalProperties:_o},a_={type:"object",properties:{static:{type:"string"}},additionalProperties:!1,required:["static"]},l_={type:"object",properties:{idp:{type:"string"}},additionalProperties:!1,required:["idp"]},c_={type:"object",properties:{type:{type:"string",const:"GRAVITEE"},apiBaseUrl:{type:"string"},env:{type:"string"},allowApiProductsOutsideCatalog:{type:"boolean",default:!1},stage:{type:"string",default:"non-production"},auth:{oneOf:[a_,l_]}},additionalProperties:!1,required:["type","apiBaseUrl"]},u_={type:"object",properties:{type:{type:"string",const:bf.OAUTH2},tokenEndpoint:{type:"string"},clientId:{type:"string"},clientSecret:{type:"string"}},additionalProperties:!1,required:["type","tokenEndpoint","clientId","clientSecret"]},f_={type:"object",properties:{type:{type:"string",const:bf.SERVICE_ACCOUNT},serviceAccountEmail:{type:"string"},serviceAccountPrivateKey:{type:"string"}},additionalProperties:!1,required:["type","serviceAccountEmail","serviceAccountPrivateKey"]},Kg={type:"object",properties:{type:{type:"string",const:"APIGEE_X"},apiUrl:{type:"string"},stage:{type:"string",default:"non-production"},organizationName:{type:"string"},ignoreApiProducts:{type:"array",items:{type:"string"}},allowApiProductsOutsideCatalog:{type:"boolean",default:!1},auth:{type:"object",oneOf:[u_,f_],discriminator:{propertyName:"type"}}},additionalProperties:!1,required:["type","organizationName","auth"]},d_=Object.assign(Object.assign({},Kg),{properties:Object.assign(Object.assign({},Kg.properties),{type:{type:"string",const:"APIGEE_EDGE"}})}),h_={type:"object",oneOf:[Kg,d_,c_],discriminator:{propertyName:"type"}},p_={type:"object",required:["adapters"],additionalProperties:!1,properties:{adapters:{type:"array",items:h_}}},gy={type:"object",properties:{defaultLocale:{type:"string"},locales:{type:"array",items:{type:"object",properties:{code:{type:"string"},name:{type:"string"}},required:["code"]}}},additionalProperties:!1,required:["defaultLocale"]},g_={type:"object",properties:{name:{type:"string"},value:{type:"string"}},additionalProperties:!1,required:["name","value"]},e0={type:"object",properties:{imports:{type:"array",items:{type:"string"}},licenseKey:{type:"string"},redirects:n_,seo:o_,rbac:s_,requiresLogin:{type:"boolean"},responseHeaders:{type:"object",additionalProperties:{type:"array",items:g_}},mockServer:{type:"object",properties:{off:{type:"boolean",default:!1},position:{type:"string",enum:["first","last","replace","off"],default:"first"},strictExamples:{type:"boolean",default:!1},errorIfForcedExampleNotFound:{type:"boolean",default:!1},description:{type:"string"}}},apis:{type:"object",additionalProperties:XA},rules:LA,decorators:{type:"object",additionalProperties:!0},preprocessors:{type:"object",additionalProperties:!0},ssoDirect:KB,sso:e_,residency:{type:"string"},developerOnboarding:p_,removeAttribution:{type:"boolean"},i18n:gy,l10n:gy,metadata:r_,metadataGlobs:i_,ignore:{type:"array",items:{type:"string"}},theme:_r,reunite:YB,logo:AA,navbar:PA,products:EA,footer:IA,sidebar:TA,scripts:$A,links:jA,feedback:jd,search:RA,colorMode:DA,navigation:QA,codeSnippet:BA,markdown:_A,openapi:vf,graphql:Of,analytics:NA,userMenu:FA,versionPicker:ZA,breadcrumbs:WA,catalog:VA,scorecard:zA},default:{redirects:{}},additionalProperties:!0},m_=Object.assign(Object.assign({},Jg(e0,"default")),{additionalProperties:!1});Object.assign(Object.assign({$id:"root-redocly-config"},e0),{properties:Object.assign(Object.assign({plugins:{type:"array",items:{type:"string"}}},e0.properties),{env:{type:"object",additionalProperties:m_}}),default:{},additionalProperties:!1});const my={type:"object",properties:{logo:_r.properties.logo,navbar:_r.properties.navbar,footer:_r.properties.footer,sidebar:_r.properties.sidebar,search:_r.properties.search,codeSnippet:_r.properties.codeSnippet,breadcrumbs:_r.properties.breadcrumbs,openapi:_r.properties.openapi,feedback:_r.properties.feedback,analytics:{type:"object",properties:{ga:MA}}},additionalProperties:!0,default:{}};Object.assign(Object.assign({},my.properties),{apis:{type:"object",additionalProperties:XA},theme:my});var GA={exports:{}};/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
204
+ `;function an(){const t=je(),{environments:e,selectedEnvironmentId:n}=t,r=j.useMemo(()=>n.get(),[n]);return j.useMemo(()=>e.find(o=>o.get().id===r)||e[0],[e,r])}var R3=function(){var t=document.getSelection();if(!t.rangeCount)return function(){};for(var e=document.activeElement,n=[],r=0;r<t.rangeCount;r++)n.push(t.getRangeAt(r));switch(e.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":e.blur();break;default:e=null;break}return t.removeAllRanges(),function(){t.type==="Caret"&&t.removeAllRanges(),t.rangeCount||n.forEach(function(i){t.addRange(i)}),e&&e.focus()}},D3=R3,sy={"text/plain":"Text","text/html":"Url",default:"Text"},Q3="Copy to clipboard: #{key}, Enter";function B3(t){var e=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return t.replace(/#{\s*key\s*}/g,e)}function _3(t,e){var n,r,i,o,s,a,l=!1;e||(e={}),n=e.debug||!1;try{i=D3(),o=document.createRange(),s=document.getSelection(),a=document.createElement("span"),a.textContent=t,a.ariaHidden="true",a.style.all="unset",a.style.position="fixed",a.style.top=0,a.style.clip="rect(0, 0, 0, 0)",a.style.whiteSpace="pre",a.style.webkitUserSelect="text",a.style.MozUserSelect="text",a.style.msUserSelect="text",a.style.userSelect="text",a.addEventListener("copy",function(u){if(u.stopPropagation(),e.format)if(u.preventDefault(),typeof u.clipboardData>"u"){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var f=sy[e.format]||sy.default;window.clipboardData.setData(f,t)}else u.clipboardData.clearData(),u.clipboardData.setData(e.format,t);e.onCopy&&(u.preventDefault(),e.onCopy(u.clipboardData))}),document.body.appendChild(a),o.selectNodeContents(a),s.addRange(o);var c=document.execCommand("copy");if(!c)throw new Error("copy command was unsuccessful");l=!0}catch(u){n&&console.error("unable to copy using execCommand: ",u),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(e.format||"text",t),e.onCopy&&e.onCopy(window.clipboardData),l=!0}catch(f){n&&console.error("unable to copy using clipboardData: ",f),n&&console.error("falling back to prompt"),r=B3("message"in e?e.message:Q3),window.prompt(r,t)}}finally{s&&(typeof s.removeRange=="function"?s.removeRange(o):s.removeAllRanges()),a&&document.body.removeChild(a),i()}return l}var M3=_3;const N3=wa(M3);class F3{static copyCustom(e){return N3(e)}static selectElement(e){if(!e)return;let n,r;document.body.createTextRange?(n=document.body.createTextRange(),n.moveToElementText(e),n.select()):document.createRange&&window.getSelection&&(r=window.getSelection(),n=document.createRange(),n.selectNodeContents(e),r==null||r.removeAllRanges(),r==null||r.addRange(n))}}const CA={hide:{type:"boolean",default:!1},component:{type:"string",enum:["radio","checkbox"],default:"checkbox"},label:{type:"string"},items:{type:"array",items:{type:"string"}}},Ya={type:"object",properties:CA,additionalProperties:!1},Z3={type:"object",properties:{enabled:{type:"boolean",default:!1},label:{type:"string"},placeholder:{type:"string"}},additionalProperties:!1},jd={type:"object",properties:{hide:{type:"boolean",default:!1},type:{type:"string",enum:["rating","sentiment","comment","reasons","mood","scale"],default:"sentiment"},settings:{type:"object",properties:{label:{type:"string"},submitText:{type:"string"},buttonText:{type:"string"},component:{type:"string",enum:["radio","checkbox"],default:"checkbox"},items:{type:"array",items:{type:"string"},minItems:1},leftScaleLabel:{type:"string"},rightScaleLabel:{type:"string"},reasons:{type:"object",properties:Object.assign(Object.assign({},CA),{like:Ya,dislike:Ya,satisfied:Ya,neutral:Ya,dissatisfied:Ya}),additionalProperties:!1},comment:{type:"object",properties:{hide:{type:"boolean",default:!1},label:{type:"string"},likeLabel:{type:"string"},dislikeLabel:{type:"string"},satisfiedLabel:{type:"string"},neutralLabel:{type:"string"},dissatisfiedLabel:{type:"string"}},additionalProperties:!1},anonymousUserEmail:Z3},additionalProperties:!1}},additionalProperties:!1},xs={type:"object",properties:{includeByName:{type:"array",items:{type:"string"}},excludeByName:{type:"array",items:{type:"string"}}},additionalProperties:!1},W3={type:"object",properties:{name:{type:"string"},items:xs,queries:xs,mutations:xs,subscriptions:xs,types:xs,directives:xs},required:["name"],additionalProperties:!1},V3={type:"object",properties:{requireExactGroups:{type:"boolean"},groups:{type:"array",items:W3},otherItemsGroupName:{type:"string"}},required:["requireExactGroups","groups","otherItemsGroupName"],additionalProperties:!1},Of={type:"object",properties:{hidePaginationButtons:{type:"boolean"},menu:{type:"object",properties:Object.assign({},V3.properties),additionalProperties:!1},sidebar:{type:"object",properties:{hide:{type:"boolean"}}},apiLogo:{type:"object",properties:{imageUrl:{type:"string"},href:{type:"string"},altText:{type:"string"},backgroundColor:{type:"string"}}},jsonSamplesDepth:{type:"number"},samplesMaxInlineArgs:{type:"number"},licenseKey:{type:"string"},fieldExpandLevel:{type:"number"},baseUrlPath:{type:"string"},feedback:jd},additionalProperties:!1},z3={type:"object",properties:{languages:{type:"array",items:{type:"object",properties:{lang:{type:"string",enum:["curl","JavaScript","Node.js","Python","Java8+Apache","Java","C#","C#+Newtonsoft","PHP","Go","Ruby","R","Payload"]},label:{type:"string"},options:{type:"object",properties:{indent:{type:"string"},withImports:{type:"boolean"},withComments:{type:"boolean"},binary:{type:"boolean"},credentials:{type:"string",enum:["omit","same-origin","include"]}},additionalProperties:!1}},required:["lang"],additionalProperties:!1}},skipOptionalParameters:{type:"boolean"},withOAuth2Call:{type:"boolean"}},required:["languages"],additionalProperties:!1},L3={type:"array",items:{type:"object",properties:{title:{type:"string"},url:{type:"string"}},required:["url"],additionalProperties:!1}},ay={type:"object",properties:{licenseKey:{type:"string"},hideLoading:{type:"boolean"},disableRouter:{type:"boolean"},hideSidebar:{type:"boolean"},feedback:jd,hideReplay:{type:"boolean"},oAuth2RedirectURI:{type:"string",nullable:!0},corsProxyUrl:{type:"string"},sortRequiredPropsFirst:{type:"boolean"},sanitize:{type:"boolean"},hideDownloadButtons:{type:"boolean"},downloadUrls:L3,onlyRequiredInSamples:{type:"boolean"},generatedSamplesMaxDepth:{oneOf:[{type:"number"},{type:"string"}]},showExtensions:{oneOf:[{type:"boolean"},{type:"string"},{type:"array",items:{type:"string"}}]},hideSchemaTitles:{type:"boolean"},jsonSamplesExpandLevel:{oneOf:[{type:"number"},{type:"string"}]},schemasExpansionLevel:{oneOf:[{type:"number"},{type:"string"}]},mockServer:{type:"object",properties:{url:{type:"string"},position:{type:"string",enum:["first","last","replace","off"]},description:{type:"string"}}},maxDisplayedEnumValues:{type:"number"},schemaDefinitionsTagName:{type:"string"},layout:{type:"string",enum:["stacked","three-panel"]},hideInfoMetadata:{type:"boolean"},events:{type:"object"},skipBundle:{type:"boolean"},routingBasePath:{type:"string"},codeSamples:z3,ignoreNamedSchemas:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},hidePropertiesPrefix:{type:"boolean"},excludeFromSearch:{type:"boolean"}},additionalProperties:!1},X3={type:"object",properties:{label:{type:"string"},lang:{enum:["curl","C#","Go","Java","Java8+Apache","JavaScript","Node.js","PHP","Python","R","Ruby"]}},required:["lang"]},G3={type:"object",properties:{enum:{type:"string"},enumSingleValue:{type:"string"},enumArray:{type:"string"},default:{type:"string"},deprecated:{type:"string"},example:{type:"string"},examples:{type:"string"},nullable:{type:"string"},recursive:{type:"string"},arrayOf:{type:"string"},webhook:{type:"string"},authorizations:{type:"string"},tryItAuthBasicUsername:{type:"string"},tryItAuthBasicPassword:{type:"string"}}},ly={type:"object",properties:{label:{type:"string"},link:{type:"string"},target:{type:"string"}},required:["label","link"]},Y3={type:"object",properties:{beforeInfo:{type:"array",items:ly},end:{type:"array",items:ly}}},Vo={type:"object",properties:{main:{type:"string"},light:{type:"string"},dark:{type:"string"},contrastText:{type:"string"}}},Yc={type:"object",properties:{backgroundColor:{type:"string"},borderColor:{type:"string"},color:{type:"string"},tabTextColor:{type:"string"}}},q3={type:"object",properties:Rd(Vo.properties,["light","dark"])},U3={type:"object",properties:{basic:{type:"string"},delete:{type:"string"},get:{type:"string"},head:{type:"string"},link:{type:"string"},options:{type:"string"},patch:{type:"string"},post:{type:"string"},put:{type:"string"}}},H3={type:"object",properties:{error:Yc,info:Yc,redirect:Yc,success:Yc}},J3={type:"object",properties:Ea(Vo.properties,["dark"])},K3={type:"object",properties:{primary:{type:"string"},secondary:{type:"string"},light:{type:"string"}}},eB={type:"object",properties:{accent:Vo,border:q3,error:Vo,http:U3,primary:Vo,responses:H3,secondary:J3,success:Vo,text:K3,tonalOffset:{type:"number"},warning:Vo}},qc={type:"object",properties:{fontSize:{type:"string"},padding:{type:"string"},minWidth:{type:"string"}}},tB={type:"object",properties:{small:qc,medium:qc,large:qc,xlarge:qc}},yi={type:"object",properties:{fontFamily:{type:"string"},fontSize:{type:"string"},fontWeight:{type:"string"},lineHeight:{type:"string"}}},nB={type:"object",properties:Object.assign(Object.assign({},Ea(yi.properties,["fontSize","lineHeight"])),{borderRadius:{type:"string"},hoverStyle:{type:"string"},boxShadow:{type:"string"},hoverBoxShadow:{type:"string"},sizes:tB})},cy={type:"object",properties:Rd(yi.properties,["fontSize","lineHeight"])},rB={type:"object",properties:{medium:cy,small:cy}},iB={type:"object",properties:Object.assign(Object.assign({},Ea(yi.properties,["fontSize","lineHeight"])),{borderRadius:{type:"string"},color:{type:"string"},sizes:rB})},oB={type:"object",properties:{top:{type:"string"},width:{type:"string"},height:{type:"string"}}},sB={type:"object",properties:{borderRadius:{type:"string"},backgroundColor:{type:"string"}}},uy={type:"object",properties:{fullWidth:{type:"boolean"}}},aB={type:"object",properties:{buttons:nB,httpBadges:iB,layoutControls:oB,panels:sB,tryItButton:uy,tryItSendButton:uy}},xf={type:"object",properties:{small:{type:"string"},medium:{type:"string"},large:{type:"string"}}},lB={type:"object",properties:{maxWidth:xf}},cB={type:"object",properties:{maxWidth:xf,middlePanelMaxWidth:xf}},uB={type:"object",properties:{showDarkRightPanel:{type:"boolean"},stacked:lB,"three-panel":cB}},fy={type:"object",properties:{backgroundColor:{type:"string"},border:{type:"string"}}},fB={type:"object",properties:{breakFieldNames:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},constraints:fy,defaultDetailsWidth:{type:"string"},examples:fy,labelsTextSize:{type:"string"},linesColor:{type:"string"},nestedBackground:{type:"string"},nestingSpacing:{type:"string"},requireLabelColor:{type:"string"},typeNameColor:{type:"string"},typeTitleColor:{type:"string"}}},kA={type:"object",properties:{subItemsColor:{type:"string"},textTransform:{type:"string"},fontWeight:{type:"string"}}},dB={type:"object",properties:Rd(kA.properties,["textTransform"])},hB={type:"object",properties:{unit:{type:"number"},paddingHorizontal:{type:"string"},paddingVertical:{type:"string"},offsetTop:{type:"string"},offsetLeft:{type:"string"},offsetNesting:{type:"string"}}},pB={type:"object",properties:Object.assign(Object.assign({},Ea(yi.properties,["fontWeight","lineHeight"])),{activeBgColor:{type:"string"},activeTextColor:{type:"string"},backgroundColor:{type:"string"},borderRadius:{type:"string"},breakPath:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},groupItems:kA,level1items:dB,rightLineColor:{type:"string"},separatorLabelColor:{type:"string"},showAtBreakpoint:{type:"string"},spacing:hB,textColor:{type:"string"},width:{type:"string"}})},Uc={type:"object",properties:Object.assign(Object.assign({},yi.properties),{color:{type:"string"},transform:{type:"string"}})},gB={type:"object",properties:Object.assign(Object.assign({},yi.properties),{backgroundColor:{type:"string"},color:{type:"string"},wordBreak:{type:"string",enum:["break-all","break-word","keep-all","normal","revert","unset","inherit","initial"]},wrap:{type:"boolean"}})},mB={type:"object",properties:Ea(yi.properties,["fontSize"])},OB={type:"object",properties:{color:{type:"string"},hover:{type:"string"},textDecoration:{type:"string"},hoverTextDecoration:{type:"string"},visited:{type:"string"}}},xB={type:"object",properties:Object.assign(Object.assign({code:gB,fieldName:yi},Rd(yi.properties,["fontSize","fontFamily"])),{fontWeightBold:{type:"string"},fontWeightLight:{type:"string"},fontWeightRegular:{type:"string"},heading1:Uc,heading2:Uc,heading3:Uc,headings:mB,lineHeight:{type:"string"},links:OB,optimizeSpeed:{type:"boolean"},rightPanelHeading:Uc,smoothing:{type:"string",enum:["auto","none","antialiased","subpixel-antialiased","grayscale"]}})},vB={type:"object",properties:Object.assign({color:{type:"string"}},Ea(yi.properties,["fontWeight"]))},yB={type:"object",properties:{backgroundColor:{type:"string"},borderRadius:{type:"string"},tokens:vB}},bB={type:"object",properties:{gutter:{type:"string"},maxHeight:{type:"string"},maxWidth:{type:"string"}}},SB={type:"object",properties:{backgroundColor:{type:"string"},color:{type:"string"}}},dy={type:"object",properties:{custom:{type:"string"}}},wB={type:"object",properties:{DownloadButton:dy,NextSectionButton:dy}},CB={type:"object",properties:{backgroundColor:{type:"string"},panelBackgroundColor:{type:"string"},panelControlsBackgroundColor:{type:"string"},showAtBreakpoint:{type:"string"},textColor:{type:"string"},width:{type:"string"}}},kB={type:"object",properties:{borderRadius:{type:"string"}}},AB={type:"object",properties:{sectionHorizontal:{type:"number"},sectionVertical:{type:"number"},unit:{type:"number"}}},PB={type:"object",properties:{breakpoints:xf,codeBlock:yB,colors:eB,components:aB,layout:uB,logo:bB,fab:SB,overrides:wB,rightPanel:CB,schema:fB,shape:kB,sidebar:pB,spacing:AB,typography:xB,links:{properties:{color:{type:"string"}}},codeSample:{properties:{backgroundColor:{type:"string"}}}}},EB={type:"object",properties:{skipOptionalParameters:{type:"boolean"},languages:{type:"array",items:X3}},required:["languages"]},IB={type:"object",properties:{theme:PB,ctrlFHijack:{type:"boolean"},defaultSampleLanguage:{type:"string"},disableDeepLinks:{type:"boolean"},disableSearch:{type:"boolean"},disableSidebar:{type:"boolean"},downloadDefinitionUrl:{type:"string"},expandDefaultServerVariables:{type:"boolean"},enumSkipQuotes:{type:"boolean"},expandDefaultRequest:{type:"boolean"},expandDefaultResponse:{type:"boolean"},expandResponses:{type:"string"},expandSingleSchemaField:{type:"boolean"},generateCodeSamples:EB,generatedPayloadSamplesMaxDepth:{type:"number"},hideDownloadButton:{type:"boolean"},hideHostname:{type:"boolean"},hideInfoSection:{type:"boolean"},hideLogo:{type:"boolean"},hideRequestPayloadSample:{type:"boolean"},hideRightPanel:{type:"boolean"},hideSchemaPattern:{type:"boolean"},hideSingleRequestSampleTab:{type:"boolean"},hideSecuritySection:{type:"boolean"},hideTryItPanel:{type:"boolean"},hideFab:{type:"boolean"},hideOneOfDescription:{type:"boolean"},htmlTemplate:{type:"string"},jsonSampleExpandLevel:{oneOf:[{type:"number",minimum:1},{type:"string"}]},labels:G3,menuToggle:{type:"boolean"},nativeScrollbars:{type:"boolean"},noAutoAuth:{type:"boolean"},onDeepLinkClick:{type:"object"},pagination:{enum:["none","section","item"]},pathInMiddlePanel:{type:"boolean"},payloadSampleIdx:{type:"number",minimum:0},requestInterceptor:{type:"object"},requiredPropsFirst:{type:"boolean"},routingStrategy:{type:"string"},samplesTabsMaxCount:{type:"number"},schemaExpansionLevel:{oneOf:[{type:"number",minimum:0},{type:"string"}]},minCharacterLengthToInitSearch:{type:"number",minimum:1},maxResponseHeadersToShowInTryIt:{type:"number",minimum:0},scrollYOffset:{oneOf:[{type:"number"},{type:"string"}]},searchAutoExpand:{type:"boolean"},searchFieldLevelBoost:{type:"number",minimum:0},searchMaxDepth:{type:"number",minimum:1},searchMode:{type:"string",enum:["default","path-only"]},searchOperationTitleBoost:{type:"number"},searchTagTitleBoost:{type:"number"},sendXUserAgentInTryIt:{type:"boolean"},showChangeLayoutButton:{type:"boolean"},showConsole:{type:"boolean"},showNextButton:{type:"boolean"},showRightPanelToggle:{type:"boolean"},showSecuritySchemeType:{type:"boolean"},showWebhookVerb:{type:"boolean"},showObjectSchemaExamples:{type:"boolean"},disableTryItRequestUrlEncoding:{type:"boolean"},sidebarLinks:Y3,sideNavStyle:{type:"string",enum:["summary-only","path-first","id-only"]},simpleOneOfTypeLabel:{type:"boolean"},sortEnumValuesAlphabetically:{type:"boolean"},sortOperationsAlphabetically:{type:"boolean"},sortPropsAlphabetically:{type:"boolean"},sortTagsAlphabetically:{type:"boolean"},suppressWarnings:{type:"boolean"},unstable_externalDescription:{type:"boolean"},unstable_ignoreMimeParameters:{type:"boolean"},untrustedDefinition:{type:"boolean"},showAccessMode:{type:"boolean"},preserveOriginalExtensionsName:{type:"boolean"},markdownHeadingsAnchorLevel:{type:"number"}},additionalProperties:!1};function Rd(t,e){return Object.fromEntries(e.filter(n=>n in t).map(n=>[n,t[n]]))}function Ea(t,e){return Object.fromEntries(Object.entries(t).filter(([n])=>!e.includes(n)))}const jn={type:"object",properties:{hide:{type:"boolean"}},additionalProperties:!1},hy={type:"object",properties:{src:{type:"string"},async:{type:"boolean"},crossorigin:{type:"string"},defer:{type:"boolean"},fetchpriority:{type:"string"},integrity:{type:"string"},module:{type:"boolean"},nomodule:{type:"boolean"},nonce:{type:"string"},referrerpolicy:{type:"string"},type:{type:"string"}},required:["src"],additionalProperties:!0},Wh={type:"object",properties:{page:{type:"string"},directory:{type:"string"},disconnect:{type:"boolean",default:!1},group:{type:"string"},label:{type:"string"},href:{type:"string"},external:{type:"boolean"},labelTranslationKey:{type:"string"},groupTranslationKey:{type:"string"},icon:{oneOf:[{type:"string"},{type:"object",properties:{srcSet:{type:"string"}},required:["srcSet"]}]},separator:{type:"string"},separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"],default:"top"},version:{type:"string"},menuStyle:{type:"string",enum:["drilldown"]},expanded:{type:"string",const:"always"},selectFirstItemOnExpand:{type:"boolean"},flatten:{type:"boolean"},linkedSidebars:{type:"array",items:{type:"string"}},items:{type:"array",items:{type:"object",additionalProperties:!0}}}},PO={type:"array",items:Object.assign(Object.assign({},Wh),{properties:Object.assign(Object.assign({},Wh.properties),{items:{type:"array",items:Wh}})})},TB={type:"object",properties:{name:{type:"string"},icon:{type:"string"},folder:{type:"string"}},additionalProperties:!1,required:["name","folder"]},$B={type:"object",properties:{hide:{type:"boolean",default:!1},prompt:{type:"string"}},additionalProperties:!1},jB={type:"array",items:{type:"object",required:["name","field","type"],properties:{name:{type:"string"},field:{type:"string"},type:{type:"string",enum:["multi-select","select","tags"]},isTop:{type:"boolean"}},additionalProperties:!1}},RB={type:"object",properties:{page:{type:"string"},label:{type:"string"},labelTranslationKey:{type:"string"}},required:["page"]},AA={type:"object",properties:{image:{type:"string"},srcSet:{type:"string"},altText:{type:"string"},link:{type:"string"},favicon:{type:"string"}},additionalProperties:!1},PA={type:"object",properties:Object.assign({items:PO},jn.properties),additionalProperties:!1},EA={type:"object",additionalProperties:TB},IA={type:"object",properties:Object.assign({items:PO,copyrightText:{type:"string"},logo:jn},jn.properties),additionalProperties:!1},TA={type:"object",properties:Object.assign({separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"],default:"bottom"}},jn.properties),additionalProperties:!1},$A={type:"object",properties:{head:{type:"array",items:hy},body:{type:"array",items:hy}},additionalProperties:!1},jA={type:"array",items:{type:"object",properties:{href:{type:"string"},as:{type:"string"},crossorigin:{type:"string"},fetchpriority:{type:"string"},hreflang:{type:"string"},imagesizes:{type:"string"},imagesrcset:{type:"string"},integrity:{type:"string"},media:{type:"string"},prefetch:{type:"string"},referrerpolicy:{type:"string"},rel:{type:"string"},sizes:{type:"string"},title:{type:"string"},type:{type:"string"}},required:["href"],additionalProperties:!0}},RA={type:"object",properties:Object.assign({engine:{type:"string",enum:["flexsearch","typesense"],default:"flexsearch"},ai:$B,facets:jB,placement:{type:"string",default:"navbar"},shortcuts:{type:"array",items:{type:"string"},default:["/"]},suggestedPages:{type:"array",items:RB}},jn.properties),additionalProperties:!1},DA={type:"object",properties:Object.assign({ignoreDetection:{type:"boolean"},modes:{type:"array",items:{type:"string"},default:["light","dark"]}},jn.properties),additionalProperties:!1},QA={type:"object",properties:{nextButton:{type:"object",properties:Object.assign({text:{type:"string",default:"Next page"}},jn.properties),additionalProperties:!1,default:{}},previousButton:{type:"object",properties:Object.assign({text:{type:"string",default:"Previous page"}},jn.properties),additionalProperties:!1,default:{}}},additionalProperties:!1},BA={type:"object",properties:{elementFormat:{type:"string",default:"icon"},copy:{type:"object",properties:Object.assign({},jn.properties),additionalProperties:!1,default:{hide:!1}},report:{type:"object",properties:Object.assign({tooltipText:{type:"string"},buttonText:{type:"string"},label:{type:"string"}},jn.properties),additionalProperties:!1,default:{hide:!1}},expand:{type:"object",properties:Object.assign({},jn.properties),additionalProperties:!1,default:{hide:!1}},collapse:{type:"object",properties:Object.assign({},jn.properties),additionalProperties:!1,default:{hide:!1}}},additionalProperties:!1},_A={type:"object",properties:{frontMatterKeysToResolve:{type:"array",items:{type:"string"},default:["image","links"]},partialsFolders:{type:"array",items:{type:"string"},default:["_partials"]},lastUpdatedBlock:{type:"object",properties:Object.assign({format:{type:"string",enum:["timeago","iso","long","short"],default:"timeago"},locale:{type:"string"}},jn.properties),additionalProperties:!1,default:{}},toc:{type:"object",properties:Object.assign({header:{type:"string",default:"On this page"},depth:{type:"integer",default:3,minimum:1}},jn.properties),additionalProperties:!1,default:{}},editPage:{type:"object",properties:Object.assign({baseUrl:{type:"string"}},jn.properties),additionalProperties:!1,default:{}}},additionalProperties:!1,default:{}},vf=Object.assign(Object.assign({},ay),{properties:Object.assign(Object.assign({},ay.properties),IB.properties)}),DB={type:"object",properties:{includeInDevelopment:{type:"boolean"},scriptUrl:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["scriptUrl"]},QB={type:"object",properties:{includeInDevelopment:{type:"boolean"},apiKey:{type:"string"},head:{type:"boolean"},respectDNT:{type:"boolean"},exclude:{type:"array",items:{type:"string"}},outboundClickEventName:{type:"string"},pageViewEventName:{type:"string"},amplitudeConfig:{type:"object",additionalProperties:!0}},additionalProperties:!1,required:["apiKey"]},BB={type:"object",properties:{includeInDevelopment:{type:"boolean"},orgId:{type:"string"}},additionalProperties:!1,required:["orgId"]},_B={type:"object",properties:{includeInDevelopment:{type:"boolean"},appId:{type:"string"}},additionalProperties:!1,required:["appId"]},MB={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},dataPlaneUrl:{type:"string"},controlPlaneUrl:{type:"string"},sdkUrl:{type:"string"},loadOptions:{type:"object",additionalProperties:!0}},additionalProperties:!1,required:["writeKey"]},NB={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},includeTitleInPageCall:{type:"boolean"},host:{type:"string"}},additionalProperties:!1,required:["writeKey"]},FB={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},gtmAuth:{type:"string"},gtmPreview:{type:"string"},defaultDataLayer:{},dataLayerName:{type:"string"},enableWebVitalsTracking:{type:"boolean"},selfHostedOrigin:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["trackingId"]},MA={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},conversionId:{type:"string"},floodlightId:{type:"string"},optimizeId:{type:"string"},exclude:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["trackingId"]},ZB={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},conversionId:{type:"string"},floodlightId:{type:"string"},head:{type:"boolean"},respectDNT:{type:"boolean"},exclude:{type:"array",items:{type:"string"}},optimizeId:{type:"string"},anonymizeIp:{type:"boolean"},cookieExpires:{type:"number"},trackers:{type:"object",additionalProperties:MA}},additionalProperties:!1,required:["trackingId"]},NA={type:"object",properties:{adobe:DB,amplitude:QB,fullstory:BB,heap:_B,rudderstack:MB,segment:NB,gtm:FB,ga:ZB}},FA={type:"object",properties:Object.assign({items:{type:"array",items:{type:"object",properties:{label:{type:"string"},external:{type:"boolean"},link:{type:"string"},separatorLine:{type:"boolean"}},additionalProperties:!0},default:[]},hideLoginButton:{type:"boolean"}},jn.properties),additionalProperties:!1},ZA={type:"object",properties:{hide:{type:"boolean"},showForUnversioned:{type:"boolean"}}},WA={type:"object",properties:{hide:{type:"boolean"},prefixItems:{type:"array",items:{type:"object",properties:{label:{type:"string"},labelTranslationKey:{type:"string"},page:{type:"string"}},additionalProperties:!1,default:{}}}},additionalProperties:!1},WB={type:"object",additionalProperties:!1,required:["title","property"],properties:{type:{type:"string",enum:["select","checkboxes","date-range"],default:"checkboxes"},title:{type:"string"},titleTranslationKey:{type:"string"},property:{type:"string"},parentFilter:{type:"string"},valuesMapping:{type:"object",additionalProperties:{type:"string"}},missingCategoryName:{type:"string"},missingCategoryNameTranslationKey:{type:"string"},options:{type:"array",items:{type:"string"}}}},VB={type:"object",additionalProperties:!0,required:["slug","items"],properties:{slug:{type:"string"},filters:{type:"array",items:WB},groupByFirstFilter:{type:"boolean"},filterValuesCasing:{type:"string",enum:["sentence","original","lowercase","uppercase"]},items:PO,requiredPermission:{type:"string"},separateVersions:{type:"boolean"},title:{type:"string"},titleTranslationKey:{type:"string"},description:{type:"string"},descriptionTranslationKey:{type:"string"}}},VA={type:"object",patternProperties:{".*":VB}},zA={type:"object",additionalProperties:!0,required:[],properties:{ignoreNonCompliant:{type:"boolean",default:!1},teamMetadataProperty:{type:"object",properties:{property:{type:"string"},label:{type:"string"},default:{type:"string"}}},levels:{type:"array",items:{type:"object",required:["name"],properties:{name:{type:"string"},color:{type:"string"},extends:{type:"array",items:{type:"string"}},rules:{type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object"}]}}},additionalProperties:!1}},targets:{type:"array",items:{type:"object",required:["where"],properties:{minimumLevel:{type:"string"},rules:{type:"object",additionalProperties:!0},where:{type:"object",required:["metadata"],properties:{metadata:{type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1}},additionalProperties:!1}},ignore:{type:"array",items:{type:"string"}}}},_r={type:"object",properties:{imports:{type:"array",items:{type:"string"}},logo:AA,navbar:PA,products:EA,footer:IA,sidebar:TA,scripts:$A,links:jA,feedback:jd,search:RA,colorMode:DA,navigation:QA,codeSnippet:BA,markdown:_A,openapi:vf,graphql:Of,analytics:NA,userMenu:FA,versionPicker:ZA,breadcrumbs:WA,catalog:VA,scorecard:zA},additionalProperties:!0};Object.assign(Object.assign({},_r),{additionalProperties:!1});const zB="https://redocly.com/sso/teams";var yf;(function(t){t.OIDC="OIDC",t.SAML2="SAML2"})(yf||(yf={}));var bf;(function(t){t.SERVICE_ACCOUNT="SERVICE_ACCOUNT",t.OAUTH2="OAUTH2"})(bf||(bf={}));var py;(function(t){t.STACKED="stacked",t.THREE_PANEL="three-panel"})(py||(py={}));function Jg(t,e){return Object.fromEntries(Object.entries(t).map(([n,r])=>{if(n!==e)return typeof r!="object"||!r?[n,r]:Array.isArray(r)?[n,r.map(i=>typeof i=="object"?Jg(i,e):i)]:[n,Jg(r,e)]}).filter(Boolean))}const LB={type:"object",additionalProperties:{type:"string"}},XB={type:"object",additionalProperties:!1,patternProperties:{"^[a-zA-Z0-9_-]+$":{type:"string",pattern:"^https?://[^\\s/$.?#].[^\\s]*$"}}},GB={type:"object",additionalProperties:!1,properties:{event:{type:"string",enum:["schedule"]},interval:{type:"string",pattern:"^[1-9]\\d*[mhdw]$"}},required:["event"]},YB={type:"object",properties:{ignoreLint:{oneOf:[{type:"boolean",default:!1},{type:"object",additionalProperties:{type:"boolean"}}]},ignoreLinkChecker:{type:"boolean"},ignoreMarkdocErrors:{type:"boolean"},jobs:{type:"array",items:{type:"object",properties:{path:{type:"string",pattern:"^(?!\\.\\./)(/[a-zA-Z0-9_\\-\\./]+|./[a-zA-Z0-9_\\-\\./]+|[a-zA-Z0-9_\\-\\./]+)$"},agent:{type:"string",enum:["spot"]},trigger:GB,inputs:LB,servers:XB},required:["path","trigger","agent"],additionalProperties:!1}}},additionalProperties:!1},qB={type:"object",properties:{end_session_endpoint:{type:"string"},token_endpoint:{type:"string"},authorization_endpoint:{type:"string"},jwks_uri:{type:"string"}},required:["token_endpoint","authorization_endpoint"],additionalProperties:!0},UB={type:"object",properties:{type:{type:"string",const:yf.OIDC},title:{type:"string"},pkce:{type:"boolean",default:!1},configurationUrl:{type:"string",minLength:1},configuration:qB,clientId:{type:"string",minLength:1},clientSecret:{type:"string",minLength:0},teamsClaimName:{type:"string"},teamsClaimMap:{type:"object",additionalProperties:{type:"string"}},defaultTeams:{type:"array",items:{type:"string"}},scopes:{type:"array",items:{type:"string"}},tokenExpirationTime:{type:"number"},authorizationRequestCustomParams:{type:"object",additionalProperties:{type:"string"}},tokenRequestCustomParams:{type:"object",additionalProperties:{type:"string"}},audience:{type:"array",items:{type:"string"}}},required:["type","clientId"],oneOf:[{required:["configurationUrl"]},{required:["configuration"]}],additionalProperties:!1},HB={type:"object",properties:{type:{type:"string",const:yf.SAML2},title:{type:"string"},issuerId:{type:"string"},entityId:{type:"string"},ssoUrl:{type:"string"},x509PublicCert:{type:"string"},teamsAttributeName:{type:"string",default:zB},teamsAttributeMap:{type:"object",additionalProperties:{type:"string"}},defaultTeams:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["type","issuerId","ssoUrl","x509PublicCert"]},JB={oneOf:[UB,HB],discriminator:{propertyName:"type"}},KB={type:"object",additionalProperties:JB},e_={oneOf:[{type:"array",items:{type:"string",enum:["REDOCLY","CORPORATE","GUEST"]},uniqueItems:!0},{type:"string",enum:["REDOCLY","CORPORATE","GUEST"]}]},t_={type:"object",properties:{to:{type:"string"},type:{type:"number",default:301}},additionalProperties:!1},n_={type:"object",additionalProperties:t_,default:{}},LA={type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object"}]}},XA={type:"object",properties:{root:{type:"string"},output:{type:"string",pattern:"(.ya?ml|.json)$"},rbac:{type:"object",additionalProperties:!0},openapi:vf,graphql:Of,theme:{type:"object",properties:{openapi:vf,graphql:Of},additionalProperties:!1},title:{type:"string"},metadata:{type:"object",additionalProperties:!0},rules:LA,decorators:{type:"object",additionalProperties:!0},preprocessors:{type:"object",additionalProperties:!0}},required:["root"]},r_={type:"object",additionalProperties:!0},i_={type:"object",additionalProperties:{type:"object",additionalProperties:!0}},o_={type:"object",properties:{title:{type:"string"},description:{type:"string"},siteUrl:{type:"string"},image:{type:"string"},keywords:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},lang:{type:"string"},jsonLd:{type:"object"},meta:{type:"array",items:{type:"object",properties:{name:{type:"string"},content:{type:"string"}},required:["name","content"],additionalProperties:!1}}},additionalProperties:!1},_o={type:"object",additionalProperties:{type:"string"}},s_={type:"object",properties:{teamNamePatterns:{type:"array",items:{type:"string"}},teamFolders:{type:"array",items:{type:"string"}},teamFoldersBaseRoles:_o,cms:_o,reunite:_o,features:{type:"object",properties:{aiSearch:_o},additionalProperties:!1},content:{type:"object",properties:{"**":_o},additionalProperties:_o}},additionalProperties:_o},a_={type:"object",properties:{static:{type:"string"}},additionalProperties:!1,required:["static"]},l_={type:"object",properties:{idp:{type:"string"}},additionalProperties:!1,required:["idp"]},c_={type:"object",properties:{type:{type:"string",const:"GRAVITEE"},apiBaseUrl:{type:"string"},env:{type:"string"},allowApiProductsOutsideCatalog:{type:"boolean",default:!1},stage:{type:"string",default:"non-production"},auth:{oneOf:[a_,l_]}},additionalProperties:!1,required:["type","apiBaseUrl"]},u_={type:"object",properties:{type:{type:"string",const:bf.OAUTH2},tokenEndpoint:{type:"string"},clientId:{type:"string"},clientSecret:{type:"string"}},additionalProperties:!1,required:["type","tokenEndpoint","clientId","clientSecret"]},f_={type:"object",properties:{type:{type:"string",const:bf.SERVICE_ACCOUNT},serviceAccountEmail:{type:"string"},serviceAccountPrivateKey:{type:"string"}},additionalProperties:!1,required:["type","serviceAccountEmail","serviceAccountPrivateKey"]},Kg={type:"object",properties:{type:{type:"string",const:"APIGEE_X"},apiUrl:{type:"string"},stage:{type:"string",default:"non-production"},organizationName:{type:"string"},ignoreApiProducts:{type:"array",items:{type:"string"}},allowApiProductsOutsideCatalog:{type:"boolean",default:!1},auth:{type:"object",oneOf:[u_,f_],discriminator:{propertyName:"type"}}},additionalProperties:!1,required:["type","organizationName","auth"]},d_=Object.assign(Object.assign({},Kg),{properties:Object.assign(Object.assign({},Kg.properties),{type:{type:"string",const:"APIGEE_EDGE"}})}),h_={type:"object",oneOf:[Kg,d_,c_],discriminator:{propertyName:"type"}},p_={type:"object",required:["adapters"],additionalProperties:!1,properties:{adapters:{type:"array",items:h_}}},gy={type:"object",properties:{defaultLocale:{type:"string"},locales:{type:"array",items:{type:"object",properties:{code:{type:"string"},name:{type:"string"}},required:["code"]}}},additionalProperties:!1,required:["defaultLocale"]},g_={type:"object",properties:{name:{type:"string"},value:{type:"string"}},additionalProperties:!1,required:["name","value"]},e0={type:"object",properties:{imports:{type:"array",items:{type:"string"}},licenseKey:{type:"string"},redirects:n_,seo:o_,rbac:s_,requiresLogin:{type:"boolean"},responseHeaders:{type:"object",additionalProperties:{type:"array",items:g_}},mockServer:{type:"object",properties:{off:{type:"boolean",default:!1},position:{type:"string",enum:["first","last","replace","off"],default:"first"},strictExamples:{type:"boolean",default:!1},errorIfForcedExampleNotFound:{type:"boolean",default:!1},description:{type:"string"}}},apis:{type:"object",additionalProperties:XA},rules:LA,decorators:{type:"object",additionalProperties:!0},preprocessors:{type:"object",additionalProperties:!0},ssoDirect:KB,sso:e_,residency:{type:"string"},developerOnboarding:p_,removeAttribution:{type:"boolean"},i18n:gy,l10n:gy,metadata:r_,metadataGlobs:i_,ignore:{type:"array",items:{type:"string"}},theme:_r,reunite:YB,logo:AA,navbar:PA,products:EA,footer:IA,sidebar:TA,scripts:$A,links:jA,feedback:jd,search:RA,colorMode:DA,navigation:QA,codeSnippet:BA,markdown:_A,openapi:vf,graphql:Of,analytics:NA,userMenu:FA,versionPicker:ZA,breadcrumbs:WA,catalog:VA,scorecard:zA},default:{redirects:{}},additionalProperties:!0},m_=Object.assign(Object.assign({},Jg(e0,"default")),{additionalProperties:!1});Object.assign(Object.assign({$id:"root-redocly-config"},e0),{properties:Object.assign(Object.assign({plugins:{type:"array",items:{type:"string"}}},e0.properties),{env:{type:"object",additionalProperties:m_}}),default:{},additionalProperties:!1});const my={type:"object",properties:{logo:_r.properties.logo,navbar:_r.properties.navbar,footer:_r.properties.footer,sidebar:_r.properties.sidebar,search:_r.properties.search,codeSnippet:_r.properties.codeSnippet,breadcrumbs:_r.properties.breadcrumbs,openapi:_r.properties.openapi,feedback:_r.properties.feedback,analytics:{type:"object",properties:{ga:MA}}},additionalProperties:!0,default:{}};Object.assign(Object.assign({},my.properties),{apis:{type:"object",additionalProperties:XA},theme:my});var GA={exports:{}};/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
205
205
  * @license MIT */(function(t,e){(function(n,r){t.exports=r()})(Fe,function(){var n={};n.version="0.2.0";var r=n.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};n.configure=function(p){var O,m;for(O in p)m=p[O],m!==void 0&&p.hasOwnProperty(O)&&(r[O]=m);return this},n.status=null,n.set=function(p){var O=n.isStarted();p=i(p,r.minimum,1),n.status=p===1?null:p;var m=n.render(!O),x=m.querySelector(r.barSelector),v=r.speed,y=r.easing;return m.offsetWidth,a(function(S){r.positionUsing===""&&(r.positionUsing=n.getPositioningCSS()),l(x,s(p,v,y)),p===1?(l(m,{transition:"none",opacity:1}),m.offsetWidth,setTimeout(function(){l(m,{transition:"all "+v+"ms linear",opacity:0}),setTimeout(function(){n.remove(),S()},v)},v)):setTimeout(S,v)}),this},n.isStarted=function(){return typeof n.status=="number"},n.start=function(){n.status||n.set(0);var p=function(){setTimeout(function(){n.status&&(n.trickle(),p())},r.trickleSpeed)};return r.trickle&&p(),this},n.done=function(p){return!p&&!n.status?this:n.inc(.3+.5*Math.random()).set(1)},n.inc=function(p){var O=n.status;return O?(typeof p!="number"&&(p=(1-O)*i(Math.random()*O,.1,.95)),O=i(O+p,0,.994),n.set(O)):n.start()},n.trickle=function(){return n.inc(Math.random()*r.trickleRate)},function(){var p=0,O=0;n.promise=function(m){return!m||m.state()==="resolved"?this:(O===0&&n.start(),p++,O++,m.always(function(){O--,O===0?(p=0,n.done()):n.set((p-O)/p)}),this)}}(),n.render=function(p){if(n.isRendered())return document.getElementById("nprogress");u(document.documentElement,"nprogress-busy");var O=document.createElement("div");O.id="nprogress",O.innerHTML=r.template;var m=O.querySelector(r.barSelector),x=p?"-100":o(n.status||0),v=document.querySelector(r.parent),y;return l(m,{transition:"all 0 linear",transform:"translate3d("+x+"%,0,0)"}),r.showSpinner||(y=O.querySelector(r.spinnerSelector),y&&h(y)),v!=document.body&&u(v,"nprogress-custom-parent"),v.appendChild(O),O},n.remove=function(){f(document.documentElement,"nprogress-busy"),f(document.querySelector(r.parent),"nprogress-custom-parent");var p=document.getElementById("nprogress");p&&h(p)},n.isRendered=function(){return!!document.getElementById("nprogress")},n.getPositioningCSS=function(){var p=document.body.style,O="WebkitTransform"in p?"Webkit":"MozTransform"in p?"Moz":"msTransform"in p?"ms":"OTransform"in p?"O":"";return O+"Perspective"in p?"translate3d":O+"Transform"in p?"translate":"margin"};function i(p,O,m){return p<O?O:p>m?m:p}function o(p){return(-1+p)*100}function s(p,O,m){var x;return r.positionUsing==="translate3d"?x={transform:"translate3d("+o(p)+"%,0,0)"}:r.positionUsing==="translate"?x={transform:"translate("+o(p)+"%,0)"}:x={"margin-left":o(p)+"%"},x.transition="all "+O+"ms "+m,x}var a=function(){var p=[];function O(){var m=p.shift();m&&m(O)}return function(m){p.push(m),p.length==1&&O()}}(),l=function(){var p=["Webkit","O","Moz","ms"],O={};function m(S){return S.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(b,w){return w.toUpperCase()})}function x(S){var b=document.body.style;if(S in b)return S;for(var w=p.length,C=S.charAt(0).toUpperCase()+S.slice(1),k;w--;)if(k=p[w]+C,k in b)return k;return S}function v(S){return S=m(S),O[S]||(O[S]=x(S))}function y(S,b,w){b=v(b),S.style[b]=w}return function(S,b){var w=arguments,C,k;if(w.length==2)for(C in b)k=b[C],k!==void 0&&b.hasOwnProperty(C)&&y(S,C,k);else y(S,w[1],w[2])}}();function c(p,O){var m=typeof p=="string"?p:d(p);return m.indexOf(" "+O+" ")>=0}function u(p,O){var m=d(p),x=m+O;c(m,O)||(p.className=x.substring(1))}function f(p,O){var m=d(p),x;c(p,O)&&(x=m.replace(" "+O+" "," "),p.className=x.substring(1,x.length-1))}function d(p){return(" "+(p.className||"")+" ").replace(/\s+/gi," ")}function h(p){p&&p.parentNode&&p.parentNode.removeChild(p)}return n})})(GA);var O_=GA.exports;const x_=wa(O_);x_.configure({trickleSpeed:100,template:'<div class="bar" role="bar"><div class="peg"></div></div>'});var br=(t=>(t.Normal="Normal",t.Edit="Edit",t.Draft="Draft",t))(br||{}),Sr=(t=>(t.Server="Server",t.ServerUrl="ServerUrl",t.Path="Path",t.UserCreated="UserCreated",t.Security="Security",t))(Sr||{}),YA={exports:{}};/*!
206
206
  Copyright (c) 2018 Jed Watson.
207
207
  Licensed under the MIT License (MIT), see
@@ -1411,99 +1411,72 @@ Please report this to https://github.com/markedjs/marked.`,e.silent)return"<p>An
1411
1411
  border-bottom-color: var(--color-info-base);
1412
1412
  }
1413
1413
  }
1414
- `;function lJ(){var l;const t=j.useRef(null),[e,n]=j.useState(((l=t.current)==null?void 0:l.isCollapsed())||!0),r=()=>{t.current&&(t.current.collapse(),n(!0))},i=()=>{t.current&&(t.current.expand(),n(!1))};return{panelProps:{ref:t,collapsible:!0,onCollapse:r,onExpand:i},panel:{isCollapsed:e,collapse:r,expand:i,toggle:()=>{t.current&&(e?t.current.expand():t.current.collapse(),n(!e))}}}}const cJ=14;var Z$={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(Fe,function(){var n=1e3,r=6e4,i=36e5,o="millisecond",s="second",a="minute",l="hour",c="day",u="week",f="month",d="quarter",h="year",p="date",O="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,x=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(M){var Q=["th","st","nd","rd"],Z=M%100;return"["+M+(Q[(Z-20)%10]||Q[Z]||Q[0])+"]"}},y=function(M,Q,Z){var G=String(M);return!G||G.length>=Q?M:""+Array(Q+1-G.length).join(Z)+M},S={s:y,z:function(M){var Q=-M.utcOffset(),Z=Math.abs(Q),G=Math.floor(Z/60),V=Z%60;return(Q<=0?"+":"-")+y(G,2,"0")+":"+y(V,2,"0")},m:function M(Q,Z){if(Q.date()<Z.date())return-M(Z,Q);var G=12*(Z.year()-Q.year())+(Z.month()-Q.month()),V=Q.clone().add(G,f),ee=Z-V<0,Y=Q.clone().add(G+(ee?-1:1),f);return+(-(G+(Z-V)/(ee?V-Y:Y-V))||0)},a:function(M){return M<0?Math.ceil(M)||0:Math.floor(M)},p:function(M){return{M:f,y:h,w:u,d:c,D:p,h:l,m:a,s,ms:o,Q:d}[M]||String(M||"").toLowerCase().replace(/s$/,"")},u:function(M){return M===void 0}},b="en",w={};w[b]=v;var C="$isDayjsObject",k=function(M){return M instanceof $||!(!M||!M[C])},I=function M(Q,Z,G){var V;if(!Q)return b;if(typeof Q=="string"){var ee=Q.toLowerCase();w[ee]&&(V=ee),Z&&(w[ee]=Z,V=ee);var Y=Q.split("-");if(!V&&Y.length>1)return M(Y[0])}else{var z=Q.name;w[z]=Q,V=z}return!G&&V&&(b=V),V||!G&&b},A=function(M,Q){if(k(M))return M.clone();var Z=typeof Q=="object"?Q:{};return Z.date=M,Z.args=arguments,new $(Z)},E=S;E.l=I,E.i=k,E.w=function(M,Q){return A(M,{locale:Q.$L,utc:Q.$u,x:Q.$x,$offset:Q.$offset})};var $=function(){function M(Z){this.$L=I(Z.locale,null,!0),this.parse(Z),this.$x=this.$x||Z.x||{},this[C]=!0}var Q=M.prototype;return Q.parse=function(Z){this.$d=function(G){var V=G.date,ee=G.utc;if(V===null)return new Date(NaN);if(E.u(V))return new Date;if(V instanceof Date)return new Date(V);if(typeof V=="string"&&!/Z$/i.test(V)){var Y=V.match(m);if(Y){var z=Y[2]-1||0,D=(Y[7]||"0").substring(0,3);return ee?new Date(Date.UTC(Y[1],z,Y[3]||1,Y[4]||0,Y[5]||0,Y[6]||0,D)):new Date(Y[1],z,Y[3]||1,Y[4]||0,Y[5]||0,Y[6]||0,D)}}return new Date(V)}(Z),this.init()},Q.init=function(){var Z=this.$d;this.$y=Z.getFullYear(),this.$M=Z.getMonth(),this.$D=Z.getDate(),this.$W=Z.getDay(),this.$H=Z.getHours(),this.$m=Z.getMinutes(),this.$s=Z.getSeconds(),this.$ms=Z.getMilliseconds()},Q.$utils=function(){return E},Q.isValid=function(){return this.$d.toString()!==O},Q.isSame=function(Z,G){var V=A(Z);return this.startOf(G)<=V&&V<=this.endOf(G)},Q.isAfter=function(Z,G){return A(Z)<this.startOf(G)},Q.isBefore=function(Z,G){return this.endOf(G)<A(Z)},Q.$g=function(Z,G,V){return E.u(Z)?this[G]:this.set(V,Z)},Q.unix=function(){return Math.floor(this.valueOf()/1e3)},Q.valueOf=function(){return this.$d.getTime()},Q.startOf=function(Z,G){var V=this,ee=!!E.u(G)||G,Y=E.p(Z),z=function(ce,re){var ae=E.w(V.$u?Date.UTC(V.$y,re,ce):new Date(V.$y,re,ce),V);return ee?ae:ae.endOf(c)},D=function(ce,re){return E.w(V.toDate()[ce].apply(V.toDate("s"),(ee?[0,0,0,0]:[23,59,59,999]).slice(re)),V)},B=this.$W,N=this.$M,U=this.$D,F="set"+(this.$u?"UTC":"");switch(Y){case h:return ee?z(1,0):z(31,11);case f:return ee?z(1,N):z(0,N+1);case u:var te=this.$locale().weekStart||0,L=(B<te?B+7:B)-te;return z(ee?U-L:U+(6-L),N);case c:case p:return D(F+"Hours",0);case l:return D(F+"Minutes",1);case a:return D(F+"Seconds",2);case s:return D(F+"Milliseconds",3);default:return this.clone()}},Q.endOf=function(Z){return this.startOf(Z,!1)},Q.$set=function(Z,G){var V,ee=E.p(Z),Y="set"+(this.$u?"UTC":""),z=(V={},V[c]=Y+"Date",V[p]=Y+"Date",V[f]=Y+"Month",V[h]=Y+"FullYear",V[l]=Y+"Hours",V[a]=Y+"Minutes",V[s]=Y+"Seconds",V[o]=Y+"Milliseconds",V)[ee],D=ee===c?this.$D+(G-this.$W):G;if(ee===f||ee===h){var B=this.clone().set(p,1);B.$d[z](D),B.init(),this.$d=B.set(p,Math.min(this.$D,B.daysInMonth())).$d}else z&&this.$d[z](D);return this.init(),this},Q.set=function(Z,G){return this.clone().$set(Z,G)},Q.get=function(Z){return this[E.p(Z)]()},Q.add=function(Z,G){var V,ee=this;Z=Number(Z);var Y=E.p(G),z=function(N){var U=A(ee);return E.w(U.date(U.date()+Math.round(N*Z)),ee)};if(Y===f)return this.set(f,this.$M+Z);if(Y===h)return this.set(h,this.$y+Z);if(Y===c)return z(1);if(Y===u)return z(7);var D=(V={},V[a]=r,V[l]=i,V[s]=n,V)[Y]||1,B=this.$d.getTime()+Z*D;return E.w(B,this)},Q.subtract=function(Z,G){return this.add(-1*Z,G)},Q.format=function(Z){var G=this,V=this.$locale();if(!this.isValid())return V.invalidDate||O;var ee=Z||"YYYY-MM-DDTHH:mm:ssZ",Y=E.z(this),z=this.$H,D=this.$m,B=this.$M,N=V.weekdays,U=V.months,F=V.meridiem,te=function(re,ae,H,pe){return re&&(re[ae]||re(G,ee))||H[ae].slice(0,pe)},L=function(re){return E.s(z%12||12,re,"0")},ce=F||function(re,ae,H){var pe=re<12?"AM":"PM";return H?pe.toLowerCase():pe};return ee.replace(x,function(re,ae){return ae||function(H){switch(H){case"YY":return String(G.$y).slice(-2);case"YYYY":return E.s(G.$y,4,"0");case"M":return B+1;case"MM":return E.s(B+1,2,"0");case"MMM":return te(V.monthsShort,B,U,3);case"MMMM":return te(U,B);case"D":return G.$D;case"DD":return E.s(G.$D,2,"0");case"d":return String(G.$W);case"dd":return te(V.weekdaysMin,G.$W,N,2);case"ddd":return te(V.weekdaysShort,G.$W,N,3);case"dddd":return N[G.$W];case"H":return String(z);case"HH":return E.s(z,2,"0");case"h":return L(1);case"hh":return L(2);case"a":return ce(z,D,!0);case"A":return ce(z,D,!1);case"m":return String(D);case"mm":return E.s(D,2,"0");case"s":return String(G.$s);case"ss":return E.s(G.$s,2,"0");case"SSS":return E.s(G.$ms,3,"0");case"Z":return Y}return null}(re)||Y.replace(":","")})},Q.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},Q.diff=function(Z,G,V){var ee,Y=this,z=E.p(G),D=A(Z),B=(D.utcOffset()-this.utcOffset())*r,N=this-D,U=function(){return E.m(Y,D)};switch(z){case h:ee=U()/12;break;case f:ee=U();break;case d:ee=U()/3;break;case u:ee=(N-B)/6048e5;break;case c:ee=(N-B)/864e5;break;case l:ee=N/i;break;case a:ee=N/r;break;case s:ee=N/n;break;default:ee=N}return V?ee:E.a(ee)},Q.daysInMonth=function(){return this.endOf(f).$D},Q.$locale=function(){return w[this.$L]},Q.locale=function(Z,G){if(!Z)return this.$L;var V=this.clone(),ee=I(Z,G,!0);return ee&&(V.$L=ee),V},Q.clone=function(){return E.w(this.$d,this)},Q.toDate=function(){return new Date(this.valueOf())},Q.toJSON=function(){return this.isValid()?this.toISOString():null},Q.toISOString=function(){return this.$d.toISOString()},Q.toString=function(){return this.$d.toUTCString()},M}(),R=$.prototype;return A.prototype=R,[["$ms",o],["$s",s],["$m",a],["$H",l],["$W",c],["$M",f],["$y",h],["$D",p]].forEach(function(M){R[M[1]]=function(Q){return this.$g(Q,M[0],M[1])}}),A.extend=function(M,Q){return M.$i||(M(Q,$,A),M.$i=!0),A},A.locale=I,A.isDayjs=k,A.unix=function(M){return A(1e3*M)},A.en=w[b],A.Ls=w,A.p={},A})})(Z$);var uJ=Z$.exports;const uh=wa(uJ);function W$({children:t,controls:e,staticLabels:n,onClick:r,isStandAlone:i=!1,showControlsOnHover:o=!1,dataTestId:s}){const a=l=>{(l.key===" "||l.key==="Enter")&&(l.preventDefault(),r==null||r())};return g.jsxs(dJ,{tabIndex:0,role:"listitem",onKeyDown:a,onClick:r,$standalone:i,"data-testid":s,children:[g.jsx(hJ,{className:"accordion-item-content",children:t}),g.jsxs(zx,{children:[n&&g.jsx(fJ,{children:n}),g.jsx(V$,{$showControlsOnHover:o,children:e})]})]})}const zx=T.div`
1415
- display: flex;
1416
- flex-direction: row;
1417
- `,fJ=T(zx)`
1418
- gap: var(--spacing-xxs);
1419
- width: max-content;
1420
- align-items: center;
1421
- `,V$=T(zx)`
1422
- display: ${({$showControlsOnHover:t})=>t?"none":"flex"};
1423
- gap: var(--spacing-xxs);
1414
+ `;function lJ(){var l;const t=j.useRef(null),[e,n]=j.useState(((l=t.current)==null?void 0:l.isCollapsed())||!0),r=()=>{t.current&&(t.current.collapse(),n(!0))},i=()=>{t.current&&(t.current.expand(),n(!1))};return{panelProps:{ref:t,collapsible:!0,onCollapse:r,onExpand:i},panel:{isCollapsed:e,collapse:r,expand:i,toggle:()=>{t.current&&(e?t.current.expand():t.current.collapse(),n(!e))}}}}const cJ=14,Z$=j.createContext({isMobile:!1,activeTab:"Request",MobileHeader:()=>null,setActiveTab:()=>null,closeButton:null}),Yr=()=>j.useContext(Z$),Kn=800,uJ=({activeTab:t,onChange:e})=>{const{isMobile:n}=Yr();if(!n)return null;const r=Oi.find(({name:i})=>i===(t==null?void 0:t.name));return g.jsx(dJ,{children:g.jsx(fJ,{dataTestId:"request-tab-change-select",options:Oi.map(({name:i})=>({element:i,label:i,value:i})),value:r==null?void 0:r.name,onChange:i=>{const o=Oi.findIndex(({name:s})=>s===i);o!==-1&&e(o)}})})},fJ=T(_.Select)`
1415
+ border-radius: var(--border-radius-md);
1416
+ background-color: var(--bg-color-active);
1424
1417
  `,dJ=T.div`
1425
- width: ${({$standalone:t})=>t?"100%":"calc(100% + 24px)"};
1426
- max-height: 100%;
1427
1418
  display: flex;
1428
- align-items: center;
1429
- justify-content: space-between;
1430
- gap: var(--spacing-xxs);
1431
- padding-left: var(--spacing-lg);
1432
- margin-left: ${({$standalone:t})=>t?"0":"-24px"};
1433
-
1434
- &:hover,
1435
- &:focus,
1436
- &:focus-within {
1437
- background-color: var(--bg-color-hover);
1438
-
1439
- ${V$} {
1440
- display: flex;
1441
- }
1442
- }
1443
- `,hJ=T.div`
1444
- max-width: 30vw;
1419
+ padding: var(--spacing-xs) var(--spacing-xs) var(--spacing-xs) var(--spacing-sm);
1420
+ border-bottom: 1px solid var(--border-color-secondary);
1421
+ `,hJ=({activeTab:t,onTabChange:e})=>{const{isMobile:n}=Yr();return n?null:g.jsx(mJ,{children:Oi.map((r,i)=>g.jsx(j.Fragment,{children:t.name===r.name?g.jsx(BC,{icon:r.icon,iconPosition:"left",children:r.name}):g.jsx(BC,{variant:"text",icon:r.icon,onClick:()=>e(i),iconPosition:"left",children:r.name})},r.name))})};function pJ(){const{operation:t,requestActiveTabIdx:e}=je(),{sendEvent:n}=ct(),[r,i]=j.useState(Oi[e.get()]);j.useEffect(()=>{var a;const s=(a=t.get())==null?void 0:a.body;e.set(s?jH:x$)},[t]),j.useEffect(()=>{i(Oi[e.get()])},[e]);const o=s=>{const a=Oi[s];e.set(s),n("request_tab_changed",{name:a.name})};return g.jsxs(gJ,{children:[g.jsx(uJ,{activeTab:r,onChange:o}),g.jsx(hJ,{activeTab:r,onTabChange:o}),g.jsx(OJ,{children:g.jsx(r.content,{})})]})}const gJ=T.div`
1445
1422
  display: flex;
1446
- border-left: 1px solid var(--border-color-secondary);
1447
1423
  flex-direction: column;
1448
- justify-content: center;
1449
- align-items: flex-start;
1450
- gap: 2px;
1451
- `;var z$={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(Fe,function(){return function(n,r,i){var o="h:mm A",s={lastDay:"[Yesterday at] "+o,sameDay:"[Today at] "+o,nextDay:"[Tomorrow at] "+o,nextWeek:"dddd [at] "+o,lastWeek:"[Last] dddd [at] "+o,sameElse:"MM/DD/YYYY"};r.prototype.calendar=function(a,l){var c=l||this.$locale().calendar||s,u=i(a||void 0).startOf("d"),f=this.diff(u,"d",!0),d="sameElse",h=f<-6?d:f<-1?"lastWeek":f<0?"lastDay":f<1?"sameDay":f<2?"nextDay":f<7?"nextWeek":d,p=c[h]||s[h];return typeof p=="function"?p.call(this,i()):this.format(p)}}})})(z$);var pJ=z$.exports;const gJ=wa(pJ);uh.extend(gJ);const BC=(t,e)=>uh(t).calendar(null,{sameDay:"[Today]",lastDay:"[Yesterday]",lastWeek:"DD MMM",sameElse:"DD MMM"});function mJ(t,e){return t.reduce((r,i)=>{const o=uh(i[e]).format("YYYY-MM-DD");return r[o]||(r[o]=[]),r[o].push(i),r},{})}function OJ({onConfirm:t,onCancel:e,confirmText:n="Delete",cancelText:r="Cancel",description:i="Are you sure?"}){return g.jsxs(xJ,{children:[g.jsx(_.WarningFilledIcon,{size:"16px",color:"--color-warning-base"}),g.jsxs("div",{children:[g.jsx("div",{children:i}),g.jsxs(vJ,{children:[g.jsx(_.Button,{size:"small",variant:"text",onClick:e,"data-testid":"cancel-btn",children:r}),g.jsx(_.Button,{size:"small",variant:"primary",tone:"danger",onClick:t,"data-testid":"confirm-btn",children:n})]})]})]})}function ya({children:t,onConfirm:e,onCancel:n,trigger:r=["click"],placement:i="bottomRight",showArrow:o=!0,onVisibilityChange:s,...a}){const[l,c]=j.useState(!1),u=j.useRef(null);j.useEffect(()=>{s==null||s(l)},[l,s]);const f=p=>{p.stopPropagation(),e==null||e(),c(!1)},d=p=>{p==null||p.stopPropagation(),n==null||n(),c(!1)},h=p=>{p.stopPropagation(),c(O=>!O)};return l?g.jsx(Ia,{ref:u,trigger:r,showArrow:o&&{content:g.jsx(yJ,{})},placement:i,visible:l,overlayStyle:{zIndex:"1000",position:"absolute"},overlay:g.jsx(Po,{onClickOutside:d,children:g.jsx(OJ,{...a,onCancel:d,onConfirm:f})}),children:g.jsx("div",{onClick:h,children:t})}):g.jsx("div",{onClick:h,children:t})}const xJ=T(Ao)`
1452
- display: flex;
1453
- gap: var(--spacing-xs);
1454
- width: 300px;
1455
- padding: var(--spacing-base);
1456
- border-radius: var(--border-radius-sm);
1457
- color: var(--text-color-secondary);
1458
- font-size: var(--font-size-base);
1459
- `,vJ=T.div`
1460
- display: flex;
1461
- justify-content: flex-end;
1462
- gap: var(--spacing-xs);
1463
- `,yJ=T(EP)`
1464
- left: -4px;
1465
- `;function kc({onSearch:t,value:e,className:n}){const[r,i]=j.useTransition(),o=j.useRef(null),[s,a]=j.useState(!1);j.useEffect(()=>{a(e.length>0)},[e]);const l=()=>{var u;(u=o.current)==null||u.focus()},c=u=>{i(()=>{t(u)})};return g.jsxs(bJ,{className:n,onClick:l,children:[g.jsx(L$,{children:g.jsx(_.SearchIcon,{size:"14px",color:"--text-color-helper"})}),g.jsx(SJ,{ref:o,placeholder:"Search",value:e,"data-testid":"search-input",onChange:u=>c(u.target.value)}),s&&g.jsx(wJ,{children:g.jsx(_.Button,{variant:"ghost",size:"small",icon:g.jsx(_.CloseOutlineIcon,{color:"--icon-color-secondary"}),onClick:()=>c("")})})]})}const bJ=T.div`
1424
+ gap: var(--spacing-sm);
1425
+ height: 100%;
1426
+ overflow: auto;
1427
+ `,mJ=T.div`
1466
1428
  display: flex;
1467
- align-self: stretch;
1468
- width: 100%;
1469
- border: 1px solid transparent;
1470
- padding-left: var(--spacing-base);
1429
+ flex-direction: row;
1430
+ gap: 2px;
1431
+ padding: var(--spacing-xs) var(--spacing-lg);
1471
1432
 
1472
- &:focus-within,
1473
- :active {
1474
- border: var(--input-border-focus);
1475
- border-radius: var(--border-radius);
1433
+ @media (max-width: ${Kn}px) {
1434
+ padding: var(--spacing-xs);
1476
1435
  }
1477
- `,SJ=T.input`
1478
- font-size: var(--font-size-base);
1479
- line-height: var(--line-height-base);
1480
- padding-left: var(--spacing-base);
1481
- border-radius: none;
1482
- color: var(--input-content-color-active);
1483
- background-color: transparent;
1484
- border: none;
1485
- outline: none;
1486
- text-indent: var(--spacing-xs);
1487
- padding-left: 0;
1488
- width: 100%;
1436
+ overflow: auto;
1437
+ `,BC=T(_.Button)`
1438
+ margin: 0;
1439
+ --button-icon-width: 16px;
1440
+ --button-icon-height: 16px;
1441
+ `,OJ=T.div`
1442
+ overflow: auto;
1443
+ padding: 0 var(--spacing-lg);
1444
+ flex: 1;
1489
1445
  height: 100%;
1490
- `,L$=T.div`
1446
+
1447
+ @media (max-width: ${Kn}px) {
1448
+ padding: 0 var(--spacing-sm);
1449
+ }
1450
+ `;function xJ({color:t,className:e,...n}){return g.jsx(vJ,{"data-testid":"badge",className:e,$backgroundColor:t,...n})}const vJ=T.div`
1451
+ border: 1px solid var(--border-color-secondary);
1452
+ border-radius: var(--border-radius);
1453
+ background-color: ${t=>t.$backgroundColor};
1454
+ width: 6px;
1455
+ height: 6px;
1456
+ `;function _C({isLinked:t,onReset:e,url:n,operationName:r}){const{sendEvent:i}=ct(),{isMobile:o}=Yr(),s=()=>{i("open_operation_url",{operationName:r,url:n}),n&&window.open(n,"_blank")};return g.jsxs(yJ,{"data-testid":"request-status",children:[g.jsx(To,{placement:"bottom",content:"This request has predefined data from OpenAPI definition",children:g.jsx(bJ,{color:t?"var(--color-success-base)":"var(--icon-color-disabled)","data-testid":"linked-badge"})}),g.jsx(Qe,{}),g.jsx(wJ,{variant:"link",size:"small",onClick:s,icon:g.jsx(_.ArrowUpRightIcon,{}),iconPosition:"right",children:r}),!t&&g.jsxs(g.Fragment,{children:[g.jsx(Qe,{}),g.jsx(SJ,{variant:"ghost",size:"small",icon:g.jsx(_.RestartIcon,{}),onClick:e,iconPosition:"left",children:!o&&"Reset request"})]})]})}const yJ=T.div`
1491
1457
  display: flex;
1458
+ height: var(--spacing-lg);
1492
1459
  align-items: center;
1493
- height: 100%;
1494
- `,wJ=T(L$)`
1460
+ border-radius: var(--border-radius);
1461
+ border: 1px solid var(--border-color-secondary);
1462
+ background-color: transparent;
1463
+ `,bJ=T(xJ)`
1464
+ margin: var(--spacing-xs) var(--spacing-xs);
1465
+ `,SJ=T(_.Button)`
1466
+ padding: 0 var(--spacing-xs);
1467
+ `,wJ=T(_.Button)`
1495
1468
  padding: 0 var(--spacing-xs);
1496
- `;function X$({className:t="",value:e}){return g.jsx(CJ,{className:`${t} tag-${e.toLowerCase()}`,children:e})}const CJ=T.span`
1469
+ `,CJ="Predefined request method from the openapi description.",kJ="Alternative request method types not predefined for this request.";function W$({className:t="",value:e}){return g.jsx(AJ,{className:`${t} tag-${e.toLowerCase()}`,children:e})}const AJ=T.span`
1497
1470
  font-size: var(--font-size-sm);
1498
1471
  font-weight: var(--font-weight-semibold);
1499
1472
  line-height: var(--line-height-sm);
1500
1473
  color: var(--tag-color);
1501
- `,Lx=T.div`
1474
+ `;function PJ(t){return t===wc?CJ:kJ}function EJ(t){return t.map(e=>({label:g.jsx(W$,{value:e}),value:e}))}function IJ(){return EJ(EG)}function TJ(){const{collections:t}=je();return V$(t)}function V$(t,e=""){let n=[];return t.filter(i=>i.get().type===sn.Folder).forEach(i=>{const o=i.get().value,s=i.nested("value"),a=e?`${e} / ${o.name}`:o.name;n.push({path:a,folder:s,treeItem:i}),o.items.length&&(n=n.concat(V$(s.items,a)))}),n}const zx=T.div`
1502
1475
  display: flex;
1503
1476
  flex-direction: column;
1504
1477
  width: 100%;
1505
1478
  height: 100%;
1506
- `,Ac=T.div`
1479
+ `,kc=T.div`
1507
1480
  display: flex;
1508
1481
  flex-direction: row;
1509
1482
  flex-grow: 1;
@@ -1512,7 +1485,7 @@ Please report this to https://github.com/markedjs/marked.`,e.silent)return"<p>An
1512
1485
  height: 40px;
1513
1486
  max-height: 40px;
1514
1487
  flex-shrink: 0;
1515
- `,kJ=T.div`
1488
+ `,$J=T.div`
1516
1489
  display: flex;
1517
1490
  flex-direction: row;
1518
1491
  justify-content: space-between;
@@ -1521,7 +1494,7 @@ Please report this to https://github.com/markedjs/marked.`,e.silent)return"<p>An
1521
1494
  height: 41px;
1522
1495
  max-height: 41px;
1523
1496
  flex-shrink: 0;
1524
- `,AJ=T.div`
1497
+ `,jJ=T.div`
1525
1498
  display: flex;
1526
1499
  width: 100%;
1527
1500
  flex-direction: row;
@@ -1540,17 +1513,17 @@ Please report this to https://github.com/markedjs/marked.`,e.silent)return"<p>An
1540
1513
  fill: var(--bg-color);
1541
1514
  }
1542
1515
  }
1543
- `,G$=T.div`
1516
+ `,z$=T.div`
1544
1517
  display: flex;
1545
1518
  flex-shrink: 0;
1546
1519
  align-items: center;
1547
1520
  padding: 0 var(--spacing-base);
1548
- `,fh=T.div`
1521
+ `,uh=T.div`
1549
1522
  display: flex;
1550
1523
  flex-direction: column;
1551
1524
  overflow: auto;
1552
1525
  height: 100%;
1553
- `,Y$=T.div`
1526
+ `,L$=T.div`
1554
1527
  width: 100%;
1555
1528
  height: 100%;
1556
1529
  display: flex;
@@ -1566,19 +1539,19 @@ Please report this to https://github.com/markedjs/marked.`,e.silent)return"<p>An
1566
1539
  line-height: var(--line-height-lg);
1567
1540
  font-weight: var(--font-weight-semibold);
1568
1541
  }
1569
- `,PJ=T.div`
1542
+ `,RJ=T.div`
1570
1543
  display: flex;
1571
1544
  width: var(--spacing-base);
1572
1545
  height: var(--spacing-lg);
1573
1546
  justify-content: center;
1574
1547
  align-items: center;
1575
- `,Gm=T(X$)`
1548
+ `,Gm=T(W$)`
1576
1549
  display: flex;
1577
1550
  flex-shrink: 0;
1578
1551
  width: 55px;
1579
1552
  align-self: center;
1580
1553
  justify-content: center;
1581
- `;function EJ(){const{collections:t}=je();return q$(t)}function q$(t,e=""){let n=[];return t.filter(i=>i.get().type===sn.Folder).forEach(i=>{const o=i.get().value,s=i.nested("value"),a=e?`${e} / ${o.name}`:o.name;n.push({path:a,folder:s,treeItem:i}),o.items.length&&(n=n.concat(q$(s.items,a)))}),n}const Xx=(t,e)=>{const[n,r]=j.useState(t),i=a=>/^[a-zA-Z0-9 _\-]+$/.test(a),o=(a,l)=>{var u;return((u=l==null?void 0:l.get())==null?void 0:u.filter(f=>f.value.name.trim()===a.trim()&&f.value.state===gt.Normal)).length<=0},s=j.useMemo(()=>{const a=!i(n),l=e?!o(n,e):!1;return a||l},[e,n]);return{newName:n,setNewName:r,isValidName:i,isUniqueName:o,disabled:s}};function Gx({className:t,defaultName:e,onChange:n,onSave:r,onCancel:i,level:o=0,placeholder:s="New Folder",siblingItems:a,icon:l}){const{newName:c,setNewName:u,disabled:f}=Xx(e,a),d=j.useRef(null),h=c.trim();j.useEffect(()=>{var m;(m=d.current)==null||m.focus()},[d]);const p=j.useCallback(m=>{m.key==="Escape"&&(i==null||i()),m.key==="Enter"&&!f&&r(h)},[i,r,h,f]),O=m=>{u(m.target.value),n==null||n(m)};return g.jsx(Po,{onClickOutside:i,children:g.jsxs(IJ,{$level:o,className:t,onKeyDown:p,children:[g.jsx(PJ,{children:l}),g.jsx(Jo,{ref:d,"data-testid":"edit-item-header-input",type:"text",placeholder:s,value:c,onChange:O}),g.jsx(_C,{"data-testid":"edit-item-header-save-button",variant:"primary",size:"small",onClick:()=>r(c.trim()),disabled:f,icon:g.jsx(_.CheckmarkIcon,{})}),g.jsx(_C,{"data-testid":"edit-item-header-cancel-button",variant:"text",size:"small",onClick:i,icon:g.jsx(_.CloseIcon,{})})]})})}const IJ=T.div`
1554
+ `,Lx=(t,e)=>{const[n,r]=j.useState(t),i=a=>/^[a-zA-Z0-9 _\-]+$/.test(a),o=(a,l)=>{var u;return((u=l==null?void 0:l.get())==null?void 0:u.filter(f=>f.value.name.trim()===a.trim()&&f.value.state===gt.Normal)).length<=0},s=j.useMemo(()=>{const a=!i(n),l=e?!o(n,e):!1;return a||l},[e,n]);return{newName:n,setNewName:r,isValidName:i,isUniqueName:o,disabled:s}};function Xx({className:t,defaultName:e,onChange:n,onSave:r,onCancel:i,level:o=0,placeholder:s="New Folder",siblingItems:a,icon:l}){const{newName:c,setNewName:u,disabled:f}=Lx(e,a),d=j.useRef(null),h=c.trim();j.useEffect(()=>{var m;(m=d.current)==null||m.focus()},[d]);const p=j.useCallback(m=>{m.key==="Escape"&&(i==null||i()),m.key==="Enter"&&!f&&r(h)},[i,r,h,f]),O=m=>{u(m.target.value),n==null||n(m)};return g.jsx(Po,{onClickOutside:i,children:g.jsxs(DJ,{$level:o,className:t,onKeyDown:p,children:[g.jsx(RJ,{children:l}),g.jsx(Jo,{ref:d,"data-testid":"edit-item-header-input",type:"text",placeholder:s,value:c,onChange:O}),g.jsx(MC,{"data-testid":"edit-item-header-save-button",variant:"primary",size:"small",onClick:()=>r(c.trim()),disabled:f,icon:g.jsx(_.CheckmarkIcon,{})}),g.jsx(MC,{"data-testid":"edit-item-header-cancel-button",variant:"text",size:"small",onClick:i,icon:g.jsx(_.CloseIcon,{})})]})})}const DJ=T.div`
1582
1555
  display: flex;
1583
1556
  align-items: center;
1584
1557
  gap: 4px;
@@ -1587,13 +1560,44 @@ Please report this to https://github.com/markedjs/marked.`,e.silent)return"<p>An
1587
1560
 
1588
1561
  background-color: var(--bg-color-active);
1589
1562
  height: 32px;
1590
- `,_C=T(_.Button)`
1563
+ `,MC=T(_.Button)`
1591
1564
  border: none;
1592
1565
 
1593
1566
  & + & {
1594
1567
  margin-left: 0;
1595
1568
  }
1596
- `;function ba(t,e){let n=e,r=1;const i=new Set(t.map(o=>o.value.name));for(;i.has(n);)r++,n=`${e} ${r}`;return n}function TJ({transaction:t,onClose:e}){const{collections:n}=je(),r=EJ(),[i,o]=j.useState("New Collection"),[s,a]=j.useState(null),[l,c]=j.useState(""),u=j.useMemo(()=>{var S;return(S=r.find(b=>b.folder.get().id===s))==null?void 0:S.folder.items},[s,r]),{newName:f,setNewName:d,disabled:h}=Xx("New Request",u),p=(r.length?!s:!i.trim())||h,O=j.useMemo(()=>r.filter(S=>S.path.toLowerCase().includes(l.toLowerCase())),[l,r]),m=S=>{c(S)},x=()=>{const S={type:sn.Request,value:{id:crypto.randomUUID(),state:gt.Normal,name:f,request:t.request,response:t.response}};if(r.length){const b=r.find(w=>w.folder.get().id===s);b&&b.folder.items.merge([S])}else{const b={type:sn.Folder,value:{id:crypto.randomUUID(),state:gt.Normal,name:i,items:[S]}};n.merge([b,...n.get()])}e==null||e()},v=()=>{c("");const S=ba(n.get(),"New Collection");n.set(b=>[{type:sn.Folder,value:{id:crypto.randomUUID(),state:gt.Draft,name:S,items:[]}},...b])},y=(S,b)=>{S.length&&b.name.set(S),b.state.set(gt.Normal)};return g.jsxs($J,{children:[g.jsxs(jJ,{children:[g.jsx("h4",{children:"Save request"}),g.jsx(_.Button,{variant:"text",onClick:()=>e==null?void 0:e(),icon:g.jsx(_.CloseIcon,{})})]}),g.jsx(Vs,{children:g.jsx("b",{children:"Request name"})}),g.jsx(Jo,{type:"text",placeholder:"Enter name",value:f,onChange:S=>d(S.target.value)}),r.length?g.jsxs(g.Fragment,{children:[g.jsx(Vs,{children:g.jsx("b",{children:"Save to"})}),g.jsxs(DJ,{children:[g.jsx(NJ,{value:l,onSearch:m}),g.jsx(QJ,{children:O.length?O.map(S=>{const{id:b,name:w,state:C}=S.folder.get();return C!==gt.Normal?g.jsx(MJ,{defaultName:w,siblingItems:n,onSave:k=>y(k,S.folder),onCancel:()=>S.treeItem.set(lt),icon:g.jsx(_.FolderAddIcon,{size:"14px",color:"--icon-color-disabled"})}):g.jsxs(BJ,{onClick:()=>a(b),children:[g.jsx(ZJ,{children:s===b?g.jsx(_.CheckmarkIcon,{size:"14px"}):g.jsx(_.FolderIcon,{size:"14px"})}),g.jsx(WJ,{title:S.path,children:S.path})]},b)}):g.jsx(FJ,{children:"No collections found"})})]})]}):g.jsxs(g.Fragment,{children:[g.jsx(Vs,{children:g.jsx("b",{children:"Collection name"})}),g.jsx(Jo,{type:"text",placeholder:"New Collection",value:i,onChange:S=>o(S.target.value)})]}),g.jsxs(RJ,{children:[g.jsx(MC,{children:r.length?g.jsx(_.Button,{variant:"ghost",icon:g.jsx(_.AddIcon,{}),onClick:v,children:"New Collection"}):null}),g.jsxs(MC,{children:[g.jsx(_.Button,{variant:"outlined",size:"small",onClick:()=>{e==null||e()},children:"Cancel"}),g.jsx(_J,{variant:"primary",size:"small",onClick:x,disabled:p,children:"Save"})]})]})]})}function U$({children:t,transaction:e}){const{collections:n}=je(),[r,i]=j.useState(!1),o=()=>{i(a=>!a)},s=()=>{n.forEach(a=>{a.get().value.state===gt.Draft&&a.set(lt)}),i(!1)};return r?g.jsx(Ia,{trigger:["click"],showArrow:!0,placement:"bottomRight",visible:r,overlayStyle:{zIndex:"1000",position:"absolute"},overlay:g.jsx(Po,{onClickOutside:s,children:g.jsx(TJ,{transaction:e,onClose:s})}),children:g.jsx("div",{onClick:o,children:t})}):g.jsx("div",{onClick:o,children:t})}const $J=T(Ao)`
1569
+ `;function Ac({onSearch:t,value:e,className:n}){const[r,i]=j.useTransition(),o=j.useRef(null),[s,a]=j.useState(!1);j.useEffect(()=>{a(e.length>0)},[e]);const l=()=>{var u;(u=o.current)==null||u.focus()},c=u=>{i(()=>{t(u)})};return g.jsxs(QJ,{className:n,onClick:l,children:[g.jsx(X$,{children:g.jsx(_.SearchIcon,{size:"14px",color:"--text-color-helper"})}),g.jsx(BJ,{ref:o,placeholder:"Search",value:e,"data-testid":"search-input",onChange:u=>c(u.target.value)}),s&&g.jsx(_J,{children:g.jsx(_.Button,{variant:"ghost",size:"small",icon:g.jsx(_.CloseOutlineIcon,{color:"--icon-color-secondary"}),onClick:()=>c("")})})]})}const QJ=T.div`
1570
+ display: flex;
1571
+ align-self: stretch;
1572
+ width: 100%;
1573
+ border: 1px solid transparent;
1574
+ padding-left: var(--spacing-base);
1575
+
1576
+ &:focus-within,
1577
+ :active {
1578
+ border: var(--input-border-focus);
1579
+ border-radius: var(--border-radius);
1580
+ }
1581
+ `,BJ=T.input`
1582
+ font-size: var(--font-size-base);
1583
+ line-height: var(--line-height-base);
1584
+ padding-left: var(--spacing-base);
1585
+ border-radius: none;
1586
+ color: var(--input-content-color-active);
1587
+ background-color: transparent;
1588
+ border: none;
1589
+ outline: none;
1590
+ text-indent: var(--spacing-xs);
1591
+ padding-left: 0;
1592
+ width: 100%;
1593
+ height: 100%;
1594
+ `,X$=T.div`
1595
+ display: flex;
1596
+ align-items: center;
1597
+ height: 100%;
1598
+ `,_J=T(X$)`
1599
+ padding: 0 var(--spacing-xs);
1600
+ `;function ya(t,e){let n=e,r=1;const i=new Set(t.map(o=>o.value.name));for(;i.has(n);)r++,n=`${e} ${r}`;return n}function MJ({transaction:t,onClose:e}){const{collections:n}=je(),r=TJ(),[i,o]=j.useState("New Collection"),[s,a]=j.useState(null),[l,c]=j.useState(""),u=j.useMemo(()=>{var S;return(S=r.find(b=>b.folder.get().id===s))==null?void 0:S.folder.items},[s,r]),{newName:f,setNewName:d,disabled:h}=Lx("New Request",u),p=(r.length?!s:!i.trim())||h,O=j.useMemo(()=>r.filter(S=>S.path.toLowerCase().includes(l.toLowerCase())),[l,r]),m=S=>{c(S)},x=()=>{const S={type:sn.Request,value:{id:crypto.randomUUID(),state:gt.Normal,name:f,request:t.request,response:t.response}};if(r.length){const b=r.find(w=>w.folder.get().id===s);b&&b.folder.items.merge([S])}else{const b={type:sn.Folder,value:{id:crypto.randomUUID(),state:gt.Normal,name:i,items:[S]}};n.merge([b,...n.get()])}e==null||e()},v=()=>{c("");const S=ya(n.get(),"New Collection");n.set(b=>[{type:sn.Folder,value:{id:crypto.randomUUID(),state:gt.Draft,name:S,items:[]}},...b])},y=(S,b)=>{S.length&&b.name.set(S),b.state.set(gt.Normal)};return g.jsxs(NJ,{children:[g.jsxs(FJ,{children:[g.jsx("h4",{children:"Save request"}),g.jsx(_.Button,{variant:"text",onClick:()=>e==null?void 0:e(),icon:g.jsx(_.CloseIcon,{})})]}),g.jsx(Vs,{children:g.jsx("b",{children:"Request name"})}),g.jsx(Jo,{type:"text",placeholder:"Enter name",value:f,onChange:S=>d(S.target.value)}),r.length?g.jsxs(g.Fragment,{children:[g.jsx(Vs,{children:g.jsx("b",{children:"Save to"})}),g.jsxs(WJ,{children:[g.jsx(GJ,{value:l,onSearch:m}),g.jsx(VJ,{children:O.length?O.map(S=>{const{id:b,name:w,state:C}=S.folder.get();return C!==gt.Normal?g.jsx(XJ,{defaultName:w,siblingItems:n,onSave:k=>y(k,S.folder),onCancel:()=>S.treeItem.set(lt),icon:g.jsx(_.FolderAddIcon,{size:"14px",color:"--icon-color-disabled"})}):g.jsxs(zJ,{onClick:()=>a(b),children:[g.jsx(qJ,{children:s===b?g.jsx(_.CheckmarkIcon,{size:"14px"}):g.jsx(_.FolderIcon,{size:"14px"})}),g.jsx(UJ,{title:S.path,children:S.path})]},b)}):g.jsx(YJ,{children:"No collections found"})})]})]}):g.jsxs(g.Fragment,{children:[g.jsx(Vs,{children:g.jsx("b",{children:"Collection name"})}),g.jsx(Jo,{type:"text",placeholder:"New Collection",value:i,onChange:S=>o(S.target.value)})]}),g.jsxs(ZJ,{children:[g.jsx(NC,{children:r.length?g.jsx(_.Button,{variant:"ghost",icon:g.jsx(_.AddIcon,{}),onClick:v,children:"New Collection"}):null}),g.jsxs(NC,{children:[g.jsx(_.Button,{variant:"outlined",size:"small",onClick:()=>{e==null||e()},children:"Cancel"}),g.jsx(LJ,{variant:"primary",size:"small",onClick:x,disabled:p,children:"Save"})]})]})]})}function G$({children:t,transaction:e}){const{collections:n}=je(),[r,i]=j.useState(!1),o=()=>{i(a=>!a)},s=()=>{n.forEach(a=>{a.get().value.state===gt.Draft&&a.set(lt)}),i(!1)};return r?g.jsx(Ia,{trigger:["click"],showArrow:!0,placement:"bottomRight",visible:r,overlayStyle:{zIndex:"1000",position:"absolute"},overlay:g.jsx(Po,{onClickOutside:s,children:g.jsx(MJ,{transaction:e,onClose:s})}),children:g.jsx("div",{onClick:o,children:t})}):g.jsx("div",{onClick:o,children:t})}const NJ=T(Ao)`
1597
1601
  display: flex;
1598
1602
  flex-direction: column;
1599
1603
  gap: var(--spacing-xs);
@@ -1606,7 +1610,7 @@ Please report this to https://github.com/markedjs/marked.`,e.silent)return"<p>An
1606
1610
  ${Vs} {
1607
1611
  margin-top: var(--spacing-xs);
1608
1612
  }
1609
- `,jJ=T.div`
1613
+ `,FJ=T.div`
1610
1614
  display: flex;
1611
1615
  width: 100%;
1612
1616
  justify-content: space-between;
@@ -1615,26 +1619,26 @@ Please report this to https://github.com/markedjs/marked.`,e.silent)return"<p>An
1615
1619
  margin: 0;
1616
1620
  line-height: var(--line-height-base);
1617
1621
  }
1618
- `,RJ=T.div`
1622
+ `,ZJ=T.div`
1619
1623
  display: flex;
1620
1624
  flex-direction: row;
1621
1625
  justify-content: space-between;
1622
1626
  gap: var(--spacing-xxs);
1623
- `,DJ=T.div`
1627
+ `,WJ=T.div`
1624
1628
  display: flex;
1625
1629
  flex-direction: column;
1626
1630
  border-radius: 4px;
1627
1631
  border: 1px solid var(--border-color-primary);
1628
1632
  width: 100%;
1629
1633
  min-height: 200px;
1630
- `,QJ=T.div`
1634
+ `,VJ=T.div`
1631
1635
  display: flex;
1632
1636
  flex-grow: 1;
1633
1637
  flex-direction: column;
1634
1638
  max-height: 200px;
1635
1639
  overflow-y: auto;
1636
1640
  border-top: 1px solid var(--border-color-primary);
1637
- `,BJ=T.div`
1641
+ `,zJ=T.div`
1638
1642
  display: flex;
1639
1643
  flex-shrink: 0;
1640
1644
  flex-direction: row;
@@ -1648,21 +1652,21 @@ Please report this to https://github.com/markedjs/marked.`,e.silent)return"<p>An
1648
1652
  &:hover {
1649
1653
  background-color: var(--bg-color-hover);
1650
1654
  }
1651
- `,_J=T(_.Button)`
1655
+ `,LJ=T(_.Button)`
1652
1656
  border: none;
1653
1657
 
1654
1658
  & + & {
1655
1659
  margin-left: 0;
1656
1660
  }
1657
- `,MC=T.div``,MJ=T(Gx)`
1661
+ `,NC=T.div``,XJ=T(Xx)`
1658
1662
  gap: var(--spacing-xs);
1659
1663
  padding: 0 var(--spacing-xs);
1660
- `,NJ=T(kc)`
1664
+ `,GJ=T(Ac)`
1661
1665
  background-color: var(--layer-color);
1662
1666
  border-radius: 4px 4px 0 0;
1663
1667
  padding-left: var(--spacing-xs);
1664
1668
  height: 32px;
1665
- `,FJ=T.div`
1669
+ `,YJ=T.div`
1666
1670
  display: flex;
1667
1671
  flex-grow: 1;
1668
1672
  justify-content: center;
@@ -1672,955 +1676,935 @@ Please report this to https://github.com/markedjs/marked.`,e.silent)return"<p>An
1672
1676
  font-size: var(--font-size-base);
1673
1677
  font-weight: var(--font-weight-regular);
1674
1678
  line-height: var(--line-height-base);
1675
- `,ZJ=T.span`
1679
+ `,qJ=T.span`
1676
1680
  flex-shrink: 0;
1677
- `,WJ=T.span`
1681
+ `,UJ=T.span`
1678
1682
  text-overflow: ellipsis;
1679
1683
  white-space: nowrap;
1680
1684
  overflow: hidden;
1681
- `;function VJ(){var x,v;const[t,e]=j.useState(""),{history:n,requestError:r,disableCollectionsTab:i}=je(),{sendEvent:o}=ct(),{MobileHeader:s,isMobile:a,setActiveTab:l}=Yr(),{updateTransaction:c}=ah(),u=j.useMemo(()=>[...n.get()].sort((y,S)=>S.date-y.date),[n]),f=j.useMemo(()=>u.filter(y=>y.request.url.toLowerCase().includes(t.toLowerCase())||y.request.method.toLowerCase().includes(t.toLowerCase())),[u,t]),d=j.useMemo(()=>mJ(f,"date"),[f]),h=y=>{e(y)},p=j.useCallback(y=>{const S=n.get().filter(b=>b.date!==y);n.set(yn(S)),o("history_item_removed",{})},[n,o]),O=j.useCallback(()=>{n.set([]),o("history_all_items_removed",{})},[n,o]),m=j.useCallback(y=>{r.set(null),c({request:y.request,response:y.response},null),o("history_item_clicked",{}),l("Request")},[r,c,o,l]);return(x=n.get())!=null&&x.length?g.jsxs(Lx,{children:[g.jsx(s,{}),g.jsxs(Ac,{children:[g.jsx(kc,{value:t,onSearch:h}),g.jsx(Qe,{}),g.jsx(G$,{children:g.jsx(ya,{description:"Are you sure to clear your whole history?",placement:"bottomRight",onConfirm:O,children:g.jsx(_.Button,{"data-testid":"clear-history-button",disabled:!((v=n.get())!=null&&v.length),variant:"text",size:"small",icon:g.jsx(_.CleanIcon,{})})})})]}),g.jsx(fh,{children:Object.entries(d).map((y,S)=>{const[b,w]=y;return g.jsx(Fd,{title:BC(b),defaultExpanded:S===0,children:w.map((C,k)=>g.jsx(zJ,{"data-testid":`history-item-${k}`,children:g.jsx(W$,{showControlsOnHover:!a,onClick:()=>m(C),staticLabels:C.response?g.jsx(qJ,{children:g.jsx(YJ,{tabIndex:-1,status:C.response.status.toString(),children:C.response.status})}):null,controls:g.jsxs(g.Fragment,{children:[!i.get()&&g.jsx(U$,{transaction:C,children:g.jsx(_.Button,{icon:g.jsx(_.BookmarkAddIcon,{}),size:"small"})}),g.jsx(ya,{description:"Are you sure you to delete this request?",placement:"bottomRight",onConfirm:()=>p(C.date),children:g.jsx($r,{icon:g.jsx(_.TrashCanIcon,{}),size:"small","data-testid":`remove-history-item-${k}`})})]}),children:g.jsxs(LJ,{children:[g.jsx(Gm,{value:C.request.method}),g.jsx(XJ,{mouseEnterDelay:1,placement:"bottom",content:uh(new Date(C.date)).format("MMM, DD, YYYY, hh:mm:ss A"),children:g.jsx(GJ,{children:C.request.url})})]},C.date)})},C.date))},BC(b))})})]}):g.jsxs(g.Fragment,{children:[g.jsx(s,{}),g.jsxs(Y$,{children:[g.jsx("h3",{children:"You have not run any requests"}),"You'll see the full history of the request."]})]})}const zJ=T.div`
1682
- height: 32px;
1683
-
1684
- .accordion-item-content {
1685
- max-width: calc(30vw - 100px);
1686
- }
1687
- `,LJ=T.div`
1688
- max-width: 100%;
1685
+ `;function HJ({requestName:t,onClose:e,onDiscard:n,onSave:r}){const i=j.useRef(null);return _.useOutsideClick(i,e),_.useFocusTrap(i),g.jsx(KJ,{children:g.jsxs(JJ,{ref:i,tabIndex:0,children:[g.jsx(eK,{onClick:e,"data-testid":"close",variant:"ghost",icon:g.jsx(_.CloseIcon,{})}),g.jsx(tK,{children:"Unsaved changes"}),g.jsxs(nK,{children:["Do you want to save changes in ",t?g.jsxs(rK,{children:["“",t,"”"]}):""," request?"]}),g.jsxs(iK,{children:[g.jsx(_.Button,{onClick:n,variant:"secondary",children:"Don't save"}),g.jsxs(oK,{children:[g.jsx(_.Button,{onClick:e,variant:"outlined",children:"Cancel"}),g.jsx(_.Button,{onClick:r,variant:"primary",children:"Save changes"})]})]})]})})}const JJ=T.div`
1686
+ background: var(--bg-color);
1687
+ box-shadow: var(--bg-raised-shadow);
1688
+ border-radius: var(--border-radius-lg);
1689
+ padding: var(--spacing-lg);
1689
1690
  display: flex;
1690
- flex-direction: row;
1691
- flex-shrink: 0;
1692
- gap: var(--spacing-xxs);
1693
- padding: var(--spacing-sm) 0 var(--spacing-sm) var(--spacing-base);
1694
- cursor: pointer;
1695
- min-width: 0;
1696
- `,XJ=T(To)`
1697
- max-width: 100%;
1698
- text-overflow: ellipsis;
1699
- overflow: hidden;
1700
- white-space: nowrap;
1701
- `,GJ=T.div`
1702
- font-size: var(--font-size-base);
1703
- font-weight: var(--font-weight-regular);
1704
- line-height: var(--line-height-base);
1705
- color: var(--text-color-primary);
1691
+ flex-direction: column;
1692
+ align-items: flex-start;
1693
+ position: absolute;
1694
+ width: 500px;
1706
1695
  max-width: 100%;
1707
- text-overflow: ellipsis;
1708
- overflow: hidden;
1709
- white-space: nowrap;
1710
- `,YJ=T(_.StatusCode)`
1711
- font-size: var(--font-size-sm);
1712
- line-height: var(--line-height-sm);
1713
- font-weight: var(--font-weight-regular);
1714
- `,qJ=T.span`
1715
- height: var(--line-height-sm);
1716
- background: var(--border-color-secondary);
1717
- padding: 0 var(--spacing-xxs);
1718
- font-size: var(--font-size-sm);
1719
- line-height: var(--line-height-sm);
1720
- border-radius: var(--border-radius);
1721
- color: var(--text-color-secondary);
1722
- display: inline-flex;
1723
- word-break: var(--code-word-break);
1724
- padding: var(--spacing-xs);
1725
- margin-right: var(--spacing-xs);
1726
- `,UJ="This environment is defined in the OpenAPI description and cannot be edited.",HJ="This variable is defined in the OpenAPI description and cannot be edited.",JJ="This variable is defined in the OpenAPI description and cannot be deleted.",KJ='Are you sure you want to delete "{name}" along with all its variables?';function eK(){return g.jsx(tK,{children:g.jsx(_.IBMCloudHyperProtectCryptoServicesIcon,{size:"14px",color:"--color-info-base"})})}const tK=T.div`
1696
+ height: auto;
1697
+ max-height: 600px;
1698
+ overflow-y: scroll;
1699
+ left: 50%;
1700
+ top: 100px;
1701
+ transform: translateX(-50%);
1702
+ .tag-grey span {
1703
+ font-size: var(--font-size-base);
1704
+ line-height: var(--line-height-base);
1705
+ }
1706
+ `,KJ=T.div`
1707
+ background: var(--bg-color-modal-overlay);
1708
+ position: fixed;
1709
+ width: 100vw;
1710
+ height: 100vh;
1711
+ z-index: var(--z-index-popover);
1712
+ left: 0;
1713
+ top: 0;
1714
+ pointer-events: auto;
1715
+ `,eK=T(_.Button)`
1716
+ position: absolute;
1717
+ right: var(--spacing-md);
1718
+ top: var(--spacing-md);
1719
+ `,tK=T(_.Typography)`
1727
1720
  display: flex;
1728
1721
  align-items: center;
1729
- justify-content: center;
1730
- border-radius: 10px;
1731
- background-color: var(--color-info-bg);
1732
- width: 20px;
1733
- height: 20px;
1734
- `;function nK({variable:t,environment:e}){const[n,r]=j.useState(!1),[i,o]=j.useState(!1),{sendEvent:s}=ct(),{name:a,value:l,readonlyName:c,isSecret:u,canBeRemoved:f,canBeEdited:d}=t.get(),{name:h}=e.get(),p=y=>{s("environment_variable_edited",{name:h,variable:a,changed:y.value!==l}),t.set(y),r(!1)},O=()=>{r(!1),s("environment_variable_editing_cancelled",{name:h,variable:a})},m=()=>{s("environment_variable_secret_toggled",{name:h,variable:a,visible:!i}),o(!i)},x=()=>{r(!0),s("environment_variable_editing_started",{name:h,variable:a})},v=()=>{t.set(lt),s("environment_variable_removed",{name:h,variable:a})};return n?g.jsx(lK,{variable:t.get(),onSave:p,onCancel:O,readonlyName:c}):g.jsx(W$,{dataTestId:`environment-variable-${t.get().name}`,controls:g.jsxs(rK,{children:[u&&g.jsx(zs,{onClick:m,variant:"text",size:"small",icon:i?g.jsx(_.ViewOffIcon,{}):g.jsx(_.ViewIcon,{})}),d&&g.jsx(zs,{"data-testid":`edit-variable-btn-${t.get().name}`,size:"small",variant:"text",icon:g.jsx(_.EditIcon,{}),onClick:x}),f&&g.jsx(ya,{description:"Are you sure you to delete this environment variable?",onConfirm:v,children:g.jsx($r,{"data-testid":`remove-variable-btn-${t.get().name}`,icon:g.jsx(_.TrashCanIcon,{})})}),(!d||!f)&&g.jsx(To,{content:d?JJ:HJ,children:g.jsx(zs,{size:"small",variant:"text",icon:g.jsx(_.InformationIcon,{})})})]}),children:g.jsxs(iK,{children:[g.jsxs(oK,{children:[g.jsx(sK,{children:a}),u&&g.jsx(eK,{})]}),g.jsx(aK,{$isEmpty:!l,children:u&&!i?"•••••":bl(l,e.variables)||"No value"})]})})}const rK=T.div`
1735
- display: flex;
1736
- flex-direction: row;
1737
- gap: var(--spacing-xxs);
1738
- padding-right: var(--spacing-base);
1722
+ font-size: var(--font-size-xl);
1723
+ font-weight: var(--font-weight-semibold);
1724
+ line-height: var(--line-height-xl);
1725
+ margin-bottom: var(--spacing-base);
1726
+ svg {
1727
+ margin-right: var(--spacing-xs);
1728
+ }
1729
+ `,nK=T.div`
1730
+ color: var(--text-color-secondary);
1731
+ font-size: var(--font-size-lg);
1732
+ line-height: var(--line-height-lg);
1733
+ margin-bottom: var(--spacing-base);
1734
+ `,rK=T.span`
1735
+ font-weight: var(--font-weight-semibold);
1739
1736
  `,iK=T.div`
1740
1737
  display: flex;
1741
- flex-direction: column;
1742
- justify-content: center;
1743
- align-items: flex-start;
1744
- padding-bottom: var(--spacing-xs);
1745
- gap: 2px;
1746
- flex: 1 0 0;
1747
- width: 100%;
1738
+ align-self: stretch;
1739
+ justify-content: space-between;
1748
1740
  `,oK=T.div`
1749
1741
  display: flex;
1742
+ gap: var(--spacing-xs);
1743
+ `;function Y$(){var ce;const t=je(),e=an(),{sendEvent:n}=ct(),r=Zx(),{isTransactionChanged:i,onClose:o,onDiscard:s,onSave:a,updateTransaction:l}=ah(),{isMobile:c,MobileHeader:u}=Yr(),{request:f,response:d,operation:h,environments:p,selectedEnvironmentId:O,isLinked:m,operationUrl:x,isProcessingRequest:v,isRequestEditable:y,transactionSource:S,showUnsavedChangesModal:b,disableCollectionsTab:w}=t,{method:C,url:k,body:I,headers:A,cookies:E,queryParameters:$,security:R}=f,M=h.get(),Q=j.useMemo(()=>[M==null?void 0:M.method.toLocaleUpperCase()],[M==null?void 0:M.method]),Z=IJ(),G=j.useMemo(()=>oh(Q,Z),[Z,Q]),V=[{label:"Edit",value:!0},{label:"Preview",value:!1}],ee=j.useMemo(()=>p.map(re=>({label:g.jsx("div",{children:re.get().name}),value:re.get().id})),[p]),Y=j.useCallback(()=>p.find(re=>re.get().id===O.get()),[p,O]);j.useEffect(()=>{const re=Y();p.length&&(!O.get()||!re)&&O.set(p[0].get().id)},[p]),j.useEffect(()=>{m.set(PY(t.get()))},[C,k,I,A,E,$,R]),j.useEffect(()=>{const re=x.get();re&&y$.save(re,f.get())},[f]);const z=()=>{const re=M;re&&l({request:Tx(re),response:null},null),MT(t),m.set(!0),n("reset_request",{})},D=({value:re})=>{var ae;O.set(re),n("change_environment",{name:(ae=p.find(H=>H.get().id===re))==null?void 0:ae.get().name})},B=({value:re})=>{C.set(re),n("change_request_method",{name:re})},N=()=>{wY(t),n("request_sent",{url:k.get(),method:C.get(),resolvedUrl:Zt(k.get(),t)})},U=re=>{const H=[...RY(re)||[],...$.get({noproxy:!0}).filter(pe=>!pe.active),un()];$.set(H)},F={request:yn(f.get({noproxy:!0})),response:yn(d.get({noproxy:!0}))},te=()=>{r==null||r.merge(F),S.set(S.get({noproxy:!0}))},L=M&&x.get();return g.jsxs(sK,{"data-testid":"request-container",children:[g.jsx(u,{children:L&&g.jsx(_C,{operationName:M.name,onReset:z,isLinked:m.get({noproxy:!0}),url:x.get({noproxy:!0})})}),!c&&g.jsxs(aK,{children:[g.jsx(cK,{children:"Request"}),L&&g.jsx(_C,{operationName:M.name,onReset:z,isLinked:m.get({noproxy:!0}),url:x.get({noproxy:!0})}),!w.get()&&g.jsxs(gK,{children:[g.jsx(_.Button,{variant:"text",size:"small",icon:g.jsx(_.SaveIcon,{}),disabled:!i,onClick:te,children:"Save changes"}),g.jsx(Qe,{}),g.jsx(G$,{transaction:F,children:g.jsx(_.Button,{variant:"text",size:"small",children:"Save as"})})]})]}),g.jsxs(lK,{children:[g.jsxs(hK,{children:["Environment:",g.jsx(dK,{dataTestId:"environment-select",options:ee,value:ee.find(({value:re})=>re===O.get()),onChange:D})]}),g.jsxs(pK,{children:[g.jsx(_.Segmented,{size:"small",options:V,value:y.get(),onChange:({value:re})=>y.set(re)}),g.jsx(_.CopyButton,{data:y.get()?k.get():Zt(k.get(),t),variant:"secondary",toasterPlacement:"left"})]})]}),g.jsxs(uK,{children:[g.jsx(fK,{dataTestId:"request-method-select",options:G,value:Z.find(({value:re})=>re===C.get()),onChange:B,formatGroupLabel:re=>g.jsx(sh,{data:re,getTooltipText:PJ})}),g.jsx(Ke,{dataTestId:"url-input",value:k.get(),environment:e,placeholder:"Enter your URL to submit the request",editable:y.get(),onChange:re=>{k.set(re),U(re)}}),g.jsx(_.Button,{variant:"primary",size:c?"medium":"small ",icon:v.get()?g.jsx(_.CircleDashIcon,{}):g.jsx(_.ArrowRightIcon,{}),iconPosition:"right",disabled:!k.get()||v.get(),onClick:N,children:c?null:v.get()?"Sending":"Send"})]}),g.jsx(pJ,{}),b.get()&&g.jsx(HJ,{requestName:(ce=S.get())==null?void 0:ce.name,onClose:o,onDiscard:s,onSave:a})]})}const sK=T.div`
1744
+ display: flex;
1745
+ flex-direction: column;
1746
+ height: 100%;
1747
+ `,aK=T.div`
1748
+ display: flex;
1749
+ padding: var(--spacing-sm) var(--spacing-xs) var(--spacing-sm) var(--spacing-lg);
1750
1750
  align-items: center;
1751
- width: 100%;
1752
- gap: var(--spacing-xxs);
1753
- color: var(--text-color-primary);
1751
+ gap: var(--spacing-xs);
1752
+ border-bottom: 1px solid var(--border-color-secondary);
1753
+ `,lK=T.div`
1754
+ display: flex;
1755
+ padding: var(--spacing-xs) var(--spacing-xs) var(--spacing-xs) var(--spacing-lg);
1756
+ align-items: center;
1757
+ justify-content: space-between;
1758
+ gap: var(--spacing-xs);
1759
+ border-bottom: 1px solid var(--border-color-secondary);
1760
+ min-height: 40px;
1754
1761
  font-size: var(--font-size-base);
1755
- font-weight: var(--font-weight-regular);
1756
1762
  line-height: var(--line-height-base);
1757
- padding-left: var(--spacing-base);
1758
- padding-top: var(--spacing-xs);
1759
- `,sK=T.div`
1760
- overflow: hidden;
1761
- min-width: 0;
1762
- text-overflow: ellipsis;
1763
- white-space: nowrap;
1764
- `,aK=T.span`
1765
- color: ${({$isEmpty:t})=>t?"var(--color-warm-grey-5)":"var(--text-color-secondary)"};
1766
- font-size: var(--font-size-sm);
1767
- font-weight: var(--font-weight-regular);
1768
- line-height: var(--line-height-sm);
1769
- padding-left: var(--spacing-base);
1770
- word-wrap: break-word;
1771
- max-width: 100%;
1772
- overflow: hidden;
1773
- text-overflow: ellipsis;
1774
- display: -webkit-box;
1775
- -webkit-line-clamp: 2;
1776
- -webkit-box-orient: vertical;
1777
- `,lK=T(dc)`
1778
- padding-left: 39px;
1779
- margin-left: -23px;
1780
- `;function cK({defaultName:t,onChange:e,onApplyNewName:n,onCancelEditing:r,icon:i,placeholder:o="New Folder"}){const[s,a]=j.useState(t),l=u=>{a(u.target.value),e==null||e(u)},c=s.trim();return g.jsx(Po,{onClickOutside:r,children:g.jsxs(AJ,{children:[i,g.jsx(Jo,{"data-testid":"edit-item-header-input",type:"text",placeholder:o,value:s,onChange:l}),g.jsxs(uK,{children:[g.jsx(_.Button,{"data-testid":"edit-item-header-save-button",variant:"primary",onClick:()=>n(c),disabled:!c,children:g.jsx(_.CheckmarkIcon,{})}),g.jsx(_.Button,{variant:"text",onClick:r,icon:g.jsx(_.CloseIcon,{})})]})]})})}const uK=T.div`
1763
+
1764
+ @media (max-width: ${Kn}px) {
1765
+ padding: var(--spacing-xs);
1766
+ }
1767
+ `,cK=T.div`
1781
1768
  display: flex;
1782
- gap: var(--spacing-xs);
1783
- `;function fK({environment:t,defaultExpanded:e}){const[n,r]=j.useState(!1),{sendEvent:i}=ct(),{state:o,canBeEdited:s,canBeRemoved:a,name:l}=t.get(),c=()=>{t.set(lt),i("environment_creation_cancelled",{})},u=()=>{t.state.set(br.Normal),i("environment_editing_cancelled",{name:l})},f=()=>{t.state.set(br.Edit),i("environment_editing_started",{name:l})},d=()=>{t.set(lt),i("environment_removed",{name:l})},h=x=>{o===br.Draft?i("environment_creation_finished",{name:x}):i("environment_edited",{name:l,newName:x}),t.state.set(br.Normal),x.length&&t.name.set(x)},p=()=>{r(!0),i("environment_variable_creation_started",{name:l})},O=x=>{t.variables.set(v=>[x,...v]),r(!1),i("environment_variable_creation_finished",{name:l,variable:x.name,isSecret:x.isSecret})},m=()=>{r(!1),i("environment_variable_creation_cancelled",{name:l})};return o===br.Edit||o===br.Draft?g.jsx(cK,{placeholder:"New Environment",defaultName:l,onApplyNewName:h,onCancelEditing:o===br.Draft?c:u,icon:o===br.Edit?g.jsx(_.ChevronRightIcon,{size:"14px",color:"--text-color-secondary"}):g.jsx(_.AddIcon,{})}):g.jsx(g.Fragment,{children:g.jsxs(Fd,{dataTestId:`environment-${l}`,title:l,defaultExpanded:e,controls:g.jsxs(dK,{children:[s&&g.jsx(zs,{size:"small",variant:"text",icon:g.jsx(_.EditIcon,{}),onClick:f,"data-testid":`edit-environment-${l}`}),a&&g.jsx(ya,{description:KJ.replace("{name}",l),onConfirm:d,children:g.jsx($r,{variant:"text",icon:g.jsx(_.TrashCanIcon,{}),"data-testid":`remove-environment-${l}`})}),(!s||!a)&&g.jsx(To,{content:UJ,children:g.jsx(zs,{size:"small",variant:"text",icon:g.jsx(_.InformationIcon,{})})})]}),children:[n?g.jsx(gK,{variable:Ef(),onSave:O,onCancel:m,isNew:!0}):g.jsx(pK,{icon:g.jsx(_.AddIcon,{}),variant:"secondary",onClick:p,iconPosition:"left",size:"small",children:"New variable"}),t.variables.map(x=>g.jsx(j.Fragment,{children:g.jsx(nK,{variable:x,environment:t})},x.get().id))]})})}const dK=T.div`
1769
+ align-items: center;
1770
+
1771
+ color: var(--text-color-primary);
1772
+ font-size: var(--font-size-lg);
1773
+ font-weight: var(--font-weight-semibold);
1774
+ line-height: var(--line-height-lg);
1775
+ `,uK=T.div`
1784
1776
  display: flex;
1785
1777
  flex-direction: row;
1778
+ align-items: center;
1779
+ border-bottom: 1px solid var(--border-color-secondary);
1780
+ padding: 0 var(--spacing-xs) 0 var(--spacing-base);
1786
1781
  gap: var(--spacing-xxs);
1782
+
1783
+ @media (max-width: ${Kn}px) {
1784
+ padding: 0 var(--spacing-xs);
1785
+ }
1786
+ `,fK=T(ko)`
1787
+ display: flex;
1788
+ border-radius: 0;
1789
+ border-right: 1px solid var(--border-color-secondary);
1790
+ height: 100%;
1791
+
1792
+ [class*='control'] {
1793
+ width: 110px;
1794
+ }
1795
+
1796
+ [class*='menu'] {
1797
+ width: 110px;
1798
+ }
1799
+
1800
+ [class*='MenuList'] {
1801
+ max-height: 320px;
1802
+ }
1803
+
1804
+ svg {
1805
+ width: 12px;
1806
+ height: 12px;
1807
+ }
1808
+
1809
+ @media (max-width: ${Kn}px) {
1810
+ [class*='control'] {
1811
+ width: 80px;
1812
+ }
1813
+
1814
+ [class*='menu'] {
1815
+ width: 110px;
1816
+ top: 30px;
1817
+ position: absolute;
1818
+ z-index: 103;
1819
+ }
1820
+
1821
+ [class*='MenuList'] {
1822
+ max-height: 180px;
1823
+ }
1824
+ }
1825
+ `,dK=T(ko)`
1826
+ display: flex;
1827
+ border-radius: var(--border-radius-md);
1828
+
1829
+ [class*='control'] {
1830
+ padding: 0;
1831
+ font-size: var(--font-size-base);
1832
+ font-style: normal;
1833
+ font-weight: var(--font-weight-regular);
1834
+ line-height: var(--line-height-base);
1835
+ }
1836
+
1837
+ [class*='menu'] {
1838
+ min-width: 164px;
1839
+ z-index: 101;
1840
+ }
1841
+
1842
+ @media (max-width: ${Kn}px) {
1843
+ [class*='menu'] {
1844
+ max-width: calc(100vw - 110px);
1845
+ z-index: 101;
1846
+ }
1847
+ }
1848
+
1849
+ svg {
1850
+ width: 14px;
1851
+ height: 14px;
1852
+ }
1853
+ `,hK=T.div`
1854
+ display: flex;
1787
1855
  align-items: center;
1788
- `,hK=T(_.Button)`
1789
- align-self: flex-start;
1790
- margin: 0;
1791
- `,pK=T(hK)`
1792
- margin: 8px 0 8px -7px;
1793
- font-size: var(--font-size-base);
1794
- font-weight: var(--font-weight-regular);
1795
- line-height: var(--line-height-base);
1796
- `,gK=T(dc)`
1797
- padding-left: 39px;
1798
- margin-left: -23px;
1799
- `;function mK(){const[t,e]=j.useState(""),{environments:n,selectedEnvironmentId:r}=je(),{MobileHeader:i}=Yr(),{sendEvent:o}=ct(),s=j.useMemo(()=>n.filter(c=>c.name.get().toLowerCase().includes(t.toLowerCase())),[t,n]),a=()=>{e(""),n.set(c=>[{id:crypto.randomUUID(),name:"",variables:[],state:br.Draft,canBeRemoved:!0,canBeEdited:!0},...c]),o("environment_creation_started",{})},l=c=>{e(c)};return g.jsxs(Lx,{children:[g.jsx(i,{}),g.jsxs(Ac,{children:[g.jsx(kc,{value:t,onSearch:l}),g.jsx(Qe,{}),g.jsx(G$,{children:g.jsx(_.Button,{"data-testid":"add-environment-btn",variant:"text",disabled:!!n.find(({state:c})=>c.get()===br.Draft),onClick:a,size:"small",icon:g.jsx(_.AddIcon,{})})})]}),g.jsx(fh,{children:s.map(c=>g.jsx(fK,{environment:c,defaultExpanded:c.get().id===r.get()},c.id.get()))})]})}function NC({name:t,value:e}){const[n,r]=j.useState(!1),{sendEvent:i}=ct(),o=()=>{i("app_credential_visibility_toggled",{name:t,visible:!n}),r(!n)},s=()=>{i("app_credential_copied",{name:t})};return g.jsxs(OK,{children:[g.jsxs(xK,{children:[g.jsx(vK,{children:t}),g.jsx(yK,{children:n?e:"••••••••••••••••••••••••••••••••••••"})]}),g.jsxs(bK,{children:[g.jsx(_.Button,{variant:"text",size:"small",icon:n?g.jsx(_.ViewIcon,{}):g.jsx(_.ViewOffIcon,{}),onClick:o}),g.jsx(_.CopyButton,{toasterPlacement:"left",data:e,onCopyClick:s})]})]})}const OK=T.div`
1856
+ gap: var(--spacing-xs);
1857
+ @media (max-width: ${Kn}px) {
1858
+ padding-left: var(--spacing-xs);
1859
+ }
1860
+ `,pK=T.div`
1800
1861
  display: flex;
1801
- padding: var(--spacing-xs) var(--spacing-xs);
1802
- align-items: flex-start;
1862
+ align-items: center;
1803
1863
  gap: var(--spacing-xs);
1804
- align-self: stretch;
1864
+ `,gK=T.div`
1865
+ display: flex;
1866
+ gap: calc(var(--spacing-xxs) / 2);
1867
+ flex-grow: 1;
1868
+ justify-content: end;
1869
+ `;function mK(t,e=2){if(t===0)return"0 B";const n=1024,r=e<0?0:e,i=["B","kB","MB","GB","TB","PB"],o=Math.floor(Math.log(t)/Math.log(n));return parseFloat((t/Math.pow(n,o)).toFixed(r))+" "+i[o]}function q$({panel:t,response:e}){const n=e==null?void 0:e.get();return g.jsxs(OK,{children:[g.jsxs(xK,{children:[g.jsx(yK,{size:"small",icon:t.isCollapsed?g.jsx(_.ChevronRightIcon,{size:"14px",color:"--button-content-color"}):g.jsx(_.ChevronDownIcon,{size:"14px",color:"--button-content-color"}),onClick:()=>t.isCollapsed?t.expand():t.collapse()}),g.jsx(vK,{children:"Response"})]}),n&&g.jsxs(bK,{children:[g.jsxs(bg,{children:[g.jsx(_.StatusCode,{status:String(n.status)}),n.status]}),g.jsxs(bg,{children:[g.jsx(_.TimeIcon,{}),n.duration," ms"]}),g.jsxs(bg,{children:[g.jsx(_.FileStorageIcon,{}),mK(n.size)]})]})]})}const OK=T.div`
1870
+ display: flex;
1871
+ justify-content: space-between;
1805
1872
  `,xK=T.div`
1806
1873
  display: flex;
1807
- align-items: flex-start;
1808
- gap: 10px;
1809
- flex: 1 0 0;
1874
+ justify-content: space-between;
1875
+ gap: var(--spacing-xs);
1876
+ align-items: center;
1810
1877
  `,vK=T.div`
1811
- display: -webkit-box;
1812
- width: var(--64-px-4-rem-spacing-11, 64px);
1813
- -webkit-box-orient: vertical;
1814
- -webkit-line-clamp: 1;
1815
- overflow: hidden;
1816
- color: var(--text-color-primary);
1817
- text-overflow: ellipsis;
1818
-
1819
- font-size: var(--font-size-sm);
1820
- font-style: normal;
1821
- font-weight: var(--font-weight-semibold);
1822
- line-height: var(--line-height-sm);
1823
- `,yK=T.div`
1878
+ display: flex;
1879
+ align-items: center;
1824
1880
  flex: 1 0 0;
1825
1881
  color: var(--text-color-primary);
1826
- font-size: var(--font-size-sm);
1827
- font-style: normal;
1828
- font-weight: var(--font-weight-regular);
1829
- line-height: var(--line-height-sm);
1882
+ font-size: var(--font-size-lg);
1883
+ font-weight: var(--font-weight-semibold);
1884
+ line-height: var(--line-height-lg);
1885
+ `,yK=T(_.Button)`
1886
+ height: var(--line-height-lg);
1887
+ width: var(--line-height-lg);
1830
1888
  `,bK=T.div`
1831
1889
  display: flex;
1832
- justify-content: flex-end;
1833
1890
  align-items: center;
1834
- gap: var(--spacing-xxs);
1835
- `;function SK({credential:t,number:e}){const{requestActiveTabIdx:n,request:{security:{securities:r,selectedSecuritySchemeId:i}}}=je(),o=an(),{clientId:s,clientSecret:a,valueToUseInHeader:l}=t,{sendEvent:c}=ct(),u=()=>{n.set(RH);const d=Na(r,i.get())[0];if(!d.get())return;const{securityType:h,...p}=d,O=(m,x)=>{if(m.get()===se.AuthorizationCode){const{clientId:v,clientSecret:y}=x[se.AuthorizationCode];(s||a)&&gn(s||a||"",v,o),a&&gn(a,y,o)}if(m.get()===se.Implicit){const{clientId:v}=x[se.Implicit];(s||a)&&gn(s||a||"",v,o)}if(m.get()===se.ClientCredentials){const{clientId:v,clientSecret:y}=x[se.ClientCredentials];(s||a)&&gn(s||a||"",v,o),a&&gn(a,y,o)}if(m.get()===se.Password){const{clientId:v,clientSecret:y}=x[se.Password];(s||a)&&gn(s||a||"",v,o),a&&gn(a,y,o)}};if(h.get()===K.BasicAuth){const{username:m,password:x}=p[K.BasicAuth];(s||a)&&gn(s||a||"",m,o),a&&gn(a,x,o)}if(h.get()===K.DigestAuth){const{username:m,password:x}=p[K.DigestAuth];(s||a)&&gn(s||a||"",m,o),a&&gn(a,x,o)}if(h.get()===K.JWT){const{token:m}=p[K.JWT];(s||a)&&gn(s||a||"",m,o)}if(h.get()===K.APIKey){const{key:m}=p[K.APIKey];gn(t[l||"clientSecret"]||s||"",m,o)}if(h.get()===K.OAuth2){const m=p[K.OAuth2],x=m.grantType;O(x,m)}if(h.get()===K.OpenIDConnect){const m=p[K.OpenIDConnect],{grantType:x}=m;O(x,m)}c("apps_use_key_clicked",{number:e})};return g.jsxs(wK,{children:[g.jsxs(CK,{children:[g.jsx(AK,{children:e.toString().padStart(2,"0")}),g.jsxs(kK,{children:[t.stage&&g.jsx(_.Tag,{color:"gray",children:t.stage}),g.jsx(_.Tag,{color:"green",children:t.status})]})]}),s&&g.jsx(NC,{name:"API key",value:s}),a&&g.jsx(NC,{name:s?"Secret":"API key",value:a}),g.jsx(PK,{children:g.jsx(_.Button,{size:"small",variant:"secondary",onClick:u,children:"Use key"})})]})}const wK=T.div`
1891
+ gap: var(--spacing-sm);
1892
+ `,bg=T.div`
1836
1893
  display: flex;
1837
- flex-direction: column;
1838
- align-self: stretch;
1839
- margin-top: var(--spacing-xs);
1894
+ align-items: center;
1895
+ justify-content: space-between;
1896
+ gap: var(--spacing-xs);
1897
+ font-size: var(--font-size-base);
1898
+ line-height: var(--line-height-base);
1899
+ color: var(--text-color-primary);
1900
+ background-color: var(--layer-color);
1901
+ padding: var(--spacing-xs) var(--spacing-sm);
1840
1902
  border-radius: var(--border-radius-md);
1841
- border: 1px solid var(--border-color-secondary);
1842
- background: var(--bg-color);
1843
- word-break: break-all;
1844
- text-wrap: wrap;
1845
1903
 
1846
- & > :not(:last-child) {
1847
- border-bottom: 1px solid var(--border-color-secondary);
1904
+ @media (max-width: ${Kn}px) {
1905
+ background: none;
1906
+ text-wrap: nowrap;
1907
+ gap: var(--spacing-xs);
1908
+ padding: 0;
1848
1909
  }
1849
- `,CK=T.div`
1910
+ `;function SK(t){try{return JSON.stringify(JSON.parse(t),null,2)}catch{return t}}const wK=t=>{var e;return(e=t==null?void 0:t.find(([n])=>n.toLowerCase()==="content-type"))==null?void 0:e[1].split(";")[0]},CK=t=>{switch(!0){case t.includes("json"):return Cr.JSON;case t.includes("xml"):return Cr.XML;case t.includes("html"):return Cr.HTML;case t.includes("image"):return Cr.Image;default:return Cr.Text}},Gx=T.div`
1850
1911
  display: flex;
1851
1912
  justify-content: space-between;
1852
- padding: var(--spacing-xs) var(--spacing-xs);
1853
- border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
1854
1913
  align-items: center;
1855
- align-self: stretch;
1856
- background: var(--layer-color);
1857
- `,kK=T.div`
1858
- display: flex;
1859
- gap: var(--spacing-xxs);
1860
- `,AK=T.div`
1861
- color: var(--text-color-secondary, #3b3c45);
1862
- font-size: var(--font-size-sm);
1863
- font-style: normal;
1914
+ font-size: var(--font-size-base);
1864
1915
  font-weight: var(--font-weight-regular);
1865
- line-height: var(--line-height-sm);
1866
- `,PK=T.div`
1867
- display: flex;
1868
- padding: var(--spacing-xs) var(--spacing-xs);
1869
- border-radius: 0 0 var(--border-radius-md) var(--border-radius-md);
1870
- justify-content: flex-end;
1871
- align-items: center;
1872
- align-self: stretch;
1873
- background: var(--layer-color);
1874
- `;function EK({app:t}){const[e,n]=j.useState(!1),{title:r,credentials:i,id:o}=t,s=i.get()||[],a=l=>{l&&!i.get()&&(n(!0),qo(`/api/api-keys/apps/${o.get()}`).then(c=>c.json().then(u=>{c.ok&&i.set(u.credentials)}).catch(()=>console.log("Something went wrong")).finally(()=>n(!1))))};return g.jsx(Fd,{dataTestId:`app-${name}`,title:r.get(),onToggle:a,children:g.jsx(IK,{children:e?g.jsx(TK,{children:g.jsx(_.SpinnerIcon,{size:"16px",color:"--icon-color-additional"})}):s.length?s.map((l,c)=>g.jsx(SK,{credential:l,number:c+1},l.id)):g.jsx($K,{children:"There are no credentials yet."})})})}const IK=T.div`
1875
- padding-bottom: var(--spacing-xxs);
1876
- margin-left: -7px;
1877
- padding-right: var(--spacing-base);
1878
- `,TK=T.div`
1916
+ line-height: var(--line-height-base);
1917
+ font-style: normal;
1918
+ border-top: 1px solid var(--border-color-secondary);
1919
+ min-height: 40px;
1920
+ min-width: 500px;
1921
+ `,U$=T.div`
1879
1922
  display: flex;
1880
- height: 224px;
1881
- justify-content: center;
1923
+ flex-direction: column;
1924
+ border-top: 1px solid var(--border-color-secondary);
1925
+ min-width: 500px;
1926
+ overflow-x: auto;
1927
+ `,H$=T.div`
1928
+ display: grid;
1929
+ grid-template-columns: 1fr 1fr 40px;
1882
1930
  align-items: center;
1883
- `,$K=T.div`
1931
+ border-bottom: 1px solid var(--border-color-secondary);
1932
+ `,J$=T.div`
1884
1933
  display: flex;
1885
- justify-content: center;
1934
+ flex-grow: 1;
1886
1935
  align-items: center;
1887
- height: 112px;
1936
+ padding: 0;
1937
+ height: 40px;
1938
+ border-right: 1px solid var(--border-color-secondary);
1939
+ color: var(--text-color-primary);
1888
1940
  font-size: var(--font-size-base);
1941
+ font-weight: var(--font-weight-regular);
1889
1942
  line-height: var(--line-height-base);
1890
- color: var(--text-color-secondary);
1891
- `;function jK(){const[t,e]=j.useState(""),{apps:n,apiId:r,appsLoadingState:i}=je(),{MobileHeader:o}=Yr(),{sendEvent:s}=ct(),a=()=>{window.open("/apps","_blank"),s("apps_request_access_clicked",{})};j.useEffect(()=>((i.get()===ri.Idle||i.get()===ri.Error)&&(i.set(ri.Loading),qo(`/api/api-keys/api-products/${r.get()}/access?expand=0`).then(u=>u.json().then(f=>{u.ok?(n.set(f.apps||[]),i.set(ri.Success)):i.set(ri.Error)}).catch(()=>i.set(ri.Error)))),()=>{n.set([]),i.set(ri.Idle)}),[r]);const l=j.useMemo(()=>n.filter(u=>u.title.get().toLowerCase().includes(t.toLowerCase())),[t,n]),c=u=>{e(u)};return i.get()===ri.Loading?g.jsx(DK,{children:g.jsx(_.SpinnerIcon,{size:"24px",color:"--icon-color-additional"})}):n.length?g.jsxs(RK,{children:[g.jsx(o,{}),g.jsx(Ac,{children:g.jsx(kc,{value:t,onSearch:c})}),g.jsx(fh,{children:l.map(u=>g.jsx(EK,{app:u},u.get().id))})]}):g.jsxs(g.Fragment,{children:[g.jsx(o,{}),g.jsxs(Y$,{children:["You don't have any apps with access to this API",g.jsx(_.Button,{onClick:a,children:"Request access"})]})]})}const RK=T.div`
1892
- display: flex;
1893
- flex-direction: column;
1894
- width: 100%;
1895
- `,DK=T.div`
1896
- display: flex;
1897
- justify-content: center;
1898
- align-items: center;
1943
+ overflow: auto;
1944
+ `,fh=T.div`
1899
1945
  width: 100%;
1900
- height: calc(100vh - 50px);
1901
- `;/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function H$(t){return typeof t>"u"||t===null}function QK(t){return typeof t=="object"&&t!==null}function BK(t){return Array.isArray(t)?t:H$(t)?[]:[t]}function _K(t,e){var n,r,i,o;if(e)for(o=Object.keys(e),n=0,r=o.length;n<r;n+=1)i=o[n],t[i]=e[i];return t}function MK(t,e){var n="",r;for(r=0;r<e;r+=1)n+=t;return n}function NK(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var FK=H$,ZK=QK,WK=BK,VK=MK,zK=NK,LK=_K,on={isNothing:FK,isObject:ZK,toArray:WK,repeat:VK,isNegativeZero:zK,extend:LK};function J$(t,e){var n="",r=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(n+='in "'+t.mark.name+'" '),n+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(n+=`
1902
-
1903
- `+t.mark.snippet),r+" "+n):r}function oc(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=J$(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}oc.prototype=Object.create(Error.prototype);oc.prototype.constructor=oc;oc.prototype.toString=function(e){return this.name+": "+J$(this,e)};var Fn=oc;function bg(t,e,n,r,i){var o="",s="",a=Math.floor(i/2)-1;return r-e>a&&(o=" ... ",e=r-a+o.length),n-r>a&&(s=" ...",n=r+a-s.length),{str:o+t.slice(e,n).replace(/\t/g,"→")+s,pos:r-e+o.length}}function Sg(t,e){return on.repeat(" ",e-t.length)+t}function XK(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),typeof e.indent!="number"&&(e.indent=1),typeof e.linesBefore!="number"&&(e.linesBefore=3),typeof e.linesAfter!="number"&&(e.linesAfter=2);for(var n=/\r?\n|\r|\0/g,r=[0],i=[],o,s=-1;o=n.exec(t.buffer);)i.push(o.index),r.push(o.index+o[0].length),t.position<=o.index&&s<0&&(s=r.length-2);s<0&&(s=r.length-1);var a="",l,c,u=Math.min(t.line+e.linesAfter,i.length).toString().length,f=e.maxLength-(e.indent+u+3);for(l=1;l<=e.linesBefore&&!(s-l<0);l++)c=bg(t.buffer,r[s-l],i[s-l],t.position-(r[s]-r[s-l]),f),a=on.repeat(" ",e.indent)+Sg((t.line-l+1).toString(),u)+" | "+c.str+`
1904
- `+a;for(c=bg(t.buffer,r[s],i[s],t.position,f),a+=on.repeat(" ",e.indent)+Sg((t.line+1).toString(),u)+" | "+c.str+`
1905
- `,a+=on.repeat("-",e.indent+u+3+c.pos)+`^
1906
- `,l=1;l<=e.linesAfter&&!(s+l>=i.length);l++)c=bg(t.buffer,r[s+l],i[s+l],t.position-(r[s]-r[s+l]),f),a+=on.repeat(" ",e.indent)+Sg((t.line+l+1).toString(),u)+" | "+c.str+`
1907
- `;return a.replace(/\n$/,"")}var GK=XK,YK=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],qK=["scalar","sequence","mapping"];function UK(t){var e={};return t!==null&&Object.keys(t).forEach(function(n){t[n].forEach(function(r){e[String(r)]=n})}),e}function HK(t,e){if(e=e||{},Object.keys(e).forEach(function(n){if(YK.indexOf(n)===-1)throw new Fn('Unknown option "'+n+'" is met in definition of "'+t+'" YAML type.')}),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(n){return n},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=UK(e.styleAliases||null),qK.indexOf(this.kind)===-1)throw new Fn('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var An=HK;function FC(t,e){var n=[];return t[e].forEach(function(r){var i=n.length;n.forEach(function(o,s){o.tag===r.tag&&o.kind===r.kind&&o.multi===r.multi&&(i=s)}),n[i]=r}),n}function JK(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},e,n;function r(i){i.multi?(t.multi[i.kind].push(i),t.multi.fallback.push(i)):t[i.kind][i.tag]=t.fallback[i.tag]=i}for(e=0,n=arguments.length;e<n;e+=1)arguments[e].forEach(r);return t}function Ym(t){return this.extend(t)}Ym.prototype.extend=function(e){var n=[],r=[];if(e instanceof An)r.push(e);else if(Array.isArray(e))r=r.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(n=n.concat(e.implicit)),e.explicit&&(r=r.concat(e.explicit));else throw new Fn("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");n.forEach(function(o){if(!(o instanceof An))throw new Fn("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(o.loadKind&&o.loadKind!=="scalar")throw new Fn("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(o.multi)throw new Fn("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),r.forEach(function(o){if(!(o instanceof An))throw new Fn("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(Ym.prototype);return i.implicit=(this.implicit||[]).concat(n),i.explicit=(this.explicit||[]).concat(r),i.compiledImplicit=FC(i,"implicit"),i.compiledExplicit=FC(i,"explicit"),i.compiledTypeMap=JK(i.compiledImplicit,i.compiledExplicit),i};var K$=Ym,ej=new An("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),tj=new An("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),nj=new An("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),rj=new K$({explicit:[ej,tj,nj]});function KK(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}function eee(){return null}function tee(t){return t===null}var ij=new An("tag:yaml.org,2002:null",{kind:"scalar",resolve:KK,construct:eee,predicate:tee,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function nee(t){if(t===null)return!1;var e=t.length;return e===4&&(t==="true"||t==="True"||t==="TRUE")||e===5&&(t==="false"||t==="False"||t==="FALSE")}function ree(t){return t==="true"||t==="True"||t==="TRUE"}function iee(t){return Object.prototype.toString.call(t)==="[object Boolean]"}var oj=new An("tag:yaml.org,2002:bool",{kind:"scalar",resolve:nee,construct:ree,predicate:iee,represent:{lowercase:function(t){return t?"true":"false"},uppercase:function(t){return t?"TRUE":"FALSE"},camelcase:function(t){return t?"True":"False"}},defaultStyle:"lowercase"});function oee(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function see(t){return 48<=t&&t<=55}function aee(t){return 48<=t&&t<=57}function lee(t){if(t===null)return!1;var e=t.length,n=0,r=!1,i;if(!e)return!1;if(i=t[n],(i==="-"||i==="+")&&(i=t[++n]),i==="0"){if(n+1===e)return!0;if(i=t[++n],i==="b"){for(n++;n<e;n++)if(i=t[n],i!=="_"){if(i!=="0"&&i!=="1")return!1;r=!0}return r&&i!=="_"}if(i==="x"){for(n++;n<e;n++)if(i=t[n],i!=="_"){if(!oee(t.charCodeAt(n)))return!1;r=!0}return r&&i!=="_"}if(i==="o"){for(n++;n<e;n++)if(i=t[n],i!=="_"){if(!see(t.charCodeAt(n)))return!1;r=!0}return r&&i!=="_"}}if(i==="_")return!1;for(;n<e;n++)if(i=t[n],i!=="_"){if(!aee(t.charCodeAt(n)))return!1;r=!0}return!(!r||i==="_")}function cee(t){var e=t,n=1,r;if(e.indexOf("_")!==-1&&(e=e.replace(/_/g,"")),r=e[0],(r==="-"||r==="+")&&(r==="-"&&(n=-1),e=e.slice(1),r=e[0]),e==="0")return 0;if(r==="0"){if(e[1]==="b")return n*parseInt(e.slice(2),2);if(e[1]==="x")return n*parseInt(e.slice(2),16);if(e[1]==="o")return n*parseInt(e.slice(2),8)}return n*parseInt(e,10)}function uee(t){return Object.prototype.toString.call(t)==="[object Number]"&&t%1===0&&!on.isNegativeZero(t)}var sj=new An("tag:yaml.org,2002:int",{kind:"scalar",resolve:lee,construct:cee,predicate:uee,represent:{binary:function(t){return t>=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},octal:function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},decimal:function(t){return t.toString(10)},hexadecimal:function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),fee=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function dee(t){return!(t===null||!fee.test(t)||t[t.length-1]==="_")}function hee(t){var e,n;return e=t.replace(/_/g,"").toLowerCase(),n=e[0]==="-"?-1:1,"+-".indexOf(e[0])>=0&&(e=e.slice(1)),e===".inf"?n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:e===".nan"?NaN:n*parseFloat(e,10)}var pee=/^[-+]?[0-9]+e/;function gee(t,e){var n;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(on.isNegativeZero(t))return"-0.0";return n=t.toString(10),pee.test(n)?n.replace("e",".e"):n}function mee(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||on.isNegativeZero(t))}var aj=new An("tag:yaml.org,2002:float",{kind:"scalar",resolve:dee,construct:hee,predicate:mee,represent:gee,defaultStyle:"lowercase"}),lj=rj.extend({implicit:[ij,oj,sj,aj]}),cj=lj,uj=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),fj=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function Oee(t){return t===null?!1:uj.exec(t)!==null||fj.exec(t)!==null}function xee(t){var e,n,r,i,o,s,a,l=0,c=null,u,f,d;if(e=uj.exec(t),e===null&&(e=fj.exec(t)),e===null)throw new Error("Date resolve error");if(n=+e[1],r=+e[2]-1,i=+e[3],!e[4])return new Date(Date.UTC(n,r,i));if(o=+e[4],s=+e[5],a=+e[6],e[7]){for(l=e[7].slice(0,3);l.length<3;)l+="0";l=+l}return e[9]&&(u=+e[10],f=+(e[11]||0),c=(u*60+f)*6e4,e[9]==="-"&&(c=-c)),d=new Date(Date.UTC(n,r,i,o,s,a,l)),c&&d.setTime(d.getTime()-c),d}function vee(t){return t.toISOString()}var dj=new An("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Oee,construct:xee,instanceOf:Date,represent:vee});function yee(t){return t==="<<"||t===null}var hj=new An("tag:yaml.org,2002:merge",{kind:"scalar",resolve:yee}),Yx=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
1908
- \r`;function bee(t){if(t===null)return!1;var e,n,r=0,i=t.length,o=Yx;for(n=0;n<i;n++)if(e=o.indexOf(t.charAt(n)),!(e>64)){if(e<0)return!1;r+=6}return r%8===0}function See(t){var e,n,r=t.replace(/[\r\n=]/g,""),i=r.length,o=Yx,s=0,a=[];for(e=0;e<i;e++)e%4===0&&e&&(a.push(s>>16&255),a.push(s>>8&255),a.push(s&255)),s=s<<6|o.indexOf(r.charAt(e));return n=i%4*6,n===0?(a.push(s>>16&255),a.push(s>>8&255),a.push(s&255)):n===18?(a.push(s>>10&255),a.push(s>>2&255)):n===12&&a.push(s>>4&255),new Uint8Array(a)}function wee(t){var e="",n=0,r,i,o=t.length,s=Yx;for(r=0;r<o;r++)r%3===0&&r&&(e+=s[n>>18&63],e+=s[n>>12&63],e+=s[n>>6&63],e+=s[n&63]),n=(n<<8)+t[r];return i=o%3,i===0?(e+=s[n>>18&63],e+=s[n>>12&63],e+=s[n>>6&63],e+=s[n&63]):i===2?(e+=s[n>>10&63],e+=s[n>>4&63],e+=s[n<<2&63],e+=s[64]):i===1&&(e+=s[n>>2&63],e+=s[n<<4&63],e+=s[64],e+=s[64]),e}function Cee(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}var pj=new An("tag:yaml.org,2002:binary",{kind:"scalar",resolve:bee,construct:See,predicate:Cee,represent:wee}),kee=Object.prototype.hasOwnProperty,Aee=Object.prototype.toString;function Pee(t){if(t===null)return!0;var e=[],n,r,i,o,s,a=t;for(n=0,r=a.length;n<r;n+=1){if(i=a[n],s=!1,Aee.call(i)!=="[object Object]")return!1;for(o in i)if(kee.call(i,o))if(!s)s=!0;else return!1;if(!s)return!1;if(e.indexOf(o)===-1)e.push(o);else return!1}return!0}function Eee(t){return t!==null?t:[]}var gj=new An("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Pee,construct:Eee}),Iee=Object.prototype.toString;function Tee(t){if(t===null)return!0;var e,n,r,i,o,s=t;for(o=new Array(s.length),e=0,n=s.length;e<n;e+=1){if(r=s[e],Iee.call(r)!=="[object Object]"||(i=Object.keys(r),i.length!==1))return!1;o[e]=[i[0],r[i[0]]]}return!0}function $ee(t){if(t===null)return[];var e,n,r,i,o,s=t;for(o=new Array(s.length),e=0,n=s.length;e<n;e+=1)r=s[e],i=Object.keys(r),o[e]=[i[0],r[i[0]]];return o}var mj=new An("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Tee,construct:$ee}),jee=Object.prototype.hasOwnProperty;function Ree(t){if(t===null)return!0;var e,n=t;for(e in n)if(jee.call(n,e)&&n[e]!==null)return!1;return!0}function Dee(t){return t!==null?t:{}}var Oj=new An("tag:yaml.org,2002:set",{kind:"mapping",resolve:Ree,construct:Dee}),qx=cj.extend({implicit:[dj,hj],explicit:[pj,gj,mj,Oj]}),Co=Object.prototype.hasOwnProperty,Od=1,xj=2,vj=3,xd=4,wg=1,Qee=2,ZC=3,Bee=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,_ee=/[\x85\u2028\u2029]/,Mee=/[,\[\]\{\}]/,yj=/^(?:!|!!|![a-z\-]+!)$/i,bj=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function WC(t){return Object.prototype.toString.call(t)}function xi(t){return t===10||t===13}function Ho(t){return t===9||t===32}function Jn(t){return t===9||t===32||t===10||t===13}function Ns(t){return t===44||t===91||t===93||t===123||t===125}function Nee(t){var e;return 48<=t&&t<=57?t-48:(e=t|32,97<=e&&e<=102?e-97+10:-1)}function Fee(t){return t===120?2:t===117?4:t===85?8:0}function Zee(t){return 48<=t&&t<=57?t-48:-1}function VC(t){return t===48?"\0":t===97?"\x07":t===98?"\b":t===116||t===9?" ":t===110?`
1909
- `:t===118?"\v":t===102?"\f":t===114?"\r":t===101?"\x1B":t===32?" ":t===34?'"':t===47?"/":t===92?"\\":t===78?"…":t===95?" ":t===76?"\u2028":t===80?"\u2029":""}function Wee(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}var Sj=new Array(256),wj=new Array(256);for(var As=0;As<256;As++)Sj[As]=VC(As)?1:0,wj[As]=VC(As);function Vee(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||qx,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function Cj(t,e){var n={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return n.snippet=GK(n),new Fn(e,n)}function ke(t,e){throw Cj(t,e)}function vd(t,e){t.onWarning&&t.onWarning.call(null,Cj(t,e))}var zC={YAML:function(e,n,r){var i,o,s;e.version!==null&&ke(e,"duplication of %YAML directive"),r.length!==1&&ke(e,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(r[0]),i===null&&ke(e,"ill-formed argument of the YAML directive"),o=parseInt(i[1],10),s=parseInt(i[2],10),o!==1&&ke(e,"unacceptable YAML version of the document"),e.version=r[0],e.checkLineBreaks=s<2,s!==1&&s!==2&&vd(e,"unsupported YAML version of the document")},TAG:function(e,n,r){var i,o;r.length!==2&&ke(e,"TAG directive accepts exactly two arguments"),i=r[0],o=r[1],yj.test(i)||ke(e,"ill-formed tag handle (first argument) of the TAG directive"),Co.call(e.tagMap,i)&&ke(e,'there is a previously declared suffix for "'+i+'" tag handle'),bj.test(o)||ke(e,"ill-formed tag prefix (second argument) of the TAG directive");try{o=decodeURIComponent(o)}catch{ke(e,"tag prefix is malformed: "+o)}e.tagMap[i]=o}};function go(t,e,n,r){var i,o,s,a;if(e<n){if(a=t.input.slice(e,n),r)for(i=0,o=a.length;i<o;i+=1)s=a.charCodeAt(i),s===9||32<=s&&s<=1114111||ke(t,"expected valid JSON character");else Bee.test(a)&&ke(t,"the stream contains non-printable characters");t.result+=a}}function LC(t,e,n,r){var i,o,s,a;for(on.isObject(n)||ke(t,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(n),s=0,a=i.length;s<a;s+=1)o=i[s],Co.call(e,o)||(e[o]=n[o],r[o]=!0)}function Fs(t,e,n,r,i,o,s,a,l){var c,u;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),c=0,u=i.length;c<u;c+=1)Array.isArray(i[c])&&ke(t,"nested arrays are not supported inside keys"),typeof i=="object"&&WC(i[c])==="[object Object]"&&(i[c]="[object Object]");if(typeof i=="object"&&WC(i)==="[object Object]"&&(i="[object Object]"),i=String(i),e===null&&(e={}),r==="tag:yaml.org,2002:merge")if(Array.isArray(o))for(c=0,u=o.length;c<u;c+=1)LC(t,e,o[c],n);else LC(t,e,o,n);else!t.json&&!Co.call(n,i)&&Co.call(e,i)&&(t.line=s||t.line,t.lineStart=a||t.lineStart,t.position=l||t.position,ke(t,"duplicated mapping key")),i==="__proto__"?Object.defineProperty(e,i,{configurable:!0,enumerable:!0,writable:!0,value:o}):e[i]=o,delete n[i];return e}function Ux(t){var e;e=t.input.charCodeAt(t.position),e===10?t.position++:e===13?(t.position++,t.input.charCodeAt(t.position)===10&&t.position++):ke(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function Yt(t,e,n){for(var r=0,i=t.input.charCodeAt(t.position);i!==0;){for(;Ho(i);)i===9&&t.firstTabInLine===-1&&(t.firstTabInLine=t.position),i=t.input.charCodeAt(++t.position);if(e&&i===35)do i=t.input.charCodeAt(++t.position);while(i!==10&&i!==13&&i!==0);if(xi(i))for(Ux(t),i=t.input.charCodeAt(t.position),r++,t.lineIndent=0;i===32;)t.lineIndent++,i=t.input.charCodeAt(++t.position);else break}return n!==-1&&r!==0&&t.lineIndent<n&&vd(t,"deficient indentation"),r}function dh(t){var e=t.position,n;return n=t.input.charCodeAt(e),!!((n===45||n===46)&&n===t.input.charCodeAt(e+1)&&n===t.input.charCodeAt(e+2)&&(e+=3,n=t.input.charCodeAt(e),n===0||Jn(n)))}function Hx(t,e){e===1?t.result+=" ":e>1&&(t.result+=on.repeat(`
1910
- `,e-1))}function zee(t,e,n){var r,i,o,s,a,l,c,u,f=t.kind,d=t.result,h;if(h=t.input.charCodeAt(t.position),Jn(h)||Ns(h)||h===35||h===38||h===42||h===33||h===124||h===62||h===39||h===34||h===37||h===64||h===96||(h===63||h===45)&&(i=t.input.charCodeAt(t.position+1),Jn(i)||n&&Ns(i)))return!1;for(t.kind="scalar",t.result="",o=s=t.position,a=!1;h!==0;){if(h===58){if(i=t.input.charCodeAt(t.position+1),Jn(i)||n&&Ns(i))break}else if(h===35){if(r=t.input.charCodeAt(t.position-1),Jn(r))break}else{if(t.position===t.lineStart&&dh(t)||n&&Ns(h))break;if(xi(h))if(l=t.line,c=t.lineStart,u=t.lineIndent,Yt(t,!1,-1),t.lineIndent>=e){a=!0,h=t.input.charCodeAt(t.position);continue}else{t.position=s,t.line=l,t.lineStart=c,t.lineIndent=u;break}}a&&(go(t,o,s,!1),Hx(t,t.line-l),o=s=t.position,a=!1),Ho(h)||(s=t.position+1),h=t.input.charCodeAt(++t.position)}return go(t,o,s,!1),t.result?!0:(t.kind=f,t.result=d,!1)}function Lee(t,e){var n,r,i;if(n=t.input.charCodeAt(t.position),n!==39)return!1;for(t.kind="scalar",t.result="",t.position++,r=i=t.position;(n=t.input.charCodeAt(t.position))!==0;)if(n===39)if(go(t,r,t.position,!0),n=t.input.charCodeAt(++t.position),n===39)r=t.position,t.position++,i=t.position;else return!0;else xi(n)?(go(t,r,i,!0),Hx(t,Yt(t,!1,e)),r=i=t.position):t.position===t.lineStart&&dh(t)?ke(t,"unexpected end of the document within a single quoted scalar"):(t.position++,i=t.position);ke(t,"unexpected end of the stream within a single quoted scalar")}function Xee(t,e){var n,r,i,o,s,a;if(a=t.input.charCodeAt(t.position),a!==34)return!1;for(t.kind="scalar",t.result="",t.position++,n=r=t.position;(a=t.input.charCodeAt(t.position))!==0;){if(a===34)return go(t,n,t.position,!0),t.position++,!0;if(a===92){if(go(t,n,t.position,!0),a=t.input.charCodeAt(++t.position),xi(a))Yt(t,!1,e);else if(a<256&&Sj[a])t.result+=wj[a],t.position++;else if((s=Fee(a))>0){for(i=s,o=0;i>0;i--)a=t.input.charCodeAt(++t.position),(s=Nee(a))>=0?o=(o<<4)+s:ke(t,"expected hexadecimal character");t.result+=Wee(o),t.position++}else ke(t,"unknown escape sequence");n=r=t.position}else xi(a)?(go(t,n,r,!0),Hx(t,Yt(t,!1,e)),n=r=t.position):t.position===t.lineStart&&dh(t)?ke(t,"unexpected end of the document within a double quoted scalar"):(t.position++,r=t.position)}ke(t,"unexpected end of the stream within a double quoted scalar")}function Gee(t,e){var n=!0,r,i,o,s=t.tag,a,l=t.anchor,c,u,f,d,h,p=Object.create(null),O,m,x,v;if(v=t.input.charCodeAt(t.position),v===91)u=93,h=!1,a=[];else if(v===123)u=125,h=!0,a={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=a),v=t.input.charCodeAt(++t.position);v!==0;){if(Yt(t,!0,e),v=t.input.charCodeAt(t.position),v===u)return t.position++,t.tag=s,t.anchor=l,t.kind=h?"mapping":"sequence",t.result=a,!0;n?v===44&&ke(t,"expected the node content, but found ','"):ke(t,"missed comma between flow collection entries"),m=O=x=null,f=d=!1,v===63&&(c=t.input.charCodeAt(t.position+1),Jn(c)&&(f=d=!0,t.position++,Yt(t,!0,e))),r=t.line,i=t.lineStart,o=t.position,Sa(t,e,Od,!1,!0),m=t.tag,O=t.result,Yt(t,!0,e),v=t.input.charCodeAt(t.position),(d||t.line===r)&&v===58&&(f=!0,v=t.input.charCodeAt(++t.position),Yt(t,!0,e),Sa(t,e,Od,!1,!0),x=t.result),h?Fs(t,a,p,m,O,x,r,i,o):f?a.push(Fs(t,null,p,m,O,x,r,i,o)):a.push(O),Yt(t,!0,e),v=t.input.charCodeAt(t.position),v===44?(n=!0,v=t.input.charCodeAt(++t.position)):n=!1}ke(t,"unexpected end of the stream within a flow collection")}function Yee(t,e){var n,r,i=wg,o=!1,s=!1,a=e,l=0,c=!1,u,f;if(f=t.input.charCodeAt(t.position),f===124)r=!1;else if(f===62)r=!0;else return!1;for(t.kind="scalar",t.result="";f!==0;)if(f=t.input.charCodeAt(++t.position),f===43||f===45)wg===i?i=f===43?ZC:Qee:ke(t,"repeat of a chomping mode identifier");else if((u=Zee(f))>=0)u===0?ke(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):s?ke(t,"repeat of an indentation width identifier"):(a=e+u-1,s=!0);else break;if(Ho(f)){do f=t.input.charCodeAt(++t.position);while(Ho(f));if(f===35)do f=t.input.charCodeAt(++t.position);while(!xi(f)&&f!==0)}for(;f!==0;){for(Ux(t),t.lineIndent=0,f=t.input.charCodeAt(t.position);(!s||t.lineIndent<a)&&f===32;)t.lineIndent++,f=t.input.charCodeAt(++t.position);if(!s&&t.lineIndent>a&&(a=t.lineIndent),xi(f)){l++;continue}if(t.lineIndent<a){i===ZC?t.result+=on.repeat(`
1911
- `,o?1+l:l):i===wg&&o&&(t.result+=`
1912
- `);break}for(r?Ho(f)?(c=!0,t.result+=on.repeat(`
1913
- `,o?1+l:l)):c?(c=!1,t.result+=on.repeat(`
1914
- `,l+1)):l===0?o&&(t.result+=" "):t.result+=on.repeat(`
1915
- `,l):t.result+=on.repeat(`
1916
- `,o?1+l:l),o=!0,s=!0,l=0,n=t.position;!xi(f)&&f!==0;)f=t.input.charCodeAt(++t.position);go(t,n,t.position,!1)}return!0}function XC(t,e){var n,r=t.tag,i=t.anchor,o=[],s,a=!1,l;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=o),l=t.input.charCodeAt(t.position);l!==0&&(t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,ke(t,"tab characters must not be used in indentation")),!(l!==45||(s=t.input.charCodeAt(t.position+1),!Jn(s))));){if(a=!0,t.position++,Yt(t,!0,-1)&&t.lineIndent<=e){o.push(null),l=t.input.charCodeAt(t.position);continue}if(n=t.line,Sa(t,e,vj,!1,!0),o.push(t.result),Yt(t,!0,-1),l=t.input.charCodeAt(t.position),(t.line===n||t.lineIndent>e)&&l!==0)ke(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break}return a?(t.tag=r,t.anchor=i,t.kind="sequence",t.result=o,!0):!1}function qee(t,e,n){var r,i,o,s,a,l,c=t.tag,u=t.anchor,f={},d=Object.create(null),h=null,p=null,O=null,m=!1,x=!1,v;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=f),v=t.input.charCodeAt(t.position);v!==0;){if(!m&&t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,ke(t,"tab characters must not be used in indentation")),r=t.input.charCodeAt(t.position+1),o=t.line,(v===63||v===58)&&Jn(r))v===63?(m&&(Fs(t,f,d,h,p,null,s,a,l),h=p=O=null),x=!0,m=!0,i=!0):m?(m=!1,i=!0):ke(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,v=r;else{if(s=t.line,a=t.lineStart,l=t.position,!Sa(t,n,xj,!1,!0))break;if(t.line===o){for(v=t.input.charCodeAt(t.position);Ho(v);)v=t.input.charCodeAt(++t.position);if(v===58)v=t.input.charCodeAt(++t.position),Jn(v)||ke(t,"a whitespace character is expected after the key-value separator within a block mapping"),m&&(Fs(t,f,d,h,p,null,s,a,l),h=p=O=null),x=!0,m=!1,i=!1,h=t.tag,p=t.result;else if(x)ke(t,"can not read an implicit mapping pair; a colon is missed");else return t.tag=c,t.anchor=u,!0}else if(x)ke(t,"can not read a block mapping entry; a multiline key may not be an implicit key");else return t.tag=c,t.anchor=u,!0}if((t.line===o||t.lineIndent>e)&&(m&&(s=t.line,a=t.lineStart,l=t.position),Sa(t,e,xd,!0,i)&&(m?p=t.result:O=t.result),m||(Fs(t,f,d,h,p,O,s,a,l),h=p=O=null),Yt(t,!0,-1),v=t.input.charCodeAt(t.position)),(t.line===o||t.lineIndent>e)&&v!==0)ke(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return m&&Fs(t,f,d,h,p,null,s,a,l),x&&(t.tag=c,t.anchor=u,t.kind="mapping",t.result=f),x}function Uee(t){var e,n=!1,r=!1,i,o,s;if(s=t.input.charCodeAt(t.position),s!==33)return!1;if(t.tag!==null&&ke(t,"duplication of a tag property"),s=t.input.charCodeAt(++t.position),s===60?(n=!0,s=t.input.charCodeAt(++t.position)):s===33?(r=!0,i="!!",s=t.input.charCodeAt(++t.position)):i="!",e=t.position,n){do s=t.input.charCodeAt(++t.position);while(s!==0&&s!==62);t.position<t.length?(o=t.input.slice(e,t.position),s=t.input.charCodeAt(++t.position)):ke(t,"unexpected end of the stream within a verbatim tag")}else{for(;s!==0&&!Jn(s);)s===33&&(r?ke(t,"tag suffix cannot contain exclamation marks"):(i=t.input.slice(e-1,t.position+1),yj.test(i)||ke(t,"named tag handle cannot contain such characters"),r=!0,e=t.position+1)),s=t.input.charCodeAt(++t.position);o=t.input.slice(e,t.position),Mee.test(o)&&ke(t,"tag suffix cannot contain flow indicator characters")}o&&!bj.test(o)&&ke(t,"tag name cannot contain such characters: "+o);try{o=decodeURIComponent(o)}catch{ke(t,"tag name is malformed: "+o)}return n?t.tag=o:Co.call(t.tagMap,i)?t.tag=t.tagMap[i]+o:i==="!"?t.tag="!"+o:i==="!!"?t.tag="tag:yaml.org,2002:"+o:ke(t,'undeclared tag handle "'+i+'"'),!0}function Hee(t){var e,n;if(n=t.input.charCodeAt(t.position),n!==38)return!1;for(t.anchor!==null&&ke(t,"duplication of an anchor property"),n=t.input.charCodeAt(++t.position),e=t.position;n!==0&&!Jn(n)&&!Ns(n);)n=t.input.charCodeAt(++t.position);return t.position===e&&ke(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function Jee(t){var e,n,r;if(r=t.input.charCodeAt(t.position),r!==42)return!1;for(r=t.input.charCodeAt(++t.position),e=t.position;r!==0&&!Jn(r)&&!Ns(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&ke(t,"name of an alias node must contain at least one character"),n=t.input.slice(e,t.position),Co.call(t.anchorMap,n)||ke(t,'unidentified alias "'+n+'"'),t.result=t.anchorMap[n],Yt(t,!0,-1),!0}function Sa(t,e,n,r,i){var o,s,a,l=1,c=!1,u=!1,f,d,h,p,O,m;if(t.listener!==null&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,o=s=a=xd===n||vj===n,r&&Yt(t,!0,-1)&&(c=!0,t.lineIndent>e?l=1:t.lineIndent===e?l=0:t.lineIndent<e&&(l=-1)),l===1)for(;Uee(t)||Hee(t);)Yt(t,!0,-1)?(c=!0,a=o,t.lineIndent>e?l=1:t.lineIndent===e?l=0:t.lineIndent<e&&(l=-1)):a=!1;if(a&&(a=c||i),(l===1||xd===n)&&(Od===n||xj===n?O=e:O=e+1,m=t.position-t.lineStart,l===1?a&&(XC(t,m)||qee(t,m,O))||Gee(t,O)?u=!0:(s&&Yee(t,O)||Lee(t,O)||Xee(t,O)?u=!0:Jee(t)?(u=!0,(t.tag!==null||t.anchor!==null)&&ke(t,"alias node should not have any properties")):zee(t,O,Od===n)&&(u=!0,t.tag===null&&(t.tag="?")),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):l===0&&(u=a&&XC(t,m))),t.tag===null)t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);else if(t.tag==="?"){for(t.result!==null&&t.kind!=="scalar"&&ke(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"'),f=0,d=t.implicitTypes.length;f<d;f+=1)if(p=t.implicitTypes[f],p.resolve(t.result)){t.result=p.construct(t.result),t.tag=p.tag,t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);break}}else if(t.tag!=="!"){if(Co.call(t.typeMap[t.kind||"fallback"],t.tag))p=t.typeMap[t.kind||"fallback"][t.tag];else for(p=null,h=t.typeMap.multi[t.kind||"fallback"],f=0,d=h.length;f<d;f+=1)if(t.tag.slice(0,h[f].tag.length)===h[f].tag){p=h[f];break}p||ke(t,"unknown tag !<"+t.tag+">"),t.result!==null&&p.kind!==t.kind&&ke(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+p.kind+'", not "'+t.kind+'"'),p.resolve(t.result,t.tag)?(t.result=p.construct(t.result,t.tag),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):ke(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return t.listener!==null&&t.listener("close",t),t.tag!==null||t.anchor!==null||u}function Kee(t){var e=t.position,n,r,i,o=!1,s;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);(s=t.input.charCodeAt(t.position))!==0&&(Yt(t,!0,-1),s=t.input.charCodeAt(t.position),!(t.lineIndent>0||s!==37));){for(o=!0,s=t.input.charCodeAt(++t.position),n=t.position;s!==0&&!Jn(s);)s=t.input.charCodeAt(++t.position);for(r=t.input.slice(n,t.position),i=[],r.length<1&&ke(t,"directive name must not be less than one character in length");s!==0;){for(;Ho(s);)s=t.input.charCodeAt(++t.position);if(s===35){do s=t.input.charCodeAt(++t.position);while(s!==0&&!xi(s));break}if(xi(s))break;for(n=t.position;s!==0&&!Jn(s);)s=t.input.charCodeAt(++t.position);i.push(t.input.slice(n,t.position))}s!==0&&Ux(t),Co.call(zC,r)?zC[r](t,r,i):vd(t,'unknown document directive "'+r+'"')}if(Yt(t,!0,-1),t.lineIndent===0&&t.input.charCodeAt(t.position)===45&&t.input.charCodeAt(t.position+1)===45&&t.input.charCodeAt(t.position+2)===45?(t.position+=3,Yt(t,!0,-1)):o&&ke(t,"directives end mark is expected"),Sa(t,t.lineIndent-1,xd,!1,!0),Yt(t,!0,-1),t.checkLineBreaks&&_ee.test(t.input.slice(e,t.position))&&vd(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&dh(t)){t.input.charCodeAt(t.position)===46&&(t.position+=3,Yt(t,!0,-1));return}if(t.position<t.length-1)ke(t,"end of the stream or a document separator is expected");else return}function kj(t,e){t=String(t),e=e||{},t.length!==0&&(t.charCodeAt(t.length-1)!==10&&t.charCodeAt(t.length-1)!==13&&(t+=`
1917
- `),t.charCodeAt(0)===65279&&(t=t.slice(1)));var n=new Vee(t,e),r=t.indexOf("\0");for(r!==-1&&(n.position=r,ke(n,"null byte is not allowed in input")),n.input+="\0";n.input.charCodeAt(n.position)===32;)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)Kee(n);return n.documents}function ete(t,e,n){e!==null&&typeof e=="object"&&typeof n>"u"&&(n=e,e=null);var r=kj(t,n);if(typeof e!="function")return r;for(var i=0,o=r.length;i<o;i+=1)e(r[i])}function tte(t,e){var n=kj(t,e);if(n.length!==0){if(n.length===1)return n[0];throw new Fn("expected a single document in the stream, but found more")}}var nte=ete,rte=tte,Aj={loadAll:nte,load:rte},Pj=Object.prototype.toString,Ej=Object.prototype.hasOwnProperty,Jx=65279,ite=9,sc=10,ote=13,ste=32,ate=33,lte=34,qm=35,cte=37,ute=38,fte=39,dte=42,Ij=44,hte=45,yd=58,pte=61,gte=62,mte=63,Ote=64,Tj=91,$j=93,xte=96,jj=123,vte=124,Rj=125,Qn={};Qn[0]="\\0";Qn[7]="\\a";Qn[8]="\\b";Qn[9]="\\t";Qn[10]="\\n";Qn[11]="\\v";Qn[12]="\\f";Qn[13]="\\r";Qn[27]="\\e";Qn[34]='\\"';Qn[92]="\\\\";Qn[133]="\\N";Qn[160]="\\_";Qn[8232]="\\L";Qn[8233]="\\P";var yte=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],bte=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function Ste(t,e){var n,r,i,o,s,a,l;if(e===null)return{};for(n={},r=Object.keys(e),i=0,o=r.length;i<o;i+=1)s=r[i],a=String(e[s]),s.slice(0,2)==="!!"&&(s="tag:yaml.org,2002:"+s.slice(2)),l=t.compiledTypeMap.fallback[s],l&&Ej.call(l.styleAliases,a)&&(a=l.styleAliases[a]),n[s]=a;return n}function wte(t){var e,n,r;if(e=t.toString(16).toUpperCase(),t<=255)n="x",r=2;else if(t<=65535)n="u",r=4;else if(t<=4294967295)n="U",r=8;else throw new Fn("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+n+on.repeat("0",r-e.length)+e}var Cte=1,ac=2;function kte(t){this.schema=t.schema||qx,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=on.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=Ste(this.schema,t.styles||null),this.sortKeys=t.sortKeys||!1,this.lineWidth=t.lineWidth||80,this.noRefs=t.noRefs||!1,this.noCompatMode=t.noCompatMode||!1,this.condenseFlow=t.condenseFlow||!1,this.quotingType=t.quotingType==='"'?ac:Cte,this.forceQuotes=t.forceQuotes||!1,this.replacer=typeof t.replacer=="function"?t.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function GC(t,e){for(var n=on.repeat(" ",e),r=0,i=-1,o="",s,a=t.length;r<a;)i=t.indexOf(`
1918
- `,r),i===-1?(s=t.slice(r),r=a):(s=t.slice(r,i+1),r=i+1),s.length&&s!==`
1919
- `&&(o+=n),o+=s;return o}function Um(t,e){return`
1920
- `+on.repeat(" ",t.indent*e)}function Ate(t,e){var n,r,i;for(n=0,r=t.implicitTypes.length;n<r;n+=1)if(i=t.implicitTypes[n],i.resolve(e))return!0;return!1}function bd(t){return t===ste||t===ite}function lc(t){return 32<=t&&t<=126||161<=t&&t<=55295&&t!==8232&&t!==8233||57344<=t&&t<=65533&&t!==Jx||65536<=t&&t<=1114111}function YC(t){return lc(t)&&t!==Jx&&t!==ote&&t!==sc}function qC(t,e,n){var r=YC(t),i=r&&!bd(t);return(n?r:r&&t!==Ij&&t!==Tj&&t!==$j&&t!==jj&&t!==Rj)&&t!==qm&&!(e===yd&&!i)||YC(e)&&!bd(e)&&t===qm||e===yd&&i}function Pte(t){return lc(t)&&t!==Jx&&!bd(t)&&t!==hte&&t!==mte&&t!==yd&&t!==Ij&&t!==Tj&&t!==$j&&t!==jj&&t!==Rj&&t!==qm&&t!==ute&&t!==dte&&t!==ate&&t!==vte&&t!==pte&&t!==gte&&t!==fte&&t!==lte&&t!==cte&&t!==Ote&&t!==xte}function Ete(t){return!bd(t)&&t!==yd}function vl(t,e){var n=t.charCodeAt(e),r;return n>=55296&&n<=56319&&e+1<t.length&&(r=t.charCodeAt(e+1),r>=56320&&r<=57343)?(n-55296)*1024+r-56320+65536:n}function Dj(t){var e=/^\n* /;return e.test(t)}var Qj=1,Hm=2,Bj=3,_j=4,$s=5;function Ite(t,e,n,r,i,o,s,a){var l,c=0,u=null,f=!1,d=!1,h=r!==-1,p=-1,O=Pte(vl(t,0))&&Ete(vl(t,t.length-1));if(e||s)for(l=0;l<t.length;c>=65536?l+=2:l++){if(c=vl(t,l),!lc(c))return $s;O=O&&qC(c,u,a),u=c}else{for(l=0;l<t.length;c>=65536?l+=2:l++){if(c=vl(t,l),c===sc)f=!0,h&&(d=d||l-p-1>r&&t[p+1]!==" ",p=l);else if(!lc(c))return $s;O=O&&qC(c,u,a),u=c}d=d||h&&l-p-1>r&&t[p+1]!==" "}return!f&&!d?O&&!s&&!i(t)?Qj:o===ac?$s:Hm:n>9&&Dj(t)?$s:s?o===ac?$s:Hm:d?_j:Bj}function Tte(t,e,n,r,i){t.dump=function(){if(e.length===0)return t.quotingType===ac?'""':"''";if(!t.noCompatMode&&(yte.indexOf(e)!==-1||bte.test(e)))return t.quotingType===ac?'"'+e+'"':"'"+e+"'";var o=t.indent*Math.max(1,n),s=t.lineWidth===-1?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-o),a=r||t.flowLevel>-1&&n>=t.flowLevel;function l(c){return Ate(t,c)}switch(Ite(e,a,t.indent,s,l,t.quotingType,t.forceQuotes&&!r,i)){case Qj:return e;case Hm:return"'"+e.replace(/'/g,"''")+"'";case Bj:return"|"+UC(e,t.indent)+HC(GC(e,o));case _j:return">"+UC(e,t.indent)+HC(GC($te(e,s),o));case $s:return'"'+jte(e)+'"';default:throw new Fn("impossible error: invalid scalar style")}}()}function UC(t,e){var n=Dj(t)?String(e):"",r=t[t.length-1]===`
1921
- `,i=r&&(t[t.length-2]===`
1922
- `||t===`
1923
- `),o=i?"+":r?"":"-";return n+o+`
1924
- `}function HC(t){return t[t.length-1]===`
1925
- `?t.slice(0,-1):t}function $te(t,e){for(var n=/(\n+)([^\n]*)/g,r=function(){var c=t.indexOf(`
1926
- `);return c=c!==-1?c:t.length,n.lastIndex=c,JC(t.slice(0,c),e)}(),i=t[0]===`
1927
- `||t[0]===" ",o,s;s=n.exec(t);){var a=s[1],l=s[2];o=l[0]===" ",r+=a+(!i&&!o&&l!==""?`
1928
- `:"")+JC(l,e),i=o}return r}function JC(t,e){if(t===""||t[0]===" ")return t;for(var n=/ [^ ]/g,r,i=0,o,s=0,a=0,l="";r=n.exec(t);)a=r.index,a-i>e&&(o=s>i?s:a,l+=`
1929
- `+t.slice(i,o),i=o+1),s=a;return l+=`
1930
- `,t.length-i>e&&s>i?l+=t.slice(i,s)+`
1931
- `+t.slice(s+1):l+=t.slice(i),l.slice(1)}function jte(t){for(var e="",n=0,r,i=0;i<t.length;n>=65536?i+=2:i++)n=vl(t,i),r=Qn[n],!r&&lc(n)?(e+=t[i],n>=65536&&(e+=t[i+1])):e+=r||wte(n);return e}function Rte(t,e,n){var r="",i=t.tag,o,s,a;for(o=0,s=n.length;o<s;o+=1)a=n[o],t.replacer&&(a=t.replacer.call(n,String(o),a)),(zi(t,e,a,!1,!1)||typeof a>"u"&&zi(t,e,null,!1,!1))&&(r!==""&&(r+=","+(t.condenseFlow?"":" ")),r+=t.dump);t.tag=i,t.dump="["+r+"]"}function KC(t,e,n,r){var i="",o=t.tag,s,a,l;for(s=0,a=n.length;s<a;s+=1)l=n[s],t.replacer&&(l=t.replacer.call(n,String(s),l)),(zi(t,e+1,l,!0,!0,!1,!0)||typeof l>"u"&&zi(t,e+1,null,!0,!0,!1,!0))&&((!r||i!=="")&&(i+=Um(t,e)),t.dump&&sc===t.dump.charCodeAt(0)?i+="-":i+="- ",i+=t.dump);t.tag=o,t.dump=i||"[]"}function Dte(t,e,n){var r="",i=t.tag,o=Object.keys(n),s,a,l,c,u;for(s=0,a=o.length;s<a;s+=1)u="",r!==""&&(u+=", "),t.condenseFlow&&(u+='"'),l=o[s],c=n[l],t.replacer&&(c=t.replacer.call(n,l,c)),zi(t,e,l,!1,!1)&&(t.dump.length>1024&&(u+="? "),u+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),zi(t,e,c,!1,!1)&&(u+=t.dump,r+=u));t.tag=i,t.dump="{"+r+"}"}function Qte(t,e,n,r){var i="",o=t.tag,s=Object.keys(n),a,l,c,u,f,d;if(t.sortKeys===!0)s.sort();else if(typeof t.sortKeys=="function")s.sort(t.sortKeys);else if(t.sortKeys)throw new Fn("sortKeys must be a boolean or a function");for(a=0,l=s.length;a<l;a+=1)d="",(!r||i!=="")&&(d+=Um(t,e)),c=s[a],u=n[c],t.replacer&&(u=t.replacer.call(n,c,u)),zi(t,e+1,c,!0,!0,!0)&&(f=t.tag!==null&&t.tag!=="?"||t.dump&&t.dump.length>1024,f&&(t.dump&&sc===t.dump.charCodeAt(0)?d+="?":d+="? "),d+=t.dump,f&&(d+=Um(t,e)),zi(t,e+1,u,!0,f)&&(t.dump&&sc===t.dump.charCodeAt(0)?d+=":":d+=": ",d+=t.dump,i+=d));t.tag=o,t.dump=i||"{}"}function ek(t,e,n){var r,i,o,s,a,l;for(i=n?t.explicitTypes:t.implicitTypes,o=0,s=i.length;o<s;o+=1)if(a=i[o],(a.instanceOf||a.predicate)&&(!a.instanceOf||typeof e=="object"&&e instanceof a.instanceOf)&&(!a.predicate||a.predicate(e))){if(n?a.multi&&a.representName?t.tag=a.representName(e):t.tag=a.tag:t.tag="?",a.represent){if(l=t.styleMap[a.tag]||a.defaultStyle,Pj.call(a.represent)==="[object Function]")r=a.represent(e,l);else if(Ej.call(a.represent,l))r=a.represent[l](e,l);else throw new Fn("!<"+a.tag+'> tag resolver accepts not "'+l+'" style');t.dump=r}return!0}return!1}function zi(t,e,n,r,i,o,s){t.tag=null,t.dump=n,ek(t,n,!1)||ek(t,n,!0);var a=Pj.call(t.dump),l=r,c;r&&(r=t.flowLevel<0||t.flowLevel>e);var u=a==="[object Object]"||a==="[object Array]",f,d;if(u&&(f=t.duplicates.indexOf(n),d=f!==-1),(t.tag!==null&&t.tag!=="?"||d||t.indent!==2&&e>0)&&(i=!1),d&&t.usedDuplicates[f])t.dump="*ref_"+f;else{if(u&&d&&!t.usedDuplicates[f]&&(t.usedDuplicates[f]=!0),a==="[object Object]")r&&Object.keys(t.dump).length!==0?(Qte(t,e,t.dump,i),d&&(t.dump="&ref_"+f+t.dump)):(Dte(t,e,t.dump),d&&(t.dump="&ref_"+f+" "+t.dump));else if(a==="[object Array]")r&&t.dump.length!==0?(t.noArrayIndent&&!s&&e>0?KC(t,e-1,t.dump,i):KC(t,e,t.dump,i),d&&(t.dump="&ref_"+f+t.dump)):(Rte(t,e,t.dump),d&&(t.dump="&ref_"+f+" "+t.dump));else if(a==="[object String]")t.tag!=="?"&&Tte(t,t.dump,e,o,l);else{if(a==="[object Undefined]")return!1;if(t.skipInvalid)return!1;throw new Fn("unacceptable kind of an object to dump "+a)}t.tag!==null&&t.tag!=="?"&&(c=encodeURI(t.tag[0]==="!"?t.tag.slice(1):t.tag).replace(/!/g,"%21"),t.tag[0]==="!"?c="!"+c:c.slice(0,18)==="tag:yaml.org,2002:"?c="!!"+c.slice(18):c="!<"+c+">",t.dump=c+" "+t.dump)}return!0}function Bte(t,e){var n=[],r=[],i,o;for(Jm(t,n,r),i=0,o=r.length;i<o;i+=1)e.duplicates.push(n[r[i]]);e.usedDuplicates=new Array(o)}function Jm(t,e,n){var r,i,o;if(t!==null&&typeof t=="object")if(i=e.indexOf(t),i!==-1)n.indexOf(i)===-1&&n.push(i);else if(e.push(t),Array.isArray(t))for(i=0,o=t.length;i<o;i+=1)Jm(t[i],e,n);else for(r=Object.keys(t),i=0,o=r.length;i<o;i+=1)Jm(t[r[i]],e,n)}function _te(t,e){e=e||{};var n=new kte(e);n.noRefs||Bte(t,n);var r=t;return n.replacer&&(r=n.replacer.call({"":r},"",r)),zi(n,0,r,!0,!0)?n.dump+`
1932
- `:""}var Mte=_te,Nte={dump:Mte};function Kx(t,e){return function(){throw new Error("Function yaml."+t+" is removed in js-yaml 4. Use yaml."+e+" instead, which is now safe by default.")}}var Fte=An,Zte=K$,Wte=rj,Vte=lj,zte=cj,Lte=qx,Xte=Aj.load,Gte=Aj.loadAll,Yte=Nte.dump,qte=Fn,Ute={binary:pj,float:aj,map:nj,null:ij,pairs:mj,set:Oj,timestamp:dj,bool:oj,int:sj,merge:hj,omap:gj,seq:tj,str:ej},Hte=Kx("safeLoad","load"),Jte=Kx("safeLoadAll","loadAll"),Kte=Kx("safeDump","dump"),Mj={Type:Fte,Schema:Zte,FAILSAFE_SCHEMA:Wte,JSON_SCHEMA:Vte,CORE_SCHEMA:zte,DEFAULT_SCHEMA:Lte,load:Xte,loadAll:Gte,dump:Yte,YAMLException:qte,types:Ute,safeLoad:Hte,safeLoadAll:Jte,safeDump:Kte};function ene({onImport:t,onAddFolder:e}){return g.jsxs(tne,{children:[g.jsx(nne,{children:"Save requests or import them from Arazzo files"}),g.jsxs(rne,{children:[g.jsx(_.Button,{icon:g.jsx(_.AddIcon,{}),onClick:e,children:"Create new collection"}),g.jsx(_.Button,{icon:g.jsx(_.DownloadIcon,{}),onClick:t,children:"Import Arazzo Files"})]})]})}const tne=T.div`
1933
- display: flex;
1934
- flex-direction: column;
1935
- align-items: center;
1936
- justify-content: center;
1937
1946
  height: 100%;
1938
- gap: var(--spacing-lg);
1939
- `,nne=T.div`
1940
- max-width: 50%;
1941
1947
  display: flex;
1942
1948
  flex-direction: column;
1943
- align-items: center;
1944
1949
  justify-content: center;
1950
+ align-items: center;
1951
+ gap: var(--spacing-xs);
1952
+ font-size: var(--font-size-base);
1953
+ line-height: var(--line-height-base);
1954
+ color: var(--text-color-description);
1945
1955
  text-align: center;
1946
- `,rne=T.div`
1956
+ `,K$=T.div`
1947
1957
  display: flex;
1948
1958
  align-items: center;
1949
1959
  justify-content: center;
1950
- gap: var(--spacing-xs);
1951
- `;function ine(){return g.jsx(one,{children:"No results found"})}const one=T.div`
1952
- height: 100%;
1960
+ width: 40px;
1961
+ `,ej=T.div`
1953
1962
  display: flex;
1954
- justify-content: center;
1955
- color: var(--text-color-helper);
1956
- margin-top: 20vh;
1957
- `,sne=j.forwardRef(({children:t,controls:e,icon:n,title:r,dataTestId:i,defaultExpanded:o=!1,level:s=0,active:a,...l},c)=>{const[u,f]=j.useState(o),d=()=>{const h=!u;f(h),l.onToggle&&l.onToggle(h)};return j.useImperativeHandle(c,()=>({setIsExpanded:f})),g.jsxs(ane,{...l,"data-testid":i,children:[g.jsxs(une,{tabIndex:0,$level:s,$active:a,onClick:d,children:[g.jsxs(dne,{children:[g.jsx(fne,{children:n||(u?g.jsx(_.ChevronDownIcon,{size:"14px",color:"--text-color-secondary"}):g.jsx(_.ChevronRightIcon,{size:"14px",color:"--text-color-secondary"}))}),g.jsx(lne,{children:r})]}),e&&g.jsx(Km,{onClick:h=>h.stopPropagation(),children:e})]}),g.jsx(cne,{$isExpanded:u,$level:s,children:t})]})}),ane=T.div`
1958
- display: inline-grid;
1959
- width: 100%;
1960
- flex-direction: column;
1961
- flex-shrink: 0;
1962
- color: var(--text-color-secondary);
1963
+ flex-grow: 1;
1964
+ align-items: center;
1965
+ padding: 0 var(--spacing-base);
1966
+ height: 40px;
1967
+ border-right: 1px solid var(--border-color-secondary);
1968
+ color: var(--text-color-primary);
1963
1969
  font-size: var(--font-size-base);
1970
+ font-weight: var(--font-weight-regular);
1964
1971
  line-height: var(--line-height-base);
1965
- cursor: pointer;
1966
- `,lne=T.div`
1967
1972
  overflow: hidden;
1968
1973
  text-overflow: ellipsis;
1974
+ `,tj=T.div`
1975
+ max-width: 100%;
1969
1976
  white-space: nowrap;
1970
- `,cne=T.div`
1971
- display: ${({$isExpanded:t})=>t?"flex":"none"};
1972
- position: relative;
1977
+ overflow: hidden;
1978
+ text-overflow: ellipsis;
1979
+ `;function kK(t){let e="";const n=new Uint8Array(t),r=n.byteLength;for(let i=0;i<r;i++)e+=String.fromCharCode(n[i]);return window.btoa(e)}const AK=({arrayBuffer:t})=>g.jsx(PK,{children:g.jsx("img",{src:`data:image/png;base64,${kK(t)}`,className:"mx-auto",alt:"Response Image"})}),PK=T.div`
1980
+ display: flex;
1981
+ justify-content: center;
1982
+ align-items: center;
1983
+ height: 100%;
1984
+ `;function EK(){var u,f;const{response:t}=je(),{sendEvent:e}=ct(),n=((u=t.get())==null?void 0:u.body)||"",r=((f=t.get())==null?void 0:f.arrayBuffer)||new ArrayBuffer(0),[i,o]=j.useState(Cr.Text),s=Object.keys(Au).map(d=>({element:g.jsx("div",{children:Au[d].name}),label:Au[d].name,value:d}));j.useEffect(()=>{var h;const d=wK((h=t.get())==null?void 0:h.headers);if(d){const p=CK(d);o(p)}else o(Cr.Text)},[t]);const a=i===Cr.JSON?SK(n):n,l=d=>{o(d),e("response_body_format_changed",{name:d})},c=()=>{e("response_body_copied",{})};return g.jsxs(IK,{children:[g.jsxs(Gx,{children:[g.jsxs(TK,{children:["Response body",g.jsx($K,{options:s,value:{value:i,label:Au[i].name},onChange:d=>l(d)})]}),g.jsx(K$,{children:g.jsx(_.CopyButton,{toasterPlacement:"left",data:a,onCopyClick:c})})]}),g.jsx(Ne,{}),hd[i]?g.jsx(ed,{readOnly:!0,dataTestId:"response-body-tab-codemirror",value:a,extensions:hd[i].extensions}):i===Cr.Image?g.jsx(AK,{arrayBuffer:r}):i===Cr.HTML?g.jsx("iframe",{srcDoc:a,style:{width:"100%",height:"100%",border:"none"},title:"HTML Content",sandbox:"allow-same-origin"}):g.jsx("div",{children:"No content available"})]})}const IK=T.div`
1985
+ display: flex;
1973
1986
  flex-direction: column;
1974
- height: ${({$isExpanded:t})=>t?"auto":"0"};
1975
- overflow-x: visible;
1976
-
1977
- &::before {
1978
- content: '';
1979
- display: block;
1980
- height: 100%;
1981
- position: absolute;
1982
- left: ${({$level:t})=>`calc(var(--spacing-sm) + 5.5px + ${t} * var(--spacing-base))`};
1983
- top: 0;
1984
- border-left: 1px solid var(--border-color-secondary);
1985
- }
1986
- `,Km=T.div`
1987
- display: none;
1988
- padding-right: var(--spacing-xs);
1989
- `,une=T.div`
1990
- width: 100%;
1987
+ overflow: auto;
1988
+ border-bottom: 1px solid var(--border-color-secondary);
1989
+ height: 100%;
1990
+ `,TK=T.div`
1991
1991
  display: flex;
1992
1992
  flex-direction: row;
1993
- justify-content: space-between;
1994
1993
  align-items: center;
1995
- flex-grow: 1;
1996
- height: 32px;
1997
- padding: ${({$level:t})=>`var(--spacing-xxs) var(--spacing-xs) var(--spacing-xxs) calc(var(--spacing-sm) - 1px + ${t} * var(--spacing-base))`};
1998
- min-width: 0;
1999
-
2000
- ${({$active:t})=>t&&`
2001
- ${Km} {
2002
- display: flex;
2003
- }
2004
- `}
2005
-
2006
- &:hover {
2007
- ${Km} {
2008
- display: flex;
2009
- }
2010
- }
2011
-
2012
- ${({$active:t})=>t&&`
2013
- background-color: var(--bg-color-hover);
2014
- `}
1994
+ `,$K=T(_.Select)`
1995
+ display: flex;
1996
+ border-radius: var(--border-radius-md);
1997
+ --select-border: none;
1998
+ --select-input-padding: var(--select-input-padding-vertical) var(--spacing-xs);
2015
1999
 
2016
- &:hover {
2017
- background-color: var(--bg-color-hover);
2000
+ svg {
2001
+ width: 12px;
2002
+ height: 12px;
2018
2003
  }
2019
- `,fne=T.div`
2020
- display: flex;
2021
- align-items: center;
2022
- min-width: 14px;
2023
- `,dne=T.div`
2004
+ `;function jK(){const{response:t}=je(),{sendEvent:e}=ct(),n=j.useMemo(()=>{var s;return((s=t.get())==null?void 0:s.headers)||[]},[t]),r=j.useMemo(()=>n.map(([s,a])=>`${s}: ${a}`).join(`
2005
+ `),[n]),i=()=>{e("response_header_copied",{})},o=()=>{e("response_all_headers_copied",{})};return g.jsxs(RK,{children:[g.jsxs(Gx,{children:[g.jsx(QK,{children:"Header list"}),g.jsx(K$,{children:g.jsx(_.CopyButton,{toasterPlacement:"left",data:r,onCopyClick:o})})]}),g.jsx(U$,{children:n.map(([s,a])=>g.jsxs(H$,{children:[g.jsx(J$,{"data-testid":`response-header-key-${s}`,children:s}),g.jsx(ej,{"data-testid":`response-header-value-${s}`,children:g.jsx(To,{mouseEnterDelay:1,placement:"top",content:a,showArrow:!1,children:g.jsx(tj,{children:a})})}),g.jsx(DK,{toasterPlacement:"left",data:a,onCopyClick:i})]},s))})]})}const RK=T.div`
2024
2006
  display: flex;
2025
- flex-grow: 1;
2026
- flex-direction: row;
2027
- align-items: center;
2028
- gap: var(--spacing-xxs);
2029
- min-width: 0;
2030
- `;function hne(t,e){const{definitionUrl:n,environments:r,selectedEnvironmentId:i}=e,o=LT(i||"",r),s=$ne(n||""),a=Nj(t.items.get(),o.variables);return{arazzo:"1.0.0",info:{title:t.name.get(),version:"1.0.0"},sourceDescriptions:[{name:s,url:n,type:"openapi","x-serverUrl":o.url}],workflows:[{workflowId:ev(t.name.get()),steps:a}]}}function Nj(t,e){return t.flatMap(n=>n.type===sn.Folder?pne(n.value,e):[gne(n.value,e)])}function pne(t,e){return Nj(t.items,e).map(n=>({...n,stepId:`${ev(t.name)}/${n.stepId}`}))}function gne(t,e){var a;const n=t.name,r=ev(n),i=One(t.request,e),o=yne(t.request),s={stepId:r,description:n,"x-operation":{path:jne(t.request.url),method:(a=t.request.method)==null?void 0:a.toLowerCase()},"x-replay":{securities:o,path:t.request.url,parameters:mne(t.request)},parameters:i};if(Ine(t.request.body)){const l=Tne(t.request.body),c=Ge(l,e);s.requestBody={contentType:t.request.body.type,payload:c},s["x-replay"].body=l}return s}function mne(t){return[...Cg(t.cookies,"cookie"),...Cg(t.queryParameters,"query"),...Cg(t.headers,"header")]}function Cg(t,e){return t.filter(({key:n})=>n).map(({key:n,value:r})=>({in:e,name:n,value:r}))}function One(t,e){return[...eO(t.cookies,"cookie",e),...eO(t.queryParameters,"query",e),...vne(t,e),...xne(t,e)]}function eO(t,e,n){return t.filter(({key:r})=>r).map(({key:r,value:i})=>{const o=Ge(r,n),s=Ge(i,n);return{in:e,name:o,value:s}})}function xne(t,e){const n=t.url.split("?")[0];return ka(n).filter(({content:r})=>r!==QO).map(({content:r})=>{var i;return{in:"path",name:r,value:((i=e.find(({name:o})=>o===r))==null?void 0:i.value)||""}})}function vne(t,e){return[...eO(t.headers,"header",e),...Rne(t.security.securities,e,t)]}function yne(t){return t.security.securities.map(e=>{const{securityType:n,...r}=e;switch(n){case K.BasicAuth:return bne(r[K.BasicAuth]);case K.DigestAuth:return Sne(r[K.DigestAuth]);case K.JWT:return wne(r[K.JWT]);case K.APIKey:return Cne(r[K.APIKey]);case K.OAuth2:return kne(r[K.OAuth2]);case K.OpenIDConnect:return Ane(r[K.OpenIDConnect]);default:return Pne()}})}function bne(t){return{type:K.BasicAuth,data:{username:t.username,password:t.password}}}function Sne(t){return{type:K.DigestAuth,data:{username:t.username,password:t.password}}}function wne(t){return{type:K.JWT,data:{token:t.token}}}function Cne(t){return{type:K.APIKey,data:{name:t.name,key:t.key,location:t.location}}}function kne(t){return{type:K.OAuth2,data:Fj(t)}}function Ane(t){return{type:K.OpenIDConnect,data:{...Fj(t),...t.openIdConnectUrl&&{openIdConnectUrl:t.openIdConnectUrl},...t.userInfoUrl&&{userInfoUrl:t.userInfoUrl}}}}function Pne(){return{type:K.NoAuth}}function Fj(t){var i;const e=tk(t.tokenRequestExtraParams),n=tk(t.authRequestExtraParams),r={[t.grantType]:t[t.grantType],scopes:Ene((i=t[t.grantType])==null?void 0:i.scopes),grantType:t.grantType};return{...e.length>0&&{tokenRequestExtraParams:e},...n.length>0&&{authRequestExtraParams:n},...r}}function tk(t=[]){return t.filter(({value:e})=>e).map(({id:e,...n})=>n)}function Ene(t=[]){return t.filter(({value:e})=>e).map(({id:e,key:n,...r})=>r)}function Ine(t){const{content:e,formData:n}=t;return!!e||Object.values(n).some(r=>r.length>1)}function Tne(t){switch(t.type){case ot.JSON:case ot.XML:case ot.HTML:case ot.Text:return JSON.stringify(t.content);case ot.FormData:case ot["application/x-www-form-urlencoded"]:const e=t.formData[t.type].filter(({key:n,type:r})=>n&&r==="text").map(({key:n,type:r,value:i})=>({key:n,type:r,value:i}));return JSON.stringify(e);default:return""}}function $ne(t){return t.substring(t.lastIndexOf("/")+1,t.lastIndexOf("."))}function ev(t){return t.replace(/[^A-Za-z0-9_\-]+/g,"-")}function jne(t){const e=t.indexOf("?");let n=t.substring(0,e!==-1?e:t.length);return n=n.replace(/\{\{server\}\}/g,"").replace(/\{\{([^{}]+)\}\}/g,"{$1}"),n}function Rne(t,e,n){return t.map(r=>{const{securityType:i,...o}=r;switch(i){case K.BasicAuth:return Dne(o[K.BasicAuth],e);case K.DigestAuth:return Qne(n,e);case K.JWT:return Bne(o[K.JWT],e);case K.OAuth2:case K.OpenIDConnect:return _ne(i,o,e);case K.APIKey:return Mne(o[K.APIKey],e);default:return null}}).filter(Boolean)}function Dne(t,e){const{username:n,password:r}=t,i=Ge(n,e),o=Ge(r,e);return hh("Authorization",`Basic ${btoa(`${i}:${o}`)}`)}function Qne(t,e){return hh("Authorization",zT(t,e))}function Bne(t,e){const n=Ge(t.token,e);return hh("Authorization",`Bearer ${n}`)}function _ne(t,e,n){const{grantType:r,[r]:{accessToken:i}}=e[t],o=Ge(i,n);return hh("Authorization",`Bearer ${o}`)}function Mne(t,e){const{name:n,key:r,location:i}=t,o=Ge(r,e),s=Ge(n,e);return n&&r?{in:i.toLowerCase(),name:s,value:o}:null}function hh(t,e){return{in:"header",name:t,value:e}}async function Nne(t,e={},n){return window.__TAURI_INTERNALS__.invoke(t,e,n)}var nk;(function(t){t[t.Audio=1]="Audio",t[t.Cache=2]="Cache",t[t.Config=3]="Config",t[t.Data=4]="Data",t[t.LocalData=5]="LocalData",t[t.Document=6]="Document",t[t.Download=7]="Download",t[t.Picture=8]="Picture",t[t.Public=9]="Public",t[t.Video=10]="Video",t[t.Resource=11]="Resource",t[t.Temp=12]="Temp",t[t.AppConfig=13]="AppConfig",t[t.AppData=14]="AppData",t[t.AppLocalData=15]="AppLocalData",t[t.AppCache=16]="AppCache",t[t.AppLog=17]="AppLog",t[t.Desktop=18]="Desktop",t[t.Executable=19]="Executable",t[t.Font=20]="Font",t[t.Home=21]="Home",t[t.Runtime=22]="Runtime",t[t.Template=23]="Template"})(nk||(nk={}));var rk;(function(t){t[t.Start=0]="Start",t[t.Current=1]="Current",t[t.End=2]="End"})(rk||(rk={}));async function Fne(t,e,n){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");const r=new TextEncoder;await Nne("plugin:fs|write_text_file",r.encode(e),{headers:{path:t instanceof URL?t.toString():t,options:JSON.stringify(n)}})}async function Zj(t,e={},n){return window.__TAURI_INTERNALS__.invoke(t,e,n)}async function Zne(t={}){return typeof t=="object"&&Object.freeze(t),await Zj("plugin:dialog|open",{options:t})}async function Wne(t={}){return typeof t=="object"&&Object.freeze(t),await Zj("plugin:dialog|save",{options:t})}async function Vne(t,e){(window==null?void 0:window.__TAURI__)?await Lne(t,e):zne(t,e)}function zne(t,e){const n=new Blob([t],{type:"text/yaml"}),r=URL.createObjectURL(n),i=document.createElement("a");i.href=r,i.download=`${e}.yaml`,document.body.appendChild(i),i.click(),document.body.removeChild(i),URL.revokeObjectURL(r)}async function Lne(t,e){try{const n=await Wne({title:"Save your file",defaultPath:e,filters:[{name:"YAML files",extensions:["yaml","yml"]},{name:"JSON files",extensions:["json"]}]});if(!n)return;await Fne(n,t)}catch(n){console.error("Error saving the file:",n)}}function Xne({folder:t,level:e,siblingItems:n,expanded:r,onRemove:i}){const o=je(),{sendEvent:s}=ct(),a=j.useRef(null),{state:l,name:c}=t.get(),[u,f]=j.useState(!1),d=j.useMemo(()=>t.items.get().some(b=>b.value.state===gt.Draft),[t.items]),h=()=>{t.state.set(gt.Normal),s("collections_folder_editing_cancelled",{name:t.name.get()})},p=b=>{t.state.get()===gt.Draft?s("collections_folder_creation_finished",{name:b}):s("collections_folder_edited",{name:t.name.get(),newName:b}),b.length&&t.name.set(b),t.state.set(gt.Normal)},O=()=>{var w;if(d)return;(w=a.current)==null||w.setIsExpanded(!0);const b=ba(t.items.get(),"New Folder");t.items.set(C=>[{type:sn.Folder,value:{id:crypto.randomUUID(),state:gt.Draft,name:b,items:[]}},...C]),s("collections_folder_creation_started",{})},m=()=>{var w;if(d)return;(w=a.current)==null||w.setIsExpanded(!0);const b=ba(t.items.get(),"New Request");t.items.set(C=>[...C,{type:sn.Request,value:{id:crypto.randomUUID(),state:gt.Draft,name:b,request:Cc().request,response:null}}]),s("collections_request_creation_started",{})},x=()=>{t.state.set(gt.Edit),s("collections_folder_editing_started",{name:t.name.get()})},v=async()=>{const b=hne(t,o.get()),w=Mj.dump(b);await Vne(w,b.workflows[0].workflowId),s("collections_export_clicked",{name:t.name})},y=()=>g.jsxs(g.Fragment,{children:[g.jsx(Ps,{variant:"text",size:"small",icon:g.jsx(_.DocumentAddIcon,{}),onClick:m}),g.jsx(Ps,{variant:"text",size:"small",icon:g.jsx(_.ExportIcon,{}),onClick:v}),g.jsx(_.Dropdown,{trigger:g.jsx(Ps,{variant:"text",size:"small",icon:g.jsx(_.OverflowMenuVerticalIcon,{})}),alignment:"end",children:g.jsxs(_.DropdownMenu,{children:[g.jsxs(al,{onClick:O,children:[g.jsx(_.FolderAddIcon,{size:"14px"}),"New Folder"]}),g.jsxs(al,{onClick:x,children:[g.jsx(_.EditIcon,{size:"14px"}),"Edit"]}),g.jsx(ya,{description:"Are you sure you want to delete this collection?",onConfirm:i,onVisibilityChange:f,children:g.jsxs(al,{children:[g.jsx(_.TrashCanIcon,{size:"14px"}),"Delete"]})})]})})]}),S=()=>g.jsxs(g.Fragment,{children:[g.jsx(Ps,{variant:"text",size:"small",icon:g.jsx(_.DocumentAddIcon,{}),onClick:m}),g.jsx(Ps,{variant:"text",size:"small",icon:g.jsx(_.FolderAddIcon,{}),onClick:O}),g.jsx(_.Dropdown,{trigger:g.jsx(Ps,{variant:"text",size:"small",icon:g.jsx(_.OverflowMenuVerticalIcon,{})}),alignment:"end",children:g.jsxs(_.DropdownMenu,{children:[g.jsxs(al,{onClick:x,children:[g.jsx(_.EditIcon,{size:"14px"}),"Edit"]}),g.jsx(ya,{description:"Are you sure you want to delete this folder?",onConfirm:i,onVisibilityChange:f,children:g.jsxs(al,{children:[g.jsx(_.TrashCanIcon,{size:"14px"}),"Delete"]})})]})})]});return l!==gt.Normal?g.jsx(Gx,{siblingItems:n,defaultName:c,level:e,onSave:p,onCancel:l===gt.Draft?i:h,placeholder:e===0?"New Collection":"New Folder",icon:g.jsx(_.FolderAddIcon,{size:"14px",color:"--icon-color-disabled"})}):g.jsx(sne,{ref:a,title:c,level:e,active:u,defaultExpanded:r,controls:g.jsx(Gne,{children:e===0?y():S()}),children:g.jsxs(Yne,{children:[t.items.length?null:g.jsxs(qne,{$level:e+1,children:["This ",e===0?"collection":"folder"," is empty"]}),t.items.map(b=>g.jsx(zj,{item:b,itemList:t.items,level:e+1},b.get().value.id))]})})}const Gne=T.div`
2007
+ flex-direction: column;
2008
+ overflow: auto;
2009
+ `,DK=T(_.CopyButton)`
2010
+ justify-self: center;
2011
+ `,QK=T.span``;function BK(){var n;const{response:t}=je(),e=(n=t.get())==null?void 0:n.cookies;return e!=null&&e.length?g.jsxs(_K,{children:[g.jsx(Gx,{children:"Cookies list"}),g.jsx(U$,{children:(e||[]).map(([r,i])=>g.jsxs(H$,{children:[g.jsx(J$,{children:r}),g.jsx(MK,{children:g.jsx(To,{mouseEnterDelay:1,placement:"top",content:g.jsx(NK,{children:i}),showArrow:!1,children:g.jsx(tj,{children:i})})})]},r))})]}):g.jsx(fh,{children:"No cookies were received from the server."})}const _K=T.div`
2031
2012
  display: flex;
2032
- flex-direction: row;
2033
- gap: var(--spacing-xxs);
2034
- `,Yne=T.div`
2013
+ flex-direction: column;
2014
+ overflow: auto;
2015
+ height: 100%;
2016
+ `,MK=T(ej)`
2017
+ border-right: none;
2018
+ `,NK=T(Ao)`
2019
+ padding: var(--spacing-unit) var(--spacing-xs);
2020
+ font-size: var(--font-size-base);
2021
+ font-weight: var(--font-weight-regular);
2022
+ line-height: var(--line-height-base);
2023
+ word-break: break-word;
2024
+ overflow-wrap: break-word;
2025
+ max-width: 400px;
2026
+ `,FC=[{name:"Body",content:g.jsx(EK,{}),icon:g.jsx(_.CodeIcon,{})},{name:"Headers",content:g.jsx(jK,{}),icon:g.jsx(_.TableBuiltIcon,{})},{name:"Cookies",content:g.jsx(BK,{}),icon:g.jsx(_.CookieIcon,{})}];function FK(){const{sendEvent:t}=ct(),[e,n]=j.useState(FC[0]),r=i=>{n(i),t("response_tab_changed",{name:i.name})};return g.jsxs(ZK,{children:[g.jsx(WK,{children:FC.map(i=>g.jsx(j.Fragment,{children:e===i?g.jsx(ZC,{icon:i.icon,iconPosition:"left",children:i.name}):g.jsx(ZC,{icon:i.icon,variant:"text",onClick:()=>r(i),iconPosition:"left",children:i.name})},i.name))}),e.content]})}const ZK=T.div`
2035
2027
  display: flex;
2036
- width: 100%;
2037
2028
  flex-direction: column;
2038
- justify-content: center;
2039
- align-items: flex-start;
2040
- gap: 2px;
2041
- flex: 1 0 0;
2042
- `,qne=T.div`
2029
+ padding: var(--spacing-base) 0 var(--spacing-unit) 0;
2030
+ gap: var(--spacing-sm);
2031
+ height: calc(100% - 38px);
2032
+ `,WK=T.div`
2043
2033
  display: flex;
2044
- align-items: center;
2045
- height: 32px;
2034
+ flex-direction: row;
2035
+ gap: 2px;
2036
+ `,ZC=T(_.Button)`
2046
2037
  font-size: var(--font-size-base);
2047
- color: var(--text-color-description);
2048
- padding: ${({$level:t})=>`var(--spacing-xxs) var(--spacing-xs) var(--spacing-xxs) calc(var(--spacing-sm) - 1px + ${t} * var(--spacing-base))`};
2049
- `,Ps=T(_.Button)`
2050
- & + & {
2051
- margin-left: 0;
2038
+ font-weight: var(--font-weight-regular);
2039
+ line-height: var(--line-height-base);
2040
+ padding: var(--spacing-xxs) var(--spacing-base);
2041
+ margin: 0;
2042
+ `;function VK({onClose:t}){return g.jsxs(fh,{children:[g.jsx(_.Spinner,{size:"20px",color:"--color-info-base"}),g.jsx(GK,{children:"Sending request ..."}),g.jsx(_.Button,{onClick:t,children:"Cancel request"})]})}function zK(){return g.jsxs(fh,{"data-testid":"empty-response",children:["No response received yet.",g.jsx("br",{}),"Click “Send” to start a request and see the response here!"]})}function LK(){return g.jsxs(fh,{children:[g.jsx("h3",{children:"Could not get a response."}),"Something went wrong, please review",g.jsx("br",{}),"your request and try again"]})}function nj({panel:t}){const{response:e,requestError:n,isProcessingRequest:r,requestController:i}=je(),o=r.get();function s(){var a;(a=i==null?void 0:i.get())==null||a.abort()}return g.jsxs(XK,{"data-testid":"response-container",isCollapsed:t.isCollapsed,children:[g.jsx(q$,{panel:t,response:e}),o&&g.jsx(VK,{onClose:s}),!o&&n.get()&&g.jsx(LK,{}),!o&&!e.get()&&!t.isCollapsed&&!n.get()&&g.jsx(zK,{}),!o&&e.get()&&!t.isCollapsed&&!n.get()&&g.jsx(FK,{})]})}const XK=T.div`
2043
+ padding: 0 var(--spacing-lg) var(--spacing-sm);
2044
+ height: 100%;
2045
+
2046
+ @media (max-width: ${Kn}px) {
2047
+ padding: var(--spacing-xs) var(--spacing-sm);
2048
+ background-color: var(--bg-color);
2052
2049
  }
2053
- `,al=T.span`
2054
- gap: var(--spacing-xs);
2050
+ `,GK=T.h5`
2051
+ margin: 0;
2052
+ font-size: var(--font-size-base);
2053
+ color: var(--text-color-primary);
2054
+ font-weight: var(--font-weight-semibold);
2055
+ `;function YK(t){j.useEffect(()=>{ml.save(t.get())},[t])}const qK=()=>{const[t,e]=j.useState(!0);return g.jsxs(g.Fragment,{children:[g.jsx(HK,{isCollapsed:t,children:g.jsx(Y$,{})}),g.jsx(UK,{isCollapsed:t,children:g.jsx(nj,{panel:{isCollapsed:t,expand:()=>{e(!t)},collapse:()=>{e(!t)},toggle:()=>{}}})})]})},UK=T.div`
2056
+ height: ${({isCollapsed:t})=>t?"40px":"100%"};
2057
+ z-index: 102;
2058
+ `,HK=T.div`
2059
+ height: ${({isCollapsed:t})=>t?"calc(100vh - 40px)":"321px"};
2060
+ z-index: 100;
2061
+ `;function Yx(){const{response:t,environments:e}=je(),n=t.get(),r=[50,50],i=j.useRef(null),[o,s]=j.useState(!0),a=lJ(),{isMobile:l}=Yr();YK(e),j.useEffect(()=>{var u,f;n&&o&&(((u=i.current)==null?void 0:u.getLayout()[1])||0)===25&&((f=i.current)==null||f.setLayout(r))},[n,o]);const c=()=>{var u;(u=i.current)==null||u.setLayout(r)};return g.jsx(JK,{autoSaveId:"mainPanelResponsible",direction:"vertical",ref:i,children:l?g.jsx(qK,{}):g.jsxs(g.Fragment,{children:[g.jsx(Lm,{defaultSize:75,children:g.jsx(Y$,{})}),!l&&g.jsx(sJ,{onClick:()=>s(!1),onDoubleClick:c}),a.panel.isCollapsed&&g.jsx(KK,{children:g.jsx(q$,{panel:a.panel,response:t})}),g.jsx(Lm,{...a.panelProps,minSize:cJ,defaultSize:25,children:g.jsx(nj,{panel:a.panel})})]})})}const JK=T(N$)`
2055
2062
  display: flex;
2056
- padding: var(--spacing-xs) var(--spacing-md);
2057
- align-items: center;
2058
- width: 156px;
2059
- height: 32px;
2060
- border-radius: var(--border-radius);
2063
+ flex-direction: column;
2064
+ flex-grow: 1;
2065
+ width: 55%;
2066
+ `,KK=T.div`
2067
+ padding: 0 var(--spacing-lg) var(--spacing-sm);
2061
2068
 
2062
- &:hover {
2063
- background-color: var(--bg-color-hover);
2069
+ @media (max-width: ${Kn}px) {
2070
+ padding: var(--spacing-xs) var(--spacing-sm);
2064
2071
  }
2065
- `;function Une({children:t,controls:e,onClick:n,level:r=0,active:i,showControlsOnHover:o=!1,dataTestId:s}){const a=l=>{(l.key===" "||l.key==="Enter")&&(l.preventDefault(),n==null||n())};return g.jsxs(Hne,{tabIndex:0,role:"listitem",onKeyDown:a,onClick:n,"data-testid":s,$level:r,$active:!!i,children:[g.jsx(Jne,{className:"accordion-item-content",children:t}),g.jsx(Wj,{children:g.jsx(Vj,{$showControlsOnHover:o,onClick:l=>l.stopPropagation(),children:e})})]})}const Wj=T.div`
2072
+ `;var rj={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(Fe,function(){var n=1e3,r=6e4,i=36e5,o="millisecond",s="second",a="minute",l="hour",c="day",u="week",f="month",d="quarter",h="year",p="date",O="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,x=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(M){var Q=["th","st","nd","rd"],Z=M%100;return"["+M+(Q[(Z-20)%10]||Q[Z]||Q[0])+"]"}},y=function(M,Q,Z){var G=String(M);return!G||G.length>=Q?M:""+Array(Q+1-G.length).join(Z)+M},S={s:y,z:function(M){var Q=-M.utcOffset(),Z=Math.abs(Q),G=Math.floor(Z/60),V=Z%60;return(Q<=0?"+":"-")+y(G,2,"0")+":"+y(V,2,"0")},m:function M(Q,Z){if(Q.date()<Z.date())return-M(Z,Q);var G=12*(Z.year()-Q.year())+(Z.month()-Q.month()),V=Q.clone().add(G,f),ee=Z-V<0,Y=Q.clone().add(G+(ee?-1:1),f);return+(-(G+(Z-V)/(ee?V-Y:Y-V))||0)},a:function(M){return M<0?Math.ceil(M)||0:Math.floor(M)},p:function(M){return{M:f,y:h,w:u,d:c,D:p,h:l,m:a,s,ms:o,Q:d}[M]||String(M||"").toLowerCase().replace(/s$/,"")},u:function(M){return M===void 0}},b="en",w={};w[b]=v;var C="$isDayjsObject",k=function(M){return M instanceof $||!(!M||!M[C])},I=function M(Q,Z,G){var V;if(!Q)return b;if(typeof Q=="string"){var ee=Q.toLowerCase();w[ee]&&(V=ee),Z&&(w[ee]=Z,V=ee);var Y=Q.split("-");if(!V&&Y.length>1)return M(Y[0])}else{var z=Q.name;w[z]=Q,V=z}return!G&&V&&(b=V),V||!G&&b},A=function(M,Q){if(k(M))return M.clone();var Z=typeof Q=="object"?Q:{};return Z.date=M,Z.args=arguments,new $(Z)},E=S;E.l=I,E.i=k,E.w=function(M,Q){return A(M,{locale:Q.$L,utc:Q.$u,x:Q.$x,$offset:Q.$offset})};var $=function(){function M(Z){this.$L=I(Z.locale,null,!0),this.parse(Z),this.$x=this.$x||Z.x||{},this[C]=!0}var Q=M.prototype;return Q.parse=function(Z){this.$d=function(G){var V=G.date,ee=G.utc;if(V===null)return new Date(NaN);if(E.u(V))return new Date;if(V instanceof Date)return new Date(V);if(typeof V=="string"&&!/Z$/i.test(V)){var Y=V.match(m);if(Y){var z=Y[2]-1||0,D=(Y[7]||"0").substring(0,3);return ee?new Date(Date.UTC(Y[1],z,Y[3]||1,Y[4]||0,Y[5]||0,Y[6]||0,D)):new Date(Y[1],z,Y[3]||1,Y[4]||0,Y[5]||0,Y[6]||0,D)}}return new Date(V)}(Z),this.init()},Q.init=function(){var Z=this.$d;this.$y=Z.getFullYear(),this.$M=Z.getMonth(),this.$D=Z.getDate(),this.$W=Z.getDay(),this.$H=Z.getHours(),this.$m=Z.getMinutes(),this.$s=Z.getSeconds(),this.$ms=Z.getMilliseconds()},Q.$utils=function(){return E},Q.isValid=function(){return this.$d.toString()!==O},Q.isSame=function(Z,G){var V=A(Z);return this.startOf(G)<=V&&V<=this.endOf(G)},Q.isAfter=function(Z,G){return A(Z)<this.startOf(G)},Q.isBefore=function(Z,G){return this.endOf(G)<A(Z)},Q.$g=function(Z,G,V){return E.u(Z)?this[G]:this.set(V,Z)},Q.unix=function(){return Math.floor(this.valueOf()/1e3)},Q.valueOf=function(){return this.$d.getTime()},Q.startOf=function(Z,G){var V=this,ee=!!E.u(G)||G,Y=E.p(Z),z=function(ce,re){var ae=E.w(V.$u?Date.UTC(V.$y,re,ce):new Date(V.$y,re,ce),V);return ee?ae:ae.endOf(c)},D=function(ce,re){return E.w(V.toDate()[ce].apply(V.toDate("s"),(ee?[0,0,0,0]:[23,59,59,999]).slice(re)),V)},B=this.$W,N=this.$M,U=this.$D,F="set"+(this.$u?"UTC":"");switch(Y){case h:return ee?z(1,0):z(31,11);case f:return ee?z(1,N):z(0,N+1);case u:var te=this.$locale().weekStart||0,L=(B<te?B+7:B)-te;return z(ee?U-L:U+(6-L),N);case c:case p:return D(F+"Hours",0);case l:return D(F+"Minutes",1);case a:return D(F+"Seconds",2);case s:return D(F+"Milliseconds",3);default:return this.clone()}},Q.endOf=function(Z){return this.startOf(Z,!1)},Q.$set=function(Z,G){var V,ee=E.p(Z),Y="set"+(this.$u?"UTC":""),z=(V={},V[c]=Y+"Date",V[p]=Y+"Date",V[f]=Y+"Month",V[h]=Y+"FullYear",V[l]=Y+"Hours",V[a]=Y+"Minutes",V[s]=Y+"Seconds",V[o]=Y+"Milliseconds",V)[ee],D=ee===c?this.$D+(G-this.$W):G;if(ee===f||ee===h){var B=this.clone().set(p,1);B.$d[z](D),B.init(),this.$d=B.set(p,Math.min(this.$D,B.daysInMonth())).$d}else z&&this.$d[z](D);return this.init(),this},Q.set=function(Z,G){return this.clone().$set(Z,G)},Q.get=function(Z){return this[E.p(Z)]()},Q.add=function(Z,G){var V,ee=this;Z=Number(Z);var Y=E.p(G),z=function(N){var U=A(ee);return E.w(U.date(U.date()+Math.round(N*Z)),ee)};if(Y===f)return this.set(f,this.$M+Z);if(Y===h)return this.set(h,this.$y+Z);if(Y===c)return z(1);if(Y===u)return z(7);var D=(V={},V[a]=r,V[l]=i,V[s]=n,V)[Y]||1,B=this.$d.getTime()+Z*D;return E.w(B,this)},Q.subtract=function(Z,G){return this.add(-1*Z,G)},Q.format=function(Z){var G=this,V=this.$locale();if(!this.isValid())return V.invalidDate||O;var ee=Z||"YYYY-MM-DDTHH:mm:ssZ",Y=E.z(this),z=this.$H,D=this.$m,B=this.$M,N=V.weekdays,U=V.months,F=V.meridiem,te=function(re,ae,H,pe){return re&&(re[ae]||re(G,ee))||H[ae].slice(0,pe)},L=function(re){return E.s(z%12||12,re,"0")},ce=F||function(re,ae,H){var pe=re<12?"AM":"PM";return H?pe.toLowerCase():pe};return ee.replace(x,function(re,ae){return ae||function(H){switch(H){case"YY":return String(G.$y).slice(-2);case"YYYY":return E.s(G.$y,4,"0");case"M":return B+1;case"MM":return E.s(B+1,2,"0");case"MMM":return te(V.monthsShort,B,U,3);case"MMMM":return te(U,B);case"D":return G.$D;case"DD":return E.s(G.$D,2,"0");case"d":return String(G.$W);case"dd":return te(V.weekdaysMin,G.$W,N,2);case"ddd":return te(V.weekdaysShort,G.$W,N,3);case"dddd":return N[G.$W];case"H":return String(z);case"HH":return E.s(z,2,"0");case"h":return L(1);case"hh":return L(2);case"a":return ce(z,D,!0);case"A":return ce(z,D,!1);case"m":return String(D);case"mm":return E.s(D,2,"0");case"s":return String(G.$s);case"ss":return E.s(G.$s,2,"0");case"SSS":return E.s(G.$ms,3,"0");case"Z":return Y}return null}(re)||Y.replace(":","")})},Q.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},Q.diff=function(Z,G,V){var ee,Y=this,z=E.p(G),D=A(Z),B=(D.utcOffset()-this.utcOffset())*r,N=this-D,U=function(){return E.m(Y,D)};switch(z){case h:ee=U()/12;break;case f:ee=U();break;case d:ee=U()/3;break;case u:ee=(N-B)/6048e5;break;case c:ee=(N-B)/864e5;break;case l:ee=N/i;break;case a:ee=N/r;break;case s:ee=N/n;break;default:ee=N}return V?ee:E.a(ee)},Q.daysInMonth=function(){return this.endOf(f).$D},Q.$locale=function(){return w[this.$L]},Q.locale=function(Z,G){if(!Z)return this.$L;var V=this.clone(),ee=I(Z,G,!0);return ee&&(V.$L=ee),V},Q.clone=function(){return E.w(this.$d,this)},Q.toDate=function(){return new Date(this.valueOf())},Q.toJSON=function(){return this.isValid()?this.toISOString():null},Q.toISOString=function(){return this.$d.toISOString()},Q.toString=function(){return this.$d.toUTCString()},M}(),R=$.prototype;return A.prototype=R,[["$ms",o],["$s",s],["$m",a],["$H",l],["$W",c],["$M",f],["$y",h],["$D",p]].forEach(function(M){R[M[1]]=function(Q){return this.$g(Q,M[0],M[1])}}),A.extend=function(M,Q){return M.$i||(M(Q,$,A),M.$i=!0),A},A.locale=I,A.isDayjs=k,A.unix=function(M){return A(1e3*M)},A.en=w[b],A.Ls=w,A.p={},A})})(rj);var eee=rj.exports;const dh=wa(eee);function ij({children:t,controls:e,staticLabels:n,onClick:r,isStandAlone:i=!1,showControlsOnHover:o=!1,dataTestId:s}){const a=l=>{(l.key===" "||l.key==="Enter")&&(l.preventDefault(),r==null||r())};return g.jsxs(nee,{tabIndex:0,role:"listitem",onKeyDown:a,onClick:r,$standalone:i,"data-testid":s,children:[g.jsx(ree,{className:"accordion-item-content",children:t}),g.jsxs(qx,{children:[n&&g.jsx(tee,{children:n}),g.jsx(oj,{$showControlsOnHover:o,children:e})]})]})}const qx=T.div`
2066
2073
  display: flex;
2067
2074
  flex-direction: row;
2068
- `,Vj=T(Wj)`
2075
+ `,tee=T(qx)`
2076
+ gap: var(--spacing-xxs);
2077
+ width: max-content;
2078
+ align-items: center;
2079
+ `,oj=T(qx)`
2069
2080
  display: ${({$showControlsOnHover:t})=>t?"none":"flex"};
2070
- padding-right: var(--spacing-xs);
2071
- `,Hne=T.div`
2072
- width: 100%;
2073
- height: 32px;
2081
+ gap: var(--spacing-xxs);
2082
+ `,nee=T.div`
2083
+ width: ${({$standalone:t})=>t?"100%":"calc(100% + 24px)"};
2074
2084
  max-height: 100%;
2075
2085
  display: flex;
2076
2086
  align-items: center;
2077
2087
  justify-content: space-between;
2078
2088
  gap: var(--spacing-xxs);
2079
- padding: ${({$level:t})=>`var(--spacing-xxs) var(--spacing-xs) var(--spacing-xxs) calc(var(--spacing-sm) - 1px + ${t} * var(--spacing-base))`};
2089
+ padding-left: var(--spacing-lg);
2090
+ margin-left: ${({$standalone:t})=>t?"0":"-24px"};
2080
2091
 
2081
- &:hover {
2092
+ &:hover,
2093
+ &:focus,
2094
+ &:focus-within {
2082
2095
  background-color: var(--bg-color-hover);
2083
2096
 
2084
- ${Vj} {
2097
+ ${oj} {
2085
2098
  display: flex;
2086
2099
  }
2087
2100
  }
2088
-
2089
- &:hover,
2090
- &:not(:hover) {
2091
- ${({$active:t})=>t&&" background-color: var(--bg-color-active);"}
2092
- }
2093
- `,Jne=T.div`
2101
+ `,ree=T.div`
2094
2102
  max-width: 30vw;
2095
2103
  display: flex;
2104
+ border-left: 1px solid var(--border-color-secondary);
2096
2105
  flex-direction: column;
2097
2106
  justify-content: center;
2098
2107
  align-items: flex-start;
2099
2108
  gap: 2px;
2100
- `;function Kne({defaultName:t,onChange:e,onSave:n,onCancel:r,before:i,level:o=0,placeholder:s="New Request",siblingItems:a}){const{newName:l,setNewName:c,disabled:u}=Xx(t,a),f=j.useRef(null),d=l.trim();j.useEffect(()=>{var O;(O=f.current)==null||O.focus()},[f]);const h=j.useCallback(O=>{O.key==="Escape"&&(r==null||r()),O.key==="Enter"&&!u&&n(d)},[r,n,d,u]),p=O=>{c(O.target.value),e==null||e(O)};return g.jsx(Po,{onClickOutside:r,children:g.jsxs(ere,{$level:o,onKeyDown:h,children:[i,g.jsx(Jo,{ref:f,"data-testid":"edit-item-header-input",type:"text",placeholder:s,value:l,onChange:p}),g.jsx(ik,{"data-testid":"edit-item-header-save-button",variant:"primary",size:"small",onClick:()=>n(d),disabled:u,icon:g.jsx(_.CheckmarkIcon,{})}),g.jsx(ik,{"data-testid":"edit-item-header-cancel-button",variant:"text",size:"small",onClick:r,icon:g.jsx(_.CloseIcon,{})})]})})}const ere=T.div`
2109
+ `;var sj={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(Fe,function(){return function(n,r,i){var o="h:mm A",s={lastDay:"[Yesterday at] "+o,sameDay:"[Today at] "+o,nextDay:"[Tomorrow at] "+o,nextWeek:"dddd [at] "+o,lastWeek:"[Last] dddd [at] "+o,sameElse:"MM/DD/YYYY"};r.prototype.calendar=function(a,l){var c=l||this.$locale().calendar||s,u=i(a||void 0).startOf("d"),f=this.diff(u,"d",!0),d="sameElse",h=f<-6?d:f<-1?"lastWeek":f<0?"lastDay":f<1?"sameDay":f<2?"nextDay":f<7?"nextWeek":d,p=c[h]||s[h];return typeof p=="function"?p.call(this,i()):this.format(p)}}})})(sj);var iee=sj.exports;const oee=wa(iee);dh.extend(oee);const WC=(t,e)=>dh(t).calendar(null,{sameDay:"[Today]",lastDay:"[Yesterday]",lastWeek:"DD MMM",sameElse:"DD MMM"});function see(t,e){return t.reduce((r,i)=>{const o=dh(i[e]).format("YYYY-MM-DD");return r[o]||(r[o]=[]),r[o].push(i),r},{})}function aee({onConfirm:t,onCancel:e,confirmText:n="Delete",cancelText:r="Cancel",description:i="Are you sure?"}){return g.jsxs(lee,{children:[g.jsx(_.WarningFilledIcon,{size:"16px",color:"--color-warning-base"}),g.jsxs("div",{children:[g.jsx("div",{children:i}),g.jsxs(cee,{children:[g.jsx(_.Button,{size:"small",variant:"text",onClick:e,"data-testid":"cancel-btn",children:r}),g.jsx(_.Button,{size:"small",variant:"primary",tone:"danger",onClick:t,"data-testid":"confirm-btn",children:n})]})]})]})}function ba({children:t,onConfirm:e,onCancel:n,trigger:r=["click"],placement:i="bottomRight",showArrow:o=!0,onVisibilityChange:s,...a}){const[l,c]=j.useState(!1),u=j.useRef(null);j.useEffect(()=>{s==null||s(l)},[l,s]);const f=p=>{p.stopPropagation(),e==null||e(),c(!1)},d=p=>{p==null||p.stopPropagation(),n==null||n(),c(!1)},h=p=>{p.stopPropagation(),c(O=>!O)};return l?g.jsx(Ia,{ref:u,trigger:r,showArrow:o&&{content:g.jsx(uee,{})},placement:i,visible:l,overlayStyle:{zIndex:"1000",position:"absolute"},overlay:g.jsx(Po,{onClickOutside:d,children:g.jsx(aee,{...a,onCancel:d,onConfirm:f})}),children:g.jsx("div",{onClick:h,children:t})}):g.jsx("div",{onClick:h,children:t})}const lee=T(Ao)`
2101
2110
  display: flex;
2102
- align-items: center;
2103
- gap: 4px;
2104
- align-self: stretch;
2105
- padding: ${({$level:t})=>`var(--spacing-xxs) var(--spacing-xs) var(--spacing-xxs) calc(var(--spacing-sm) - 1px + ${t} * var(--spacing-base))`};
2106
-
2107
- background-color: var(--bg-color-active);
2111
+ gap: var(--spacing-xs);
2112
+ width: 300px;
2113
+ padding: var(--spacing-base);
2114
+ border-radius: var(--border-radius-sm);
2115
+ color: var(--text-color-secondary);
2116
+ font-size: var(--font-size-base);
2117
+ `,cee=T.div`
2118
+ display: flex;
2119
+ justify-content: flex-end;
2120
+ gap: var(--spacing-xs);
2121
+ `,uee=T(EP)`
2122
+ left: -4px;
2123
+ `;function fee(){var x,v;const[t,e]=j.useState(""),{history:n,requestError:r,disableCollectionsTab:i}=je(),{sendEvent:o}=ct(),{MobileHeader:s,isMobile:a,setActiveTab:l}=Yr(),{updateTransaction:c}=ah(),u=j.useMemo(()=>[...n.get()].sort((y,S)=>S.date-y.date),[n]),f=j.useMemo(()=>u.filter(y=>y.request.url.toLowerCase().includes(t.toLowerCase())||y.request.method.toLowerCase().includes(t.toLowerCase())),[u,t]),d=j.useMemo(()=>see(f,"date"),[f]),h=y=>{e(y)},p=j.useCallback(y=>{const S=n.get().filter(b=>b.date!==y);n.set(yn(S)),o("history_item_removed",{})},[n,o]),O=j.useCallback(()=>{n.set([]),o("history_all_items_removed",{})},[n,o]),m=j.useCallback(y=>{r.set(null),c({request:y.request,response:y.response},null),o("history_item_clicked",{}),l("Request")},[r,c,o,l]);return(x=n.get())!=null&&x.length?g.jsxs(zx,{children:[g.jsx(s,{}),g.jsxs(kc,{children:[g.jsx(Ac,{value:t,onSearch:h}),g.jsx(Qe,{}),g.jsx(z$,{children:g.jsx(ba,{description:"Are you sure to clear your whole history?",placement:"bottomRight",onConfirm:O,children:g.jsx(_.Button,{"data-testid":"clear-history-button",disabled:!((v=n.get())!=null&&v.length),variant:"text",size:"small",icon:g.jsx(_.CleanIcon,{})})})})]}),g.jsx(uh,{children:Object.entries(d).map((y,S)=>{const[b,w]=y;return g.jsx(Fd,{title:WC(b),defaultExpanded:S===0,children:w.map((C,k)=>g.jsx(dee,{"data-testid":`history-item-${k}`,children:g.jsx(ij,{showControlsOnHover:!a,onClick:()=>m(C),staticLabels:C.response?g.jsx(Oee,{children:g.jsx(mee,{tabIndex:-1,status:C.response.status.toString(),children:C.response.status})}):null,controls:g.jsxs(g.Fragment,{children:[!i.get()&&g.jsx(G$,{transaction:C,children:g.jsx(_.Button,{icon:g.jsx(_.BookmarkAddIcon,{}),size:"small"})}),g.jsx(ba,{description:"Are you sure you to delete this request?",placement:"bottomRight",onConfirm:()=>p(C.date),children:g.jsx($r,{icon:g.jsx(_.TrashCanIcon,{}),size:"small","data-testid":`remove-history-item-${k}`})})]}),children:g.jsxs(hee,{children:[g.jsx(Gm,{value:C.request.method}),g.jsx(pee,{mouseEnterDelay:1,placement:"bottom",content:dh(new Date(C.date)).format("MMM, DD, YYYY, hh:mm:ss A"),children:g.jsx(gee,{children:C.request.url})})]},C.date)})},C.date))},WC(b))})})]}):g.jsxs(g.Fragment,{children:[g.jsx(s,{}),g.jsxs(L$,{children:[g.jsx("h3",{children:"You have not run any requests"}),"You'll see the full history of the request."]})]})}const dee=T.div`
2108
2124
  height: 32px;
2109
- `,ik=T(_.Button)`
2110
- border: none;
2111
2125
 
2112
- & + & {
2113
- margin-left: 0;
2126
+ .accordion-item-content {
2127
+ max-width: calc(30vw - 100px);
2114
2128
  }
2115
- `;function tre({item:t,level:e,siblingItems:n,onRemove:r}){var O;const{requestError:i,transactionSource:o}=je(),{updateTransaction:s}=ah(),{sendEvent:a}=ct(),{state:l,name:c}=t.get(),u=()=>{t.state.set(gt.Normal),a("collections_request_editing_cancelled",{name:t.name.get()})},f=m=>{m.length&&t.name.set(m),t.state.set(gt.Normal),a("collections_request_edited",{name:t.name.get(),newName:m})},d=()=>{i.set(null),s({request:t.request.get({noproxy:!0}),response:t.response.get({noproxy:!0})},{id:t.id.get(),type:"collection",name:t.name.get()}),a("collections_request_clicked",{name:t.name.get()})},h=()=>{t.state.set(gt.Edit),a("collections_request_editing_started",{name:t.name.get()})},p=((O=o.get())==null?void 0:O.id)===t.id.get();return l===gt.Edit?g.jsx(Kne,{defaultName:c,before:g.jsx(Gm,{value:t.request.method.get()}),level:e,siblingItems:n,onSave:f,onCancel:u}):l===gt.Draft?g.jsx(Gx,{siblingItems:n,defaultName:c,level:e,onSave:f,onCancel:r,placeholder:"New Request",icon:g.jsx(_.DocumentAddIcon,{size:"14px",color:"--icon-color-disabled"})}):g.jsx(Une,{level:e,active:p,showControlsOnHover:!0,onClick:d,controls:g.jsxs(nre,{children:[g.jsx(ok,{variant:"text",size:"small",onClick:h,icon:g.jsx(_.EditIcon,{})}),g.jsx(ok,{variant:"text",size:"small",onClick:r,icon:g.jsx(_.TrashCanIcon,{color:"--color-error-base"})})]}),children:g.jsxs(rre,{children:[g.jsx(Gm,{value:t.request.method.get()}),g.jsx(ire,{children:t.name.get()})]},`${t.id}`)})}const nre=T.div`
2116
- display: flex;
2117
- flex-direction: row;
2118
- gap: var(--spacing-xxs);
2119
- `,rre=T.div`
2120
- width: 100%;
2129
+ `,hee=T.div`
2130
+ max-width: 100%;
2121
2131
  display: flex;
2122
2132
  flex-direction: row;
2123
2133
  flex-shrink: 0;
2124
2134
  gap: var(--spacing-xxs);
2135
+ padding: var(--spacing-sm) 0 var(--spacing-sm) var(--spacing-base);
2125
2136
  cursor: pointer;
2126
2137
  min-width: 0;
2138
+ `,pee=T(To)`
2139
+ max-width: 100%;
2140
+ text-overflow: ellipsis;
2127
2141
  overflow: hidden;
2128
2142
  white-space: nowrap;
2129
- text-overflow: ellipsis;
2130
- align-items: center;
2131
- `,ire=T.span`
2143
+ `,gee=T.div`
2132
2144
  font-size: var(--font-size-base);
2133
2145
  font-weight: var(--font-weight-regular);
2134
2146
  line-height: var(--line-height-base);
2135
2147
  color: var(--text-color-primary);
2148
+ max-width: 100%;
2136
2149
  text-overflow: ellipsis;
2137
2150
  overflow: hidden;
2138
2151
  white-space: nowrap;
2139
- `,ok=T(_.Button)`
2140
- & + & {
2141
- margin-left: 0;
2142
- }
2143
- `;function zj({item:t,level:e,itemList:n,expanded:r}){const{transactionSource:i}=je(),o=Zx(),{sendEvent:s}=ct(),a=()=>{t.get().value.state===gt.Draft?s("collections_folder_creation_cancelled",{}):s("collections_folder_removed",{name:t.get().value.name}),c(t.get({noproxy:!0}).value)&&i.set(null),t.set(lt)},l=()=>{const u=t.get({noproxy:!0}).value;t.get().value.state===gt.Draft?s("collections_request_creation_cancelled",{}):s("collections_request_removed",{name:u.name}),(o==null?void 0:o.get().id)===u.id&&i.set(null),t.set(lt)},c=u=>u.items.some(f=>f.type===sn.Folder?c(f.value):(o==null?void 0:o.get().id)===f.value.id);return t.get().type===sn.Folder?g.jsx(Xne,{folder:t.nested("value"),siblingItems:n,onRemove:a,level:e,expanded:r}):g.jsx(tre,{item:t.nested("value"),siblingItems:n,level:e,onRemove:l})}async function ore(){const t=document.createElement("input");return t.type="file",t.accept=".json, .yaml, .yml",new Promise((e,n)=>{const r=i=>{var c;const s=(c=i.target.files)==null?void 0:c[0];if(!s){n(new Error("No file selected."));return}const a=s.name.toLowerCase();if(!a.endsWith(".json")&&!a.endsWith(".yaml")&&!a.endsWith(".yml")){n(new Error("Please select a JSON, YAML, or YML file."));return}const l=new FileReader;l.onload=u=>{var d;const f=(d=u.target)==null?void 0:d.result;typeof f=="string"?e(f):n(new Error("Failed to read file content."))},l.onerror=()=>{n(new Error("Error reading file."))},l.readAsText(s),t.removeEventListener("change",r)};t.addEventListener("change",r),t.click()})}var tO=(t=>(t[t.NoRequestItemsError=0]="NoRequestItemsError",t[t.RequestItemsParseError=1]="RequestItemsParseError",t))(tO||{});function sre(t){const e={type:sn.Folder,value:{id:crypto.randomUUID(),state:gt.Normal,name:nO(t.workflows[0].workflowId),items:are(t.workflows[0].steps)}},n=Lj(e);return n===0?{data:null,error:0}:n<t.workflows[0].steps.length?{data:e,error:1}:{data:e}}function are(t){const e=[];return t.forEach(n=>{const r=n.stepId.split("/");let i=e;r.forEach((o,s)=>{if(s===r.length-1){const a=lre(n,i);a&&i.push(a)}else i=cre(i,o).value.items})}),e}function lre(t,e){var n;try{const r=ba(e,t.description);return{type:sn.Request,value:{id:crypto.randomUUID(),state:gt.Normal,name:r,request:{method:t["x-operation"].method.toUpperCase(),url:t["x-replay"].path,security:ure(t["x-replay"].securities),body:fre({contentType:(n=t.requestBody)==null?void 0:n.contentType,payload:t["x-replay"].body}),queryParameters:kg(t["x-replay"].parameters,"query"),headers:kg(t["x-replay"].parameters,"header"),cookies:kg(t["x-replay"].parameters,"cookie")},response:null}}}catch{return null}}function cre(t,e){let n=t.find(r=>r.type===sn.Folder&&r.value.name===nO(e));return n||(n={type:sn.Folder,value:{id:crypto.randomUUID(),state:gt.Normal,name:nO(e),items:[]}},t.push(n)),n}function ure(t){return{securitySchemeVariants:[],selectedSecuritySchemeId:"",securities:t.map(e=>{const n=fs(),r=e.type;return{...n,securityType:e.type,[e.type]:{...n[r],...e.data}}})}}function fre(t){if(!(t!=null&&t.payload)||!(t!=null&&t.contentType))return{...to(),type:ot.Text};const{contentType:e,payload:n}=t;switch(e){case ot.JSON:case ot.HTML:case ot.XML:case ot.Text:return{...to(),type:e,content:JSON.parse(n)};case ot.FormData:return{...to(),type:e,formData:{"multipart/form-data":sk(n),"application/x-www-form-urlencoded":[]}};case ot["application/x-www-form-urlencoded"]:return{...to(),type:e,formData:{"multipart/form-data":[],"application/x-www-form-urlencoded":sk(n)}};default:return{...to(),type:ot.Text}}}function sk(t){return JSON.parse(t).map(e=>({id:crypto.randomUUID(),key:e.key,value:e.value,active:!0,type:"text"}))}function kg(t,e){const n=t.filter(({in:r})=>r===e).map(({value:r,name:i})=>({id:crypto.randomUUID(),key:i,active:!0,value:r}));return n.push(un()),n}function nO(t){return t.replace(/-/g," ")}function Lj(t){return t.type===sn.Request?1:t.type===sn.Folder?t.value.items.reduce((n,r)=>n+Lj(r),0):0}function ak({icon:t,title:e,description:n,cancelButtonLabel:r,submitButtonLabel:i,onClose:o,onSubmit:s}){return g.jsxs(g.Fragment,{children:[g.jsxs(dre,{children:[t,g.jsx(hre,{children:e}),g.jsx(pre,{children:n})]}),g.jsxs(gre,{children:[g.jsx(_.Button,{variant:"outlined",onClick:o,children:r}),g.jsx(_.Button,{variant:"primary",onClick:s,children:i})]})]})}const dre=T.div`
2144
- display: flex;
2145
- flex-direction: column;
2146
- align-items: center;
2147
- margin-bottom: var(--spacing-xxl);
2148
- `,hre=T.h6`
2149
- font-size: var(--font-size-lg);
2150
- font-weight: var(--font-weight-medium);
2151
- line-height: var(--line-height-lg);
2152
- margin: var(--spacing-sm) 0;
2153
- `,pre=T.p`
2154
- font-size: var(--font-size-base);
2152
+ `,mee=T(_.StatusCode)`
2153
+ font-size: var(--font-size-sm);
2154
+ line-height: var(--line-height-sm);
2155
2155
  font-weight: var(--font-weight-regular);
2156
- line-height: var(--line-height-base);
2156
+ `,Oee=T.span`
2157
+ height: var(--line-height-sm);
2158
+ background: var(--border-color-secondary);
2159
+ padding: 0 var(--spacing-xxs);
2160
+ font-size: var(--font-size-sm);
2161
+ line-height: var(--line-height-sm);
2162
+ border-radius: var(--border-radius);
2157
2163
  color: var(--text-color-secondary);
2158
- text-align: center;
2159
- max-width: 35%;
2160
- margin: 0;
2161
- `,gre=T.div`
2162
- display: flex;
2163
- justify-content: flex-end;
2164
- gap: var(--spacing-xs);
2165
- `;function mre(){const[t,e]=j.useState(""),{collections:n}=je(),r=p0(),i=p0(),{sendEvent:o}=ct(),[s,a]=j.useState(null),l=j.useMemo(()=>n.get().some(O=>O.value.state===gt.Draft),[n]),c=j.useMemo(()=>n.filter(O=>t?O.get().value.name.toLowerCase().includes(t.toLowerCase()):!0),[n,t]),u=j.useMemo(()=>c.sort(O=>{const{value:m,type:x}=O.get();return x===sn.Folder?m.state===gt.Draft?-1:0:1}),[c]),f=()=>{if(l)return;e("");const O=ba(n.get(),"New Collection");n.set(m=>[...m,{type:sn.Folder,value:{id:crypto.randomUUID(),state:gt.Draft,name:O,items:[]}}]),o("collections_folder_creation_started",{})},d=O=>{e(O)},h=async()=>{r.handleClose(),i.handleClose();try{const O=await ore(),m=Mj.load(O),{data:x,error:v}=sre(m);x&&(x.value.name=ba(n.get(),x.value.name)),v===tO.RequestItemsParseError?(a(x),i.handleOpen(),o("collections_file_import_warning",{})):v===tO.NoRequestItemsError?(r.handleOpen(),o("collections_file_import_error",{})):x&&(n.set(y=>[...y,x]),o("collections_file_imported",{}))}catch(O){r.handleOpen(),o("collections_file_import_error",{error:O.message})}},p=()=>{s&&(n.set(O=>[...O,s]),i.handleClose(),a(null),o("collections_accept_valid_items_clicked",{}))};return g.jsxs(Lx,{children:[g.jsx(Ac,{children:g.jsx(kc,{value:t,onSearch:d})}),g.jsxs(kJ,{children:[g.jsx(_.Button,{variant:"ghost",icon:g.jsx(_.AddIcon,{}),onClick:f,children:"Create new collection"}),g.jsx(_.Button,{variant:"ghost",icon:g.jsx(_.DownloadIcon,{}),onClick:h,children:"Import Arazzo Files"})]}),g.jsxs(fh,{children:[!u.length&&!t?g.jsx(ene,{onImport:h,onAddFolder:f}):null,!u.length&&t?g.jsx(ine,{}):null,u.map((O,m)=>O.get()&&g.jsx(zj,{item:O,itemList:n,level:0,expanded:m==0},O.get().value.id))]}),g.jsx(_l,{title:"Import Arazzo Files",content:g.jsx(ak,{icon:g.jsx(_.CloseFilledIcon,{color:"--color-raspberry-6",size:"21px"}),title:"File error",description:"Something went wrong!",submitButtonLabel:"Ok",cancelButtonLabel:"Choose another file",onClose:h,onSubmit:r.handleClose}),isOpen:r.isOpen,onClose:r.handleClose,mountId:"import-container"}),g.jsx(_l,{title:"Import Arazzo Files",content:g.jsx(ak,{icon:g.jsx(_.WarningFilledIcon,{color:"--color-carrot-6",size:"21px"}),title:"Warning",description:"Some items in your file are not valid. Only valid items will be uploaded.",submitButtonLabel:"Import valid items",cancelButtonLabel:"Cancel",onClose:i.handleClose,onSubmit:p}),isOpen:i.isOpen,onClose:i.handleClose,mountId:"import-container"})]})}const tv=(t,e=!1,n=!1)=>{const r=[];return e&&r.push({key:"Request",label:"Request",children:g.jsx(rv,{})}),r.push({key:"History",label:"History",children:g.jsx(VJ,{}),flexDirection:"column"}),n||r.push({key:"Collections",label:"Collections",children:g.jsx(mre,{}),flexDirection:"column"}),r.push({key:"Environments",label:"Environments",children:g.jsx(mK,{}),flexDirection:"column"}),t||r.push({key:"Apps",label:"Apps",children:g.jsx(jK,{}),flexDirection:"column"}),{tabsParams:r}},Xj=j.createContext({isMobile:!1,activeTab:"Request",MobileHeader:()=>null,setActiveTab:()=>null,closeButton:null}),Kn=800,Gj=({children:t,closeButton:e=null})=>{const{apiId:n}=je(),{sendEvent:r}=ct(),[i,o]=j.useState(document.documentElement.clientWidth<Kn),{tabsParams:s}=tv(n.get(),i),[a,l]=j.useState("Request"),c=j.useCallback(f=>{r("mobile_tab_changed",{name:f})},[r]),u=s.map(f=>({label:f.label,value:f.key,active:!1}));return j.useEffect(()=>{o(document.documentElement.clientWidth<Kn);const f=()=>{o(document.documentElement.clientWidth<Kn)};return window.addEventListener("resize",f),()=>window.removeEventListener("resize",f)},[]),g.jsx(Xj.Provider,{value:{isMobile:i,closeButton:e,MobileHeader:({children:f,hide:d=!1})=>d||!i?null:g.jsx(xre,{children:i?g.jsxs(g.Fragment,{children:[i&&g.jsx(ko,{dataTestId:"mobile-select-panel",options:u,value:u.find(h=>h.value===a),onChange:({value:h})=>{l(h),c(h)}}),f,g.jsx(Ore,{children:e})]}):f}),activeTab:a,setActiveTab:l},children:t})},Ore=T.div`
2166
- flex: 1;
2167
- display: flex;
2168
- justify-content: flex-end;
2169
-
2170
- div {
2171
- top: 0;
2172
- left: 0;
2173
- }
2174
- `,xre=T(Ac)`
2164
+ display: inline-flex;
2165
+ word-break: var(--code-word-break);
2175
2166
  padding: var(--spacing-xs);
2176
- max-height: 40px;
2177
- flex: 1;
2167
+ margin-right: var(--spacing-xs);
2168
+ `,xee="This environment is defined in the OpenAPI description and cannot be edited.",vee="This variable is defined in the OpenAPI description and cannot be edited.",yee="This variable is defined in the OpenAPI description and cannot be deleted.",bee='Are you sure you want to delete "{name}" along with all its variables?';function See(){return g.jsx(wee,{children:g.jsx(_.IBMCloudHyperProtectCryptoServicesIcon,{size:"14px",color:"--color-info-base"})})}const wee=T.div`
2178
2169
  display: flex;
2179
- gap: 12px;
2180
2170
  align-items: center;
2181
- `,Yr=()=>j.useContext(Xj),vre=({activeTab:t,onChange:e})=>{const{isMobile:n}=Yr();if(!n)return null;const r=Oi.find(({name:i})=>i===(t==null?void 0:t.name));return g.jsx(bre,{children:g.jsx(yre,{dataTestId:"request-tab-change-select",options:Oi.map(({name:i})=>({element:i,label:i,value:i})),value:r==null?void 0:r.name,onChange:i=>{const o=Oi.findIndex(({name:s})=>s===i);o!==-1&&e(o)}})})},yre=T(_.Select)`
2182
- border-radius: var(--border-radius-md);
2183
- background-color: var(--bg-color-active);
2184
- `,bre=T.div`
2171
+ justify-content: center;
2172
+ border-radius: 10px;
2173
+ background-color: var(--color-info-bg);
2174
+ width: 20px;
2175
+ height: 20px;
2176
+ `;function Cee({variable:t,environment:e}){const[n,r]=j.useState(!1),[i,o]=j.useState(!1),{sendEvent:s}=ct(),{name:a,value:l,readonlyName:c,isSecret:u,canBeRemoved:f,canBeEdited:d}=t.get(),{name:h}=e.get(),p=y=>{s("environment_variable_edited",{name:h,variable:a,changed:y.value!==l}),t.set(y),r(!1)},O=()=>{r(!1),s("environment_variable_editing_cancelled",{name:h,variable:a})},m=()=>{s("environment_variable_secret_toggled",{name:h,variable:a,visible:!i}),o(!i)},x=()=>{r(!0),s("environment_variable_editing_started",{name:h,variable:a})},v=()=>{t.set(lt),s("environment_variable_removed",{name:h,variable:a})};return n?g.jsx(Tee,{variable:t.get(),onSave:p,onCancel:O,readonlyName:c}):g.jsx(ij,{dataTestId:`environment-variable-${t.get().name}`,controls:g.jsxs(kee,{children:[u&&g.jsx(zs,{onClick:m,variant:"text",size:"small",icon:i?g.jsx(_.ViewOffIcon,{}):g.jsx(_.ViewIcon,{})}),d&&g.jsx(zs,{"data-testid":`edit-variable-btn-${t.get().name}`,size:"small",variant:"text",icon:g.jsx(_.EditIcon,{}),onClick:x}),f&&g.jsx(ba,{description:"Are you sure you to delete this environment variable?",onConfirm:v,children:g.jsx($r,{"data-testid":`remove-variable-btn-${t.get().name}`,icon:g.jsx(_.TrashCanIcon,{})})}),(!d||!f)&&g.jsx(To,{content:d?yee:vee,children:g.jsx(zs,{size:"small",variant:"text",icon:g.jsx(_.InformationIcon,{})})})]}),children:g.jsxs(Aee,{children:[g.jsxs(Pee,{children:[g.jsx(Eee,{children:a}),u&&g.jsx(See,{})]}),g.jsx(Iee,{$isEmpty:!l,children:u&&!i?"•••••":bl(l,e.variables)||"No value"})]})})}const kee=T.div`
2185
2177
  display: flex;
2186
- padding: var(--spacing-xs) var(--spacing-xs) var(--spacing-xs) var(--spacing-sm);
2187
- border-bottom: 1px solid var(--border-color-secondary);
2188
- `,Sre=({activeTab:t,onTabChange:e})=>{const{isMobile:n}=Yr();return n?null:g.jsx(kre,{children:Oi.map((r,i)=>g.jsx(j.Fragment,{children:t.name===r.name?g.jsx(lk,{icon:r.icon,iconPosition:"left",children:r.name}):g.jsx(lk,{variant:"text",icon:r.icon,onClick:()=>e(i),iconPosition:"left",children:r.name})},r.name))})};function wre(){const{operation:t,requestActiveTabIdx:e}=je(),{sendEvent:n}=ct(),[r,i]=j.useState(Oi[e.get()]);j.useEffect(()=>{var a;const s=(a=t.get())==null?void 0:a.body;e.set(s?jH:x$)},[t]),j.useEffect(()=>{i(Oi[e.get()])},[e]);const o=s=>{const a=Oi[s];e.set(s),n("request_tab_changed",{name:a.name})};return g.jsxs(Cre,{children:[g.jsx(vre,{activeTab:r,onChange:o}),g.jsx(Sre,{activeTab:r,onTabChange:o}),g.jsx(Are,{children:g.jsx(r.content,{})})]})}const Cre=T.div`
2178
+ flex-direction: row;
2179
+ gap: var(--spacing-xxs);
2180
+ padding-right: var(--spacing-base);
2181
+ `,Aee=T.div`
2189
2182
  display: flex;
2190
2183
  flex-direction: column;
2191
- gap: var(--spacing-sm);
2192
- height: 100%;
2193
- overflow: auto;
2194
- `,kre=T.div`
2195
- display: flex;
2196
- flex-direction: row;
2184
+ justify-content: center;
2185
+ align-items: flex-start;
2186
+ padding-bottom: var(--spacing-xs);
2197
2187
  gap: 2px;
2198
- padding: var(--spacing-xs) var(--spacing-lg);
2199
-
2200
- @media (max-width: ${Kn}px) {
2201
- padding: var(--spacing-xs);
2202
- }
2203
- overflow: auto;
2204
- `,lk=T(_.Button)`
2205
- margin: 0;
2206
- --button-icon-width: 16px;
2207
- --button-icon-height: 16px;
2208
- `,Are=T.div`
2209
- overflow: auto;
2210
- padding: 0 var(--spacing-lg);
2211
- flex: 1;
2212
- height: 100%;
2213
-
2214
- @media (max-width: ${Kn}px) {
2215
- padding: 0 var(--spacing-sm);
2216
- }
2217
- `;function Pre({color:t,className:e,...n}){return g.jsx(Ere,{"data-testid":"badge",className:e,$backgroundColor:t,...n})}const Ere=T.div`
2218
- border: 1px solid var(--border-color-secondary);
2219
- border-radius: var(--border-radius);
2220
- background-color: ${t=>t.$backgroundColor};
2221
- width: 6px;
2222
- height: 6px;
2223
- `;function ck({isLinked:t,onReset:e,url:n,operationName:r}){const{sendEvent:i}=ct(),{isMobile:o}=Yr(),s=()=>{i("open_operation_url",{operationName:r,url:n}),n&&window.open(n,"_blank")};return g.jsxs(Ire,{"data-testid":"request-status",children:[g.jsx(To,{placement:"bottom",content:"This request has predefined data from OpenAPI definition",children:g.jsx(Tre,{color:t?"var(--color-success-base)":"var(--icon-color-disabled)","data-testid":"linked-badge"})}),g.jsx(Qe,{}),g.jsx(jre,{variant:"link",size:"small",onClick:s,icon:g.jsx(_.ArrowUpRightIcon,{}),iconPosition:"right",children:r}),!t&&g.jsxs(g.Fragment,{children:[g.jsx(Qe,{}),g.jsx($re,{variant:"ghost",size:"small",icon:g.jsx(_.RestartIcon,{}),onClick:e,iconPosition:"left",children:!o&&"Reset request"})]})]})}const Ire=T.div`
2188
+ flex: 1 0 0;
2189
+ width: 100%;
2190
+ `,Pee=T.div`
2224
2191
  display: flex;
2225
- height: var(--spacing-lg);
2226
2192
  align-items: center;
2227
- border-radius: var(--border-radius);
2228
- border: 1px solid var(--border-color-secondary);
2229
- background-color: transparent;
2230
- `,Tre=T(Pre)`
2231
- margin: var(--spacing-xs) var(--spacing-xs);
2232
- `,$re=T(_.Button)`
2233
- padding: 0 var(--spacing-xs);
2234
- `,jre=T(_.Button)`
2235
- padding: 0 var(--spacing-xs);
2236
- `,Rre="Predefined request method from the openapi description.",Dre="Alternative request method types not predefined for this request.";function Qre(t){return t===wc?Rre:Dre}function Bre(t){return t.map(e=>({label:g.jsx(X$,{value:e}),value:e}))}function _re(){return Bre(EG)}function Mre({requestName:t,onClose:e,onDiscard:n,onSave:r}){const i=j.useRef(null);return _.useOutsideClick(i,e),_.useFocusTrap(i),g.jsx(Fre,{children:g.jsxs(Nre,{ref:i,tabIndex:0,children:[g.jsx(Zre,{onClick:e,"data-testid":"close",variant:"ghost",icon:g.jsx(_.CloseIcon,{})}),g.jsx(Wre,{children:"Unsaved changes"}),g.jsxs(Vre,{children:["Do you want to save changes in ",t?g.jsxs(zre,{children:["“",t,"”"]}):""," request?"]}),g.jsxs(Lre,{children:[g.jsx(_.Button,{onClick:n,variant:"secondary",children:"Don't save"}),g.jsxs(Xre,{children:[g.jsx(_.Button,{onClick:e,variant:"outlined",children:"Cancel"}),g.jsx(_.Button,{onClick:r,variant:"primary",children:"Save changes"})]})]})]})})}const Nre=T.div`
2237
- background: var(--bg-color);
2238
- box-shadow: var(--bg-raised-shadow);
2239
- border-radius: var(--border-radius-lg);
2240
- padding: var(--spacing-lg);
2241
- display: flex;
2242
- flex-direction: column;
2243
- align-items: flex-start;
2244
- position: absolute;
2245
- width: 500px;
2193
+ width: 100%;
2194
+ gap: var(--spacing-xxs);
2195
+ color: var(--text-color-primary);
2196
+ font-size: var(--font-size-base);
2197
+ font-weight: var(--font-weight-regular);
2198
+ line-height: var(--line-height-base);
2199
+ padding-left: var(--spacing-base);
2200
+ padding-top: var(--spacing-xs);
2201
+ `,Eee=T.div`
2202
+ overflow: hidden;
2203
+ min-width: 0;
2204
+ text-overflow: ellipsis;
2205
+ white-space: nowrap;
2206
+ `,Iee=T.span`
2207
+ color: ${({$isEmpty:t})=>t?"var(--color-warm-grey-5)":"var(--text-color-secondary)"};
2208
+ font-size: var(--font-size-sm);
2209
+ font-weight: var(--font-weight-regular);
2210
+ line-height: var(--line-height-sm);
2211
+ padding-left: var(--spacing-base);
2212
+ word-wrap: break-word;
2246
2213
  max-width: 100%;
2247
- height: auto;
2248
- max-height: 600px;
2249
- overflow-y: scroll;
2250
- left: 50%;
2251
- top: 100px;
2252
- transform: translateX(-50%);
2253
- .tag-grey span {
2254
- font-size: var(--font-size-base);
2255
- line-height: var(--line-height-base);
2256
- }
2257
- `,Fre=T.div`
2258
- background: var(--bg-color-modal-overlay);
2259
- position: fixed;
2260
- width: 100vw;
2261
- height: 100vh;
2262
- z-index: var(--z-index-popover);
2263
- left: 0;
2264
- top: 0;
2265
- pointer-events: auto;
2266
- `,Zre=T(_.Button)`
2267
- position: absolute;
2268
- right: var(--spacing-md);
2269
- top: var(--spacing-md);
2270
- `,Wre=T(_.Typography)`
2271
- display: flex;
2272
- align-items: center;
2273
- font-size: var(--font-size-xl);
2274
- font-weight: var(--font-weight-semibold);
2275
- line-height: var(--line-height-xl);
2276
- margin-bottom: var(--spacing-base);
2277
- svg {
2278
- margin-right: var(--spacing-xs);
2279
- }
2280
- `,Vre=T.div`
2281
- color: var(--text-color-secondary);
2282
- font-size: var(--font-size-lg);
2283
- line-height: var(--line-height-lg);
2284
- margin-bottom: var(--spacing-base);
2285
- `,zre=T.span`
2286
- font-weight: var(--font-weight-semibold);
2287
- `,Lre=T.div`
2288
- display: flex;
2289
- align-self: stretch;
2290
- justify-content: space-between;
2291
- `,Xre=T.div`
2292
- display: flex;
2293
- gap: var(--spacing-xs);
2294
- `;function Yj(){var ce;const t=je(),e=an(),{sendEvent:n}=ct(),r=Zx(),{isTransactionChanged:i,onClose:o,onDiscard:s,onSave:a,updateTransaction:l}=ah(),{isMobile:c,MobileHeader:u}=Yr(),{request:f,response:d,operation:h,environments:p,selectedEnvironmentId:O,isLinked:m,operationUrl:x,isProcessingRequest:v,isRequestEditable:y,transactionSource:S,showUnsavedChangesModal:b,disableCollectionsTab:w}=t,{method:C,url:k,body:I,headers:A,cookies:E,queryParameters:$,security:R}=f,M=h.get(),Q=j.useMemo(()=>[M==null?void 0:M.method.toLocaleUpperCase()],[M==null?void 0:M.method]),Z=_re(),G=j.useMemo(()=>oh(Q,Z),[Z,Q]),V=[{label:"Edit",value:!0},{label:"Preview",value:!1}],ee=j.useMemo(()=>p.map(re=>({label:g.jsx("div",{children:re.get().name}),value:re.get().id})),[p]),Y=j.useCallback(()=>p.find(re=>re.get().id===O.get()),[p,O]);j.useEffect(()=>{const re=Y();p.length&&(!O.get()||!re)&&O.set(p[0].get().id)},[p]),j.useEffect(()=>{m.set(PY(t.get()))},[C,k,I,A,E,$,R]),j.useEffect(()=>{const re=x.get();re&&y$.save(re,f.get())},[f]);const z=()=>{const re=M;re&&l({request:Tx(re),response:null},null),MT(t),m.set(!0),n("reset_request",{})},D=({value:re})=>{var ae;O.set(re),n("change_environment",{name:(ae=p.find(H=>H.get().id===re))==null?void 0:ae.get().name})},B=({value:re})=>{C.set(re),n("change_request_method",{name:re})},N=()=>{wY(t),n("request_sent",{url:k.get(),method:C.get(),resolvedUrl:Zt(k.get(),t)})},U=re=>{const H=[...RY(re)||[],...$.get({noproxy:!0}).filter(pe=>!pe.active),un()];$.set(H)},F={request:yn(f.get({noproxy:!0})),response:yn(d.get({noproxy:!0}))},te=()=>{r==null||r.merge(F),S.set(S.get({noproxy:!0}))},L=M&&x.get();return g.jsxs(Gre,{"data-testid":"request-container",children:[g.jsx(u,{children:L&&g.jsx(ck,{operationName:M.name,onReset:z,isLinked:m.get({noproxy:!0}),url:x.get({noproxy:!0})})}),!c&&g.jsxs(Yre,{children:[g.jsx(Ure,{children:"Request"}),L&&g.jsx(ck,{operationName:M.name,onReset:z,isLinked:m.get({noproxy:!0}),url:x.get({noproxy:!0})}),!w.get()&&g.jsxs(nie,{children:[g.jsx(_.Button,{variant:"text",size:"small",icon:g.jsx(_.SaveIcon,{}),disabled:!i,onClick:te,children:"Save changes"}),g.jsx(Qe,{}),g.jsx(U$,{transaction:F,children:g.jsx(_.Button,{variant:"text",size:"small",children:"Save as"})})]})]}),g.jsxs(qre,{children:[g.jsxs(eie,{children:["Environment:",g.jsx(Kre,{dataTestId:"environment-select",options:ee,value:ee.find(({value:re})=>re===O.get()),onChange:D})]}),g.jsxs(tie,{children:[g.jsx(_.Segmented,{size:"small",options:V,value:y.get(),onChange:({value:re})=>y.set(re)}),g.jsx(_.CopyButton,{data:y.get()?k.get():Zt(k.get(),t),variant:"secondary",toasterPlacement:"left"})]})]}),g.jsxs(Hre,{children:[g.jsx(Jre,{dataTestId:"request-method-select",options:G,value:Z.find(({value:re})=>re===C.get()),onChange:B,formatGroupLabel:re=>g.jsx(sh,{data:re,getTooltipText:Qre})}),g.jsx(Ke,{dataTestId:"url-input",value:k.get(),environment:e,placeholder:"Enter your URL to submit the request",editable:y.get(),onChange:re=>{k.set(re),U(re)}}),g.jsx(_.Button,{variant:"primary",size:c?"medium":"small ",icon:v.get()?g.jsx(_.CircleDashIcon,{}):g.jsx(_.ArrowRightIcon,{}),iconPosition:"right",disabled:!k.get()||v.get(),onClick:N,children:c?null:v.get()?"Sending":"Send"})]}),g.jsx(wre,{}),b.get()&&g.jsx(Mre,{requestName:(ce=S.get())==null?void 0:ce.name,onClose:o,onDiscard:s,onSave:a})]})}const Gre=T.div`
2295
- display: flex;
2296
- flex-direction: column;
2297
- height: 100%;
2298
- `,Yre=T.div`
2214
+ overflow: hidden;
2215
+ text-overflow: ellipsis;
2216
+ display: -webkit-box;
2217
+ -webkit-line-clamp: 2;
2218
+ -webkit-box-orient: vertical;
2219
+ `,Tee=T(dc)`
2220
+ padding-left: 39px;
2221
+ margin-left: -23px;
2222
+ `;function $ee({defaultName:t,onChange:e,onApplyNewName:n,onCancelEditing:r,icon:i,placeholder:o="New Folder"}){const[s,a]=j.useState(t),l=u=>{a(u.target.value),e==null||e(u)},c=s.trim();return g.jsx(Po,{onClickOutside:r,children:g.jsxs(jJ,{children:[i,g.jsx(Jo,{"data-testid":"edit-item-header-input",type:"text",placeholder:o,value:s,onChange:l}),g.jsxs(jee,{children:[g.jsx(_.Button,{"data-testid":"edit-item-header-save-button",variant:"primary",onClick:()=>n(c),disabled:!c,children:g.jsx(_.CheckmarkIcon,{})}),g.jsx(_.Button,{variant:"text",onClick:r,icon:g.jsx(_.CloseIcon,{})})]})]})})}const jee=T.div`
2299
2223
  display: flex;
2300
- padding: var(--spacing-sm) var(--spacing-xs) var(--spacing-sm) var(--spacing-lg);
2301
- align-items: center;
2302
2224
  gap: var(--spacing-xs);
2303
- border-bottom: 1px solid var(--border-color-secondary);
2304
- `,qre=T.div`
2225
+ `;function Ree({environment:t,defaultExpanded:e}){const[n,r]=j.useState(!1),{sendEvent:i}=ct(),{state:o,canBeEdited:s,canBeRemoved:a,name:l}=t.get(),c=()=>{t.set(lt),i("environment_creation_cancelled",{})},u=()=>{t.state.set(br.Normal),i("environment_editing_cancelled",{name:l})},f=()=>{t.state.set(br.Edit),i("environment_editing_started",{name:l})},d=()=>{t.set(lt),i("environment_removed",{name:l})},h=x=>{o===br.Draft?i("environment_creation_finished",{name:x}):i("environment_edited",{name:l,newName:x}),t.state.set(br.Normal),x.length&&t.name.set(x)},p=()=>{r(!0),i("environment_variable_creation_started",{name:l})},O=x=>{t.variables.set(v=>[x,...v]),r(!1),i("environment_variable_creation_finished",{name:l,variable:x.name,isSecret:x.isSecret})},m=()=>{r(!1),i("environment_variable_creation_cancelled",{name:l})};return o===br.Edit||o===br.Draft?g.jsx($ee,{placeholder:"New Environment",defaultName:l,onApplyNewName:h,onCancelEditing:o===br.Draft?c:u,icon:o===br.Edit?g.jsx(_.ChevronRightIcon,{size:"14px",color:"--text-color-secondary"}):g.jsx(_.AddIcon,{})}):g.jsx(g.Fragment,{children:g.jsxs(Fd,{dataTestId:`environment-${l}`,title:l,defaultExpanded:e,controls:g.jsxs(Dee,{children:[s&&g.jsx(zs,{size:"small",variant:"text",icon:g.jsx(_.EditIcon,{}),onClick:f,"data-testid":`edit-environment-${l}`}),a&&g.jsx(ba,{description:bee.replace("{name}",l),onConfirm:d,children:g.jsx($r,{variant:"text",icon:g.jsx(_.TrashCanIcon,{}),"data-testid":`remove-environment-${l}`})}),(!s||!a)&&g.jsx(To,{content:xee,children:g.jsx(zs,{size:"small",variant:"text",icon:g.jsx(_.InformationIcon,{})})})]}),children:[n?g.jsx(_ee,{variable:Ef(),onSave:O,onCancel:m,isNew:!0}):g.jsx(Bee,{icon:g.jsx(_.AddIcon,{}),variant:"secondary",onClick:p,iconPosition:"left",size:"small",children:"New variable"}),t.variables.map(x=>g.jsx(j.Fragment,{children:g.jsx(Cee,{variable:x,environment:t})},x.get().id))]})})}const Dee=T.div`
2305
2226
  display: flex;
2306
- padding: var(--spacing-xs) var(--spacing-xs) var(--spacing-xs) var(--spacing-lg);
2227
+ flex-direction: row;
2228
+ gap: var(--spacing-xxs);
2307
2229
  align-items: center;
2308
- justify-content: space-between;
2309
- gap: var(--spacing-xs);
2310
- border-bottom: 1px solid var(--border-color-secondary);
2311
- min-height: 40px;
2230
+ `,Qee=T(_.Button)`
2231
+ align-self: flex-start;
2232
+ margin: 0;
2233
+ `,Bee=T(Qee)`
2234
+ margin: 8px 0 8px -7px;
2312
2235
  font-size: var(--font-size-base);
2236
+ font-weight: var(--font-weight-regular);
2313
2237
  line-height: var(--line-height-base);
2314
-
2315
- @media (max-width: ${Kn}px) {
2316
- padding: var(--spacing-xs);
2317
- }
2318
- `,Ure=T.div`
2238
+ `,_ee=T(dc)`
2239
+ padding-left: 39px;
2240
+ margin-left: -23px;
2241
+ `;function Mee(){const[t,e]=j.useState(""),{environments:n,selectedEnvironmentId:r}=je(),{MobileHeader:i}=Yr(),{sendEvent:o}=ct(),s=j.useMemo(()=>n.filter(c=>c.name.get().toLowerCase().includes(t.toLowerCase())),[t,n]),a=()=>{e(""),n.set(c=>[{id:crypto.randomUUID(),name:"",variables:[],state:br.Draft,canBeRemoved:!0,canBeEdited:!0},...c]),o("environment_creation_started",{})},l=c=>{e(c)};return g.jsxs(zx,{children:[g.jsx(i,{}),g.jsxs(kc,{children:[g.jsx(Ac,{value:t,onSearch:l}),g.jsx(Qe,{}),g.jsx(z$,{children:g.jsx(_.Button,{"data-testid":"add-environment-btn",variant:"text",disabled:!!n.find(({state:c})=>c.get()===br.Draft),onClick:a,size:"small",icon:g.jsx(_.AddIcon,{})})})]}),g.jsx(uh,{children:s.map(c=>g.jsx(Ree,{environment:c,defaultExpanded:c.get().id===r.get()},c.id.get()))})]})}function VC({name:t,value:e}){const[n,r]=j.useState(!1),{sendEvent:i}=ct(),o=()=>{i("app_credential_visibility_toggled",{name:t,visible:!n}),r(!n)},s=()=>{i("app_credential_copied",{name:t})};return g.jsxs(Nee,{children:[g.jsxs(Fee,{children:[g.jsx(Zee,{children:t}),g.jsx(Wee,{children:n?e:"••••••••••••••••••••••••••••••••••••"})]}),g.jsxs(Vee,{children:[g.jsx(_.Button,{variant:"text",size:"small",icon:n?g.jsx(_.ViewIcon,{}):g.jsx(_.ViewOffIcon,{}),onClick:o}),g.jsx(_.CopyButton,{toasterPlacement:"left",data:e,onCopyClick:s})]})]})}const Nee=T.div`
2319
2242
  display: flex;
2320
- align-items: center;
2321
-
2243
+ padding: var(--spacing-xs) var(--spacing-xs);
2244
+ align-items: flex-start;
2245
+ gap: var(--spacing-xs);
2246
+ align-self: stretch;
2247
+ `,Fee=T.div`
2248
+ display: flex;
2249
+ align-items: flex-start;
2250
+ gap: 10px;
2251
+ flex: 1 0 0;
2252
+ `,Zee=T.div`
2253
+ display: -webkit-box;
2254
+ width: var(--64-px-4-rem-spacing-11, 64px);
2255
+ -webkit-box-orient: vertical;
2256
+ -webkit-line-clamp: 1;
2257
+ overflow: hidden;
2322
2258
  color: var(--text-color-primary);
2323
- font-size: var(--font-size-lg);
2259
+ text-overflow: ellipsis;
2260
+
2261
+ font-size: var(--font-size-sm);
2262
+ font-style: normal;
2324
2263
  font-weight: var(--font-weight-semibold);
2325
- line-height: var(--line-height-lg);
2326
- `,Hre=T.div`
2264
+ line-height: var(--line-height-sm);
2265
+ `,Wee=T.div`
2266
+ flex: 1 0 0;
2267
+ color: var(--text-color-primary);
2268
+ font-size: var(--font-size-sm);
2269
+ font-style: normal;
2270
+ font-weight: var(--font-weight-regular);
2271
+ line-height: var(--line-height-sm);
2272
+ `,Vee=T.div`
2327
2273
  display: flex;
2328
- flex-direction: row;
2274
+ justify-content: flex-end;
2329
2275
  align-items: center;
2330
- border-bottom: 1px solid var(--border-color-secondary);
2331
- padding: 0 var(--spacing-xs) 0 var(--spacing-base);
2332
2276
  gap: var(--spacing-xxs);
2333
-
2334
- @media (max-width: ${Kn}px) {
2335
- padding: 0 var(--spacing-xs);
2336
- }
2337
- `,Jre=T(ko)`
2338
- display: flex;
2339
- border-radius: 0;
2340
- border-right: 1px solid var(--border-color-secondary);
2341
- height: 100%;
2342
-
2343
- [class*='control'] {
2344
- width: 110px;
2345
- }
2346
-
2347
- [class*='menu'] {
2348
- width: 110px;
2349
- }
2350
-
2351
- [class*='MenuList'] {
2352
- max-height: 320px;
2353
- }
2354
-
2355
- svg {
2356
- width: 12px;
2357
- height: 12px;
2358
- }
2359
-
2360
- @media (max-width: ${Kn}px) {
2361
- [class*='control'] {
2362
- width: 80px;
2363
- }
2364
-
2365
- [class*='menu'] {
2366
- width: 110px;
2367
- top: 30px;
2368
- position: absolute;
2369
- z-index: 103;
2370
- }
2371
-
2372
- [class*='MenuList'] {
2373
- max-height: 180px;
2374
- }
2375
- }
2376
- `,Kre=T(ko)`
2277
+ `;function zee({credential:t,number:e}){const{requestActiveTabIdx:n,request:{security:{securities:r,selectedSecuritySchemeId:i}}}=je(),o=an(),{clientId:s,clientSecret:a,valueToUseInHeader:l}=t,{sendEvent:c}=ct(),u=()=>{n.set(RH);const d=Na(r,i.get())[0];if(!d.get())return;const{securityType:h,...p}=d,O=(m,x)=>{if(m.get()===se.AuthorizationCode){const{clientId:v,clientSecret:y}=x[se.AuthorizationCode];(s||a)&&gn(s||a||"",v,o),a&&gn(a,y,o)}if(m.get()===se.Implicit){const{clientId:v}=x[se.Implicit];(s||a)&&gn(s||a||"",v,o)}if(m.get()===se.ClientCredentials){const{clientId:v,clientSecret:y}=x[se.ClientCredentials];(s||a)&&gn(s||a||"",v,o),a&&gn(a,y,o)}if(m.get()===se.Password){const{clientId:v,clientSecret:y}=x[se.Password];(s||a)&&gn(s||a||"",v,o),a&&gn(a,y,o)}};if(h.get()===K.BasicAuth){const{username:m,password:x}=p[K.BasicAuth];(s||a)&&gn(s||a||"",m,o),a&&gn(a,x,o)}if(h.get()===K.DigestAuth){const{username:m,password:x}=p[K.DigestAuth];(s||a)&&gn(s||a||"",m,o),a&&gn(a,x,o)}if(h.get()===K.JWT){const{token:m}=p[K.JWT];(s||a)&&gn(s||a||"",m,o)}if(h.get()===K.APIKey){const{key:m}=p[K.APIKey];gn(t[l||"clientSecret"]||s||"",m,o)}if(h.get()===K.OAuth2){const m=p[K.OAuth2],x=m.grantType;O(x,m)}if(h.get()===K.OpenIDConnect){const m=p[K.OpenIDConnect],{grantType:x}=m;O(x,m)}c("apps_use_key_clicked",{number:e})};return g.jsxs(Lee,{children:[g.jsxs(Xee,{children:[g.jsx(Yee,{children:e.toString().padStart(2,"0")}),g.jsxs(Gee,{children:[t.stage&&g.jsx(_.Tag,{color:"gray",children:t.stage}),g.jsx(_.Tag,{color:"green",children:t.status})]})]}),s&&g.jsx(VC,{name:"API key",value:s}),a&&g.jsx(VC,{name:s?"Secret":"API key",value:a}),g.jsx(qee,{children:g.jsx(_.Button,{size:"small",variant:"secondary",onClick:u,children:"Use key"})})]})}const Lee=T.div`
2377
2278
  display: flex;
2279
+ flex-direction: column;
2280
+ align-self: stretch;
2281
+ margin-top: var(--spacing-xs);
2378
2282
  border-radius: var(--border-radius-md);
2283
+ border: 1px solid var(--border-color-secondary);
2284
+ background: var(--bg-color);
2285
+ word-break: break-all;
2286
+ text-wrap: wrap;
2379
2287
 
2380
- [class*='control'] {
2381
- padding: 0;
2382
- font-size: var(--font-size-base);
2383
- font-style: normal;
2384
- font-weight: var(--font-weight-regular);
2385
- line-height: var(--line-height-base);
2386
- }
2387
-
2388
- [class*='menu'] {
2389
- min-width: 164px;
2390
- z-index: 101;
2391
- }
2392
-
2393
- @media (max-width: ${Kn}px) {
2394
- [class*='menu'] {
2395
- max-width: calc(100vw - 110px);
2396
- z-index: 101;
2397
- }
2398
- }
2399
-
2400
- svg {
2401
- width: 14px;
2402
- height: 14px;
2288
+ & > :not(:last-child) {
2289
+ border-bottom: 1px solid var(--border-color-secondary);
2403
2290
  }
2404
- `,eie=T.div`
2291
+ `,Xee=T.div`
2405
2292
  display: flex;
2293
+ justify-content: space-between;
2294
+ padding: var(--spacing-xs) var(--spacing-xs);
2295
+ border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
2406
2296
  align-items: center;
2407
- gap: var(--spacing-xs);
2408
- @media (max-width: ${Kn}px) {
2409
- padding-left: var(--spacing-xs);
2410
- }
2411
- `,tie=T.div`
2297
+ align-self: stretch;
2298
+ background: var(--layer-color);
2299
+ `,Gee=T.div`
2300
+ display: flex;
2301
+ gap: var(--spacing-xxs);
2302
+ `,Yee=T.div`
2303
+ color: var(--text-color-secondary, #3b3c45);
2304
+ font-size: var(--font-size-sm);
2305
+ font-style: normal;
2306
+ font-weight: var(--font-weight-regular);
2307
+ line-height: var(--line-height-sm);
2308
+ `,qee=T.div`
2412
2309
  display: flex;
2310
+ padding: var(--spacing-xs) var(--spacing-xs);
2311
+ border-radius: 0 0 var(--border-radius-md) var(--border-radius-md);
2312
+ justify-content: flex-end;
2413
2313
  align-items: center;
2414
- gap: var(--spacing-xs);
2415
- `,nie=T.div`
2314
+ align-self: stretch;
2315
+ background: var(--layer-color);
2316
+ `;function Uee({app:t}){const[e,n]=j.useState(!1),{title:r,credentials:i,id:o}=t,s=i.get()||[],a=l=>{l&&!i.get()&&(n(!0),qo(`/api/api-keys/apps/${o.get()}`).then(c=>c.json().then(u=>{c.ok&&i.set(u.credentials)}).catch(()=>console.log("Something went wrong")).finally(()=>n(!1))))};return g.jsx(Fd,{dataTestId:`app-${name}`,title:r.get(),onToggle:a,children:g.jsx(Hee,{children:e?g.jsx(Jee,{children:g.jsx(_.SpinnerIcon,{size:"16px",color:"--icon-color-additional"})}):s.length?s.map((l,c)=>g.jsx(zee,{credential:l,number:c+1},l.id)):g.jsx(Kee,{children:"There are no credentials yet."})})})}const Hee=T.div`
2317
+ padding-bottom: var(--spacing-xxs);
2318
+ margin-left: -7px;
2319
+ padding-right: var(--spacing-base);
2320
+ `,Jee=T.div`
2416
2321
  display: flex;
2417
- gap: calc(var(--spacing-xxs) / 2);
2418
- flex-grow: 1;
2419
- justify-content: end;
2420
- `;function rie(t,e=2){if(t===0)return"0 B";const n=1024,r=e<0?0:e,i=["B","kB","MB","GB","TB","PB"],o=Math.floor(Math.log(t)/Math.log(n));return parseFloat((t/Math.pow(n,o)).toFixed(r))+" "+i[o]}function qj({panel:t,response:e}){const n=e==null?void 0:e.get();return g.jsxs(iie,{children:[g.jsxs(oie,{children:[g.jsx(aie,{size:"small",icon:t.isCollapsed?g.jsx(_.ChevronRightIcon,{size:"14px",color:"--button-content-color"}):g.jsx(_.ChevronDownIcon,{size:"14px",color:"--button-content-color"}),onClick:()=>t.isCollapsed?t.expand():t.collapse()}),g.jsx(sie,{children:"Response"})]}),n&&g.jsxs(lie,{children:[g.jsxs(Ag,{children:[g.jsx(_.StatusCode,{status:String(n.status)}),n.status]}),g.jsxs(Ag,{children:[g.jsx(_.TimeIcon,{}),n.duration," ms"]}),g.jsxs(Ag,{children:[g.jsx(_.FileStorageIcon,{}),rie(n.size)]})]})]})}const iie=T.div`
2322
+ height: 224px;
2323
+ justify-content: center;
2324
+ align-items: center;
2325
+ `,Kee=T.div`
2421
2326
  display: flex;
2422
- justify-content: space-between;
2423
- `,oie=T.div`
2327
+ justify-content: center;
2328
+ align-items: center;
2329
+ height: 112px;
2330
+ font-size: var(--font-size-base);
2331
+ line-height: var(--line-height-base);
2332
+ color: var(--text-color-secondary);
2333
+ `;function ete(){const[t,e]=j.useState(""),{apps:n,apiId:r,appsLoadingState:i}=je(),{MobileHeader:o}=Yr(),{sendEvent:s}=ct(),a=()=>{window.open("/apps","_blank"),s("apps_request_access_clicked",{})};j.useEffect(()=>((i.get()===ri.Idle||i.get()===ri.Error)&&(i.set(ri.Loading),qo(`/api/api-keys/api-products/${r.get()}/access?expand=0`).then(u=>u.json().then(f=>{u.ok?(n.set(f.apps||[]),i.set(ri.Success)):i.set(ri.Error)}).catch(()=>i.set(ri.Error)))),()=>{n.set([]),i.set(ri.Idle)}),[r]);const l=j.useMemo(()=>n.filter(u=>u.title.get().toLowerCase().includes(t.toLowerCase())),[t,n]),c=u=>{e(u)};return i.get()===ri.Loading?g.jsx(nte,{children:g.jsx(_.SpinnerIcon,{size:"24px",color:"--icon-color-additional"})}):n.length?g.jsxs(tte,{children:[g.jsx(o,{}),g.jsx(kc,{children:g.jsx(Ac,{value:t,onSearch:c})}),g.jsx(uh,{children:l.map(u=>g.jsx(Uee,{app:u},u.get().id))})]}):g.jsxs(g.Fragment,{children:[g.jsx(o,{}),g.jsxs(L$,{children:["You don't have any apps with access to this API",g.jsx(_.Button,{onClick:a,children:"Request access"})]})]})}const tte=T.div`
2424
2334
  display: flex;
2425
- justify-content: space-between;
2426
- gap: var(--spacing-xs);
2335
+ flex-direction: column;
2336
+ width: 100%;
2337
+ `,nte=T.div`
2338
+ display: flex;
2339
+ justify-content: center;
2427
2340
  align-items: center;
2428
- `,sie=T.div`
2341
+ width: 100%;
2342
+ height: calc(100vh - 50px);
2343
+ `;/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function aj(t){return typeof t>"u"||t===null}function rte(t){return typeof t=="object"&&t!==null}function ite(t){return Array.isArray(t)?t:aj(t)?[]:[t]}function ote(t,e){var n,r,i,o;if(e)for(o=Object.keys(e),n=0,r=o.length;n<r;n+=1)i=o[n],t[i]=e[i];return t}function ste(t,e){var n="",r;for(r=0;r<e;r+=1)n+=t;return n}function ate(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var lte=aj,cte=rte,ute=ite,fte=ste,dte=ate,hte=ote,on={isNothing:lte,isObject:cte,toArray:ute,repeat:fte,isNegativeZero:dte,extend:hte};function lj(t,e){var n="",r=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(n+='in "'+t.mark.name+'" '),n+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(n+=`
2344
+
2345
+ `+t.mark.snippet),r+" "+n):r}function oc(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=lj(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}oc.prototype=Object.create(Error.prototype);oc.prototype.constructor=oc;oc.prototype.toString=function(e){return this.name+": "+lj(this,e)};var Fn=oc;function Sg(t,e,n,r,i){var o="",s="",a=Math.floor(i/2)-1;return r-e>a&&(o=" ... ",e=r-a+o.length),n-r>a&&(s=" ...",n=r+a-s.length),{str:o+t.slice(e,n).replace(/\t/g,"→")+s,pos:r-e+o.length}}function wg(t,e){return on.repeat(" ",e-t.length)+t}function pte(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),typeof e.indent!="number"&&(e.indent=1),typeof e.linesBefore!="number"&&(e.linesBefore=3),typeof e.linesAfter!="number"&&(e.linesAfter=2);for(var n=/\r?\n|\r|\0/g,r=[0],i=[],o,s=-1;o=n.exec(t.buffer);)i.push(o.index),r.push(o.index+o[0].length),t.position<=o.index&&s<0&&(s=r.length-2);s<0&&(s=r.length-1);var a="",l,c,u=Math.min(t.line+e.linesAfter,i.length).toString().length,f=e.maxLength-(e.indent+u+3);for(l=1;l<=e.linesBefore&&!(s-l<0);l++)c=Sg(t.buffer,r[s-l],i[s-l],t.position-(r[s]-r[s-l]),f),a=on.repeat(" ",e.indent)+wg((t.line-l+1).toString(),u)+" | "+c.str+`
2346
+ `+a;for(c=Sg(t.buffer,r[s],i[s],t.position,f),a+=on.repeat(" ",e.indent)+wg((t.line+1).toString(),u)+" | "+c.str+`
2347
+ `,a+=on.repeat("-",e.indent+u+3+c.pos)+`^
2348
+ `,l=1;l<=e.linesAfter&&!(s+l>=i.length);l++)c=Sg(t.buffer,r[s+l],i[s+l],t.position-(r[s]-r[s+l]),f),a+=on.repeat(" ",e.indent)+wg((t.line+l+1).toString(),u)+" | "+c.str+`
2349
+ `;return a.replace(/\n$/,"")}var gte=pte,mte=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],Ote=["scalar","sequence","mapping"];function xte(t){var e={};return t!==null&&Object.keys(t).forEach(function(n){t[n].forEach(function(r){e[String(r)]=n})}),e}function vte(t,e){if(e=e||{},Object.keys(e).forEach(function(n){if(mte.indexOf(n)===-1)throw new Fn('Unknown option "'+n+'" is met in definition of "'+t+'" YAML type.')}),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(n){return n},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=xte(e.styleAliases||null),Ote.indexOf(this.kind)===-1)throw new Fn('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var An=vte;function zC(t,e){var n=[];return t[e].forEach(function(r){var i=n.length;n.forEach(function(o,s){o.tag===r.tag&&o.kind===r.kind&&o.multi===r.multi&&(i=s)}),n[i]=r}),n}function yte(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},e,n;function r(i){i.multi?(t.multi[i.kind].push(i),t.multi.fallback.push(i)):t[i.kind][i.tag]=t.fallback[i.tag]=i}for(e=0,n=arguments.length;e<n;e+=1)arguments[e].forEach(r);return t}function Ym(t){return this.extend(t)}Ym.prototype.extend=function(e){var n=[],r=[];if(e instanceof An)r.push(e);else if(Array.isArray(e))r=r.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(n=n.concat(e.implicit)),e.explicit&&(r=r.concat(e.explicit));else throw new Fn("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");n.forEach(function(o){if(!(o instanceof An))throw new Fn("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(o.loadKind&&o.loadKind!=="scalar")throw new Fn("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(o.multi)throw new Fn("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),r.forEach(function(o){if(!(o instanceof An))throw new Fn("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(Ym.prototype);return i.implicit=(this.implicit||[]).concat(n),i.explicit=(this.explicit||[]).concat(r),i.compiledImplicit=zC(i,"implicit"),i.compiledExplicit=zC(i,"explicit"),i.compiledTypeMap=yte(i.compiledImplicit,i.compiledExplicit),i};var cj=Ym,uj=new An("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),fj=new An("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),dj=new An("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),hj=new cj({explicit:[uj,fj,dj]});function bte(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}function Ste(){return null}function wte(t){return t===null}var pj=new An("tag:yaml.org,2002:null",{kind:"scalar",resolve:bte,construct:Ste,predicate:wte,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function Cte(t){if(t===null)return!1;var e=t.length;return e===4&&(t==="true"||t==="True"||t==="TRUE")||e===5&&(t==="false"||t==="False"||t==="FALSE")}function kte(t){return t==="true"||t==="True"||t==="TRUE"}function Ate(t){return Object.prototype.toString.call(t)==="[object Boolean]"}var gj=new An("tag:yaml.org,2002:bool",{kind:"scalar",resolve:Cte,construct:kte,predicate:Ate,represent:{lowercase:function(t){return t?"true":"false"},uppercase:function(t){return t?"TRUE":"FALSE"},camelcase:function(t){return t?"True":"False"}},defaultStyle:"lowercase"});function Pte(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function Ete(t){return 48<=t&&t<=55}function Ite(t){return 48<=t&&t<=57}function Tte(t){if(t===null)return!1;var e=t.length,n=0,r=!1,i;if(!e)return!1;if(i=t[n],(i==="-"||i==="+")&&(i=t[++n]),i==="0"){if(n+1===e)return!0;if(i=t[++n],i==="b"){for(n++;n<e;n++)if(i=t[n],i!=="_"){if(i!=="0"&&i!=="1")return!1;r=!0}return r&&i!=="_"}if(i==="x"){for(n++;n<e;n++)if(i=t[n],i!=="_"){if(!Pte(t.charCodeAt(n)))return!1;r=!0}return r&&i!=="_"}if(i==="o"){for(n++;n<e;n++)if(i=t[n],i!=="_"){if(!Ete(t.charCodeAt(n)))return!1;r=!0}return r&&i!=="_"}}if(i==="_")return!1;for(;n<e;n++)if(i=t[n],i!=="_"){if(!Ite(t.charCodeAt(n)))return!1;r=!0}return!(!r||i==="_")}function $te(t){var e=t,n=1,r;if(e.indexOf("_")!==-1&&(e=e.replace(/_/g,"")),r=e[0],(r==="-"||r==="+")&&(r==="-"&&(n=-1),e=e.slice(1),r=e[0]),e==="0")return 0;if(r==="0"){if(e[1]==="b")return n*parseInt(e.slice(2),2);if(e[1]==="x")return n*parseInt(e.slice(2),16);if(e[1]==="o")return n*parseInt(e.slice(2),8)}return n*parseInt(e,10)}function jte(t){return Object.prototype.toString.call(t)==="[object Number]"&&t%1===0&&!on.isNegativeZero(t)}var mj=new An("tag:yaml.org,2002:int",{kind:"scalar",resolve:Tte,construct:$te,predicate:jte,represent:{binary:function(t){return t>=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},octal:function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},decimal:function(t){return t.toString(10)},hexadecimal:function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Rte=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Dte(t){return!(t===null||!Rte.test(t)||t[t.length-1]==="_")}function Qte(t){var e,n;return e=t.replace(/_/g,"").toLowerCase(),n=e[0]==="-"?-1:1,"+-".indexOf(e[0])>=0&&(e=e.slice(1)),e===".inf"?n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:e===".nan"?NaN:n*parseFloat(e,10)}var Bte=/^[-+]?[0-9]+e/;function _te(t,e){var n;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(on.isNegativeZero(t))return"-0.0";return n=t.toString(10),Bte.test(n)?n.replace("e",".e"):n}function Mte(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||on.isNegativeZero(t))}var Oj=new An("tag:yaml.org,2002:float",{kind:"scalar",resolve:Dte,construct:Qte,predicate:Mte,represent:_te,defaultStyle:"lowercase"}),xj=hj.extend({implicit:[pj,gj,mj,Oj]}),vj=xj,yj=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),bj=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function Nte(t){return t===null?!1:yj.exec(t)!==null||bj.exec(t)!==null}function Fte(t){var e,n,r,i,o,s,a,l=0,c=null,u,f,d;if(e=yj.exec(t),e===null&&(e=bj.exec(t)),e===null)throw new Error("Date resolve error");if(n=+e[1],r=+e[2]-1,i=+e[3],!e[4])return new Date(Date.UTC(n,r,i));if(o=+e[4],s=+e[5],a=+e[6],e[7]){for(l=e[7].slice(0,3);l.length<3;)l+="0";l=+l}return e[9]&&(u=+e[10],f=+(e[11]||0),c=(u*60+f)*6e4,e[9]==="-"&&(c=-c)),d=new Date(Date.UTC(n,r,i,o,s,a,l)),c&&d.setTime(d.getTime()-c),d}function Zte(t){return t.toISOString()}var Sj=new An("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Nte,construct:Fte,instanceOf:Date,represent:Zte});function Wte(t){return t==="<<"||t===null}var wj=new An("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Wte}),Ux=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
2350
+ \r`;function Vte(t){if(t===null)return!1;var e,n,r=0,i=t.length,o=Ux;for(n=0;n<i;n++)if(e=o.indexOf(t.charAt(n)),!(e>64)){if(e<0)return!1;r+=6}return r%8===0}function zte(t){var e,n,r=t.replace(/[\r\n=]/g,""),i=r.length,o=Ux,s=0,a=[];for(e=0;e<i;e++)e%4===0&&e&&(a.push(s>>16&255),a.push(s>>8&255),a.push(s&255)),s=s<<6|o.indexOf(r.charAt(e));return n=i%4*6,n===0?(a.push(s>>16&255),a.push(s>>8&255),a.push(s&255)):n===18?(a.push(s>>10&255),a.push(s>>2&255)):n===12&&a.push(s>>4&255),new Uint8Array(a)}function Lte(t){var e="",n=0,r,i,o=t.length,s=Ux;for(r=0;r<o;r++)r%3===0&&r&&(e+=s[n>>18&63],e+=s[n>>12&63],e+=s[n>>6&63],e+=s[n&63]),n=(n<<8)+t[r];return i=o%3,i===0?(e+=s[n>>18&63],e+=s[n>>12&63],e+=s[n>>6&63],e+=s[n&63]):i===2?(e+=s[n>>10&63],e+=s[n>>4&63],e+=s[n<<2&63],e+=s[64]):i===1&&(e+=s[n>>2&63],e+=s[n<<4&63],e+=s[64],e+=s[64]),e}function Xte(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}var Cj=new An("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Vte,construct:zte,predicate:Xte,represent:Lte}),Gte=Object.prototype.hasOwnProperty,Yte=Object.prototype.toString;function qte(t){if(t===null)return!0;var e=[],n,r,i,o,s,a=t;for(n=0,r=a.length;n<r;n+=1){if(i=a[n],s=!1,Yte.call(i)!=="[object Object]")return!1;for(o in i)if(Gte.call(i,o))if(!s)s=!0;else return!1;if(!s)return!1;if(e.indexOf(o)===-1)e.push(o);else return!1}return!0}function Ute(t){return t!==null?t:[]}var kj=new An("tag:yaml.org,2002:omap",{kind:"sequence",resolve:qte,construct:Ute}),Hte=Object.prototype.toString;function Jte(t){if(t===null)return!0;var e,n,r,i,o,s=t;for(o=new Array(s.length),e=0,n=s.length;e<n;e+=1){if(r=s[e],Hte.call(r)!=="[object Object]"||(i=Object.keys(r),i.length!==1))return!1;o[e]=[i[0],r[i[0]]]}return!0}function Kte(t){if(t===null)return[];var e,n,r,i,o,s=t;for(o=new Array(s.length),e=0,n=s.length;e<n;e+=1)r=s[e],i=Object.keys(r),o[e]=[i[0],r[i[0]]];return o}var Aj=new An("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Jte,construct:Kte}),ene=Object.prototype.hasOwnProperty;function tne(t){if(t===null)return!0;var e,n=t;for(e in n)if(ene.call(n,e)&&n[e]!==null)return!1;return!0}function nne(t){return t!==null?t:{}}var Pj=new An("tag:yaml.org,2002:set",{kind:"mapping",resolve:tne,construct:nne}),Hx=vj.extend({implicit:[Sj,wj],explicit:[Cj,kj,Aj,Pj]}),Co=Object.prototype.hasOwnProperty,Od=1,Ej=2,Ij=3,xd=4,Cg=1,rne=2,LC=3,ine=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,one=/[\x85\u2028\u2029]/,sne=/[,\[\]\{\}]/,Tj=/^(?:!|!!|![a-z\-]+!)$/i,$j=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function XC(t){return Object.prototype.toString.call(t)}function xi(t){return t===10||t===13}function Ho(t){return t===9||t===32}function Jn(t){return t===9||t===32||t===10||t===13}function Ns(t){return t===44||t===91||t===93||t===123||t===125}function ane(t){var e;return 48<=t&&t<=57?t-48:(e=t|32,97<=e&&e<=102?e-97+10:-1)}function lne(t){return t===120?2:t===117?4:t===85?8:0}function cne(t){return 48<=t&&t<=57?t-48:-1}function GC(t){return t===48?"\0":t===97?"\x07":t===98?"\b":t===116||t===9?" ":t===110?`
2351
+ `:t===118?"\v":t===102?"\f":t===114?"\r":t===101?"\x1B":t===32?" ":t===34?'"':t===47?"/":t===92?"\\":t===78?"…":t===95?" ":t===76?"\u2028":t===80?"\u2029":""}function une(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}var jj=new Array(256),Rj=new Array(256);for(var As=0;As<256;As++)jj[As]=GC(As)?1:0,Rj[As]=GC(As);function fne(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||Hx,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function Dj(t,e){var n={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return n.snippet=gte(n),new Fn(e,n)}function ke(t,e){throw Dj(t,e)}function vd(t,e){t.onWarning&&t.onWarning.call(null,Dj(t,e))}var YC={YAML:function(e,n,r){var i,o,s;e.version!==null&&ke(e,"duplication of %YAML directive"),r.length!==1&&ke(e,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(r[0]),i===null&&ke(e,"ill-formed argument of the YAML directive"),o=parseInt(i[1],10),s=parseInt(i[2],10),o!==1&&ke(e,"unacceptable YAML version of the document"),e.version=r[0],e.checkLineBreaks=s<2,s!==1&&s!==2&&vd(e,"unsupported YAML version of the document")},TAG:function(e,n,r){var i,o;r.length!==2&&ke(e,"TAG directive accepts exactly two arguments"),i=r[0],o=r[1],Tj.test(i)||ke(e,"ill-formed tag handle (first argument) of the TAG directive"),Co.call(e.tagMap,i)&&ke(e,'there is a previously declared suffix for "'+i+'" tag handle'),$j.test(o)||ke(e,"ill-formed tag prefix (second argument) of the TAG directive");try{o=decodeURIComponent(o)}catch{ke(e,"tag prefix is malformed: "+o)}e.tagMap[i]=o}};function go(t,e,n,r){var i,o,s,a;if(e<n){if(a=t.input.slice(e,n),r)for(i=0,o=a.length;i<o;i+=1)s=a.charCodeAt(i),s===9||32<=s&&s<=1114111||ke(t,"expected valid JSON character");else ine.test(a)&&ke(t,"the stream contains non-printable characters");t.result+=a}}function qC(t,e,n,r){var i,o,s,a;for(on.isObject(n)||ke(t,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(n),s=0,a=i.length;s<a;s+=1)o=i[s],Co.call(e,o)||(e[o]=n[o],r[o]=!0)}function Fs(t,e,n,r,i,o,s,a,l){var c,u;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),c=0,u=i.length;c<u;c+=1)Array.isArray(i[c])&&ke(t,"nested arrays are not supported inside keys"),typeof i=="object"&&XC(i[c])==="[object Object]"&&(i[c]="[object Object]");if(typeof i=="object"&&XC(i)==="[object Object]"&&(i="[object Object]"),i=String(i),e===null&&(e={}),r==="tag:yaml.org,2002:merge")if(Array.isArray(o))for(c=0,u=o.length;c<u;c+=1)qC(t,e,o[c],n);else qC(t,e,o,n);else!t.json&&!Co.call(n,i)&&Co.call(e,i)&&(t.line=s||t.line,t.lineStart=a||t.lineStart,t.position=l||t.position,ke(t,"duplicated mapping key")),i==="__proto__"?Object.defineProperty(e,i,{configurable:!0,enumerable:!0,writable:!0,value:o}):e[i]=o,delete n[i];return e}function Jx(t){var e;e=t.input.charCodeAt(t.position),e===10?t.position++:e===13?(t.position++,t.input.charCodeAt(t.position)===10&&t.position++):ke(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function Yt(t,e,n){for(var r=0,i=t.input.charCodeAt(t.position);i!==0;){for(;Ho(i);)i===9&&t.firstTabInLine===-1&&(t.firstTabInLine=t.position),i=t.input.charCodeAt(++t.position);if(e&&i===35)do i=t.input.charCodeAt(++t.position);while(i!==10&&i!==13&&i!==0);if(xi(i))for(Jx(t),i=t.input.charCodeAt(t.position),r++,t.lineIndent=0;i===32;)t.lineIndent++,i=t.input.charCodeAt(++t.position);else break}return n!==-1&&r!==0&&t.lineIndent<n&&vd(t,"deficient indentation"),r}function hh(t){var e=t.position,n;return n=t.input.charCodeAt(e),!!((n===45||n===46)&&n===t.input.charCodeAt(e+1)&&n===t.input.charCodeAt(e+2)&&(e+=3,n=t.input.charCodeAt(e),n===0||Jn(n)))}function Kx(t,e){e===1?t.result+=" ":e>1&&(t.result+=on.repeat(`
2352
+ `,e-1))}function dne(t,e,n){var r,i,o,s,a,l,c,u,f=t.kind,d=t.result,h;if(h=t.input.charCodeAt(t.position),Jn(h)||Ns(h)||h===35||h===38||h===42||h===33||h===124||h===62||h===39||h===34||h===37||h===64||h===96||(h===63||h===45)&&(i=t.input.charCodeAt(t.position+1),Jn(i)||n&&Ns(i)))return!1;for(t.kind="scalar",t.result="",o=s=t.position,a=!1;h!==0;){if(h===58){if(i=t.input.charCodeAt(t.position+1),Jn(i)||n&&Ns(i))break}else if(h===35){if(r=t.input.charCodeAt(t.position-1),Jn(r))break}else{if(t.position===t.lineStart&&hh(t)||n&&Ns(h))break;if(xi(h))if(l=t.line,c=t.lineStart,u=t.lineIndent,Yt(t,!1,-1),t.lineIndent>=e){a=!0,h=t.input.charCodeAt(t.position);continue}else{t.position=s,t.line=l,t.lineStart=c,t.lineIndent=u;break}}a&&(go(t,o,s,!1),Kx(t,t.line-l),o=s=t.position,a=!1),Ho(h)||(s=t.position+1),h=t.input.charCodeAt(++t.position)}return go(t,o,s,!1),t.result?!0:(t.kind=f,t.result=d,!1)}function hne(t,e){var n,r,i;if(n=t.input.charCodeAt(t.position),n!==39)return!1;for(t.kind="scalar",t.result="",t.position++,r=i=t.position;(n=t.input.charCodeAt(t.position))!==0;)if(n===39)if(go(t,r,t.position,!0),n=t.input.charCodeAt(++t.position),n===39)r=t.position,t.position++,i=t.position;else return!0;else xi(n)?(go(t,r,i,!0),Kx(t,Yt(t,!1,e)),r=i=t.position):t.position===t.lineStart&&hh(t)?ke(t,"unexpected end of the document within a single quoted scalar"):(t.position++,i=t.position);ke(t,"unexpected end of the stream within a single quoted scalar")}function pne(t,e){var n,r,i,o,s,a;if(a=t.input.charCodeAt(t.position),a!==34)return!1;for(t.kind="scalar",t.result="",t.position++,n=r=t.position;(a=t.input.charCodeAt(t.position))!==0;){if(a===34)return go(t,n,t.position,!0),t.position++,!0;if(a===92){if(go(t,n,t.position,!0),a=t.input.charCodeAt(++t.position),xi(a))Yt(t,!1,e);else if(a<256&&jj[a])t.result+=Rj[a],t.position++;else if((s=lne(a))>0){for(i=s,o=0;i>0;i--)a=t.input.charCodeAt(++t.position),(s=ane(a))>=0?o=(o<<4)+s:ke(t,"expected hexadecimal character");t.result+=une(o),t.position++}else ke(t,"unknown escape sequence");n=r=t.position}else xi(a)?(go(t,n,r,!0),Kx(t,Yt(t,!1,e)),n=r=t.position):t.position===t.lineStart&&hh(t)?ke(t,"unexpected end of the document within a double quoted scalar"):(t.position++,r=t.position)}ke(t,"unexpected end of the stream within a double quoted scalar")}function gne(t,e){var n=!0,r,i,o,s=t.tag,a,l=t.anchor,c,u,f,d,h,p=Object.create(null),O,m,x,v;if(v=t.input.charCodeAt(t.position),v===91)u=93,h=!1,a=[];else if(v===123)u=125,h=!0,a={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=a),v=t.input.charCodeAt(++t.position);v!==0;){if(Yt(t,!0,e),v=t.input.charCodeAt(t.position),v===u)return t.position++,t.tag=s,t.anchor=l,t.kind=h?"mapping":"sequence",t.result=a,!0;n?v===44&&ke(t,"expected the node content, but found ','"):ke(t,"missed comma between flow collection entries"),m=O=x=null,f=d=!1,v===63&&(c=t.input.charCodeAt(t.position+1),Jn(c)&&(f=d=!0,t.position++,Yt(t,!0,e))),r=t.line,i=t.lineStart,o=t.position,Sa(t,e,Od,!1,!0),m=t.tag,O=t.result,Yt(t,!0,e),v=t.input.charCodeAt(t.position),(d||t.line===r)&&v===58&&(f=!0,v=t.input.charCodeAt(++t.position),Yt(t,!0,e),Sa(t,e,Od,!1,!0),x=t.result),h?Fs(t,a,p,m,O,x,r,i,o):f?a.push(Fs(t,null,p,m,O,x,r,i,o)):a.push(O),Yt(t,!0,e),v=t.input.charCodeAt(t.position),v===44?(n=!0,v=t.input.charCodeAt(++t.position)):n=!1}ke(t,"unexpected end of the stream within a flow collection")}function mne(t,e){var n,r,i=Cg,o=!1,s=!1,a=e,l=0,c=!1,u,f;if(f=t.input.charCodeAt(t.position),f===124)r=!1;else if(f===62)r=!0;else return!1;for(t.kind="scalar",t.result="";f!==0;)if(f=t.input.charCodeAt(++t.position),f===43||f===45)Cg===i?i=f===43?LC:rne:ke(t,"repeat of a chomping mode identifier");else if((u=cne(f))>=0)u===0?ke(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):s?ke(t,"repeat of an indentation width identifier"):(a=e+u-1,s=!0);else break;if(Ho(f)){do f=t.input.charCodeAt(++t.position);while(Ho(f));if(f===35)do f=t.input.charCodeAt(++t.position);while(!xi(f)&&f!==0)}for(;f!==0;){for(Jx(t),t.lineIndent=0,f=t.input.charCodeAt(t.position);(!s||t.lineIndent<a)&&f===32;)t.lineIndent++,f=t.input.charCodeAt(++t.position);if(!s&&t.lineIndent>a&&(a=t.lineIndent),xi(f)){l++;continue}if(t.lineIndent<a){i===LC?t.result+=on.repeat(`
2353
+ `,o?1+l:l):i===Cg&&o&&(t.result+=`
2354
+ `);break}for(r?Ho(f)?(c=!0,t.result+=on.repeat(`
2355
+ `,o?1+l:l)):c?(c=!1,t.result+=on.repeat(`
2356
+ `,l+1)):l===0?o&&(t.result+=" "):t.result+=on.repeat(`
2357
+ `,l):t.result+=on.repeat(`
2358
+ `,o?1+l:l),o=!0,s=!0,l=0,n=t.position;!xi(f)&&f!==0;)f=t.input.charCodeAt(++t.position);go(t,n,t.position,!1)}return!0}function UC(t,e){var n,r=t.tag,i=t.anchor,o=[],s,a=!1,l;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=o),l=t.input.charCodeAt(t.position);l!==0&&(t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,ke(t,"tab characters must not be used in indentation")),!(l!==45||(s=t.input.charCodeAt(t.position+1),!Jn(s))));){if(a=!0,t.position++,Yt(t,!0,-1)&&t.lineIndent<=e){o.push(null),l=t.input.charCodeAt(t.position);continue}if(n=t.line,Sa(t,e,Ij,!1,!0),o.push(t.result),Yt(t,!0,-1),l=t.input.charCodeAt(t.position),(t.line===n||t.lineIndent>e)&&l!==0)ke(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break}return a?(t.tag=r,t.anchor=i,t.kind="sequence",t.result=o,!0):!1}function One(t,e,n){var r,i,o,s,a,l,c=t.tag,u=t.anchor,f={},d=Object.create(null),h=null,p=null,O=null,m=!1,x=!1,v;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=f),v=t.input.charCodeAt(t.position);v!==0;){if(!m&&t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,ke(t,"tab characters must not be used in indentation")),r=t.input.charCodeAt(t.position+1),o=t.line,(v===63||v===58)&&Jn(r))v===63?(m&&(Fs(t,f,d,h,p,null,s,a,l),h=p=O=null),x=!0,m=!0,i=!0):m?(m=!1,i=!0):ke(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,v=r;else{if(s=t.line,a=t.lineStart,l=t.position,!Sa(t,n,Ej,!1,!0))break;if(t.line===o){for(v=t.input.charCodeAt(t.position);Ho(v);)v=t.input.charCodeAt(++t.position);if(v===58)v=t.input.charCodeAt(++t.position),Jn(v)||ke(t,"a whitespace character is expected after the key-value separator within a block mapping"),m&&(Fs(t,f,d,h,p,null,s,a,l),h=p=O=null),x=!0,m=!1,i=!1,h=t.tag,p=t.result;else if(x)ke(t,"can not read an implicit mapping pair; a colon is missed");else return t.tag=c,t.anchor=u,!0}else if(x)ke(t,"can not read a block mapping entry; a multiline key may not be an implicit key");else return t.tag=c,t.anchor=u,!0}if((t.line===o||t.lineIndent>e)&&(m&&(s=t.line,a=t.lineStart,l=t.position),Sa(t,e,xd,!0,i)&&(m?p=t.result:O=t.result),m||(Fs(t,f,d,h,p,O,s,a,l),h=p=O=null),Yt(t,!0,-1),v=t.input.charCodeAt(t.position)),(t.line===o||t.lineIndent>e)&&v!==0)ke(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return m&&Fs(t,f,d,h,p,null,s,a,l),x&&(t.tag=c,t.anchor=u,t.kind="mapping",t.result=f),x}function xne(t){var e,n=!1,r=!1,i,o,s;if(s=t.input.charCodeAt(t.position),s!==33)return!1;if(t.tag!==null&&ke(t,"duplication of a tag property"),s=t.input.charCodeAt(++t.position),s===60?(n=!0,s=t.input.charCodeAt(++t.position)):s===33?(r=!0,i="!!",s=t.input.charCodeAt(++t.position)):i="!",e=t.position,n){do s=t.input.charCodeAt(++t.position);while(s!==0&&s!==62);t.position<t.length?(o=t.input.slice(e,t.position),s=t.input.charCodeAt(++t.position)):ke(t,"unexpected end of the stream within a verbatim tag")}else{for(;s!==0&&!Jn(s);)s===33&&(r?ke(t,"tag suffix cannot contain exclamation marks"):(i=t.input.slice(e-1,t.position+1),Tj.test(i)||ke(t,"named tag handle cannot contain such characters"),r=!0,e=t.position+1)),s=t.input.charCodeAt(++t.position);o=t.input.slice(e,t.position),sne.test(o)&&ke(t,"tag suffix cannot contain flow indicator characters")}o&&!$j.test(o)&&ke(t,"tag name cannot contain such characters: "+o);try{o=decodeURIComponent(o)}catch{ke(t,"tag name is malformed: "+o)}return n?t.tag=o:Co.call(t.tagMap,i)?t.tag=t.tagMap[i]+o:i==="!"?t.tag="!"+o:i==="!!"?t.tag="tag:yaml.org,2002:"+o:ke(t,'undeclared tag handle "'+i+'"'),!0}function vne(t){var e,n;if(n=t.input.charCodeAt(t.position),n!==38)return!1;for(t.anchor!==null&&ke(t,"duplication of an anchor property"),n=t.input.charCodeAt(++t.position),e=t.position;n!==0&&!Jn(n)&&!Ns(n);)n=t.input.charCodeAt(++t.position);return t.position===e&&ke(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function yne(t){var e,n,r;if(r=t.input.charCodeAt(t.position),r!==42)return!1;for(r=t.input.charCodeAt(++t.position),e=t.position;r!==0&&!Jn(r)&&!Ns(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&ke(t,"name of an alias node must contain at least one character"),n=t.input.slice(e,t.position),Co.call(t.anchorMap,n)||ke(t,'unidentified alias "'+n+'"'),t.result=t.anchorMap[n],Yt(t,!0,-1),!0}function Sa(t,e,n,r,i){var o,s,a,l=1,c=!1,u=!1,f,d,h,p,O,m;if(t.listener!==null&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,o=s=a=xd===n||Ij===n,r&&Yt(t,!0,-1)&&(c=!0,t.lineIndent>e?l=1:t.lineIndent===e?l=0:t.lineIndent<e&&(l=-1)),l===1)for(;xne(t)||vne(t);)Yt(t,!0,-1)?(c=!0,a=o,t.lineIndent>e?l=1:t.lineIndent===e?l=0:t.lineIndent<e&&(l=-1)):a=!1;if(a&&(a=c||i),(l===1||xd===n)&&(Od===n||Ej===n?O=e:O=e+1,m=t.position-t.lineStart,l===1?a&&(UC(t,m)||One(t,m,O))||gne(t,O)?u=!0:(s&&mne(t,O)||hne(t,O)||pne(t,O)?u=!0:yne(t)?(u=!0,(t.tag!==null||t.anchor!==null)&&ke(t,"alias node should not have any properties")):dne(t,O,Od===n)&&(u=!0,t.tag===null&&(t.tag="?")),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):l===0&&(u=a&&UC(t,m))),t.tag===null)t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);else if(t.tag==="?"){for(t.result!==null&&t.kind!=="scalar"&&ke(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"'),f=0,d=t.implicitTypes.length;f<d;f+=1)if(p=t.implicitTypes[f],p.resolve(t.result)){t.result=p.construct(t.result),t.tag=p.tag,t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);break}}else if(t.tag!=="!"){if(Co.call(t.typeMap[t.kind||"fallback"],t.tag))p=t.typeMap[t.kind||"fallback"][t.tag];else for(p=null,h=t.typeMap.multi[t.kind||"fallback"],f=0,d=h.length;f<d;f+=1)if(t.tag.slice(0,h[f].tag.length)===h[f].tag){p=h[f];break}p||ke(t,"unknown tag !<"+t.tag+">"),t.result!==null&&p.kind!==t.kind&&ke(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+p.kind+'", not "'+t.kind+'"'),p.resolve(t.result,t.tag)?(t.result=p.construct(t.result,t.tag),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):ke(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return t.listener!==null&&t.listener("close",t),t.tag!==null||t.anchor!==null||u}function bne(t){var e=t.position,n,r,i,o=!1,s;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);(s=t.input.charCodeAt(t.position))!==0&&(Yt(t,!0,-1),s=t.input.charCodeAt(t.position),!(t.lineIndent>0||s!==37));){for(o=!0,s=t.input.charCodeAt(++t.position),n=t.position;s!==0&&!Jn(s);)s=t.input.charCodeAt(++t.position);for(r=t.input.slice(n,t.position),i=[],r.length<1&&ke(t,"directive name must not be less than one character in length");s!==0;){for(;Ho(s);)s=t.input.charCodeAt(++t.position);if(s===35){do s=t.input.charCodeAt(++t.position);while(s!==0&&!xi(s));break}if(xi(s))break;for(n=t.position;s!==0&&!Jn(s);)s=t.input.charCodeAt(++t.position);i.push(t.input.slice(n,t.position))}s!==0&&Jx(t),Co.call(YC,r)?YC[r](t,r,i):vd(t,'unknown document directive "'+r+'"')}if(Yt(t,!0,-1),t.lineIndent===0&&t.input.charCodeAt(t.position)===45&&t.input.charCodeAt(t.position+1)===45&&t.input.charCodeAt(t.position+2)===45?(t.position+=3,Yt(t,!0,-1)):o&&ke(t,"directives end mark is expected"),Sa(t,t.lineIndent-1,xd,!1,!0),Yt(t,!0,-1),t.checkLineBreaks&&one.test(t.input.slice(e,t.position))&&vd(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&hh(t)){t.input.charCodeAt(t.position)===46&&(t.position+=3,Yt(t,!0,-1));return}if(t.position<t.length-1)ke(t,"end of the stream or a document separator is expected");else return}function Qj(t,e){t=String(t),e=e||{},t.length!==0&&(t.charCodeAt(t.length-1)!==10&&t.charCodeAt(t.length-1)!==13&&(t+=`
2359
+ `),t.charCodeAt(0)===65279&&(t=t.slice(1)));var n=new fne(t,e),r=t.indexOf("\0");for(r!==-1&&(n.position=r,ke(n,"null byte is not allowed in input")),n.input+="\0";n.input.charCodeAt(n.position)===32;)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)bne(n);return n.documents}function Sne(t,e,n){e!==null&&typeof e=="object"&&typeof n>"u"&&(n=e,e=null);var r=Qj(t,n);if(typeof e!="function")return r;for(var i=0,o=r.length;i<o;i+=1)e(r[i])}function wne(t,e){var n=Qj(t,e);if(n.length!==0){if(n.length===1)return n[0];throw new Fn("expected a single document in the stream, but found more")}}var Cne=Sne,kne=wne,Bj={loadAll:Cne,load:kne},_j=Object.prototype.toString,Mj=Object.prototype.hasOwnProperty,ev=65279,Ane=9,sc=10,Pne=13,Ene=32,Ine=33,Tne=34,qm=35,$ne=37,jne=38,Rne=39,Dne=42,Nj=44,Qne=45,yd=58,Bne=61,_ne=62,Mne=63,Nne=64,Fj=91,Zj=93,Fne=96,Wj=123,Zne=124,Vj=125,Qn={};Qn[0]="\\0";Qn[7]="\\a";Qn[8]="\\b";Qn[9]="\\t";Qn[10]="\\n";Qn[11]="\\v";Qn[12]="\\f";Qn[13]="\\r";Qn[27]="\\e";Qn[34]='\\"';Qn[92]="\\\\";Qn[133]="\\N";Qn[160]="\\_";Qn[8232]="\\L";Qn[8233]="\\P";var Wne=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],Vne=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function zne(t,e){var n,r,i,o,s,a,l;if(e===null)return{};for(n={},r=Object.keys(e),i=0,o=r.length;i<o;i+=1)s=r[i],a=String(e[s]),s.slice(0,2)==="!!"&&(s="tag:yaml.org,2002:"+s.slice(2)),l=t.compiledTypeMap.fallback[s],l&&Mj.call(l.styleAliases,a)&&(a=l.styleAliases[a]),n[s]=a;return n}function Lne(t){var e,n,r;if(e=t.toString(16).toUpperCase(),t<=255)n="x",r=2;else if(t<=65535)n="u",r=4;else if(t<=4294967295)n="U",r=8;else throw new Fn("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+n+on.repeat("0",r-e.length)+e}var Xne=1,ac=2;function Gne(t){this.schema=t.schema||Hx,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=on.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=zne(this.schema,t.styles||null),this.sortKeys=t.sortKeys||!1,this.lineWidth=t.lineWidth||80,this.noRefs=t.noRefs||!1,this.noCompatMode=t.noCompatMode||!1,this.condenseFlow=t.condenseFlow||!1,this.quotingType=t.quotingType==='"'?ac:Xne,this.forceQuotes=t.forceQuotes||!1,this.replacer=typeof t.replacer=="function"?t.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function HC(t,e){for(var n=on.repeat(" ",e),r=0,i=-1,o="",s,a=t.length;r<a;)i=t.indexOf(`
2360
+ `,r),i===-1?(s=t.slice(r),r=a):(s=t.slice(r,i+1),r=i+1),s.length&&s!==`
2361
+ `&&(o+=n),o+=s;return o}function Um(t,e){return`
2362
+ `+on.repeat(" ",t.indent*e)}function Yne(t,e){var n,r,i;for(n=0,r=t.implicitTypes.length;n<r;n+=1)if(i=t.implicitTypes[n],i.resolve(e))return!0;return!1}function bd(t){return t===Ene||t===Ane}function lc(t){return 32<=t&&t<=126||161<=t&&t<=55295&&t!==8232&&t!==8233||57344<=t&&t<=65533&&t!==ev||65536<=t&&t<=1114111}function JC(t){return lc(t)&&t!==ev&&t!==Pne&&t!==sc}function KC(t,e,n){var r=JC(t),i=r&&!bd(t);return(n?r:r&&t!==Nj&&t!==Fj&&t!==Zj&&t!==Wj&&t!==Vj)&&t!==qm&&!(e===yd&&!i)||JC(e)&&!bd(e)&&t===qm||e===yd&&i}function qne(t){return lc(t)&&t!==ev&&!bd(t)&&t!==Qne&&t!==Mne&&t!==yd&&t!==Nj&&t!==Fj&&t!==Zj&&t!==Wj&&t!==Vj&&t!==qm&&t!==jne&&t!==Dne&&t!==Ine&&t!==Zne&&t!==Bne&&t!==_ne&&t!==Rne&&t!==Tne&&t!==$ne&&t!==Nne&&t!==Fne}function Une(t){return!bd(t)&&t!==yd}function vl(t,e){var n=t.charCodeAt(e),r;return n>=55296&&n<=56319&&e+1<t.length&&(r=t.charCodeAt(e+1),r>=56320&&r<=57343)?(n-55296)*1024+r-56320+65536:n}function zj(t){var e=/^\n* /;return e.test(t)}var Lj=1,Hm=2,Xj=3,Gj=4,$s=5;function Hne(t,e,n,r,i,o,s,a){var l,c=0,u=null,f=!1,d=!1,h=r!==-1,p=-1,O=qne(vl(t,0))&&Une(vl(t,t.length-1));if(e||s)for(l=0;l<t.length;c>=65536?l+=2:l++){if(c=vl(t,l),!lc(c))return $s;O=O&&KC(c,u,a),u=c}else{for(l=0;l<t.length;c>=65536?l+=2:l++){if(c=vl(t,l),c===sc)f=!0,h&&(d=d||l-p-1>r&&t[p+1]!==" ",p=l);else if(!lc(c))return $s;O=O&&KC(c,u,a),u=c}d=d||h&&l-p-1>r&&t[p+1]!==" "}return!f&&!d?O&&!s&&!i(t)?Lj:o===ac?$s:Hm:n>9&&zj(t)?$s:s?o===ac?$s:Hm:d?Gj:Xj}function Jne(t,e,n,r,i){t.dump=function(){if(e.length===0)return t.quotingType===ac?'""':"''";if(!t.noCompatMode&&(Wne.indexOf(e)!==-1||Vne.test(e)))return t.quotingType===ac?'"'+e+'"':"'"+e+"'";var o=t.indent*Math.max(1,n),s=t.lineWidth===-1?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-o),a=r||t.flowLevel>-1&&n>=t.flowLevel;function l(c){return Yne(t,c)}switch(Hne(e,a,t.indent,s,l,t.quotingType,t.forceQuotes&&!r,i)){case Lj:return e;case Hm:return"'"+e.replace(/'/g,"''")+"'";case Xj:return"|"+ek(e,t.indent)+tk(HC(e,o));case Gj:return">"+ek(e,t.indent)+tk(HC(Kne(e,s),o));case $s:return'"'+ere(e)+'"';default:throw new Fn("impossible error: invalid scalar style")}}()}function ek(t,e){var n=zj(t)?String(e):"",r=t[t.length-1]===`
2363
+ `,i=r&&(t[t.length-2]===`
2364
+ `||t===`
2365
+ `),o=i?"+":r?"":"-";return n+o+`
2366
+ `}function tk(t){return t[t.length-1]===`
2367
+ `?t.slice(0,-1):t}function Kne(t,e){for(var n=/(\n+)([^\n]*)/g,r=function(){var c=t.indexOf(`
2368
+ `);return c=c!==-1?c:t.length,n.lastIndex=c,nk(t.slice(0,c),e)}(),i=t[0]===`
2369
+ `||t[0]===" ",o,s;s=n.exec(t);){var a=s[1],l=s[2];o=l[0]===" ",r+=a+(!i&&!o&&l!==""?`
2370
+ `:"")+nk(l,e),i=o}return r}function nk(t,e){if(t===""||t[0]===" ")return t;for(var n=/ [^ ]/g,r,i=0,o,s=0,a=0,l="";r=n.exec(t);)a=r.index,a-i>e&&(o=s>i?s:a,l+=`
2371
+ `+t.slice(i,o),i=o+1),s=a;return l+=`
2372
+ `,t.length-i>e&&s>i?l+=t.slice(i,s)+`
2373
+ `+t.slice(s+1):l+=t.slice(i),l.slice(1)}function ere(t){for(var e="",n=0,r,i=0;i<t.length;n>=65536?i+=2:i++)n=vl(t,i),r=Qn[n],!r&&lc(n)?(e+=t[i],n>=65536&&(e+=t[i+1])):e+=r||Lne(n);return e}function tre(t,e,n){var r="",i=t.tag,o,s,a;for(o=0,s=n.length;o<s;o+=1)a=n[o],t.replacer&&(a=t.replacer.call(n,String(o),a)),(zi(t,e,a,!1,!1)||typeof a>"u"&&zi(t,e,null,!1,!1))&&(r!==""&&(r+=","+(t.condenseFlow?"":" ")),r+=t.dump);t.tag=i,t.dump="["+r+"]"}function rk(t,e,n,r){var i="",o=t.tag,s,a,l;for(s=0,a=n.length;s<a;s+=1)l=n[s],t.replacer&&(l=t.replacer.call(n,String(s),l)),(zi(t,e+1,l,!0,!0,!1,!0)||typeof l>"u"&&zi(t,e+1,null,!0,!0,!1,!0))&&((!r||i!=="")&&(i+=Um(t,e)),t.dump&&sc===t.dump.charCodeAt(0)?i+="-":i+="- ",i+=t.dump);t.tag=o,t.dump=i||"[]"}function nre(t,e,n){var r="",i=t.tag,o=Object.keys(n),s,a,l,c,u;for(s=0,a=o.length;s<a;s+=1)u="",r!==""&&(u+=", "),t.condenseFlow&&(u+='"'),l=o[s],c=n[l],t.replacer&&(c=t.replacer.call(n,l,c)),zi(t,e,l,!1,!1)&&(t.dump.length>1024&&(u+="? "),u+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),zi(t,e,c,!1,!1)&&(u+=t.dump,r+=u));t.tag=i,t.dump="{"+r+"}"}function rre(t,e,n,r){var i="",o=t.tag,s=Object.keys(n),a,l,c,u,f,d;if(t.sortKeys===!0)s.sort();else if(typeof t.sortKeys=="function")s.sort(t.sortKeys);else if(t.sortKeys)throw new Fn("sortKeys must be a boolean or a function");for(a=0,l=s.length;a<l;a+=1)d="",(!r||i!=="")&&(d+=Um(t,e)),c=s[a],u=n[c],t.replacer&&(u=t.replacer.call(n,c,u)),zi(t,e+1,c,!0,!0,!0)&&(f=t.tag!==null&&t.tag!=="?"||t.dump&&t.dump.length>1024,f&&(t.dump&&sc===t.dump.charCodeAt(0)?d+="?":d+="? "),d+=t.dump,f&&(d+=Um(t,e)),zi(t,e+1,u,!0,f)&&(t.dump&&sc===t.dump.charCodeAt(0)?d+=":":d+=": ",d+=t.dump,i+=d));t.tag=o,t.dump=i||"{}"}function ik(t,e,n){var r,i,o,s,a,l;for(i=n?t.explicitTypes:t.implicitTypes,o=0,s=i.length;o<s;o+=1)if(a=i[o],(a.instanceOf||a.predicate)&&(!a.instanceOf||typeof e=="object"&&e instanceof a.instanceOf)&&(!a.predicate||a.predicate(e))){if(n?a.multi&&a.representName?t.tag=a.representName(e):t.tag=a.tag:t.tag="?",a.represent){if(l=t.styleMap[a.tag]||a.defaultStyle,_j.call(a.represent)==="[object Function]")r=a.represent(e,l);else if(Mj.call(a.represent,l))r=a.represent[l](e,l);else throw new Fn("!<"+a.tag+'> tag resolver accepts not "'+l+'" style');t.dump=r}return!0}return!1}function zi(t,e,n,r,i,o,s){t.tag=null,t.dump=n,ik(t,n,!1)||ik(t,n,!0);var a=_j.call(t.dump),l=r,c;r&&(r=t.flowLevel<0||t.flowLevel>e);var u=a==="[object Object]"||a==="[object Array]",f,d;if(u&&(f=t.duplicates.indexOf(n),d=f!==-1),(t.tag!==null&&t.tag!=="?"||d||t.indent!==2&&e>0)&&(i=!1),d&&t.usedDuplicates[f])t.dump="*ref_"+f;else{if(u&&d&&!t.usedDuplicates[f]&&(t.usedDuplicates[f]=!0),a==="[object Object]")r&&Object.keys(t.dump).length!==0?(rre(t,e,t.dump,i),d&&(t.dump="&ref_"+f+t.dump)):(nre(t,e,t.dump),d&&(t.dump="&ref_"+f+" "+t.dump));else if(a==="[object Array]")r&&t.dump.length!==0?(t.noArrayIndent&&!s&&e>0?rk(t,e-1,t.dump,i):rk(t,e,t.dump,i),d&&(t.dump="&ref_"+f+t.dump)):(tre(t,e,t.dump),d&&(t.dump="&ref_"+f+" "+t.dump));else if(a==="[object String]")t.tag!=="?"&&Jne(t,t.dump,e,o,l);else{if(a==="[object Undefined]")return!1;if(t.skipInvalid)return!1;throw new Fn("unacceptable kind of an object to dump "+a)}t.tag!==null&&t.tag!=="?"&&(c=encodeURI(t.tag[0]==="!"?t.tag.slice(1):t.tag).replace(/!/g,"%21"),t.tag[0]==="!"?c="!"+c:c.slice(0,18)==="tag:yaml.org,2002:"?c="!!"+c.slice(18):c="!<"+c+">",t.dump=c+" "+t.dump)}return!0}function ire(t,e){var n=[],r=[],i,o;for(Jm(t,n,r),i=0,o=r.length;i<o;i+=1)e.duplicates.push(n[r[i]]);e.usedDuplicates=new Array(o)}function Jm(t,e,n){var r,i,o;if(t!==null&&typeof t=="object")if(i=e.indexOf(t),i!==-1)n.indexOf(i)===-1&&n.push(i);else if(e.push(t),Array.isArray(t))for(i=0,o=t.length;i<o;i+=1)Jm(t[i],e,n);else for(r=Object.keys(t),i=0,o=r.length;i<o;i+=1)Jm(t[r[i]],e,n)}function ore(t,e){e=e||{};var n=new Gne(e);n.noRefs||ire(t,n);var r=t;return n.replacer&&(r=n.replacer.call({"":r},"",r)),zi(n,0,r,!0,!0)?n.dump+`
2374
+ `:""}var sre=ore,are={dump:sre};function tv(t,e){return function(){throw new Error("Function yaml."+t+" is removed in js-yaml 4. Use yaml."+e+" instead, which is now safe by default.")}}var lre=An,cre=cj,ure=hj,fre=xj,dre=vj,hre=Hx,pre=Bj.load,gre=Bj.loadAll,mre=are.dump,Ore=Fn,xre={binary:Cj,float:Oj,map:dj,null:pj,pairs:Aj,set:Pj,timestamp:Sj,bool:gj,int:mj,merge:wj,omap:kj,seq:fj,str:uj},vre=tv("safeLoad","load"),yre=tv("safeLoadAll","loadAll"),bre=tv("safeDump","dump"),Yj={Type:lre,Schema:cre,FAILSAFE_SCHEMA:ure,JSON_SCHEMA:fre,CORE_SCHEMA:dre,DEFAULT_SCHEMA:hre,load:pre,loadAll:gre,dump:mre,YAMLException:Ore,types:xre,safeLoad:vre,safeLoadAll:yre,safeDump:bre};function Sre({onImport:t,onAddFolder:e}){return g.jsxs(wre,{children:[g.jsx(Cre,{children:"Save requests or import them from Arazzo files"}),g.jsxs(kre,{children:[g.jsx(_.Button,{icon:g.jsx(_.AddIcon,{}),onClick:e,children:"Create new collection"}),g.jsx(_.Button,{icon:g.jsx(_.DownloadIcon,{}),onClick:t,children:"Import Arazzo Files"})]})]})}const wre=T.div`
2429
2375
  display: flex;
2376
+ flex-direction: column;
2430
2377
  align-items: center;
2431
- flex: 1 0 0;
2432
- color: var(--text-color-primary);
2433
- font-size: var(--font-size-lg);
2434
- font-weight: var(--font-weight-semibold);
2435
- line-height: var(--line-height-lg);
2436
- `,aie=T(_.Button)`
2437
- height: var(--line-height-lg);
2438
- width: var(--line-height-lg);
2439
- `,lie=T.div`
2378
+ justify-content: center;
2379
+ height: 100%;
2380
+ gap: var(--spacing-lg);
2381
+ `,Cre=T.div`
2382
+ max-width: 50%;
2440
2383
  display: flex;
2384
+ flex-direction: column;
2441
2385
  align-items: center;
2442
- gap: var(--spacing-sm);
2443
- `,Ag=T.div`
2386
+ justify-content: center;
2387
+ text-align: center;
2388
+ `,kre=T.div`
2444
2389
  display: flex;
2445
2390
  align-items: center;
2446
- justify-content: space-between;
2391
+ justify-content: center;
2447
2392
  gap: var(--spacing-xs);
2393
+ `;function Are(){return g.jsx(Pre,{children:"No results found"})}const Pre=T.div`
2394
+ height: 100%;
2395
+ display: flex;
2396
+ justify-content: center;
2397
+ color: var(--text-color-helper);
2398
+ margin-top: 20vh;
2399
+ `,Ere=j.forwardRef(({children:t,controls:e,icon:n,title:r,dataTestId:i,defaultExpanded:o=!1,level:s=0,active:a,...l},c)=>{const[u,f]=j.useState(o),d=()=>{const h=!u;f(h),l.onToggle&&l.onToggle(h)};return j.useImperativeHandle(c,()=>({setIsExpanded:f})),g.jsxs(Ire,{...l,"data-testid":i,children:[g.jsxs(jre,{tabIndex:0,$level:s,$active:a,onClick:d,children:[g.jsxs(Dre,{children:[g.jsx(Rre,{children:n||(u?g.jsx(_.ChevronDownIcon,{size:"14px",color:"--text-color-secondary"}):g.jsx(_.ChevronRightIcon,{size:"14px",color:"--text-color-secondary"}))}),g.jsx(Tre,{children:r})]}),e&&g.jsx(Km,{onClick:h=>h.stopPropagation(),children:e})]}),g.jsx($re,{$isExpanded:u,$level:s,children:t})]})}),Ire=T.div`
2400
+ display: inline-grid;
2401
+ width: 100%;
2402
+ flex-direction: column;
2403
+ flex-shrink: 0;
2404
+ color: var(--text-color-secondary);
2448
2405
  font-size: var(--font-size-base);
2449
2406
  line-height: var(--line-height-base);
2450
- color: var(--text-color-primary);
2451
- background-color: var(--layer-color);
2452
- padding: var(--spacing-xs) var(--spacing-sm);
2453
- border-radius: var(--border-radius-md);
2407
+ cursor: pointer;
2408
+ `,Tre=T.div`
2409
+ overflow: hidden;
2410
+ text-overflow: ellipsis;
2411
+ white-space: nowrap;
2412
+ `,$re=T.div`
2413
+ display: ${({$isExpanded:t})=>t?"flex":"none"};
2414
+ position: relative;
2415
+ flex-direction: column;
2416
+ height: ${({$isExpanded:t})=>t?"auto":"0"};
2417
+ overflow-x: visible;
2454
2418
 
2455
- @media (max-width: ${Kn}px) {
2456
- background: none;
2457
- text-wrap: nowrap;
2458
- gap: var(--spacing-xs);
2459
- padding: 0;
2419
+ &::before {
2420
+ content: '';
2421
+ display: block;
2422
+ height: 100%;
2423
+ position: absolute;
2424
+ left: ${({$level:t})=>`calc(var(--spacing-sm) + 5.5px + ${t} * var(--spacing-base))`};
2425
+ top: 0;
2426
+ border-left: 1px solid var(--border-color-secondary);
2460
2427
  }
2461
- `;function cie(t){try{return JSON.stringify(JSON.parse(t),null,2)}catch{return t}}const uie=t=>{var e;return(e=t==null?void 0:t.find(([n])=>n.toLowerCase()==="content-type"))==null?void 0:e[1].split(";")[0]},fie=t=>{switch(!0){case t.includes("json"):return Cr.JSON;case t.includes("xml"):return Cr.XML;case t.includes("html"):return Cr.HTML;case t.includes("image"):return Cr.Image;default:return Cr.Text}},nv=T.div`
2428
+ `,Km=T.div`
2429
+ display: none;
2430
+ padding-right: var(--spacing-xs);
2431
+ `,jre=T.div`
2432
+ width: 100%;
2462
2433
  display: flex;
2434
+ flex-direction: row;
2463
2435
  justify-content: space-between;
2464
2436
  align-items: center;
2465
- font-size: var(--font-size-base);
2466
- font-weight: var(--font-weight-regular);
2467
- line-height: var(--line-height-base);
2468
- font-style: normal;
2469
- border-top: 1px solid var(--border-color-secondary);
2470
- min-height: 40px;
2471
- min-width: 500px;
2472
- `,Uj=T.div`
2437
+ flex-grow: 1;
2438
+ height: 32px;
2439
+ padding: ${({$level:t})=>`var(--spacing-xxs) var(--spacing-xs) var(--spacing-xxs) calc(var(--spacing-sm) - 1px + ${t} * var(--spacing-base))`};
2440
+ min-width: 0;
2441
+
2442
+ ${({$active:t})=>t&&`
2443
+ ${Km} {
2444
+ display: flex;
2445
+ }
2446
+ `}
2447
+
2448
+ &:hover {
2449
+ ${Km} {
2450
+ display: flex;
2451
+ }
2452
+ }
2453
+
2454
+ ${({$active:t})=>t&&`
2455
+ background-color: var(--bg-color-hover);
2456
+ `}
2457
+
2458
+ &:hover {
2459
+ background-color: var(--bg-color-hover);
2460
+ }
2461
+ `,Rre=T.div`
2473
2462
  display: flex;
2474
- flex-direction: column;
2475
- border-top: 1px solid var(--border-color-secondary);
2476
- min-width: 500px;
2477
- overflow-x: auto;
2478
- `,Hj=T.div`
2479
- display: grid;
2480
- grid-template-columns: 1fr 1fr 40px;
2481
2463
  align-items: center;
2482
- border-bottom: 1px solid var(--border-color-secondary);
2483
- `,Jj=T.div`
2464
+ min-width: 14px;
2465
+ `,Dre=T.div`
2484
2466
  display: flex;
2485
2467
  flex-grow: 1;
2468
+ flex-direction: row;
2486
2469
  align-items: center;
2487
- padding: 0;
2488
- height: 40px;
2489
- border-right: 1px solid var(--border-color-secondary);
2490
- color: var(--text-color-primary);
2491
- font-size: var(--font-size-base);
2492
- font-weight: var(--font-weight-regular);
2493
- line-height: var(--line-height-base);
2494
- overflow: auto;
2495
- `,ph=T.div`
2496
- width: 100%;
2497
- height: 100%;
2470
+ gap: var(--spacing-xxs);
2471
+ min-width: 0;
2472
+ `;function Qre(t,e){const{definitionUrl:n,environments:r,selectedEnvironmentId:i}=e,o=LT(i||"",r),s=Kre(n||""),a=qj(t.items.get(),o.variables);return{arazzo:"1.0.0",info:{title:t.name.get(),version:"1.0.0"},sourceDescriptions:[{name:s,url:n,type:"openapi","x-serverUrl":o.url}],workflows:[{workflowId:nv(t.name.get()),steps:a}]}}function qj(t,e){return t.flatMap(n=>n.type===sn.Folder?Bre(n.value,e):[_re(n.value,e)])}function Bre(t,e){return qj(t.items,e).map(n=>({...n,stepId:`${nv(t.name)}/${n.stepId}`}))}function _re(t,e){var a;const n=t.name,r=nv(n),i=Nre(t.request,e),o=Wre(t.request),s={stepId:r,description:n,"x-operation":{path:eie(t.request.url),method:(a=t.request.method)==null?void 0:a.toLowerCase()},"x-replay":{securities:o,path:t.request.url,parameters:Mre(t.request)},parameters:i};if(Hre(t.request.body)){const l=Jre(t.request.body),c=Ge(l,e);s.requestBody={contentType:t.request.body.type,payload:c},s["x-replay"].body=l}return s}function Mre(t){return[...kg(t.cookies,"cookie"),...kg(t.queryParameters,"query"),...kg(t.headers,"header")]}function kg(t,e){return t.filter(({key:n})=>n).map(({key:n,value:r})=>({in:e,name:n,value:r}))}function Nre(t,e){return[...eO(t.cookies,"cookie",e),...eO(t.queryParameters,"query",e),...Zre(t,e),...Fre(t,e)]}function eO(t,e,n){return t.filter(({key:r})=>r).map(({key:r,value:i})=>{const o=Ge(r,n),s=Ge(i,n);return{in:e,name:o,value:s}})}function Fre(t,e){const n=t.url.split("?")[0];return ka(n).filter(({content:r})=>r!==QO).map(({content:r})=>{var i;return{in:"path",name:r,value:((i=e.find(({name:o})=>o===r))==null?void 0:i.value)||""}})}function Zre(t,e){return[...eO(t.headers,"header",e),...tie(t.security.securities,e,t)]}function Wre(t){return t.security.securities.map(e=>{const{securityType:n,...r}=e;switch(n){case K.BasicAuth:return Vre(r[K.BasicAuth]);case K.DigestAuth:return zre(r[K.DigestAuth]);case K.JWT:return Lre(r[K.JWT]);case K.APIKey:return Xre(r[K.APIKey]);case K.OAuth2:return Gre(r[K.OAuth2]);case K.OpenIDConnect:return Yre(r[K.OpenIDConnect]);default:return qre()}})}function Vre(t){return{type:K.BasicAuth,data:{username:t.username,password:t.password}}}function zre(t){return{type:K.DigestAuth,data:{username:t.username,password:t.password}}}function Lre(t){return{type:K.JWT,data:{token:t.token}}}function Xre(t){return{type:K.APIKey,data:{name:t.name,key:t.key,location:t.location}}}function Gre(t){return{type:K.OAuth2,data:Uj(t)}}function Yre(t){return{type:K.OpenIDConnect,data:{...Uj(t),...t.openIdConnectUrl&&{openIdConnectUrl:t.openIdConnectUrl},...t.userInfoUrl&&{userInfoUrl:t.userInfoUrl}}}}function qre(){return{type:K.NoAuth}}function Uj(t){var i;const e=ok(t.tokenRequestExtraParams),n=ok(t.authRequestExtraParams),r={[t.grantType]:t[t.grantType],scopes:Ure((i=t[t.grantType])==null?void 0:i.scopes),grantType:t.grantType};return{...e.length>0&&{tokenRequestExtraParams:e},...n.length>0&&{authRequestExtraParams:n},...r}}function ok(t=[]){return t.filter(({value:e})=>e).map(({id:e,...n})=>n)}function Ure(t=[]){return t.filter(({value:e})=>e).map(({id:e,key:n,...r})=>r)}function Hre(t){const{content:e,formData:n}=t;return!!e||Object.values(n).some(r=>r.length>1)}function Jre(t){switch(t.type){case ot.JSON:case ot.XML:case ot.HTML:case ot.Text:return JSON.stringify(t.content);case ot.FormData:case ot["application/x-www-form-urlencoded"]:const e=t.formData[t.type].filter(({key:n,type:r})=>n&&r==="text").map(({key:n,type:r,value:i})=>({key:n,type:r,value:i}));return JSON.stringify(e);default:return""}}function Kre(t){return t.substring(t.lastIndexOf("/")+1,t.lastIndexOf("."))}function nv(t){return t.replace(/[^A-Za-z0-9_\-]+/g,"-")}function eie(t){const e=t.indexOf("?");let n=t.substring(0,e!==-1?e:t.length);return n=n.replace(/\{\{server\}\}/g,"").replace(/\{\{([^{}]+)\}\}/g,"{$1}"),n}function tie(t,e,n){return t.map(r=>{const{securityType:i,...o}=r;switch(i){case K.BasicAuth:return nie(o[K.BasicAuth],e);case K.DigestAuth:return rie(n,e);case K.JWT:return iie(o[K.JWT],e);case K.OAuth2:case K.OpenIDConnect:return oie(i,o,e);case K.APIKey:return sie(o[K.APIKey],e);default:return null}}).filter(Boolean)}function nie(t,e){const{username:n,password:r}=t,i=Ge(n,e),o=Ge(r,e);return ph("Authorization",`Basic ${btoa(`${i}:${o}`)}`)}function rie(t,e){return ph("Authorization",zT(t,e))}function iie(t,e){const n=Ge(t.token,e);return ph("Authorization",`Bearer ${n}`)}function oie(t,e,n){const{grantType:r,[r]:{accessToken:i}}=e[t],o=Ge(i,n);return ph("Authorization",`Bearer ${o}`)}function sie(t,e){const{name:n,key:r,location:i}=t,o=Ge(r,e),s=Ge(n,e);return n&&r?{in:i.toLowerCase(),name:s,value:o}:null}function ph(t,e){return{in:"header",name:t,value:e}}async function aie(t,e={},n){return window.__TAURI_INTERNALS__.invoke(t,e,n)}var sk;(function(t){t[t.Audio=1]="Audio",t[t.Cache=2]="Cache",t[t.Config=3]="Config",t[t.Data=4]="Data",t[t.LocalData=5]="LocalData",t[t.Document=6]="Document",t[t.Download=7]="Download",t[t.Picture=8]="Picture",t[t.Public=9]="Public",t[t.Video=10]="Video",t[t.Resource=11]="Resource",t[t.Temp=12]="Temp",t[t.AppConfig=13]="AppConfig",t[t.AppData=14]="AppData",t[t.AppLocalData=15]="AppLocalData",t[t.AppCache=16]="AppCache",t[t.AppLog=17]="AppLog",t[t.Desktop=18]="Desktop",t[t.Executable=19]="Executable",t[t.Font=20]="Font",t[t.Home=21]="Home",t[t.Runtime=22]="Runtime",t[t.Template=23]="Template"})(sk||(sk={}));var ak;(function(t){t[t.Start=0]="Start",t[t.Current=1]="Current",t[t.End=2]="End"})(ak||(ak={}));async function lie(t,e,n){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");const r=new TextEncoder;await aie("plugin:fs|write_text_file",r.encode(e),{headers:{path:t instanceof URL?t.toString():t,options:JSON.stringify(n)}})}async function Hj(t,e={},n){return window.__TAURI_INTERNALS__.invoke(t,e,n)}async function cie(t={}){return typeof t=="object"&&Object.freeze(t),await Hj("plugin:dialog|open",{options:t})}async function uie(t={}){return typeof t=="object"&&Object.freeze(t),await Hj("plugin:dialog|save",{options:t})}async function fie(t,e){(window==null?void 0:window.__TAURI__)?await hie(t,e):die(t,e)}function die(t,e){const n=new Blob([t],{type:"text/yaml"}),r=URL.createObjectURL(n),i=document.createElement("a");i.href=r,i.download=`${e}.yaml`,document.body.appendChild(i),i.click(),document.body.removeChild(i),URL.revokeObjectURL(r)}async function hie(t,e){try{const n=await uie({title:"Save your file",defaultPath:e,filters:[{name:"YAML files",extensions:["yaml","yml"]},{name:"JSON files",extensions:["json"]}]});if(!n)return;await lie(n,t)}catch(n){console.error("Error saving the file:",n)}}function pie({folder:t,level:e,siblingItems:n,expanded:r,onRemove:i}){const o=je(),{sendEvent:s}=ct(),a=j.useRef(null),{state:l,name:c}=t.get(),[u,f]=j.useState(!1),d=j.useMemo(()=>t.items.get().some(b=>b.value.state===gt.Draft),[t.items]),h=()=>{t.state.set(gt.Normal),s("collections_folder_editing_cancelled",{name:t.name.get()})},p=b=>{t.state.get()===gt.Draft?s("collections_folder_creation_finished",{name:b}):s("collections_folder_edited",{name:t.name.get(),newName:b}),b.length&&t.name.set(b),t.state.set(gt.Normal)},O=()=>{var w;if(d)return;(w=a.current)==null||w.setIsExpanded(!0);const b=ya(t.items.get(),"New Folder");t.items.set(C=>[{type:sn.Folder,value:{id:crypto.randomUUID(),state:gt.Draft,name:b,items:[]}},...C]),s("collections_folder_creation_started",{})},m=()=>{var w;if(d)return;(w=a.current)==null||w.setIsExpanded(!0);const b=ya(t.items.get(),"New Request");t.items.set(C=>[...C,{type:sn.Request,value:{id:crypto.randomUUID(),state:gt.Draft,name:b,request:Cc().request,response:null}}]),s("collections_request_creation_started",{})},x=()=>{t.state.set(gt.Edit),s("collections_folder_editing_started",{name:t.name.get()})},v=async()=>{const b=Qre(t,o.get()),w=Yj.dump(b);await fie(w,b.workflows[0].workflowId),s("collections_export_clicked",{name:t.name})},y=()=>g.jsxs(g.Fragment,{children:[g.jsx(Ps,{variant:"text",size:"small",icon:g.jsx(_.DocumentAddIcon,{}),onClick:m}),g.jsx(Ps,{variant:"text",size:"small",icon:g.jsx(_.ExportIcon,{}),onClick:v}),g.jsx(_.Dropdown,{trigger:g.jsx(Ps,{variant:"text",size:"small",icon:g.jsx(_.OverflowMenuVerticalIcon,{})}),alignment:"end",children:g.jsxs(_.DropdownMenu,{children:[g.jsxs(al,{onClick:O,children:[g.jsx(_.FolderAddIcon,{size:"14px"}),"New Folder"]}),g.jsxs(al,{onClick:x,children:[g.jsx(_.EditIcon,{size:"14px"}),"Edit"]}),g.jsx(ba,{description:"Are you sure you want to delete this collection?",onConfirm:i,onVisibilityChange:f,children:g.jsxs(al,{children:[g.jsx(_.TrashCanIcon,{size:"14px"}),"Delete"]})})]})})]}),S=()=>g.jsxs(g.Fragment,{children:[g.jsx(Ps,{variant:"text",size:"small",icon:g.jsx(_.DocumentAddIcon,{}),onClick:m}),g.jsx(Ps,{variant:"text",size:"small",icon:g.jsx(_.FolderAddIcon,{}),onClick:O}),g.jsx(_.Dropdown,{trigger:g.jsx(Ps,{variant:"text",size:"small",icon:g.jsx(_.OverflowMenuVerticalIcon,{})}),alignment:"end",children:g.jsxs(_.DropdownMenu,{children:[g.jsxs(al,{onClick:x,children:[g.jsx(_.EditIcon,{size:"14px"}),"Edit"]}),g.jsx(ba,{description:"Are you sure you want to delete this folder?",onConfirm:i,onVisibilityChange:f,children:g.jsxs(al,{children:[g.jsx(_.TrashCanIcon,{size:"14px"}),"Delete"]})})]})})]});return l!==gt.Normal?g.jsx(Xx,{siblingItems:n,defaultName:c,level:e,onSave:p,onCancel:l===gt.Draft?i:h,placeholder:e===0?"New Collection":"New Folder",icon:g.jsx(_.FolderAddIcon,{size:"14px",color:"--icon-color-disabled"})}):g.jsx(Ere,{ref:a,title:c,level:e,active:u,defaultExpanded:r,controls:g.jsx(gie,{children:e===0?y():S()}),children:g.jsxs(mie,{children:[t.items.length?null:g.jsxs(Oie,{$level:e+1,children:["This ",e===0?"collection":"folder"," is empty"]}),t.items.map(b=>g.jsx(e5,{item:b,itemList:t.items,level:e+1},b.get().value.id))]})})}const gie=T.div`
2473
+ display: flex;
2474
+ flex-direction: row;
2475
+ gap: var(--spacing-xxs);
2476
+ `,mie=T.div`
2498
2477
  display: flex;
2478
+ width: 100%;
2499
2479
  flex-direction: column;
2500
2480
  justify-content: center;
2481
+ align-items: flex-start;
2482
+ gap: 2px;
2483
+ flex: 1 0 0;
2484
+ `,Oie=T.div`
2485
+ display: flex;
2501
2486
  align-items: center;
2502
- gap: var(--spacing-xs);
2487
+ height: 32px;
2503
2488
  font-size: var(--font-size-base);
2504
- line-height: var(--line-height-base);
2505
2489
  color: var(--text-color-description);
2506
- text-align: center;
2507
- `,Kj=T.div`
2490
+ padding: ${({$level:t})=>`var(--spacing-xxs) var(--spacing-xs) var(--spacing-xxs) calc(var(--spacing-sm) - 1px + ${t} * var(--spacing-base))`};
2491
+ `,Ps=T(_.Button)`
2492
+ & + & {
2493
+ margin-left: 0;
2494
+ }
2495
+ `,al=T.span`
2496
+ gap: var(--spacing-xs);
2508
2497
  display: flex;
2498
+ padding: var(--spacing-xs) var(--spacing-md);
2509
2499
  align-items: center;
2510
- justify-content: center;
2511
- width: 40px;
2512
- `,e5=T.div`
2500
+ width: 156px;
2501
+ height: 32px;
2502
+ border-radius: var(--border-radius);
2503
+
2504
+ &:hover {
2505
+ background-color: var(--bg-color-hover);
2506
+ }
2507
+ `;function xie({children:t,controls:e,onClick:n,level:r=0,active:i,showControlsOnHover:o=!1,dataTestId:s}){const a=l=>{(l.key===" "||l.key==="Enter")&&(l.preventDefault(),n==null||n())};return g.jsxs(vie,{tabIndex:0,role:"listitem",onKeyDown:a,onClick:n,"data-testid":s,$level:r,$active:!!i,children:[g.jsx(yie,{className:"accordion-item-content",children:t}),g.jsx(Jj,{children:g.jsx(Kj,{$showControlsOnHover:o,onClick:l=>l.stopPropagation(),children:e})})]})}const Jj=T.div`
2513
2508
  display: flex;
2514
- flex-grow: 1;
2515
- align-items: center;
2516
- padding: 0 var(--spacing-base);
2517
- height: 40px;
2518
- border-right: 1px solid var(--border-color-secondary);
2519
- color: var(--text-color-primary);
2520
- font-size: var(--font-size-base);
2521
- font-weight: var(--font-weight-regular);
2522
- line-height: var(--line-height-base);
2523
- overflow: hidden;
2524
- text-overflow: ellipsis;
2525
- `,t5=T.div`
2526
- max-width: 100%;
2527
- white-space: nowrap;
2528
- overflow: hidden;
2529
- text-overflow: ellipsis;
2530
- `;function die(t){let e="";const n=new Uint8Array(t),r=n.byteLength;for(let i=0;i<r;i++)e+=String.fromCharCode(n[i]);return window.btoa(e)}const hie=({arrayBuffer:t})=>g.jsx(pie,{children:g.jsx("img",{src:`data:image/png;base64,${die(t)}`,className:"mx-auto",alt:"Response Image"})}),pie=T.div`
2509
+ flex-direction: row;
2510
+ `,Kj=T(Jj)`
2511
+ display: ${({$showControlsOnHover:t})=>t?"none":"flex"};
2512
+ padding-right: var(--spacing-xs);
2513
+ `,vie=T.div`
2514
+ width: 100%;
2515
+ height: 32px;
2516
+ max-height: 100%;
2531
2517
  display: flex;
2532
- justify-content: center;
2533
2518
  align-items: center;
2534
- height: 100%;
2535
- `;function gie(){var u,f;const{response:t}=je(),{sendEvent:e}=ct(),n=((u=t.get())==null?void 0:u.body)||"",r=((f=t.get())==null?void 0:f.arrayBuffer)||new ArrayBuffer(0),[i,o]=j.useState(Cr.Text),s=Object.keys(Au).map(d=>({element:g.jsx("div",{children:Au[d].name}),label:Au[d].name,value:d}));j.useEffect(()=>{var h;const d=uie((h=t.get())==null?void 0:h.headers);if(d){const p=fie(d);o(p)}else o(Cr.Text)},[t]);const a=i===Cr.JSON?cie(n):n,l=d=>{o(d),e("response_body_format_changed",{name:d})},c=()=>{e("response_body_copied",{})};return g.jsxs(mie,{children:[g.jsxs(nv,{children:[g.jsxs(Oie,{children:["Response body",g.jsx(xie,{options:s,value:{value:i,label:Au[i].name},onChange:d=>l(d)})]}),g.jsx(Kj,{children:g.jsx(_.CopyButton,{toasterPlacement:"left",data:a,onCopyClick:c})})]}),g.jsx(Ne,{}),hd[i]?g.jsx(ed,{readOnly:!0,dataTestId:"response-body-tab-codemirror",value:a,extensions:hd[i].extensions}):i===Cr.Image?g.jsx(hie,{arrayBuffer:r}):i===Cr.HTML?g.jsx("iframe",{srcDoc:a,style:{width:"100%",height:"100%",border:"none"},title:"HTML Content",sandbox:"allow-same-origin"}):g.jsx("div",{children:"No content available"})]})}const mie=T.div`
2519
+ justify-content: space-between;
2520
+ gap: var(--spacing-xxs);
2521
+ padding: ${({$level:t})=>`var(--spacing-xxs) var(--spacing-xs) var(--spacing-xxs) calc(var(--spacing-sm) - 1px + ${t} * var(--spacing-base))`};
2522
+
2523
+ &:hover {
2524
+ background-color: var(--bg-color-hover);
2525
+
2526
+ ${Kj} {
2527
+ display: flex;
2528
+ }
2529
+ }
2530
+
2531
+ &:hover,
2532
+ &:not(:hover) {
2533
+ ${({$active:t})=>t&&" background-color: var(--bg-color-active);"}
2534
+ }
2535
+ `,yie=T.div`
2536
+ max-width: 30vw;
2536
2537
  display: flex;
2537
2538
  flex-direction: column;
2538
- overflow: auto;
2539
- border-bottom: 1px solid var(--border-color-secondary);
2540
- height: 100%;
2541
- `,Oie=T.div`
2539
+ justify-content: center;
2540
+ align-items: flex-start;
2541
+ gap: 2px;
2542
+ `;function bie({defaultName:t,onChange:e,onSave:n,onCancel:r,before:i,level:o=0,placeholder:s="New Request",siblingItems:a}){const{newName:l,setNewName:c,disabled:u}=Lx(t,a),f=j.useRef(null),d=l.trim();j.useEffect(()=>{var O;(O=f.current)==null||O.focus()},[f]);const h=j.useCallback(O=>{O.key==="Escape"&&(r==null||r()),O.key==="Enter"&&!u&&n(d)},[r,n,d,u]),p=O=>{c(O.target.value),e==null||e(O)};return g.jsx(Po,{onClickOutside:r,children:g.jsxs(Sie,{$level:o,onKeyDown:h,children:[i,g.jsx(Jo,{ref:f,"data-testid":"edit-item-header-input",type:"text",placeholder:s,value:l,onChange:p}),g.jsx(lk,{"data-testid":"edit-item-header-save-button",variant:"primary",size:"small",onClick:()=>n(d),disabled:u,icon:g.jsx(_.CheckmarkIcon,{})}),g.jsx(lk,{"data-testid":"edit-item-header-cancel-button",variant:"text",size:"small",onClick:r,icon:g.jsx(_.CloseIcon,{})})]})})}const Sie=T.div`
2542
2543
  display: flex;
2543
- flex-direction: row;
2544
2544
  align-items: center;
2545
- `,xie=T(_.Select)`
2546
- display: flex;
2547
- border-radius: var(--border-radius-md);
2548
- --select-border: none;
2549
- --select-input-padding: var(--select-input-padding-vertical) var(--spacing-xs);
2545
+ gap: 4px;
2546
+ align-self: stretch;
2547
+ padding: ${({$level:t})=>`var(--spacing-xxs) var(--spacing-xs) var(--spacing-xxs) calc(var(--spacing-sm) - 1px + ${t} * var(--spacing-base))`};
2550
2548
 
2551
- svg {
2552
- width: 12px;
2553
- height: 12px;
2549
+ background-color: var(--bg-color-active);
2550
+ height: 32px;
2551
+ `,lk=T(_.Button)`
2552
+ border: none;
2553
+
2554
+ & + & {
2555
+ margin-left: 0;
2554
2556
  }
2555
- `;function vie(){const{response:t}=je(),{sendEvent:e}=ct(),n=j.useMemo(()=>{var s;return((s=t.get())==null?void 0:s.headers)||[]},[t]),r=j.useMemo(()=>n.map(([s,a])=>`${s}: ${a}`).join(`
2556
- `),[n]),i=()=>{e("response_header_copied",{})},o=()=>{e("response_all_headers_copied",{})};return g.jsxs(yie,{children:[g.jsxs(nv,{children:[g.jsx(Sie,{children:"Header list"}),g.jsx(Kj,{children:g.jsx(_.CopyButton,{toasterPlacement:"left",data:r,onCopyClick:o})})]}),g.jsx(Uj,{children:n.map(([s,a])=>g.jsxs(Hj,{children:[g.jsx(Jj,{"data-testid":`response-header-key-${s}`,children:s}),g.jsx(e5,{"data-testid":`response-header-value-${s}`,children:g.jsx(To,{mouseEnterDelay:1,placement:"top",content:a,showArrow:!1,children:g.jsx(t5,{children:a})})}),g.jsx(bie,{toasterPlacement:"left",data:a,onCopyClick:i})]},s))})]})}const yie=T.div`
2557
+ `;function wie({item:t,level:e,siblingItems:n,onRemove:r}){var O;const{requestError:i,transactionSource:o}=je(),{updateTransaction:s}=ah(),{sendEvent:a}=ct(),{state:l,name:c}=t.get(),u=()=>{t.state.set(gt.Normal),a("collections_request_editing_cancelled",{name:t.name.get()})},f=m=>{m.length&&t.name.set(m),t.state.set(gt.Normal),a("collections_request_edited",{name:t.name.get(),newName:m})},d=()=>{i.set(null),s({request:t.request.get({noproxy:!0}),response:t.response.get({noproxy:!0})},{id:t.id.get(),type:"collection",name:t.name.get()}),a("collections_request_clicked",{name:t.name.get()})},h=()=>{t.state.set(gt.Edit),a("collections_request_editing_started",{name:t.name.get()})},p=((O=o.get())==null?void 0:O.id)===t.id.get();return l===gt.Edit?g.jsx(bie,{defaultName:c,before:g.jsx(Gm,{value:t.request.method.get()}),level:e,siblingItems:n,onSave:f,onCancel:u}):l===gt.Draft?g.jsx(Xx,{siblingItems:n,defaultName:c,level:e,onSave:f,onCancel:r,placeholder:"New Request",icon:g.jsx(_.DocumentAddIcon,{size:"14px",color:"--icon-color-disabled"})}):g.jsx(xie,{level:e,active:p,showControlsOnHover:!0,onClick:d,controls:g.jsxs(Cie,{children:[g.jsx(ck,{variant:"text",size:"small",onClick:h,icon:g.jsx(_.EditIcon,{})}),g.jsx(ck,{variant:"text",size:"small",onClick:r,icon:g.jsx(_.TrashCanIcon,{color:"--color-error-base"})})]}),children:g.jsxs(kie,{children:[g.jsx(Gm,{value:t.request.method.get()}),g.jsx(Aie,{children:t.name.get()})]},`${t.id}`)})}const Cie=T.div`
2557
2558
  display: flex;
2558
- flex-direction: column;
2559
- overflow: auto;
2560
- `,bie=T(_.CopyButton)`
2561
- justify-self: center;
2562
- `,Sie=T.span``;function wie(){var n;const{response:t}=je(),e=(n=t.get())==null?void 0:n.cookies;return e!=null&&e.length?g.jsxs(Cie,{children:[g.jsx(nv,{children:"Cookies list"}),g.jsx(Uj,{children:(e||[]).map(([r,i])=>g.jsxs(Hj,{children:[g.jsx(Jj,{children:r}),g.jsx(kie,{children:g.jsx(To,{mouseEnterDelay:1,placement:"top",content:g.jsx(Aie,{children:i}),showArrow:!1,children:g.jsx(t5,{children:i})})})]},r))})]}):g.jsx(ph,{children:"No cookies were received from the server."})}const Cie=T.div`
2559
+ flex-direction: row;
2560
+ gap: var(--spacing-xxs);
2561
+ `,kie=T.div`
2562
+ width: 100%;
2563
2563
  display: flex;
2564
- flex-direction: column;
2565
- overflow: auto;
2566
- height: 100%;
2567
- `,kie=T(e5)`
2568
- border-right: none;
2569
- `,Aie=T(Ao)`
2570
- padding: var(--spacing-unit) var(--spacing-xs);
2564
+ flex-direction: row;
2565
+ flex-shrink: 0;
2566
+ gap: var(--spacing-xxs);
2567
+ cursor: pointer;
2568
+ min-width: 0;
2569
+ overflow: hidden;
2570
+ white-space: nowrap;
2571
+ text-overflow: ellipsis;
2572
+ align-items: center;
2573
+ `,Aie=T.span`
2571
2574
  font-size: var(--font-size-base);
2572
2575
  font-weight: var(--font-weight-regular);
2573
2576
  line-height: var(--line-height-base);
2574
- word-break: break-word;
2575
- overflow-wrap: break-word;
2576
- max-width: 400px;
2577
- `,uk=[{name:"Body",content:g.jsx(gie,{}),icon:g.jsx(_.CodeIcon,{})},{name:"Headers",content:g.jsx(vie,{}),icon:g.jsx(_.TableBuiltIcon,{})},{name:"Cookies",content:g.jsx(wie,{}),icon:g.jsx(_.CookieIcon,{})}];function Pie(){const{sendEvent:t}=ct(),[e,n]=j.useState(uk[0]),r=i=>{n(i),t("response_tab_changed",{name:i.name})};return g.jsxs(Eie,{children:[g.jsx(Iie,{children:uk.map(i=>g.jsx(j.Fragment,{children:e===i?g.jsx(fk,{icon:i.icon,iconPosition:"left",children:i.name}):g.jsx(fk,{icon:i.icon,variant:"text",onClick:()=>r(i),iconPosition:"left",children:i.name})},i.name))}),e.content]})}const Eie=T.div`
2577
+ color: var(--text-color-primary);
2578
+ text-overflow: ellipsis;
2579
+ overflow: hidden;
2580
+ white-space: nowrap;
2581
+ `,ck=T(_.Button)`
2582
+ & + & {
2583
+ margin-left: 0;
2584
+ }
2585
+ `;function e5({item:t,level:e,itemList:n,expanded:r}){const{transactionSource:i}=je(),o=Zx(),{sendEvent:s}=ct(),a=()=>{t.get().value.state===gt.Draft?s("collections_folder_creation_cancelled",{}):s("collections_folder_removed",{name:t.get().value.name}),c(t.get({noproxy:!0}).value)&&i.set(null),t.set(lt)},l=()=>{const u=t.get({noproxy:!0}).value;t.get().value.state===gt.Draft?s("collections_request_creation_cancelled",{}):s("collections_request_removed",{name:u.name}),(o==null?void 0:o.get().id)===u.id&&i.set(null),t.set(lt)},c=u=>u.items.some(f=>f.type===sn.Folder?c(f.value):(o==null?void 0:o.get().id)===f.value.id);return t.get().type===sn.Folder?g.jsx(pie,{folder:t.nested("value"),siblingItems:n,onRemove:a,level:e,expanded:r}):g.jsx(wie,{item:t.nested("value"),siblingItems:n,level:e,onRemove:l})}async function Pie(){const t=document.createElement("input");return t.type="file",t.accept=".json, .yaml, .yml",new Promise((e,n)=>{const r=i=>{var c;const s=(c=i.target.files)==null?void 0:c[0];if(!s){n(new Error("No file selected."));return}const a=s.name.toLowerCase();if(!a.endsWith(".json")&&!a.endsWith(".yaml")&&!a.endsWith(".yml")){n(new Error("Please select a JSON, YAML, or YML file."));return}const l=new FileReader;l.onload=u=>{var d;const f=(d=u.target)==null?void 0:d.result;typeof f=="string"?e(f):n(new Error("Failed to read file content."))},l.onerror=()=>{n(new Error("Error reading file."))},l.readAsText(s),t.removeEventListener("change",r)};t.addEventListener("change",r),t.click()})}var tO=(t=>(t[t.NoRequestItemsError=0]="NoRequestItemsError",t[t.RequestItemsParseError=1]="RequestItemsParseError",t))(tO||{});function Eie(t){const e={type:sn.Folder,value:{id:crypto.randomUUID(),state:gt.Normal,name:nO(t.workflows[0].workflowId),items:Iie(t.workflows[0].steps)}},n=t5(e);return n===0?{data:null,error:0}:n<t.workflows[0].steps.length?{data:e,error:1}:{data:e}}function Iie(t){const e=[];return t.forEach(n=>{const r=n.stepId.split("/");let i=e;r.forEach((o,s)=>{if(s===r.length-1){const a=Tie(n,i);a&&i.push(a)}else i=$ie(i,o).value.items})}),e}function Tie(t,e){var n;try{const r=ya(e,t.description);return{type:sn.Request,value:{id:crypto.randomUUID(),state:gt.Normal,name:r,request:{method:t["x-operation"].method.toUpperCase(),url:t["x-replay"].path,security:jie(t["x-replay"].securities),body:Rie({contentType:(n=t.requestBody)==null?void 0:n.contentType,payload:t["x-replay"].body}),queryParameters:Ag(t["x-replay"].parameters,"query"),headers:Ag(t["x-replay"].parameters,"header"),cookies:Ag(t["x-replay"].parameters,"cookie")},response:null}}}catch{return null}}function $ie(t,e){let n=t.find(r=>r.type===sn.Folder&&r.value.name===nO(e));return n||(n={type:sn.Folder,value:{id:crypto.randomUUID(),state:gt.Normal,name:nO(e),items:[]}},t.push(n)),n}function jie(t){return{securitySchemeVariants:[],selectedSecuritySchemeId:"",securities:t.map(e=>{const n=fs(),r=e.type;return{...n,securityType:e.type,[e.type]:{...n[r],...e.data}}})}}function Rie(t){if(!(t!=null&&t.payload)||!(t!=null&&t.contentType))return{...to(),type:ot.Text};const{contentType:e,payload:n}=t;switch(e){case ot.JSON:case ot.HTML:case ot.XML:case ot.Text:return{...to(),type:e,content:JSON.parse(n)};case ot.FormData:return{...to(),type:e,formData:{"multipart/form-data":uk(n),"application/x-www-form-urlencoded":[]}};case ot["application/x-www-form-urlencoded"]:return{...to(),type:e,formData:{"multipart/form-data":[],"application/x-www-form-urlencoded":uk(n)}};default:return{...to(),type:ot.Text}}}function uk(t){return JSON.parse(t).map(e=>({id:crypto.randomUUID(),key:e.key,value:e.value,active:!0,type:"text"}))}function Ag(t,e){const n=t.filter(({in:r})=>r===e).map(({value:r,name:i})=>({id:crypto.randomUUID(),key:i,active:!0,value:r}));return n.push(un()),n}function nO(t){return t.replace(/-/g," ")}function t5(t){return t.type===sn.Request?1:t.type===sn.Folder?t.value.items.reduce((n,r)=>n+t5(r),0):0}function fk({icon:t,title:e,description:n,cancelButtonLabel:r,submitButtonLabel:i,onClose:o,onSubmit:s}){return g.jsxs(g.Fragment,{children:[g.jsxs(Die,{children:[t,g.jsx(Qie,{children:e}),g.jsx(Bie,{children:n})]}),g.jsxs(_ie,{children:[g.jsx(_.Button,{variant:"outlined",onClick:o,children:r}),g.jsx(_.Button,{variant:"primary",onClick:s,children:i})]})]})}const Die=T.div`
2578
2586
  display: flex;
2579
2587
  flex-direction: column;
2580
- padding: var(--spacing-base) 0 var(--spacing-unit) 0;
2581
- gap: var(--spacing-sm);
2582
- height: calc(100% - 38px);
2583
- `,Iie=T.div`
2584
- display: flex;
2585
- flex-direction: row;
2586
- gap: 2px;
2587
- `,fk=T(_.Button)`
2588
+ align-items: center;
2589
+ margin-bottom: var(--spacing-xxl);
2590
+ `,Qie=T.h6`
2591
+ font-size: var(--font-size-lg);
2592
+ font-weight: var(--font-weight-medium);
2593
+ line-height: var(--line-height-lg);
2594
+ margin: var(--spacing-sm) 0;
2595
+ `,Bie=T.p`
2588
2596
  font-size: var(--font-size-base);
2589
2597
  font-weight: var(--font-weight-regular);
2590
2598
  line-height: var(--line-height-base);
2591
- padding: var(--spacing-xxs) var(--spacing-base);
2592
- margin: 0;
2593
- `;function Tie({onClose:t}){return g.jsxs(ph,{children:[g.jsx(_.Spinner,{size:"20px",color:"--color-info-base"}),g.jsx(Die,{children:"Sending request ..."}),g.jsx(_.Button,{onClick:t,children:"Cancel request"})]})}function $ie(){return g.jsxs(ph,{"data-testid":"empty-response",children:["No response received yet.",g.jsx("br",{}),"Click “Send” to start a request and see the response here!"]})}function jie(){return g.jsxs(ph,{children:[g.jsx("h3",{children:"Could not get a response."}),"Something went wrong, please review",g.jsx("br",{}),"your request and try again"]})}function n5({panel:t}){const{response:e,requestError:n,isProcessingRequest:r,requestController:i}=je(),o=r.get();function s(){var a;(a=i==null?void 0:i.get())==null||a.abort()}return g.jsxs(Rie,{"data-testid":"response-container",isCollapsed:t.isCollapsed,children:[g.jsx(qj,{panel:t,response:e}),o&&g.jsx(Tie,{onClose:s}),!o&&n.get()&&g.jsx(jie,{}),!o&&!e.get()&&!t.isCollapsed&&!n.get()&&g.jsx($ie,{}),!o&&e.get()&&!t.isCollapsed&&!n.get()&&g.jsx(Pie,{})]})}const Rie=T.div`
2594
- padding: 0 var(--spacing-lg) var(--spacing-sm);
2595
- height: 100%;
2596
-
2597
- @media (max-width: ${Kn}px) {
2598
- padding: var(--spacing-xs) var(--spacing-sm);
2599
- background-color: var(--bg-color);
2600
- }
2601
- `,Die=T.h5`
2599
+ color: var(--text-color-secondary);
2600
+ text-align: center;
2601
+ max-width: 35%;
2602
2602
  margin: 0;
2603
- font-size: var(--font-size-base);
2604
- color: var(--text-color-primary);
2605
- font-weight: var(--font-weight-semibold);
2606
- `;function Qie(t){j.useEffect(()=>{ml.save(t.get())},[t])}const Bie=()=>{const[t,e]=j.useState(!0);return g.jsxs(g.Fragment,{children:[g.jsx(Mie,{isCollapsed:t,children:g.jsx(Yj,{})}),g.jsx(_ie,{isCollapsed:t,children:g.jsx(n5,{panel:{isCollapsed:t,expand:()=>{e(!t)},collapse:()=>{e(!t)},toggle:()=>{}}})})]})},_ie=T.div`
2607
- height: ${({isCollapsed:t})=>t?"40px":"100%"};
2608
- z-index: 102;
2609
- `,Mie=T.div`
2610
- height: ${({isCollapsed:t})=>t?"calc(100vh - 40px)":"321px"};
2611
- z-index: 100;
2612
- `;function rv(){const{response:t,environments:e}=je(),n=t.get(),r=[50,50],i=j.useRef(null),[o,s]=j.useState(!0),a=lJ(),{isMobile:l}=Yr();Qie(e),j.useEffect(()=>{var u,f;n&&o&&(((u=i.current)==null?void 0:u.getLayout()[1])||0)===25&&((f=i.current)==null||f.setLayout(r))},[n,o]);const c=()=>{var u;(u=i.current)==null||u.setLayout(r)};return g.jsx(Nie,{autoSaveId:"mainPanelResponsible",direction:"vertical",ref:i,children:l?g.jsx(Bie,{}):g.jsxs(g.Fragment,{children:[g.jsx(Lm,{defaultSize:75,children:g.jsx(Yj,{})}),!l&&g.jsx(sJ,{onClick:()=>s(!1),onDoubleClick:c}),a.panel.isCollapsed&&g.jsx(Fie,{children:g.jsx(qj,{panel:a.panel,response:t})}),g.jsx(Lm,{...a.panelProps,minSize:cJ,defaultSize:25,children:g.jsx(n5,{panel:a.panel})})]})})}const Nie=T(N$)`
2603
+ `,_ie=T.div`
2613
2604
  display: flex;
2614
- flex-direction: column;
2615
- flex-grow: 1;
2616
- width: 55%;
2617
- `,Fie=T.div`
2618
- padding: 0 var(--spacing-lg) var(--spacing-sm);
2619
-
2620
- @media (max-width: ${Kn}px) {
2621
- padding: var(--spacing-xs) var(--spacing-sm);
2622
- }
2623
- `;class Zie{static save(e){localStorage.setItem(Lh,JSON.stringify(e))}static get(){try{const e=localStorage.getItem(Lh);if(e)return JSON.parse(e)}catch(e){console.error("Error parsing serialized data:",e)}return[]}static clear(){localStorage.removeItem(Lh)}}class Wie{static save(e){localStorage.setItem(zh,JSON.stringify(e))}static get(){try{const e=localStorage.getItem(zh);if(e)return JSON.parse(e)}catch(e){console.error("Error parsing serialized data:",e)}return[]}static clear(){localStorage.removeItem(zh)}}function r5(t,e){_.useMount(()=>{const n=t.get();e.set(n)}),j.useEffect(()=>{t.save(e.get())},[t,e])}function Vie(t){r5(Wie,t)}function zie(t){r5(Zie,t)}const{Tab:Lie,TabContent:Xie,TabList:Gie,Tabs:Yie}=_.markdoc.components;function qie(){const{history:t,collections:e,apiId:n,disableCollectionsTab:r}=je(),{sendEvent:i}=ct(),[o,s]=j.useState(!0),{tabsParams:a}=tv(n.get(),!1,r.get());Vie(t),zie(e);const l=j.useCallback(u=>{i("side_panel_tab_changed",{name:u})},[i]),c=()=>{s(!o),i("side_panel_toggled",{expanded:!o})};return g.jsxs(Uie,{$expanded:o,children:[o&&g.jsx(Hie,{children:a.map(({key:u,...f})=>j.createElement(Kie,{...f,key:u,onClick:()=>l(f.label)}))}),g.jsx(Jie,{variant:"text",onClick:c,children:o?g.jsx(_.SidePanelOpenIcon,{}):g.jsx(_.SidePanelCloseIcon,{})})]})}const Uie=T.div`
2605
+ justify-content: flex-end;
2606
+ gap: var(--spacing-xs);
2607
+ `;function Mie(){const[t,e]=j.useState(""),{collections:n}=je(),r=p0(),i=p0(),{sendEvent:o}=ct(),[s,a]=j.useState(null),l=j.useMemo(()=>n.get().some(O=>O.value.state===gt.Draft),[n]),c=j.useMemo(()=>n.filter(O=>t?O.get().value.name.toLowerCase().includes(t.toLowerCase()):!0),[n,t]),u=j.useMemo(()=>c.sort(O=>{const{value:m,type:x}=O.get();return x===sn.Folder?m.state===gt.Draft?-1:0:1}),[c]),f=()=>{if(l)return;e("");const O=ya(n.get(),"New Collection");n.set(m=>[...m,{type:sn.Folder,value:{id:crypto.randomUUID(),state:gt.Draft,name:O,items:[]}}]),o("collections_folder_creation_started",{})},d=O=>{e(O)},h=async()=>{r.handleClose(),i.handleClose();try{const O=await Pie(),m=Yj.load(O),{data:x,error:v}=Eie(m);x&&(x.value.name=ya(n.get(),x.value.name)),v===tO.RequestItemsParseError?(a(x),i.handleOpen(),o("collections_file_import_warning",{})):v===tO.NoRequestItemsError?(r.handleOpen(),o("collections_file_import_error",{})):x&&(n.set(y=>[...y,x]),o("collections_file_imported",{}))}catch(O){r.handleOpen(),o("collections_file_import_error",{error:O.message})}},p=()=>{s&&(n.set(O=>[...O,s]),i.handleClose(),a(null),o("collections_accept_valid_items_clicked",{}))};return g.jsxs(zx,{children:[g.jsx(kc,{children:g.jsx(Ac,{value:t,onSearch:d})}),g.jsxs($J,{children:[g.jsx(_.Button,{variant:"ghost",icon:g.jsx(_.AddIcon,{}),onClick:f,children:"Create new collection"}),g.jsx(_.Button,{variant:"ghost",icon:g.jsx(_.DownloadIcon,{}),onClick:h,children:"Import Arazzo Files"})]}),g.jsxs(uh,{children:[!u.length&&!t?g.jsx(Sre,{onImport:h,onAddFolder:f}):null,!u.length&&t?g.jsx(Are,{}):null,u.map((O,m)=>O.get()&&g.jsx(e5,{item:O,itemList:n,level:0,expanded:m==0},O.get().value.id))]}),g.jsx(_l,{title:"Import Arazzo Files",content:g.jsx(fk,{icon:g.jsx(_.CloseFilledIcon,{color:"--color-raspberry-6",size:"21px"}),title:"File error",description:"Something went wrong!",submitButtonLabel:"Ok",cancelButtonLabel:"Choose another file",onClose:h,onSubmit:r.handleClose}),isOpen:r.isOpen,onClose:r.handleClose,mountId:"import-container"}),g.jsx(_l,{title:"Import Arazzo Files",content:g.jsx(fk,{icon:g.jsx(_.WarningFilledIcon,{color:"--color-carrot-6",size:"21px"}),title:"Warning",description:"Some items in your file are not valid. Only valid items will be uploaded.",submitButtonLabel:"Import valid items",cancelButtonLabel:"Cancel",onClose:i.handleClose,onSubmit:p}),isOpen:i.isOpen,onClose:i.handleClose,mountId:"import-container"})]})}const rv=(t,e=!1,n=!1)=>{const r=[];return e&&r.push({key:"Request",label:"Request",children:g.jsx(Yx,{})}),r.push({key:"History",label:"History",children:g.jsx(fee,{}),flexDirection:"column"}),n||r.push({key:"Collections",label:"Collections",children:g.jsx(Mie,{}),flexDirection:"column"}),r.push({key:"Environments",label:"Environments",children:g.jsx(Mee,{}),flexDirection:"column"}),t||r.push({key:"Apps",label:"Apps",children:g.jsx(ete,{}),flexDirection:"column"}),{tabsParams:r}};class Nie{static save(e){localStorage.setItem(Lh,JSON.stringify(e))}static get(){try{const e=localStorage.getItem(Lh);if(e)return JSON.parse(e)}catch(e){console.error("Error parsing serialized data:",e)}return[]}static clear(){localStorage.removeItem(Lh)}}class Fie{static save(e){localStorage.setItem(zh,JSON.stringify(e))}static get(){try{const e=localStorage.getItem(zh);if(e)return JSON.parse(e)}catch(e){console.error("Error parsing serialized data:",e)}return[]}static clear(){localStorage.removeItem(zh)}}function n5(t,e){_.useMount(()=>{const n=t.get();e.set(n)}),j.useEffect(()=>{t.save(e.get())},[t,e])}function Zie(t){n5(Fie,t)}function Wie(t){n5(Nie,t)}const{Tab:Vie,TabContent:zie,TabList:Lie,Tabs:Xie}=_.markdoc.components;function Gie(){const{history:t,collections:e,apiId:n,disableCollectionsTab:r}=je(),{sendEvent:i}=ct(),[o,s]=j.useState(!0),{tabsParams:a}=rv(n.get(),!1,r.get());Zie(t),Wie(e);const l=j.useCallback(u=>{i("side_panel_tab_changed",{name:u})},[i]),c=()=>{s(!o),i("side_panel_toggled",{expanded:!o})};return g.jsxs(Yie,{$expanded:o,children:[o&&g.jsx(qie,{children:a.map(({key:u,...f})=>j.createElement(Hie,{...f,key:u,onClick:()=>l(f.label)}))}),g.jsx(Uie,{variant:"text",onClick:c,children:o?g.jsx(_.SidePanelOpenIcon,{}):g.jsx(_.SidePanelCloseIcon,{})})]})}const Yie=T.div`
2624
2608
  display: flex;
2625
2609
  flex-direction: row;
2626
2610
  border-left: 1px solid var(--border-color-secondary);
@@ -2632,7 +2616,7 @@ Please report this to https://github.com/markedjs/marked.`,e.silent)return"<p>An
2632
2616
  svg {
2633
2617
  fill: var(--text-color-primary);
2634
2618
  }
2635
- `,Hie=T(Yie)`
2619
+ `,qie=T(Xie)`
2636
2620
  flex-grow: 1;
2637
2621
  margin-right: -48px;
2638
2622
  margin-top: 0;
@@ -2641,7 +2625,7 @@ Please report this to https://github.com/markedjs/marked.`,e.silent)return"<p>An
2641
2625
  display: flex;
2642
2626
  flex-direction: column;
2643
2627
 
2644
- ${Gie} {
2628
+ ${Lie} {
2645
2629
  margin: 0;
2646
2630
  height: 49px;
2647
2631
  font-size: var(--font-size-lg);
@@ -2656,12 +2640,12 @@ Please report this to https://github.com/markedjs/marked.`,e.silent)return"<p>An
2656
2640
  --md-tabs-hover-tab-border-width: 0;
2657
2641
  }
2658
2642
 
2659
- ${Xie} {
2643
+ ${zie} {
2660
2644
  overflow: auto;
2661
2645
  height: 100%;
2662
2646
  }
2663
2647
 
2664
- ${Lie} {
2648
+ ${Vie} {
2665
2649
  font-size: var(--font-size-lg);
2666
2650
  font-weight: var(--font-weight-regular);
2667
2651
  line-height: var(--line-height-lg);
@@ -2683,55 +2667,71 @@ Please report this to https://github.com/markedjs/marked.`,e.silent)return"<p>An
2683
2667
  ol[class^='Tabs__TabList'] {
2684
2668
  padding: 0 0 0 var(--spacing-base);
2685
2669
  }
2686
- `,Jie=T(_.Button)`
2670
+ `,Uie=T(_.Button)`
2687
2671
  align-self: flex-start;
2688
2672
  margin: 12px;
2689
2673
  padding: 4px;
2690
- `,Kie=T.li``,eoe=({error:t})=>g.jsxs(toe,{children:[g.jsx(noe,{children:"An Error Has Occurred"}),g.jsx(roe,{children:t==null?void 0:t.message}),g.jsx(ioe,{children:t==null?void 0:t.stack})]}),toe=T.div`
2674
+ `,Hie=T.li``,Jie=({error:t})=>g.jsxs(Kie,{children:[g.jsx(eoe,{children:"An Error Has Occurred"}),g.jsx(toe,{children:t==null?void 0:t.message}),g.jsx(noe,{children:t==null?void 0:t.stack})]}),Kie=T.div`
2691
2675
  padding: var(--spacing-xs) var(--spacing-xl);
2692
- `,noe=T.h2`
2676
+ `,eoe=T.h2`
2693
2677
  color: var(--color-error-base);
2694
- `,roe=T.h4`
2678
+ `,toe=T.h4`
2695
2679
  color: var(--text-color-secondary);
2696
- `,ioe=T.pre`
2680
+ `,noe=T.pre`
2697
2681
  white-space: break-spaces;
2698
- `;function ooe({className:t}){return g.jsx(soe,{className:t,children:g.jsxs(aoe,{children:[g.jsx(_.CloseFilledIcon,{size:"24px",color:"--color-error-base"}),g.jsxs(loe,{children:[g.jsx(coe,{children:"Oops! Something went wrong."}),g.jsx(uoe,{children:"We're sorry. There's been an unexpected error. Our team has been notified and will investigate the issue."})]})]})})}const soe=T.div`
2682
+ `;function roe({className:t}){return g.jsx(ioe,{className:t,children:g.jsxs(ooe,{children:[g.jsx(_.CloseFilledIcon,{size:"24px",color:"--color-error-base"}),g.jsxs(soe,{children:[g.jsx(aoe,{children:"Oops! Something went wrong."}),g.jsx(loe,{children:"We're sorry. There's been an unexpected error. Our team has been notified and will investigate the issue."})]})]})})}const ioe=T.div`
2699
2683
  display: flex;
2700
2684
  justify-content: center;
2701
2685
  align-items: center;
2702
2686
  width: 80vw;
2703
2687
  height: 100vh;
2704
2688
  background-color: var(--bg-color);
2705
- `,aoe=T.div`
2689
+ `,ooe=T.div`
2706
2690
  display: flex;
2707
2691
  flex-direction: column;
2708
2692
  align-items: center;
2709
2693
  gap: var(--spacing-base);
2710
- `,loe=T.div`
2694
+ `,soe=T.div`
2711
2695
  display: flex;
2712
2696
  flex-direction: column;
2713
2697
  align-items: center;
2714
2698
  gap: var(--spacing-xxs);
2715
2699
  width: 488px;
2716
- `,coe=T.div`
2700
+ `,aoe=T.div`
2717
2701
  color: var(--text-color-primary);
2718
2702
  font-size: var(--font-size-xl);
2719
2703
  font-style: normal;
2720
2704
  font-weight: var(--font-weight-semibold);
2721
2705
  line-height: var(--line-height-xl);
2722
- `,uoe=T.div`
2706
+ `,loe=T.div`
2723
2707
  color: var(--text-color-primary);
2724
2708
  font-size: var(--font-size-lg);
2725
2709
  font-style: normal;
2726
2710
  font-weight: var(--font-weight-regular);
2727
2711
  line-height: var(--line-height-lg);
2728
2712
  text-align: center;
2729
- `;class i5 extends X.Component{constructor(e){super(e),this.state={error:void 0},this.onUnhandledError=this.onUnhandledError.bind(this),this.onUnhandledPromiseRejection=this.onUnhandledPromiseRejection.bind(this)}onUnhandledError({error:e}){var n,r;(r=(n=this.props).onError)==null||r.call(n,e)}onUnhandledPromiseRejection(e){var n,r;(r=(n=this.props).onError)==null||r.call(n,e.reason)}componentDidMount(){window.addEventListener("error",this.onUnhandledError),window.addEventListener("unhandledrejection",this.onUnhandledPromiseRejection)}componentWillUnmount(){window.removeEventListener("error",this.onUnhandledError),window.removeEventListener("unhandledrejection",this.onUnhandledPromiseRejection)}componentDidCatch(e,n){var i,o;const r={error:{message:e.message,stack:n.componentStack??void 0}};this.setState(r),(o=(i=this.props).onError)==null||o.call(i,r.error)}render(){return this.state.error?process.env.NODE_ENV==="production"?g.jsx(ooe,{}):g.jsx(eoe,{error:this.state.error}):this.props.children}}const foe=()=>{const{apiId:t}=je(),{isMobile:e,activeTab:n}=Yr(),{tabsParams:r}=tv(t.get(),e);return r.filter(({key:i})=>i===n).map(({children:i,key:o,flexDirection:s="row"})=>g.jsx(doe,{isActive:o===n,flexDirection:s,children:i},o))},doe=T.div`
2713
+ `;class r5 extends X.Component{constructor(e){super(e),this.state={error:void 0},this.onUnhandledError=this.onUnhandledError.bind(this),this.onUnhandledPromiseRejection=this.onUnhandledPromiseRejection.bind(this)}onUnhandledError({error:e}){var n,r;(r=(n=this.props).onError)==null||r.call(n,e)}onUnhandledPromiseRejection(e){var n,r;(r=(n=this.props).onError)==null||r.call(n,e.reason)}componentDidMount(){window.addEventListener("error",this.onUnhandledError),window.addEventListener("unhandledrejection",this.onUnhandledPromiseRejection)}componentWillUnmount(){window.removeEventListener("error",this.onUnhandledError),window.removeEventListener("unhandledrejection",this.onUnhandledPromiseRejection)}componentDidCatch(e,n){var i,o;const r={error:{message:e.message,stack:n.componentStack??void 0}};this.setState(r),(o=(i=this.props).onError)==null||o.call(i,r.error)}render(){return this.state.error?process.env.NODE_ENV==="production"?g.jsx(roe,{}):g.jsx(Jie,{error:this.state.error}):this.props.children}}const coe=()=>{const{apiId:t}=je(),{isMobile:e,activeTab:n}=Yr(),{tabsParams:r}=rv(t.get(),e);return r.filter(({key:i})=>i===n).map(({children:i,key:o,flexDirection:s="row"})=>g.jsx(uoe,{isActive:o===n,flexDirection:s,children:i},o))},uoe=T.div`
2730
2714
  flex: 1;
2731
2715
  flex-direction: ${({flexDirection:t})=>t};
2732
2716
  padding: 0;
2733
2717
  display: ${({isActive:t})=>t?"flex":"none"};
2734
- `,hoe=({className:t})=>{const{operationUrl:e}=je().get(),{sendEvent:n}=ct(),{isMobile:r,closeButton:i}=Yr();return g.jsxs(g.Fragment,{children:[g.jsx(_.GlobalStyle,{}),!r&&i,g.jsx(goe,{className:t,isMobile:r,children:g.jsx(i5,{onError:o=>n("unhandled_error",{...o,operationUrl:e}),children:r?g.jsx(foe,{}):g.jsxs(g.Fragment,{children:[g.jsx(rv,{}),g.jsx(qie,{})]})})})]})};function o5({className:t}){return g.jsx(hoe,{className:t})}function poe({className:t}){return g.jsx(Gj,{children:g.jsx(o5,{className:t})})}const goe=T.div`
2718
+ `,i5=({children:t,closeButton:e=null})=>{const{apiId:n}=je(),{sendEvent:r}=ct(),[i,o]=j.useState(document.documentElement.clientWidth<Kn),{tabsParams:s}=rv(n.get(),i),[a,l]=j.useState("Request"),c=j.useCallback(f=>{r("mobile_tab_changed",{name:f})},[r]),u=s.map(f=>({label:f.label,value:f.key,active:!1}));return j.useEffect(()=>{o(document.documentElement.clientWidth<Kn);const f=()=>{o(document.documentElement.clientWidth<Kn)};return window.addEventListener("resize",f),()=>window.removeEventListener("resize",f)},[]),g.jsx(Z$.Provider,{value:{isMobile:i,closeButton:e,MobileHeader:({children:f,hide:d=!1})=>d||!i?null:g.jsx(doe,{children:i?g.jsxs(g.Fragment,{children:[i&&g.jsx(ko,{dataTestId:"mobile-select-panel",options:u,value:u.find(h=>h.value===a),onChange:({value:h})=>{l(h),c(h)}}),f,g.jsx(foe,{children:e})]}):f}),activeTab:a,setActiveTab:l},children:t})},foe=T.div`
2719
+ flex: 1;
2720
+ display: flex;
2721
+ justify-content: flex-end;
2722
+
2723
+ div {
2724
+ top: 0;
2725
+ left: 0;
2726
+ }
2727
+ `,doe=T(kc)`
2728
+ padding: var(--spacing-xs);
2729
+ max-height: 40px;
2730
+ flex: 1;
2731
+ display: flex;
2732
+ gap: 12px;
2733
+ align-items: center;
2734
+ `,hoe=({className:t})=>{const{operationUrl:e}=je().get(),{sendEvent:n}=ct(),{isMobile:r,closeButton:i}=Yr();return g.jsxs(g.Fragment,{children:[g.jsx(_.GlobalStyle,{}),!r&&i,g.jsx(goe,{className:t,isMobile:r,children:g.jsx(r5,{onError:o=>n("unhandled_error",{...o,operationUrl:e}),children:r?g.jsx(coe,{}):g.jsxs(g.Fragment,{children:[g.jsx(Yx,{}),g.jsx(Gie,{})]})})})]})};function o5({className:t}){return g.jsx(hoe,{className:t})}function poe({className:t}){return g.jsx(i5,{children:g.jsx(o5,{className:t})})}const goe=T.div`
2735
2735
  display: flex;
2736
2736
  height: 100vh;
2737
2737
  background-color: var(--bg-color);
@@ -2753,15 +2753,15 @@ Please report this to https://github.com/markedjs/marked.`,e.silent)return"<p>An
2753
2753
  `,xoe=j.forwardRef((t,e)=>{const{isMobile:n}=Yr();return n?g.jsx(s5,{ref:e,...t}):g.jsx(Ooe,{ref:e,...t})}),voe=t=>{const e=j.useRef(null);return j.useEffect(()=>{e.current&&e.current.focus()},[]),g.jsx(xoe,{role:"button",tabIndex:0,ref:e,...t,children:g.jsx(a5,{})})},a5=T(_.CloseIcon)`
2754
2754
  width: 14px;
2755
2755
  height: 14px;
2756
- `;function yoe(t){return Wx(t),g.jsx(j.StrictMode,{children:g.jsx(poe,{})})}function boe({onClose:t,onLoad:e,onRequestChange:n,...r}){const{sendEvent:i}=ct(),o=je(),s=Wx(r),a=j.useCallback(()=>{var c;if(n){const u=s.isLinked.get(),f=moe(s);n(u?f:{requestValues:{}})}i("replay_closed",{operationName:(c=r.value)==null?void 0:c.name}),t(),o.set(Cc())},[t,n,s,r.value,i,o]);j.useEffect(()=>{var c;e==null||e(),i("replay_opened",{operationName:(c=r.value)==null?void 0:c.name})},[]);const l=c=>{c.key==="Enter"&&(c.preventDefault(),a())};return g.jsx(j.StrictMode,{children:g.jsx(Gj,{closeButton:g.jsx(voe,{onClick:a,onKeyDown:l,children:g.jsx(a5,{})}),children:g.jsx(DP,{onClick:a,children:g.jsx(Soe,{})})})})}const Soe=T(o5)`
2756
+ `;function yoe(t){return Wx(t),g.jsx(j.StrictMode,{children:g.jsx(poe,{})})}function boe({onClose:t,onLoad:e,onRequestChange:n,...r}){const{sendEvent:i}=ct(),o=je(),s=Wx(r),a=j.useCallback(()=>{var c;if(n){const u=s.isLinked.get(),f=moe(s);n(u?f:{requestValues:{}})}i("replay_closed",{operationName:(c=r.value)==null?void 0:c.name}),t(),o.set(Cc())},[t,n,s,r.value,i,o]);j.useEffect(()=>{var c;e==null||e(),i("replay_opened",{operationName:(c=r.value)==null?void 0:c.name})},[]);const l=c=>{c.key==="Enter"&&(c.preventDefault(),a())};return g.jsx(j.StrictMode,{children:g.jsx(i5,{closeButton:g.jsx(voe,{onClick:a,onKeyDown:l,children:g.jsx(a5,{})}),children:g.jsx(DP,{onClick:a,children:g.jsx(Soe,{})})})})}const Soe=T(o5)`
2757
2757
  width: 80vw;
2758
2758
 
2759
2759
  @media (max-width: ${Kn}px) {
2760
2760
  width: 100vw;
2761
2761
  }
2762
- `;function woe(t){const{sendEvent:e}=ct(),n=j.useMemo(()=>lO(Cc()),[]);return g.jsx(BH,{value:n,children:g.jsx(i5,{onError:r=>e("unhandled_error",{...r,isEmbedded:!0}),children:g.jsx(Coe,{...t})})})}function Coe(t){return Wx({...t,disableDraft:!0}),g.jsx(j.StrictMode,{children:g.jsx(koe,{children:g.jsx(rv,{})})})}const koe=T.div`
2762
+ `;function woe(t){const{sendEvent:e}=ct(),n=j.useMemo(()=>lO(Cc()),[]);return g.jsx(BH,{value:n,children:g.jsx(r5,{onError:r=>e("unhandled_error",{...r,isEmbedded:!0}),children:g.jsx(Coe,{...t})})})}function Coe(t){return Wx({...t,disableDraft:!0}),g.jsx(j.StrictMode,{children:g.jsx(koe,{children:g.jsx(Yx,{})})})}const koe=T.div`
2763
2763
  display: flex;
2764
2764
  max-height: 80vh;
2765
2765
  height: 800px;
2766
2766
  width: 100%;
2767
- `;async function Aoe({name:t,extensions:e,multiple:n=!1}){if(window==null?void 0:window.__TAURI__){const i=await Zne({multiple:n,filters:[{name:t,extensions:e}]});return Array.isArray(i)?i[0]:i}else return Poe(e,n)}function Poe(t,e){return new Promise(n=>{const r=document.createElement("input");r.type="file",r.style.display="none",r.multiple=e,r.accept=t.join(","),document.body.appendChild(r),r.addEventListener("change",i=>{var o;n(((o=i.target.files)==null?void 0:o[0].name)||null),document.body.removeChild(r)}),r.click()})}const Eoe={openFile:Aoe};exports.EmbeddedReplay=woe;exports.Modal=_l;exports.Replay=yoe;exports.ReplayOverlay=boe;exports.utils=Eoe;
2767
+ `;async function Aoe({name:t,extensions:e,multiple:n=!1}){if(window==null?void 0:window.__TAURI__){const i=await cie({multiple:n,filters:[{name:t,extensions:e}]});return Array.isArray(i)?i[0]:i}else return Poe(e,n)}function Poe(t,e){return new Promise(n=>{const r=document.createElement("input");r.type="file",r.style.display="none",r.multiple=e,r.accept=t.join(","),document.body.appendChild(r),r.addEventListener("change",i=>{var o;n(((o=i.target.files)==null?void 0:o[0].name)||null),document.body.removeChild(r)}),r.click()})}const Eoe={openFile:Aoe};exports.EmbeddedReplay=woe;exports.Modal=_l;exports.Replay=yoe;exports.ReplayOverlay=boe;exports.utils=Eoe;