@redocly/replay 0.21.0-next.1 → 0.21.0-next.2
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.
- package/dist/{replay-index-B417Bbvg.js → replay-index-BGr3xtXC.js} +454 -347
- package/dist/{replay-index-CaNAeFAS.js → replay-index-BLnEGhe2.js} +1 -1
- package/dist/{replay-index-CAxRCs0c.js → replay-index-BaSDK5wQ.js} +1 -1
- package/dist/{replay-index-C8NW7ybv.js → replay-index-C7rgR6tA.js} +1 -1
- package/dist/{replay-index-rUhsrwWF.js → replay-index-CTDJpsxA.js} +1 -1
- package/dist/{replay-index-61oQVMRV.js → replay-index-DtcuDB-d.js} +1 -1
- package/dist/{replay-index-BCr11WJ9.js → replay-index-KAC-k_b6.js} +1 -1
- package/dist/{replay-index-DsdmelDJ.js → replay-index-nUh5aT0a.js} +53 -53
- package/dist/{replay-tauri-path-7Hglu5Ug.js → replay-tauri-path-BaXWASVX.js} +2 -2
- package/dist/{replay-tauri-path-DccEjZ9I.js → replay-tauri-path-D8sHTXGr.js} +1 -1
- package/dist/replay.cjs +1 -1
- package/dist/replay.js +1 -1
- package/package.json +2 -2
|
@@ -167,7 +167,7 @@ ${o.message}`})}}}}),SX=({filePath:t})=>({Info:{leave(e,{report:r,location:n,con
|
|
|
167
167
|
${o.message}`,location:n.child("description")})}}}}),wX=t=>({Info:{leave(e){if(typeof t!="object"||Array.isArray(t)||t===null)throw new Error('"info-override" decorator should be called with an object');const{severity:r,...n}=t;Object.assign(e,n)}}});function PX(t){return Array.isArray(t)&&t.length===0}const kge="x-internal",CX=({internalFlagProperty:t=kge})=>{function e(n,i,o){const{parent:s,key:a}=i;let l=!1;if(Array.isArray(n))for(let c=0;c<n.length;c++){if(qr(n[c])&&i.resolve(n[c]).node?.[t]){if(xt(s.discriminator?.mapping))for(const d in s.discriminator.mapping)o?.[d]===n[c].$ref&&delete s.discriminator.mapping[d];n.splice(c,1),l=!0,c--}n[c]?.[t]&&(n.splice(c,1),l=!0,c--)}else if(xt(n))for(const c of Object.keys(n)){if(qr(n[c])){const u=i.resolve(n[c]);xt(u.node)&&u.node?.[t]&&(delete n[c],l=!0)}xt(n[c])&&n[c]?.[t]&&(delete n[c],l=!0)}l&&(ch(n)||PX(n))&&delete s[a]}let r={};return{DiscriminatorMapping:{enter:n=>{r=JSON.parse(JSON.stringify(n))}},any:{enter:(n,i)=>{e(n,i,r)}}}};function $X(t,e,r){const{parent:n,key:i}=e;let o=!1;if(Array.isArray(t))for(let s=0;s<t.length;s++){if(qr(t[s])){const a=e.resolve(t[s]);r(a.node)&&(t.splice(s,1),o=!0,s--)}r(t[s])&&(t.splice(s,1),o=!0,s--)}else if(xt(t))for(const s of Object.keys(t)){if(t=t,qr(t[s])){const a=e.resolve(t[s]);r(a.node)&&(delete t[s],o=!0)}r(t[s])&&(delete t[s],o=!0)}o&&(ch(t)||PX(t))&&delete n[i]}function kX(t,e,r){return t===void 0||e===void 0?!1:!Array.isArray(e)&&!Array.isArray(t)?t===e:(e=ej(e),t=ej(t),r==="any"?e.some(n=>t.includes(n)):r==="all"?e.every(n=>t.includes(n)):!1)}function ej(t){return Array.isArray(t)?t:[t]}const Tge="any",TX=({property:t,value:e,matchStrategy:r})=>{const n=r||Tge,i=o=>o?.[t]&&!kX(o?.[t],e,n);return{any:{enter:(o,s)=>{$X(o,s,i)}}}},Ege="any",EX=({property:t,value:e,matchStrategy:r})=>{const n=r||Ege,i=o=>kX(o?.[t],e,n);return{any:{enter:(o,s)=>{$X(o,s,i)}}}},Age=({operationIds:t})=>({Operation:{enter(e,r){const n=e.operationId;if(!n)return;const i=t[n];if(i){if(i.responses&&e.responses)for(const o of Object.keys(i.responses)){const s=tj(e.responses[o],r.resolve);s&&(s.content=s.content?s.content:{},Object.keys(i.responses[o]).forEach(a=>{const l=i.responses[o][a];s.content[a]={...s.content[a],examples:K_(Oh(l,r.config?.configPath))}}),e.responses[o]=s)}if(i.request&&e.requestBody){const o=tj(e.requestBody,r.resolve);if(!o)return;o.content=o.content?o.content:{},Object.keys(i.request).forEach(s=>{const a=i.request[s];o.content[s]={...o.content[s],examples:K_(Oh(a,r.config?.configPath))}}),e.requestBody=o}}}}});function tj(t,e){if(!qr(t))return t;const r=e(t);return r.error?void 0:JSON.parse(JSON.stringify(r.node))}const AX=()=>{const t=new Map;function e(n,i,o){t.set(n.absolutePointer,{usedIn:t.get(n.absolutePointer)?.usedIn??[],componentType:i,name:o})}function r(n,i){const o=i.length;for(const[s,{usedIn:a,name:l,componentType:c}]of t)if(!a.some(d=>!i.some(p=>d.absolutePointer.startsWith(p)&&(d.absolutePointer.length===p.length||d.absolutePointer[p.length]==="/")))&&c&&n.components){i.push(s);const d=n.components[c];delete d[l],t.delete(s),ch(d)&&delete n.components[c]}return i.length>o?r(n,i):i.length}return{ref:{leave(n,{location:i,type:o,resolve:s,key:a}){if(["Schema","Header","Parameter","Response","Example","RequestBody"].includes(o.name)){const l=s(n);if(!l.location)return;const[c,u]=l.location.absolutePointer.split("#",2);if(!u)return;const d=u.split("/").slice(0,4).join("/"),p=`${c}#${d}`,h=t.get(p);h?h.usedIn.push(i):t.set(p,{usedIn:[i],name:a.toString()})}}},Root:{leave(n,i){const o=i.getVisitorData();o.removedCount=r(n,[]),ch(n.components)&&delete n.components}},NamedSchemas:{Schema(n,{location:i,key:o}){n.allOf||e(i,"schemas",o.toString())}},NamedParameters:{Parameter(n,{location:i,key:o}){e(i,"parameters",o.toString())}},NamedResponses:{Response(n,{location:i,key:o}){e(i,"responses",o.toString())}},NamedExamples:{Example(n,{location:i,key:o}){e(i,"examples",o.toString())}},NamedRequestBodies:{RequestBody(n,{location:i,key:o}){e(i,"requestBodies",o.toString())}},NamedHeaders:{Header(n,{location:i,key:o}){e(i,"headers",o.toString())}}}},Ige={"operation-description-override":bX,"tag-description-override":xX,"info-description-override":SX,"info-override":wX,"remove-x-internal":CX,"remove-unused-components":AX,"filter-in":TX,"filter-out":EX,"media-type-examples-override":Age},IX=()=>{const t=new Map;function e(n,i,o){t.set(n.absolutePointer,{usedIn:t.get(n.absolutePointer)?.usedIn??[],componentType:i,name:o})}function r(n,i){const o=i.length;for(const[s,{usedIn:a,name:l,componentType:c}]of t)!a.some(d=>!i.some(p=>d.absolutePointer.startsWith(p)&&(d.absolutePointer.length===p.length||d.absolutePointer[p.length]==="/")))&&c&&(i.push(s),delete n[c][l],t.delete(s),ch(n[c])&&delete n[c]);return i.length>o?r(n,i):i.length}return{ref:{leave(n,{location:i,type:o,resolve:s,key:a}){if(["Schema","Parameter","Response","SecurityScheme"].includes(o.name)){const l=s(n);if(!l.location)return;const[c,u]=l.location.absolutePointer.split("#",2);if(!u)return;const d=u.split("/").slice(0,3).join("/"),p=`${c}#${d}`,h=t.get(p);h?h.usedIn.push(i):t.set(p,{usedIn:[i],name:a.toString()})}}},Root:{leave(n,i){const o=i.getVisitorData();o.removedCount=r(n,[])}},NamedSchemas:{Schema(n,{location:i,key:o}){n.allOf||e(i,"definitions",o.toString())}},NamedParameters:{Parameter(n,{location:i,key:o}){e(i,"parameters",o.toString())}},NamedResponses:{Response(n,{location:i,key:o}){e(i,"responses",o.toString())}},NamedSecuritySchemes:{SecurityScheme(n,{location:i,key:o}){e(i,"securityDefinitions",o.toString())}}}},Rge={"operation-description-override":bX,"tag-description-override":xX,"info-description-override":SX,"info-override":wX,"remove-x-internal":CX,"remove-unused-components":IX,"filter-in":TX,"filter-out":EX},_ge={},jge={},Qge={},Dge={},Nge={},Mge={recommended:mpe,"recommended-strict":Ope,minimal:vpe,all:ype,spec:bpe},rj={id:"",rules:{oas3:Mhe,oas2:Whe,async2:Zhe,async3:Jhe,arazzo1:yge,overlay1:bge,openrpc1:Cge},preprocessors:{oas3:qhe,oas2:Uhe,async2:Yhe,async3:Khe,arazzo1:vge,overlay1:xge,openrpc1:$ge},decorators:{oas3:Ige,oas2:Rge,async2:_ge,async3:jge,arazzo1:Qge,overlay1:Dge,openrpc1:Nge},configs:Mge};function qge(t){return!ji(t)}function zge(){return new Promise(t=>{setTimeout(t)})}function Np(t,e){return t+"::"+e}class Ad{constructor(e,r,n){this.absoluteRef=e,this.body=r,this.mimeType=n}getAst(e){return this._ast===void 0&&(this._ast=e(this.body,{filename:this.absoluteRef})??void 0,this._ast&&this._ast.kind===0&&this._ast.value===""&&this._ast.startPosition!==1&&(this._ast.startPosition=1,this._ast.endPosition=1)),this._ast}getLines(){return this._lines===void 0&&(this._lines=this.body.split(/\r\n|[\n\r]/g)),this._lines}}class FT extends Error{constructor(e){super(e.message),this.originalError=e,Object.setPrototypeOf(this,FT.prototype)}}function Lge(t,e){const r=new Ad(e,t);try{return{source:r,parsed:XT(t,{filename:e})}}catch(n){throw new df(n,r)}}class K0{constructor(e={http:{headers:[]}}){this.config=e,this.cache=new Map}getFiles(){return new Set(Array.from(this.cache.keys()))}resolveExternalRef(e,r){return en(r)?r:e&&en(e)?new URL(r,e).href:Dt.resolve(e?Dt.dirname(e):process.cwd(),r)}async loadExternalRef(e){try{if(en(e)){const{body:r,mimeType:n}=await Qz(e,this.config.http);return new Ad(e,r,n)}else{if((void 0)(e).isDirectory())throw new Error(`Expected a file but received a folder at ${e}.`);const r=await(void 0).readFile(e,"utf-8");return new Ad(e,r.replace(/\r\n/g,`
|
|
168
168
|
`))}}catch(r){throw r.message=r.message.replace(", lstat",""),new FT(r)}}parseDocument(e,r=!1){const n=e.absoluteRef.substr(e.absoluteRef.lastIndexOf("."));if(![".json",".json",".yml",".yaml"].includes(n)&&!e.mimeType?.match(/(json|yaml|openapi)/)&&!r)return{source:e,parsed:e.body};try{return{source:e,parsed:XT(e.body,{filename:e.absoluteRef})}}catch(i){throw new df(i,e)}}async resolveDocument(e,r,n=!1){const i=this.resolveExternalRef(e,r),o=this.cache.get(i);if(o)return o;const s=this.loadExternalRef(i).then(a=>this.parseDocument(a,n));return this.cache.set(i,s),s}}function nj(t,e){return{prev:t,node:e}}function Vge(t,e){for(;t;){if(t.node===e)return!0;t=t.prev}return!1}const Wf={name:"unknown",properties:{}},Xge={name:"scalar",properties:{}};async function yh(t){const{rootDocument:e,externalRefResolver:r,rootType:n}=t,i=new Map,o=new Set,s=[];l(e.parsed,e,"#/",n);let a;do a=await Promise.all(s);while(s.length!==a.length);return i;function l(c,u,d,p){const h=u.source.absoluteRef,m=new Map;g(c,p,h+d);function g(y,v,b){if(typeof y!="object"||y===null)return;const w=`${v.name}::${b}`;if(o.has(w))return;o.add(w);const[S,P]=Object.entries(y).find(([C])=>C==="$anchor")||[];if(P&&m.set(`#${P}`,y),Array.isArray(y)){const C=v.items;if(C===void 0&&v!==Wf&&v!==Pc)return;const E=typeof C=="function";for(let R=0;R<y.length;R++){let D=E?C(y[R],Lu(b,R)):C;if(D===void 0&&v!==Wf&&v!==Pc)continue;const _=D?.directResolveAs?{$ref:y[R]}:y[R];D=D?.directResolveAs||D,g(_,Cc(D)?D:Wf,Lu(b,R))}return}for(const C of Object.keys(y)){let E=y[C],R=Tl(v.properties,C);R===void 0&&(R=v.additionalProperties),typeof R=="function"&&(R=R(E,C)),R===void 0&&(R=Wf),v.extensionsPrefix&&C.startsWith(v.extensionsPrefix)&&R===Wf&&(R=Pc),!Cc(R)&&R?.directResolveAs&&(R=R.directResolveAs,E={$ref:E}),R&&R.name===void 0&&R.resolvable!==!1&&(R=Xge),!(!Cc(R)||typeof E!="object")&&g(E,R,Lu(b,Qp(C)))}if(qr(y)){const C=O(u,y,{prev:null,node:y}).then(E=>{E.resolved&&l(E.node,E.document,E.nodePointer,v)});s.push(C)}if(Dz(y)){const C=O(u,{$ref:y.externalValue},{prev:null,node:y}).then(E=>{E.resolved&&l(E.node,E.document,E.nodePointer,v)});s.push(C)}}async function O(y,v,b){if(Vge(b.prev,v))throw new Error("Self-referencing circular pointer");if(Zre(v.$ref)){await zge();const L={resolved:!0,isRemote:!1,node:m.get(v.$ref),document:y,nodePointer:v.$ref},W=Np(y.source.absoluteRef,v.$ref);return i.set(W,L),L}const{uri:w,pointer:S}=Bre(v.$ref),P=w!==null&&r.resolveExternalRef(y.source.absoluteRef,w)!==y.source.absoluteRef;let C;try{C=P?await r.resolveDocument(y.source.absoluteRef,w):y}catch(L){const W={resolved:!1,isRemote:P,document:void 0,error:L},Y=Np(y.source.absoluteRef,v.$ref);return i.set(Y,W),W}let E={resolved:!0,document:C,isRemote:P,node:y.parsed,nodePointer:"#/"},R=C.parsed;const D=S;for(const L of D)if(typeof R!="object"){R=void 0;break}else if(R[L]!==void 0)R=R[L],E.nodePointer=Lu(E.nodePointer,Qp(L));else if(qr(R)){if(E=await O(C,R,nj(b,R)),C=E.document||C,typeof E.node!="object"){R=void 0;break}R=E.node[L],E.nodePointer=Lu(E.nodePointer,Qp(L))}else{R=void 0;break}E.node=R,E.document=C;const _=Np(y.source.absoluteRef,v.$ref);return E.document&&qr(R)&&(E=await O(E.document,R,nj(b,R))),i.set(_,E),{...E}}}}const Zt=(t,e)=>{if(e)for(const r of Object.keys(e))xt(t[r])&&typeof e[r]=="string"?t[r]={...t[r],severity:e[r]}:t[r]=e[r]};function ar(t,e){if(e)for(const r of Object.keys(e))t.hasOwnProperty(r)&&(xt(t[r])&&typeof e[r]=="string"?t[r]={...t[r],severity:e[r]}:t[r]=e[r])}function Wge(t){if(t.indexOf("/")>-1){const[e,r]=t.split("/");return{pluginId:e,configName:r}}else return{pluginId:"",configName:t}}function jr(t,e){if(!e)return t;const r={};for(const n of Object.keys(t))r[`${e}/${n}`]=t[n];return r}function RX(t){const e={rules:{},oas2Rules:{},oas3_0Rules:{},oas3_1Rules:{},oas3_2Rules:{},async2Rules:{},async3Rules:{},arazzo1Rules:{},overlay1Rules:{},openrpc1Rules:{},preprocessors:{},oas2Preprocessors:{},oas3_0Preprocessors:{},oas3_1Preprocessors:{},oas3_2Preprocessors:{},async2Preprocessors:{},async3Preprocessors:{},arazzo1Preprocessors:{},overlay1Preprocessors:{},openrpc1Preprocessors:{},decorators:{},oas2Decorators:{},oas3_0Decorators:{},oas3_1Decorators:{},oas3_2Decorators:{},async2Decorators:{},async3Decorators:{},arazzo1Decorators:{},overlay1Decorators:{},openrpc1Decorators:{}};for(const r of t){if(xt(r)&&"extends"in r&&r.extends!==void 0)throw new Error(`'extends' is not supported in shared configs yet:
|
|
169
169
|
${JSON.stringify(r,null,2)}`);Zt(e.rules,r.rules),Zt(e.oas2Rules,r.oas2Rules),ar(e.oas2Rules,r.rules),Zt(e.oas3_0Rules,r.oas3_0Rules),ar(e.oas3_0Rules,r.rules),Zt(e.oas3_1Rules,r.oas3_1Rules),ar(e.oas3_1Rules,r.rules),Zt(e.oas3_2Rules,r.oas3_2Rules),ar(e.oas3_2Rules,r.rules),Zt(e.async2Rules,r.async2Rules),ar(e.async2Rules,r.rules),Zt(e.async3Rules,r.async3Rules),ar(e.async3Rules,r.rules),Zt(e.arazzo1Rules,r.arazzo1Rules),ar(e.arazzo1Rules,r.rules),Zt(e.overlay1Rules,r.overlay1Rules),ar(e.overlay1Rules,r.rules),Zt(e.openrpc1Rules,r.openrpc1Rules),ar(e.openrpc1Rules,r.rules),Zt(e.preprocessors,r.preprocessors),Zt(e.oas2Preprocessors,r.oas2Preprocessors),ar(e.oas2Preprocessors,r.preprocessors),Zt(e.oas3_0Preprocessors,r.oas3_0Preprocessors),ar(e.oas3_0Preprocessors,r.preprocessors),Zt(e.oas3_1Preprocessors,r.oas3_1Preprocessors),ar(e.oas3_1Preprocessors,r.preprocessors),Zt(e.oas3_2Preprocessors,r.oas3_2Preprocessors),ar(e.oas3_2Preprocessors,r.preprocessors),Zt(e.async2Preprocessors,r.async2Preprocessors),ar(e.async2Preprocessors,r.preprocessors),Zt(e.async3Preprocessors,r.async3Preprocessors),ar(e.async3Preprocessors,r.preprocessors),Zt(e.arazzo1Preprocessors,r.arazzo1Preprocessors),ar(e.arazzo1Preprocessors,r.preprocessors),Zt(e.overlay1Preprocessors,r.overlay1Preprocessors),ar(e.overlay1Preprocessors,r.preprocessors),Zt(e.openrpc1Preprocessors,r.openrpc1Preprocessors),ar(e.openrpc1Preprocessors,r.preprocessors),Zt(e.decorators,r.decorators),Zt(e.oas2Decorators,r.oas2Decorators),ar(e.oas2Decorators,r.decorators),Zt(e.oas3_0Decorators,r.oas3_0Decorators),ar(e.oas3_0Decorators,r.decorators),Zt(e.oas3_1Decorators,r.oas3_1Decorators),ar(e.oas3_1Decorators,r.decorators),Zt(e.oas3_2Decorators,r.oas3_2Decorators),ar(e.oas3_2Decorators,r.decorators),Zt(e.async2Decorators,r.async2Decorators),ar(e.async2Decorators,r.decorators),Zt(e.async3Decorators,r.async3Decorators),ar(e.async3Decorators,r.decorators),Zt(e.arazzo1Decorators,r.arazzo1Decorators),ar(e.arazzo1Decorators,r.decorators),Zt(e.overlay1Decorators,r.overlay1Decorators),ar(e.overlay1Decorators,r.decorators),Zt(e.openrpc1Decorators,r.openrpc1Decorators),ar(e.openrpc1Decorators,r.decorators)}return e}function Uge(t){return new Map(JSON.parse(JSON.stringify([...t])))}function ij(t){return t!==void 0&&typeof t=="object"&&"id"in t}function Bge(t){return typeof t=="function"}function oj(t,e){return{prev:t,value:e}}function sj(t){return t?.prev??null}function Fge(t){const e={};for(;t.parent;)e[t.parent.type.name]=t.parent.activatedOn?.value.node,t=t.parent;return e}function Zge(t){const e={};for(;t.parent;)t.parent.activatedOn?.value.location&&(e[t.parent.type.name]=t.parent.activatedOn?.value.location),t=t.parent;return e}function Id(t){const{document:e,rootType:r,normalizedVisitors:n,resolvedRefMap:i,ctx:o}=t,s={},a=new Set;l(e.parsed,r,new vy(e.source,"#/"),void 0,"");function l(c,u,d,p,h){const m=(E,R=O.source.absoluteRef)=>{if(!qr(E))return{location:d,node:E};const D=Np(R,E.$ref),_=i.get(D);if(!_)return{location:void 0,node:void 0};const{resolved:L,node:W,document:Y,nodePointer:Z,error:J}=_;return{location:L?new vy(Y.source,Z):J instanceof df?new vy(J.source,""):void 0,node:W,error:J}},g=d;let O=d;const{node:y,location:v,error:b}=m(c),w=new Set;if(qr(c)){const E=n.ref.enter;for(const{visit:R,ruleId:D,severity:_,message:L,context:W}of E){w.add(W);const Y=P.bind(void 0,D,_,L);R(c,{report:Y,resolve:m,rawNode:c,rawLocation:g,location:d,type:u,parent:p,key:h,parentLocations:{},specVersion:o.specVersion,config:o.config,getVisitorData:C.bind(void 0,D)},{node:y,location:v,error:b}),v?.source.absoluteRef&&o.refTypes&&o.refTypes.set(v?.source.absoluteRef,u)}}if(y!==void 0&&v&&u.name!=="scalar"){O=v;const E=s[u.name]?.has?.(y);let R=!1;const _=n.any.enter.concat(n[u.name]?.enter||[]),L=[];for(const{context:Z,visit:J,skip:ae,ruleId:F,severity:oe,message:q}of _){if(a.has(`${O.absolutePointer}${O.pointer}`))break;if(Z.isSkippedLevel)Z.parent.activatedOn&&!Z.parent.activatedOn.value.nextLevelTypeActivated&&!Z.seen.has(c)&&(Z.seen.add(c),R=!0,L.push(Z));else if(Z.parent&&Z.parent.activatedOn&&Z.activatedOn?.value.withParentNode!==Z.parent.activatedOn.value.node&&Z.parent.activatedOn.value.nextLevelTypeActivated?.value!==u||!Z.parent&&!E){L.push(Z);const M={node:y,location:v,nextLevelTypeActivated:null,withParentNode:Z.parent?.activatedOn?.value.node,skipped:(Z.parent?.activatedOn?.value.skipped||ae?.(y,h,{location:d,rawLocation:g,resolve:m,rawNode:c}))??!1};Z.activatedOn=oj(Z.activatedOn,M);let U=Z.parent;for(;U;)U.activatedOn.value.nextLevelTypeActivated=oj(U.activatedOn.value.nextLevelTypeActivated,u),U=U.parent;M.skipped||(R=!0,w.add(Z),S(J,y,c,Z,F,oe,q))}}if(R||!E){if(s[u.name]=s[u.name]||new Set,s[u.name].add(y),Array.isArray(y)){const Z=u.items;if(Z!==void 0){const J=typeof Z=="function";for(let ae=0;ae<y.length;ae++){let F=J?Z(y[ae],v.child([ae]).absolutePointer):Z,oe=y[ae];F?.directResolveAs&&(F=F.directResolveAs,oe={$ref:oe}),Cc(F)&&l(oe,F,v.child([ae]),y,ae)}}}else if(typeof y=="object"&&y!==null){const Z=Object.keys(u.properties);u.additionalProperties?Z.push(...Object.keys(y).filter(J=>!Z.includes(J))):u.extensionsPrefix&&Z.push(...Object.keys(y).filter(J=>J.startsWith(u.extensionsPrefix))),qr(c)&&Z.push(...Object.keys(c).filter(J=>J!=="$ref"&&!Z.includes(J)));for(const J of Z){let ae=y[J],F=v;ae===void 0&&(ae=c[J],F=d);let oe=Tl(u.properties,J);if(oe===void 0&&(oe=u.additionalProperties),typeof oe=="function"&&(oe=oe(ae,J)),oe===void 0&&u.extensionsPrefix&&J.startsWith(u.extensionsPrefix)&&(oe=Pc),!Cc(oe)&&oe?.directResolveAs&&(oe=oe.directResolveAs,ae={$ref:ae}),oe&&oe.name===void 0&&oe.resolvable!==!1&&(oe={name:"scalar",properties:{}}),qr(c[J])&&oe?.name==="scalar"){l(c[J],oe,d.child([J]),c,J);continue}!Cc(oe)||oe.name==="scalar"&&!qr(ae)||l(ae,oe,F.child([J]),y,J)}}}const W=n.any.leave,Y=(n[u.name]?.leave||[]).concat(W);for(const Z of L.reverse())if(Z.isSkippedLevel)Z.seen.delete(y);else if(Z.activatedOn=sj(Z.activatedOn),Z.parent){let J=Z.parent;for(;J;)J.activatedOn.value.nextLevelTypeActivated=sj(J.activatedOn.value.nextLevelTypeActivated),J=J.parent}for(const{context:Z,visit:J,ruleId:ae,severity:F,message:oe}of Y)!Z.isSkippedLevel&&w.has(Z)&&S(J,y,c,Z,ae,F,oe)}if(O=d,qr(c)){const E=n.ref.leave;for(const{visit:R,ruleId:D,severity:_,context:L,message:W}of E)if(w.has(L)){const Y=P.bind(void 0,D,_,W);R(c,{report:Y,resolve:m,rawNode:c,rawLocation:g,location:d,type:u,parent:p,key:h,parentLocations:{},specVersion:o.specVersion,config:o.config,getVisitorData:C.bind(void 0,D)},{node:y,location:v,error:b})}}function S(E,R,D,_,L,W,Y){const Z=P.bind(void 0,L,W,Y);E(R,{report:Z,resolve:m,rawNode:D,location:O,rawLocation:g,type:u,parent:p,key:h,parentLocations:Zge(_),specVersion:o.specVersion,config:o.config,ignoreNextVisitorsOnNode:()=>{a.add(`${O.absolutePointer}${O.pointer}`)},getVisitorData:C.bind(void 0,L)},Fge(_),_)}function P(E,R,D,_){const W=(_.location?Array.isArray(_.location)?_.location:[_.location]:[{...O,reportOnKey:!1}]).map(Z=>({...O,reportOnKey:!1,...Z})),Y=_.forceSeverity||R;Y!=="off"&&o.problems.push({ruleId:_.ruleId||E,severity:Y,..._,message:D?D.replace("{{message}}",_.message):_.message,suggest:_.suggest||[],location:W})}function C(E){return o.visitorsData[E]=o.visitorsData[E]||{},o.visitorsData[E]}}}const Yge={Root:"DefinitionRoot",ServerVariablesMap:"ServerVariableMap",Paths:["PathMap","PathsMap"],CallbacksMap:"CallbackMap",MediaTypesMap:"MediaTypeMap",ExamplesMap:"ExampleMap",EncodingMap:"EncodingsMap",HeadersMap:"HeaderMap",LinksMap:"LinkMap",OAuth2Flows:"SecuritySchemeFlows",Responses:"ResponsesMap"};function Rd(t,e){const r={};r.any={enter:[],leave:[]};for(const s of Object.keys(e))r[s]={enter:[],leave:[]};r.ref={enter:[],leave:[]};for(const{ruleId:s,severity:a,message:l,visitor:c}of t)o({ruleId:s,severity:a,message:l},c,null);for(const s of Object.keys(r))r[s].enter.sort((a,l)=>l.depth-a.depth),r[s].leave.sort((a,l)=>a.depth-l.depth);return r;function n(s,a,l,c,u=[]){if(u.includes(a))return;u=[...u,a];const d=new Set;for(const h of Object.values(a.properties)){if(h===l){p(s,u);continue}typeof h=="object"&&h!==null&&h.name&&d.add(h)}a.additionalProperties&&typeof a.additionalProperties!="function"&&(a.additionalProperties===l?p(s,u):a.additionalProperties.name!==void 0&&d.add(a.additionalProperties)),a.items&&typeof a.items!="function"&&(a.items===l?p(s,u):a.items.name!==void 0&&d.add(a.items)),a.extensionsPrefix&&d.add(Pc);for(const h of Array.from(d.values()))n(s,h,l,c,u);function p(h,m){for(const g of m.slice(1))r[g.name]=r[g.name]||{enter:[],leave:[]},r[g.name].enter.push({...h,visit:()=>{},depth:0,context:{isSkippedLevel:!0,seen:new Set,parent:c}})}}function i(s,a){if(Array.isArray(a)){const l=a.find(c=>s[c])||void 0;return l&&s[l]}return s[a]}function o(s,a,l,c=0){const u=Object.keys(e);if(c===0)u.push("any"),u.push("ref");else{if(a.any)throw new Error("any() is allowed only on top level");if(a.ref)throw new Error("ref() is allowed only on top level")}for(const d of u){const p=a[d]||i(a,Yge[d]),h=r[d];if(!p)continue;let m,g,O;const y=xt(p);if(d==="ref"&&y&&p.skip)throw new Error("ref() visitor does not support skip");typeof p=="function"?m=p:y&&(m=p.enter,g=p.leave,O=p.skip);const v=(m?1:0)+(g?1:0)+(O?1:0),b=y&&Object.keys(p).length>v,w={activatedOn:null,type:e[d],parent:l,isSkippedLevel:!1};if(b&&o(s,p,w,c+1),l&&n(s,l.type,e[d],l),m||y){if(m&&typeof m!="function")throw new Error("DEV: should be function");h.enter.push({...s,visit:m||(()=>{}),skip:O,depth:c,context:w})}if(g){if(typeof g!="function")throw new Error("DEV: should be function");h.leave.push({...s,visit:g,depth:c,context:w})}}}}function _X({node:t,ctx:e,plugins:r}){if(!t.extends)return t;const n=(t.extends||[]).map(i=>{if(!en(i)&&!Rc.extname(i))return ome(i,r);const o=e.resolve({$ref:i});return o.location&&o.node!==void 0?o.node:null}).filter(Hi);return RX([...n.map(i=>_X({node:i,ctx:e,plugins:r})),{...t,extends:void 0}])}function oO(t,e){if(xt(t)&&Array.isArray(t.plugins)){const{plugins:r,rootConfigDir:n}=e.getVisitorData();r.push(...t.plugins.map(i=>QX(i,e.location.source.absoluteRef.replace(/^file:\/\//,""),n)))}}const Gge=Rd([{severity:"error",ruleId:N7,visitor:{ref:{},ConfigGovernance:{leave(t,e){oO(t,e)}},ConfigApisProperties:{leave(t,e){oO(t,e)}},"rootRedoclyConfigSchema.scorecard.levels_items":{leave(t,e){oO(t,e)}},ConfigRoot:{leave(t,e){oO(t,e)}}}}],gg);function sO(t,e){if(xt(t)&&t.extends){const{plugins:r}=e.getVisitorData(),n=_X({node:t,ctx:e,plugins:r});Object.assign(t,n),delete t.extends}}const Hge=Rd([{severity:"error",ruleId:D7,visitor:{ref:{leave(t,e,r){rC(t,r,e)}},ConfigGovernance:{leave(t,e){sO(t,e)}},ConfigApisProperties:{leave(t,e){sO(t,e)}},"rootRedoclyConfigSchema.scorecard.levels_items":{leave(t,e){sO(t,e)}},ConfigRoot:{leave(t,e){sO(t,e)}}}}],gg);function aj(t,e){switch(e){case"oas3":switch(t){case"Schema":return"schemas";case"Parameter":return"parameters";case"Response":return"responses";case"Example":return"examples";case"RequestBody":return"requestBodies";case"Header":return"headers";case"SecuritySchema":return"securitySchemes";case"Link":return"links";case"Callback":return"callbacks";default:return null}case"oas2":switch(t){case"Schema":return"definitions";case"Parameter":return"parameters";case"Response":return"responses";default:return null}case"async2":switch(t){case"Schema":return"schemas";case"Parameter":return"parameters";default:return null}case"async3":switch(t){case"Schema":return"schemas";case"Parameter":return"parameters";default:return null}case"arazzo1":switch(t){case"Root.workflows_items.parameters_items":case"Root.workflows_items.steps_items.parameters_items":return"parameters";default:return null}case"overlay1":return null;case"openrpc1":switch(t){case"ContentDescriptor":return"contentDescriptors";case"Schema":return"schemas";case"Example":return"examples";case"Link":return"links";case"ErrorObject":return"errors";case"ExamplePairing":return"examplePairingObjects";case"Tag":return"tags";default:return null}}}function Jge(t,e,r,n,i){let o,s;const a={ref:{leave(p,h,m){if(!m.location||m.node===void 0){Dp(m,h.report,h.location);return}if(m.location.source===r.source&&m.location.source===h.location.source&&h.type.name!=="scalar"&&!e){p.$ref!==m.location.pointer&&(p.$ref=m.location.pointer);return}if(i&&en(p.$ref))return;const g=aj(h.type.name,t);g?e?(c(g,m,h),rC(p,m,h)):(p.$ref=c(g,m,h),l(p,m,h)):rC(p,m,h)}},Example:{leave(p,h){if(Dz(p)&&p.value===void 0){const m=h.resolve({$ref:p.externalValue});if(!m.location||m.node===void 0){Dp(m,h.report,h.location);return}if(i&&en(p.externalValue))return;p.value=h.resolve({$ref:p.externalValue}).node,delete p.externalValue}}},Root:{enter(p,h){s=h.location,t==="oas3"?o=p.components=p.components||{}:t==="oas2"?o=p:t==="async2"?o=p.components=p.components||{}:t==="async3"?o=p.components=p.components||{}:t==="arazzo1"?o=p.components=p.components||{}:t==="openrpc1"&&(o=p.components=p.components||{})}}};t==="oas3"&&(a.DiscriminatorMapping={leave(p,h){for(const m of Object.keys(p)){const g=p[m],O=h.resolve({$ref:g});if(!O.location||O.node===void 0){Dp(O,h.report,h.location.child(m));return}const y=aj("Schema",t);p[m]=c(y,O,h)}}});function l(p,h,m){const g=Np(m.location.source.absoluteRef,p.$ref);n.set(g,{document:r,isRemote:!1,node:h.node,nodePointer:p.$ref,resolved:!0})}function c(p,h,m){o[p]=o[p]||{};const g=d(h,p,m);return o[p][g]=h.node,t==="oas3"||t==="async2"||t==="async3"||t==="openrpc1"?`#/components/${p}/${g}`:`#/${p}/${g}`}function u(p,h,m){return qr(p)&&m.resolve(p,s.absolutePointer).location?.absolutePointer===h.location.absolutePointer?!0:tC(p,h.node)}function d(p,h,m){const[g,O]=[p.location.source.absoluteRef,p.location.pointer],y=o[h];let v="";const b=O.slice(2).split("/").filter(Hi);for(;b.length>0;)if(v=b.pop()+(v?`-${v}`:""),!y||!y[v]||u(y[v],p,m))return v;if(v=Fre(g)+(v?`_${v}`:""),!y[v]||u(y[v],p,m))return v;const w=v;let S=2;for(;y[v]&&!u(y[v],p,m);)v=`${w}-${S}`,S++;return y[v]||m.report({message:`Two schemas are referenced with the same name but different content. Renamed ${w} to ${v}.`,location:m.location,forceSeverity:"warn"}),v}return a}async function Kge(t){const{document:e,config:r,types:n,externalRefResolver:i,dereference:o=!1,removeUnusedComponents:s=!1,keepUrlRefs:a=!1}=t,l=B0(e.parsed),c=j7(l),u=r.getRulesForSpecVersion(c),d=bT(r.extendTypes(n,l),r),p=Xv(u,r,"preprocessors",l),h=Xv(u,r,"decorators",l),m={problems:[],specVersion:l,config:r,refTypes:new Map,visitorsData:{}};s&&!h.some(y=>y.ruleId==="remove-unused-components")&&h.push({severity:"error",ruleId:"remove-unused-components",visitor:c==="oas2"?IX():AX()});let g=await yh({rootDocument:e,rootType:d.Root,externalRefResolver:i});p.length>0&&(Id({document:e,rootType:d.Root,normalizedVisitors:Rd(p,d),resolvedRefMap:g,ctx:m}),g=await yh({rootDocument:e,rootType:d.Root,externalRefResolver:i}));const O=Rd([{severity:"error",ruleId:"bundler",visitor:Jge(c,o,e,g,a)},...h],d);return Id({document:e,rootType:d.Root,normalizedVisitors:O,resolvedRefMap:g,ctx:m}),{bundle:e,problems:m.problems.map(y=>r.addProblemToIgnore(y)),fileDependencies:i.getFiles(),rootType:d.Root,refTypes:m.refTypes,visitorsData:m.visitorsData}}function eme(t,e,r){const n={plugins:[],rootConfigDir:r},i={problems:[],specVersion:"oas3_0",refTypes:new Map,visitorsData:{[N7]:n}};return Id({document:t,rootType:gg.ConfigRoot,normalizedVisitors:Gge,resolvedRefMap:e,ctx:i}),n.plugins}function tme(t,e,r){const n={plugins:r},i={problems:[],specVersion:"oas3_0",refTypes:new Map,visitorsData:{[D7]:n}};return Id({document:t,rootType:gg.ConfigRoot,normalizedVisitors:Hge,resolvedRefMap:e,ctx:i}),t.parsed??{}}async function jX(t){const{ref:e,doc:r,externalRefResolver:n=new K0(t.config.resolve),base:i=null}=t;if(!(e||r))throw new Error(`Document or reference is required.
|
|
170
|
-
`);const o=r===void 0?await n.resolveDocument(i,e,!0):r;if(o instanceof Error)throw o;return t.collectSpecData?.(o.parsed),Kge({document:o,...t,externalRefResolver:n,types:IT(B0(o.parsed))})}const lS=new Map;async function rme({rawConfigDocument:t,configPath:e,externalRefResolver:r,customExtends:n}){const i=t===void 0?fpe:t.parsed;if(n!==void 0&&xt(i)&&(i.extends=n),xt(i)&&i?.extends?.some(qge))throw new Error("Configuration format not detected in extends: values must be strings.");const o=t??{source:new Ad(e??"",JSON.stringify(i)),parsed:i},s=await yh({rootDocument:o,rootType:gg.ConfigRoot,externalRefResolver:r??new K0(Q7(i?.resolve))});let a=[],l,c="";ai?l=[...(i?.plugins||[]).filter(h=>!ji(h)),rj]:(c=Dt.dirname(e??""),a=eme(o,s,c),l=[...await ime(a.map(h=>lj(h)?h.absolutePath:h),c),rj]);const u=tme(o,Uge(s),l);u.apis&&(u.apis=Object.fromEntries(Object.entries(u.apis).map(([p,h])=>{const m=RX([u,h]);return[p,{...h,...m}]})));const d=a.length?a.map(p=>lj(p)&&p.isModule?p.rawPath:p.absolutePath&&Dt.relative(c,p.absolutePath)).filter(Vv):void 0;return{resolvedConfig:{...u,plugins:d},resolvedRefMap:s,plugins:l}}function nme(t){for(const e of hpe)(void 0)(Dt.resolve(t,e))}function lj(t){return"isModule"in t}const QX=(t,e,r)=>{if(!ji(t))return t;const n=Dt.resolve(Dt.dirname(e),t);return(void 0)(n)?{absolutePath:n,rawPath:t,isModule:!1}:{absolutePath:Az.createRequire((typeof document>"u"?require("url").pathToFileURL(__filename).href:Bs&&Bs.tagName.toUpperCase()==="SCRIPT"&&Bs.src||new URL("replay-index-
|
|
170
|
+
`);const o=r===void 0?await n.resolveDocument(i,e,!0):r;if(o instanceof Error)throw o;return t.collectSpecData?.(o.parsed),Kge({document:o,...t,externalRefResolver:n,types:IT(B0(o.parsed))})}const lS=new Map;async function rme({rawConfigDocument:t,configPath:e,externalRefResolver:r,customExtends:n}){const i=t===void 0?fpe:t.parsed;if(n!==void 0&&xt(i)&&(i.extends=n),xt(i)&&i?.extends?.some(qge))throw new Error("Configuration format not detected in extends: values must be strings.");const o=t??{source:new Ad(e??"",JSON.stringify(i)),parsed:i},s=await yh({rootDocument:o,rootType:gg.ConfigRoot,externalRefResolver:r??new K0(Q7(i?.resolve))});let a=[],l,c="";ai?l=[...(i?.plugins||[]).filter(h=>!ji(h)),rj]:(c=Dt.dirname(e??""),a=eme(o,s,c),l=[...await ime(a.map(h=>lj(h)?h.absolutePath:h),c),rj]);const u=tme(o,Uge(s),l);u.apis&&(u.apis=Object.fromEntries(Object.entries(u.apis).map(([p,h])=>{const m=RX([u,h]);return[p,{...h,...m}]})));const d=a.length?a.map(p=>lj(p)&&p.isModule?p.rawPath:p.absolutePath&&Dt.relative(c,p.absolutePath)).filter(Vv):void 0;return{resolvedConfig:{...u,plugins:d},resolvedRefMap:s,plugins:l}}function nme(t){for(const e of hpe)(void 0)(Dt.resolve(t,e))}function lj(t){return"isModule"in t}const QX=(t,e,r)=>{if(!ji(t))return t;const n=Dt.resolve(Dt.dirname(e),t);return(void 0)(n)?{absolutePath:n,rawPath:t,isModule:!1}:{absolutePath:Az.createRequire((typeof document>"u"?require("url").pathToFileURL(__filename).href:Bs&&Bs.tagName.toUpperCase()==="SCRIPT"&&Bs.src||new URL("replay-index-nUh5aT0a.js",document.baseURI).href)??__dirname).resolve(t,{paths:[r,(typeof document>"u"?require("url").pathToFileURL(__filename).href:Bs&&Bs.tagName.toUpperCase()==="SCRIPT"&&Bs.src||new URL("replay-index-nUh5aT0a.js",document.baseURI).href)?Dt.dirname((void 0)(typeof document>"u"?require("url").pathToFileURL(__filename).href:Bs&&Bs.tagName.toUpperCase()==="SCRIPT"&&Bs.src||new URL("replay-index-nUh5aT0a.js",document.baseURI).href)):__dirname]}),isModule:!0,rawPath:t}};async function ime(t,e){if(!t)return[];const r=async a=>{if(!ji(a))return a;try{const l=Dt.isAbsolute(a)?a:QX(a,Dt.join(e,dpe),e).absolutePath;if(!lS.has(l)){let c;if(typeof __webpack_require__=="function")c=__non_webpack_require__(l);else{const m=await import((void 0)(l).pathname);c=m.default||m}const u={contentDir:e},d=Array.isArray(c)?c:[c];for(const m of d)m?.id&&ij(m)&&cr.info(`Deprecated plugin format detected: ${m.id}
|
|
171
171
|
`);const p=ij(c)?c:Bge(c)?await c(u):await c?.default?.(u),h=Array.isArray(p)?p:[p];p&&lS.set(l,h.map(m=>({...m,path:a,absolutePath:l})))}return lS.get(l)}catch(l){throw new Error(`Failed to load plugin "${a}": ${l.message}
|
|
172
172
|
|
|
173
173
|
${l.stack}`)}},n=new Map,i=nme(e);i&&t.push(i);const o=new Set;return(await Promise.all(t.map(async a=>{if(ji(a)){if(en(a))throw new Error(Nt.red("We don't support remote plugins yet."));if(o.has(a))return;o.add(a)}const l=await r(a);if(!l)return;const c=Array.isArray(l)?l:[l];return(await Promise.all(c.map(async u=>{if(!u)return;const d=u.id;if(typeof d!="string")throw new Error(Nt.red(`Plugin must define \`id\` property in ${Nt.blue(a.toString())}.`));const p=u.absolutePath??a.toString(),h=n.get(d);if(h){if(p!==h)throw new Error(Nt.red(`Plugin "id" must be unique. Plugin ${Nt.blue(p)} uses id "${Nt.blue(d)}" already seen in ${Nt.blue(p)}`));return}n.set(d,p);const m={id:d,...u.configs?{configs:u.configs}:{},...u.typeExtension?{typeExtension:u.typeExtension}:{}};if(u.rules){if(!u.rules.oas3&&!u.rules.oas2&&!u.rules.async2&&!u.rules.async3&&!u.rules.arazzo1&&!u.rules.overlay1&&!u.rules.openrpc1)throw new Error(`Plugin rules must have \`oas3\`, \`oas2\`, \`async2\`, \`async3\`, \`arazzo\`, \`overlay1\`, or \`openrpc1\` rules "${a}.`);m.rules={},u.rules.oas3&&(m.rules.oas3=jr(u.rules.oas3,d)),u.rules.oas2&&(m.rules.oas2=jr(u.rules.oas2,d)),u.rules.async2&&(m.rules.async2=jr(u.rules.async2,d)),u.rules.async3&&(m.rules.async3=jr(u.rules.async3,d)),u.rules.arazzo1&&(m.rules.arazzo1=jr(u.rules.arazzo1,d)),u.rules.overlay1&&(m.rules.overlay1=jr(u.rules.overlay1,d)),u.rules.openrpc1&&(m.rules.openrpc1=jr(u.rules.openrpc1,d))}if(u.preprocessors){if(!u.preprocessors.oas3&&!u.preprocessors.oas2&&!u.preprocessors.async2&&!u.preprocessors.async3&&!u.preprocessors.arazzo1&&!u.preprocessors.overlay1&&!u.preprocessors.openrpc1)throw new Error(`Plugin \`preprocessors\` must have \`oas3\`, \`oas2\`, \`async2\`, \`async3\`, \`arazzo1\`, \`overlay1\`, or \`openrpc1\` preprocessors "${a}.`);m.preprocessors={},u.preprocessors.oas3&&(m.preprocessors.oas3=jr(u.preprocessors.oas3,d)),u.preprocessors.oas2&&(m.preprocessors.oas2=jr(u.preprocessors.oas2,d)),u.preprocessors.async2&&(m.preprocessors.async2=jr(u.preprocessors.async2,d)),u.preprocessors.async3&&(m.preprocessors.async3=jr(u.preprocessors.async3,d)),u.preprocessors.arazzo1&&(m.preprocessors.arazzo1=jr(u.preprocessors.arazzo1,d)),u.preprocessors.overlay1&&(m.preprocessors.overlay1=jr(u.preprocessors.overlay1,d)),u.preprocessors.openrpc1&&(m.preprocessors.openrpc1=jr(u.preprocessors.openrpc1,d))}if(u.decorators){if(!u.decorators.oas3&&!u.decorators.oas2&&!u.decorators.async2&&!u.decorators.async3&&!u.decorators.arazzo1&&!u.decorators.overlay1&&!u.decorators.openrpc1)throw new Error(`Plugin \`decorators\` must have \`oas3\`, \`oas2\`, \`async2\`, \`async3\`, \`arazzo1\`, \`overlay1\`, or \`openrpc1\` decorators "${a}.`);m.decorators={},u.decorators.oas3&&(m.decorators.oas3=jr(u.decorators.oas3,d)),u.decorators.oas2&&(m.decorators.oas2=jr(u.decorators.oas2,d)),u.decorators.async2&&(m.decorators.async2=jr(u.decorators.async2,d)),u.decorators.async3&&(m.decorators.async3=jr(u.decorators.async3,d)),u.decorators.arazzo1&&(m.decorators.arazzo1=jr(u.decorators.arazzo1,d)),u.decorators.overlay1&&(m.decorators.overlay1=jr(u.decorators.overlay1,d)),u.decorators.openrpc1&&(m.decorators.openrpc1=jr(u.decorators.openrpc1,d))}return u.assertions&&(m.assertions=u.assertions),{...u,...m}}))).filter(Vv)}))).filter(Vv).flat()}function ome(t,e){const{pluginId:r,configName:n}=Wge(t),i=e.find(s=>s.id===r);if(!i)throw new Error(`Invalid config ${Nt.red(t)}: plugin ${r} is not included.`);const o=i.configs?.[n];if(!o)throw new Error(r?`Invalid config ${Nt.red(t)}: plugin ${r} doesn't export config with name ${n}.`:`Invalid config ${Nt.red(t)}: there is no such built-in config.`);return o}async function DX(t,{configPath:e,externalRefResolver:r}={}){const i=Lge(typeof t=="string"?t:"",e??"");typeof t!="string"&&t&&(i.parsed=t);const{resolvedConfig:o,resolvedRefMap:s,plugins:a}=await rme({rawConfigDocument:sme(i),configPath:e,externalRefResolver:r});return new F0(o,{configPath:e,document:i,resolvedRefMap:s,plugins:a})}function sme(t){if(!t.parsed)return t;const{plugins:e,resolve:r,...n}=t.parsed,i={...structuredClone(n),plugins:e?.slice(),...r&&{resolve:{...r}}};return{...t,parsed:i}}var cS={},xo={},uS={},cj;function ex(){return cj||(cj=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e;(function(l){l[l.SCALAR=0]="SCALAR",l[l.MAPPING=1]="MAPPING",l[l.MAP=2]="MAP",l[l.SEQ=3]="SEQ",l[l.ANCHOR_REF=4]="ANCHOR_REF",l[l.INCLUDE_REF=5]="INCLUDE_REF"})(e=t.Kind||(t.Kind={}));function r(l,c){var u=c?c.endPosition:l.endPosition+1,d={key:l,value:c,startPosition:l.startPosition,endPosition:u,kind:e.MAPPING,parent:null,errors:[]};return d}t.newMapping=r;function n(l,c,u,d){return{errors:[],referencesAnchor:l,value:d,startPosition:c,endPosition:u,kind:e.ANCHOR_REF,parent:null}}t.newAnchorRef=n;function i(l){l===void 0&&(l="");var c={errors:[],startPosition:-1,endPosition:-1,value:""+l,kind:e.SCALAR,parent:null,doubleQuoted:!1,rawValue:""+l};return typeof l!="string"&&(c.valueObject=l),c}t.newScalar=i;function o(){return{errors:[],startPosition:-1,endPosition:-1,items:[],kind:e.SEQ,parent:null}}t.newItems=o;function s(){return o()}t.newSeq=s;function a(l){return{errors:[],startPosition:-1,endPosition:-1,mappings:l||[],kind:e.MAP,parent:null}}t.newMap=a})(uS)),uS}var Hs={},uj;function ff(){if(uj)return Hs;uj=1,Object.defineProperty(Hs,"__esModule",{value:!0});function t(s){return typeof s>"u"||s===null}Hs.isNothing=t;function e(s){return typeof s=="object"&&s!==null}Hs.isObject=e;function r(s){return Array.isArray(s)?s:t(s)?[]:[s]}Hs.toArray=r;function n(s,a){var l,c,u,d;if(a)for(d=Object.keys(a),l=0,c=d.length;l<c;l+=1)u=d[l],s[u]=a[u];return s}Hs.extend=n;function i(s,a){var l="",c;for(c=0;c<a;c+=1)l+=s;return l}Hs.repeat=i;function o(s){return s===0&&Number.NEGATIVE_INFINITY===1/s}return Hs.isNegativeZero=o,Hs}var dS,dj;function vg(){if(dj)return dS;dj=1;var t=(function(){function e(r,n,i){n===void 0&&(n=null),i===void 0&&(i=!1),this.name="YAMLException",this.reason=r,this.mark=n,this.message=this.toString(!1),this.isWarning=i}return e.isInstance=function(r){if(r!=null&&r.getClassIdentifier&&typeof r.getClassIdentifier=="function")for(var n=0,i=r.getClassIdentifier();n<i.length;n++){var o=i[n];if(o==e.CLASS_IDENTIFIER)return!0}return!1},e.prototype.getClassIdentifier=function(){var r=[];return r.concat(e.CLASS_IDENTIFIER)},e.prototype.toString=function(r){r===void 0&&(r=!1);var n;return n="JS-YAML: "+(this.reason||"(unknown reason)"),!r&&this.mark&&(n+=" "+this.mark.toString()),n},e.CLASS_IDENTIFIER="yaml-ast-parser.YAMLException",e})();return dS=t,dS}var fS,fj;function ame(){if(fj)return fS;fj=1;var t=ff(),e=(function(){function r(n,i,o,s,a){this.name=n,this.buffer=i,this.position=o,this.line=s,this.column=a}return r.prototype.getSnippet=function(n,i){n===void 0&&(n=0),i===void 0&&(i=75);var o,s,a,l,c;if(!this.buffer)return null;for(n=n||4,i=i||75,o="",s=this.position;s>0&&`\0\r
|
|
@@ -349,7 +349,7 @@ You should wrap it with \`css\` like this:
|
|
|
349
349
|
gap: var(--spacing-xs);
|
|
350
350
|
`,Uxe=T(zl)`
|
|
351
351
|
width: 100%;
|
|
352
|
-
`;function bE({input:t,onSave:e,onCancel:r,...n}){const[i,o]=$.useState(!!t.isSecret),s=({name:a,value:l})=>{e({...t,name:a,value:l,isSecret:i})};return f.jsx(h6,{variable:t,onSave:s,onCancel:r,maskValue:i,...n,children:f.jsx(wh,{children:f.jsx($W,{value:i,onChange:a=>o(a),title:"Make it secret"})})})}const LC=()=>({name:"",value:"",isSecret:!1}),Pr=t=>Ez+"$inputs."+t+yT,g6=(t,e)=>e.inputs.find(r=>r.get().name===t.match(`^${D0}$`)?.[1]);function Bxe({environments:t,activeEnvironmentId:e}){return t.get().find(n=>n.name===e.get())?.inputs||[]}function Ha(t){const e=new RegExp(D0,"g"),r=new Set;if(!t)return r;for(const[n,i,o]of t.matchAll(e)){const s=i||o;s&&r.add(s)}return r}function Ox(t){const e=/^\{?\$inputs\.([^\}\s]+)\}?$/,r=t.match(e);return r?r[1]:null}function Ey(t){const e=new Error(t);return e.source="ulid",e}const xE="0123456789ABCDEFGHJKMNPQRSTVWXYZ",Mp=xE.length,r5=Math.pow(2,48)-1,Fxe=10,Zxe=16;function Yxe(t){let e=Math.floor(t()*Mp);return e===Mp&&(e=Mp-1),xE.charAt(e)}function Gxe(t,e){if(isNaN(t))throw new Error(t+" must be a number");if(t>r5)throw Ey("cannot encode time greater than "+r5);if(t<0)throw Ey("time must be positive");if(Number.isInteger(Number(t))===!1)throw Ey("time must be an integer");let r,n="";for(;e>0;e--)r=t%Mp,n=xE.charAt(r)+n,t=(t-r)/Mp;return n}function Hxe(t,e){let r="";for(;t>0;t--)r=Yxe(e)+r;return r}function Jxe(t=!1,e){e||(e=typeof window<"u"?window:null);const r=e&&(e.crypto||e.msCrypto);if(r)return()=>{const n=new Uint8Array(1);return r.getRandomValues(n),n[0]/255};try{const n=require("crypto");return()=>n.randomBytes(1).readUInt8()/255}catch{}if(t){try{console.error("secure crypto unusable, falling back to insecure Math.random()!")}catch{}return()=>Math.random()}throw Ey("secure crypto unusable, insecure Math.random not allowed")}function Kxe(t){return t||(t=Jxe()),function(r){return isNaN(r)&&(r=Date.now()),Gxe(r,Fxe)+Hxe(Zxe,t)}}const db=Kxe();var e1e=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{},vc="1.9.0",n5=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function t1e(t){var e=new Set([t]),r=new Set,n=t.match(n5);if(!n)return function(){return!1};var i={major:+n[1],minor:+n[2],patch:+n[3],prerelease:n[4]};if(i.prerelease!=null)return function(l){return l===t};function o(a){return r.add(a),!1}function s(a){return e.add(a),!0}return function(l){if(e.has(l))return!0;if(r.has(l))return!1;var c=l.match(n5);if(!c)return o(l);var u={major:+c[1],minor:+c[2],patch:+c[3],prerelease:c[4]};return u.prerelease!=null||i.major!==u.major?o(l):i.major===0?i.minor===u.minor&&i.patch<=u.patch?s(l):o(l):i.minor<=u.minor?s(l):o(l)}}var r1e=t1e(vc),n1e=vc.split(".")[0],Eh=Symbol.for("opentelemetry.js.api."+n1e),Ah=e1e;function wg(t,e,r,n){var i;n===void 0&&(n=!1);var o=Ah[Eh]=(i=Ah[Eh])!==null&&i!==void 0?i:{version:vc};if(!n&&o[t]){var s=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+t);return r.error(s.stack||s.message),!1}if(o.version!==vc){var s=new Error("@opentelemetry/api: Registration of version v"+o.version+" for "+t+" does not match previously registered API v"+vc);return r.error(s.stack||s.message),!1}return o[t]=e,r.debug("@opentelemetry/api: Registered a global for "+t+" v"+vc+"."),!0}function _c(t){var e,r,n=(e=Ah[Eh])===null||e===void 0?void 0:e.version;if(!(!n||!r1e(n)))return(r=Ah[Eh])===null||r===void 0?void 0:r[t]}function Pg(t,e){e.debug("@opentelemetry/api: Unregistering a global for "+t+" v"+vc+".");var r=Ah[Eh];r&&delete r[t]}var i1e=function(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,o=[],s;try{for(;(e===void 0||e-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return o},o1e=function(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,o;n<i;n++)(o||!(n in e))&&(o||(o=Array.prototype.slice.call(e,0,n)),o[n]=e[n]);return t.concat(o||Array.prototype.slice.call(e))},s1e=(function(){function t(e){this._namespace=e.namespace||"DiagComponentLogger"}return t.prototype.debug=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return Gf("debug",this._namespace,e)},t.prototype.error=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return Gf("error",this._namespace,e)},t.prototype.info=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return Gf("info",this._namespace,e)},t.prototype.warn=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return Gf("warn",this._namespace,e)},t.prototype.verbose=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return Gf("verbose",this._namespace,e)},t})();function Gf(t,e,r){var n=_c("diag");if(n)return r.unshift(e),n[t].apply(n,o1e([],i1e(r),!1))}var Ai;(function(t){t[t.NONE=0]="NONE",t[t.ERROR=30]="ERROR",t[t.WARN=50]="WARN",t[t.INFO=60]="INFO",t[t.DEBUG=70]="DEBUG",t[t.VERBOSE=80]="VERBOSE",t[t.ALL=9999]="ALL"})(Ai||(Ai={}));function a1e(t,e){t<Ai.NONE?t=Ai.NONE:t>Ai.ALL&&(t=Ai.ALL),e=e||{};function r(n,i){var o=e[n];return typeof o=="function"&&t>=i?o.bind(e):function(){}}return{error:r("error",Ai.ERROR),warn:r("warn",Ai.WARN),info:r("info",Ai.INFO),debug:r("debug",Ai.DEBUG),verbose:r("verbose",Ai.VERBOSE)}}var l1e=function(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,o=[],s;try{for(;(e===void 0||e-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return o},c1e=function(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,o;n<i;n++)(o||!(n in e))&&(o||(o=Array.prototype.slice.call(e,0,n)),o[n]=e[n]);return t.concat(o||Array.prototype.slice.call(e))},u1e="diag",ks=(function(){function t(){function e(i){return function(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];var a=_c("diag");if(a)return a[i].apply(a,c1e([],l1e(o),!1))}}var r=this,n=function(i,o){var s,a,l;if(o===void 0&&(o={logLevel:Ai.INFO}),i===r){var c=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return r.error((s=c.stack)!==null&&s!==void 0?s:c.message),!1}typeof o=="number"&&(o={logLevel:o});var u=_c("diag"),d=a1e((a=o.logLevel)!==null&&a!==void 0?a:Ai.INFO,i);if(u&&!o.suppressOverrideMessage){var p=(l=new Error().stack)!==null&&l!==void 0?l:"<failed to generate stacktrace>";u.warn("Current logger will be overwritten from "+p),d.warn("Current logger will overwrite one already registered from "+p)}return wg("diag",d,r,!0)};r.setLogger=n,r.disable=function(){Pg(u1e,r)},r.createComponentLogger=function(i){return new s1e(i)},r.verbose=e("verbose"),r.debug=e("debug"),r.info=e("info"),r.warn=e("warn"),r.error=e("error")}return t.instance=function(){return this._instance||(this._instance=new t),this._instance},t})(),d1e=function(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,o=[],s;try{for(;(e===void 0||e-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return o},f1e=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},p1e=(function(){function t(e){this._entries=e?new Map(e):new Map}return t.prototype.getEntry=function(e){var r=this._entries.get(e);if(r)return Object.assign({},r)},t.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(e){var r=d1e(e,2),n=r[0],i=r[1];return[n,i]})},t.prototype.setEntry=function(e,r){var n=new t(this._entries);return n._entries.set(e,r),n},t.prototype.removeEntry=function(e){var r=new t(this._entries);return r._entries.delete(e),r},t.prototype.removeEntries=function(){for(var e,r,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var o=new t(this._entries);try{for(var s=f1e(n),a=s.next();!a.done;a=s.next()){var l=a.value;o._entries.delete(l)}}catch(c){e={error:c}}finally{try{a&&!a.done&&(r=s.return)&&r.call(s)}finally{if(e)throw e.error}}return o},t.prototype.clear=function(){return new t},t})(),h1e=Symbol("BaggageEntryMetadata"),g1e=ks.instance();function m1e(t){return t===void 0&&(t={}),new p1e(new Map(Object.entries(t)))}function O1e(t){return typeof t!="string"&&(g1e.error("Cannot create baggage metadata from unknown type: "+typeof t),t=""),{__TYPE__:h1e,toString:function(){return t}}}function SE(t){return Symbol.for(t)}var y1e=(function(){function t(e){var r=this;r._currentContext=e?new Map(e):new Map,r.getValue=function(n){return r._currentContext.get(n)},r.setValue=function(n,i){var o=new t(r._currentContext);return o._currentContext.set(n,i),o},r.deleteValue=function(n){var i=new t(r._currentContext);return i._currentContext.delete(n),i}}return t})(),Uu=new y1e,Gc=(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),v1e=(function(){function t(){}return t.prototype.createGauge=function(e,r){return E1e},t.prototype.createHistogram=function(e,r){return A1e},t.prototype.createCounter=function(e,r){return T1e},t.prototype.createUpDownCounter=function(e,r){return I1e},t.prototype.createObservableGauge=function(e,r){return _1e},t.prototype.createObservableCounter=function(e,r){return R1e},t.prototype.createObservableUpDownCounter=function(e,r){return j1e},t.prototype.addBatchObservableCallback=function(e,r){},t.prototype.removeBatchObservableCallback=function(e){},t})(),yx=(function(){function t(){}return t})(),b1e=(function(t){Gc(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.add=function(r,n){},e})(yx),x1e=(function(t){Gc(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.add=function(r,n){},e})(yx),S1e=(function(t){Gc(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.record=function(r,n){},e})(yx),w1e=(function(t){Gc(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.record=function(r,n){},e})(yx),wE=(function(){function t(){}return t.prototype.addCallback=function(e){},t.prototype.removeCallback=function(e){},t})(),P1e=(function(t){Gc(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(wE),C1e=(function(t){Gc(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(wE),$1e=(function(t){Gc(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(wE),k1e=new v1e,T1e=new b1e,E1e=new S1e,A1e=new w1e,I1e=new x1e,R1e=new P1e,_1e=new C1e,j1e=new $1e,Q1e={get:function(t,e){if(t!=null)return t[e]},keys:function(t){return t==null?[]:Object.keys(t)}},D1e={set:function(t,e,r){t!=null&&(t[e]=r)}},N1e=function(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,o=[],s;try{for(;(e===void 0||e-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return o},M1e=function(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,o;n<i;n++)(o||!(n in e))&&(o||(o=Array.prototype.slice.call(e,0,n)),o[n]=e[n]);return t.concat(o||Array.prototype.slice.call(e))},q1e=(function(){function t(){}return t.prototype.active=function(){return Uu},t.prototype.with=function(e,r,n){for(var i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];return r.call.apply(r,M1e([n],N1e(i),!1))},t.prototype.bind=function(e,r){return r},t.prototype.enable=function(){return this},t.prototype.disable=function(){return this},t})(),z1e=function(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,o=[],s;try{for(;(e===void 0||e-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return o},L1e=function(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,o;n<i;n++)(o||!(n in e))&&(o||(o=Array.prototype.slice.call(e,0,n)),o[n]=e[n]);return t.concat(o||Array.prototype.slice.call(e))},YS="context",V1e=new q1e,vx=(function(){function t(){}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalContextManager=function(e){return wg(YS,e,ks.instance())},t.prototype.active=function(){return this._getContextManager().active()},t.prototype.with=function(e,r,n){for(var i,o=[],s=3;s<arguments.length;s++)o[s-3]=arguments[s];return(i=this._getContextManager()).with.apply(i,L1e([e,r,n],z1e(o),!1))},t.prototype.bind=function(e,r){return this._getContextManager().bind(e,r)},t.prototype._getContextManager=function(){return _c(YS)||V1e},t.prototype.disable=function(){this._getContextManager().disable(),Pg(YS,ks.instance())},t})(),$a;(function(t){t[t.NONE=0]="NONE",t[t.SAMPLED=1]="SAMPLED"})($a||($a={}));var m6="0000000000000000",O6="00000000000000000000000000000000",y6={traceId:O6,spanId:m6,traceFlags:$a.NONE},qp=(function(){function t(e){e===void 0&&(e=y6),this._spanContext=e}return t.prototype.spanContext=function(){return this._spanContext},t.prototype.setAttribute=function(e,r){return this},t.prototype.setAttributes=function(e){return this},t.prototype.addEvent=function(e,r){return this},t.prototype.addLink=function(e){return this},t.prototype.addLinks=function(e){return this},t.prototype.setStatus=function(e){return this},t.prototype.updateName=function(e){return this},t.prototype.end=function(e){},t.prototype.isRecording=function(){return!1},t.prototype.recordException=function(e,r){},t})(),PE=SE("OpenTelemetry Context Key SPAN");function CE(t){return t.getValue(PE)||void 0}function X1e(){return CE(vx.getInstance().active())}function $E(t,e){return t.setValue(PE,e)}function W1e(t){return t.deleteValue(PE)}function U1e(t,e){return $E(t,new qp(e))}function v6(t){var e;return(e=CE(t))===null||e===void 0?void 0:e.spanContext()}var B1e=/^([0-9a-f]{32})$/i,F1e=/^[0-9a-f]{16}$/i;function b6(t){return B1e.test(t)&&t!==O6}function Z1e(t){return F1e.test(t)&&t!==m6}function bx(t){return b6(t.traceId)&&Z1e(t.spanId)}function Y1e(t){return new qp(t)}var GS=vx.getInstance(),x6=(function(){function t(){}return t.prototype.startSpan=function(e,r,n){n===void 0&&(n=GS.active());var i=!!r?.root;if(i)return new qp;var o=n&&v6(n);return G1e(o)&&bx(o)?new qp(o):new qp},t.prototype.startActiveSpan=function(e,r,n,i){var o,s,a;if(!(arguments.length<2)){arguments.length===2?a=r:arguments.length===3?(o=r,a=n):(o=r,s=n,a=i);var l=s??GS.active(),c=this.startSpan(e,o,l),u=$E(l,c);return GS.with(u,a,void 0,c)}},t})();function G1e(t){return typeof t=="object"&&typeof t.spanId=="string"&&typeof t.traceId=="string"&&typeof t.traceFlags=="number"}var H1e=new x6,J1e=(function(){function t(e,r,n,i){this._provider=e,this.name=r,this.version=n,this.options=i}return t.prototype.startSpan=function(e,r,n){return this._getTracer().startSpan(e,r,n)},t.prototype.startActiveSpan=function(e,r,n,i){var o=this._getTracer();return Reflect.apply(o.startActiveSpan,o,arguments)},t.prototype._getTracer=function(){if(this._delegate)return this._delegate;var e=this._provider.getDelegateTracer(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):H1e},t})(),K1e=(function(){function t(){}return t.prototype.getTracer=function(e,r,n){return new x6},t})(),eSe=new K1e,i5=(function(){function t(){}return t.prototype.getTracer=function(e,r,n){var i;return(i=this.getDelegateTracer(e,r,n))!==null&&i!==void 0?i:new J1e(this,e,r,n)},t.prototype.getDelegate=function(){var e;return(e=this._delegate)!==null&&e!==void 0?e:eSe},t.prototype.setDelegate=function(e){this._delegate=e},t.prototype.getDelegateTracer=function(e,r,n){var i;return(i=this._delegate)===null||i===void 0?void 0:i.getTracer(e,r,n)},t})(),fb;(function(t){t[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(fb||(fb={}));var VC;(function(t){t[t.INTERNAL=0]="INTERNAL",t[t.SERVER=1]="SERVER",t[t.CLIENT=2]="CLIENT",t[t.PRODUCER=3]="PRODUCER",t[t.CONSUMER=4]="CONSUMER"})(VC||(VC={}));exports.SpanStatusCode=void 0;(function(t){t[t.UNSET=0]="UNSET",t[t.OK=1]="OK",t[t.ERROR=2]="ERROR"})(exports.SpanStatusCode||(exports.SpanStatusCode={}));var ga=vx.getInstance(),Lt=ks.instance(),tSe=(function(){function t(){}return t.prototype.getMeter=function(e,r,n){return k1e},t})(),rSe=new tSe,HS="metrics",nSe=(function(){function t(){}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalMeterProvider=function(e){return wg(HS,e,ks.instance())},t.prototype.getMeterProvider=function(){return _c(HS)||rSe},t.prototype.getMeter=function(e,r,n){return this.getMeterProvider().getMeter(e,r,n)},t.prototype.disable=function(){Pg(HS,ks.instance())},t})(),S6=nSe.getInstance(),iSe=(function(){function t(){}return t.prototype.inject=function(e,r){},t.prototype.extract=function(e,r){return e},t.prototype.fields=function(){return[]},t})(),kE=SE("OpenTelemetry Baggage Key");function w6(t){return t.getValue(kE)||void 0}function oSe(){return w6(vx.getInstance().active())}function sSe(t,e){return t.setValue(kE,e)}function aSe(t){return t.deleteValue(kE)}var JS="propagation",lSe=new iSe,cSe=(function(){function t(){this.createBaggage=m1e,this.getBaggage=w6,this.getActiveBaggage=oSe,this.setBaggage=sSe,this.deleteBaggage=aSe}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalPropagator=function(e){return wg(JS,e,ks.instance())},t.prototype.inject=function(e,r,n){return n===void 0&&(n=D1e),this._getGlobalPropagator().inject(e,r,n)},t.prototype.extract=function(e,r,n){return n===void 0&&(n=Q1e),this._getGlobalPropagator().extract(e,r,n)},t.prototype.fields=function(){return this._getGlobalPropagator().fields()},t.prototype.disable=function(){Pg(JS,ks.instance())},t.prototype._getGlobalPropagator=function(){return _c(JS)||lSe},t})(),zp=cSe.getInstance(),KS="trace",uSe=(function(){function t(){this._proxyTracerProvider=new i5,this.wrapSpanContext=Y1e,this.isSpanContextValid=bx,this.deleteSpan=W1e,this.getSpan=CE,this.getActiveSpan=X1e,this.getSpanContext=v6,this.setSpan=$E,this.setSpanContext=U1e}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalTracerProvider=function(e){var r=wg(KS,this._proxyTracerProvider,ks.instance());return r&&this._proxyTracerProvider.setDelegate(e),r},t.prototype.getTracerProvider=function(){return _c(KS)||this._proxyTracerProvider},t.prototype.getTracer=function(e,r){return this.getTracerProvider().getTracer(e,r)},t.prototype.disable=function(){Pg(KS,ks.instance()),this._proxyTracerProvider=new i5},t})(),ci=uSe.getInstance();const P6=SE("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function dSe(t){return t.setValue(P6,!0)}function TE(t){return t.getValue(P6)===!0}const fSe="=",XC=";",WC=",",ew="baggage",pSe=180,hSe=4096,gSe=8192;function mSe(t){return t.reduce((e,r)=>{const n=`${e}${e!==""?WC:""}${r}`;return n.length>gSe?e:n},"")}function OSe(t){return t.getAllEntries().map(([e,r])=>{let n=`${encodeURIComponent(e)}=${encodeURIComponent(r.value)}`;return r.metadata!==void 0&&(n+=XC+r.metadata.toString()),n})}function ySe(t){const e=t.split(XC);if(e.length<=0)return;const r=e.shift();if(!r)return;const n=r.indexOf(fSe);if(n<=0)return;const i=decodeURIComponent(r.substring(0,n).trim()),o=decodeURIComponent(r.substring(n+1).trim());let s;return e.length>0&&(s=O1e(e.join(XC))),{key:i,value:o,metadata:s}}class vSe{inject(e,r,n){const i=zp.getBaggage(e);if(!i||TE(e))return;const o=OSe(i).filter(a=>a.length<=hSe).slice(0,pSe),s=mSe(o);s.length>0&&n.set(r,ew,s)}extract(e,r,n){const i=n.get(r,ew),o=Array.isArray(i)?i.join(WC):i;if(!o)return e;const s={};return o.length===0||(o.split(WC).forEach(l=>{const c=ySe(l);if(c){const u={value:c.value};c.metadata&&(u.metadata=c.metadata),s[c.key]=u}}),Object.entries(s).length===0)?e:zp.setBaggage(e,zp.createBaggage(s))}fields(){return[ew]}}function Ay(t){const e={};if(typeof t!="object"||t==null)return e;for(const[r,n]of Object.entries(t)){if(!bSe(r)){Lt.warn(`Invalid attribute key: ${r}`);continue}if(!C6(n)){Lt.warn(`Invalid attribute value set for key: ${r}`);continue}Array.isArray(n)?e[r]=n.slice():e[r]=n}return e}function bSe(t){return typeof t=="string"&&t.length>0}function C6(t){return t==null?!0:Array.isArray(t)?xSe(t):$6(t)}function xSe(t){let e;for(const r of t)if(r!=null){if(!e){if($6(r)){e=typeof r;continue}return!1}if(typeof r!==e)return!1}return!0}function $6(t){switch(typeof t){case"number":case"boolean":case"string":return!0}return!1}function SSe(){return t=>{Lt.error(wSe(t))}}function wSe(t){return typeof t=="string"?t:JSON.stringify(PSe(t))}function PSe(t){const e={};let r=t;for(;r!==null;)Object.getOwnPropertyNames(r).forEach(n=>{if(e[n])return;const i=r[n];i&&(e[n]=String(i))}),r=Object.getPrototypeOf(r);return e}let CSe=SSe();function Dd(t){try{CSe(t)}catch{}}const fd=performance,$Se="2.0.1",tw="exception.message",kSe="exception.stacktrace",rw="exception.type",TSe="service.name",UC="telemetry.sdk.language",ESe="webjs",BC="telemetry.sdk.name",FC="telemetry.sdk.version",ASe="process.runtime.name",nw={[BC]:"opentelemetry",[ASe]:"browser",[UC]:ESe,[FC]:$Se};const ISe=9,RSe=6,_Se=Math.pow(10,RSe),pb=Math.pow(10,ISe);function td(t){const e=t/1e3,r=Math.trunc(e),n=Math.round(t%1e3*_Se);return[r,n]}function k6(){let t=fd.timeOrigin;if(typeof t!="number"){const e=fd;t=e.timing&&e.timing.fetchStart}return t}function jSe(t){const e=td(k6()),r=td(typeof t=="number"?t:fd.now());return E6(e,r)}function QSe(t,e){let r=e[0]-t[0],n=e[1]-t[1];return n<0&&(r-=1,n+=pb),[r,n]}function DSe(t){return t[0]*pb+t[1]}function T6(t){return Array.isArray(t)&&t.length===2&&typeof t[0]=="number"&&typeof t[1]=="number"}function o5(t){return T6(t)||typeof t=="number"||t instanceof Date}function E6(t,e){const r=[t[0]+e[0],t[1]+e[1]];return r[1]>=pb&&(r[1]-=pb,r[0]+=1),r}var cs;(function(t){t[t.SUCCESS=0]="SUCCESS",t[t.FAILED=1]="FAILED"})(cs||(cs={}));class NSe{_propagators;_fields;constructor(e={}){this._propagators=e.propagators??[],this._fields=Array.from(new Set(this._propagators.map(r=>typeof r.fields=="function"?r.fields():[]).reduce((r,n)=>r.concat(n),[])))}inject(e,r,n){for(const i of this._propagators)try{i.inject(e,r,n)}catch(o){Lt.warn(`Failed to inject with ${i.constructor.name}. Err: ${o.message}`)}}extract(e,r,n){return this._propagators.reduce((i,o)=>{try{return o.extract(i,r,n)}catch(s){Lt.warn(`Failed to extract with ${o.constructor.name}. Err: ${s.message}`)}return i},e)}fields(){return this._fields.slice()}}const ZC="[_0-9a-z-*/]",MSe=`[a-z]${ZC}{0,255}`,qSe=`[a-z0-9]${ZC}{0,240}@[a-z]${ZC}{0,13}`,zSe=new RegExp(`^(?:${MSe}|${qSe})$`),LSe=/^[ -~]{0,255}[!-~]$/,VSe=/,|=/;function XSe(t){return zSe.test(t)}function WSe(t){return LSe.test(t)&&!VSe.test(t)}const s5=32,USe=512,a5=",",l5="=";class EE{_internalState=new Map;constructor(e){e&&this._parse(e)}set(e,r){const n=this._clone();return n._internalState.has(e)&&n._internalState.delete(e),n._internalState.set(e,r),n}unset(e){const r=this._clone();return r._internalState.delete(e),r}get(e){return this._internalState.get(e)}serialize(){return this._keys().reduce((e,r)=>(e.push(r+l5+this.get(r)),e),[]).join(a5)}_parse(e){e.length>USe||(this._internalState=e.split(a5).reverse().reduce((r,n)=>{const i=n.trim(),o=i.indexOf(l5);if(o!==-1){const s=i.slice(0,o),a=i.slice(o+1,n.length);XSe(s)&&WSe(a)&&r.set(s,a)}return r},new Map),this._internalState.size>s5&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,s5))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){const e=new EE;return e._internalState=new Map(this._internalState),e}}const iw="traceparent",ow="tracestate",BSe="00",FSe="(?!ff)[\\da-f]{2}",ZSe="(?![0]{32})[\\da-f]{32}",YSe="(?![0]{16})[\\da-f]{16}",GSe="[\\da-f]{2}",HSe=new RegExp(`^\\s?(${FSe})-(${ZSe})-(${YSe})-(${GSe})(-.*)?\\s?$`);function JSe(t){const e=HSe.exec(t);return!e||e[1]==="00"&&e[5]?null:{traceId:e[2],spanId:e[3],traceFlags:parseInt(e[4],16)}}class KSe{inject(e,r,n){const i=ci.getSpanContext(e);if(!i||TE(e)||!bx(i))return;const o=`${BSe}-${i.traceId}-${i.spanId}-0${Number(i.traceFlags||$a.NONE).toString(16)}`;n.set(r,iw,o),i.traceState&&n.set(r,ow,i.traceState.serialize())}extract(e,r,n){const i=n.get(r,iw);if(!i)return e;const o=Array.isArray(i)?i[0]:i;if(typeof o!="string")return e;const s=JSe(o);if(!s)return e;s.isRemote=!0;const a=n.get(r,ow);if(a){const l=Array.isArray(a)?a.join(","):a;s.traceState=new EE(typeof l=="string"?l:void 0)}return ci.setSpanContext(e,s)}fields(){return[iw,ow]}}const ewe="[object Object]",twe="[object Null]",rwe="[object Undefined]",nwe=Function.prototype,A6=nwe.toString,iwe=A6.call(Object),owe=Object.getPrototypeOf,I6=Object.prototype,R6=I6.hasOwnProperty,fc=Symbol?Symbol.toStringTag:void 0,_6=I6.toString;function c5(t){if(!swe(t)||awe(t)!==ewe)return!1;const e=owe(t);if(e===null)return!0;const r=R6.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&A6.call(r)===iwe}function swe(t){return t!=null&&typeof t=="object"}function awe(t){return t==null?t===void 0?rwe:twe:fc&&fc in Object(t)?lwe(t):cwe(t)}function lwe(t){const e=R6.call(t,fc),r=t[fc];let n=!1;try{t[fc]=void 0,n=!0}catch{}const i=_6.call(t);return n&&(e?t[fc]=r:delete t[fc]),i}function cwe(t){return _6.call(t)}const uwe=20;function dwe(...t){let e=t.shift();const r=new WeakMap;for(;t.length>0;)e=j6(e,t.shift(),0,r);return e}function sw(t){return hb(t)?t.slice():t}function j6(t,e,r=0,n){let i;if(!(r>uwe)){if(r++,Iy(t)||Iy(e)||Q6(e))i=sw(e);else if(hb(t)){if(i=t.slice(),hb(e))for(let o=0,s=e.length;o<s;o++)i.push(sw(e[o]));else if(Hf(e)){const o=Object.keys(e);for(let s=0,a=o.length;s<a;s++){const l=o[s];i[l]=sw(e[l])}}}else if(Hf(t))if(Hf(e)){if(!fwe(t,e))return e;i=Object.assign({},t);const o=Object.keys(e);for(let s=0,a=o.length;s<a;s++){const l=o[s],c=e[l];if(Iy(c))typeof c>"u"?delete i[l]:i[l]=c;else{const u=i[l],d=c;if(u5(t,l,n)||u5(e,l,n))delete i[l];else{if(Hf(u)&&Hf(d)){const p=n.get(u)||[],h=n.get(d)||[];p.push({obj:t,key:l}),h.push({obj:e,key:l}),n.set(u,p),n.set(d,h)}i[l]=j6(i[l],c,r,n)}}}}else i=e;return i}}function u5(t,e,r){const n=r.get(t[e])||[];for(let i=0,o=n.length;i<o;i++){const s=n[i];if(s.key===e&&s.obj===t)return!0}return!1}function hb(t){return Array.isArray(t)}function Q6(t){return typeof t=="function"}function Hf(t){return!Iy(t)&&!hb(t)&&!Q6(t)&&typeof t=="object"}function Iy(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t>"u"||t instanceof Date||t instanceof RegExp||t===null}function fwe(t,e){return!(!c5(t)||!c5(e))}class pwe{_promise;_resolve;_reject;constructor(){this._promise=new Promise((e,r)=>{this._resolve=e,this._reject=r})}get promise(){return this._promise}resolve(e){this._resolve(e)}reject(e){this._reject(e)}}class hwe{_callback;_that;_isCalled=!1;_deferred=new pwe;constructor(e,r){this._callback=e,this._that=r}get isCalled(){return this._isCalled}get promise(){return this._deferred.promise}call(...e){if(!this._isCalled){this._isCalled=!0;try{Promise.resolve(this._callback.call(this._that,...e)).then(r=>this._deferred.resolve(r),r=>this._deferred.reject(r))}catch(r){this._deferred.reject(r)}}return this._deferred.promise}}function gwe(){return"unknown_service"}const bp=t=>t!==null&&typeof t=="object"&&typeof t.then=="function";class gb{_rawAttributes;_asyncAttributesPending=!1;_memoizedAttributes;static FromAttributeList(e){const r=new gb({});return r._rawAttributes=d5(e),r._asyncAttributesPending=e.filter(([n,i])=>bp(i)).length>0,r}constructor(e){const r=e.attributes??{};this._rawAttributes=Object.entries(r).map(([n,i])=>(bp(i)&&(this._asyncAttributesPending=!0),[n,i])),this._rawAttributes=d5(this._rawAttributes)}get asyncAttributesPending(){return this._asyncAttributesPending}async waitForAsyncAttributes(){if(this.asyncAttributesPending){for(let e=0;e<this._rawAttributes.length;e++){const[r,n]=this._rawAttributes[e];this._rawAttributes[e]=[r,bp(n)?await n:n]}this._asyncAttributesPending=!1}}get attributes(){if(this.asyncAttributesPending&&Lt.error("Accessing resource attributes before async attributes settled"),this._memoizedAttributes)return this._memoizedAttributes;const e={};for(const[r,n]of this._rawAttributes){if(bp(n)){Lt.debug(`Unsettled resource attribute ${r} skipped`);continue}n!=null&&(e[r]??=n)}return this._asyncAttributesPending||(this._memoizedAttributes=e),e}getRawAttributes(){return this._rawAttributes}merge(e){return e==null?this:gb.FromAttributeList([...e.getRawAttributes(),...this.getRawAttributes()])}}function D6(t){return gb.FromAttributeList(Object.entries(t))}function mwe(){return D6({[TSe]:gwe(),[UC]:nw[UC],[BC]:nw[BC],[FC]:nw[FC]})}function d5(t){return t.map(([e,r])=>bp(r)?[e,r.catch(n=>{Lt.debug("promise rejection for resource attribute: %s - %s",e,n)})]:[e,r])}const Owe="exception";class ywe{_spanContext;kind;parentSpanContext;attributes={};links=[];events=[];startTime;resource;instrumentationScope;_droppedAttributesCount=0;_droppedEventsCount=0;_droppedLinksCount=0;name;status={code:exports.SpanStatusCode.UNSET};endTime=[0,0];_ended=!1;_duration=[-1,-1];_spanProcessor;_spanLimits;_attributeValueLengthLimit;_performanceStartTime;_performanceOffset;_startTimeProvided;constructor(e){const r=Date.now();this._spanContext=e.spanContext,this._performanceStartTime=fd.now(),this._performanceOffset=r-(this._performanceStartTime+k6()),this._startTimeProvided=e.startTime!=null,this._spanLimits=e.spanLimits,this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit||0,this._spanProcessor=e.spanProcessor,this.name=e.name,this.parentSpanContext=e.parentSpanContext,this.kind=e.kind,this.links=e.links||[],this.startTime=this._getTime(e.startTime??r),this.resource=e.resource,this.instrumentationScope=e.scope,e.attributes!=null&&this.setAttributes(e.attributes),this._spanProcessor.onStart(this,e.context)}spanContext(){return this._spanContext}setAttribute(e,r){if(r==null||this._isSpanEnded())return this;if(e.length===0)return Lt.warn(`Invalid attribute key: ${e}`),this;if(!C6(r))return Lt.warn(`Invalid attribute value set for key: ${e}`),this;const{attributeCountLimit:n}=this._spanLimits;return n!==void 0&&Object.keys(this.attributes).length>=n&&!Object.prototype.hasOwnProperty.call(this.attributes,e)?(this._droppedAttributesCount++,this):(this.attributes[e]=this._truncateToSize(r),this)}setAttributes(e){for(const[r,n]of Object.entries(e))this.setAttribute(r,n);return this}addEvent(e,r,n){if(this._isSpanEnded())return this;const{eventCountLimit:i}=this._spanLimits;if(i===0)return Lt.warn("No events allowed."),this._droppedEventsCount++,this;i!==void 0&&this.events.length>=i&&(this._droppedEventsCount===0&&Lt.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),o5(r)&&(o5(n)||(n=r),r=void 0);const o=Ay(r);return this.events.push({name:e,attributes:o,time:this._getTime(n),droppedAttributesCount:0}),this}addLink(e){return this.links.push(e),this}addLinks(e){return this.links.push(...e),this}setStatus(e){return this._isSpanEnded()?this:(this.status={...e},this.status.message!=null&&typeof e.message!="string"&&(Lt.warn(`Dropping invalid status.message of type '${typeof e.message}', expected 'string'`),delete this.status.message),this)}updateName(e){return this._isSpanEnded()?this:(this.name=e,this)}end(e){if(this._isSpanEnded()){Lt.error(`${this.name} ${this._spanContext.traceId}-${this._spanContext.spanId} - You can only call end() on a span once.`);return}this._ended=!0,this.endTime=this._getTime(e),this._duration=QSe(this.startTime,this.endTime),this._duration[0]<0&&(Lt.warn("Inconsistent start and end time, startTime > endTime. Setting span duration to 0ms.",this.startTime,this.endTime),this.endTime=this.startTime.slice(),this._duration=[0,0]),this._droppedEventsCount>0&&Lt.warn(`Dropped ${this._droppedEventsCount} events because eventCountLimit reached`),this._spanProcessor.onEnd(this)}_getTime(e){if(typeof e=="number"&&e<=fd.now())return jSe(e+this._performanceOffset);if(typeof e=="number")return td(e);if(e instanceof Date)return td(e.getTime());if(T6(e))return e;if(this._startTimeProvided)return td(Date.now());const r=fd.now()-this._performanceStartTime;return E6(this.startTime,td(r))}isRecording(){return this._ended===!1}recordException(e,r){const n={};typeof e=="string"?n[tw]=e:e&&(e.code?n[rw]=e.code.toString():e.name&&(n[rw]=e.name),e.message&&(n[tw]=e.message),e.stack&&(n[kSe]=e.stack)),n[rw]||n[tw]?this.addEvent(Owe,n,r):Lt.warn(`Failed to record an exception ${e}`)}get duration(){return this._duration}get ended(){return this._ended}get droppedAttributesCount(){return this._droppedAttributesCount}get droppedEventsCount(){return this._droppedEventsCount}get droppedLinksCount(){return this._droppedLinksCount}_isSpanEnded(){if(this._ended){const e=new Error(`Operation attempted on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`);Lt.warn(`Cannot execute the operation on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`,e)}return this._ended}_truncateToLimitUtil(e,r){return e.length<=r?e:e.substring(0,r)}_truncateToSize(e){const r=this._attributeValueLengthLimit;return r<=0?(Lt.warn(`Attribute value limit must be positive, got ${r}`),e):typeof e=="string"?this._truncateToLimitUtil(e,r):Array.isArray(e)?e.map(n=>typeof n=="string"?this._truncateToLimitUtil(n,r):n):e}}var Nd;(function(t){t[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(Nd||(Nd={}));class mb{shouldSample(){return{decision:Nd.NOT_RECORD}}toString(){return"AlwaysOffSampler"}}class pd{shouldSample(){return{decision:Nd.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}}class bO{_root;_remoteParentSampled;_remoteParentNotSampled;_localParentSampled;_localParentNotSampled;constructor(e){this._root=e.root,this._root||(Dd(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new pd),this._remoteParentSampled=e.remoteParentSampled??new pd,this._remoteParentNotSampled=e.remoteParentNotSampled??new mb,this._localParentSampled=e.localParentSampled??new pd,this._localParentNotSampled=e.localParentNotSampled??new mb}shouldSample(e,r,n,i,o,s){const a=ci.getSpanContext(e);return!a||!bx(a)?this._root.shouldSample(e,r,n,i,o,s):a.isRemote?a.traceFlags&$a.SAMPLED?this._remoteParentSampled.shouldSample(e,r,n,i,o,s):this._remoteParentNotSampled.shouldSample(e,r,n,i,o,s):a.traceFlags&$a.SAMPLED?this._localParentSampled.shouldSample(e,r,n,i,o,s):this._localParentNotSampled.shouldSample(e,r,n,i,o,s)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}}class f5{_ratio;_upperBound;constructor(e=0){this._ratio=e,this._ratio=this._normalize(e),this._upperBound=Math.floor(this._ratio*4294967295)}shouldSample(e,r){return{decision:b6(r)&&this._accumulate(r)<this._upperBound?Nd.RECORD_AND_SAMPLED:Nd.NOT_RECORD}}toString(){return`TraceIdRatioBased{${this._ratio}}`}_normalize(e){return typeof e!="number"||isNaN(e)?0:e>=1?1:e<=0?0:e}_accumulate(e){let r=0;for(let n=0;n<e.length/8;n++){const i=n*8,o=parseInt(e.slice(i,i+8),16);r=(r^o)>>>0}return r}}const p5=1;function N6(){return{sampler:M6(),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128},spanLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128,linkCountLimit:128,eventCountLimit:128,attributePerEventCountLimit:128,attributePerLinkCountLimit:128}}}function M6(){const t="parentbased_always_on";switch(t){case"always_on":return new pd;case"always_off":return new mb;case"parentbased_always_on":return new bO({root:new pd});case"parentbased_always_off":return new bO({root:new mb});case"traceidratio":return new f5(h5());case"parentbased_traceidratio":return new bO({root:new f5(h5())});default:return Lt.error(`OTEL_TRACES_SAMPLER value "${t}" invalid, defaulting to "parentbased_always_on".`),new bO({root:new pd})}}function h5(){return Lt.error(`OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${p5}.`),p5}const vwe=128,bwe=1/0;function xwe(t){const e={sampler:M6()},r=N6(),n=Object.assign({},r,e,t);return n.generalLimits=Object.assign({},r.generalLimits,t.generalLimits||{}),n.spanLimits=Object.assign({},r.spanLimits,t.spanLimits||{}),n}function Swe(t){const e=Object.assign({},t.spanLimits);return e.attributeCountLimit=t.spanLimits?.attributeCountLimit??t.generalLimits?.attributeCountLimit??void 0??void 0??vwe,e.attributeValueLengthLimit=t.spanLimits?.attributeValueLengthLimit??t.generalLimits?.attributeValueLengthLimit??void 0??void 0??bwe,Object.assign({},t,{spanLimits:e})}class wwe{_exporter;_maxExportBatchSize;_maxQueueSize;_scheduledDelayMillis;_exportTimeoutMillis;_isExporting=!1;_finishedSpans=[];_timer;_shutdownOnce;_droppedSpansCount=0;constructor(e,r){this._exporter=e,this._maxExportBatchSize=typeof r?.maxExportBatchSize=="number"?r.maxExportBatchSize:512,this._maxQueueSize=typeof r?.maxQueueSize=="number"?r.maxQueueSize:2048,this._scheduledDelayMillis=typeof r?.scheduledDelayMillis=="number"?r.scheduledDelayMillis:5e3,this._exportTimeoutMillis=typeof r?.exportTimeoutMillis=="number"?r.exportTimeoutMillis:3e4,this._shutdownOnce=new hwe(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(Lt.warn("BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize)}forceFlush(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()}onStart(e,r){}onEnd(e){this._shutdownOnce.isCalled||(e.spanContext().traceFlags&$a.SAMPLED)!==0&&this._addToBuffer(e)}shutdown(){return this._shutdownOnce.call()}_shutdown(){return Promise.resolve().then(()=>this.onShutdown()).then(()=>this._flushAll()).then(()=>this._exporter.shutdown())}_addToBuffer(e){if(this._finishedSpans.length>=this._maxQueueSize){this._droppedSpansCount===0&&Lt.debug("maxQueueSize reached, dropping spans"),this._droppedSpansCount++;return}this._droppedSpansCount>0&&(Lt.warn(`Dropped ${this._droppedSpansCount} spans because maxQueueSize reached`),this._droppedSpansCount=0),this._finishedSpans.push(e),this._maybeStartTimer()}_flushAll(){return new Promise((e,r)=>{const n=[],i=Math.ceil(this._finishedSpans.length/this._maxExportBatchSize);for(let o=0,s=i;o<s;o++)n.push(this._flushOneBatch());Promise.all(n).then(()=>{e()}).catch(r)})}_flushOneBatch(){return this._clearTimer(),this._finishedSpans.length===0?Promise.resolve():new Promise((e,r)=>{const n=setTimeout(()=>{r(new Error("Timeout"))},this._exportTimeoutMillis);ga.with(dSe(ga.active()),()=>{let i;this._finishedSpans.length<=this._maxExportBatchSize?(i=this._finishedSpans,this._finishedSpans=[]):i=this._finishedSpans.splice(0,this._maxExportBatchSize);const o=()=>this._exporter.export(i,a=>{clearTimeout(n),a.code===cs.SUCCESS?e():r(a.error??new Error("BatchSpanProcessor: span export failed"))});let s=null;for(let a=0,l=i.length;a<l;a++){const c=i[a];c.resource.asyncAttributesPending&&c.resource.waitForAsyncAttributes&&(s??=[],s.push(c.resource.waitForAsyncAttributes()))}s===null?o():Promise.all(s).then(o,a=>{Dd(a),r(a)})})})}_maybeStartTimer(){if(this._isExporting)return;const e=()=>{this._isExporting=!0,this._flushOneBatch().finally(()=>{this._isExporting=!1,this._finishedSpans.length>0&&(this._clearTimer(),this._maybeStartTimer())}).catch(r=>{this._isExporting=!1,Dd(r)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return e();this._timer===void 0&&(this._timer=setTimeout(()=>e(),this._scheduledDelayMillis),this._timer,void 0)}_clearTimer(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0)}}class Pwe extends wwe{_visibilityChangeListener;_pageHideListener;constructor(e,r){super(e,r),this.onInit(r)}onInit(e){e?.disableAutoFlushOnDocumentHide!==!0&&typeof document<"u"&&(this._visibilityChangeListener=()=>{document.visibilityState==="hidden"&&this.forceFlush().catch(r=>{Dd(r)})},this._pageHideListener=()=>{this.forceFlush().catch(r=>{Dd(r)})},document.addEventListener("visibilitychange",this._visibilityChangeListener),document.addEventListener("pagehide",this._pageHideListener))}onShutdown(){typeof document<"u"&&(this._visibilityChangeListener&&document.removeEventListener("visibilitychange",this._visibilityChangeListener),this._pageHideListener&&document.removeEventListener("pagehide",this._pageHideListener))}}const Cwe=8,$we=16;class kwe{generateTraceId=g5($we);generateSpanId=g5(Cwe)}const xO=Array(32);function g5(t){return function(){for(let r=0;r<t*2;r++)xO[r]=Math.floor(Math.random()*16)+48,xO[r]>=58&&(xO[r]+=39);return String.fromCharCode.apply(null,xO.slice(0,t*2))}}class Twe{_sampler;_generalLimits;_spanLimits;_idGenerator;instrumentationScope;_resource;_spanProcessor;constructor(e,r,n,i){const o=xwe(r);this._sampler=o.sampler,this._generalLimits=o.generalLimits,this._spanLimits=o.spanLimits,this._idGenerator=r.idGenerator||new kwe,this._resource=n,this._spanProcessor=i,this.instrumentationScope=e}startSpan(e,r={},n=ga.active()){r.root&&(n=ci.deleteSpan(n));const i=ci.getSpan(n);if(TE(n))return Lt.debug("Instrumentation suppressed, returning Noop Span"),ci.wrapSpanContext(y6);const o=i?.spanContext(),s=this._idGenerator.generateSpanId();let a,l,c;!o||!ci.isSpanContextValid(o)?l=this._idGenerator.generateTraceId():(l=o.traceId,c=o.traceState,a=o);const u=r.kind??VC.INTERNAL,d=(r.links??[]).map(v=>({context:v.context,attributes:Ay(v.attributes)})),p=Ay(r.attributes),h=this._sampler.shouldSample(n,l,e,u,p,d);c=h.traceState??c;const m=h.decision===fb.RECORD_AND_SAMPLED?$a.SAMPLED:$a.NONE,g={traceId:l,spanId:s,traceFlags:m,traceState:c};if(h.decision===fb.NOT_RECORD)return Lt.debug("Recording is off, propagating context in a non-recording span"),ci.wrapSpanContext(g);const O=Ay(Object.assign(p,h.attributes));return new ywe({resource:this._resource,scope:this.instrumentationScope,context:n,spanContext:g,name:e,kind:u,links:d,parentSpanContext:a,attributes:O,startTime:r.startTime,spanProcessor:this._spanProcessor,spanLimits:this._spanLimits})}startActiveSpan(e,r,n,i){let o,s,a;if(arguments.length<2)return;arguments.length===2?a=r:arguments.length===3?(o=r,a=n):(o=r,s=n,a=i);const l=s??ga.active(),c=this.startSpan(e,o,l),u=ci.setSpan(l,c);return ga.with(u,a,void 0,c)}getGeneralLimits(){return this._generalLimits}getSpanLimits(){return this._spanLimits}}class Ewe{_spanProcessors;constructor(e){this._spanProcessors=e}forceFlush(){const e=[];for(const r of this._spanProcessors)e.push(r.forceFlush());return new Promise(r=>{Promise.all(e).then(()=>{r()}).catch(n=>{Dd(n||new Error("MultiSpanProcessor: forceFlush failed")),r()})})}onStart(e,r){for(const n of this._spanProcessors)n.onStart(e,r)}onEnd(e){for(const r of this._spanProcessors)r.onEnd(e)}shutdown(){const e=[];for(const r of this._spanProcessors)e.push(r.shutdown());return new Promise((r,n)=>{Promise.all(e).then(()=>{r()},n)})}}var pc;(function(t){t[t.resolved=0]="resolved",t[t.timeout=1]="timeout",t[t.error=2]="error",t[t.unresolved=3]="unresolved"})(pc||(pc={}));class Awe{_config;_tracers=new Map;_resource;_activeSpanProcessor;constructor(e={}){const r=dwe({},N6(),Swe(e));this._resource=r.resource??mwe(),this._config=Object.assign({},r,{resource:this._resource});const n=[];e.spanProcessors?.length&&n.push(...e.spanProcessors),this._activeSpanProcessor=new Ewe(n)}getTracer(e,r,n){const i=`${e}@${r||""}:${n?.schemaUrl||""}`;return this._tracers.has(i)||this._tracers.set(i,new Twe({name:e,version:r,schemaUrl:n?.schemaUrl},this._config,this._resource,this._activeSpanProcessor)),this._tracers.get(i)}forceFlush(){const e=this._config.forceFlushTimeoutMillis,r=this._activeSpanProcessor._spanProcessors.map(n=>new Promise(i=>{let o;const s=setTimeout(()=>{i(new Error(`Span processor did not completed within timeout period of ${e} ms`)),o=pc.timeout},e);n.forceFlush().then(()=>{clearTimeout(s),o!==pc.timeout&&(o=pc.resolved,i(o))}).catch(a=>{clearTimeout(s),o=pc.error,i(a)})}));return new Promise((n,i)=>{Promise.all(r).then(o=>{const s=o.filter(a=>a!==pc.resolved);s.length>0?i(s):n()}).catch(o=>i([o]))})}shutdown(){return this._activeSpanProcessor.shutdown()}}class Iwe{_enabled=!1;_currentContext=Uu;_bindFunction(e=Uu,r){const n=this,i=function(...o){return n.with(e,()=>r.apply(this,o))};return Object.defineProperty(i,"length",{enumerable:!1,configurable:!0,writable:!1,value:r.length}),i}active(){return this._currentContext}bind(e,r){return e===void 0&&(e=this.active()),typeof r=="function"?this._bindFunction(e,r):r}disable(){return this._currentContext=Uu,this._enabled=!1,this}enable(){return this._enabled?this:(this._enabled=!0,this._currentContext=Uu,this)}with(e,r,n,...i){const o=this._currentContext;this._currentContext=e||Uu;try{return r.call(n,...i)}finally{this._currentContext=o}}}function Rwe(t){if(t!==null){if(t===void 0){const e=new Iwe;e.enable(),ga.setGlobalContextManager(e);return}t.enable(),ga.setGlobalContextManager(t)}}function _we(t){if(t!==null){if(t===void 0){zp.setGlobalPropagator(new NSe({propagators:[new KSe,new vSe]}));return}zp.setGlobalPropagator(t)}}class jwe extends Awe{constructor(e={}){super(e)}register(e={}){ci.setGlobalTracerProvider(this),_we(e.propagator),Rwe(e.contextManager)}}class Qwe{_delegate;constructor(e){this._delegate=e}export(e,r){this._delegate.export(e,r)}forceFlush(){return this._delegate.forceFlush()}shutdown(){return this._delegate.shutdown()}}class m5 extends Error{code;name="OTLPExporterError";data;constructor(e,r,n){super(e),this.data=n,this.code=r}}function Dwe(t){if(Number.isFinite(t)&&t>0)return t;throw new Error(`Configuration: timeoutMillis is invalid, expected number greater than 0 (actual: '${t}')`)}function Nwe(t){if(t!=null)return()=>t}function Mwe(t,e,r){return{timeoutMillis:Dwe(t.timeoutMillis??e.timeoutMillis??r.timeoutMillis),concurrencyLimit:t.concurrencyLimit??e.concurrencyLimit??r.concurrencyLimit,compression:t.compression??e.compression??r.compression}}function qwe(){return{timeoutMillis:1e4,concurrencyLimit:30,compression:"none"}}class zwe{_concurrencyLimit;_sendingPromises=[];constructor(e){this._concurrencyLimit=e}pushPromise(e){if(this.hasReachedLimit())throw new Error("Concurrency Limit reached");this._sendingPromises.push(e);const r=()=>{const n=this._sendingPromises.indexOf(e);this._sendingPromises.splice(n,1)};e.then(r,r)}hasReachedLimit(){return this._sendingPromises.length>=this._concurrencyLimit}async awaitAll(){await Promise.all(this._sendingPromises)}}function Lwe(t){return new zwe(t.concurrencyLimit)}function Vwe(t){return Object.prototype.hasOwnProperty.call(t,"partialSuccess")}function Xwe(){return{handleResponse(t){t==null||!Vwe(t)||t.partialSuccess==null||Object.keys(t.partialSuccess).length===0||Lt.warn("Received Partial Success response:",JSON.stringify(t.partialSuccess))}}}class Wwe{_transport;_serializer;_responseHandler;_promiseQueue;_timeout;_diagLogger;constructor(e,r,n,i,o){this._transport=e,this._serializer=r,this._responseHandler=n,this._promiseQueue=i,this._timeout=o,this._diagLogger=Lt.createComponentLogger({namespace:"OTLPExportDelegate"})}export(e,r){if(this._diagLogger.debug("items to be sent",e),this._promiseQueue.hasReachedLimit()){r({code:cs.FAILED,error:new Error("Concurrent export limit reached")});return}const n=this._serializer.serializeRequest(e);if(n==null){r({code:cs.FAILED,error:new Error("Nothing to send")});return}this._promiseQueue.pushPromise(this._transport.send(n,this._timeout).then(i=>{if(i.status==="success"){if(i.data!=null)try{this._responseHandler.handleResponse(this._serializer.deserializeResponse(i.data))}catch(o){this._diagLogger.warn("Export succeeded but could not deserialize response - is the response specification compliant?",o,i.data)}r({code:cs.SUCCESS});return}else if(i.status==="failure"&&i.error){r({code:cs.FAILED,error:i.error});return}else i.status==="retryable"?r({code:cs.FAILED,error:new m5("Export failed with retryable status")}):r({code:cs.FAILED,error:new m5("Export failed with unknown error")})},i=>r({code:cs.FAILED,error:i})))}forceFlush(){return this._promiseQueue.awaitAll()}async shutdown(){this._diagLogger.debug("shutdown started"),await this.forceFlush(),this._transport.shutdown()}}function Uwe(t,e){return new Wwe(t.transport,t.serializer,Xwe(),t.promiseHandler,e.timeout)}function q6(t,e,r){return Uwe({transport:r,serializer:e,promiseHandler:Lwe(t)},{timeout:t.timeoutMillis})}function O5(t){return t>=48&&t<=57?t-48:t>=97&&t<=102?t-87:t-55}function z6(t){const e=new Uint8Array(t.length/2);let r=0;for(let n=0;n<t.length;n+=2){const i=O5(t.charCodeAt(n)),o=O5(t.charCodeAt(n+1));e[r++]=i<<4|o}return e}function L6(t){const e=BigInt(1e9);return BigInt(t[0])*e+BigInt(t[1])}function Bwe(t){const e=Number(BigInt.asUintN(32,t)),r=Number(BigInt.asUintN(32,t>>BigInt(32)));return{low:e,high:r}}function Fwe(t){const e=L6(t);return Bwe(e)}function Zwe(t){return L6(t).toString()}const Ywe=typeof BigInt<"u"?Zwe:DSe;function y5(t){return t}function Gwe(t){if(t!==void 0)return z6(t)}const Hwe={encodeHrTime:Fwe,encodeSpanContext:z6,encodeOptionalSpanContext:Gwe};function Jwe(t){return t===void 0?Hwe:{encodeHrTime:Ywe,encodeSpanContext:y5,encodeOptionalSpanContext:y5}}function Kwe(t){return{attributes:xx(t.attributes),droppedAttributesCount:0}}function ePe(t){return{name:t.name,version:t.version}}function xx(t){return Object.keys(t).map(e=>V6(e,t[e]))}function V6(t,e){return{key:t,value:X6(e)}}function X6(t){const e=typeof t;return e==="string"?{stringValue:t}:e==="number"?Number.isInteger(t)?{intValue:t}:{doubleValue:t}:e==="boolean"?{boolValue:t}:t instanceof Uint8Array?{bytesValue:t}:Array.isArray(t)?{arrayValue:{values:t.map(X6)}}:e==="object"&&t!=null?{kvlistValue:{values:Object.entries(t).map(([r,n])=>V6(r,n))}}:{}}function tPe(t,e){const r=t.spanContext(),n=t.status,i=t.parentSpanContext?.spanId?e.encodeSpanContext(t.parentSpanContext?.spanId):void 0;return{traceId:e.encodeSpanContext(r.traceId),spanId:e.encodeSpanContext(r.spanId),parentSpanId:i,traceState:r.traceState?.serialize(),name:t.name,kind:t.kind==null?0:t.kind+1,startTimeUnixNano:e.encodeHrTime(t.startTime),endTimeUnixNano:e.encodeHrTime(t.endTime),attributes:xx(t.attributes),droppedAttributesCount:t.droppedAttributesCount,events:t.events.map(o=>nPe(o,e)),droppedEventsCount:t.droppedEventsCount,status:{code:n.code,message:n.message},links:t.links.map(o=>rPe(o,e)),droppedLinksCount:t.droppedLinksCount}}function rPe(t,e){return{attributes:t.attributes?xx(t.attributes):[],spanId:e.encodeSpanContext(t.context.spanId),traceId:e.encodeSpanContext(t.context.traceId),traceState:t.context.traceState?.serialize(),droppedAttributesCount:t.droppedAttributesCount||0}}function nPe(t,e){return{attributes:t.attributes?xx(t.attributes):[],name:t.name,timeUnixNano:e.encodeHrTime(t.time),droppedAttributesCount:t.droppedAttributesCount||0}}function iPe(t,e){const r=Jwe(e);return{resourceSpans:sPe(t,r)}}function oPe(t){const e=new Map;for(const r of t){let n=e.get(r.resource);n||(n=new Map,e.set(r.resource,n));const i=`${r.instrumentationScope.name}@${r.instrumentationScope.version||""}:${r.instrumentationScope.schemaUrl||""}`;let o=n.get(i);o||(o=[],n.set(i,o)),o.push(r)}return e}function sPe(t,e){const r=oPe(t),n=[],i=r.entries();let o=i.next();for(;!o.done;){const[s,a]=o.value,l=[],c=a.values();let u=c.next();for(;!u.done;){const p=u.value;if(p.length>0){const h=p.map(m=>tPe(m,e));l.push({scope:ePe(p[0].instrumentationScope),spans:h,schemaUrl:p[0].instrumentationScope.schemaUrl})}u=c.next()}const d={resource:Kwe(s),scopeSpans:l,schemaUrl:void 0};n.push(d),o=i.next()}return n}const aPe={serializeRequest:t=>{const e=iPe(t,{});return new TextEncoder().encode(JSON.stringify(e))},deserializeResponse:t=>{if(t.length===0)return{};const e=new TextDecoder;return JSON.parse(e.decode(t))}},lPe=5,cPe=1e3,uPe=5e3,dPe=1.5,v5=.2;function fPe(){return Math.random()*(2*v5)-v5}class pPe{_transport;constructor(e){this._transport=e}retry(e,r,n){return new Promise((i,o)=>{setTimeout(()=>{this._transport.send(e,r).then(i,o)},n)})}async send(e,r){const n=Date.now()+r;let i=await this._transport.send(e,r),o=lPe,s=cPe;for(;i.status==="retryable"&&o>0;){o--;const a=Math.max(Math.min(s,uPe)+fPe(),0);s=s*dPe;const l=i.retryInMillis??a,c=n-Date.now();if(l>c)return i;i=await this.retry(e,c,l)}return i}shutdown(){return this._transport.shutdown()}}function W6(t){return new pPe(t.transport)}function hPe(t){return[429,502,503,504].includes(t)}function gPe(t){if(t==null)return;const e=Number.parseInt(t,10);if(Number.isInteger(e))return e>0?e*1e3:-1;const r=new Date(t).getTime()-Date.now();return r>=0?r:0}class mPe{_parameters;constructor(e){this._parameters=e}send(e,r){return new Promise(n=>{const i=new XMLHttpRequest;i.timeout=r,i.open("POST",this._parameters.url);const o=this._parameters.headers();Object.entries(o).forEach(([s,a])=>{i.setRequestHeader(s,a)}),i.ontimeout=s=>{n({status:"failure",error:new Error("XHR request timed out")})},i.onreadystatechange=()=>{i.status>=200&&i.status<=299?(Lt.debug("XHR success"),n({status:"success"})):i.status&&hPe(i.status)?n({status:"retryable",retryInMillis:gPe(i.getResponseHeader("Retry-After"))}):i.status!==0&&n({status:"failure",error:new Error("XHR request failed with non-retryable status")})},i.onabort=()=>{n({status:"failure",error:new Error("XHR request aborted")})},i.onerror=()=>{n({status:"failure",error:new Error("XHR request errored")})},i.send(e)})}shutdown(){}}function OPe(t){return new mPe(t)}class yPe{_params;constructor(e){this._params=e}send(e){return new Promise(r=>{navigator.sendBeacon(this._params.url,new Blob([e],{type:this._params.blobType}))?(Lt.debug("SendBeacon success"),r({status:"success"})):r({status:"failure",error:new Error("SendBeacon failed")})})}shutdown(){}}function vPe(t){return new yPe(t)}function bPe(t,e){return q6(t,e,W6({transport:OPe(t)}))}function xPe(t,e){return q6(t,e,W6({transport:vPe({url:t.url,blobType:t.headers()["Content-Type"]})}))}function SPe(t){return()=>{const e={};return Object.entries(t?.()??{}).forEach(([r,n])=>{typeof n<"u"?e[r]=String(n):Lt.warn(`Header "${r}" has invalid value (${n}) and will be ignored`)}),e}}function wPe(t,e,r){const n={...r()},i={};return()=>(e!=null&&Object.assign(i,e()),t!=null&&Object.assign(i,t()),Object.assign(i,n))}function PPe(t){if(t!=null)try{return new URL(t),t}catch{throw new Error(`Configuration: Could not parse user-provided export URL: '${t}'`)}}function CPe(t,e,r){return{...Mwe(t,e,r),headers:wPe(SPe(t.headers),e.headers,r.headers),url:PPe(t.url)??e.url??r.url,agentOptions:t.agentOptions??e.agentOptions??r.agentOptions}}function $Pe(t,e){return{...qwe(),headers:()=>t,url:"http://localhost:4318/"+e,agentOptions:{keepAlive:!0}}}function kPe(t,e,r){return CPe({url:t.url,timeoutMillis:t.timeoutMillis,headers:Nwe(t.headers),concurrencyLimit:t.concurrencyLimit},{},$Pe(r,e))}function TPe(t,e,r,n){const i=!!t.headers||typeof navigator.sendBeacon!="function",o=kPe(t,r,n);return i?bPe(o,e):xPe(o,e)}class EPe extends Qwe{constructor(e={}){super(TPe(e,aPe,"v1/traces",{"Content-Type":"application/json"}))}}const APe="service.name",IPe="service.version";class U6{emit(e){}}const RPe=new U6;class _Pe{getLogger(e,r,n){return new U6}}const B6=new _Pe;class jPe{constructor(e,r,n,i){this._provider=e,this.name=r,this.version=n,this.options=i}emit(e){this._getLogger().emit(e)}_getLogger(){if(this._delegate)return this._delegate;const e=this._provider.getDelegateLogger(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):RPe}}class b5{getLogger(e,r,n){var i;return(i=this.getDelegateLogger(e,r,n))!==null&&i!==void 0?i:new jPe(this,e,r,n)}getDelegate(){var e;return(e=this._delegate)!==null&&e!==void 0?e:B6}setDelegate(e){this._delegate=e}getDelegateLogger(e,r,n){var i;return(i=this._delegate)===null||i===void 0?void 0:i.getLogger(e,r,n)}}const QPe=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{},SO=Symbol.for("io.opentelemetry.js.api.logs"),Jf=QPe;function DPe(t,e,r){return n=>n===t?e:r}const x5=1;class AE{constructor(){this._proxyLoggerProvider=new b5}static getInstance(){return this._instance||(this._instance=new AE),this._instance}setGlobalLoggerProvider(e){return Jf[SO]?this.getLoggerProvider():(Jf[SO]=DPe(x5,e,B6),this._proxyLoggerProvider.setDelegate(e),e)}getLoggerProvider(){var e,r;return(r=(e=Jf[SO])===null||e===void 0?void 0:e.call(Jf,x5))!==null&&r!==void 0?r:this._proxyLoggerProvider}getLogger(e,r,n){return this.getLoggerProvider().getLogger(e,r,n)}disable(){delete Jf[SO],this._proxyLoggerProvider=new b5}}const F6=AE.getInstance();function NPe(t,e,r,n){for(let i=0,o=t.length;i<o;i++){const s=t[i];e&&s.setTracerProvider(e),r&&s.setMeterProvider(r),n&&s.setLoggerProvider&&s.setLoggerProvider(n),s.getConfig().enabled||s.enable()}}function MPe(t){t.forEach(e=>e.disable())}function qPe(t){const e=t.tracerProvider||ci.getTracerProvider(),r=t.meterProvider||S6.getMeterProvider(),n=t.loggerProvider||F6.getLoggerProvider(),i=t.instrumentations?.flat()??[];return NPe(i,e,r,n),()=>{MPe(i)}}let Ni=console.error.bind(console);function Kf(t,e,r){const n=!!t[e]&&Object.prototype.propertyIsEnumerable.call(t,e);Object.defineProperty(t,e,{configurable:!0,enumerable:n,writable:!0,value:r})}const Z6=(t,e,r)=>{if(!t||!t[e]){Ni("no original function "+String(e)+" to wrap");return}if(!r){Ni("no wrapper function"),Ni(new Error().stack);return}const n=t[e];if(typeof n!="function"||typeof r!="function"){Ni("original object and wrapper must be functions");return}const i=r(n,e);return Kf(i,"__original",n),Kf(i,"__unwrap",()=>{t[e]===i&&Kf(t,e,n)}),Kf(i,"__wrapped",!0),Kf(t,e,i),i},zPe=(t,e,r)=>{if(t)Array.isArray(t)||(t=[t]);else{Ni("must provide one or more modules to patch"),Ni(new Error().stack);return}if(!(e&&Array.isArray(e))){Ni("must provide one or more functions to wrap on modules");return}t.forEach(n=>{e.forEach(i=>{Z6(n,i,r)})})},Y6=(t,e)=>{if(!t||!t[e]){Ni("no function to unwrap."),Ni(new Error().stack);return}const r=t[e];if(!r.__unwrap)Ni("no original to unwrap to -- has "+String(e)+" already been unwrapped?");else{r.__unwrap();return}},LPe=(t,e)=>{if(t)Array.isArray(t)||(t=[t]);else{Ni("must provide one or more modules to patch"),Ni(new Error().stack);return}if(!(e&&Array.isArray(e))){Ni("must provide one or more functions to unwrap on modules");return}t.forEach(r=>{e.forEach(n=>{Y6(r,n)})})};class VPe{instrumentationName;instrumentationVersion;_config={};_tracer;_meter;_logger;_diag;constructor(e,r,n){this.instrumentationName=e,this.instrumentationVersion=r,this.setConfig(n),this._diag=Lt.createComponentLogger({namespace:e}),this._tracer=ci.getTracer(e,r),this._meter=S6.getMeter(e,r),this._logger=F6.getLogger(e,r),this._updateMetricInstruments()}_wrap=Z6;_unwrap=Y6;_massWrap=zPe;_massUnwrap=LPe;get meter(){return this._meter}setMeterProvider(e){this._meter=e.getMeter(this.instrumentationName,this.instrumentationVersion),this._updateMetricInstruments()}get logger(){return this._logger}setLoggerProvider(e){this._logger=e.getLogger(this.instrumentationName,this.instrumentationVersion)}getModuleDefinitions(){const e=this.init()??[];return Array.isArray(e)?e:[e]}_updateMetricInstruments(){}getConfig(){return this._config}setConfig(e){this._config={enabled:!0,...e}}setTracerProvider(e){this._tracer=e.getTracer(this.instrumentationName,this.instrumentationVersion)}get tracer(){return this._tracer}_runSpanCustomizationHook(e,r,n,i){if(e)try{e(n,i)}catch(o){this._diag.error("Error running span customization hook due to exception in handler",{triggerName:r},o)}}}class XPe extends VPe{constructor(e,r,n){super(e,r,n),this._config.enabled&&this.enable()}}class WPe{span=void 0;constructor(e){this.span=e}get context(){return this.span?.context}error(e){this.span&&(this.span.setStatus(exports.SpanStatusCode.ERROR,e.message),this.span.recordException(e),this.span.end())}setAttribute(e,r){this.span&&this.span.setAttribute(e,r)}end(){this.span&&(this.span.setStatus(exports.SpanStatusCode.OK),this.span.end())}}class UPe{config=null;tracer=null;tracerProvider=null;initialized=!1;initTracer(e){throw new Error("initTracer must be implemented by the environment-specific client")}init(e){this.config=e,this.initTracer(e)}send(e){try{if(!this.tracer||!this.config)return;const r=e.time?new Date(e.time):new Date;this.tracer.startSpan(`event.${e.type}`,{attributes:this.processAttributes(e,r),startTime:r}).end(r)}catch(r){this.config?.isProd||console.error("Event reporting failed:",r)}}processAttributes(e,r){const i={"cloudevents.event_id":db(),"cloudevents.event_type":e.type,"cloudevents.event_source":e.source,"cloudevents.event_spec_version":e.specversion,"cloudevents.event_data_content_type":e.datacontenttype||"application/json; charset=utf-8","cloudevents.event_time":r.toISOString(),"cloudevents.event_subject":e.subject??"","cloudevents.page.uri":location.href,"cloudevents.event_version":this.config?.version,"cloudevents.event_origin":this.config?.serviceName,"cloudevents.event_source_details.id":e.sourceDetails?.id??"anonymous","cloudevents.event_source_details.object":e.sourceDetails?.object??"anonymous","cloudevents.event_source_details.uri":e.sourceDetails?.uri};if(e.data&&typeof e.data=="object"&&!Array.isArray(e.data))for(const[o,s]of Object.entries(e.data)){const a=o.replace(/([A-Z])/g,"_$1").toLowerCase();if(s!==void 0)if(typeof s=="object"&&s!==null&&!Array.isArray(s))for(const[l,c]of Object.entries(s))c!==void 0&&(i[`cloudevents.event_data.${a}.${l}`]=c);else i[`cloudevents.event_data.${a}`]=s}if(e.data&&Array.isArray(e.data)){if(e.data.some(s=>s&&typeof s=="object"&&"object"in s)){const s=[],a=[];for(const l of e.data){if(!l||typeof l!="object")continue;const c=l.object;if(!c||typeof c!="string")continue;const u=l,d=a.find(p=>p.object===c);if(d){s.push(d,u);const p=a.indexOf(d);a.splice(p,1)}else s.some(h=>h.object===c)||a.push(u)}for(let l=0;l<s.length;l++){const c=s[l],u=l===0?"after.":"before.",d=`${c.object}.`;for(const[p,h]of Object.entries(c))if(h!==void 0){const m=p.replace(/([A-Z])/g,"_$1").toLowerCase();i[`cloudevents.event_data.${u}${d}${m}`]=h}}for(const l of a){const c=`${l.object}.`;for(const[u,d]of Object.entries(l))if(d!==void 0){const p=u.replace(/([A-Z])/g,"_$1").toLowerCase();i[`cloudevents.event_data.${c}${p}`]=d}}}else for(const s of e.data)if(s&&typeof s=="object"){for(const[a,l]of Object.entries(s))if(l!==void 0){const c=a.replace(/([A-Z])/g,"_$1").toLowerCase();i[`cloudevents.event_data.${c}`]=l}}}if("subjects"in e&&Array.isArray(e.subjects)){const o=e.subjects.reduce((s,a)=>{if(!a||typeof a!="object")return s;const l=a.object;if(!l||typeof l!="string")return s;const c=s.notUpdated.find(({object:u})=>u===l);return c?(s.updated=[c,a],s.notUpdated=s.notUpdated.filter(({object:u})=>u!==l)):s.updated.some(({object:u})=>u===l)||s.notUpdated.push(a),s},{updated:[],notUpdated:[]});o.updated.forEach((s,a)=>{const l=a===0?"after.":"before.",c=`${s.object}.`;Object.entries(s).forEach(([u,d])=>{d!==void 0&&(i[`cloudevents.subjects.${l}${c}${u}`]=d)})}),o.notUpdated.forEach(s=>{const a=`${s.object}.`;Object.entries(s).forEach(([l,c])=>{c!==void 0&&(i[`cloudevents.subjects.${a}${l}`]=c)})})}return Object.entries(e).forEach(([o,s])=>{["id","source","type","specversion","time","datacontenttype","data","subject","sourceDetails","analyticsMetadata","context"].includes(o)||s!==void 0&&(s instanceof Object?Object.entries(s).forEach(([a,l])=>{l!==void 0&&(i[`cloudevents.${o}.${a}`]=l)}):i[`cloudevents.${o}`]=s)}),i}startSpan(e,r){try{if(!this.tracer)return;let n;const i=e.time?new Date(e.time):new Date,o=this.tracer.startSpan(`event.${e.type}`,{attributes:this.processAttributes(e,i),root:!r},r);return r||(n=ci.setSpan(ga.active(),o)),{end:()=>o.end(),setAttribute:(s,a)=>{o.setAttribute(`cloudevents.event_data.${this.getKeySnakeValue(s)}`,a)},setStatus:(s,a)=>o.setStatus({code:s,message:a}),parentCtx:n}}catch(n){this.config?.isProd||console.error("Event reporting failed:",n);return}}startStepSpan(e){try{if(!this.tracer)return;const r=ga.active(),n=e.time?new Date(e.time):new Date,i=this.tracer.startSpan(`event.${e.type}`,{attributes:this.processAttributes(e,n)},r),o=ci.setSpan(r,i);return{end:()=>i.end(),setAttribute:(s,a)=>{i.setAttribute(`cloudevents.event_data.${this.getKeySnakeValue(s)}`,a)},setStatus:(s,a)=>i.setStatus({code:s,message:a}),recordException:s=>i.recordException(s),context:o}}catch(r){this.config?.isProd||console.error("Event reporting failed:",r);return}}traceStep(e){const r=this.startStepSpan(e);if(r)return new WPe(r)}async forceFlush(){return this.tracerProvider?.forceFlush()}async shutdown(){return this.tracerProvider?.shutdown()}getKeySnakeValue=e=>e.replace(/([A-Z])/g,"_$1").toLowerCase()}class BPe extends UPe{tracerProvider=null;tracer=null;initialized=!1;constructor(){super()}initTracer(e){if(!e.collectorUrl&&!e.collectorTraceUrl)return;const r=`ses_${db()}`,n=D6({[APe]:e.serviceName,[IPe]:e.serviceVersion,session_id:r}),i=e.collectorTraceUrl||`${e.collectorUrl}/v1/traces`;this.tracerProvider=new jwe({resource:n,spanProcessors:[new Pwe(new EPe({url:i,headers:{}}))]}),this.tracer=this.tracerProvider.getTracer(e.tracerName),this.tracerProvider.register(),qPe({instrumentations:e.instrumentations??[]}),this.initialized=!0}}class ua extends XPe{sendErrorEvent;originalConsoleError;constructor(e,r){super("errors","1.0",e||{}),this.sendErrorEvent=r}static toErrorEvent(e,r){return{type:"error",payload:{handler:r,errorType:ua.getErrorType(e),message:ua.getErrorMessage(e),stack:ua.getErrorStack(e)}}}enable(){window.addEventListener("error",this.onError),window.addEventListener("unhandledrejection",this.onUnhandledRejection),this.wrapConsoleError()}disable(){window.removeEventListener("error",this.onError),window.removeEventListener("unhandledrejection",this.onUnhandledRejection),this.unwrapConsoleError()}init(){}static getErrorMessage(e){return e?(typeof e=="object"&&"message"in e?String(e.message):String(e)).trim():void 0}static getErrorStack(e){if(!e||typeof e!="object"||!("stack"in e)||!e.stack)return;const r=String(e.stack);return r.length>4096?r.substring(0,4096):r}static getErrorType(e){return!e||typeof e!="object"?typeof e:"name"in e?String(e.name):"constructor"in e&&"name"in e.constructor?String(e.constructor.name):"Error"}static combineConsoleErrorArgs(e){const r=e.findIndex(i=>i instanceof Error),n=e.filter((i,o)=>o!==r).map(i=>String(i)).join(" ");if(r===-1)return n;{const i=e[r];return n&&(i.message=`${i.message} ${n}`),i}}onError=e=>{this.sendError(e.error,"window.onerror")};onUnhandledRejection=e=>{this.sendError(e.reason,"window.onunhandledrejection")};wrapConsoleError(){this.originalConsoleError=console.error,console.error=(...e)=>{try{const r=ua.combineConsoleErrorArgs(e);this.sendError(r,"console.error")}catch(r){process.env.NODE_ENV!=="production"&&this.originalConsoleError?.call(console,"Error reporting failed:",r)}this.originalConsoleError?.apply(console,e)}}unwrapConsoleError(){this.originalConsoleError&&(console.error=this.originalConsoleError,this.originalConsoleError=void 0)}sendError(e,r){this.sendErrorEvent(ua.toErrorEvent(e,r))}}class FPe{config=null;initialized=!1;useCloudEventData;otelClient;tracer;constructor(){this.useCloudEventData=()=>({organization:{id:"",slug:""},project:{id:"",slug:""},productType:"",sourceDetails:{user:"Anonymous",object:"user",uri:""},request:{source:""}}),this.otelClient=new BPe,this.tracer={traceStep:(e,r)=>{const n=this.constructCloudEvent(e,r);return this.otelClient.traceStep(n)}}}updateCloudEventData=e=>{this.config?.disabled||(this.useCloudEventData=e)};send(e,r){try{if(!this.config?.otel.isProd)return;const n=this.constructCloudEvent(e,r);this.sendToOtelService(n)}catch(n){this.config?.otel.isProd||console.error("Event reporting failed:",n)}}init(e){e.disabled||this.initialized||(this.config=e,this.initialized=!0,this.otelClient.init({serviceVersion:e.otel.serviceVersion,version:e.otel.version,isProd:e.otel.isProd,collectorUrl:e.otel.collectorUrl,collectorTraceUrl:e.otel.collectorTraceUrl,serviceName:e.otel.serviceName,tracerName:e.otel.tracerName,instrumentations:[...e.otel.enableErrorInstrumentation===!0?[new ua(void 0,r=>{this.sendErrorMessage(r.payload)})]:[],...e.otel.instrumentations||[]]}))}startSpan(e,r,n){if(this.config?.disabled)return;const i=this.constructCloudEvent(e,r);return this.otelClient.startSpan(i,n)}constructCloudEvent(e,r){const n=this.useCloudEventData();return{id:`evt_${db()}`,type:e,source:n.request.source||"",specversion:"1.0",datacontenttype:"application/json",time:new Date().toISOString(),data:r,origin:n.origin||"ui",sourceDetails:{id:n.sourceDetails.user||`usr_${db()}`,object:n.sourceDetails.object||"user",uri:n.sourceDetails.uri||""},organization:n.organization,project:n.project,productType:n.productType}}sendToOtelService(e){this.config?.otel.isProd||console.log("CloudEvent to be sent to OTEL service:",e),this.otelClient.send(e)}forceFlush(){return this.config?.disabled?Promise.resolve():this.otelClient.forceFlush()}shutdown(){return this.config?.disabled?Promise.resolve():this.otelClient.shutdown()}sendError(e,r){this.config?.disabled||this.send(ua.toErrorEvent(e,r).type,ua.toErrorEvent(e,r).payload)}sendTabChangeMessage(){this.send("tab.change")}sendButtonClickMessage(){this.send("button.click")}sendChangeMessage(){this.send("change")}sendContentCopyMessage(){this.send("content.copy")}sendRequestSendMessage(){this.send("request.send")}sendTokenGenerateMessage(){this.send("token.generate")}sendAppLifecycleMessage(){this.send("app.lifecycle")}sendEnvironmentManagementMessage(){this.send("environment.management")}sendServerManagementMessage(){this.send("server.management")}sendInputManagementMessage(){this.send("input.management")}sendNodeManagementMessage(){this.send("node.management")}sendHistoryManagementMessage(){this.send("history.management")}sendCredentialManagementMessage(){this.send("credential.management")}sendPanelToggleMessage(){this.send("panel.toggle")}sendWorkflowRunClickMessage(e){this.send("workflow.run.click",e)}sendWorkflowRunResultMessage(){this.send("workflow.run.result")}sendStorageReadMessage(){this.send("storage.read")}sendStorageLoadUserStateMessage(){this.send("storage.loadUserState")}sendStorageDetectFilesMessage(){this.send("storage.detectFiles")}sendStorageLoadApisMessage(){this.send("storage.loadApis")}sendStorageParseApisMessage(){this.send("storage.parseApis")}sendStorageParseCollectionsMessage(){this.send("storage.parseCollections")}sendUpdaterCheckMessage(){this.send("updater.check")}sendUpdaterDownloadMessage(){this.send("updater.download")}sendUpdaterInstallMessage(){this.send("updater.install")}sendUpdaterProcessMessage(){this.send("updater.process")}sendErrorMessage(e){this.send("error",e)}sendCodeEditorSearchMessage(e){this.send("code_editor.search",e)}}const Sx=["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"],ZPe="https://cors.redocly.com/";function YPe(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function S5(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function w5(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?S5(Object(r),!0).forEach(function(n){YPe(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):S5(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function yn(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var P5=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})(),aw=function(){return Math.random().toString(36).substring(7).split("").join(".")},wl={INIT:"@@redux/INIT"+aw(),REPLACE:"@@redux/REPLACE"+aw(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+aw()}};function G6(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function GPe(t){if(t===void 0)return"undefined";if(t===null)return"null";var e=typeof t;switch(e){case"boolean":case"string":case"number":case"symbol":case"function":return e}if(Array.isArray(t))return"array";if(KPe(t))return"date";if(JPe(t))return"error";var r=HPe(t);switch(r){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return r}return e.slice(8,-1).toLowerCase().replace(/\s/g,"")}function HPe(t){return typeof t.constructor=="function"?t.constructor.name:null}function JPe(t){return t instanceof Error||typeof t.message=="string"&&t.constructor&&typeof t.constructor.stackTraceLimit=="number"}function KPe(t){return t instanceof Date?!0:typeof t.toDateString=="function"&&typeof t.getDate=="function"&&typeof t.setDate=="function"}function il(t){var e=typeof t;return process.env.NODE_ENV!=="production"&&(e=GPe(t)),e}function wx(t,e,r){var n;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?yn(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(process.env.NODE_ENV==="production"?yn(1):"Expected the enhancer to be a function. Instead, received: '"+il(r)+"'");return r(wx)(t,e)}if(typeof t!="function")throw new Error(process.env.NODE_ENV==="production"?yn(2):"Expected the root reducer to be a function. Instead, received: '"+il(t)+"'");var i=t,o=e,s=[],a=s,l=!1;function c(){a===s&&(a=s.slice())}function u(){if(l)throw new Error(process.env.NODE_ENV==="production"?yn(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return o}function d(g){if(typeof g!="function")throw new Error(process.env.NODE_ENV==="production"?yn(4):"Expected the listener to be a function. Instead, received: '"+il(g)+"'");if(l)throw new Error(process.env.NODE_ENV==="production"?yn(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var O=!0;return c(),a.push(g),function(){if(O){if(l)throw new Error(process.env.NODE_ENV==="production"?yn(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");O=!1,c();var v=a.indexOf(g);a.splice(v,1),s=null}}}function p(g){if(!G6(g))throw new Error(process.env.NODE_ENV==="production"?yn(7):"Actions must be plain objects. Instead, the actual type was: '"+il(g)+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");if(typeof g.type>"u")throw new Error(process.env.NODE_ENV==="production"?yn(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(l)throw new Error(process.env.NODE_ENV==="production"?yn(9):"Reducers may not dispatch actions.");try{l=!0,o=i(o,g)}finally{l=!1}for(var O=s=a,y=0;y<O.length;y++){var v=O[y];v()}return g}function h(g){if(typeof g!="function")throw new Error(process.env.NODE_ENV==="production"?yn(10):"Expected the nextReducer to be a function. Instead, received: '"+il(g));i=g,p({type:wl.REPLACE})}function m(){var g,O=d;return g={subscribe:function(v){if(typeof v!="object"||v===null)throw new Error(process.env.NODE_ENV==="production"?yn(11):"Expected the observer to be an object. Instead, received: '"+il(v)+"'");function b(){v.next&&v.next(u())}b();var w=O(b);return{unsubscribe:w}}},g[P5]=function(){return this},g}return p({type:wl.INIT}),n={dispatch:p,subscribe:d,getState:u,replaceReducer:h},n[P5]=m,n}var eCe=wx;function YC(t){typeof console<"u"&&typeof console.error=="function"&&console.error(t);try{throw new Error(t)}catch{}}function tCe(t,e,r,n){var i=Object.keys(e),o=r&&r.type===wl.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(i.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!G6(t))return"The "+o+' has unexpected type of "'+il(t)+'". Expected argument to be an object with the following '+('keys: "'+i.join('", "')+'"');var s=Object.keys(t).filter(function(a){return!e.hasOwnProperty(a)&&!n[a]});if(s.forEach(function(a){n[a]=!0}),!(r&&r.type===wl.REPLACE)&&s.length>0)return"Unexpected "+(s.length>1?"keys":"key")+" "+('"'+s.join('", "')+'" found in '+o+". ")+"Expected to find one of the known reducer keys instead: "+('"'+i.join('", "')+'". Unexpected keys will be ignored.')}function rCe(t){Object.keys(t).forEach(function(e){var r=t[e],n=r(void 0,{type:wl.INIT});if(typeof n>"u")throw new Error(process.env.NODE_ENV==="production"?yn(12):'The slice reducer for key "'+e+`" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof r(void 0,{type:wl.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(process.env.NODE_ENV==="production"?yn(13):'The slice reducer for key "'+e+'" returned undefined when probed with a random type. '+("Don't try to handle '"+wl.INIT+`' or other actions in "redux/*" `)+"namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.")})}function nCe(t){for(var e=Object.keys(t),r={},n=0;n<e.length;n++){var i=e[n];process.env.NODE_ENV!=="production"&&typeof t[i]>"u"&&YC('No reducer provided for key "'+i+'"'),typeof t[i]=="function"&&(r[i]=t[i])}var o=Object.keys(r),s;process.env.NODE_ENV!=="production"&&(s={});var a;try{rCe(r)}catch(l){a=l}return function(c,u){if(c===void 0&&(c={}),a)throw a;if(process.env.NODE_ENV!=="production"){var d=tCe(c,r,u,s);d&&YC(d)}for(var p=!1,h={},m=0;m<o.length;m++){var g=o[m],O=r[g],y=c[g],v=O(y,u);if(typeof v>"u"){var b=u&&u.type;throw new Error(process.env.NODE_ENV==="production"?yn(14):"When called with an action of type "+(b?'"'+String(b)+'"':"(unknown type)")+', the slice reducer for key "'+g+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.')}h[g]=v,p=p||v!==y}return p=p||o.length!==Object.keys(c).length,p?h:c}}function C5(t,e){return function(){return e(t.apply(this,arguments))}}function iCe(t,e){if(typeof t=="function")return C5(t,e);if(typeof t!="object"||t===null)throw new Error(process.env.NODE_ENV==="production"?yn(16):"bindActionCreators expected an object or a function, but instead received: '"+il(t)+`'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?`);var r={};for(var n in t){var i=t[n];typeof i=="function"&&(r[n]=C5(i,e))}return r}function H6(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function oCe(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(n){return function(){var i=n.apply(void 0,arguments),o=function(){throw new Error(process.env.NODE_ENV==="production"?yn(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},s={getState:i.getState,dispatch:function(){return o.apply(void 0,arguments)}},a=e.map(function(l){return l(s)});return o=H6.apply(void 0,a)(i.dispatch),w5(w5({},i),{},{dispatch:o})}}}function $5(){}process.env.NODE_ENV!=="production"&&typeof $5.name=="string"&&$5.name!=="isCrushed"&&YC('You are currently using minified code outside of NODE_ENV === "production". This means that you are running a slower development build of Redux. You can use loose-envify (https://github.com/zertosh/loose-envify) for browserify or setting mode to production in webpack (https://webpack.js.org/concepts/mode/) to ensure you have the correct code for your production build.');var sCe=Object.freeze({__proto__:null,__DO_NOT_USE__ActionTypes:wl,applyMiddleware:oCe,bindActionCreators:iCe,combineReducers:nCe,compose:H6,createStore:wx,legacy_createStore:eCe});function aCe(t){var e=t.default;if(typeof e=="function"){var r=function(){return e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return t[n]}})}),r}var lCe=aCe(sCe);lCe.compose;var cCe=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function uCe(t,e,r){var n=!1,i=!1,o=wx(function(a,l){if(!i){var c=function(O){return Array.isArray(O)&&O.findIndex(function(y){return typeof y!="string"&&typeof y!="number"})===-1};if(l.type.startsWith("SET")){var u=function(O){try{n=!0,"value"in l?O.set(l.value):O.set(pt)}finally{n=!1}};if(l.path){if(c(l.path)){l.path.length===0&&u(t);for(var d=t,p=!0,h=0,m=l.path;h<m.length;h++){var g=m[h];d[g]?d=d[g]:p=!1}p&&u(d)}}else u(t)}else l.type==="BREAKPOINT"&&r()}return t.promised||t.error?pt:t.get({noproxy:!0})},cCe({name:"".concat(window.location.hostname,": ").concat(e),trace:!0,traceLimit:16,autoPause:!0,shouldHotReload:!1,features:{persist:!0,pause:!0,lock:!1,export:"custom",import:"custom",jump:!1,skip:!1,reorder:!1,dispatch:!0,test:!1}})),s=function(a,l){if(n)l&&l();else try{i=!0,o.dispatch(a)}finally{i=!1}};return s}function dCe(t){return function(){var e,r,n=!1;return{onInit:function(i,o){if(!(typeof window>"u"||!("__REDUX_DEVTOOLS_EXTENSION__"in window))){if(t?.key===void 0){if(o.identifier===void 0)throw Error("State is missing Identifiable extension or Devtools key option");e=o.identifier(i)}else e=t.key;r=uCe(i,e,function(){n=!n}),i.promise||r?.({type:"CREATE",state:i.get({noproxy:!0,stealth:!0})})}},onSet:function(i,o){if(r?.({type:"SET [".concat(i.path.join("/"),"]"),state:i.get({noproxy:!0,stealth:!0}),descriptor:o}),n)debugger},onDestroy:function(){r?.({type:"DESTROY"})}}}}var Mt=(t=>(t.Normal="Normal",t.Edit="Edit",t.Draft="Draft",t))(Mt||{});const Cg="default",J6=[{name:Cg,inputs:[],servers:[],state:Mt.Normal}],K6={activeTabIdx:0,tabs:[]};var as=(t=>(t.Idle="idle",t.Loading="loading",t.Success="success",t.Error="error",t))(as||{});function ma(t){const e=new WeakMap;function r(n){if(typeof n!="object"||n===null)return n;if(e.has(n))return e.get(n);const i=Array.isArray(n)?[]:{};e.set(n,i);for(const o in n)Object.prototype.hasOwnProperty.call(n,o)&&(i[o]=r(n[o]));return i}return r(t)}function GC(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;for(let i=0;i<t.length;i++)if(!GC(t[i],e[i]))return!1;return!0}const r=Object.keys(t),n=Object.keys(e);if(r.length!==n.length)return!1;for(let i=0;i<r.length;i++){const o=r[i];if(!Object.prototype.hasOwnProperty.call(e,o)||!GC(t[o],e[o]))return!1}return!0}return t!==t&&e!==e}function k5(t){return Object.keys(t).forEach(e=>{t[e]===void 0&&delete t[e]}),t}function Da(){return!!window?.__TAURI__}async function Na(t,e={},r){return window.__TAURI_INTERNALS__.invoke(t,e,r)}async function T5(t,e,r){const n=[],i=[];for(const o of t){const s=Promise.resolve().then(()=>r(o,t));if(n.push(s),e<=t.length){const a=s.then(()=>i.splice(i.indexOf(a),1));i.push(a),i.length>=e&&await Promise.race(i)}}return Promise.all(n)}const Hn={FS:"fs",WEB:"web"};async function Ll(t,e={},r){return window.__TAURI_INTERNALS__.invoke(t,e,r)}var HC;(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"})(HC||(HC={}));var JC;(function(t){t[t.Start=0]="Start",t[t.Current=1]="Current",t[t.End=2]="End"})(JC||(JC={}));async function KC(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");await Ll("plugin:fs|mkdir",{path:t instanceof URL?t.toString():t,options:e})}async function IE(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");return await Ll("plugin:fs|read_dir",{path:t instanceof URL?t.toString():t,options:e})}async function eU(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");const r=await Ll("plugin:fs|read_file",{path:t instanceof URL?t.toString():t,options:e});return r instanceof ArrayBuffer?new Uint8Array(r):Uint8Array.from(r)}async function Px(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");return await Ll("plugin:fs|read_text_file",{path:t instanceof URL?t.toString():t,options:e})}async function tU(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");await Ll("plugin:fs|remove",{path:t instanceof URL?t.toString():t,options:e})}async function rU(t,e,r){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");await Ll("plugin:fs|write_text_file",{path:t instanceof URL?t.toString():t,data:e,options:r})}async function RE(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");return await Ll("plugin:fs|exists",{path:t instanceof URL?t.toString():t,options:e})}const fCe=Object.freeze(Object.defineProperty({__proto__:null,get BaseDirectory(){return HC},get SeekMode(){return JC},exists:RE,mkdir:KC,readDir:IE,readFile:eU,readTextFile:Px,remove:tU,writeTextFile:rU},Symbol.toStringTag,{value:"Module"}));var Ih;(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"})(Ih||(Ih={}));async function nU(){return Na("plugin:path|resolve_directory",{directory:Ih.AppData})}async function iU(){return Na("plugin:path|resolve_directory",{directory:Ih.Desktop})}function _E(){return window.__TAURI_INTERNALS__.plugins.path.sep}async function oU(...t){return Na("plugin:path|resolve",{paths:t})}async function hd(...t){return Na("plugin:path|join",{paths:t})}async function sU(t){return Na("plugin:path|dirname",{path:t})}async function aU(t){return Na("plugin:path|extname",{path:t})}async function jE(t,e){return Na("plugin:path|basename",{path:t,ext:e})}async function lU(t){return Na("plugin:path|is_absolute",{path:t})}const pCe=Object.freeze(Object.defineProperty({__proto__:null,get BaseDirectory(){return Ih},appDataDir:nU,basename:jE,desktopDir:iU,dirname:sU,extname:aU,isAbsolute:lU,join:hd,resolve:oU,sep:_E},Symbol.toStringTag,{value:"Module"}));class or{static utils=null;static async getUtils(){return or.utils||(or.utils=Da()?await Promise.resolve().then(()=>require("./replay-tauri-path-DccEjZ9I.js")):await Promise.resolve().then(()=>ire)),or.utils}static async dirname(e){return(await or.getUtils()).dirname(e)}static async join(...e){return(await or.getUtils()).join(...e)}static async resolve(e){return(await or.getUtils()).resolve(e)}static async isAbsolute(e){return(await or.getUtils()).isAbsolute(e)}static async relative(e,r){return(await or.getUtils()).relative(e,r)}static async extname(e){return(await or.getUtils()).extname(e)}}const hCe=new Set(["node_modules"]);class E5{constructor(e){this.baseDir=e,this.initializeDirectory(e)}async initializeDirectory(e){await KC(e,{recursive:!0})}async ls(e){const r=await this.getFullPath(e);return this.getDirEntryFilesRecursively(r)}async getDirEntryFilesRecursively(e){try{const r=[],n=await IE(e);for(const i of n)if(i.isDirectory){if(hCe.has(i.name))continue;const o=await hd(e,i.name),s=await this.getDirEntryFilesRecursively(o);r.push(...s)}else{const o=await hd(e,i.name),s=await or.relative(this.baseDir,o);r.push(s)}return r}catch(r){return r.includes("forbidden path")||console.error(r),[]}}async get(e){const r=await this.getFullPath(e);try{return await Px(r)}catch(n){return!n.includes("No such file or directory")&&!n.includes("forbidden path")&&console.error(n),null}}async set(e,r){const n=await this.getFullPath(e),i=_E(),o=n.split(i).slice(0,-1).join(i);await KC(o,{recursive:!0}),await rU(n,r)}async remove(e){const r=await this.getFullPath(e);try{await tU(r)}catch(n){!n.includes("No such file or directory")&&!n.includes("forbidden path")&&console.error(n)}}async getFullPath(e){return await hd(this.baseDir,e??"")}}class gCe{baseDir="";async ls(e=""){return[]}async get(e){return null}async set(e,r){}async remove(e){}}class mCe{constructor(e){this.projectId=e}async get(){const e=this.getKey();return localStorage.getItem(e)??null}async set(e){const r=this.getKey();localStorage.setItem(r,e)}async remove(){const e=this.getKey();localStorage.removeItem(e)}getKey(){return`replay:secrets:${this.projectId}`}}class cU{constructor(e){this.storage=e}itemIds=[];async getAbsolutePath(e){return await or.resolve(await or.join(this.storage.baseDir,"/",e))}async parseMany(e,r){return(await Promise.all(e.map(async i=>{try{return await this.parse(i,r)}catch(o){return console.error(`Error parsing from ${i.type} ${i.uri}:`,o),null}}))).filter(i=>i!==null)}setItemIds(e){this.itemIds=e}async write(e){e.state===Mt.Draft||e.srcType!==Hn.FS||await this.storage.set(e.id,await this.stringify(e))}async remove(e){await this.storage.remove(e)}async updateRoot(e,r){const n=e.actions;if(n){for(const o in n){const s=parseInt(o);switch(n[o]){case"D":await this.remove(this.itemIds[s]);break;case"I":case"U":await this.write(r[s]);break}}return}const i=this.itemIds.filter(o=>!r.some(s=>s.id===o));await Promise.all([...r.map(o=>this.write(o)),...i.map(o=>this.remove(o))])}async update(e,r){const i={path:e.path.slice(1),actions:e.actions};if(i.path.length===0&&await this.updateRoot(i,r),i.path.length>0){const o=i.path[0];i.path.length===1&&i.actions&&i.actions.id==="U"&&await this.remove(this.itemIds[o]),i.path[1]&&i.path[1]==="id"&&await this.remove(this.itemIds[o]),await this.write(r[o])}this.itemIds=r.map(o=>o.id)}}class OCe extends cU{parse(e){return{...e.content,id:e.uri,srcType:e.type}}async stringify(e){const{id:r,srcType:n,...i}=e;return await or.extname(r)===".json"?JSON.stringify(i,null,2):Pa.dump(i)}}var Qn=(t=>(t.SIMPLE="simple",t.REGEX="regex",t.JSONPATH="jsonpath",t.XPATH="xpath",t))(Qn||{});function yCe(t){return typeof t=="function"?t:Array.isArray(t)?e=>{for(const r of t)if(typeof r=="string"&&e===r||r instanceof RegExp&&r.test(e))return!0}:()=>!1}const vCe=`
|
|
352
|
+
`;function bE({input:t,onSave:e,onCancel:r,...n}){const[i,o]=$.useState(!!t.isSecret),s=({name:a,value:l})=>{e({...t,name:a,value:l,isSecret:i})};return f.jsx(h6,{variable:t,onSave:s,onCancel:r,maskValue:i,...n,children:f.jsx(wh,{children:f.jsx($W,{value:i,onChange:a=>o(a),title:"Make it secret"})})})}const LC=()=>({name:"",value:"",isSecret:!1}),Pr=t=>Ez+"$inputs."+t+yT,g6=(t,e)=>e.inputs.find(r=>r.get().name===t.match(`^${D0}$`)?.[1]);function Bxe({environments:t,activeEnvironmentId:e}){return t.get().find(n=>n.name===e.get())?.inputs||[]}function Ha(t){const e=new RegExp(D0,"g"),r=new Set;if(!t)return r;for(const[n,i,o]of t.matchAll(e)){const s=i||o;s&&r.add(s)}return r}function Ox(t){const e=/^\{?\$inputs\.([^\}\s]+)\}?$/,r=t.match(e);return r?r[1]:null}function Ey(t){const e=new Error(t);return e.source="ulid",e}const xE="0123456789ABCDEFGHJKMNPQRSTVWXYZ",Mp=xE.length,r5=Math.pow(2,48)-1,Fxe=10,Zxe=16;function Yxe(t){let e=Math.floor(t()*Mp);return e===Mp&&(e=Mp-1),xE.charAt(e)}function Gxe(t,e){if(isNaN(t))throw new Error(t+" must be a number");if(t>r5)throw Ey("cannot encode time greater than "+r5);if(t<0)throw Ey("time must be positive");if(Number.isInteger(Number(t))===!1)throw Ey("time must be an integer");let r,n="";for(;e>0;e--)r=t%Mp,n=xE.charAt(r)+n,t=(t-r)/Mp;return n}function Hxe(t,e){let r="";for(;t>0;t--)r=Yxe(e)+r;return r}function Jxe(t=!1,e){e||(e=typeof window<"u"?window:null);const r=e&&(e.crypto||e.msCrypto);if(r)return()=>{const n=new Uint8Array(1);return r.getRandomValues(n),n[0]/255};try{const n=require("crypto");return()=>n.randomBytes(1).readUInt8()/255}catch{}if(t){try{console.error("secure crypto unusable, falling back to insecure Math.random()!")}catch{}return()=>Math.random()}throw Ey("secure crypto unusable, insecure Math.random not allowed")}function Kxe(t){return t||(t=Jxe()),function(r){return isNaN(r)&&(r=Date.now()),Gxe(r,Fxe)+Hxe(Zxe,t)}}const db=Kxe();var e1e=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{},vc="1.9.0",n5=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function t1e(t){var e=new Set([t]),r=new Set,n=t.match(n5);if(!n)return function(){return!1};var i={major:+n[1],minor:+n[2],patch:+n[3],prerelease:n[4]};if(i.prerelease!=null)return function(l){return l===t};function o(a){return r.add(a),!1}function s(a){return e.add(a),!0}return function(l){if(e.has(l))return!0;if(r.has(l))return!1;var c=l.match(n5);if(!c)return o(l);var u={major:+c[1],minor:+c[2],patch:+c[3],prerelease:c[4]};return u.prerelease!=null||i.major!==u.major?o(l):i.major===0?i.minor===u.minor&&i.patch<=u.patch?s(l):o(l):i.minor<=u.minor?s(l):o(l)}}var r1e=t1e(vc),n1e=vc.split(".")[0],Eh=Symbol.for("opentelemetry.js.api."+n1e),Ah=e1e;function wg(t,e,r,n){var i;n===void 0&&(n=!1);var o=Ah[Eh]=(i=Ah[Eh])!==null&&i!==void 0?i:{version:vc};if(!n&&o[t]){var s=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+t);return r.error(s.stack||s.message),!1}if(o.version!==vc){var s=new Error("@opentelemetry/api: Registration of version v"+o.version+" for "+t+" does not match previously registered API v"+vc);return r.error(s.stack||s.message),!1}return o[t]=e,r.debug("@opentelemetry/api: Registered a global for "+t+" v"+vc+"."),!0}function _c(t){var e,r,n=(e=Ah[Eh])===null||e===void 0?void 0:e.version;if(!(!n||!r1e(n)))return(r=Ah[Eh])===null||r===void 0?void 0:r[t]}function Pg(t,e){e.debug("@opentelemetry/api: Unregistering a global for "+t+" v"+vc+".");var r=Ah[Eh];r&&delete r[t]}var i1e=function(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,o=[],s;try{for(;(e===void 0||e-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return o},o1e=function(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,o;n<i;n++)(o||!(n in e))&&(o||(o=Array.prototype.slice.call(e,0,n)),o[n]=e[n]);return t.concat(o||Array.prototype.slice.call(e))},s1e=(function(){function t(e){this._namespace=e.namespace||"DiagComponentLogger"}return t.prototype.debug=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return Gf("debug",this._namespace,e)},t.prototype.error=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return Gf("error",this._namespace,e)},t.prototype.info=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return Gf("info",this._namespace,e)},t.prototype.warn=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return Gf("warn",this._namespace,e)},t.prototype.verbose=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return Gf("verbose",this._namespace,e)},t})();function Gf(t,e,r){var n=_c("diag");if(n)return r.unshift(e),n[t].apply(n,o1e([],i1e(r),!1))}var Ai;(function(t){t[t.NONE=0]="NONE",t[t.ERROR=30]="ERROR",t[t.WARN=50]="WARN",t[t.INFO=60]="INFO",t[t.DEBUG=70]="DEBUG",t[t.VERBOSE=80]="VERBOSE",t[t.ALL=9999]="ALL"})(Ai||(Ai={}));function a1e(t,e){t<Ai.NONE?t=Ai.NONE:t>Ai.ALL&&(t=Ai.ALL),e=e||{};function r(n,i){var o=e[n];return typeof o=="function"&&t>=i?o.bind(e):function(){}}return{error:r("error",Ai.ERROR),warn:r("warn",Ai.WARN),info:r("info",Ai.INFO),debug:r("debug",Ai.DEBUG),verbose:r("verbose",Ai.VERBOSE)}}var l1e=function(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,o=[],s;try{for(;(e===void 0||e-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return o},c1e=function(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,o;n<i;n++)(o||!(n in e))&&(o||(o=Array.prototype.slice.call(e,0,n)),o[n]=e[n]);return t.concat(o||Array.prototype.slice.call(e))},u1e="diag",ks=(function(){function t(){function e(i){return function(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];var a=_c("diag");if(a)return a[i].apply(a,c1e([],l1e(o),!1))}}var r=this,n=function(i,o){var s,a,l;if(o===void 0&&(o={logLevel:Ai.INFO}),i===r){var c=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return r.error((s=c.stack)!==null&&s!==void 0?s:c.message),!1}typeof o=="number"&&(o={logLevel:o});var u=_c("diag"),d=a1e((a=o.logLevel)!==null&&a!==void 0?a:Ai.INFO,i);if(u&&!o.suppressOverrideMessage){var p=(l=new Error().stack)!==null&&l!==void 0?l:"<failed to generate stacktrace>";u.warn("Current logger will be overwritten from "+p),d.warn("Current logger will overwrite one already registered from "+p)}return wg("diag",d,r,!0)};r.setLogger=n,r.disable=function(){Pg(u1e,r)},r.createComponentLogger=function(i){return new s1e(i)},r.verbose=e("verbose"),r.debug=e("debug"),r.info=e("info"),r.warn=e("warn"),r.error=e("error")}return t.instance=function(){return this._instance||(this._instance=new t),this._instance},t})(),d1e=function(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,o=[],s;try{for(;(e===void 0||e-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return o},f1e=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},p1e=(function(){function t(e){this._entries=e?new Map(e):new Map}return t.prototype.getEntry=function(e){var r=this._entries.get(e);if(r)return Object.assign({},r)},t.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(e){var r=d1e(e,2),n=r[0],i=r[1];return[n,i]})},t.prototype.setEntry=function(e,r){var n=new t(this._entries);return n._entries.set(e,r),n},t.prototype.removeEntry=function(e){var r=new t(this._entries);return r._entries.delete(e),r},t.prototype.removeEntries=function(){for(var e,r,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var o=new t(this._entries);try{for(var s=f1e(n),a=s.next();!a.done;a=s.next()){var l=a.value;o._entries.delete(l)}}catch(c){e={error:c}}finally{try{a&&!a.done&&(r=s.return)&&r.call(s)}finally{if(e)throw e.error}}return o},t.prototype.clear=function(){return new t},t})(),h1e=Symbol("BaggageEntryMetadata"),g1e=ks.instance();function m1e(t){return t===void 0&&(t={}),new p1e(new Map(Object.entries(t)))}function O1e(t){return typeof t!="string"&&(g1e.error("Cannot create baggage metadata from unknown type: "+typeof t),t=""),{__TYPE__:h1e,toString:function(){return t}}}function SE(t){return Symbol.for(t)}var y1e=(function(){function t(e){var r=this;r._currentContext=e?new Map(e):new Map,r.getValue=function(n){return r._currentContext.get(n)},r.setValue=function(n,i){var o=new t(r._currentContext);return o._currentContext.set(n,i),o},r.deleteValue=function(n){var i=new t(r._currentContext);return i._currentContext.delete(n),i}}return t})(),Uu=new y1e,Gc=(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),v1e=(function(){function t(){}return t.prototype.createGauge=function(e,r){return E1e},t.prototype.createHistogram=function(e,r){return A1e},t.prototype.createCounter=function(e,r){return T1e},t.prototype.createUpDownCounter=function(e,r){return I1e},t.prototype.createObservableGauge=function(e,r){return _1e},t.prototype.createObservableCounter=function(e,r){return R1e},t.prototype.createObservableUpDownCounter=function(e,r){return j1e},t.prototype.addBatchObservableCallback=function(e,r){},t.prototype.removeBatchObservableCallback=function(e){},t})(),yx=(function(){function t(){}return t})(),b1e=(function(t){Gc(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.add=function(r,n){},e})(yx),x1e=(function(t){Gc(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.add=function(r,n){},e})(yx),S1e=(function(t){Gc(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.record=function(r,n){},e})(yx),w1e=(function(t){Gc(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.record=function(r,n){},e})(yx),wE=(function(){function t(){}return t.prototype.addCallback=function(e){},t.prototype.removeCallback=function(e){},t})(),P1e=(function(t){Gc(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(wE),C1e=(function(t){Gc(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(wE),$1e=(function(t){Gc(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(wE),k1e=new v1e,T1e=new b1e,E1e=new S1e,A1e=new w1e,I1e=new x1e,R1e=new P1e,_1e=new C1e,j1e=new $1e,Q1e={get:function(t,e){if(t!=null)return t[e]},keys:function(t){return t==null?[]:Object.keys(t)}},D1e={set:function(t,e,r){t!=null&&(t[e]=r)}},N1e=function(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,o=[],s;try{for(;(e===void 0||e-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return o},M1e=function(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,o;n<i;n++)(o||!(n in e))&&(o||(o=Array.prototype.slice.call(e,0,n)),o[n]=e[n]);return t.concat(o||Array.prototype.slice.call(e))},q1e=(function(){function t(){}return t.prototype.active=function(){return Uu},t.prototype.with=function(e,r,n){for(var i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];return r.call.apply(r,M1e([n],N1e(i),!1))},t.prototype.bind=function(e,r){return r},t.prototype.enable=function(){return this},t.prototype.disable=function(){return this},t})(),z1e=function(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,o=[],s;try{for(;(e===void 0||e-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return o},L1e=function(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,o;n<i;n++)(o||!(n in e))&&(o||(o=Array.prototype.slice.call(e,0,n)),o[n]=e[n]);return t.concat(o||Array.prototype.slice.call(e))},YS="context",V1e=new q1e,vx=(function(){function t(){}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalContextManager=function(e){return wg(YS,e,ks.instance())},t.prototype.active=function(){return this._getContextManager().active()},t.prototype.with=function(e,r,n){for(var i,o=[],s=3;s<arguments.length;s++)o[s-3]=arguments[s];return(i=this._getContextManager()).with.apply(i,L1e([e,r,n],z1e(o),!1))},t.prototype.bind=function(e,r){return this._getContextManager().bind(e,r)},t.prototype._getContextManager=function(){return _c(YS)||V1e},t.prototype.disable=function(){this._getContextManager().disable(),Pg(YS,ks.instance())},t})(),$a;(function(t){t[t.NONE=0]="NONE",t[t.SAMPLED=1]="SAMPLED"})($a||($a={}));var m6="0000000000000000",O6="00000000000000000000000000000000",y6={traceId:O6,spanId:m6,traceFlags:$a.NONE},qp=(function(){function t(e){e===void 0&&(e=y6),this._spanContext=e}return t.prototype.spanContext=function(){return this._spanContext},t.prototype.setAttribute=function(e,r){return this},t.prototype.setAttributes=function(e){return this},t.prototype.addEvent=function(e,r){return this},t.prototype.addLink=function(e){return this},t.prototype.addLinks=function(e){return this},t.prototype.setStatus=function(e){return this},t.prototype.updateName=function(e){return this},t.prototype.end=function(e){},t.prototype.isRecording=function(){return!1},t.prototype.recordException=function(e,r){},t})(),PE=SE("OpenTelemetry Context Key SPAN");function CE(t){return t.getValue(PE)||void 0}function X1e(){return CE(vx.getInstance().active())}function $E(t,e){return t.setValue(PE,e)}function W1e(t){return t.deleteValue(PE)}function U1e(t,e){return $E(t,new qp(e))}function v6(t){var e;return(e=CE(t))===null||e===void 0?void 0:e.spanContext()}var B1e=/^([0-9a-f]{32})$/i,F1e=/^[0-9a-f]{16}$/i;function b6(t){return B1e.test(t)&&t!==O6}function Z1e(t){return F1e.test(t)&&t!==m6}function bx(t){return b6(t.traceId)&&Z1e(t.spanId)}function Y1e(t){return new qp(t)}var GS=vx.getInstance(),x6=(function(){function t(){}return t.prototype.startSpan=function(e,r,n){n===void 0&&(n=GS.active());var i=!!r?.root;if(i)return new qp;var o=n&&v6(n);return G1e(o)&&bx(o)?new qp(o):new qp},t.prototype.startActiveSpan=function(e,r,n,i){var o,s,a;if(!(arguments.length<2)){arguments.length===2?a=r:arguments.length===3?(o=r,a=n):(o=r,s=n,a=i);var l=s??GS.active(),c=this.startSpan(e,o,l),u=$E(l,c);return GS.with(u,a,void 0,c)}},t})();function G1e(t){return typeof t=="object"&&typeof t.spanId=="string"&&typeof t.traceId=="string"&&typeof t.traceFlags=="number"}var H1e=new x6,J1e=(function(){function t(e,r,n,i){this._provider=e,this.name=r,this.version=n,this.options=i}return t.prototype.startSpan=function(e,r,n){return this._getTracer().startSpan(e,r,n)},t.prototype.startActiveSpan=function(e,r,n,i){var o=this._getTracer();return Reflect.apply(o.startActiveSpan,o,arguments)},t.prototype._getTracer=function(){if(this._delegate)return this._delegate;var e=this._provider.getDelegateTracer(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):H1e},t})(),K1e=(function(){function t(){}return t.prototype.getTracer=function(e,r,n){return new x6},t})(),eSe=new K1e,i5=(function(){function t(){}return t.prototype.getTracer=function(e,r,n){var i;return(i=this.getDelegateTracer(e,r,n))!==null&&i!==void 0?i:new J1e(this,e,r,n)},t.prototype.getDelegate=function(){var e;return(e=this._delegate)!==null&&e!==void 0?e:eSe},t.prototype.setDelegate=function(e){this._delegate=e},t.prototype.getDelegateTracer=function(e,r,n){var i;return(i=this._delegate)===null||i===void 0?void 0:i.getTracer(e,r,n)},t})(),fb;(function(t){t[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(fb||(fb={}));var VC;(function(t){t[t.INTERNAL=0]="INTERNAL",t[t.SERVER=1]="SERVER",t[t.CLIENT=2]="CLIENT",t[t.PRODUCER=3]="PRODUCER",t[t.CONSUMER=4]="CONSUMER"})(VC||(VC={}));exports.SpanStatusCode=void 0;(function(t){t[t.UNSET=0]="UNSET",t[t.OK=1]="OK",t[t.ERROR=2]="ERROR"})(exports.SpanStatusCode||(exports.SpanStatusCode={}));var ga=vx.getInstance(),Lt=ks.instance(),tSe=(function(){function t(){}return t.prototype.getMeter=function(e,r,n){return k1e},t})(),rSe=new tSe,HS="metrics",nSe=(function(){function t(){}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalMeterProvider=function(e){return wg(HS,e,ks.instance())},t.prototype.getMeterProvider=function(){return _c(HS)||rSe},t.prototype.getMeter=function(e,r,n){return this.getMeterProvider().getMeter(e,r,n)},t.prototype.disable=function(){Pg(HS,ks.instance())},t})(),S6=nSe.getInstance(),iSe=(function(){function t(){}return t.prototype.inject=function(e,r){},t.prototype.extract=function(e,r){return e},t.prototype.fields=function(){return[]},t})(),kE=SE("OpenTelemetry Baggage Key");function w6(t){return t.getValue(kE)||void 0}function oSe(){return w6(vx.getInstance().active())}function sSe(t,e){return t.setValue(kE,e)}function aSe(t){return t.deleteValue(kE)}var JS="propagation",lSe=new iSe,cSe=(function(){function t(){this.createBaggage=m1e,this.getBaggage=w6,this.getActiveBaggage=oSe,this.setBaggage=sSe,this.deleteBaggage=aSe}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalPropagator=function(e){return wg(JS,e,ks.instance())},t.prototype.inject=function(e,r,n){return n===void 0&&(n=D1e),this._getGlobalPropagator().inject(e,r,n)},t.prototype.extract=function(e,r,n){return n===void 0&&(n=Q1e),this._getGlobalPropagator().extract(e,r,n)},t.prototype.fields=function(){return this._getGlobalPropagator().fields()},t.prototype.disable=function(){Pg(JS,ks.instance())},t.prototype._getGlobalPropagator=function(){return _c(JS)||lSe},t})(),zp=cSe.getInstance(),KS="trace",uSe=(function(){function t(){this._proxyTracerProvider=new i5,this.wrapSpanContext=Y1e,this.isSpanContextValid=bx,this.deleteSpan=W1e,this.getSpan=CE,this.getActiveSpan=X1e,this.getSpanContext=v6,this.setSpan=$E,this.setSpanContext=U1e}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalTracerProvider=function(e){var r=wg(KS,this._proxyTracerProvider,ks.instance());return r&&this._proxyTracerProvider.setDelegate(e),r},t.prototype.getTracerProvider=function(){return _c(KS)||this._proxyTracerProvider},t.prototype.getTracer=function(e,r){return this.getTracerProvider().getTracer(e,r)},t.prototype.disable=function(){Pg(KS,ks.instance()),this._proxyTracerProvider=new i5},t})(),ci=uSe.getInstance();const P6=SE("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function dSe(t){return t.setValue(P6,!0)}function TE(t){return t.getValue(P6)===!0}const fSe="=",XC=";",WC=",",ew="baggage",pSe=180,hSe=4096,gSe=8192;function mSe(t){return t.reduce((e,r)=>{const n=`${e}${e!==""?WC:""}${r}`;return n.length>gSe?e:n},"")}function OSe(t){return t.getAllEntries().map(([e,r])=>{let n=`${encodeURIComponent(e)}=${encodeURIComponent(r.value)}`;return r.metadata!==void 0&&(n+=XC+r.metadata.toString()),n})}function ySe(t){const e=t.split(XC);if(e.length<=0)return;const r=e.shift();if(!r)return;const n=r.indexOf(fSe);if(n<=0)return;const i=decodeURIComponent(r.substring(0,n).trim()),o=decodeURIComponent(r.substring(n+1).trim());let s;return e.length>0&&(s=O1e(e.join(XC))),{key:i,value:o,metadata:s}}class vSe{inject(e,r,n){const i=zp.getBaggage(e);if(!i||TE(e))return;const o=OSe(i).filter(a=>a.length<=hSe).slice(0,pSe),s=mSe(o);s.length>0&&n.set(r,ew,s)}extract(e,r,n){const i=n.get(r,ew),o=Array.isArray(i)?i.join(WC):i;if(!o)return e;const s={};return o.length===0||(o.split(WC).forEach(l=>{const c=ySe(l);if(c){const u={value:c.value};c.metadata&&(u.metadata=c.metadata),s[c.key]=u}}),Object.entries(s).length===0)?e:zp.setBaggage(e,zp.createBaggage(s))}fields(){return[ew]}}function Ay(t){const e={};if(typeof t!="object"||t==null)return e;for(const[r,n]of Object.entries(t)){if(!bSe(r)){Lt.warn(`Invalid attribute key: ${r}`);continue}if(!C6(n)){Lt.warn(`Invalid attribute value set for key: ${r}`);continue}Array.isArray(n)?e[r]=n.slice():e[r]=n}return e}function bSe(t){return typeof t=="string"&&t.length>0}function C6(t){return t==null?!0:Array.isArray(t)?xSe(t):$6(t)}function xSe(t){let e;for(const r of t)if(r!=null){if(!e){if($6(r)){e=typeof r;continue}return!1}if(typeof r!==e)return!1}return!0}function $6(t){switch(typeof t){case"number":case"boolean":case"string":return!0}return!1}function SSe(){return t=>{Lt.error(wSe(t))}}function wSe(t){return typeof t=="string"?t:JSON.stringify(PSe(t))}function PSe(t){const e={};let r=t;for(;r!==null;)Object.getOwnPropertyNames(r).forEach(n=>{if(e[n])return;const i=r[n];i&&(e[n]=String(i))}),r=Object.getPrototypeOf(r);return e}let CSe=SSe();function Dd(t){try{CSe(t)}catch{}}const fd=performance,$Se="2.0.1",tw="exception.message",kSe="exception.stacktrace",rw="exception.type",TSe="service.name",UC="telemetry.sdk.language",ESe="webjs",BC="telemetry.sdk.name",FC="telemetry.sdk.version",ASe="process.runtime.name",nw={[BC]:"opentelemetry",[ASe]:"browser",[UC]:ESe,[FC]:$Se};const ISe=9,RSe=6,_Se=Math.pow(10,RSe),pb=Math.pow(10,ISe);function td(t){const e=t/1e3,r=Math.trunc(e),n=Math.round(t%1e3*_Se);return[r,n]}function k6(){let t=fd.timeOrigin;if(typeof t!="number"){const e=fd;t=e.timing&&e.timing.fetchStart}return t}function jSe(t){const e=td(k6()),r=td(typeof t=="number"?t:fd.now());return E6(e,r)}function QSe(t,e){let r=e[0]-t[0],n=e[1]-t[1];return n<0&&(r-=1,n+=pb),[r,n]}function DSe(t){return t[0]*pb+t[1]}function T6(t){return Array.isArray(t)&&t.length===2&&typeof t[0]=="number"&&typeof t[1]=="number"}function o5(t){return T6(t)||typeof t=="number"||t instanceof Date}function E6(t,e){const r=[t[0]+e[0],t[1]+e[1]];return r[1]>=pb&&(r[1]-=pb,r[0]+=1),r}var cs;(function(t){t[t.SUCCESS=0]="SUCCESS",t[t.FAILED=1]="FAILED"})(cs||(cs={}));class NSe{_propagators;_fields;constructor(e={}){this._propagators=e.propagators??[],this._fields=Array.from(new Set(this._propagators.map(r=>typeof r.fields=="function"?r.fields():[]).reduce((r,n)=>r.concat(n),[])))}inject(e,r,n){for(const i of this._propagators)try{i.inject(e,r,n)}catch(o){Lt.warn(`Failed to inject with ${i.constructor.name}. Err: ${o.message}`)}}extract(e,r,n){return this._propagators.reduce((i,o)=>{try{return o.extract(i,r,n)}catch(s){Lt.warn(`Failed to extract with ${o.constructor.name}. Err: ${s.message}`)}return i},e)}fields(){return this._fields.slice()}}const ZC="[_0-9a-z-*/]",MSe=`[a-z]${ZC}{0,255}`,qSe=`[a-z0-9]${ZC}{0,240}@[a-z]${ZC}{0,13}`,zSe=new RegExp(`^(?:${MSe}|${qSe})$`),LSe=/^[ -~]{0,255}[!-~]$/,VSe=/,|=/;function XSe(t){return zSe.test(t)}function WSe(t){return LSe.test(t)&&!VSe.test(t)}const s5=32,USe=512,a5=",",l5="=";class EE{_internalState=new Map;constructor(e){e&&this._parse(e)}set(e,r){const n=this._clone();return n._internalState.has(e)&&n._internalState.delete(e),n._internalState.set(e,r),n}unset(e){const r=this._clone();return r._internalState.delete(e),r}get(e){return this._internalState.get(e)}serialize(){return this._keys().reduce((e,r)=>(e.push(r+l5+this.get(r)),e),[]).join(a5)}_parse(e){e.length>USe||(this._internalState=e.split(a5).reverse().reduce((r,n)=>{const i=n.trim(),o=i.indexOf(l5);if(o!==-1){const s=i.slice(0,o),a=i.slice(o+1,n.length);XSe(s)&&WSe(a)&&r.set(s,a)}return r},new Map),this._internalState.size>s5&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,s5))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){const e=new EE;return e._internalState=new Map(this._internalState),e}}const iw="traceparent",ow="tracestate",BSe="00",FSe="(?!ff)[\\da-f]{2}",ZSe="(?![0]{32})[\\da-f]{32}",YSe="(?![0]{16})[\\da-f]{16}",GSe="[\\da-f]{2}",HSe=new RegExp(`^\\s?(${FSe})-(${ZSe})-(${YSe})-(${GSe})(-.*)?\\s?$`);function JSe(t){const e=HSe.exec(t);return!e||e[1]==="00"&&e[5]?null:{traceId:e[2],spanId:e[3],traceFlags:parseInt(e[4],16)}}class KSe{inject(e,r,n){const i=ci.getSpanContext(e);if(!i||TE(e)||!bx(i))return;const o=`${BSe}-${i.traceId}-${i.spanId}-0${Number(i.traceFlags||$a.NONE).toString(16)}`;n.set(r,iw,o),i.traceState&&n.set(r,ow,i.traceState.serialize())}extract(e,r,n){const i=n.get(r,iw);if(!i)return e;const o=Array.isArray(i)?i[0]:i;if(typeof o!="string")return e;const s=JSe(o);if(!s)return e;s.isRemote=!0;const a=n.get(r,ow);if(a){const l=Array.isArray(a)?a.join(","):a;s.traceState=new EE(typeof l=="string"?l:void 0)}return ci.setSpanContext(e,s)}fields(){return[iw,ow]}}const ewe="[object Object]",twe="[object Null]",rwe="[object Undefined]",nwe=Function.prototype,A6=nwe.toString,iwe=A6.call(Object),owe=Object.getPrototypeOf,I6=Object.prototype,R6=I6.hasOwnProperty,fc=Symbol?Symbol.toStringTag:void 0,_6=I6.toString;function c5(t){if(!swe(t)||awe(t)!==ewe)return!1;const e=owe(t);if(e===null)return!0;const r=R6.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&A6.call(r)===iwe}function swe(t){return t!=null&&typeof t=="object"}function awe(t){return t==null?t===void 0?rwe:twe:fc&&fc in Object(t)?lwe(t):cwe(t)}function lwe(t){const e=R6.call(t,fc),r=t[fc];let n=!1;try{t[fc]=void 0,n=!0}catch{}const i=_6.call(t);return n&&(e?t[fc]=r:delete t[fc]),i}function cwe(t){return _6.call(t)}const uwe=20;function dwe(...t){let e=t.shift();const r=new WeakMap;for(;t.length>0;)e=j6(e,t.shift(),0,r);return e}function sw(t){return hb(t)?t.slice():t}function j6(t,e,r=0,n){let i;if(!(r>uwe)){if(r++,Iy(t)||Iy(e)||Q6(e))i=sw(e);else if(hb(t)){if(i=t.slice(),hb(e))for(let o=0,s=e.length;o<s;o++)i.push(sw(e[o]));else if(Hf(e)){const o=Object.keys(e);for(let s=0,a=o.length;s<a;s++){const l=o[s];i[l]=sw(e[l])}}}else if(Hf(t))if(Hf(e)){if(!fwe(t,e))return e;i=Object.assign({},t);const o=Object.keys(e);for(let s=0,a=o.length;s<a;s++){const l=o[s],c=e[l];if(Iy(c))typeof c>"u"?delete i[l]:i[l]=c;else{const u=i[l],d=c;if(u5(t,l,n)||u5(e,l,n))delete i[l];else{if(Hf(u)&&Hf(d)){const p=n.get(u)||[],h=n.get(d)||[];p.push({obj:t,key:l}),h.push({obj:e,key:l}),n.set(u,p),n.set(d,h)}i[l]=j6(i[l],c,r,n)}}}}else i=e;return i}}function u5(t,e,r){const n=r.get(t[e])||[];for(let i=0,o=n.length;i<o;i++){const s=n[i];if(s.key===e&&s.obj===t)return!0}return!1}function hb(t){return Array.isArray(t)}function Q6(t){return typeof t=="function"}function Hf(t){return!Iy(t)&&!hb(t)&&!Q6(t)&&typeof t=="object"}function Iy(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t>"u"||t instanceof Date||t instanceof RegExp||t===null}function fwe(t,e){return!(!c5(t)||!c5(e))}class pwe{_promise;_resolve;_reject;constructor(){this._promise=new Promise((e,r)=>{this._resolve=e,this._reject=r})}get promise(){return this._promise}resolve(e){this._resolve(e)}reject(e){this._reject(e)}}class hwe{_callback;_that;_isCalled=!1;_deferred=new pwe;constructor(e,r){this._callback=e,this._that=r}get isCalled(){return this._isCalled}get promise(){return this._deferred.promise}call(...e){if(!this._isCalled){this._isCalled=!0;try{Promise.resolve(this._callback.call(this._that,...e)).then(r=>this._deferred.resolve(r),r=>this._deferred.reject(r))}catch(r){this._deferred.reject(r)}}return this._deferred.promise}}function gwe(){return"unknown_service"}const bp=t=>t!==null&&typeof t=="object"&&typeof t.then=="function";class gb{_rawAttributes;_asyncAttributesPending=!1;_memoizedAttributes;static FromAttributeList(e){const r=new gb({});return r._rawAttributes=d5(e),r._asyncAttributesPending=e.filter(([n,i])=>bp(i)).length>0,r}constructor(e){const r=e.attributes??{};this._rawAttributes=Object.entries(r).map(([n,i])=>(bp(i)&&(this._asyncAttributesPending=!0),[n,i])),this._rawAttributes=d5(this._rawAttributes)}get asyncAttributesPending(){return this._asyncAttributesPending}async waitForAsyncAttributes(){if(this.asyncAttributesPending){for(let e=0;e<this._rawAttributes.length;e++){const[r,n]=this._rawAttributes[e];this._rawAttributes[e]=[r,bp(n)?await n:n]}this._asyncAttributesPending=!1}}get attributes(){if(this.asyncAttributesPending&&Lt.error("Accessing resource attributes before async attributes settled"),this._memoizedAttributes)return this._memoizedAttributes;const e={};for(const[r,n]of this._rawAttributes){if(bp(n)){Lt.debug(`Unsettled resource attribute ${r} skipped`);continue}n!=null&&(e[r]??=n)}return this._asyncAttributesPending||(this._memoizedAttributes=e),e}getRawAttributes(){return this._rawAttributes}merge(e){return e==null?this:gb.FromAttributeList([...e.getRawAttributes(),...this.getRawAttributes()])}}function D6(t){return gb.FromAttributeList(Object.entries(t))}function mwe(){return D6({[TSe]:gwe(),[UC]:nw[UC],[BC]:nw[BC],[FC]:nw[FC]})}function d5(t){return t.map(([e,r])=>bp(r)?[e,r.catch(n=>{Lt.debug("promise rejection for resource attribute: %s - %s",e,n)})]:[e,r])}const Owe="exception";class ywe{_spanContext;kind;parentSpanContext;attributes={};links=[];events=[];startTime;resource;instrumentationScope;_droppedAttributesCount=0;_droppedEventsCount=0;_droppedLinksCount=0;name;status={code:exports.SpanStatusCode.UNSET};endTime=[0,0];_ended=!1;_duration=[-1,-1];_spanProcessor;_spanLimits;_attributeValueLengthLimit;_performanceStartTime;_performanceOffset;_startTimeProvided;constructor(e){const r=Date.now();this._spanContext=e.spanContext,this._performanceStartTime=fd.now(),this._performanceOffset=r-(this._performanceStartTime+k6()),this._startTimeProvided=e.startTime!=null,this._spanLimits=e.spanLimits,this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit||0,this._spanProcessor=e.spanProcessor,this.name=e.name,this.parentSpanContext=e.parentSpanContext,this.kind=e.kind,this.links=e.links||[],this.startTime=this._getTime(e.startTime??r),this.resource=e.resource,this.instrumentationScope=e.scope,e.attributes!=null&&this.setAttributes(e.attributes),this._spanProcessor.onStart(this,e.context)}spanContext(){return this._spanContext}setAttribute(e,r){if(r==null||this._isSpanEnded())return this;if(e.length===0)return Lt.warn(`Invalid attribute key: ${e}`),this;if(!C6(r))return Lt.warn(`Invalid attribute value set for key: ${e}`),this;const{attributeCountLimit:n}=this._spanLimits;return n!==void 0&&Object.keys(this.attributes).length>=n&&!Object.prototype.hasOwnProperty.call(this.attributes,e)?(this._droppedAttributesCount++,this):(this.attributes[e]=this._truncateToSize(r),this)}setAttributes(e){for(const[r,n]of Object.entries(e))this.setAttribute(r,n);return this}addEvent(e,r,n){if(this._isSpanEnded())return this;const{eventCountLimit:i}=this._spanLimits;if(i===0)return Lt.warn("No events allowed."),this._droppedEventsCount++,this;i!==void 0&&this.events.length>=i&&(this._droppedEventsCount===0&&Lt.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),o5(r)&&(o5(n)||(n=r),r=void 0);const o=Ay(r);return this.events.push({name:e,attributes:o,time:this._getTime(n),droppedAttributesCount:0}),this}addLink(e){return this.links.push(e),this}addLinks(e){return this.links.push(...e),this}setStatus(e){return this._isSpanEnded()?this:(this.status={...e},this.status.message!=null&&typeof e.message!="string"&&(Lt.warn(`Dropping invalid status.message of type '${typeof e.message}', expected 'string'`),delete this.status.message),this)}updateName(e){return this._isSpanEnded()?this:(this.name=e,this)}end(e){if(this._isSpanEnded()){Lt.error(`${this.name} ${this._spanContext.traceId}-${this._spanContext.spanId} - You can only call end() on a span once.`);return}this._ended=!0,this.endTime=this._getTime(e),this._duration=QSe(this.startTime,this.endTime),this._duration[0]<0&&(Lt.warn("Inconsistent start and end time, startTime > endTime. Setting span duration to 0ms.",this.startTime,this.endTime),this.endTime=this.startTime.slice(),this._duration=[0,0]),this._droppedEventsCount>0&&Lt.warn(`Dropped ${this._droppedEventsCount} events because eventCountLimit reached`),this._spanProcessor.onEnd(this)}_getTime(e){if(typeof e=="number"&&e<=fd.now())return jSe(e+this._performanceOffset);if(typeof e=="number")return td(e);if(e instanceof Date)return td(e.getTime());if(T6(e))return e;if(this._startTimeProvided)return td(Date.now());const r=fd.now()-this._performanceStartTime;return E6(this.startTime,td(r))}isRecording(){return this._ended===!1}recordException(e,r){const n={};typeof e=="string"?n[tw]=e:e&&(e.code?n[rw]=e.code.toString():e.name&&(n[rw]=e.name),e.message&&(n[tw]=e.message),e.stack&&(n[kSe]=e.stack)),n[rw]||n[tw]?this.addEvent(Owe,n,r):Lt.warn(`Failed to record an exception ${e}`)}get duration(){return this._duration}get ended(){return this._ended}get droppedAttributesCount(){return this._droppedAttributesCount}get droppedEventsCount(){return this._droppedEventsCount}get droppedLinksCount(){return this._droppedLinksCount}_isSpanEnded(){if(this._ended){const e=new Error(`Operation attempted on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`);Lt.warn(`Cannot execute the operation on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`,e)}return this._ended}_truncateToLimitUtil(e,r){return e.length<=r?e:e.substring(0,r)}_truncateToSize(e){const r=this._attributeValueLengthLimit;return r<=0?(Lt.warn(`Attribute value limit must be positive, got ${r}`),e):typeof e=="string"?this._truncateToLimitUtil(e,r):Array.isArray(e)?e.map(n=>typeof n=="string"?this._truncateToLimitUtil(n,r):n):e}}var Nd;(function(t){t[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(Nd||(Nd={}));class mb{shouldSample(){return{decision:Nd.NOT_RECORD}}toString(){return"AlwaysOffSampler"}}class pd{shouldSample(){return{decision:Nd.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}}class bO{_root;_remoteParentSampled;_remoteParentNotSampled;_localParentSampled;_localParentNotSampled;constructor(e){this._root=e.root,this._root||(Dd(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new pd),this._remoteParentSampled=e.remoteParentSampled??new pd,this._remoteParentNotSampled=e.remoteParentNotSampled??new mb,this._localParentSampled=e.localParentSampled??new pd,this._localParentNotSampled=e.localParentNotSampled??new mb}shouldSample(e,r,n,i,o,s){const a=ci.getSpanContext(e);return!a||!bx(a)?this._root.shouldSample(e,r,n,i,o,s):a.isRemote?a.traceFlags&$a.SAMPLED?this._remoteParentSampled.shouldSample(e,r,n,i,o,s):this._remoteParentNotSampled.shouldSample(e,r,n,i,o,s):a.traceFlags&$a.SAMPLED?this._localParentSampled.shouldSample(e,r,n,i,o,s):this._localParentNotSampled.shouldSample(e,r,n,i,o,s)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}}class f5{_ratio;_upperBound;constructor(e=0){this._ratio=e,this._ratio=this._normalize(e),this._upperBound=Math.floor(this._ratio*4294967295)}shouldSample(e,r){return{decision:b6(r)&&this._accumulate(r)<this._upperBound?Nd.RECORD_AND_SAMPLED:Nd.NOT_RECORD}}toString(){return`TraceIdRatioBased{${this._ratio}}`}_normalize(e){return typeof e!="number"||isNaN(e)?0:e>=1?1:e<=0?0:e}_accumulate(e){let r=0;for(let n=0;n<e.length/8;n++){const i=n*8,o=parseInt(e.slice(i,i+8),16);r=(r^o)>>>0}return r}}const p5=1;function N6(){return{sampler:M6(),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128},spanLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128,linkCountLimit:128,eventCountLimit:128,attributePerEventCountLimit:128,attributePerLinkCountLimit:128}}}function M6(){const t="parentbased_always_on";switch(t){case"always_on":return new pd;case"always_off":return new mb;case"parentbased_always_on":return new bO({root:new pd});case"parentbased_always_off":return new bO({root:new mb});case"traceidratio":return new f5(h5());case"parentbased_traceidratio":return new bO({root:new f5(h5())});default:return Lt.error(`OTEL_TRACES_SAMPLER value "${t}" invalid, defaulting to "parentbased_always_on".`),new bO({root:new pd})}}function h5(){return Lt.error(`OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${p5}.`),p5}const vwe=128,bwe=1/0;function xwe(t){const e={sampler:M6()},r=N6(),n=Object.assign({},r,e,t);return n.generalLimits=Object.assign({},r.generalLimits,t.generalLimits||{}),n.spanLimits=Object.assign({},r.spanLimits,t.spanLimits||{}),n}function Swe(t){const e=Object.assign({},t.spanLimits);return e.attributeCountLimit=t.spanLimits?.attributeCountLimit??t.generalLimits?.attributeCountLimit??void 0??void 0??vwe,e.attributeValueLengthLimit=t.spanLimits?.attributeValueLengthLimit??t.generalLimits?.attributeValueLengthLimit??void 0??void 0??bwe,Object.assign({},t,{spanLimits:e})}class wwe{_exporter;_maxExportBatchSize;_maxQueueSize;_scheduledDelayMillis;_exportTimeoutMillis;_isExporting=!1;_finishedSpans=[];_timer;_shutdownOnce;_droppedSpansCount=0;constructor(e,r){this._exporter=e,this._maxExportBatchSize=typeof r?.maxExportBatchSize=="number"?r.maxExportBatchSize:512,this._maxQueueSize=typeof r?.maxQueueSize=="number"?r.maxQueueSize:2048,this._scheduledDelayMillis=typeof r?.scheduledDelayMillis=="number"?r.scheduledDelayMillis:5e3,this._exportTimeoutMillis=typeof r?.exportTimeoutMillis=="number"?r.exportTimeoutMillis:3e4,this._shutdownOnce=new hwe(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(Lt.warn("BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize)}forceFlush(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()}onStart(e,r){}onEnd(e){this._shutdownOnce.isCalled||(e.spanContext().traceFlags&$a.SAMPLED)!==0&&this._addToBuffer(e)}shutdown(){return this._shutdownOnce.call()}_shutdown(){return Promise.resolve().then(()=>this.onShutdown()).then(()=>this._flushAll()).then(()=>this._exporter.shutdown())}_addToBuffer(e){if(this._finishedSpans.length>=this._maxQueueSize){this._droppedSpansCount===0&&Lt.debug("maxQueueSize reached, dropping spans"),this._droppedSpansCount++;return}this._droppedSpansCount>0&&(Lt.warn(`Dropped ${this._droppedSpansCount} spans because maxQueueSize reached`),this._droppedSpansCount=0),this._finishedSpans.push(e),this._maybeStartTimer()}_flushAll(){return new Promise((e,r)=>{const n=[],i=Math.ceil(this._finishedSpans.length/this._maxExportBatchSize);for(let o=0,s=i;o<s;o++)n.push(this._flushOneBatch());Promise.all(n).then(()=>{e()}).catch(r)})}_flushOneBatch(){return this._clearTimer(),this._finishedSpans.length===0?Promise.resolve():new Promise((e,r)=>{const n=setTimeout(()=>{r(new Error("Timeout"))},this._exportTimeoutMillis);ga.with(dSe(ga.active()),()=>{let i;this._finishedSpans.length<=this._maxExportBatchSize?(i=this._finishedSpans,this._finishedSpans=[]):i=this._finishedSpans.splice(0,this._maxExportBatchSize);const o=()=>this._exporter.export(i,a=>{clearTimeout(n),a.code===cs.SUCCESS?e():r(a.error??new Error("BatchSpanProcessor: span export failed"))});let s=null;for(let a=0,l=i.length;a<l;a++){const c=i[a];c.resource.asyncAttributesPending&&c.resource.waitForAsyncAttributes&&(s??=[],s.push(c.resource.waitForAsyncAttributes()))}s===null?o():Promise.all(s).then(o,a=>{Dd(a),r(a)})})})}_maybeStartTimer(){if(this._isExporting)return;const e=()=>{this._isExporting=!0,this._flushOneBatch().finally(()=>{this._isExporting=!1,this._finishedSpans.length>0&&(this._clearTimer(),this._maybeStartTimer())}).catch(r=>{this._isExporting=!1,Dd(r)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return e();this._timer===void 0&&(this._timer=setTimeout(()=>e(),this._scheduledDelayMillis),this._timer,void 0)}_clearTimer(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0)}}class Pwe extends wwe{_visibilityChangeListener;_pageHideListener;constructor(e,r){super(e,r),this.onInit(r)}onInit(e){e?.disableAutoFlushOnDocumentHide!==!0&&typeof document<"u"&&(this._visibilityChangeListener=()=>{document.visibilityState==="hidden"&&this.forceFlush().catch(r=>{Dd(r)})},this._pageHideListener=()=>{this.forceFlush().catch(r=>{Dd(r)})},document.addEventListener("visibilitychange",this._visibilityChangeListener),document.addEventListener("pagehide",this._pageHideListener))}onShutdown(){typeof document<"u"&&(this._visibilityChangeListener&&document.removeEventListener("visibilitychange",this._visibilityChangeListener),this._pageHideListener&&document.removeEventListener("pagehide",this._pageHideListener))}}const Cwe=8,$we=16;class kwe{generateTraceId=g5($we);generateSpanId=g5(Cwe)}const xO=Array(32);function g5(t){return function(){for(let r=0;r<t*2;r++)xO[r]=Math.floor(Math.random()*16)+48,xO[r]>=58&&(xO[r]+=39);return String.fromCharCode.apply(null,xO.slice(0,t*2))}}class Twe{_sampler;_generalLimits;_spanLimits;_idGenerator;instrumentationScope;_resource;_spanProcessor;constructor(e,r,n,i){const o=xwe(r);this._sampler=o.sampler,this._generalLimits=o.generalLimits,this._spanLimits=o.spanLimits,this._idGenerator=r.idGenerator||new kwe,this._resource=n,this._spanProcessor=i,this.instrumentationScope=e}startSpan(e,r={},n=ga.active()){r.root&&(n=ci.deleteSpan(n));const i=ci.getSpan(n);if(TE(n))return Lt.debug("Instrumentation suppressed, returning Noop Span"),ci.wrapSpanContext(y6);const o=i?.spanContext(),s=this._idGenerator.generateSpanId();let a,l,c;!o||!ci.isSpanContextValid(o)?l=this._idGenerator.generateTraceId():(l=o.traceId,c=o.traceState,a=o);const u=r.kind??VC.INTERNAL,d=(r.links??[]).map(v=>({context:v.context,attributes:Ay(v.attributes)})),p=Ay(r.attributes),h=this._sampler.shouldSample(n,l,e,u,p,d);c=h.traceState??c;const m=h.decision===fb.RECORD_AND_SAMPLED?$a.SAMPLED:$a.NONE,g={traceId:l,spanId:s,traceFlags:m,traceState:c};if(h.decision===fb.NOT_RECORD)return Lt.debug("Recording is off, propagating context in a non-recording span"),ci.wrapSpanContext(g);const O=Ay(Object.assign(p,h.attributes));return new ywe({resource:this._resource,scope:this.instrumentationScope,context:n,spanContext:g,name:e,kind:u,links:d,parentSpanContext:a,attributes:O,startTime:r.startTime,spanProcessor:this._spanProcessor,spanLimits:this._spanLimits})}startActiveSpan(e,r,n,i){let o,s,a;if(arguments.length<2)return;arguments.length===2?a=r:arguments.length===3?(o=r,a=n):(o=r,s=n,a=i);const l=s??ga.active(),c=this.startSpan(e,o,l),u=ci.setSpan(l,c);return ga.with(u,a,void 0,c)}getGeneralLimits(){return this._generalLimits}getSpanLimits(){return this._spanLimits}}class Ewe{_spanProcessors;constructor(e){this._spanProcessors=e}forceFlush(){const e=[];for(const r of this._spanProcessors)e.push(r.forceFlush());return new Promise(r=>{Promise.all(e).then(()=>{r()}).catch(n=>{Dd(n||new Error("MultiSpanProcessor: forceFlush failed")),r()})})}onStart(e,r){for(const n of this._spanProcessors)n.onStart(e,r)}onEnd(e){for(const r of this._spanProcessors)r.onEnd(e)}shutdown(){const e=[];for(const r of this._spanProcessors)e.push(r.shutdown());return new Promise((r,n)=>{Promise.all(e).then(()=>{r()},n)})}}var pc;(function(t){t[t.resolved=0]="resolved",t[t.timeout=1]="timeout",t[t.error=2]="error",t[t.unresolved=3]="unresolved"})(pc||(pc={}));class Awe{_config;_tracers=new Map;_resource;_activeSpanProcessor;constructor(e={}){const r=dwe({},N6(),Swe(e));this._resource=r.resource??mwe(),this._config=Object.assign({},r,{resource:this._resource});const n=[];e.spanProcessors?.length&&n.push(...e.spanProcessors),this._activeSpanProcessor=new Ewe(n)}getTracer(e,r,n){const i=`${e}@${r||""}:${n?.schemaUrl||""}`;return this._tracers.has(i)||this._tracers.set(i,new Twe({name:e,version:r,schemaUrl:n?.schemaUrl},this._config,this._resource,this._activeSpanProcessor)),this._tracers.get(i)}forceFlush(){const e=this._config.forceFlushTimeoutMillis,r=this._activeSpanProcessor._spanProcessors.map(n=>new Promise(i=>{let o;const s=setTimeout(()=>{i(new Error(`Span processor did not completed within timeout period of ${e} ms`)),o=pc.timeout},e);n.forceFlush().then(()=>{clearTimeout(s),o!==pc.timeout&&(o=pc.resolved,i(o))}).catch(a=>{clearTimeout(s),o=pc.error,i(a)})}));return new Promise((n,i)=>{Promise.all(r).then(o=>{const s=o.filter(a=>a!==pc.resolved);s.length>0?i(s):n()}).catch(o=>i([o]))})}shutdown(){return this._activeSpanProcessor.shutdown()}}class Iwe{_enabled=!1;_currentContext=Uu;_bindFunction(e=Uu,r){const n=this,i=function(...o){return n.with(e,()=>r.apply(this,o))};return Object.defineProperty(i,"length",{enumerable:!1,configurable:!0,writable:!1,value:r.length}),i}active(){return this._currentContext}bind(e,r){return e===void 0&&(e=this.active()),typeof r=="function"?this._bindFunction(e,r):r}disable(){return this._currentContext=Uu,this._enabled=!1,this}enable(){return this._enabled?this:(this._enabled=!0,this._currentContext=Uu,this)}with(e,r,n,...i){const o=this._currentContext;this._currentContext=e||Uu;try{return r.call(n,...i)}finally{this._currentContext=o}}}function Rwe(t){if(t!==null){if(t===void 0){const e=new Iwe;e.enable(),ga.setGlobalContextManager(e);return}t.enable(),ga.setGlobalContextManager(t)}}function _we(t){if(t!==null){if(t===void 0){zp.setGlobalPropagator(new NSe({propagators:[new KSe,new vSe]}));return}zp.setGlobalPropagator(t)}}class jwe extends Awe{constructor(e={}){super(e)}register(e={}){ci.setGlobalTracerProvider(this),_we(e.propagator),Rwe(e.contextManager)}}class Qwe{_delegate;constructor(e){this._delegate=e}export(e,r){this._delegate.export(e,r)}forceFlush(){return this._delegate.forceFlush()}shutdown(){return this._delegate.shutdown()}}class m5 extends Error{code;name="OTLPExporterError";data;constructor(e,r,n){super(e),this.data=n,this.code=r}}function Dwe(t){if(Number.isFinite(t)&&t>0)return t;throw new Error(`Configuration: timeoutMillis is invalid, expected number greater than 0 (actual: '${t}')`)}function Nwe(t){if(t!=null)return()=>t}function Mwe(t,e,r){return{timeoutMillis:Dwe(t.timeoutMillis??e.timeoutMillis??r.timeoutMillis),concurrencyLimit:t.concurrencyLimit??e.concurrencyLimit??r.concurrencyLimit,compression:t.compression??e.compression??r.compression}}function qwe(){return{timeoutMillis:1e4,concurrencyLimit:30,compression:"none"}}class zwe{_concurrencyLimit;_sendingPromises=[];constructor(e){this._concurrencyLimit=e}pushPromise(e){if(this.hasReachedLimit())throw new Error("Concurrency Limit reached");this._sendingPromises.push(e);const r=()=>{const n=this._sendingPromises.indexOf(e);this._sendingPromises.splice(n,1)};e.then(r,r)}hasReachedLimit(){return this._sendingPromises.length>=this._concurrencyLimit}async awaitAll(){await Promise.all(this._sendingPromises)}}function Lwe(t){return new zwe(t.concurrencyLimit)}function Vwe(t){return Object.prototype.hasOwnProperty.call(t,"partialSuccess")}function Xwe(){return{handleResponse(t){t==null||!Vwe(t)||t.partialSuccess==null||Object.keys(t.partialSuccess).length===0||Lt.warn("Received Partial Success response:",JSON.stringify(t.partialSuccess))}}}class Wwe{_transport;_serializer;_responseHandler;_promiseQueue;_timeout;_diagLogger;constructor(e,r,n,i,o){this._transport=e,this._serializer=r,this._responseHandler=n,this._promiseQueue=i,this._timeout=o,this._diagLogger=Lt.createComponentLogger({namespace:"OTLPExportDelegate"})}export(e,r){if(this._diagLogger.debug("items to be sent",e),this._promiseQueue.hasReachedLimit()){r({code:cs.FAILED,error:new Error("Concurrent export limit reached")});return}const n=this._serializer.serializeRequest(e);if(n==null){r({code:cs.FAILED,error:new Error("Nothing to send")});return}this._promiseQueue.pushPromise(this._transport.send(n,this._timeout).then(i=>{if(i.status==="success"){if(i.data!=null)try{this._responseHandler.handleResponse(this._serializer.deserializeResponse(i.data))}catch(o){this._diagLogger.warn("Export succeeded but could not deserialize response - is the response specification compliant?",o,i.data)}r({code:cs.SUCCESS});return}else if(i.status==="failure"&&i.error){r({code:cs.FAILED,error:i.error});return}else i.status==="retryable"?r({code:cs.FAILED,error:new m5("Export failed with retryable status")}):r({code:cs.FAILED,error:new m5("Export failed with unknown error")})},i=>r({code:cs.FAILED,error:i})))}forceFlush(){return this._promiseQueue.awaitAll()}async shutdown(){this._diagLogger.debug("shutdown started"),await this.forceFlush(),this._transport.shutdown()}}function Uwe(t,e){return new Wwe(t.transport,t.serializer,Xwe(),t.promiseHandler,e.timeout)}function q6(t,e,r){return Uwe({transport:r,serializer:e,promiseHandler:Lwe(t)},{timeout:t.timeoutMillis})}function O5(t){return t>=48&&t<=57?t-48:t>=97&&t<=102?t-87:t-55}function z6(t){const e=new Uint8Array(t.length/2);let r=0;for(let n=0;n<t.length;n+=2){const i=O5(t.charCodeAt(n)),o=O5(t.charCodeAt(n+1));e[r++]=i<<4|o}return e}function L6(t){const e=BigInt(1e9);return BigInt(t[0])*e+BigInt(t[1])}function Bwe(t){const e=Number(BigInt.asUintN(32,t)),r=Number(BigInt.asUintN(32,t>>BigInt(32)));return{low:e,high:r}}function Fwe(t){const e=L6(t);return Bwe(e)}function Zwe(t){return L6(t).toString()}const Ywe=typeof BigInt<"u"?Zwe:DSe;function y5(t){return t}function Gwe(t){if(t!==void 0)return z6(t)}const Hwe={encodeHrTime:Fwe,encodeSpanContext:z6,encodeOptionalSpanContext:Gwe};function Jwe(t){return t===void 0?Hwe:{encodeHrTime:Ywe,encodeSpanContext:y5,encodeOptionalSpanContext:y5}}function Kwe(t){return{attributes:xx(t.attributes),droppedAttributesCount:0}}function ePe(t){return{name:t.name,version:t.version}}function xx(t){return Object.keys(t).map(e=>V6(e,t[e]))}function V6(t,e){return{key:t,value:X6(e)}}function X6(t){const e=typeof t;return e==="string"?{stringValue:t}:e==="number"?Number.isInteger(t)?{intValue:t}:{doubleValue:t}:e==="boolean"?{boolValue:t}:t instanceof Uint8Array?{bytesValue:t}:Array.isArray(t)?{arrayValue:{values:t.map(X6)}}:e==="object"&&t!=null?{kvlistValue:{values:Object.entries(t).map(([r,n])=>V6(r,n))}}:{}}function tPe(t,e){const r=t.spanContext(),n=t.status,i=t.parentSpanContext?.spanId?e.encodeSpanContext(t.parentSpanContext?.spanId):void 0;return{traceId:e.encodeSpanContext(r.traceId),spanId:e.encodeSpanContext(r.spanId),parentSpanId:i,traceState:r.traceState?.serialize(),name:t.name,kind:t.kind==null?0:t.kind+1,startTimeUnixNano:e.encodeHrTime(t.startTime),endTimeUnixNano:e.encodeHrTime(t.endTime),attributes:xx(t.attributes),droppedAttributesCount:t.droppedAttributesCount,events:t.events.map(o=>nPe(o,e)),droppedEventsCount:t.droppedEventsCount,status:{code:n.code,message:n.message},links:t.links.map(o=>rPe(o,e)),droppedLinksCount:t.droppedLinksCount}}function rPe(t,e){return{attributes:t.attributes?xx(t.attributes):[],spanId:e.encodeSpanContext(t.context.spanId),traceId:e.encodeSpanContext(t.context.traceId),traceState:t.context.traceState?.serialize(),droppedAttributesCount:t.droppedAttributesCount||0}}function nPe(t,e){return{attributes:t.attributes?xx(t.attributes):[],name:t.name,timeUnixNano:e.encodeHrTime(t.time),droppedAttributesCount:t.droppedAttributesCount||0}}function iPe(t,e){const r=Jwe(e);return{resourceSpans:sPe(t,r)}}function oPe(t){const e=new Map;for(const r of t){let n=e.get(r.resource);n||(n=new Map,e.set(r.resource,n));const i=`${r.instrumentationScope.name}@${r.instrumentationScope.version||""}:${r.instrumentationScope.schemaUrl||""}`;let o=n.get(i);o||(o=[],n.set(i,o)),o.push(r)}return e}function sPe(t,e){const r=oPe(t),n=[],i=r.entries();let o=i.next();for(;!o.done;){const[s,a]=o.value,l=[],c=a.values();let u=c.next();for(;!u.done;){const p=u.value;if(p.length>0){const h=p.map(m=>tPe(m,e));l.push({scope:ePe(p[0].instrumentationScope),spans:h,schemaUrl:p[0].instrumentationScope.schemaUrl})}u=c.next()}const d={resource:Kwe(s),scopeSpans:l,schemaUrl:void 0};n.push(d),o=i.next()}return n}const aPe={serializeRequest:t=>{const e=iPe(t,{});return new TextEncoder().encode(JSON.stringify(e))},deserializeResponse:t=>{if(t.length===0)return{};const e=new TextDecoder;return JSON.parse(e.decode(t))}},lPe=5,cPe=1e3,uPe=5e3,dPe=1.5,v5=.2;function fPe(){return Math.random()*(2*v5)-v5}class pPe{_transport;constructor(e){this._transport=e}retry(e,r,n){return new Promise((i,o)=>{setTimeout(()=>{this._transport.send(e,r).then(i,o)},n)})}async send(e,r){const n=Date.now()+r;let i=await this._transport.send(e,r),o=lPe,s=cPe;for(;i.status==="retryable"&&o>0;){o--;const a=Math.max(Math.min(s,uPe)+fPe(),0);s=s*dPe;const l=i.retryInMillis??a,c=n-Date.now();if(l>c)return i;i=await this.retry(e,c,l)}return i}shutdown(){return this._transport.shutdown()}}function W6(t){return new pPe(t.transport)}function hPe(t){return[429,502,503,504].includes(t)}function gPe(t){if(t==null)return;const e=Number.parseInt(t,10);if(Number.isInteger(e))return e>0?e*1e3:-1;const r=new Date(t).getTime()-Date.now();return r>=0?r:0}class mPe{_parameters;constructor(e){this._parameters=e}send(e,r){return new Promise(n=>{const i=new XMLHttpRequest;i.timeout=r,i.open("POST",this._parameters.url);const o=this._parameters.headers();Object.entries(o).forEach(([s,a])=>{i.setRequestHeader(s,a)}),i.ontimeout=s=>{n({status:"failure",error:new Error("XHR request timed out")})},i.onreadystatechange=()=>{i.status>=200&&i.status<=299?(Lt.debug("XHR success"),n({status:"success"})):i.status&&hPe(i.status)?n({status:"retryable",retryInMillis:gPe(i.getResponseHeader("Retry-After"))}):i.status!==0&&n({status:"failure",error:new Error("XHR request failed with non-retryable status")})},i.onabort=()=>{n({status:"failure",error:new Error("XHR request aborted")})},i.onerror=()=>{n({status:"failure",error:new Error("XHR request errored")})},i.send(e)})}shutdown(){}}function OPe(t){return new mPe(t)}class yPe{_params;constructor(e){this._params=e}send(e){return new Promise(r=>{navigator.sendBeacon(this._params.url,new Blob([e],{type:this._params.blobType}))?(Lt.debug("SendBeacon success"),r({status:"success"})):r({status:"failure",error:new Error("SendBeacon failed")})})}shutdown(){}}function vPe(t){return new yPe(t)}function bPe(t,e){return q6(t,e,W6({transport:OPe(t)}))}function xPe(t,e){return q6(t,e,W6({transport:vPe({url:t.url,blobType:t.headers()["Content-Type"]})}))}function SPe(t){return()=>{const e={};return Object.entries(t?.()??{}).forEach(([r,n])=>{typeof n<"u"?e[r]=String(n):Lt.warn(`Header "${r}" has invalid value (${n}) and will be ignored`)}),e}}function wPe(t,e,r){const n={...r()},i={};return()=>(e!=null&&Object.assign(i,e()),t!=null&&Object.assign(i,t()),Object.assign(i,n))}function PPe(t){if(t!=null)try{return new URL(t),t}catch{throw new Error(`Configuration: Could not parse user-provided export URL: '${t}'`)}}function CPe(t,e,r){return{...Mwe(t,e,r),headers:wPe(SPe(t.headers),e.headers,r.headers),url:PPe(t.url)??e.url??r.url,agentOptions:t.agentOptions??e.agentOptions??r.agentOptions}}function $Pe(t,e){return{...qwe(),headers:()=>t,url:"http://localhost:4318/"+e,agentOptions:{keepAlive:!0}}}function kPe(t,e,r){return CPe({url:t.url,timeoutMillis:t.timeoutMillis,headers:Nwe(t.headers),concurrencyLimit:t.concurrencyLimit},{},$Pe(r,e))}function TPe(t,e,r,n){const i=!!t.headers||typeof navigator.sendBeacon!="function",o=kPe(t,r,n);return i?bPe(o,e):xPe(o,e)}class EPe extends Qwe{constructor(e={}){super(TPe(e,aPe,"v1/traces",{"Content-Type":"application/json"}))}}const APe="service.name",IPe="service.version";class U6{emit(e){}}const RPe=new U6;class _Pe{getLogger(e,r,n){return new U6}}const B6=new _Pe;class jPe{constructor(e,r,n,i){this._provider=e,this.name=r,this.version=n,this.options=i}emit(e){this._getLogger().emit(e)}_getLogger(){if(this._delegate)return this._delegate;const e=this._provider.getDelegateLogger(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):RPe}}class b5{getLogger(e,r,n){var i;return(i=this.getDelegateLogger(e,r,n))!==null&&i!==void 0?i:new jPe(this,e,r,n)}getDelegate(){var e;return(e=this._delegate)!==null&&e!==void 0?e:B6}setDelegate(e){this._delegate=e}getDelegateLogger(e,r,n){var i;return(i=this._delegate)===null||i===void 0?void 0:i.getLogger(e,r,n)}}const QPe=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{},SO=Symbol.for("io.opentelemetry.js.api.logs"),Jf=QPe;function DPe(t,e,r){return n=>n===t?e:r}const x5=1;class AE{constructor(){this._proxyLoggerProvider=new b5}static getInstance(){return this._instance||(this._instance=new AE),this._instance}setGlobalLoggerProvider(e){return Jf[SO]?this.getLoggerProvider():(Jf[SO]=DPe(x5,e,B6),this._proxyLoggerProvider.setDelegate(e),e)}getLoggerProvider(){var e,r;return(r=(e=Jf[SO])===null||e===void 0?void 0:e.call(Jf,x5))!==null&&r!==void 0?r:this._proxyLoggerProvider}getLogger(e,r,n){return this.getLoggerProvider().getLogger(e,r,n)}disable(){delete Jf[SO],this._proxyLoggerProvider=new b5}}const F6=AE.getInstance();function NPe(t,e,r,n){for(let i=0,o=t.length;i<o;i++){const s=t[i];e&&s.setTracerProvider(e),r&&s.setMeterProvider(r),n&&s.setLoggerProvider&&s.setLoggerProvider(n),s.getConfig().enabled||s.enable()}}function MPe(t){t.forEach(e=>e.disable())}function qPe(t){const e=t.tracerProvider||ci.getTracerProvider(),r=t.meterProvider||S6.getMeterProvider(),n=t.loggerProvider||F6.getLoggerProvider(),i=t.instrumentations?.flat()??[];return NPe(i,e,r,n),()=>{MPe(i)}}let Ni=console.error.bind(console);function Kf(t,e,r){const n=!!t[e]&&Object.prototype.propertyIsEnumerable.call(t,e);Object.defineProperty(t,e,{configurable:!0,enumerable:n,writable:!0,value:r})}const Z6=(t,e,r)=>{if(!t||!t[e]){Ni("no original function "+String(e)+" to wrap");return}if(!r){Ni("no wrapper function"),Ni(new Error().stack);return}const n=t[e];if(typeof n!="function"||typeof r!="function"){Ni("original object and wrapper must be functions");return}const i=r(n,e);return Kf(i,"__original",n),Kf(i,"__unwrap",()=>{t[e]===i&&Kf(t,e,n)}),Kf(i,"__wrapped",!0),Kf(t,e,i),i},zPe=(t,e,r)=>{if(t)Array.isArray(t)||(t=[t]);else{Ni("must provide one or more modules to patch"),Ni(new Error().stack);return}if(!(e&&Array.isArray(e))){Ni("must provide one or more functions to wrap on modules");return}t.forEach(n=>{e.forEach(i=>{Z6(n,i,r)})})},Y6=(t,e)=>{if(!t||!t[e]){Ni("no function to unwrap."),Ni(new Error().stack);return}const r=t[e];if(!r.__unwrap)Ni("no original to unwrap to -- has "+String(e)+" already been unwrapped?");else{r.__unwrap();return}},LPe=(t,e)=>{if(t)Array.isArray(t)||(t=[t]);else{Ni("must provide one or more modules to patch"),Ni(new Error().stack);return}if(!(e&&Array.isArray(e))){Ni("must provide one or more functions to unwrap on modules");return}t.forEach(r=>{e.forEach(n=>{Y6(r,n)})})};class VPe{instrumentationName;instrumentationVersion;_config={};_tracer;_meter;_logger;_diag;constructor(e,r,n){this.instrumentationName=e,this.instrumentationVersion=r,this.setConfig(n),this._diag=Lt.createComponentLogger({namespace:e}),this._tracer=ci.getTracer(e,r),this._meter=S6.getMeter(e,r),this._logger=F6.getLogger(e,r),this._updateMetricInstruments()}_wrap=Z6;_unwrap=Y6;_massWrap=zPe;_massUnwrap=LPe;get meter(){return this._meter}setMeterProvider(e){this._meter=e.getMeter(this.instrumentationName,this.instrumentationVersion),this._updateMetricInstruments()}get logger(){return this._logger}setLoggerProvider(e){this._logger=e.getLogger(this.instrumentationName,this.instrumentationVersion)}getModuleDefinitions(){const e=this.init()??[];return Array.isArray(e)?e:[e]}_updateMetricInstruments(){}getConfig(){return this._config}setConfig(e){this._config={enabled:!0,...e}}setTracerProvider(e){this._tracer=e.getTracer(this.instrumentationName,this.instrumentationVersion)}get tracer(){return this._tracer}_runSpanCustomizationHook(e,r,n,i){if(e)try{e(n,i)}catch(o){this._diag.error("Error running span customization hook due to exception in handler",{triggerName:r},o)}}}class XPe extends VPe{constructor(e,r,n){super(e,r,n),this._config.enabled&&this.enable()}}class WPe{span=void 0;constructor(e){this.span=e}get context(){return this.span?.context}error(e){this.span&&(this.span.setStatus(exports.SpanStatusCode.ERROR,e.message),this.span.recordException(e),this.span.end())}setAttribute(e,r){this.span&&this.span.setAttribute(e,r)}end(){this.span&&(this.span.setStatus(exports.SpanStatusCode.OK),this.span.end())}}class UPe{config=null;tracer=null;tracerProvider=null;initialized=!1;initTracer(e){throw new Error("initTracer must be implemented by the environment-specific client")}init(e){this.config=e,this.initTracer(e)}send(e){try{if(!this.tracer||!this.config)return;const r=e.time?new Date(e.time):new Date;this.tracer.startSpan(`event.${e.type}`,{attributes:this.processAttributes(e,r),startTime:r}).end(r)}catch(r){this.config?.isProd||console.error("Event reporting failed:",r)}}processAttributes(e,r){const i={"cloudevents.event_id":db(),"cloudevents.event_type":e.type,"cloudevents.event_source":e.source,"cloudevents.event_spec_version":e.specversion,"cloudevents.event_data_content_type":e.datacontenttype||"application/json; charset=utf-8","cloudevents.event_time":r.toISOString(),"cloudevents.event_subject":e.subject??"","cloudevents.page.uri":location.href,"cloudevents.event_version":this.config?.version,"cloudevents.event_origin":this.config?.serviceName,"cloudevents.event_source_details.id":e.sourceDetails?.id??"anonymous","cloudevents.event_source_details.object":e.sourceDetails?.object??"anonymous","cloudevents.event_source_details.uri":e.sourceDetails?.uri};if(e.data&&typeof e.data=="object"&&!Array.isArray(e.data))for(const[o,s]of Object.entries(e.data)){const a=o.replace(/([A-Z])/g,"_$1").toLowerCase();if(s!==void 0)if(typeof s=="object"&&s!==null&&!Array.isArray(s))for(const[l,c]of Object.entries(s))c!==void 0&&(i[`cloudevents.event_data.${a}.${l}`]=c);else i[`cloudevents.event_data.${a}`]=s}if(e.data&&Array.isArray(e.data)){if(e.data.some(s=>s&&typeof s=="object"&&"object"in s)){const s=[],a=[];for(const l of e.data){if(!l||typeof l!="object")continue;const c=l.object;if(!c||typeof c!="string")continue;const u=l,d=a.find(p=>p.object===c);if(d){s.push(d,u);const p=a.indexOf(d);a.splice(p,1)}else s.some(h=>h.object===c)||a.push(u)}for(let l=0;l<s.length;l++){const c=s[l],u=l===0?"after.":"before.",d=`${c.object}.`;for(const[p,h]of Object.entries(c))if(h!==void 0){const m=p.replace(/([A-Z])/g,"_$1").toLowerCase();i[`cloudevents.event_data.${u}${d}${m}`]=h}}for(const l of a){const c=`${l.object}.`;for(const[u,d]of Object.entries(l))if(d!==void 0){const p=u.replace(/([A-Z])/g,"_$1").toLowerCase();i[`cloudevents.event_data.${c}${p}`]=d}}}else for(const s of e.data)if(s&&typeof s=="object"){for(const[a,l]of Object.entries(s))if(l!==void 0){const c=a.replace(/([A-Z])/g,"_$1").toLowerCase();if(l!==null&&typeof l=="object"&&!Array.isArray(l)){for(const[u,d]of Object.entries(l))if(d!=null&&typeof d!="object"){const p=u.replace(/([A-Z])/g,"_$1").toLowerCase();i[`cloudevents.event_data.${c}.${p}`]=d}}else i[`cloudevents.event_data.${c}`]=l}}}if("subjects"in e&&Array.isArray(e.subjects)){const o=e.subjects.reduce((s,a)=>{if(!a||typeof a!="object")return s;const l=a.object;if(!l||typeof l!="string")return s;const c=s.notUpdated.find(({object:u})=>u===l);return c?(s.updated=[c,a],s.notUpdated=s.notUpdated.filter(({object:u})=>u!==l)):s.updated.some(({object:u})=>u===l)||s.notUpdated.push(a),s},{updated:[],notUpdated:[]});o.updated.forEach((s,a)=>{const l=a===0?"after.":"before.",c=`${s.object}.`;Object.entries(s).forEach(([u,d])=>{d!==void 0&&(i[`cloudevents.subjects.${l}${c}${u}`]=d)})}),o.notUpdated.forEach(s=>{const a=`${s.object}.`;Object.entries(s).forEach(([l,c])=>{c!==void 0&&(i[`cloudevents.subjects.${a}${l}`]=c)})})}return Object.entries(e).forEach(([o,s])=>{["id","source","type","specversion","time","datacontenttype","data","subject","sourceDetails","analyticsMetadata","context"].includes(o)||s!==void 0&&(s instanceof Object?Object.entries(s).forEach(([a,l])=>{l!==void 0&&(i[`cloudevents.${o}.${a}`]=l)}):i[`cloudevents.${o}`]=s)}),i}startSpan(e,r){try{if(!this.tracer)return;let n;const i=e.time?new Date(e.time):new Date,o=this.tracer.startSpan(`event.${e.type}`,{attributes:this.processAttributes(e,i),root:!r},r);return r||(n=ci.setSpan(ga.active(),o)),{end:()=>o.end(),setAttribute:(s,a)=>{o.setAttribute(`cloudevents.event_data.${this.getKeySnakeValue(s)}`,a)},setStatus:(s,a)=>o.setStatus({code:s,message:a}),parentCtx:n}}catch(n){this.config?.isProd||console.error("Event reporting failed:",n);return}}startStepSpan(e){try{if(!this.tracer)return;const r=ga.active(),n=e.time?new Date(e.time):new Date,i=this.tracer.startSpan(`event.${e.type}`,{attributes:this.processAttributes(e,n)},r),o=ci.setSpan(r,i);return{end:()=>i.end(),setAttribute:(s,a)=>{i.setAttribute(`cloudevents.event_data.${this.getKeySnakeValue(s)}`,a)},setStatus:(s,a)=>i.setStatus({code:s,message:a}),recordException:s=>i.recordException(s),context:o}}catch(r){this.config?.isProd||console.error("Event reporting failed:",r);return}}traceStep(e){const r=this.startStepSpan(e);if(r)return new WPe(r)}async forceFlush(){return this.tracerProvider?.forceFlush()}async shutdown(){return this.tracerProvider?.shutdown()}getKeySnakeValue=e=>e.replace(/([A-Z])/g,"_$1").toLowerCase()}class BPe extends UPe{tracerProvider=null;tracer=null;initialized=!1;constructor(){super()}initTracer(e){if(!e.collectorUrl&&!e.collectorTraceUrl)return;const r=`ses_${db()}`,n=D6({[APe]:e.serviceName,[IPe]:e.serviceVersion,session_id:r}),i=e.collectorTraceUrl||`${e.collectorUrl}/v1/traces`;this.tracerProvider=new jwe({resource:n,spanProcessors:[new Pwe(new EPe({url:i,headers:{}}))]}),this.tracer=this.tracerProvider.getTracer(e.tracerName),this.tracerProvider.register(),qPe({instrumentations:e.instrumentations??[]}),this.initialized=!0}}class ua extends XPe{sendErrorEvent;originalConsoleError;constructor(e,r){super("errors","1.0",e||{}),this.sendErrorEvent=r}static toErrorEvent(e,r){return{type:"error",payload:[{handler:r,errorType:ua.getErrorType(e),message:ua.getErrorMessage(e),stack:ua.getErrorStack(e)}]}}enable(){window.addEventListener("error",this.onError),window.addEventListener("unhandledrejection",this.onUnhandledRejection),this.wrapConsoleError()}disable(){window.removeEventListener("error",this.onError),window.removeEventListener("unhandledrejection",this.onUnhandledRejection),this.unwrapConsoleError()}init(){}static getErrorMessage(e){return e?(typeof e=="object"&&"message"in e?String(e.message):String(e)).trim():void 0}static getErrorStack(e){if(!e||typeof e!="object"||!("stack"in e)||!e.stack)return;const r=String(e.stack);return r.length>4096?r.substring(0,4096):r}static getErrorType(e){return!e||typeof e!="object"?typeof e:"name"in e?String(e.name):"constructor"in e&&"name"in e.constructor?String(e.constructor.name):"Error"}static combineConsoleErrorArgs(e){const r=e.findIndex(i=>i instanceof Error),n=e.filter((i,o)=>o!==r).map(i=>String(i)).join(" ");if(r===-1)return n;{const i=e[r];return n&&(i.message=`${i.message} ${n}`),i}}onError=e=>{this.sendError(e.error,"window.onerror")};onUnhandledRejection=e=>{this.sendError(e.reason,"window.onunhandledrejection")};wrapConsoleError(){this.originalConsoleError=console.error,console.error=(...e)=>{try{const r=ua.combineConsoleErrorArgs(e);this.sendError(r,"console.error")}catch(r){process.env.NODE_ENV!=="production"&&this.originalConsoleError?.call(console,"Error reporting failed:",r)}this.originalConsoleError?.apply(console,e)}}unwrapConsoleError(){this.originalConsoleError&&(console.error=this.originalConsoleError,this.originalConsoleError=void 0)}sendError(e,r){this.sendErrorEvent(ua.toErrorEvent(e,r))}}class FPe{config=null;initialized=!1;useCloudEventData;otelClient;tracer;constructor(){this.useCloudEventData=()=>({organization:{id:"",slug:""},project:{id:"",slug:""},productType:"",sourceDetails:{user:"Anonymous",object:"user",uri:""},request:{source:""}}),this.otelClient=new BPe,this.tracer={traceStep:(e,r)=>{const n=this.constructCloudEvent(e,r);return this.otelClient.traceStep(n)}}}updateCloudEventData=e=>{this.config?.disabled||(this.useCloudEventData=e)};send(e,r){try{if(!this.config?.otel.isProd)return;const n=this.constructCloudEvent(e,r);this.sendToOtelService(n)}catch(n){this.config?.otel.isProd||console.error("Event reporting failed:",n)}}init(e){e.disabled||this.initialized||(this.config=e,this.initialized=!0,this.otelClient.init({serviceVersion:e.otel.serviceVersion,version:e.otel.version,isProd:e.otel.isProd,collectorUrl:e.otel.collectorUrl,collectorTraceUrl:e.otel.collectorTraceUrl,serviceName:e.otel.serviceName,tracerName:e.otel.tracerName,instrumentations:[...e.otel.enableErrorInstrumentation===!0?[new ua(void 0,r=>{this.sendErrorMessage(r.payload)})]:[],...e.otel.instrumentations||[]]}))}startSpan(e,r,n){if(this.config?.disabled)return;const i=this.constructCloudEvent(e,r);return this.otelClient.startSpan(i,n)}constructCloudEvent(e,r){const n=this.useCloudEventData();return{id:`evt_${db()}`,type:e,source:n.request.source||"",specversion:"1.0",datacontenttype:"application/json",time:new Date().toISOString(),data:r,origin:n.origin||"ui",sourceDetails:{id:n.sourceDetails.user||`usr_${db()}`,object:n.sourceDetails.object||"user",uri:n.sourceDetails.uri||""},organization:n.organization,project:n.project,productType:n.productType}}sendToOtelService(e){this.config?.otel.isProd||console.log("CloudEvent to be sent to OTEL service:",e),this.otelClient.send(e)}forceFlush(){return this.config?.disabled?Promise.resolve():this.otelClient.forceFlush()}shutdown(){return this.config?.disabled?Promise.resolve():this.otelClient.shutdown()}sendError(e,r){this.config?.disabled||this.send(ua.toErrorEvent(e,r).type,ua.toErrorEvent(e,r).payload)}sendTabChangeMessage(e){this.send("tab.change",e)}sendButtonClickMessage(e){this.send("button.click",e)}sendChangeMessage(e){this.send("change",e)}sendContentCopyMessage(e){this.send("content.copy",e)}sendRequestSendMessage(e){this.send("request.send",e)}sendTokenGenerateMessage(e){this.send("token.generate",e)}sendAppLifecycleMessage(e){this.send("app.lifecycle",e)}sendEnvironmentManagementMessage(e){this.send("environment.management",e)}sendServerManagementMessage(e){this.send("server.management",e)}sendInputManagementMessage(e){this.send("input.management",e)}sendNodeManagementMessage(e){this.send("node.management",e)}sendHistoryManagementMessage(e){this.send("history.management",e)}sendCredentialManagementMessage(e){this.send("credential.management",e)}sendPanelToggleMessage(e){this.send("panel.toggle",e)}sendWorkflowRunClickMessage(e){this.send("workflow.run.click",e)}sendWorkflowRunResultMessage(e){this.send("workflow.run.result",e)}sendStorageReadMessage(){this.send("storage.read")}sendStorageLoadUserStateMessage(){this.send("storage.loadUserState")}sendStorageDetectFilesMessage(){this.send("storage.detectFiles")}sendStorageLoadApisMessage(){this.send("storage.loadApis")}sendStorageParseApisMessage(){this.send("storage.parseApis")}sendStorageParseCollectionsMessage(){this.send("storage.parseCollections")}sendUpdaterCheckMessage(){this.send("updater.check")}sendUpdaterDownloadMessage(){this.send("updater.download")}sendUpdaterInstallMessage(){this.send("updater.install")}sendUpdaterProcessMessage(){this.send("updater.process")}sendErrorMessage(e){this.send("error",e)}sendCodeEditorSearchMessage(e){this.send("code_editor.search",e)}}const Sx=["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"],ZPe="https://cors.redocly.com/";function YPe(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function S5(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function w5(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?S5(Object(r),!0).forEach(function(n){YPe(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):S5(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function yn(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var P5=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})(),aw=function(){return Math.random().toString(36).substring(7).split("").join(".")},wl={INIT:"@@redux/INIT"+aw(),REPLACE:"@@redux/REPLACE"+aw(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+aw()}};function G6(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function GPe(t){if(t===void 0)return"undefined";if(t===null)return"null";var e=typeof t;switch(e){case"boolean":case"string":case"number":case"symbol":case"function":return e}if(Array.isArray(t))return"array";if(KPe(t))return"date";if(JPe(t))return"error";var r=HPe(t);switch(r){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return r}return e.slice(8,-1).toLowerCase().replace(/\s/g,"")}function HPe(t){return typeof t.constructor=="function"?t.constructor.name:null}function JPe(t){return t instanceof Error||typeof t.message=="string"&&t.constructor&&typeof t.constructor.stackTraceLimit=="number"}function KPe(t){return t instanceof Date?!0:typeof t.toDateString=="function"&&typeof t.getDate=="function"&&typeof t.setDate=="function"}function il(t){var e=typeof t;return process.env.NODE_ENV!=="production"&&(e=GPe(t)),e}function wx(t,e,r){var n;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?yn(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(process.env.NODE_ENV==="production"?yn(1):"Expected the enhancer to be a function. Instead, received: '"+il(r)+"'");return r(wx)(t,e)}if(typeof t!="function")throw new Error(process.env.NODE_ENV==="production"?yn(2):"Expected the root reducer to be a function. Instead, received: '"+il(t)+"'");var i=t,o=e,s=[],a=s,l=!1;function c(){a===s&&(a=s.slice())}function u(){if(l)throw new Error(process.env.NODE_ENV==="production"?yn(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return o}function d(g){if(typeof g!="function")throw new Error(process.env.NODE_ENV==="production"?yn(4):"Expected the listener to be a function. Instead, received: '"+il(g)+"'");if(l)throw new Error(process.env.NODE_ENV==="production"?yn(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var O=!0;return c(),a.push(g),function(){if(O){if(l)throw new Error(process.env.NODE_ENV==="production"?yn(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");O=!1,c();var v=a.indexOf(g);a.splice(v,1),s=null}}}function p(g){if(!G6(g))throw new Error(process.env.NODE_ENV==="production"?yn(7):"Actions must be plain objects. Instead, the actual type was: '"+il(g)+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");if(typeof g.type>"u")throw new Error(process.env.NODE_ENV==="production"?yn(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(l)throw new Error(process.env.NODE_ENV==="production"?yn(9):"Reducers may not dispatch actions.");try{l=!0,o=i(o,g)}finally{l=!1}for(var O=s=a,y=0;y<O.length;y++){var v=O[y];v()}return g}function h(g){if(typeof g!="function")throw new Error(process.env.NODE_ENV==="production"?yn(10):"Expected the nextReducer to be a function. Instead, received: '"+il(g));i=g,p({type:wl.REPLACE})}function m(){var g,O=d;return g={subscribe:function(v){if(typeof v!="object"||v===null)throw new Error(process.env.NODE_ENV==="production"?yn(11):"Expected the observer to be an object. Instead, received: '"+il(v)+"'");function b(){v.next&&v.next(u())}b();var w=O(b);return{unsubscribe:w}}},g[P5]=function(){return this},g}return p({type:wl.INIT}),n={dispatch:p,subscribe:d,getState:u,replaceReducer:h},n[P5]=m,n}var eCe=wx;function YC(t){typeof console<"u"&&typeof console.error=="function"&&console.error(t);try{throw new Error(t)}catch{}}function tCe(t,e,r,n){var i=Object.keys(e),o=r&&r.type===wl.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(i.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!G6(t))return"The "+o+' has unexpected type of "'+il(t)+'". Expected argument to be an object with the following '+('keys: "'+i.join('", "')+'"');var s=Object.keys(t).filter(function(a){return!e.hasOwnProperty(a)&&!n[a]});if(s.forEach(function(a){n[a]=!0}),!(r&&r.type===wl.REPLACE)&&s.length>0)return"Unexpected "+(s.length>1?"keys":"key")+" "+('"'+s.join('", "')+'" found in '+o+". ")+"Expected to find one of the known reducer keys instead: "+('"'+i.join('", "')+'". Unexpected keys will be ignored.')}function rCe(t){Object.keys(t).forEach(function(e){var r=t[e],n=r(void 0,{type:wl.INIT});if(typeof n>"u")throw new Error(process.env.NODE_ENV==="production"?yn(12):'The slice reducer for key "'+e+`" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof r(void 0,{type:wl.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(process.env.NODE_ENV==="production"?yn(13):'The slice reducer for key "'+e+'" returned undefined when probed with a random type. '+("Don't try to handle '"+wl.INIT+`' or other actions in "redux/*" `)+"namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.")})}function nCe(t){for(var e=Object.keys(t),r={},n=0;n<e.length;n++){var i=e[n];process.env.NODE_ENV!=="production"&&typeof t[i]>"u"&&YC('No reducer provided for key "'+i+'"'),typeof t[i]=="function"&&(r[i]=t[i])}var o=Object.keys(r),s;process.env.NODE_ENV!=="production"&&(s={});var a;try{rCe(r)}catch(l){a=l}return function(c,u){if(c===void 0&&(c={}),a)throw a;if(process.env.NODE_ENV!=="production"){var d=tCe(c,r,u,s);d&&YC(d)}for(var p=!1,h={},m=0;m<o.length;m++){var g=o[m],O=r[g],y=c[g],v=O(y,u);if(typeof v>"u"){var b=u&&u.type;throw new Error(process.env.NODE_ENV==="production"?yn(14):"When called with an action of type "+(b?'"'+String(b)+'"':"(unknown type)")+', the slice reducer for key "'+g+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.')}h[g]=v,p=p||v!==y}return p=p||o.length!==Object.keys(c).length,p?h:c}}function C5(t,e){return function(){return e(t.apply(this,arguments))}}function iCe(t,e){if(typeof t=="function")return C5(t,e);if(typeof t!="object"||t===null)throw new Error(process.env.NODE_ENV==="production"?yn(16):"bindActionCreators expected an object or a function, but instead received: '"+il(t)+`'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?`);var r={};for(var n in t){var i=t[n];typeof i=="function"&&(r[n]=C5(i,e))}return r}function H6(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function oCe(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(n){return function(){var i=n.apply(void 0,arguments),o=function(){throw new Error(process.env.NODE_ENV==="production"?yn(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},s={getState:i.getState,dispatch:function(){return o.apply(void 0,arguments)}},a=e.map(function(l){return l(s)});return o=H6.apply(void 0,a)(i.dispatch),w5(w5({},i),{},{dispatch:o})}}}function $5(){}process.env.NODE_ENV!=="production"&&typeof $5.name=="string"&&$5.name!=="isCrushed"&&YC('You are currently using minified code outside of NODE_ENV === "production". This means that you are running a slower development build of Redux. You can use loose-envify (https://github.com/zertosh/loose-envify) for browserify or setting mode to production in webpack (https://webpack.js.org/concepts/mode/) to ensure you have the correct code for your production build.');var sCe=Object.freeze({__proto__:null,__DO_NOT_USE__ActionTypes:wl,applyMiddleware:oCe,bindActionCreators:iCe,combineReducers:nCe,compose:H6,createStore:wx,legacy_createStore:eCe});function aCe(t){var e=t.default;if(typeof e=="function"){var r=function(){return e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return t[n]}})}),r}var lCe=aCe(sCe);lCe.compose;var cCe=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function uCe(t,e,r){var n=!1,i=!1,o=wx(function(a,l){if(!i){var c=function(O){return Array.isArray(O)&&O.findIndex(function(y){return typeof y!="string"&&typeof y!="number"})===-1};if(l.type.startsWith("SET")){var u=function(O){try{n=!0,"value"in l?O.set(l.value):O.set(pt)}finally{n=!1}};if(l.path){if(c(l.path)){l.path.length===0&&u(t);for(var d=t,p=!0,h=0,m=l.path;h<m.length;h++){var g=m[h];d[g]?d=d[g]:p=!1}p&&u(d)}}else u(t)}else l.type==="BREAKPOINT"&&r()}return t.promised||t.error?pt:t.get({noproxy:!0})},cCe({name:"".concat(window.location.hostname,": ").concat(e),trace:!0,traceLimit:16,autoPause:!0,shouldHotReload:!1,features:{persist:!0,pause:!0,lock:!1,export:"custom",import:"custom",jump:!1,skip:!1,reorder:!1,dispatch:!0,test:!1}})),s=function(a,l){if(n)l&&l();else try{i=!0,o.dispatch(a)}finally{i=!1}};return s}function dCe(t){return function(){var e,r,n=!1;return{onInit:function(i,o){if(!(typeof window>"u"||!("__REDUX_DEVTOOLS_EXTENSION__"in window))){if(t?.key===void 0){if(o.identifier===void 0)throw Error("State is missing Identifiable extension or Devtools key option");e=o.identifier(i)}else e=t.key;r=uCe(i,e,function(){n=!n}),i.promise||r?.({type:"CREATE",state:i.get({noproxy:!0,stealth:!0})})}},onSet:function(i,o){if(r?.({type:"SET [".concat(i.path.join("/"),"]"),state:i.get({noproxy:!0,stealth:!0}),descriptor:o}),n)debugger},onDestroy:function(){r?.({type:"DESTROY"})}}}}var Mt=(t=>(t.Normal="Normal",t.Edit="Edit",t.Draft="Draft",t))(Mt||{});const Cg="default",J6=[{name:Cg,inputs:[],servers:[],state:Mt.Normal}],K6={activeTabIdx:0,tabs:[]};var as=(t=>(t.Idle="idle",t.Loading="loading",t.Success="success",t.Error="error",t))(as||{});function ma(t){const e=new WeakMap;function r(n){if(typeof n!="object"||n===null)return n;if(e.has(n))return e.get(n);const i=Array.isArray(n)?[]:{};e.set(n,i);for(const o in n)Object.prototype.hasOwnProperty.call(n,o)&&(i[o]=r(n[o]));return i}return r(t)}function GC(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;for(let i=0;i<t.length;i++)if(!GC(t[i],e[i]))return!1;return!0}const r=Object.keys(t),n=Object.keys(e);if(r.length!==n.length)return!1;for(let i=0;i<r.length;i++){const o=r[i];if(!Object.prototype.hasOwnProperty.call(e,o)||!GC(t[o],e[o]))return!1}return!0}return t!==t&&e!==e}function k5(t){return Object.keys(t).forEach(e=>{t[e]===void 0&&delete t[e]}),t}function Da(){return!!window?.__TAURI__}async function Na(t,e={},r){return window.__TAURI_INTERNALS__.invoke(t,e,r)}async function T5(t,e,r){const n=[],i=[];for(const o of t){const s=Promise.resolve().then(()=>r(o,t));if(n.push(s),e<=t.length){const a=s.then(()=>i.splice(i.indexOf(a),1));i.push(a),i.length>=e&&await Promise.race(i)}}return Promise.all(n)}const Hn={FS:"fs",WEB:"web"};async function Ll(t,e={},r){return window.__TAURI_INTERNALS__.invoke(t,e,r)}var HC;(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"})(HC||(HC={}));var JC;(function(t){t[t.Start=0]="Start",t[t.Current=1]="Current",t[t.End=2]="End"})(JC||(JC={}));async function KC(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");await Ll("plugin:fs|mkdir",{path:t instanceof URL?t.toString():t,options:e})}async function IE(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");return await Ll("plugin:fs|read_dir",{path:t instanceof URL?t.toString():t,options:e})}async function eU(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");const r=await Ll("plugin:fs|read_file",{path:t instanceof URL?t.toString():t,options:e});return r instanceof ArrayBuffer?new Uint8Array(r):Uint8Array.from(r)}async function Px(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");return await Ll("plugin:fs|read_text_file",{path:t instanceof URL?t.toString():t,options:e})}async function tU(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");await Ll("plugin:fs|remove",{path:t instanceof URL?t.toString():t,options:e})}async function rU(t,e,r){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");await Ll("plugin:fs|write_text_file",{path:t instanceof URL?t.toString():t,data:e,options:r})}async function RE(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");return await Ll("plugin:fs|exists",{path:t instanceof URL?t.toString():t,options:e})}const fCe=Object.freeze(Object.defineProperty({__proto__:null,get BaseDirectory(){return HC},get SeekMode(){return JC},exists:RE,mkdir:KC,readDir:IE,readFile:eU,readTextFile:Px,remove:tU,writeTextFile:rU},Symbol.toStringTag,{value:"Module"}));var Ih;(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"})(Ih||(Ih={}));async function nU(){return Na("plugin:path|resolve_directory",{directory:Ih.AppData})}async function iU(){return Na("plugin:path|resolve_directory",{directory:Ih.Desktop})}function _E(){return window.__TAURI_INTERNALS__.plugins.path.sep}async function oU(...t){return Na("plugin:path|resolve",{paths:t})}async function hd(...t){return Na("plugin:path|join",{paths:t})}async function sU(t){return Na("plugin:path|dirname",{path:t})}async function aU(t){return Na("plugin:path|extname",{path:t})}async function jE(t,e){return Na("plugin:path|basename",{path:t,ext:e})}async function lU(t){return Na("plugin:path|is_absolute",{path:t})}const pCe=Object.freeze(Object.defineProperty({__proto__:null,get BaseDirectory(){return Ih},appDataDir:nU,basename:jE,desktopDir:iU,dirname:sU,extname:aU,isAbsolute:lU,join:hd,resolve:oU,sep:_E},Symbol.toStringTag,{value:"Module"}));class or{static utils=null;static async getUtils(){return or.utils||(or.utils=Da()?await Promise.resolve().then(()=>require("./replay-tauri-path-D8sHTXGr.js")):await Promise.resolve().then(()=>ire)),or.utils}static async dirname(e){return(await or.getUtils()).dirname(e)}static async join(...e){return(await or.getUtils()).join(...e)}static async resolve(e){return(await or.getUtils()).resolve(e)}static async isAbsolute(e){return(await or.getUtils()).isAbsolute(e)}static async relative(e,r){return(await or.getUtils()).relative(e,r)}static async extname(e){return(await or.getUtils()).extname(e)}}const hCe=new Set(["node_modules"]);class E5{constructor(e){this.baseDir=e,this.initializeDirectory(e)}async initializeDirectory(e){await KC(e,{recursive:!0})}async ls(e){const r=await this.getFullPath(e);return this.getDirEntryFilesRecursively(r)}async getDirEntryFilesRecursively(e){try{const r=[],n=await IE(e);for(const i of n)if(i.isDirectory){if(hCe.has(i.name))continue;const o=await hd(e,i.name),s=await this.getDirEntryFilesRecursively(o);r.push(...s)}else{const o=await hd(e,i.name),s=await or.relative(this.baseDir,o);r.push(s)}return r}catch(r){return r.includes("forbidden path")||console.error(r),[]}}async get(e){const r=await this.getFullPath(e);try{return await Px(r)}catch(n){return!n.includes("No such file or directory")&&!n.includes("forbidden path")&&console.error(n),null}}async set(e,r){const n=await this.getFullPath(e),i=_E(),o=n.split(i).slice(0,-1).join(i);await KC(o,{recursive:!0}),await rU(n,r)}async remove(e){const r=await this.getFullPath(e);try{await tU(r)}catch(n){!n.includes("No such file or directory")&&!n.includes("forbidden path")&&console.error(n)}}async getFullPath(e){return await hd(this.baseDir,e??"")}}class gCe{baseDir="";async ls(e=""){return[]}async get(e){return null}async set(e,r){}async remove(e){}}class mCe{constructor(e){this.projectId=e}async get(){const e=this.getKey();return localStorage.getItem(e)??null}async set(e){const r=this.getKey();localStorage.setItem(r,e)}async remove(){const e=this.getKey();localStorage.removeItem(e)}getKey(){return`replay:secrets:${this.projectId}`}}class cU{constructor(e){this.storage=e}itemIds=[];async getAbsolutePath(e){return await or.resolve(await or.join(this.storage.baseDir,"/",e))}async parseMany(e,r){return(await Promise.all(e.map(async i=>{try{return await this.parse(i,r)}catch(o){return console.error(`Error parsing from ${i.type} ${i.uri}:`,o),null}}))).filter(i=>i!==null)}setItemIds(e){this.itemIds=e}async write(e){e.state===Mt.Draft||e.srcType!==Hn.FS||await this.storage.set(e.id,await this.stringify(e))}async remove(e){await this.storage.remove(e)}async updateRoot(e,r){const n=e.actions;if(n){for(const o in n){const s=parseInt(o);switch(n[o]){case"D":await this.remove(this.itemIds[s]);break;case"I":case"U":await this.write(r[s]);break}}return}const i=this.itemIds.filter(o=>!r.some(s=>s.id===o));await Promise.all([...r.map(o=>this.write(o)),...i.map(o=>this.remove(o))])}async update(e,r){const i={path:e.path.slice(1),actions:e.actions};if(i.path.length===0&&await this.updateRoot(i,r),i.path.length>0){const o=i.path[0];i.path.length===1&&i.actions&&i.actions.id==="U"&&await this.remove(this.itemIds[o]),i.path[1]&&i.path[1]==="id"&&await this.remove(this.itemIds[o]),await this.write(r[o])}this.itemIds=r.map(o=>o.id)}}class OCe extends cU{parse(e){return{...e.content,id:e.uri,srcType:e.type}}async stringify(e){const{id:r,srcType:n,...i}=e;return await or.extname(r)===".json"?JSON.stringify(i,null,2):Pa.dump(i)}}var Qn=(t=>(t.SIMPLE="simple",t.REGEX="regex",t.JSONPATH="jsonpath",t.XPATH="xpath",t))(Qn||{});function yCe(t){return typeof t=="function"?t:Array.isArray(t)?e=>{for(const r of t)if(typeof r=="string"&&e===r||r instanceof RegExp&&r.test(e))return!0}:()=>!1}const vCe=`
|
|
353
353
|
`;function bCe(t,e){let r="";return e.format&&e.indentBy.length>0&&(r=vCe),uU(t,e,"",r)}function uU(t,e,r,n){let i="",o=!1;for(let s=0;s<t.length;s++){const a=t[s],l=xCe(a);if(l===void 0)continue;let c="";if(r.length===0?c=l:c=`${r}.${l}`,l===e.textNodeName){let m=a[l];SCe(c,e)||(m=e.tagValueProcessor(l,m),m=dU(m,e)),o&&(i+=n),i+=m,o=!1;continue}else if(l===e.cdataPropName){o&&(i+=n),i+=`<![CDATA[${a[l][0][e.textNodeName]}]]>`,o=!1;continue}else if(l===e.commentPropName){i+=n+`<!--${a[l][0][e.textNodeName]}-->`,o=!0;continue}else if(l[0]==="?"){const m=A5(a[":@"],e),g=l==="?xml"?"":n;let O=a[l][0][e.textNodeName];O=O.length!==0?" "+O:"",i+=g+`<${l}${O}${m}?>`,o=!0;continue}let u=n;u!==""&&(u+=e.indentBy);const d=A5(a[":@"],e),p=n+`<${l}${d}`,h=uU(a[l],e,c,u);e.unpairedTags.indexOf(l)!==-1?e.suppressUnpairedNode?i+=p+">":i+=p+"/>":(!h||h.length===0)&&e.suppressEmptyNode?i+=p+"/>":h&&h.endsWith(">")?i+=p+`>${h}${n}</${l}>`:(i+=p+">",h&&n!==""&&(h.includes("/>")||h.includes("</"))?i+=n+e.indentBy+h+n:i+=h,i+=`</${l}>`),o=!0}return i}function xCe(t){const e=Object.keys(t);for(let r=0;r<e.length;r++){const n=e[r];if(t.hasOwnProperty(n)&&n!==":@")return n}}function A5(t,e){let r="";if(t&&!e.ignoreAttributes)for(let n in t){if(!t.hasOwnProperty(n))continue;let i=e.attributeValueProcessor(n,t[n]);i=dU(i,e),i===!0&&e.suppressBooleanAttributes?r+=` ${n.substr(e.attributeNamePrefix.length)}`:r+=` ${n.substr(e.attributeNamePrefix.length)}="${i}"`}return r}function SCe(t,e){t=t.substr(0,t.length-e.textNodeName.length-1);let r=t.substr(t.lastIndexOf(".")+1);for(let n in e.stopNodes)if(e.stopNodes[n]===t||e.stopNodes[n]==="*."+r)return!0;return!1}function dU(t,e){if(t&&t.length>0&&e.processEntities)for(let r=0;r<e.entities.length;r++){const n=e.entities[r];t=t.replace(n.regex,n.val)}return t}const wCe={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&"},{regex:new RegExp(">","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp('"',"g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1};function Vl(t){this.options=Object.assign({},wCe,t),this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=yCe(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=$Ce),this.processTextOrObjNode=PCe,this.options.format?(this.indentate=CCe,this.tagEndChar=`>
|
|
354
354
|
`,this.newLine=`
|
|
355
355
|
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}Vl.prototype.build=function(t){return this.options.preserveOrder?bCe(t,this.options):(Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t}),this.j2x(t,0,[]).val)};Vl.prototype.j2x=function(t,e,r){let n="",i="";const o=r.join(".");for(let s in t)if(Object.prototype.hasOwnProperty.call(t,s))if(typeof t[s]>"u")this.isAttribute(s)&&(i+="");else if(t[s]===null)this.isAttribute(s)||s===this.options.cdataPropName?i+="":s[0]==="?"?i+=this.indentate(e)+"<"+s+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+s+"/"+this.tagEndChar;else if(t[s]instanceof Date)i+=this.buildTextValNode(t[s],s,"",e);else if(typeof t[s]!="object"){const a=this.isAttribute(s);if(a&&!this.ignoreAttributesFn(a,o))n+=this.buildAttrPairStr(a,""+t[s]);else if(!a)if(s===this.options.textNodeName){let l=this.options.tagValueProcessor(s,""+t[s]);i+=this.replaceEntitiesValue(l)}else i+=this.buildTextValNode(t[s],s,"",e)}else if(Array.isArray(t[s])){const a=t[s].length;let l="",c="";for(let u=0;u<a;u++){const d=t[s][u];if(!(typeof d>"u"))if(d===null)s[0]==="?"?i+=this.indentate(e)+"<"+s+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+s+"/"+this.tagEndChar;else if(typeof d=="object")if(this.options.oneListGroup){const p=this.j2x(d,e+1,r.concat(s));l+=p.val,this.options.attributesGroupName&&d.hasOwnProperty(this.options.attributesGroupName)&&(c+=p.attrStr)}else l+=this.processTextOrObjNode(d,s,e,r);else if(this.options.oneListGroup){let p=this.options.tagValueProcessor(s,d);p=this.replaceEntitiesValue(p),l+=p}else l+=this.buildTextValNode(d,s,"",e)}this.options.oneListGroup&&(l=this.buildObjectNode(l,s,c,e)),i+=l}else if(this.options.attributesGroupName&&s===this.options.attributesGroupName){const a=Object.keys(t[s]),l=a.length;for(let c=0;c<l;c++)n+=this.buildAttrPairStr(a[c],""+t[s][a[c]])}else i+=this.processTextOrObjNode(t[s],s,e,r);return{attrStr:n,val:i}};Vl.prototype.buildAttrPairStr=function(t,e){return e=this.options.attributeValueProcessor(t,""+e),e=this.replaceEntitiesValue(e),this.options.suppressBooleanAttributes&&e==="true"?" "+t:" "+t+'="'+e+'"'};function PCe(t,e,r,n){const i=this.j2x(t,r+1,n.concat(e));return t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,i.attrStr,r):this.buildObjectNode(i.val,e,i.attrStr,r)}Vl.prototype.buildObjectNode=function(t,e,r,n){if(t==="")return e[0]==="?"?this.indentate(n)+"<"+e+r+"?"+this.tagEndChar:this.indentate(n)+"<"+e+r+this.closeTag(e)+this.tagEndChar;{let i="</"+e+this.tagEndChar,o="";return e[0]==="?"&&(o="?",i=""),(r||r==="")&&t.indexOf("<")===-1?this.indentate(n)+"<"+e+r+o+">"+t+i:this.options.commentPropName!==!1&&e===this.options.commentPropName&&o.length===0?this.indentate(n)+`<!--${t}-->`+this.newLine:this.indentate(n)+"<"+e+r+o+this.tagEndChar+t+this.indentate(n)+i}};Vl.prototype.closeTag=function(t){let e="";return this.options.unpairedTags.indexOf(t)!==-1?this.options.suppressUnpairedNode||(e="/"):this.options.suppressEmptyNode?e="/":e=`></${t}`,e};Vl.prototype.buildTextValNode=function(t,e,r,n){if(this.options.cdataPropName!==!1&&e===this.options.cdataPropName)return this.indentate(n)+`<![CDATA[${t}]]>`+this.newLine;if(this.options.commentPropName!==!1&&e===this.options.commentPropName)return this.indentate(n)+`<!--${t}-->`+this.newLine;if(e[0]==="?")return this.indentate(n)+"<"+e+r+"?"+this.tagEndChar;{let i=this.options.tagValueProcessor(e,t);return i=this.replaceEntitiesValue(i),i===""?this.indentate(n)+"<"+e+r+this.closeTag(e)+this.tagEndChar:this.indentate(n)+"<"+e+r+">"+i+"</"+e+this.tagEndChar}};Vl.prototype.replaceEntitiesValue=function(t){if(t&&t.length>0&&this.options.processEntities)for(let e=0;e<this.options.entities.length;e++){const r=this.options.entities[e];t=t.replace(r.regex,r.val)}return t};function CCe(t){return this.options.indentBy.repeat(t)}function $Ce(t){return t.startsWith(this.options.attributeNamePrefix)&&t!==this.options.textNodeName?t.substr(this.attrPrefixLen):!1}const fU=1024;let kCe=0,to=class{constructor(e,r){this.from=e,this.to=r}};class mt{constructor(e={}){this.id=kCe++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof e!="function"&&(e=Ln.match(e)),r=>{let n=e(r);return n===void 0?null:[this,n]}}}mt.closedBy=new mt({deserialize:t=>t.split(" ")});mt.openedBy=new mt({deserialize:t=>t.split(" ")});mt.group=new mt({deserialize:t=>t.split(" ")});mt.isolate=new mt({deserialize:t=>{if(t&&t!="rtl"&&t!="ltr"&&t!="auto")throw new RangeError("Invalid value for isolate: "+t);return t||"auto"}});mt.contextHash=new mt({perNode:!0});mt.lookAhead=new mt({perNode:!0});mt.mounted=new mt({perNode:!0});class Rh{constructor(e,r,n){this.tree=e,this.overlay=r,this.parser=n}static get(e){return e&&e.props&&e.props[mt.mounted.id]}}const TCe=Object.create(null);class Ln{constructor(e,r,n,i=0){this.name=e,this.props=r,this.id=n,this.flags=i}static define(e){let r=e.props&&e.props.length?Object.create(null):TCe,n=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(e.name==null?8:0),i=new Ln(e.name||"",r,e.id,n);if(e.props){for(let o of e.props)if(Array.isArray(o)||(o=o(i)),o){if(o[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");r[o[0].id]=o[1]}}return i}prop(e){return this.props[e.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(e){if(typeof e=="string"){if(this.name==e)return!0;let r=this.prop(mt.group);return r?r.indexOf(e)>-1:!1}return this.id==e}static match(e){let r=Object.create(null);for(let n in e)for(let i of n.split(" "))r[i]=e[n];return n=>{for(let i=n.prop(mt.group),o=-1;o<(i?i.length:0);o++){let s=r[o<0?n.name:i[o]];if(s)return s}}}}Ln.none=new Ln("",Object.create(null),0,8);class Cx{constructor(e){this.types=e;for(let r=0;r<e.length;r++)if(e[r].id!=r)throw new RangeError("Node type ids should correspond to array positions when creating a node set")}extend(...e){let r=[];for(let n of this.types){let i=null;for(let o of e){let s=o(n);s&&(i||(i=Object.assign({},n.props)),i[s[0].id]=s[1])}r.push(i?new Ln(n.name,i,n.id,n.flags):n)}return new Cx(r)}}const wO=new WeakMap,I5=new WeakMap;var fr;(function(t){t[t.ExcludeBuffers=1]="ExcludeBuffers",t[t.IncludeAnonymous=2]="IncludeAnonymous",t[t.IgnoreMounts=4]="IgnoreMounts",t[t.IgnoreOverlays=8]="IgnoreOverlays"})(fr||(fr={}));let hr=class e${constructor(e,r,n,i,o){if(this.type=e,this.children=r,this.positions=n,this.length=i,this.props=null,o&&o.length){this.props=Object.create(null);for(let[s,a]of o)this.props[typeof s=="number"?s:s.id]=a}}toString(){let e=Rh.get(this);if(e&&!e.overlay)return e.tree.toString();let r="";for(let n of this.children){let i=n.toString();i&&(r&&(r+=","),r+=i)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(r.length?"("+r+")":""):r}cursor(e=0){return new Ob(this.topNode,e)}cursorAt(e,r=0,n=0){let i=wO.get(this)||this.topNode,o=new Ob(i);return o.moveTo(e,r),wO.set(this,o._tree),o}get topNode(){return new lo(this,0,0,null)}resolve(e,r=0){let n=_h(wO.get(this)||this.topNode,e,r,!1);return wO.set(this,n),n}resolveInner(e,r=0){let n=_h(I5.get(this)||this.topNode,e,r,!0);return I5.set(this,n),n}resolveStack(e,r=0){return ICe(this,e,r)}iterate(e){let{enter:r,leave:n,from:i=0,to:o=this.length}=e,s=e.mode||0,a=(s&fr.IncludeAnonymous)>0;for(let l=this.cursor(s|fr.IncludeAnonymous);;){let c=!1;if(l.from<=o&&l.to>=i&&(!a&&l.type.isAnonymous||r(l)!==!1)){if(l.firstChild())continue;c=!0}for(;c&&n&&(a||!l.type.isAnonymous)&&n(l),!l.nextSibling();){if(!l.parent())return;c=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let r in this.props)e.push([+r,this.props[r]]);return e}balance(e={}){return this.children.length<=8?this:NE(Ln.none,this.children,this.positions,0,this.children.length,0,this.length,(r,n,i)=>new e$(this.type,r,n,i,this.propValues),e.makeTree||((r,n,i)=>new e$(Ln.none,r,n,i)))}static build(e){return RCe(e)}};hr.empty=new hr(Ln.none,[],[],0);class QE{constructor(e,r){this.buffer=e,this.index=r}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new QE(this.buffer,this.index)}}class Al{constructor(e,r,n){this.buffer=e,this.length=r,this.set=n}get type(){return Ln.none}toString(){let e=[];for(let r=0;r<this.buffer.length;)e.push(this.childString(r)),r=this.buffer[r+3];return e.join(",")}childString(e){let r=this.buffer[e],n=this.buffer[e+3],i=this.set.types[r],o=i.name;if(/\W/.test(o)&&!i.isError&&(o=JSON.stringify(o)),e+=4,n==e)return o;let s=[];for(;e<n;)s.push(this.childString(e)),e=this.buffer[e+3];return o+"("+s.join(",")+")"}findChild(e,r,n,i,o){let{buffer:s}=this,a=-1;for(let l=e;l!=r&&!(pU(o,i,s[l+1],s[l+2])&&(a=l,n>0));l=s[l+3]);return a}slice(e,r,n){let i=this.buffer,o=new Uint16Array(r-e),s=0;for(let a=e,l=0;a<r;){o[l++]=i[a++],o[l++]=i[a++]-n;let c=o[l++]=i[a++]-n;o[l++]=i[a++]-e,s=Math.max(s,c)}return new Al(o,s,this.set)}}function pU(t,e,r,n){switch(t){case-2:return r<e;case-1:return n>=e&&r<e;case 0:return r<e&&n>e;case 1:return r<=e&&n>e;case 2:return n>e;case 4:return!0}}function _h(t,e,r,n){for(var i;t.from==t.to||(r<1?t.from>=e:t.from>e)||(r>-1?t.to<=e:t.to<e);){let s=!n&&t instanceof lo&&t.index<0?null:t.parent;if(!s)return t;t=s}let o=n?0:fr.IgnoreOverlays;if(n)for(let s=t,a=s.parent;a;s=a,a=s.parent)s instanceof lo&&s.index<0&&((i=a.enter(e,r,o))===null||i===void 0?void 0:i.from)!=s.from&&(t=a);for(;;){let s=t.enter(e,r,o);if(!s)return t;t=s}}class hU{cursor(e=0){return new Ob(this,e)}getChild(e,r=null,n=null){let i=R5(this,e,r,n);return i.length?i[0]:null}getChildren(e,r=null,n=null){return R5(this,e,r,n)}resolve(e,r=0){return _h(this,e,r,!1)}resolveInner(e,r=0){return _h(this,e,r,!0)}matchContext(e){return t$(this.parent,e)}enterUnfinishedNodesBefore(e){let r=this.childBefore(e),n=this;for(;r;){let i=r.lastChild;if(!i||i.to!=r.to)break;i.type.isError&&i.from==i.to?(n=r,r=i.prevSibling):r=i}return n}get node(){return this}get next(){return this.parent}}let lo=class Ry extends hU{constructor(e,r,n,i){super(),this._tree=e,this.from=r,this.index=n,this._parent=i}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(e,r,n,i,o=0){for(let s=this;;){for(let{children:a,positions:l}=s._tree,c=r>0?a.length:-1;e!=c;e+=r){let u=a[e],d=l[e]+s.from;if(pU(i,n,d,d+u.length)){if(u instanceof Al){if(o&fr.ExcludeBuffers)continue;let p=u.findChild(0,u.buffer.length,r,n-d,i);if(p>-1)return new gs(new ECe(s,u,e,d),null,p)}else if(o&fr.IncludeAnonymous||!u.type.isAnonymous||DE(u)){let p;if(!(o&fr.IgnoreMounts)&&(p=Rh.get(u))&&!p.overlay)return new Ry(p.tree,d,e,s);let h=new Ry(u,d,e,s);return o&fr.IncludeAnonymous||!h.type.isAnonymous?h:h.nextChild(r<0?u.children.length-1:0,r,n,i)}}}if(o&fr.IncludeAnonymous||!s.type.isAnonymous||(s.index>=0?e=s.index+r:e=r<0?-1:s._parent._tree.children.length,s=s._parent,!s))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}enter(e,r,n=0){let i;if(!(n&fr.IgnoreOverlays)&&(i=Rh.get(this._tree))&&i.overlay){let o=e-this.from;for(let{from:s,to:a}of i.overlay)if((r>0?s<=o:s<o)&&(r<0?a>=o:a>o))return new Ry(i.tree,i.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,r,n)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}};function R5(t,e,r,n){let i=t.cursor(),o=[];if(!i.firstChild())return o;if(r!=null){for(let s=!1;!s;)if(s=i.type.is(r),!i.nextSibling())return o}for(;;){if(n!=null&&i.type.is(n))return o;if(i.type.is(e)&&o.push(i.node),!i.nextSibling())return n==null?o:[]}}function t$(t,e,r=e.length-1){for(let n=t;r>=0;n=n.parent){if(!n)return!1;if(!n.type.isAnonymous){if(e[r]&&e[r]!=n.name)return!1;r--}}return!0}class ECe{constructor(e,r,n,i){this.parent=e,this.buffer=r,this.index=n,this.start=i}}class gs extends hU{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,r,n){super(),this.context=e,this._parent=r,this.index=n,this.type=e.buffer.set.types[e.buffer.buffer[n]]}child(e,r,n){let{buffer:i}=this.context,o=i.findChild(this.index+4,i.buffer[this.index+3],e,r-this.context.start,n);return o<0?null:new gs(this.context,this,o)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}enter(e,r,n=0){if(n&fr.ExcludeBuffers)return null;let{buffer:i}=this.context,o=i.findChild(this.index+4,i.buffer[this.index+3],r>0?1:-1,e-this.context.start,r);return o<0?null:new gs(this.context,this,o)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,r=e.buffer[this.index+3];return r<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new gs(this.context,this._parent,r):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,r=this._parent?this._parent.index+4:0;return this.index==r?this.externalSibling(-1):new gs(this.context,this._parent,e.findChild(r,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],r=[],{buffer:n}=this.context,i=this.index+4,o=n.buffer[this.index+3];if(o>i){let s=n.buffer[this.index+1];e.push(n.slice(i,o,s)),r.push(0)}return new hr(this.type,e,r,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function gU(t){if(!t.length)return null;let e=0,r=t[0];for(let o=1;o<t.length;o++){let s=t[o];(s.from>r.from||s.to<r.to)&&(r=s,e=o)}let n=r instanceof lo&&r.index<0?null:r.parent,i=t.slice();return n?i[e]=n:i.splice(e,1),new ACe(i,r)}class ACe{constructor(e,r){this.heads=e,this.node=r}get next(){return gU(this.heads)}}function ICe(t,e,r){let n=t.resolveInner(e,r),i=null;for(let o=n instanceof lo?n:n.context.parent;o;o=o.parent)if(o.index<0){let s=o.parent;(i||(i=[n])).push(s.resolve(e,r)),o=s}else{let s=Rh.get(o.tree);if(s&&s.overlay&&s.overlay[0].from<=e&&s.overlay[s.overlay.length-1].to>=e){let a=new lo(s.tree,s.overlay[0].from+o.from,-1,o);(i||(i=[n])).push(_h(a,e,r,!1))}}return i?gU(i):n}class Ob{get name(){return this.type.name}constructor(e,r=0){if(this.mode=r,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,e instanceof lo)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let n=e._parent;n;n=n._parent)this.stack.unshift(n.index);this.bufferNode=e,this.yieldBuf(e.index)}}yieldNode(e){return e?(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0):!1}yieldBuf(e,r){this.index=e;let{start:n,buffer:i}=this.buffer;return this.type=r||i.set.types[i.buffer[e]],this.from=n+i.buffer[e+1],this.to=n+i.buffer[e+2],!0}yield(e){return e?e instanceof lo?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,r,n){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,r,n,this.mode));let{buffer:i}=this.buffer,o=i.findChild(this.index+4,i.buffer[this.index+3],e,r-this.buffer.start,n);return o<0?!1:(this.stack.push(this.index),this.yieldBuf(o))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,r,n=this.mode){return this.buffer?n&fr.ExcludeBuffers?!1:this.enterChild(1,e,r):this.yield(this._tree.enter(e,r,n))}parent(){if(!this.buffer)return this.yieldNode(this.mode&fr.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&fr.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode)):!1;let{buffer:r}=this.buffer,n=this.stack.length-1;if(e<0){let i=n<0?0:this.stack[n]+4;if(this.index!=i)return this.yieldBuf(r.findChild(i,this.index,-1,0,4))}else{let i=r.buffer[this.index+3];if(i<(n<0?r.buffer.length:r.buffer[this.stack[n]+3]))return this.yieldBuf(i)}return n<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let r,n,{buffer:i}=this;if(i){if(e>0){if(this.index<i.buffer.buffer.length)return!1}else for(let o=0;o<this.index;o++)if(i.buffer.buffer[o+3]<this.index)return!1;({index:r,parent:n}=i)}else({index:r,_parent:n}=this._tree);for(;n;{index:r,_parent:n}=n)if(r>-1)for(let o=r+e,s=e<0?-1:n._tree.children.length;o!=s;o+=e){let a=n._tree.children[o];if(this.mode&fr.IncludeAnonymous||a instanceof Al||!a.type.isAnonymous||DE(a))return!1}return!0}move(e,r){if(r&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,r=0){for(;(this.from==this.to||(r<1?this.from>=e:this.from>e)||(r>-1?this.to<=e:this.to<e))&&this.parent(););for(;this.enterChild(1,e,r););return this}get node(){if(!this.buffer)return this._tree;let e=this.bufferNode,r=null,n=0;if(e&&e.context==this.buffer)e:for(let i=this.index,o=this.stack.length;o>=0;){for(let s=e;s;s=s._parent)if(s.index==i){if(i==this.index)return s;r=s,n=o+1;break e}i=this.stack[--o]}for(let i=n;i<this.stack.length;i++)r=new gs(this.buffer,r,this.stack[i]);return this.bufferNode=new gs(this.buffer,r,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(e,r){for(let n=0;;){let i=!1;if(this.type.isAnonymous||e(this)!==!1){if(this.firstChild()){n++;continue}this.type.isAnonymous||(i=!0)}for(;;){if(i&&r&&r(this),i=this.type.isAnonymous,!n)return;if(this.nextSibling())break;this.parent(),n--,i=!0}}}matchContext(e){if(!this.buffer)return t$(this.node.parent,e);let{buffer:r}=this.buffer,{types:n}=r.set;for(let i=e.length-1,o=this.stack.length-1;i>=0;o--){if(o<0)return t$(this._tree,e,i);let s=n[r.buffer[this.stack[o]]];if(!s.isAnonymous){if(e[i]&&e[i]!=s.name)return!1;i--}}return!0}}function DE(t){return t.children.some(e=>e instanceof Al||!e.type.isAnonymous||DE(e))}function RCe(t){var e;let{buffer:r,nodeSet:n,maxBufferLength:i=fU,reused:o=[],minRepeatType:s=n.types.length}=t,a=Array.isArray(r)?new QE(r,r.length):r,l=n.types,c=0,u=0;function d(S,P,C,E,R,D){let{id:_,start:L,end:W,size:Y}=a,Z=u,J=c;for(;Y<0;)if(a.next(),Y==-1){let M=o[_];C.push(M),E.push(L-S);return}else if(Y==-3){c=_;return}else if(Y==-4){u=_;return}else throw new RangeError(`Unrecognized record size: ${Y}`);let ae=l[_],F,oe,q=L-S;if(W-L<=i&&(oe=O(a.pos-P,R))){let M=new Uint16Array(oe.size-oe.skip),U=a.pos-oe.size,z=M.length;for(;a.pos>U;)z=y(oe.start,M,z);F=new Al(M,W-oe.start,n),q=oe.start-S}else{let M=a.pos-Y;a.next();let U=[],z=[],I=_>=s?_:-1,j=0,X=W;for(;a.pos>M;)I>=0&&a.id==I&&a.size>=0?(a.end<=X-i&&(m(U,z,L,j,a.end,X,I,Z,J),j=U.length,X=a.end),a.next()):D>2500?p(L,M,U,z):d(L,M,U,z,I,D+1);if(I>=0&&j>0&&j<U.length&&m(U,z,L,j,L,X,I,Z,J),U.reverse(),z.reverse(),I>-1&&j>0){let H=h(ae,J);F=NE(ae,U,z,0,U.length,0,W-L,H,H)}else F=g(ae,U,z,W-L,Z-W,J)}C.push(F),E.push(q)}function p(S,P,C,E){let R=[],D=0,_=-1;for(;a.pos>P;){let{id:L,start:W,end:Y,size:Z}=a;if(Z>4)a.next();else{if(_>-1&&W<_)break;_<0&&(_=Y-i),R.push(L,W,Y),D++,a.next()}}if(D){let L=new Uint16Array(D*4),W=R[R.length-2];for(let Y=R.length-3,Z=0;Y>=0;Y-=3)L[Z++]=R[Y],L[Z++]=R[Y+1]-W,L[Z++]=R[Y+2]-W,L[Z++]=Z;C.push(new Al(L,R[2]-W,n)),E.push(W-S)}}function h(S,P){return(C,E,R)=>{let D=0,_=C.length-1,L,W;if(_>=0&&(L=C[_])instanceof hr){if(!_&&L.type==S&&L.length==R)return L;(W=L.prop(mt.lookAhead))&&(D=E[_]+L.length+W)}return g(S,C,E,R,D,P)}}function m(S,P,C,E,R,D,_,L,W){let Y=[],Z=[];for(;S.length>E;)Y.push(S.pop()),Z.push(P.pop()+C-R);S.push(g(n.types[_],Y,Z,D-R,L-D,W)),P.push(R-C)}function g(S,P,C,E,R,D,_){if(D){let L=[mt.contextHash,D];_=_?[L].concat(_):[L]}if(R>25){let L=[mt.lookAhead,R];_=_?[L].concat(_):[L]}return new hr(S,P,C,E,_)}function O(S,P){let C=a.fork(),E=0,R=0,D=0,_=C.end-i,L={size:0,start:0,skip:0};e:for(let W=C.pos-S;C.pos>W;){let Y=C.size;if(C.id==P&&Y>=0){L.size=E,L.start=R,L.skip=D,D+=4,E+=4,C.next();continue}let Z=C.pos-Y;if(Y<0||Z<W||C.start<_)break;let J=C.id>=s?4:0,ae=C.start;for(C.next();C.pos>Z;){if(C.size<0)if(C.size==-3)J+=4;else break e;else C.id>=s&&(J+=4);C.next()}R=ae,E+=Y,D+=J}return(P<0||E==S)&&(L.size=E,L.start=R,L.skip=D),L.size>4?L:void 0}function y(S,P,C){let{id:E,start:R,end:D,size:_}=a;if(a.next(),_>=0&&E<s){let L=C;if(_>4){let W=a.pos-(_-4);for(;a.pos>W;)C=y(S,P,C)}P[--C]=L,P[--C]=D-S,P[--C]=R-S,P[--C]=E}else _==-3?c=E:_==-4&&(u=E);return C}let v=[],b=[];for(;a.pos>0;)d(t.start||0,t.bufferStart||0,v,b,-1,0);let w=(e=t.length)!==null&&e!==void 0?e:v.length?b[0]+v[0].length:0;return new hr(l[t.topID],v.reverse(),b.reverse(),w)}const _5=new WeakMap;function _y(t,e){if(!t.isAnonymous||e instanceof Al||e.type!=t)return 1;let r=_5.get(e);if(r==null){r=1;for(let n of e.children){if(n.type!=t||!(n instanceof hr)){r=1;break}r+=_y(t,n)}_5.set(e,r)}return r}function NE(t,e,r,n,i,o,s,a,l){let c=0;for(let m=n;m<i;m++)c+=_y(t,e[m]);let u=Math.ceil(c*1.5/8),d=[],p=[];function h(m,g,O,y,v){for(let b=O;b<y;){let w=b,S=g[b],P=_y(t,m[b]);for(b++;b<y;b++){let C=_y(t,m[b]);if(P+C>=u)break;P+=C}if(b==w+1){if(P>u){let C=m[w];h(C.children,C.positions,0,C.children.length,g[w]+v);continue}d.push(m[w])}else{let C=g[b-1]+m[b-1].length-S;d.push(NE(t,m,g,w,b,S,C,null,l))}p.push(S+v-o)}}return h(e,r,n,i,0),(a||l)(d,p,s)}class ME{constructor(){this.map=new WeakMap}setBuffer(e,r,n){let i=this.map.get(e);i||this.map.set(e,i=new Map),i.set(r,n)}getBuffer(e,r){let n=this.map.get(e);return n&&n.get(r)}set(e,r){e instanceof gs?this.setBuffer(e.context.buffer,e.index,r):e instanceof lo&&this.map.set(e.tree,r)}get(e){return e instanceof gs?this.getBuffer(e.context.buffer,e.index):e instanceof lo?this.map.get(e.tree):void 0}cursorSet(e,r){e.buffer?this.setBuffer(e.buffer.buffer,e.index,r):this.map.set(e.tree,r)}cursorGet(e){return e.buffer?this.getBuffer(e.buffer.buffer,e.index):this.map.get(e.tree)}}class Oa{constructor(e,r,n,i,o=!1,s=!1){this.from=e,this.to=r,this.tree=n,this.offset=i,this.open=(o?1:0)|(s?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(e,r=[],n=!1){let i=[new Oa(0,e.length,e,0,!1,n)];for(let o of r)o.to>e.length&&i.push(o);return i}static applyChanges(e,r,n=128){if(!r.length)return e;let i=[],o=1,s=e.length?e[0]:null;for(let a=0,l=0,c=0;;a++){let u=a<r.length?r[a]:null,d=u?u.fromA:1e9;if(d-l>=n)for(;s&&s.from<d;){let p=s;if(l>=p.from||d<=p.to||c){let h=Math.max(p.from,l)-c,m=Math.min(p.to,d)-c;p=h>=m?null:new Oa(h,m,p.tree,p.offset+c,a>0,!!u)}if(p&&i.push(p),s.to>d)break;s=o<e.length?e[o++]:null}if(!u)break;l=u.toA,c=u.toA-u.toB}return i}}let qE=class{startParse(e,r,n){return typeof e=="string"&&(e=new _Ce(e)),n=n?n.length?n.map(i=>new to(i.from,i.to)):[new to(0,0)]:[new to(0,e.length)],this.createParse(e,r||[],n)}parse(e,r,n){let i=this.startParse(e,r,n);for(;;){let o=i.advance();if(o)return o}}};class _Ce{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,r){return this.string.slice(e,r)}}function jCe(t){return(e,r,n,i)=>new DCe(e,t,r,n,i)}class j5{constructor(e,r,n,i,o){this.parser=e,this.parse=r,this.overlay=n,this.target=i,this.from=o}}function Q5(t){if(!t.length||t.some(e=>e.from>=e.to))throw new RangeError("Invalid inner parse ranges given: "+JSON.stringify(t))}class QCe{constructor(e,r,n,i,o,s,a){this.parser=e,this.predicate=r,this.mounts=n,this.index=i,this.start=o,this.target=s,this.prev=a,this.depth=0,this.ranges=[]}}const r$=new mt({perNode:!0});class DCe{constructor(e,r,n,i,o){this.nest=r,this.input=n,this.fragments=i,this.ranges=o,this.inner=[],this.innerDone=0,this.baseTree=null,this.stoppedAt=null,this.baseParse=e}advance(){if(this.baseParse){let n=this.baseParse.advance();if(!n)return null;if(this.baseParse=null,this.baseTree=n,this.startInner(),this.stoppedAt!=null)for(let i of this.inner)i.parse.stopAt(this.stoppedAt)}if(this.innerDone==this.inner.length){let n=this.baseTree;return this.stoppedAt!=null&&(n=new hr(n.type,n.children,n.positions,n.length,n.propValues.concat([[r$,this.stoppedAt]]))),n}let e=this.inner[this.innerDone],r=e.parse.advance();if(r){this.innerDone++;let n=Object.assign(Object.create(null),e.target.props);n[mt.mounted.id]=new Rh(r,e.overlay,e.parser),e.target.props=n}return null}get parsedPos(){if(this.baseParse)return 0;let e=this.input.length;for(let r=this.innerDone;r<this.inner.length;r++)this.inner[r].from<e&&(e=Math.min(e,this.inner[r].parse.parsedPos));return e}stopAt(e){if(this.stoppedAt=e,this.baseParse)this.baseParse.stopAt(e);else for(let r=this.innerDone;r<this.inner.length;r++)this.inner[r].parse.stopAt(e)}startInner(){let e=new qCe(this.fragments),r=null,n=null,i=new Ob(new lo(this.baseTree,this.ranges[0].from,0,null),fr.IncludeAnonymous|fr.IgnoreMounts);e:for(let o,s;;){let a=!0,l;if(this.stoppedAt!=null&&i.from>=this.stoppedAt)a=!1;else if(e.hasNode(i)){if(r){let c=r.mounts.find(u=>u.frag.from<=i.from&&u.frag.to>=i.to&&u.mount.overlay);if(c)for(let u of c.mount.overlay){let d=u.from+c.pos,p=u.to+c.pos;d>=i.from&&p<=i.to&&!r.ranges.some(h=>h.from<p&&h.to>d)&&r.ranges.push({from:d,to:p})}}a=!1}else if(n&&(s=NCe(n.ranges,i.from,i.to)))a=s!=2;else if(!i.type.isAnonymous&&(o=this.nest(i,this.input))&&(i.from<i.to||!o.overlay)){i.tree||MCe(i);let c=e.findMounts(i.from,o.parser);if(typeof o.overlay=="function")r=new QCe(o.parser,o.overlay,c,this.inner.length,i.from,i.tree,r);else{let u=M5(this.ranges,o.overlay||(i.from<i.to?[new to(i.from,i.to)]:[]));u.length&&Q5(u),(u.length||!o.overlay)&&this.inner.push(new j5(o.parser,u.length?o.parser.startParse(this.input,q5(c,u),u):o.parser.startParse(""),o.overlay?o.overlay.map(d=>new to(d.from-i.from,d.to-i.from)):null,i.tree,u.length?u[0].from:i.from)),o.overlay?u.length&&(n={ranges:u,depth:0,prev:n}):a=!1}}else if(r&&(l=r.predicate(i))&&(l===!0&&(l=new to(i.from,i.to)),l.from<l.to)){let c=r.ranges.length-1;c>=0&&r.ranges[c].to==l.from?r.ranges[c]={from:r.ranges[c].from,to:l.to}:r.ranges.push(l)}if(a&&i.firstChild())r&&r.depth++,n&&n.depth++;else for(;!i.nextSibling();){if(!i.parent())break e;if(r&&!--r.depth){let c=M5(this.ranges,r.ranges);c.length&&(Q5(c),this.inner.splice(r.index,0,new j5(r.parser,r.parser.startParse(this.input,q5(r.mounts,c),c),r.ranges.map(u=>new to(u.from-r.start,u.to-r.start)),r.target,c[0].from))),r=r.prev}n&&!--n.depth&&(n=n.prev)}}}}function NCe(t,e,r){for(let n of t){if(n.from>=r)break;if(n.to>e)return n.from<=e&&n.to>=r?2:1}return 0}function D5(t,e,r,n,i,o){if(e<r){let s=t.buffer[e+1];n.push(t.slice(e,r,s)),i.push(s-o)}}function MCe(t){let{node:e}=t,r=[],n=e.context.buffer;do r.push(t.index),t.parent();while(!t.tree);let i=t.tree,o=i.children.indexOf(n),s=i.children[o],a=s.buffer,l=[o];function c(u,d,p,h,m,g){let O=r[g],y=[],v=[];D5(s,u,O,y,v,h);let b=a[O+1],w=a[O+2];l.push(y.length);let S=g?c(O+4,a[O+3],s.set.types[a[O]],b,w-b,g-1):e.toTree();return y.push(S),v.push(b-h),D5(s,a[O+3],d,y,v,h),new hr(p,y,v,m)}i.children[o]=c(0,a.length,Ln.none,0,s.length,r.length-1);for(let u of l){let d=t.tree.children[u],p=t.tree.positions[u];t.yield(new lo(d,p+t.from,u,t._tree))}}class N5{constructor(e,r){this.offset=r,this.done=!1,this.cursor=e.cursor(fr.IncludeAnonymous|fr.IgnoreMounts)}moveTo(e){let{cursor:r}=this,n=e-this.offset;for(;!this.done&&r.from<n;)r.to>=e&&r.enter(n,1,fr.IgnoreOverlays|fr.ExcludeBuffers)||r.next(!1)||(this.done=!0)}hasNode(e){if(this.moveTo(e.from),!this.done&&this.cursor.from+this.offset==e.from&&this.cursor.tree)for(let r=this.cursor.tree;;){if(r==e.tree)return!0;if(r.children.length&&r.positions[0]==0&&r.children[0]instanceof hr)r=r.children[0];else break}return!1}}let qCe=class{constructor(e){var r;if(this.fragments=e,this.curTo=0,this.fragI=0,e.length){let n=this.curFrag=e[0];this.curTo=(r=n.tree.prop(r$))!==null&&r!==void 0?r:n.to,this.inner=new N5(n.tree,-n.offset)}else this.curFrag=this.inner=null}hasNode(e){for(;this.curFrag&&e.from>=this.curTo;)this.nextFrag();return this.curFrag&&this.curFrag.from<=e.from&&this.curTo>=e.to&&this.inner.hasNode(e)}nextFrag(){var e;if(this.fragI++,this.fragI==this.fragments.length)this.curFrag=this.inner=null;else{let r=this.curFrag=this.fragments[this.fragI];this.curTo=(e=r.tree.prop(r$))!==null&&e!==void 0?e:r.to,this.inner=new N5(r.tree,-r.offset)}}findMounts(e,r){var n;let i=[];if(this.inner){this.inner.cursor.moveTo(e,1);for(let o=this.inner.cursor.node;o;o=o.parent){let s=(n=o.tree)===null||n===void 0?void 0:n.prop(mt.mounted);if(s&&s.parser==r)for(let a=this.fragI;a<this.fragments.length;a++){let l=this.fragments[a];if(l.from>=o.to)break;l.tree==this.curFrag.tree&&i.push({frag:l,pos:o.from-l.offset,mount:s})}}}return i}};function M5(t,e){let r=null,n=e;for(let i=1,o=0;i<t.length;i++){let s=t[i-1].to,a=t[i].from;for(;o<n.length;o++){let l=n[o];if(l.from>=a)break;l.to<=s||(r||(n=r=e.slice()),l.from<s?(r[o]=new to(l.from,s),l.to>a&&r.splice(o+1,0,new to(a,l.to))):l.to>a?r[o--]=new to(a,l.to):r.splice(o--,1))}}return n}function zCe(t,e,r,n){let i=0,o=0,s=!1,a=!1,l=-1e9,c=[];for(;;){let u=i==t.length?1e9:s?t[i].to:t[i].from,d=o==e.length?1e9:a?e[o].to:e[o].from;if(s!=a){let p=Math.max(l,r),h=Math.min(u,d,n);p<h&&c.push(new to(p,h))}if(l=Math.min(u,d),l==1e9)break;u==l&&(s?(s=!1,i++):s=!0),d==l&&(a?(a=!1,o++):a=!0)}return c}function q5(t,e){let r=[];for(let{pos:n,mount:i,frag:o}of t){let s=n+(i.overlay?i.overlay[0].from:0),a=s+i.tree.length,l=Math.max(o.from,s),c=Math.min(o.to,a);if(i.overlay){let u=i.overlay.map(p=>new to(p.from+n,p.to+n)),d=zCe(e,u,l,c);for(let p=0,h=l;;p++){let m=p==d.length,g=m?c:d[p].from;if(g>h&&r.push(new Oa(h,g,i.tree,-s,o.from>=h||o.openStart,o.to<=g||o.openEnd)),m)break;h=d[p].to}}else r.push(new Oa(l,c,i.tree,-s,o.from>=s||o.openStart,o.to<=a||o.openEnd))}return r}class yb{constructor(e,r,n,i,o,s,a,l,c,u=0,d){this.p=e,this.stack=r,this.state=n,this.reducePos=i,this.pos=o,this.score=s,this.buffer=a,this.bufferBase=l,this.curContext=c,this.lookAhead=u,this.parent=d}toString(){return`[${this.stack.filter((e,r)=>r%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(e,r,n=0){let i=e.parser.context;return new yb(e,[],r,n,n,0,[],0,i?new z5(i,i.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,r){this.stack.push(this.state,r,this.bufferBase+this.buffer.length),this.state=e}reduce(e){var r;let n=e>>19,i=e&65535,{parser:o}=this.p,s=this.reducePos<this.pos-25;s&&this.setLookAhead(this.pos);let a=o.dynamicPrecedence(i);if(a&&(this.score+=a),n==0){this.pushState(o.getGoto(this.state,i,!0),this.reducePos),i<o.minRepeatTerm&&this.storeNode(i,this.reducePos,this.reducePos,s?8:4,!0),this.reduceContext(i,this.reducePos);return}let l=this.stack.length-(n-1)*3-(e&262144?6:0),c=l?this.stack[l-2]:this.p.ranges[0].from,u=this.reducePos-c;u>=2e3&&!(!((r=this.p.parser.nodeSet.types[i])===null||r===void 0)&&r.isAnonymous)&&(c==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=u):this.p.lastBigReductionSize<u&&(this.p.bigReductionCount=1,this.p.lastBigReductionStart=c,this.p.lastBigReductionSize=u));let d=l?this.stack[l-1]:0,p=this.bufferBase+this.buffer.length-d;if(i<o.minRepeatTerm||e&131072){let h=o.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(i,c,h,p+4,!0)}if(e&262144)this.state=this.stack[l];else{let h=this.stack[l-3];this.state=o.getGoto(h,i,!0)}for(;this.stack.length>l;)this.stack.pop();this.reduceContext(i,c)}storeNode(e,r,n,i=4,o=!1){if(e==0&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let s=this,a=this.buffer.length;if(a==0&&s.parent&&(a=s.bufferBase-s.parent.bufferBase,s=s.parent),a>0&&s.buffer[a-4]==0&&s.buffer[a-1]>-1){if(r==n)return;if(s.buffer[a-2]>=r){s.buffer[a-2]=n;return}}}if(!o||this.pos==n)this.buffer.push(e,r,n,i);else{let s=this.buffer.length;if(s>0&&this.buffer[s-4]!=0){let a=!1;for(let l=s;l>0&&this.buffer[l-2]>n;l-=4)if(this.buffer[l-1]>=0){a=!0;break}if(a)for(;s>0&&this.buffer[s-2]>n;)this.buffer[s]=this.buffer[s-4],this.buffer[s+1]=this.buffer[s-3],this.buffer[s+2]=this.buffer[s-2],this.buffer[s+3]=this.buffer[s-1],s-=4,i>4&&(i-=4)}this.buffer[s]=e,this.buffer[s+1]=r,this.buffer[s+2]=n,this.buffer[s+3]=i}}shift(e,r,n,i){if(e&131072)this.pushState(e&65535,this.pos);else if((e&262144)==0){let o=e,{parser:s}=this.p;(i>this.pos||r<=s.maxNode)&&(this.pos=i,s.stateFlag(o,1)||(this.reducePos=i)),this.pushState(o,n),this.shiftContext(r,n),r<=s.maxNode&&this.buffer.push(r,n,i,4)}else this.pos=i,this.shiftContext(r,n),r<=this.p.parser.maxNode&&this.buffer.push(r,n,i,4)}apply(e,r,n,i){e&65536?this.reduce(e):this.shift(e,r,n,i)}useNode(e,r){let n=this.p.reused.length-1;(n<0||this.p.reused[n]!=e)&&(this.p.reused.push(e),n++);let i=this.pos;this.reducePos=this.pos=i+e.length,this.pushState(r,i),this.buffer.push(n,i,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let e=this,r=e.buffer.length;for(;r>0&&e.buffer[r-2]>e.reducePos;)r-=4;let n=e.buffer.slice(r),i=e.bufferBase+r;for(;e&&i==e.bufferBase;)e=e.parent;return new yb(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,n,i,this.curContext,this.lookAhead,e)}recoverByDelete(e,r){let n=e<=this.p.parser.maxNode;n&&this.storeNode(e,this.pos,r,4),this.storeNode(0,this.pos,r,n?8:4),this.pos=this.reducePos=r,this.score-=190}canShift(e){for(let r=new LCe(this);;){let n=this.p.parser.stateSlot(r.state,4)||this.p.parser.hasAction(r.state,e);if(n==0)return!1;if((n&65536)==0)return!0;r.reduce(n)}}recoverByInsert(e){if(this.stack.length>=300)return[];let r=this.p.parser.nextStates(this.state);if(r.length>8||this.stack.length>=120){let i=[];for(let o=0,s;o<r.length;o+=2)(s=r[o+1])!=this.state&&this.p.parser.hasAction(s,e)&&i.push(r[o],s);if(this.stack.length<120)for(let o=0;i.length<8&&o<r.length;o+=2){let s=r[o+1];i.some((a,l)=>l&1&&a==s)||i.push(r[o],s)}r=i}let n=[];for(let i=0;i<r.length&&n.length<4;i+=2){let o=r[i+1];if(o==this.state)continue;let s=this.split();s.pushState(o,this.pos),s.storeNode(0,s.pos,s.pos,4,!0),s.shiftContext(r[i],this.pos),s.reducePos=this.pos,s.score-=200,n.push(s)}return n}forceReduce(){let{parser:e}=this.p,r=e.stateSlot(this.state,5);if((r&65536)==0)return!1;if(!e.validAction(this.state,r)){let n=r>>19,i=r&65535,o=this.stack.length-n*3;if(o<0||e.getGoto(this.stack[o],i,!1)<0){let s=this.findForcedReduction();if(s==null)return!1;r=s}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(r),!0}findForcedReduction(){let{parser:e}=this.p,r=[],n=(i,o)=>{if(!r.includes(i))return r.push(i),e.allActions(i,s=>{if(!(s&393216))if(s&65536){let a=(s>>19)-o;if(a>1){let l=s&65535,c=this.stack.length-a*3;if(c>=0&&e.getGoto(this.stack[c],l,!1)>=0)return a<<19|65536|l}}else{let a=n(s,o+1);if(a!=null)return a}})};return n(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:e}=this.p;return e.data[e.stateSlot(this.state,1)]==65535&&!e.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let r=0;r<this.stack.length;r+=3)if(this.stack[r]!=e.stack[r])return!1;return!0}get parser(){return this.p.parser}dialectEnabled(e){return this.p.parser.dialect.flags[e]}shiftContext(e,r){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,e,this,this.p.stream.reset(r)))}reduceContext(e,r){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,e,this,this.p.stream.reset(r)))}emitContext(){let e=this.buffer.length-1;(e<0||this.buffer[e]!=-3)&&this.buffer.push(this.curContext.hash,this.pos,this.pos,-3)}emitLookAhead(){let e=this.buffer.length-1;(e<0||this.buffer[e]!=-4)&&this.buffer.push(this.lookAhead,this.pos,this.pos,-4)}updateContext(e){if(e!=this.curContext.context){let r=new z5(this.curContext.tracker,e);r.hash!=this.curContext.hash&&this.emitContext(),this.curContext=r}}setLookAhead(e){e>this.lookAhead&&(this.emitLookAhead(),this.lookAhead=e)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class z5{constructor(e,r){this.tracker=e,this.context=r,this.hash=e.strict?e.hash(r):0}}class LCe{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let r=e&65535,n=e>>19;n==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(n-1)*3;let i=this.start.p.parser.getGoto(this.stack[this.base-3],r,!0);this.state=i}}class vb{constructor(e,r,n){this.stack=e,this.pos=r,this.index=n,this.buffer=e.buffer,this.index==0&&this.maybeNext()}static create(e,r=e.bufferBase+e.buffer.length){return new vb(e,r,r-e.bufferBase)}maybeNext(){let e=this.stack.parent;e!=null&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new vb(this.stack,this.pos,this.index)}}function xp(t,e=Uint16Array){if(typeof t!="string")return t;let r=null;for(let n=0,i=0;n<t.length;){let o=0;for(;;){let s=t.charCodeAt(n++),a=!1;if(s==126){o=65535;break}s>=92&&s--,s>=34&&s--;let l=s-32;if(l>=46&&(l-=46,a=!0),o+=l,a)break;o*=46}r?r[i++]=o:r=new e(o)}return r}class jy{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const L5=new jy;class VCe{constructor(e,r){this.input=e,this.ranges=r,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=L5,this.rangeIndex=0,this.pos=this.chunkPos=r[0].from,this.range=r[0],this.end=r[r.length-1].to,this.readNext()}resolveOffset(e,r){let n=this.range,i=this.rangeIndex,o=this.pos+e;for(;o<n.from;){if(!i)return null;let s=this.ranges[--i];o-=n.from-s.to,n=s}for(;r<0?o>n.to:o>=n.to;){if(i==this.ranges.length-1)return null;let s=this.ranges[++i];o+=s.from-n.to,n=s}return o}clipPos(e){if(e>=this.range.from&&e<this.range.to)return e;for(let r of this.ranges)if(r.to>e)return Math.max(e,r.from);return this.end}peek(e){let r=this.chunkOff+e,n,i;if(r>=0&&r<this.chunk.length)n=this.pos+e,i=this.chunk.charCodeAt(r);else{let o=this.resolveOffset(e,1);if(o==null)return-1;if(n=o,n>=this.chunk2Pos&&n<this.chunk2Pos+this.chunk2.length)i=this.chunk2.charCodeAt(n-this.chunk2Pos);else{let s=this.rangeIndex,a=this.range;for(;a.to<=n;)a=this.ranges[++s];this.chunk2=this.input.chunk(this.chunk2Pos=n),n+this.chunk2.length>a.to&&(this.chunk2=this.chunk2.slice(0,a.to-n)),i=this.chunk2.charCodeAt(0)}}return n>=this.token.lookAhead&&(this.token.lookAhead=n+1),i}acceptToken(e,r=0){let n=r?this.resolveOffset(r,-1):this.pos;if(n==null||n<this.token.start)throw new RangeError("Token end out of bounds");this.token.value=e,this.token.end=n}acceptTokenTo(e,r){this.token.value=e,this.token.end=r}getChunk(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){let{chunk:e,chunkPos:r}=this;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=e,this.chunk2Pos=r,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;let e=this.input.chunk(this.pos),r=this.pos+e.length;this.chunk=r>this.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(e=1){for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(e,r){if(r?(this.token=r,r.start=e,r.lookAhead=e+1,r.value=r.extended=-1):this.token=L5,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e<this.range.from;)this.range=this.ranges[--this.rangeIndex];for(;e>=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e<this.chunkPos+this.chunk.length?this.chunkOff=e-this.chunkPos:(this.chunk="",this.chunkOff=0),this.readNext()}return this}read(e,r){if(e>=this.chunkPos&&r<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,r-this.chunkPos);if(e>=this.chunk2Pos&&r<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,r-this.chunk2Pos);if(e>=this.range.from&&r<=this.range.to)return this.input.read(e,r);let n="";for(let i of this.ranges){if(i.from>=r)break;i.to>e&&(n+=this.input.read(Math.max(i.from,e),Math.min(i.to,r)))}return n}}class gd{constructor(e,r){this.data=e,this.id=r}token(e,r){let{parser:n}=r.p;mU(this.data,e,r,this.id,n.data,n.tokenPrecTable)}}gd.prototype.contextual=gd.prototype.fallback=gd.prototype.extend=!1;class bb{constructor(e,r,n){this.precTable=r,this.elseToken=n,this.data=typeof e=="string"?xp(e):e}token(e,r){let n=e.pos,i=0;for(;;){let o=e.next<0,s=e.resolveOffset(1,1);if(mU(this.data,e,r,0,this.data,this.precTable),e.token.value>-1)break;if(this.elseToken==null)return;if(o||i++,s==null)break;e.reset(s,e.token)}i&&(e.reset(n,e.token),e.acceptToken(this.elseToken,i))}}bb.prototype.contextual=gd.prototype.fallback=gd.prototype.extend=!1;class Lr{constructor(e,r={}){this.token=e,this.contextual=!!r.contextual,this.fallback=!!r.fallback,this.extend=!!r.extend}}function mU(t,e,r,n,i,o){let s=0,a=1<<n,{dialect:l}=r.p.parser;e:for(;(a&t[s])!=0;){let c=t[s+1];for(let h=s+3;h<c;h+=2)if((t[h+1]&a)>0){let m=t[h];if(l.allows(m)&&(e.token.value==-1||e.token.value==m||XCe(m,e.token.value,i,o))){e.acceptToken(m);break}}let u=e.next,d=0,p=t[s+2];if(e.next<0&&p>d&&t[c+p*3-3]==65535){s=t[c+p*3-1];continue e}for(;d<p;){let h=d+p>>1,m=c+h+(h<<1),g=t[m],O=t[m+1]||65536;if(u<g)p=h;else if(u>=O)d=h+1;else{s=t[m+2],e.advance();continue e}}break}}function V5(t,e,r){for(let n=e,i;(i=t[n])!=65535;n++)if(i==r)return n-e;return-1}function XCe(t,e,r,n){let i=V5(r,n,e);return i<0||V5(r,n,t)<i}const Pi=typeof process<"u"&&process.env&&/\bparse\b/.test(process.env.LOG);let lw=null;function X5(t,e,r){let n=t.cursor(fr.IncludeAnonymous);for(n.moveTo(e);;)if(!(r<0?n.childBefore(e):n.childAfter(e)))for(;;){if((r<0?n.to<e:n.from>e)&&!n.type.isError)return r<0?Math.max(0,Math.min(n.to-1,e-25)):Math.min(t.length,Math.max(n.from+1,e+25));if(r<0?n.prevSibling():n.nextSibling())break;if(!n.parent())return r<0?0:t.length}}class WCe{constructor(e,r){this.fragments=e,this.nodeSet=r,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?X5(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?X5(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(e<this.nextStart)return null;for(;this.fragment&&this.safeTo<=e;)this.nextFragment();if(!this.fragment)return null;for(;;){let r=this.trees.length-1;if(r<0)return this.nextFragment(),null;let n=this.trees[r],i=this.index[r];if(i==n.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let o=n.children[i],s=this.start[r]+n.positions[i];if(s>e)return this.nextStart=s,null;if(o instanceof hr){if(s==e){if(s<this.safeFrom)return null;let a=s+o.length;if(a<=this.safeTo){let l=o.prop(mt.lookAhead);if(!l||a+l<this.fragment.to)return o}}this.index[r]++,s+o.length>=Math.max(this.safeFrom,e)&&(this.trees.push(o),this.start.push(s),this.index.push(0))}else this.index[r]++,this.nextStart=s+o.length}}}class UCe{constructor(e,r){this.stream=r,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map(n=>new jy)}getActions(e){let r=0,n=null,{parser:i}=e.p,{tokenizers:o}=i,s=i.stateSlot(e.state,3),a=e.curContext?e.curContext.hash:0,l=0;for(let c=0;c<o.length;c++){if((1<<c&s)==0)continue;let u=o[c],d=this.tokens[c];if(!(n&&!u.fallback)&&((u.contextual||d.start!=e.pos||d.mask!=s||d.context!=a)&&(this.updateCachedToken(d,u,e),d.mask=s,d.context=a),d.lookAhead>d.end+25&&(l=Math.max(d.lookAhead,l)),d.value!=0)){let p=r;if(d.extended>-1&&(r=this.addActions(e,d.extended,d.end,r)),r=this.addActions(e,d.value,d.end,r),!u.extend&&(n=d,r>p))break}}for(;this.actions.length>r;)this.actions.pop();return l&&e.setLookAhead(l),!n&&e.pos==this.stream.end&&(n=new jy,n.value=e.p.parser.eofTerm,n.start=n.end=e.pos,r=this.addActions(e,n.value,n.end,r)),this.mainToken=n,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let r=new jy,{pos:n,p:i}=e;return r.start=n,r.end=Math.min(n+1,i.stream.end),r.value=n==i.stream.end?i.parser.eofTerm:0,r}updateCachedToken(e,r,n){let i=this.stream.clipPos(n.pos);if(r.token(this.stream.reset(i,e),n),e.value>-1){let{parser:o}=n.p;for(let s=0;s<o.specialized.length;s++)if(o.specialized[s]==e.value){let a=o.specializers[s](this.stream.read(e.start,e.end),n);if(a>=0&&n.p.parser.dialect.allows(a>>1)){(a&1)==0?e.value=a>>1:e.extended=a>>1;break}}}else e.value=0,e.end=this.stream.clipPos(i+1)}putAction(e,r,n,i){for(let o=0;o<i;o+=3)if(this.actions[o]==e)return i;return this.actions[i++]=e,this.actions[i++]=r,this.actions[i++]=n,i}addActions(e,r,n,i){let{state:o}=e,{parser:s}=e.p,{data:a}=s;for(let l=0;l<2;l++)for(let c=s.stateSlot(o,l?2:1);;c+=3){if(a[c]==65535)if(a[c+1]==1)c=aa(a,c+2);else{i==0&&a[c+1]==2&&(i=this.putAction(aa(a,c+2),r,n,i));break}a[c]==r&&(i=this.putAction(aa(a,c+1),r,n,i))}return i}}let BCe=class{constructor(e,r,n,i){this.parser=e,this.input=r,this.ranges=i,this.recovering=0,this.nextStackID=9812,this.minStackPos=0,this.reused=[],this.stoppedAt=null,this.lastBigReductionStart=-1,this.lastBigReductionSize=0,this.bigReductionCount=0,this.stream=new VCe(r,i),this.tokens=new UCe(e,this.stream),this.topTerm=e.top[1];let{from:o}=i[0];this.stacks=[yb.start(this,e.top[0],o)],this.fragments=n.length&&this.stream.end-o>e.bufferLength*4?new WCe(n,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let e=this.stacks,r=this.minStackPos,n=this.stacks=[],i,o;if(this.bigReductionCount>300&&e.length==1){let[s]=e;for(;s.forceReduce()&&s.stack.length&&s.stack[s.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let s=0;s<e.length;s++){let a=e[s];for(;;){if(this.tokens.mainToken=null,a.pos>r)n.push(a);else{if(this.advanceStack(a,n,e))continue;{i||(i=[],o=[]),i.push(a);let l=this.tokens.getMainToken(a);o.push(l.value,l.end)}}break}}if(!n.length){let s=i&&ZCe(i);if(s)return Pi&&console.log("Finish with "+this.stackID(s)),this.stackToTree(s);if(this.parser.strict)throw Pi&&i&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+r);this.recovering||(this.recovering=5)}if(this.recovering&&i){let s=this.stoppedAt!=null&&i[0].pos>this.stoppedAt?i[0]:this.runRecovery(i,o,n);if(s)return Pi&&console.log("Force-finish "+this.stackID(s)),this.stackToTree(s.forceAll())}if(this.recovering){let s=this.recovering==1?1:this.recovering*3;if(n.length>s)for(n.sort((a,l)=>l.score-a.score);n.length>s;)n.pop();n.some(a=>a.reducePos>r)&&this.recovering--}else if(n.length>1){e:for(let s=0;s<n.length-1;s++){let a=n[s];for(let l=s+1;l<n.length;l++){let c=n[l];if(a.sameState(c)||a.buffer.length>500&&c.buffer.length>500)if((a.score-c.score||a.buffer.length-c.buffer.length)>0)n.splice(l--,1);else{n.splice(s--,1);continue e}}}n.length>12&&n.splice(12,n.length-12)}this.minStackPos=n[0].pos;for(let s=1;s<n.length;s++)n[s].pos<this.minStackPos&&(this.minStackPos=n[s].pos);return null}stopAt(e){if(this.stoppedAt!=null&&this.stoppedAt<e)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=e}advanceStack(e,r,n){let i=e.pos,{parser:o}=this,s=Pi?this.stackID(e)+" -> ":"";if(this.stoppedAt!=null&&i>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let c=e.curContext&&e.curContext.tracker.strict,u=c?e.curContext.hash:0;for(let d=this.fragments.nodeAt(i);d;){let p=this.parser.nodeSet.types[d.type.id]==d.type?o.getGoto(e.state,d.type.id):-1;if(p>-1&&d.length&&(!c||(d.prop(mt.contextHash)||0)==u))return e.useNode(d,p),Pi&&console.log(s+this.stackID(e)+` (via reuse of ${o.getName(d.type.id)})`),!0;if(!(d instanceof hr)||d.children.length==0||d.positions[0]>0)break;let h=d.children[0];if(h instanceof hr&&d.positions[0]==0)d=h;else break}}let a=o.stateSlot(e.state,4);if(a>0)return e.reduce(a),Pi&&console.log(s+this.stackID(e)+` (via always-reduce ${o.getName(a&65535)})`),!0;if(e.stack.length>=8400)for(;e.stack.length>6e3&&e.forceReduce(););let l=this.tokens.getActions(e);for(let c=0;c<l.length;){let u=l[c++],d=l[c++],p=l[c++],h=c==l.length||!n,m=h?e:e.split(),g=this.tokens.mainToken;if(m.apply(u,d,g?g.start:m.pos,p),Pi&&console.log(s+this.stackID(m)+` (via ${(u&65536)==0?"shift":`reduce of ${o.getName(u&65535)}`} for ${o.getName(d)} @ ${i}${m==e?"":", split"})`),h)return!0;m.pos>i?r.push(m):n.push(m)}return!1}advanceFully(e,r){let n=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>n)return W5(e,r),!0}}runRecovery(e,r,n){let i=null,o=!1;for(let s=0;s<e.length;s++){let a=e[s],l=r[s<<1],c=r[(s<<1)+1],u=Pi?this.stackID(a)+" -> ":"";if(a.deadEnd&&(o||(o=!0,a.restart(),Pi&&console.log(u+this.stackID(a)+" (restarted)"),this.advanceFully(a,n))))continue;let d=a.split(),p=u;for(let h=0;d.forceReduce()&&h<10&&(Pi&&console.log(p+this.stackID(d)+" (via force-reduce)"),!this.advanceFully(d,n));h++)Pi&&(p=this.stackID(d)+" -> ");for(let h of a.recoverByInsert(l))Pi&&console.log(u+this.stackID(h)+" (via recover-insert)"),this.advanceFully(h,n);this.stream.end>a.pos?(c==a.pos&&(c++,l=0),a.recoverByDelete(l,c),Pi&&console.log(u+this.stackID(a)+` (via recover-delete ${this.parser.getName(l)})`),W5(a,n)):(!i||i.score<a.score)&&(i=a)}return i}stackToTree(e){return e.close(),hr.build({buffer:vb.create(e),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:e.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}stackID(e){let r=(lw||(lw=new WeakMap)).get(e);return r||lw.set(e,r=String.fromCodePoint(this.nextStackID++)),r+e}};function W5(t,e){for(let r=0;r<e.length;r++){let n=e[r];if(n.pos==t.pos&&n.sameState(t)){e[r].score<t.score&&(e[r]=t);return}}e.push(t)}class FCe{constructor(e,r,n){this.source=e,this.flags=r,this.disabled=n}allows(e){return!this.disabled||this.disabled[e]==0}}const cw=t=>t;class $g{constructor(e){this.start=e.start,this.shift=e.shift||cw,this.reduce=e.reduce||cw,this.reuse=e.reuse||cw,this.hash=e.hash||(()=>0),this.strict=e.strict!==!1}}class Ro extends qE{constructor(e){if(super(),this.wrappers=[],e.version!=14)throw new RangeError(`Parser version (${e.version}) doesn't match runtime version (14)`);let r=e.nodeNames.split(" ");this.minRepeatTerm=r.length;for(let a=0;a<e.repeatNodeCount;a++)r.push("");let n=Object.keys(e.topRules).map(a=>e.topRules[a][1]),i=[];for(let a=0;a<r.length;a++)i.push([]);function o(a,l,c){i[a].push([l,l.deserialize(String(c))])}if(e.nodeProps)for(let a of e.nodeProps){let l=a[0];typeof l=="string"&&(l=mt[l]);for(let c=1;c<a.length;){let u=a[c++];if(u>=0)o(u,l,a[c++]);else{let d=a[c+-u];for(let p=-u;p>0;p--)o(a[c++],l,d);c++}}}this.nodeSet=new Cx(r.map((a,l)=>Ln.define({name:l>=this.minRepeatTerm?void 0:a,id:l,props:i[l],top:n.indexOf(l)>-1,error:l==0,skipped:e.skippedNodes&&e.skippedNodes.indexOf(l)>-1}))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=fU;let s=xp(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let a=0;a<this.specializerSpecs.length;a++)this.specialized[a]=this.specializerSpecs[a].term;this.specializers=this.specializerSpecs.map(U5),this.states=xp(e.states,Uint32Array),this.data=xp(e.stateData),this.goto=xp(e.goto),this.maxTerm=e.maxTerm,this.tokenizers=e.tokenizers.map(a=>typeof a=="number"?new gd(s,a):a),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,r,n){let i=new BCe(this,e,r,n);for(let o of this.wrappers)i=o(i,e,r,n);return i}getGoto(e,r,n=!1){let i=this.goto;if(r>=i[0])return-1;for(let o=i[r+1];;){let s=i[o++],a=s&1,l=i[o++];if(a&&n)return l;for(let c=o+(s>>1);o<c;o++)if(i[o]==e)return l;if(a)return-1}}hasAction(e,r){let n=this.data;for(let i=0;i<2;i++)for(let o=this.stateSlot(e,i?2:1),s;;o+=3){if((s=n[o])==65535)if(n[o+1]==1)s=n[o=aa(n,o+2)];else{if(n[o+1]==2)return aa(n,o+2);break}if(s==r||s==0)return aa(n,o+1)}return 0}stateSlot(e,r){return this.states[e*6+r]}stateFlag(e,r){return(this.stateSlot(e,0)&r)>0}validAction(e,r){return!!this.allActions(e,n=>n==r?!0:null)}allActions(e,r){let n=this.stateSlot(e,4),i=n?r(n):void 0;for(let o=this.stateSlot(e,1);i==null;o+=3){if(this.data[o]==65535)if(this.data[o+1]==1)o=aa(this.data,o+2);else break;i=r(aa(this.data,o+1))}return i}nextStates(e){let r=[];for(let n=this.stateSlot(e,1);;n+=3){if(this.data[n]==65535)if(this.data[n+1]==1)n=aa(this.data,n+2);else break;if((this.data[n+2]&1)==0){let i=this.data[n+1];r.some((o,s)=>s&1&&o==i)||r.push(this.data[n],i)}}return r}configure(e){let r=Object.assign(Object.create(Ro.prototype),this);if(e.props&&(r.nodeSet=this.nodeSet.extend(...e.props)),e.top){let n=this.topRules[e.top];if(!n)throw new RangeError(`Invalid top rule name ${e.top}`);r.top=n}return e.tokenizers&&(r.tokenizers=this.tokenizers.map(n=>{let i=e.tokenizers.find(o=>o.from==n);return i?i.to:n})),e.specializers&&(r.specializers=this.specializers.slice(),r.specializerSpecs=this.specializerSpecs.map((n,i)=>{let o=e.specializers.find(a=>a.from==n.external);if(!o)return n;let s=Object.assign(Object.assign({},n),{external:o.to});return r.specializers[i]=U5(s),s})),e.contextTracker&&(r.context=e.contextTracker),e.dialect&&(r.dialect=this.parseDialect(e.dialect)),e.strict!=null&&(r.strict=e.strict),e.wrap&&(r.wrappers=r.wrappers.concat(e.wrap)),e.bufferLength!=null&&(r.bufferLength=e.bufferLength),r}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let r=this.dynamicPrecedences;return r==null?0:r[e]||0}parseDialect(e){let r=Object.keys(this.dialects),n=r.map(()=>!1);if(e)for(let o of e.split(" ")){let s=r.indexOf(o);s>=0&&(n[s]=!0)}let i=null;for(let o=0;o<r.length;o++)if(!n[o])for(let s=this.dialects[r[o]],a;(a=this.data[s++])!=65535;)(i||(i=new Uint8Array(this.maxTerm+1)))[a]=1;return new FCe(e,n,i)}static deserialize(e){return new Ro(e)}}function aa(t,e){return t[e]|t[e+1]<<16}function ZCe(t){let e=null;for(let r of t){let n=r.p.stoppedAt;(r.pos==r.p.stream.end||n!=null&&r.pos>n)&&r.p.parser.stateFlag(r.state,2)&&(!e||e.score<r.score)&&(e=r)}return e}function U5(t){if(t.external){let e=t.extend?1:0;return(r,n)=>t.external(r,n)<<1|e}return t.get}let YCe=0,la=class n${constructor(e,r,n,i){this.name=e,this.set=r,this.base=n,this.modified=i,this.id=YCe++}toString(){let{name:e}=this;for(let r of this.modified)r.name&&(e=`${r.name}(${e})`);return e}static define(e,r){let n=typeof e=="string"?e:"?";if(e instanceof n$&&(r=e),r?.base)throw new Error("Can not derive from a modified tag");let i=new n$(n,[],null,[]);if(i.set.push(i),r)for(let o of r.set)i.set.push(o);return i}static defineModifier(e){let r=new xb(e);return n=>n.modified.indexOf(r)>-1?n:xb.get(n.base||n,n.modified.concat(r).sort((i,o)=>i.id-o.id))}},GCe=0;class xb{constructor(e){this.name=e,this.instances=[],this.id=GCe++}static get(e,r){if(!r.length)return e;let n=r[0].instances.find(a=>a.base==e&&HCe(r,a.modified));if(n)return n;let i=[],o=new la(e.name,i,e,r);for(let a of r)a.instances.push(o);let s=JCe(r);for(let a of e.set)if(!a.modified.length)for(let l of s)i.push(xb.get(a,l));return o}}function HCe(t,e){return t.length==e.length&&t.every((r,n)=>r==e[n])}function JCe(t){let e=[[]];for(let r=0;r<t.length;r++)for(let n=0,i=e.length;n<i;n++)e.push(e[n].concat(t[r]));return e.sort((r,n)=>n.length-r.length)}function Ma(t){let e=Object.create(null);for(let r in t){let n=t[r];Array.isArray(n)||(n=[n]);for(let i of r.split(" "))if(i){let o=[],s=2,a=i;for(let d=0;;){if(a=="..."&&d>0&&d+3==i.length){s=1;break}let p=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(a);if(!p)throw new RangeError("Invalid path: "+i);if(o.push(p[0]=="*"?"":p[0][0]=='"'?JSON.parse(p[0]):p[0]),d+=p[0].length,d==i.length)break;let h=i[d++];if(d==i.length&&h=="!"){s=0;break}if(h!="/")throw new RangeError("Invalid path: "+i);a=i.slice(d)}let l=o.length-1,c=o[l];if(!c)throw new RangeError("Invalid path: "+i);let u=new Sb(n,s,l>0?o.slice(0,l):null);e[c]=u.sort(e[c])}}return OU.add(e)}const OU=new mt;class Sb{constructor(e,r,n,i){this.tags=e,this.mode=r,this.context=n,this.next=i}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(e){return!e||e.depth<this.depth?(this.next=e,this):(e.next=this.sort(e.next),e)}get depth(){return this.context?this.context.length:0}}Sb.empty=new Sb([],2,null);function yU(t,e){let r=Object.create(null);for(let o of t)if(!Array.isArray(o.tag))r[o.tag.id]=o.class;else for(let s of o.tag)r[s.id]=o.class;let{scope:n,all:i=null}=e||{};return{style:o=>{let s=i;for(let a of o)for(let l of a.set){let c=r[l.id];if(c){s=s?s+" "+c:c;break}}return s},scope:n}}function KCe(t,e){let r=null;for(let n of t){let i=n.style(e);i&&(r=r?r+" "+i:i)}return r}function e$e(t,e,r,n=0,i=t.length){let o=new t$e(n,Array.isArray(e)?e:[e],r);o.highlightRange(t.cursor(),n,i,"",o.highlighters),o.flush(i)}class t$e{constructor(e,r,n){this.at=e,this.highlighters=r,this.span=n,this.class=""}startSpan(e,r){r!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=r)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,r,n,i,o){let{type:s,from:a,to:l}=e;if(a>=n||l<=r)return;s.isTop&&(o=this.highlighters.filter(h=>!h.scope||h.scope(s)));let c=i,u=r$e(e)||Sb.empty,d=KCe(o,u.tags);if(d&&(c&&(c+=" "),c+=d,u.mode==1&&(i+=(i?" ":"")+d)),this.startSpan(Math.max(r,a),c),u.opaque)return;let p=e.tree&&e.tree.prop(mt.mounted);if(p&&p.overlay){let h=e.node.enter(p.overlay[0].from+a,1),m=this.highlighters.filter(O=>!O.scope||O.scope(p.tree.type)),g=e.firstChild();for(let O=0,y=a;;O++){let v=O<p.overlay.length?p.overlay[O]:null,b=v?v.from+a:l,w=Math.max(r,y),S=Math.min(n,b);if(w<S&&g)for(;e.from<S&&(this.highlightRange(e,w,S,i,o),this.startSpan(Math.min(S,e.to),c),!(e.to>=b||!e.nextSibling())););if(!v||b>n)break;y=v.to+a,y>r&&(this.highlightRange(h.cursor(),Math.max(r,v.from+a),Math.min(n,y),"",m),this.startSpan(Math.min(n,y),c))}g&&e.parent()}else if(e.firstChild()){p&&(i="");do if(!(e.to<=r)){if(e.from>=n)break;this.highlightRange(e,r,n,i,o),this.startSpan(Math.min(n,e.to),c)}while(e.nextSibling());e.parent()}}}function r$e(t){let e=t.type.prop(OU);for(;e&&e.context&&!t.matchContext(e.context);)e=e.next;return e||null}const Ne=la.define,PO=Ne(),ol=Ne(),B5=Ne(ol),F5=Ne(ol),sl=Ne(),CO=Ne(sl),uw=Ne(sl),os=Ne(),oc=Ne(os),Ho=Ne(),Jo=Ne(),i$=Ne(),ep=Ne(i$),$O=Ne(),N={comment:PO,lineComment:Ne(PO),blockComment:Ne(PO),docComment:Ne(PO),name:ol,variableName:Ne(ol),typeName:B5,tagName:Ne(B5),propertyName:F5,attributeName:Ne(F5),className:Ne(ol),labelName:Ne(ol),namespace:Ne(ol),macroName:Ne(ol),literal:sl,string:CO,docString:Ne(CO),character:Ne(CO),attributeValue:Ne(CO),number:uw,integer:Ne(uw),float:Ne(uw),bool:Ne(sl),regexp:Ne(sl),escape:Ne(sl),color:Ne(sl),url:Ne(sl),keyword:Ho,self:Ne(Ho),null:Ne(Ho),atom:Ne(Ho),unit:Ne(Ho),modifier:Ne(Ho),operatorKeyword:Ne(Ho),controlKeyword:Ne(Ho),definitionKeyword:Ne(Ho),moduleKeyword:Ne(Ho),operator:Jo,derefOperator:Ne(Jo),arithmeticOperator:Ne(Jo),logicOperator:Ne(Jo),bitwiseOperator:Ne(Jo),compareOperator:Ne(Jo),updateOperator:Ne(Jo),definitionOperator:Ne(Jo),typeOperator:Ne(Jo),controlOperator:Ne(Jo),punctuation:i$,separator:Ne(i$),bracket:ep,angleBracket:Ne(ep),squareBracket:Ne(ep),paren:Ne(ep),brace:Ne(ep),content:os,heading:oc,heading1:Ne(oc),heading2:Ne(oc),heading3:Ne(oc),heading4:Ne(oc),heading5:Ne(oc),heading6:Ne(oc),contentSeparator:Ne(os),list:Ne(os),quote:Ne(os),emphasis:Ne(os),strong:Ne(os),link:Ne(os),monospace:Ne(os),strikethrough:Ne(os),inserted:Ne(),deleted:Ne(),changed:Ne(),invalid:Ne(),meta:$O,documentMeta:Ne($O),annotation:Ne($O),processingInstruction:Ne($O),definition:la.defineModifier("definition"),constant:la.defineModifier("constant"),function:la.defineModifier("function"),standard:la.defineModifier("standard"),local:la.defineModifier("local"),special:la.defineModifier("special")};for(let t in N){let e=N[t];e instanceof la&&(e.name=t)}yU([{tag:N.link,class:"tok-link"},{tag:N.heading,class:"tok-heading"},{tag:N.emphasis,class:"tok-emphasis"},{tag:N.strong,class:"tok-strong"},{tag:N.keyword,class:"tok-keyword"},{tag:N.atom,class:"tok-atom"},{tag:N.bool,class:"tok-bool"},{tag:N.url,class:"tok-url"},{tag:N.labelName,class:"tok-labelName"},{tag:N.inserted,class:"tok-inserted"},{tag:N.deleted,class:"tok-deleted"},{tag:N.literal,class:"tok-literal"},{tag:N.string,class:"tok-string"},{tag:N.number,class:"tok-number"},{tag:[N.regexp,N.escape,N.special(N.string)],class:"tok-string2"},{tag:N.variableName,class:"tok-variableName"},{tag:N.local(N.variableName),class:"tok-variableName tok-local"},{tag:N.definition(N.variableName),class:"tok-variableName tok-definition"},{tag:N.special(N.variableName),class:"tok-variableName2"},{tag:N.definition(N.propertyName),class:"tok-propertyName tok-definition"},{tag:N.typeName,class:"tok-typeName"},{tag:N.namespace,class:"tok-namespace"},{tag:N.className,class:"tok-className"},{tag:N.macroName,class:"tok-macroName"},{tag:N.propertyName,class:"tok-propertyName"},{tag:N.operator,class:"tok-operator"},{tag:N.comment,class:"tok-comment"},{tag:N.meta,class:"tok-meta"},{tag:N.invalid,class:"tok-invalid"},{tag:N.punctuation,class:"tok-punctuation"}]);const n$e=Ma({String:N.string,Number:N.number,"True False":N.bool,PropertyName:N.propertyName,Null:N.null,",":N.separator,"[ ]":N.squareBracket,"{ }":N.brace}),i$e=Ro.deserialize({version:14,states:"$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#CjOOQO'#Cp'#CpQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CrOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59U,59UO!iQPO,59UOVQPO,59QOqQPO'#CkO!nQPO,59^OOQO1G.k1G.kOVQPO'#ClO!vQPO,59aOOQO1G.p1G.pOOQO1G.l1G.lOOQO,59V,59VOOQO-E6i-E6iOOQO,59W,59WOOQO-E6j-E6j",stateData:"#O~OcOS~OQSORSOSSOTSOWQO]ROePO~OVXOeUO~O[[O~PVOg^O~Oh_OVfX~OVaO~OhbO[iX~O[dO~Oh_OVfa~OhbO[ia~O",goto:"!kjPPPPPPkPPkqwPPk{!RPPP!XP!ePP!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",nodeNames:"⚠ JsonText True False Null Number String } { Object Property PropertyName ] [ Array",maxTerm:25,nodeProps:[["openedBy",7,"{",12,"["],["closedBy",8,"}",13,"]"]],propSources:[n$e],skippedNodes:[0],repeatNodeCount:2,tokenData:"(|~RaXY!WYZ!W]^!Wpq!Wrs!]|}$u}!O$z!Q!R%T!R![&c![!]&t!}#O&y#P#Q'O#Y#Z'T#b#c'r#h#i(Z#o#p(r#q#r(w~!]Oc~~!`Wpq!]qr!]rs!xs#O!]#O#P!}#P;'S!];'S;=`$o<%lO!]~!}Oe~~#QXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#m~#pR!Q![#y!c!i#y#T#Z#y~#|R!Q![$V!c!i$V#T#Z$V~$YR!Q![$c!c!i$c#T#Z$c~$fR!Q![!]!c!i!]#T#Z!]~$rP;=`<%l!]~$zOh~~$}Q!Q!R%T!R![&c~%YRT~!O!P%c!g!h%w#X#Y%w~%fP!Q![%i~%nRT~!Q![%i!g!h%w#X#Y%w~%zR{|&T}!O&T!Q![&Z~&WP!Q![&Z~&`PT~!Q![&Z~&hST~!O!P%c!Q![&c!g!h%w#X#Y%w~&yOg~~'OO]~~'TO[~~'WP#T#U'Z~'^P#`#a'a~'dP#g#h'g~'jP#X#Y'm~'rOR~~'uP#i#j'x~'{P#`#a(O~(RP#`#a(U~(ZOS~~(^P#f#g(a~(dP#i#j(g~(jP#X#Y(m~(rOQ~~(wOW~~(|OV~",tokeniz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2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(e=>e?parseInt(e,36):1);for(let e=0,r=0;e<t.length;e++)(e%2?vU:o$).push(r=r+t[e])})();function o$e(t){if(t<768)return!1;for(let e=0,r=o$.length;;){let n=e+r>>1;if(t<o$[n])r=n;else if(t>=vU[n])e=n+1;else return!0;if(e==r)return!1}}function Z5(t){return t>=127462&&t<=127487}const Y5=8205;function s$e(t,e,r=!0,n=!0){return(r?bU:a$e)(t,e,n)}function bU(t,e,r){if(e==t.length)return e;e&&xU(t.charCodeAt(e))&&SU(t.charCodeAt(e-1))&&e--;let n=dw(t,e);for(e+=G5(n);e<t.length;){let i=dw(t,e);if(n==Y5||i==Y5||r&&o$e(i))e+=G5(i),n=i;else if(Z5(i)){let o=0,s=e-2;for(;s>=0&&Z5(dw(t,s));)o++,s-=2;if(o%2==0)break;e+=2}else break}return e}function a$e(t,e,r){for(;e>0;){let n=bU(t,e-2,r);if(n<e)return n;e--}return 0}function dw(t,e){let r=t.charCodeAt(e);if(!SU(r)||e+1==t.length)return r;let n=t.charCodeAt(e+1);return xU(n)?(r-55296<<10)+(n-56320)+65536:r}function xU(t){return t>=56320&&t<57344}function SU(t){return t>=55296&&t<56320}function G5(t){return t<65536?1:2}class jt{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,r,n){[e,r]=Md(this,e,r);let i=[];return this.decompose(0,e,i,2),n.length&&n.decompose(0,n.length,i,3),this.decompose(r,this.length,i,1),fs.from(i,this.length-(r-e)+n.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,r=this.length){[e,r]=Md(this,e,r);let n=[];return this.decompose(e,r,n,0),fs.from(n,r-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let r=this.scanIdentical(e,1),n=this.length-this.scanIdentical(e,-1),i=new Lp(this),o=new Lp(e);for(let s=r,a=r;;){if(i.next(s),o.next(s),s=0,i.lineBreak!=o.lineBreak||i.done!=o.done||i.value!=o.value)return!1;if(a+=i.value.length,i.done||a>=n)return!0}}iter(e=1){return new Lp(this,e)}iterRange(e,r=this.length){return new wU(this,e,r)}iterLines(e,r){let n;if(e==null)n=this.iter();else{r==null&&(r=this.lines+1);let i=this.line(e).from;n=this.iterRange(i,Math.max(i,r==this.lines+1?this.length:r<=1?0:this.line(r-1).to))}return new PU(n)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?jt.empty:e.length<=32?new Mr(e):fs.from(Mr.split(e,[]))}}class Mr extends jt{constructor(e,r=l$e(e)){super(),this.text=e,this.length=r}get lines(){return this.text.length}get children(){return null}lineInner(e,r,n,i){for(let o=0;;o++){let s=this.text[o],a=i+s.length;if((r?n:a)>=e)return new c$e(i,a,n,s);i=a+1,n++}}decompose(e,r,n,i){let o=e<=0&&r>=this.length?this:new Mr(H5(this.text,e,r),Math.min(r,this.length)-Math.max(0,e));if(i&1){let s=n.pop(),a=Qy(o.text,s.text.slice(),0,o.length);if(a.length<=32)n.push(new Mr(a,s.length+o.length));else{let l=a.length>>1;n.push(new Mr(a.slice(0,l)),new Mr(a.slice(l)))}}else n.push(o)}replace(e,r,n){if(!(n instanceof Mr))return super.replace(e,r,n);[e,r]=Md(this,e,r);let i=Qy(this.text,Qy(n.text,H5(this.text,0,e)),r),o=this.length+n.length-(r-e);return i.length<=32?new Mr(i,o):fs.from(Mr.split(i,[]),o)}sliceString(e,r=this.length,n=`
|
|
@@ -414,7 +414,7 @@ $3`);return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}function lQe(t){return t.
|
|
|
414
414
|
`];let y=-1,v=0;for(const b of O){const w=t.indexOf(b,u);if(w!==-1&&w<l.start){y=w,v=b.length;break}}if(y!==-1)d=y+v;else{const b=[`
|
|
415
415
|
`,`\r
|
|
416
416
|
`];for(const w of b){const S=t.indexOf(w,u);if(S!==-1&&S<l.start){d=S+w.length;break}}}}const g=l.start;e.push({boundaryStart:a.start,boundaryEnd:a.end,headersStart:c,headersEnd:u,bodyStart:d,bodyEnd:g,contentType:p})}return e}const BQe=()=>gr.fromClass(class{decorations;constructor(t){this.decorations=this.buildDecorations(t)}update(t){(t.docChanged||t.viewportChanged)&&(this.decorations=this.buildDecorations(t.view))}buildDecorations(t){const e=t.state.doc.toString(),r=[],n=Me.mark({attributes:{style:"color: var(--color-carrot-8); font-weight: var(--font-weight-semibold);"}}),i=Me.mark({attributes:{style:"color: var(--color-blue-8);"}}),o=Me.mark({attributes:{style:"color: var(--color-purple-8);"}}),s=UQe(e),a=/^--[a-zA-Z0-9_\-\.]+(?:--)?(?:\r?\n|$)/gm,l=[];let c;for(;(c=a.exec(e))!==null;)l.push({start:c.index,end:c.index+c[0].length});for(const m of l)t.visibleRanges.some(O=>Math.max(O.from,m.start)<Math.min(O.to,m.end))&&r.push({from:m.start,to:m.end,value:n});const u=/^([a-zA-Z0-9\-]+):\s*(.+?)(?:\r?\n|$)/gm;for(const m of s){u.lastIndex=m.headersStart;let g;for(;(g=u.exec(e))!==null&&g.index<m.headersEnd;){const y=g.index+g[1].length+1+(g[2].match(/^\s*/)?.[0]?.length||0),v=g.index+g[0].length-(g[0].match(/\r?\n$/)?.[0]?.length||0);t.visibleRanges.some(w=>Math.max(w.from,y)<Math.min(w.to,v))&&v>y&&r.push({from:y,to:v,value:i})}}const d=/\[Binary\s+Data\]/gi;let p;for(;(p=d.exec(e))!==null;){const m=p.index,g=p[0].length;t.visibleRanges.some(y=>Math.max(y.from,m)<Math.min(y.to,m+g))&&r.push({from:m,to:m+g,value:o})}const h=Me.mark({attributes:{style:"color: var(--color-blue-8);"}});for(const m of s)if(m.contentType?.includes("json")){const g=e.slice(m.bodyStart,m.bodyEnd),O=g.trim();if(!O)continue;const y=g.length-g.trimStart().length,v=m.bodyStart+y;let b;try{const S=Kd.create("inmemory://model.json","json",0,O),C=VQe.parseJSONDocument(S)?.root;b=XQe(C)?C:void 0}catch{b=void 0}if(!b)continue;const w=WQe(b);for(const S of w){const P=v+S.from,C=v+S.to;if(!t.visibleRanges.some(_=>Math.max(_.from,P)<Math.min(_.to,C))||!(e[P]==='"'&&e[C-1]==='"'))continue;const R=P+1,D=C-1;D<=R||r.push({from:R,to:D,value:h})}}return Me.set(r,!0)}},{decorations:t=>t.decorations}),FQe=()=>gr.fromClass(class{decorations;constructor(t){this.decorations=this.buildDecorations(t)}update(t){(t.docChanged||t.viewportChanged)&&(this.decorations=this.buildDecorations(t.view))}buildDecorations(t){const e=t.state.doc.toString(),r=[],n=Me.mark({attributes:{style:"color: var(--color-blue-8);"}}),i=/^([a-zA-Z0-9\-]+):\s*(.+?)(?:\r?\n|$)/gm;let o;for(;(o=i.exec(e))!==null;){let l=o.index+o[1].length+1;for(;l<e.length&&/\s/.test(e[l]);)l++;const u=o.index+o[0].length-(o[0].match(/\r?\n$/)?.[0]?.length||0);u<=l||!t.visibleRanges.some(p=>Math.max(p.from,l)<Math.min(p.to,u))||r.push({from:l,to:u,value:n})}return Me.set(r,!0)}},{decorations:t=>t.decorations}),ZQe=qx({});function YQe(t){if(!t||typeof t!="object")return!1;const e=t;return typeof e.type=="string"&&typeof e.offset=="number"&&typeof e.length=="number"}function GQe(t){const e=[];if(!t)return e;const r=[t];for(;r.length>0;){const n=r.pop();if(n.type==="property"){n.valueNode&&r.push(n.valueNode);continue}if(n.type==="string"){const i=n.offset,o=n.offset+n.length;o>i&&e.push({from:i,to:o})}if(n.children&&n.children.length)for(const i of n.children)r.push(i)}return e}const Gw=()=>gr.fromClass(class{decorations;constructor(t){this.decorations=this.buildDecorations(t)}update(t){(t.docChanged||t.viewportChanged)&&(this.decorations=this.buildDecorations(t.view))}buildDecorations(t){const e=t.state.doc.toString(),r=[],n=Me.mark({attributes:{style:"color: var(--color-blue-8);"}}),i=Me.mark({attributes:{style:"color: var(--code-block-tokens-keyword-color); font-weight: var(--font-weight-bold);"}}),o=e.split(/\r?\n/);let s=0;for(let a=0;a<o.length;a++){const l=o[a],c=s,u=s+l.length;if(!l.trim()){s=u+(e[s+l.length]==="\r"?2:1);continue}let d=c,p=l;l.startsWith("0x1E")?(d=c+4,p=l.substring(4),r.push({from:c,to:c+4,value:i})):l.charCodeAt(0)===30&&(d=c+1,p=l.substring(1),r.push({from:c,to:c+1,value:i})),l.endsWith("0x0A")?(p=p.substring(0,p.length-4),r.push({from:u-4,to:u,value:i})):l.charCodeAt(l.length-1)===10&&(p=p.substring(0,p.length-1),r.push({from:u-1,to:u,value:i}));let h;try{const g=Kd.create("inmemory://model.json","json",0,p),y=ZQe.parseJSONDocument(g)?.root;h=YQe(y)?y:void 0}catch{h=void 0}if(!h){s=u+(e[s+l.length]==="\r"?2:1);continue}const m=GQe(h);for(const g of m){const O=d+g.from,y=d+g.to;if(!t.visibleRanges.some(S=>Math.max(S.from,O)<Math.min(S.to,y))||!(e[O]==='"'&&e[y-1]==='"'))continue;const b=O+1,w=y-1;w<=b||r.push({from:b,to:w,value:n})}s=u+(e[s+l.length]==="\r"?2:1)}return Me.set(r,!0)}},{decorations:t=>t.decorations}),bf={[zr.Text]:{name:"Text",extensions:[Qe.lineWrapping],stateExtensions:[Ek]},[zr.JSON]:{name:"JSON",extensions:[gB(),S2e(_Qe(),{delay:0,needsRefresh:t=>t.transactions.some(e=>e.effects.some(r=>r.is(OZ)))}),hB.data.of({autocomplete:QQe()}),jQe],stateExtensions:[RQe,LQe]},[zr.XML]:{name:"XML",extensions:[u2e()],stateExtensions:[Ek]}},yZ={[zr.MultipartMixed]:{name:"Multipart Mixed",extensions:[Qe.lineWrapping],stateExtensions:[BQe]},[zr.JSONL]:{name:"JSON Lines",extensions:[Qe.lineWrapping],stateExtensions:[Gw]},[zr.NDJSON]:{name:"NDJSON",extensions:[gB(),Qe.lineWrapping],stateExtensions:[Gw]},[zr.JSONSeq]:{name:"JSON Sequence",extensions:[Qe.lineWrapping],stateExtensions:[Gw]},[zr.TextStream]:{name:"SSE",extensions:[Qe.lineWrapping],stateExtensions:[FQe]}},vZ={[zr.Image]:{name:"Image",extensions:[],stateExtensions:[]}},bZ={[zr.HTML]:{name:"HTML",extensions:[zRe()],stateExtensions:[Ek]}},$p={...bf,...vZ,...bZ,...yZ},RA={...bf,...vZ,...bZ},Sc={...bf,...yZ},xZ={[zr.FormData]:{name:"form-data",extensions:void 0},[zr["application/x-www-form-urlencoded"]]:{name:"x-www-form-urlencoded",extensions:void 0}},SZ={[zr.Binary]:{name:"Binary",extensions:void 0}},Lc={...bf,...xZ,...SZ},HQe=Object.keys(bf),Gb=Object.keys(xZ),wZ=Object.keys(SZ);function PZ(t=[],e){const r={};return t.forEach(n=>{const i=String(n[e]);r[i]||(r[i]=[]),r[i].push(n)}),r}const Dg={active:!0,key:"",value:""};function yl(t,e){return[...t.map(n=>({id:crypto.randomUUID(),key:n.name,value:e.initializeWithInputs?`$inputs.${n.name}`:n.example?String(n.example):"",active:e.initializeWithInputs?!0:!!n.example,in:n.in})),yr(e.in)]}function Ng(t,e){const[r]=t.split("?"),n=e.slice(0,-1).filter(i=>i.active).map(i=>`${i.key}=${i.value}`).join("&");return`${r}${n?`?${n}`:""}`}function oo(){return{id:crypto.randomUUID(),...Dg}}function pi(){return{id:crypto.randomUUID(),...Dg,description:""}}function yr(t){return{...Dg,id:crypto.randomUUID(),in:t}}function xa(){return{id:crypto.randomUUID(),...Dg,type:"text",files:null}}function _A(){return{id:crypto.randomUUID(),...Dg,sendIn:Mn.URL}}function Hw(t){return t.map(e=>({id:crypto.randomUUID(),key:"",value:e,active:!0}))}function Lx(t,e){return t.filter(r=>r.active&&r.value).map(({value:r})=>(e?rr(r,e):r).trim())}function $l(t,e){const n=e.filter(i=>!!i).flatMap(i=>i).filter(i=>i.key&&i.active);return["path","header"].includes(t)?Array.from(new Map(n.map(i=>[i.key,i])).values()):n}function JQe(t,e){return t.map(({value:r,...n})=>({...n,value:rr(r,e)}))}function KQe(t,e){if(!t.startsWith("$components.parameters."))return null;const r=t.replace("$components.parameters.","");return r&&e[r]||null}function Er(t=[],e={}){const r=[];for(const n of t)if(bl(n)){const i=KQe(n.reference,e);i&&r.push({...i,active:n.active,value:n.value||i.value})}else r.push(n);return r}function al(t){return Object.entries(t).map(([e,r])=>({id:crypto.randomUUID(),key:"",value:e,active:!0,description:r}))}function e5e(t){return t.replace(/{/g,"{{").replace(/}/g,"}}")}const g3={documentedOAuth2Types:[],grantType:Se.ClientCredentials,authRequestExtraParams:[oo()],tokenRequestExtraParams:[_A()],[Se.ClientCredentials]:{clientId:"",clientSecret:"",clientAssertion:"",tokenUrl:"",scopes:[pi()],accessToken:""},[Se.ClientCredentialsWithJwtAssertion]:{clientId:"",clientSecret:"",clientAssertion:"",tokenUrl:"",scopes:[pi()],accessToken:""},[Se.AuthorizationCode]:{clientId:"",clientSecret:"",tokenUrl:"",authorizationUrl:"",callbackUrl:"",availableScopes:[],scopes:[pi()],codeVerifier:"",codeChallenge:"",accessToken:""},[Se.AuthorizationCodeWithPkce]:{clientId:"",clientSecret:"",tokenUrl:"",authorizationUrl:"",callbackUrl:"",availableScopes:[],scopes:[pi()],codeVerifier:"",codeChallenge:"",accessToken:""},[Se.Implicit]:{clientId:"",authorizationUrl:"",callbackUrl:"",availableScopes:[],scopes:[pi()],accessToken:""},[Se.Password]:{username:"",password:"",clientId:"",clientSecret:"",tokenUrl:"",accessToken:"",scopes:[pi()]}},t5e={securityType:ve.NoAuth,securitySchemeId:null,[ve.BasicAuth]:{username:"",password:""},[ve.JWT]:{token:""},[ve.DigestAuth]:{username:"",password:"",nc:"00000001",realm:"",nonce:"",opaque:"",qop:"",algorithm:"",cnonce:""},[ve.APIKey]:{location:Di.Header,name:"",key:""},[ve.OAuth2]:g3,[ve.OpenIDConnect]:{...g3,openIdConnectUrl:"",userInfoUrl:""}},Ak="urn:ietf:params:oauth:client-assertion-type:jwt-bearer",r5e={[Qn.SIMPLE]:{condition:"",type:Qn.SIMPLE},[Qn.REGEX]:{condition:"",type:Qn.REGEX,context:""},[Qn.JSONPATH]:{condition:"",type:Qn.JSONPATH,context:""},[Qn.XPATH]:{condition:"",type:Qn.XPATH,context:""}};function Hb(){return structuredClone({type:on.Text,content:"",activeExampleName:"",formData:{"multipart/form-data":[xa()],"application/x-www-form-urlencoded":[xa()]},binary:null})}const n5e={method:"GET",url:"",security:[Lo()],body:Hb(),queryParameters:[oo()],headers:[oo()],cookies:[oo()],pathParameters:[oo()]};function CZ(){return structuredClone(n5e)}function Lo(){return ma(t5e)}function i5e(t){return ma({id:crypto.randomUUID(),...r5e[t]})}function $Z(t,e,r){for(const n of r){const i=m3(t,n),o=m3(e,n);if(typeof i=="object"&&typeof o=="object"){if(!$Z(i,o,r))return!1}else if(i!==o)return!1}return!0}function m3(t,e){const r=e.split("/");let n=t;for(const i of r)if(n&&typeof n=="object"&&i in n)n=n[i];else return;return n}function o5e(t,e){return t.length===e.length&&t.sort().join()===e.sort().join()}function s5e(t,e){return t.every(r=>e.includes(r))}function a5e(t){switch(t){case"query":return Di.Query;case"cookie":return Di.Cookie;case"header":return Di.Header;default:return}}function l5e(t,e,r){const{security:n}=e,i=Bxe(t);if(!r)return!1;const o=jA(r),s=o.map(u=>u.securityType),a=n.map(u=>u.securityType);if(!o5e(s,a))return!0;let c=[];return n.forEach(u=>{const d=u.securityType,p=u[ve.OAuth2]?.grantType,h=s.includes(d),m=o.find(v=>v.securityType===d),g=!m||$Z(u,m,u5e(d,p)),O=c5e(u,d,u[ve.OAuth2]?.grantType,i),y=!!(h&&m&&g&&O);c.push(!r.security?.length||y)}),c.includes(!1)}function c5e(t,e,r,n){if(e===ve.OAuth2&&(r===Se.AuthorizationCode||r===Se.AuthorizationCodeWithPkce||r===Se.Implicit)){const i=t[ve.OAuth2][r]?.availableScopes,o=Lx(t[ve.OAuth2][r]?.scopes,n);return s5e(o,i)}return!0}function u5e(t,e){return t===ve.APIKey?[`${ve.APIKey}/name`,`${ve.APIKey}/location`]:t===ve.OAuth2?[`${ve.OAuth2}/grantType`,...d5e(e)]:t===ve.OpenIDConnect?[`${ve.OpenIDConnect}/openIdConnectUrl`]:[]}function d5e(t){return t===Se.ClientCredentials?[`${ve.OAuth2}/${Se.ClientCredentials}/tokenUrl`]:t===Se.Password?[`${ve.OAuth2}/${Se.Password}/tokenUrl`]:t===Se.Implicit?[`${ve.OAuth2}/${Se.Implicit}/authorizationUrl`]:t===Se.AuthorizationCode?[`${ve.OAuth2}/${Se.AuthorizationCode}/tokenUrl`,`${ve.OAuth2}/${Se.AuthorizationCode}/authorizationUrl`]:t===Se.AuthorizationCodeWithPkce?[`${ve.OAuth2}/${Se.AuthorizationCodeWithPkce}/tokenUrl`,`${ve.OAuth2}/${Se.AuthorizationCodeWithPkce}/authorizationUrl`]:[]}function f5e(t){return t.map(e=>{const r=e.map(n=>n.id).join("_");return e.map(n=>({...n,schemeId:r}))})}function p5e(t){const e=t.security||[],r=e.map(n=>{let i="";const o=[];return n.forEach((s,a)=>{i=a===0?`${s.id}`:`${i}_${s.id}`,o.push(QA(s))}),{id:i,security:o}});return e.length?r:[]}function h5e(t,e){const r=t.security||[];return r?.length?AZ(r).map((n,i)=>QA(n)):[]}function jA(t){const r=(t.security||[])[0];return r?r.map(n=>QA(n)):[Lo()]}function QA(t,e){const r={...Lo(),securitySchemeId:t.id},n=Vx(t);r.securityType=n;const i=t.id;if(t.id&&n!==ve.NoAuth&&(r[n].schemeName=t.id),n===ve.BasicAuth&&(r[ve.BasicAuth].username||(r[ve.BasicAuth].username=Pr(i+Q.SecurityVariablesEnvSuffix.Username)),r[ve.BasicAuth].password||(r[ve.BasicAuth].password=Pr(i+Q.SecurityVariablesEnvSuffix.Password))),n===ve.DigestAuth&&(r[ve.DigestAuth].username||(r[ve.DigestAuth].username=Pr(i+Q.SecurityVariablesEnvSuffix.Username)),r[ve.DigestAuth].password||(r[ve.DigestAuth].password=Pr(i+Q.SecurityVariablesEnvSuffix.Password))),n===ve.JWT&&!r[ve.JWT].token&&(r[ve.JWT].token=Pr(i+Q.SecurityVariablesEnvSuffix.JWTToken)),n===ve.APIKey&&!r[ve.APIKey].key){r[ve.APIKey].name=t.name||"",r[ve.APIKey].key=Pr(i+Q.SecurityVariablesEnvSuffix.APIKey);const o=a5e(t.in);o&&(r[ve.APIKey].location=o)}if(n===ve.OAuth2){const o=NA(t),s=Pr(i+Q.SecurityVariablesEnvSuffix.Token),a=r[ve.OAuth2];a.grantType=o[0],o.forEach(l=>{l===Se.AuthorizationCode&&!a[Se.AuthorizationCode].accessToken&&(a[Se.AuthorizationCode].accessToken=s,a[Se.AuthorizationCode].clientId=Pr(i+Q.SecurityVariablesEnvSuffix.ClientId),a[Se.AuthorizationCode].authorizationUrl=t.flows?.authorizationCode?.authorizationUrl||"",a[Se.AuthorizationCode].tokenUrl=t.flows?.authorizationCode?.tokenUrl||"",a[Se.AuthorizationCode].clientSecret=Pr(i+Q.SecurityVariablesEnvSuffix.ClientSecret),a[Se.AuthorizationCode].availableScopes=Object.keys(t.flows?.authorizationCode?.scopes||{})||[],a[Se.AuthorizationCode].scopes=[...al(t.flows?.authorizationCode?.scopes||{})||[],pi()]),l===Se.AuthorizationCodeWithPkce&&!a[Se.AuthorizationCodeWithPkce].accessToken&&(a[Se.AuthorizationCodeWithPkce].accessToken=s,a[Se.AuthorizationCodeWithPkce].clientId=Pr(i+Q.SecurityVariablesEnvSuffix.ClientId),a[Se.AuthorizationCodeWithPkce].authorizationUrl=t.flows?.authorizationCode?.authorizationUrl||"",a[Se.AuthorizationCodeWithPkce].tokenUrl=t.flows?.authorizationCode?.tokenUrl||"",a[Se.AuthorizationCodeWithPkce].clientSecret=Pr(i+Q.SecurityVariablesEnvSuffix.ClientSecret),a[Se.AuthorizationCodeWithPkce].availableScopes=Object.keys(t.flows?.authorizationCode?.scopes||{})||[],a[Se.AuthorizationCodeWithPkce].scopes=[...al(t.flows?.authorizationCode?.scopes||{}),pi()]),l===Se.ClientCredentials&&!a[Se.ClientCredentials].accessToken&&(a[Se.ClientCredentials].accessToken=s,a[Se.ClientCredentials].clientId=Pr(i+Q.SecurityVariablesEnvSuffix.ClientId),a[Se.ClientCredentials].clientSecret=Pr(i+Q.SecurityVariablesEnvSuffix.ClientSecret),a[Se.ClientCredentials].tokenUrl=t.flows?.clientCredentials?.tokenUrl||"",a[Se.ClientCredentials].scopes=[...al(t.flows?.clientCredentials?.scopes||{}),pi()]),l===Se.ClientCredentialsWithJwtAssertion&&!a[Se.ClientCredentialsWithJwtAssertion].accessToken&&(a[Se.ClientCredentialsWithJwtAssertion].accessToken=s,a[Se.ClientCredentialsWithJwtAssertion].clientId=Pr(i+Q.SecurityVariablesEnvSuffix.ClientId),a[Se.ClientCredentialsWithJwtAssertion].clientAssertion=Pr(i+Q.SecurityVariablesEnvSuffix.ClientAssertion),a[Se.ClientCredentialsWithJwtAssertion].scopes=[...al(t.flows?.clientCredentials?.scopes||{}),pi()]),l===Se.Implicit&&!a[Se.Implicit].accessToken&&(a[Se.Implicit].accessToken=s,a[Se.Implicit].clientId=Pr(i+Q.SecurityVariablesEnvSuffix.ClientId),a[Se.Implicit].authorizationUrl=t.flows?.implicit?.authorizationUrl||"",a[Se.Implicit].availableScopes=Object.keys(t.flows?.implicit?.scopes||{})||[],a[Se.Implicit].scopes=[...al(t.flows?.implicit?.scopes||{}),pi()]),l===Se.Password&&!a[Se.Password].accessToken&&(a[Se.Password].accessToken=s,a[Se.Password].clientId=Pr(i+Q.SecurityVariablesEnvSuffix.ClientId),a[Se.Password].clientSecret=Pr(i+Q.SecurityVariablesEnvSuffix.ClientSecret),a[Se.Password].tokenUrl=t.flows?.password?.tokenUrl||"",a[Se.Password].scopes=[...al(t.flows?.password?.scopes||{}),pi()])})}if(n===ve.OpenIDConnect){const o=Pr(i+Q.SecurityVariablesEnvSuffix.Token),s=r[ve.OpenIDConnect];s[Se.AuthorizationCode].accessToken||(s[Se.AuthorizationCode].accessToken=o,s[Se.AuthorizationCode].clientId=Pr(i+Q.SecurityVariablesEnvSuffix.ClientId),s[Se.AuthorizationCode].clientSecret=Pr(i+Q.SecurityVariablesEnvSuffix.ClientSecret),s[Se.AuthorizationCode].tokenUrl=t.flows?.authorizationCode?.tokenUrl||""),s[Se.AuthorizationCodeWithPkce].accessToken||(s[Se.AuthorizationCodeWithPkce].accessToken=o,s[Se.AuthorizationCodeWithPkce].clientId=Pr(i+Q.SecurityVariablesEnvSuffix.ClientId),s[Se.AuthorizationCodeWithPkce].clientSecret=Pr(i+Q.SecurityVariablesEnvSuffix.ClientSecret),s[Se.AuthorizationCodeWithPkce].tokenUrl=t.flows?.authorizationCode?.tokenUrl||""),s[Se.Implicit].accessToken||(s[Se.Implicit].accessToken=o,s[Se.Implicit].clientId=Pr(i+Q.SecurityVariablesEnvSuffix.ClientId))}return r}function kZ(t){try{const e=JSON.parse(t);return JSON.stringify(e,null,2)}catch(e){return console.error({error:e}),t}}function g5e(t,e=!1,r="",n){const i=PZ(t.parameters,"in"),o=TZ(t),s=jA(t),a=yl(i.query||[],{in:"query"});return{id:crypto.randomUUID(),name:t.name,operationId:t.operationId,collectionPath:n,apiPath:{path:t.path,method:t.method},apiId:r,isAdditionalOperation:e,request:{pathParameters:yl(i.path||[],{in:"path"}),method:t.method.toLocaleUpperCase(),url:Ng(e5e(t.path),a),headers:yl(i.header||[],{in:"header"}),queryParameters:a,cookies:yl(i.cookie||[],{in:"cookie"}),body:o,security:s},response:null}}function DA(t){const e=PZ(t.parameters,"in"),r=TZ(t),n=jA(t);return{parameters:{queryParameters:yl(e.query||[],{in:"query"}),headers:yl(e.header||[],{in:"header"}),cookies:yl(e.cookie||[],{in:"cookie"}),pathParameters:yl(e.path||[],{initializeWithInputs:!0,in:"path"})},requestBody:r,security:n}}function m5e(t,e){const r=new Vl({format:!0});if(typeof t=="string")return e?.includes("json")?kZ(t):t;if(typeof t=="object"&&t!==null&&e?.includes("xml")){const i=Array.isArray(t)?t:{root:t};return r.build(i)}return JSON.stringify(t,null,2)}function TZ(t){const e=t.body?.mediaTypes;if(!e||!Object.keys(e).length)return Hb();const r=O5e(e,t),n=r?.name||"",i=!Gb.includes(n)&&!wZ.includes(n),o=Ik(r),a=o.find(({key:c})=>c===t.body?.activeExampleName)?.value??o[0]?.value,l=i&&a?m5e(a,n):"";return{...Hb(),activeExampleName:t.body?.activeExampleName||o[0]?.key||"",...r&&{type:r.name},content:l,formData:{"multipart/form-data":O3(e[zr.FormData]),"application/x-www-form-urlencoded":O3(e[zr["application/x-www-form-urlencoded"]])}}}function EZ(t){return t?{...(Object.keys(t?.body?.mediaTypes||{})||[]).reduce((r,n)=>(r[n]={name:n,extensions:void 0},r),{}),...Lc}:Lc}function O3(t){if(!t)return[xa()];if(!t.parameters)return[xa()];const e=t.parameters.map(r=>({id:crypto.randomUUID(),key:r.name,value:String(r.example)||"",active:!0,type:r.inputType,files:null}));return e.push(xa()),e}function Ik(t){const e=t?.examples;return Object.keys(e||{}).map(r=>{const n=e?.[r];return{name:Q.isString(n?.summary)?n?.summary:n?.summary?.raw||r,key:r,value:e?.[r].value}})}function O5e(t,e){const r=EZ(e),n=Object.keys(t).find(i=>!!r[i]);return n?t[n]:null}function y5e(t){return!t?.security?.length||!t?[]:h5e(t)}function AZ(t){const e=new Set;return t.flat().filter(r=>e.has(r.id)?!1:(e.add(r.id),!0))}function Vx(t){if(t.type==="http"){if(t.scheme==="bearer")return ve.JWT;if(t.scheme==="basic")return ve.BasicAuth;if(t.scheme==="digest")return ve.DigestAuth}else{if(t.type==="apiKey")return ve.APIKey;if(t.type==="oauth2")return ve.OAuth2;if(t.type==="openIdConnect")return ve.OpenIDConnect}return ve.NoAuth}function v5e(t,e){if(t==="clientCredentials"&&e&&"x-assertionType"in e&&e["x-assertionType"]===Ak)return Se.ClientCredentialsWithJwtAssertion;if(t==="authorizationCode"&&e&&"x-usePkce"in e&&e["x-usePkce"])return Se.AuthorizationCodeWithPkce;switch(t){case"implicit":return Se.Implicit;case"password":return Se.Password;case"clientCredentials":return Se.ClientCredentials;case"authorizationCode":return Se.AuthorizationCode;default:return Se.AuthorizationCode}}function b5e(t,e){const r=t?.security;if(!r?.length)return[];const o=f5e(r).flat().filter(s=>s.schemeId===e).find(s=>Vx(s)===ve.OAuth2);return NA(o)}function NA(t){return Object.entries(t?.flows||{}).map(([e,r])=>v5e(e,r)).filter(Boolean)}async function Mg(t){try{const e=await eU(t),r=await jE(t);return{absolutePath:t,file:new File([e],r)}}catch(e){return console.error("Failed to init replay file",e),null}}async function IZ(t){return(await Promise.allSettled(t.map(r=>Mg(r)))).map(r=>r.status==="fulfilled"?r.value:null).filter(r=>r!==null)}function Zy(t){return/(?:^[a-z][a-z0-9+.-]*:|\/\/)/i.test(t)}function Rk(t){return t.endsWith("/")?t.substring(0,t.length-1):t}function x5e(t){try{const e=new URL(t);return e.search="",e.hash="",e.toString()}catch{return t}}function Xx(t){return/^https?:\/\//i.test(t)}function S5e(t,e){let r;if(e.startsWith("//")){const{protocol:n}=new URL(t);r=`${n||"https:"}${e}`}else if(Zy(e))r=e;else if(!e.startsWith("/"))r=Rk(t)+"/"+e;else{const n=new URL(t);n.pathname=e,r=n.toString()}return Rk(r)}function y3(t,e){let r=t;return e.forEach(({key:n,value:i,active:o})=>{i&&o&&(r=r.replaceAll(`{${n}}`,i))}),r}function RZ(t,e){let r=t;return e.forEach(({name:n,value:i})=>{i&&(r=r.replaceAll(`{${n}}`,i))}),r}function w5e(t){return t.startsWith("http://")||t.startsWith("https://")}function YO({url:t,serverUrl:e,corsProxyUrl:r}){let n;if(w5e(t)||!e)n=t;else{const i=new URL(e);i.pathname=t,i.search="",i.hash="",n=i.toString()}return r?`${r}${n}`:n}async function P5e(t,e,r,n,i,o){const s=await Promise.all(t.sourceDescriptions?.map(async l=>({...l,apiId:await _Z({projectPath:n,apiUrl:l.url,collectionId:e})}))),a={inputs:t.components?.inputs||{},parameters:Object.fromEntries(Object.entries(t.components?.parameters||{}).map(([l,c])=>[l,{...c,key:c.name,value:c.value,id:crypto.randomUUID(),active:!0}]))};return{...t,id:e,srcType:r,state:Mt.Normal,sourceDescriptions:s,components:a,workflows:await Promise.all(t.workflows.map(async l=>({...l,state:Mt.Normal,parameters:k3(l.parameters,l["x-replay-disabled-parameters"],t.components?.parameters),outputs:C3(l.outputs),security:S3(l["x-security"]),steps:await Promise.all(l.steps.map(async c=>{const u=k3(c.parameters,c["x-replay-disabled-parameters"],t.components?.parameters),d=c["x-operation"]??null;d&&(d.url=Ng(d.url,u.queryParameters.filter(Pz)));const p=C5e(c,s,i);let h;if(p&&o){const g=i?.find(O=>O.id===p.apiId);try{h=o(p.path,p.method,g)}catch(O){console.error("Failed to convert operation to replay value",O),h=void 0}}delete c.operationId,delete c["x-operation"];const m=await I5e(c.requestBody,n);return{...c,state:Mt.Normal,parameters:u,outputs:C3(c.outputs),successCriteria:c.successCriteria?.map(g=>({...g,type:g.type??Qn.SIMPLE}))||[],requestBody:m,xOperation:d,security:S3(c["x-security"],h),operation:p}}))})))}}async function _Z({projectPath:t,apiUrl:e,collectionId:r}){if(Xx(e))return e;if(await or.isAbsolute(e))return await or.relative(t,e);const n=await or.resolve(await or.join(t,r,"..",e));return await or.relative(t,n)}function C5e(t,e,r){if(t["x-operation"])return null;const{path:n,method:i,apiId:o,isAdditionalOperation:s}=jZ({operationPath:t.operationPath,parsedSourceDescriptions:e}),{operationId:a,apiId:l}=$5e({operationId:t.operationId,parsedSourceDescriptions:e}),c=l||o||e[0]?.apiId||"",u=r?.find(d=>d.id===c);if(a&&u&&!n&&!i){const d=_5e(a,u);return{apiId:c,path:d?.path??"",method:d?.method??"",operationId:a,isAdditionalOperation:d?.isAdditionalOperation??!1}}return{apiId:c,path:n??"",method:i??"",operationId:a,isAdditionalOperation:s}}function $5e({operationId:t,parsedSourceDescriptions:e}){if(!t)return{operationId:"",apiId:null};const r=t.split(".");if(r.length===1)return{operationId:t,apiId:e[0]?.apiId??""};const[,n,i=""]=r,o=e.find(({name:s})=>s===n);return{operationId:i,apiId:o?.apiId??""}}function v3(t){return"reference"in t&&typeof t.reference=="string"}function jZ({operationPath:t,parsedSourceDescriptions:e}){if(!t)return{apiId:null,path:"",method:"",isAdditionalOperation:!1};try{const r=t.split("#"),n=r.length>1?r[1]:r[0],i=r.length>1?r[0]:"";if(!n)return{path:"",method:"",apiId:null,isAdditionalOperation:!1};let o=null,s=null;const a=/\$sourceDescriptions\.(.+)\.url/,l=i.match(a);if(l&&(o=l[1]),o){const h=e.find(({name:m})=>m===o);h&&(s=h.apiId)}const c=n.split("/"),u=c.pop()||"",d=c[c.length-1]==="additionalOperations";return d&&c.pop(),{path:Gv.unescape(c.pop()||""),method:u.toLowerCase(),apiId:s,isAdditionalOperation:d}}catch{return{path:"",method:"",apiId:null,isAdditionalOperation:!1}}}function k5e(t){switch(t.type){case"apiKey":return ve.APIKey;case"oauth2":return ve.OAuth2;case"openIdConnect":return ve.OpenIDConnect;case"http":return t.scheme==="basic"?ve.BasicAuth:t.scheme==="digest"?ve.DigestAuth:t.scheme==="bearer"?ve.JWT:ve.NoAuth;default:return ve.NoAuth}}function QZ(t,e){const r={clientCredentials:Se.ClientCredentials,authorizationCode:Se.AuthorizationCode,implicit:Se.Implicit,password:Se.Password,clientCredentialsWithJwtAssertion:Se.ClientCredentialsWithJwtAssertion,authorizationCodeWithPkce:Se.AuthorizationCodeWithPkce};return t==="clientCredentials"&&e["x-assertionType"]==="urn:ietf:params:oauth:client-assertion-type:jwt-bearer"?Se.ClientCredentialsWithJwtAssertion:t==="authorizationCode"&&e["x-usePkce"]?Se.AuthorizationCodeWithPkce:r[t]??null}function T5e(t){return{query:Di.Query,header:Di.Header,cookie:Di.Cookie}[t.toLowerCase()]||Di.Header}function E5e(t){return{body:Mn.Body,header:Mn.Header,url:Mn.URL}[t.toLowerCase()]||Mn.URL}function b3(t,e,r){return Object.keys(t).reduce((n,i)=>{const o=QZ(i,t[i]);if(!o)return n;switch(o){case Se.ClientCredentials:n[o]={...r[o],clientId:e.clientId??"",clientSecret:e.clientSecret??"",clientAssertion:e.clientAssertion??"",tokenUrl:t[i].tokenUrl??"",scopes:sc(t[i].scopes,t[i]["x-replay-disabled-scopes"]),accessToken:e.accessToken??""};break;case Se.AuthorizationCode:n[o]={...r[o],clientId:e.clientId??"",clientSecret:e.clientSecret??"",tokenUrl:t[i].tokenUrl??"",authorizationUrl:t[i].authorizationUrl??"",callbackUrl:e.callbackUrl??"",availableScopes:t[i].availableScopes??[],scopes:sc(t[i].scopes,t[i]["x-replay-disabled-scopes"]),accessToken:e.accessToken??""};break;case Se.Implicit:n[o]={...r[o],clientId:e.clientId??"",authorizationUrl:t[i].authorizationUrl??"",callbackUrl:e.callbackUrl??"",availableScopes:sc(t[i].availableScopes),scopes:sc(t[i].scopes,t[i]["x-replay-disabled-scopes"]),accessToken:e.accessToken??""};break;case Se.Password:n[o]={...r[o],tokenUrl:t[i].tokenUrl??"",username:e.username??"",password:e.password??"",clientId:e.clientId??"",clientSecret:e.clientSecret??"",accessToken:e.accessToken??""};break;case Se.ClientCredentialsWithJwtAssertion:n[o]={...r[o],clientAssertion:e.clientAssertion??"",tokenUrl:t[i].tokenUrl??"",scopes:sc(t[i].scopes,t[i]["x-replay-disabled-scopes"]),clientId:e.clientId??"",clientSecret:e.clientSecret??"",accessToken:e.accessToken??""};break;case Se.AuthorizationCodeWithPkce:n[o]={...r[o],tokenUrl:t[i].tokenUrl??"",authorizationUrl:t[i].authorizationUrl??"",callbackUrl:e.callbackUrl??"",availableScopes:sc(t[i].availableScopes),scopes:sc(t[i].scopes,t[i]["x-replay-disabled-scopes"]),codeVerifier:e.codeVerifier??"",codeChallenge:e.codeChallenge??"",clientId:e.clientId??"",clientSecret:e.clientSecret??"",accessToken:e.accessToken??""};break}return n},r)}function x3(t,e,r){const i={...Lo(),securityType:t},o=Object.keys(e.flows||{})[0],s=QZ(o,e.flows?.[o])??Se.ClientCredentials;switch(t){case ve.BasicAuth:return{...i,[ve.BasicAuth]:{username:r.username,password:r.password,schemeName:e.id}};case ve.JWT:return{...i,[ve.JWT]:{token:r.token,schemeName:e.id}};case ve.DigestAuth:return{...i,[ve.DigestAuth]:{...i[ve.DigestAuth],username:r.username,password:r.password,schemeName:e.id}};case ve.APIKey:return{...i,[ve.APIKey]:{location:T5e(e.in),name:e.name,key:r.apiKey,schemeName:e.id}};case ve.OAuth2:return{...i,[ve.OAuth2]:{...i[ve.OAuth2],...b3(e.flows||{},r||{},i[ve.OAuth2]),authRequestExtraParams:w3(r.authRequestExtraParams),tokenRequestExtraParams:P3(r.tokenRequestExtraParams),grantType:s,schemeName:e.id}};case ve.OpenIDConnect:return{...i,[ve.OpenIDConnect]:{...i[ve.OpenIDConnect],...b3(r.flows||{},r||{},i[ve.OpenIDConnect]),openIdConnectUrl:r.openIdConnectUrl,userInfoUrl:r.userInfoUrl,authRequestExtraParams:w3(r.authRequestExtraParams),tokenRequestExtraParams:P3(r.tokenRequestExtraParams),grantType:s,schemeName:e.id}};default:return i}}function A5e(t,e){return[...t.map(n=>{if("scheme"in n){const o=k5e(n.scheme);return x3(o,n.scheme,n.values)}const i=e.find(o=>o.id===n.schemeName);if(i){const o=Vx(i),s=x3(o,i,n.values);return s.securitySchemeId=i.id,s}return Lo()})]}function S3(t=[],e){const r=AZ(e?.security||[]);return t.length?A5e(t,r):[Lo()]}function sc(t,e){const r=al(t||{}),n=al(e||{});return[...r,...n,pi()]}function w3(t){return(t||[]).map(e=>({id:crypto.randomUUID(),key:e.key??"",value:e.value??"",active:e.active??!0})).concat(oo())}function P3(t){return(t||[]).map(e=>({id:crypto.randomUUID(),key:e.key??"",value:e.value??"",active:e.active??!0,sendIn:E5e(e.in)})).concat(_A())}function C3(t){if(!t)return[oo()];const e=[];for(const r in t)e.push({id:crypto.randomUUID(),key:r,value:t[r],active:!0});return e.push(oo()),e}const Iu={query:"queryParameters",path:"pathParameters",header:"headers",cookie:"cookies"};function $3(t,e){const r="$components.parameters.";if(t.reference.startsWith(r)){const n=t.reference.replace(r,"");return e?.[n]}}function k3(t,e,r){if(!t&&!e)return{pathParameters:[yr("path")],queryParameters:[yr("query")],headers:[yr("header")],cookies:[yr("cookie")]};const n={pathParameters:[],queryParameters:[],headers:[],cookies:[]};if(t)for(const i of t)if(v3(i)){const o=$3(i,r),s=Iu[o?.in];s&&n[s].push({reference:i.reference,active:!0,value:i.value})}else Iu[i.in]&&n[Iu[i.in]].push({id:crypto.randomUUID(),key:i.name,value:i.value,active:!0,in:i.in});if(e)for(const i of e)if(v3(i)){const o=$3(i,r),s=Iu[o?.in];s&&n[s].push({reference:i.reference,active:!1,value:i.value})}else Iu[i.in]&&n[Iu[i.in]].push({id:crypto.randomUUID(),key:i.name,value:i.value,active:!1,in:i.in});return n.pathParameters.push(yr("path")),n.queryParameters.push(yr("query")),n.headers.push(yr("header")),n.cookies.push(yr("cookie")),n}async function I5e(t,e){const r=CZ().body;if(!t)return r;switch(t.contentType){case"application/x-www-form-urlencoded":case"multipart/form-data":return{...r,type:t.contentType,formData:await R5e(t,e)};case"application/octet-stream":const n=t.payload?await DZ(t.payload,e):[],i=n.length>0?await Mg(n[0]):null;return{...r,type:t.contentType,binary:i};case"application/json":case"application/ld+json":return{...r,type:t.contentType,content:E3(t.payload)};default:{const o=typeof t.payload=="string",s=t.contentType||(o?"text/plain":"application/json");return{...r,type:s,content:o?t.payload:E3(t.payload)}}}}async function T3(t,e,r,n){const i=await DZ(e,n),o=i.length>0||Array.isArray(e),s=o?await IZ(i):void 0;return{id:crypto.randomUUID(),key:t,value:o?"":e,type:o?"file":"text",active:r,files:s}}async function R5e(t,e){const r=CZ().body.formData,n=t.contentType,i=t.payload?await Promise.all(Object.entries(t.payload).map(([a,l])=>T3(a,l,!0,e))):[],o=t["x-replay-disabled-payload"]?await Promise.all(Object.entries(t["x-replay-disabled-payload"]||{}).map(([a,l])=>T3(a,l,!1,e))):[];return{...r,[n]:[...i,...o,xa()]}}function E3(t){return t?JSON.stringify(t,null,2):""}function _5e(t,e){for(const r of Object.keys(e.paths)){const n=e.paths[r];for(const i of Object.keys(n)){const o=i.toLowerCase();if(["get","put","post","delete","options","head","patch","trace"].includes(o)&&n[o]?.operationId===t)return{method:o,path:r,isAdditionalOperation:!1}}if(n.additionalOperations){for(const[i,o]of Object.entries(n.additionalOperations))if(o?.operationId===t)return{method:i.toLowerCase(),path:r,isAdditionalOperation:!0}}}return null}async function DZ(t,e){return Array.isArray(t)?(await Promise.all(t.map(r=>A3(r,e)))).flat():typeof t=="string"?await A3(t,e):[]}async function A3(t,e){const r=/\$file\(['"](.+?)['"]\)/g,n=Array.from(t.matchAll(r));return Promise.all(n.map(i=>j5e(i[1],e)))}async function j5e(t,e){return await or.isAbsolute(t)?t:await or.resolve(await or.join(e,t))}const ei=t=>!t||typeof t=="boolean"?{type:"object",properties:{}}:t.type?t:{...t,type:"object"},I3=(t,e,r)=>{if(!t.properties)return t;const n=t.properties[e],i=ei(n);return{...t,properties:{...t.properties,[e]:{...i,...r}}}},Q5e=(t,e,r)=>{if(!t.properties||e===r||!r.trim())return null;const n={...t.properties};return n[r]?null:(n[r]=n[e],delete n[e],{...t,properties:n})},D5e=(t,e)=>{if(!t.properties)return t;const r={...t.properties};return delete r[e],{...t,properties:r}},N5e=(t,e,r={type:"string"})=>{const n=t.properties||{};return{...t,type:"object",properties:{...n,[e]:r}}};function R3(t){const e=Object.assign({},...(t||[]).filter(({key:r,active:n})=>r&&n).map(r=>({[r.key]:r.value})));if(Object.keys(e).length!==0)return e}function _3(t){if(!t)return{};const e={queryParameters:"query",headers:"header",cookies:"cookie",pathParameters:"path"},r=[],n=[];return Object.keys(e).forEach(i=>{const o=i;t[o].forEach(s=>{if(bl(s)){const a={reference:s.reference,value:s.value||void 0};s.active?r.push(a):n.push(a)}else{if(!s.key)return;const a={name:s.key,in:e[o],value:s.value};s.active?r.push(a):n.push(a)}})}),{parameters:r.length>0?r:void 0,"x-replay-disabled-parameters":n.length>0?n:void 0}}function M5e(t){const e=t?.map(r=>({condition:r.condition,context:r.context,type:r.type==Qn.SIMPLE?void 0:r.type}));if(e?.length!==0)return e}function q5e(t){if(!(!t||t.length===0))return[...t]}async function NZ(t,e){return t.absolutePath?`$file('${await or.relative(e,t.absolutePath)}')`:null}async function z5e(t,e){const{type:r,value:n,files:i}=t;switch(r){case"text":return n;case"file":let o=[];return i&&(o=(await Promise.all(Object.values(i).map(s=>NZ(s,e)))).filter(s=>s!==null)),o.length===0?"":o.length===1?o[0]:o}}async function L5e(t,e){const r=t.type,n=t.formData[r],i={},o={};return await Promise.all(n.map(async s=>{const{key:a,active:l}=s;if(!a)return;const c=await z5e(s,e);l?i[a]=c:o[a]=c})),{payload:Object.keys(i).length>0?i:void 0,"x-replay-disabled-payload":Object.keys(o).length>0?o:void 0}}function V5e(t){if(!t)return t;try{const e=JSON.parse(t);return typeof e=="object"?e:t}catch{return t}}async function X5e(t,e){if(t)switch(t.type){case"application/x-www-form-urlencoded":case"multipart/form-data":return{contentType:t.type,...await L5e(t,e)};case"application/octet-stream":return{contentType:t.type,payload:t.binary?await NZ(t.binary,e):null};case"application/json":case"application/ld+json":return t.content?{contentType:t.type,payload:V5e(t.content)}:void 0;default:return t.content?{contentType:t.type,payload:t.content}:void 0}}function W5e(t){return{...t.schemeName?{schemeName:t.schemeName}:{scheme:{type:"http",scheme:"basic"}},values:{username:t.username,password:t.password}}}function U5e(t){return{...t.schemeName?{schemeName:t.schemeName}:{scheme:{type:"apiKey",name:t.name,in:t.location.toLowerCase()}},values:{apiKey:t.key}}}function B5e(t){return{...t.schemeName?{schemeName:t.schemeName}:{scheme:{type:"http",scheme:"bearer"}},values:{token:t.token}}}function F5e(t){return{...t.schemeName?{schemeName:t.schemeName}:{scheme:{type:"http",scheme:"digest"}},values:{username:t.username,password:t.password}}}function Z5e(t){const{flows:e,values:r}=zZ(t);return{...t.schemeName?{schemeName:t.schemeName}:{scheme:{type:"openIdConnect",flows:e}},values:{...r,openIdConnectUrl:t.openIdConnectUrl,userInfoUrl:t.userInfoUrl,authRequestExtraParams:MZ(t.authRequestExtraParams),tokenRequestExtraParams:qZ(t.tokenRequestExtraParams)}}}function Y5e(t){const{flows:e,values:r}=zZ(t);return{...t.schemeName?{schemeName:t.schemeName}:{scheme:{type:"oauth2",flows:e}},values:{...r,authRequestExtraParams:MZ(t.authRequestExtraParams),tokenRequestExtraParams:qZ(t.tokenRequestExtraParams)}}}function Ru(t){const e={},r={};return t.forEach(n=>{n.value&&(n.active?e[n.value]=n.description:r[n.value]=n.description)}),{scopes:e,"x-replay-disabled-scopes":Object.keys(r).length>0?r:void 0}}function MZ(t){return t.filter(e=>e.value||e.key).map(e=>({key:e.key,value:e.value,active:e.active}))}function qZ(t){return t.filter(e=>e.value||e.key).map(e=>({key:e.key,value:e.value,active:e.active,in:e.sendIn.toLowerCase()}))}function zZ(t){let e;switch(t.grantType){case Se.ClientCredentials:return e=t[Se.ClientCredentials],{flows:{clientCredentials:{tokenUrl:e.tokenUrl,...Ru(e.scopes)}},values:{clientId:e.clientId,clientSecret:e.clientSecret,accessToken:e.accessToken}};case Se.Implicit:return e=t[Se.Implicit],{flows:{implicit:{authorizationUrl:e.authorizationUrl,...Ru(e.scopes)}},values:{clientId:e.clientId,accessToken:e.accessToken,callbackUrl:e.callbackUrl}};case Se.Password:return e=t[Se.Password],{flows:{password:{tokenUrl:e.tokenUrl,...Ru(e.scopes)}},values:{clientId:e.clientId,clientSecret:e.clientSecret,username:e.username,password:e.password,accessToken:e.accessToken}};case Se.AuthorizationCode:return e=t[Se.AuthorizationCode],{flows:{authorizationCode:{tokenUrl:e.tokenUrl,authorizationUrl:e.authorizationUrl,...Ru(e.scopes)}},values:{accessToken:e.accessToken,clientId:e.clientId,callbackUrl:e.callbackUrl}};case Se.ClientCredentialsWithJwtAssertion:return e=t[Se.ClientCredentialsWithJwtAssertion],{flows:{clientCredentials:{tokenUrl:e.tokenUrl,...Ru(e.scopes),"x-assertionType":"urn:ietf:params:oauth:client-assertion-type:jwt-bearer"}},values:{clientId:e.clientId,clientAssertion:e.clientAssertion,accessToken:e.accessToken}};case Se.AuthorizationCodeWithPkce:return e=t[Se.AuthorizationCodeWithPkce],{flows:{authorizationCode:{tokenUrl:e.tokenUrl,authorizationUrl:e.authorizationUrl,...Ru(e.scopes),"x-usePkce":!0}},values:{clientId:e.clientId,clientSecret:e.clientSecret,accessToken:e.accessToken,codeVerifier:e.codeVerifier,codeChallenge:e.codeChallenge,callbackUrl:e.callbackUrl}}}}function j3(t){const e=t.map(r=>{switch(r.securityType){case ve.OpenIDConnect:{const i=r[ve.OpenIDConnect];return Z5e(i)}case ve.OAuth2:{const i=r[ve.OAuth2];return Y5e(i)}case ve.APIKey:{const i=r[ve.APIKey];return U5e(i)}case ve.BasicAuth:{const i=r[ve.BasicAuth];return W5e(i)}case ve.DigestAuth:{const i=r[ve.DigestAuth];return F5e(i)}case ve.JWT:{const i=r[ve.JWT];return B5e(i)}default:return null}}).filter(r=>r!==null);return{"x-security":e.length?e:void 0}}function G5e(t){const{inputs:e,parameters:r,...n}=t;let i=n;return Object.keys(e).length&&(i.inputs=e),Object.keys(r).length&&(i.parameters=Object.fromEntries(Object.entries(r).map(([o,{id:s,active:a,key:l,...c}])=>[o,{...c,name:l}]))),Object.keys(i).length||(i=void 0),i}async function H5e(t,e){const{id:r,state:n,srcType:i,sourceDescriptions:o,workflows:s,components:a,...l}=t;return{arazzoObject:{...l,sourceDescriptions:o.map(c=>({...c,name:c.name,url:c.url,type:c.type||"openapi",apiId:void 0})),components:G5e(a),workflows:await Promise.all(s.map(async({parameters:c,security:u,dependsOn:d,outputs:p,state:h,steps:m,inputs:g,...O})=>({...O,dependsOn:q5e(d),outputs:R3(p),inputs:g?ei(g):void 0,...j3(u),..._3(c),steps:await Promise.all(m.map(async({parameters:y,security:v,operation:b,requestBody:w,successCriteria:S,outputs:P,state:C,xOperation:E,...R})=>{const D={operationId:void 0,operationPath:void 0,"x-operation":void 0};if(b){const _=t.sourceDescriptions.find(({apiId:L})=>L===b.apiId)||t.sourceDescriptions[0];if(b.operationId){const L=t.sourceDescriptions.length<=1;D.operationId=L?b.operationId:`$sourceDescriptions.${_.name}.${b.operationId}`}else D.operationPath=b.isAdditionalOperation?`{$sourceDescriptions.${_.name}.url}#/paths/${Gv.escape(b.path)}/additionalOperations/${b.method}`:`{$sourceDescriptions.${_.name}.url}#/paths/${Gv.escape(b.path)}/${b.method}`}else E&&(D["x-operation"]={...E,url:E.url.split("?")[0]});return{...R,...D,...j3(v),..._3(y),requestBody:await X5e(w,e),successCriteria:M5e(S),outputs:R3(P)}}))})))}}}class J5e extends cU{constructor(e,r){super(e),this.convertOperationToReplayValue=r}parse(e,r){return P5e(e.content,e.uri,e.type,this.storage.baseDir,r,this.convertOperationToReplayValue)}async stringify(e){const{arazzoObject:r}=await H5e(e,this.storage.baseDir);return await or.extname(e.id)===".json"?JSON.stringify(r,null,2):Pa.dump(r)}}class K5e{constructor(e,r){this.storage=e,this.localStorageSecretsProvider=r}default=[];async read(){const e=await this.storage.get("replay-environments.yaml"),r=await this.localStorageSecretsProvider.get();let n=null,i=null;if(!e)return this.default;try{n=Pa.load(e),i=r?JSON.parse(r):null}catch(a){return console.error("Failed to parse environments file",a),this.default}return n?Object.keys(n).filter(a=>a!=="version").map(a=>({name:a,inputs:Object.entries(n[a].inputs).map(([l,c])=>{if(typeof c=="string")return{name:l,value:c,isSecret:!1};const u=i?.[a]?.[l]??"";return{name:l,value:u,isSecret:!0}}),servers:Object.entries(n[a].servers).map(([l,c])=>({apiId:l,value:c.value,variables:Object.entries(c.variables||{}).map(([u,d])=>({name:u,value:d}))})),state:Mt.Normal})):this.default}async write(e){const r=await this.localStorageSecretsProvider.get(),n=r?JSON.parse(r):{},i=e.reduce((o,s)=>(s.name&&(o[s.name]={inputs:s.inputs.reduce((a,l)=>(l.isSecret&&n?(n[s.name]||(n[s.name]={}),n[s.name][l.name]=l.value,a[l.name]={provider:"local"}):a[l.name]=l.value,a),{}),servers:s.servers.reduce((a,l)=>(a[l.apiId]={value:l.value,variables:Object.fromEntries(l.variables.map(c=>[c.name,c.value]))},a),{})}),o),{});this.localStorageSecretsProvider.set(JSON.stringify(n)),i&&this.storage.set("replay-environments.yaml",Pa.dump(i))}}class eDe{constructor(e,r,n){this.storage=e,this.filePath=r,this.defaultValue=n}async parse(e){return JSON.parse(e)}stringify(e){return JSON.stringify(e)}async read(){const e=await this.storage.get(this.filePath);return e?await this.parse(e):this.defaultValue}async write(e){return this.storage.set(this.filePath,this.stringify(e))}}const tDe=(t,e)=>({data:t,version:e});class MA extends eDe{constructor(e,r,n,i){super(e,r,n),this.version=i}migrationMap={};migrate(e){if(!this.migrationMap[e.version])return this.defaultValue;const r=this.migrationMap[e.version](e);return r.version===this.version?r:this.migrate(r)}async parse(e){const r=JSON.parse(e);if(r.version!==this.version){const n=this.migrate(r);return await this.write(n.data),n.data}return r.data}stringify(e){return JSON.stringify(tDe(e,this.version))}}function rDe(t){return{data:{...t.data,tabs:t.data.tabs.map(e=>e.data.type===Ge.Step?{...e,data:{...e.data,draftStep:{...e.data.step,security:e.data.step.security.securities},step:void 0,hasUnsavedChanges:void 0,showUnsavedChangesModal:void 0}}:e)},version:2}}const Q3=2,nDe="tabs.json";class iDe extends MA{migrationMap={1:rDe};constructor(e){super(e,nDe,ma(K6),Q3)}async parse(e){let r=JSON.parse(e);r.version!==Q3&&(r=this.migrate(r));const n=await Promise.all(r.data.tabs.map(async i=>{if(i.data.type===Ge.Step&&i.data.draftStep){const o=i.data.draftStep.requestBody.formData;o["multipart/form-data"]=await D3(o["multipart/form-data"]),o["application/x-www-form-urlencoded"]=await D3(o["application/x-www-form-urlencoded"]),i.data.draftStep.requestBody.binary&&i.data.draftStep.requestBody.binary.absolutePath&&(i.data.draftStep.requestBody.binary=await Mg(i.data.draftStep.requestBody.binary.absolutePath))}return i}));return{...r.data,tabs:n}}stringify(e){return super.stringify({...e,tabs:e.tabs.map(r=>r.data.type===Ge.Step?{...r,data:{...r.data,response:null}}:r.data.type===Ge.WorkflowRun?{...r,data:{...r.data,result:null}}:r)})}}async function D3(t){return Promise.all(t.map(async e=>{const r={...e};if(e.files){const n=e.files.map(i=>i.absolutePath).filter(i=>i!==null);r.files=await IZ(n)}return r}))}function oDe(t){return{data:t.data.map(e=>({...e,step:{...e.step,security:e.step.security.securities}})),version:2}}const sDe=2,aDe="history.json";class lDe extends MA{migrationMap={1:oDe};constructor(e){super(e,aDe,[],sDe)}}const cDe=1;class LZ{constructor(e,r,n,i,o,s){this.systemFilesStorage=e,this.userFilesStorage=r,this.project=n,this.isApiPersisted=i,this.convertOperationToReplayValue=o,this.telemetry=s,this.localStorageSecretsProvider=new mCe(this.project.id);const a=new gCe;this.historyStorage=new lDe(this.systemFilesStorage),this.activeEnvironmentIdStorage=new MA(this.systemFilesStorage,"active_environment_id.json",Cg,cDe),this.tabsStateStorage=new iDe(this.systemFilesStorage),this.environmentsStorage=new K5e(this.userFilesStorage,this.localStorageSecretsProvider),this.collectionsStorage=new J5e(this.userFilesStorage,this.convertOperationToReplayValue),this.apisStorage=new OCe(this.isApiPersisted?this.userFilesStorage:a)}historyStorage;activeEnvironmentIdStorage;tabsStateStorage;environmentsStorage;collectionsStorage;apisStorage;localStorageSecretsProvider;async update(e,r){switch(e.path[0]){case"history":this.historyStorage.write(r.history.get());break;case"activeEnvironmentId":this.activeEnvironmentIdStorage.write(r.activeEnvironmentId.get());break;case"tabsState":this.tabsStateStorage.write(r.tabsState.get());break;case"environments":this.environmentsStorage.write(r.environments.get());break;case"apis":this.isApiPersisted&&await this.apisStorage.update(e,r.apis.get());break;case"collections":await this.collectionsStorage.update(e,r.collections.get());break}}}var Jw={exports:{}},N3;function uDe(){return N3||(N3=1,(function(t){var e=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(l,c,u){this.fn=l,this.context=c,this.once=u||!1}function o(l,c,u,d,p){if(typeof u!="function")throw new TypeError("The listener must be a function");var h=new i(u,d||l,p),m=r?r+c:c;return l._events[m]?l._events[m].fn?l._events[m]=[l._events[m],h]:l._events[m].push(h):(l._events[m]=h,l._eventsCount++),l}function s(l,c){--l._eventsCount===0?l._events=new n:delete l._events[c]}function a(){this._events=new n,this._eventsCount=0}a.prototype.eventNames=function(){var c=[],u,d;if(this._eventsCount===0)return c;for(d in u=this._events)e.call(u,d)&&c.push(r?d.slice(1):d);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(u)):c},a.prototype.listeners=function(c){var u=r?r+c:c,d=this._events[u];if(!d)return[];if(d.fn)return[d.fn];for(var p=0,h=d.length,m=new Array(h);p<h;p++)m[p]=d[p].fn;return m},a.prototype.listenerCount=function(c){var u=r?r+c:c,d=this._events[u];return d?d.fn?1:d.length:0},a.prototype.emit=function(c,u,d,p,h,m){var g=r?r+c:c;if(!this._events[g])return!1;var O=this._events[g],y=arguments.length,v,b;if(O.fn){switch(O.once&&this.removeListener(c,O.fn,void 0,!0),y){case 1:return O.fn.call(O.context),!0;case 2:return O.fn.call(O.context,u),!0;case 3:return O.fn.call(O.context,u,d),!0;case 4:return O.fn.call(O.context,u,d,p),!0;case 5:return O.fn.call(O.context,u,d,p,h),!0;case 6:return O.fn.call(O.context,u,d,p,h,m),!0}for(b=1,v=new Array(y-1);b<y;b++)v[b-1]=arguments[b];O.fn.apply(O.context,v)}else{var w=O.length,S;for(b=0;b<w;b++)switch(O[b].once&&this.removeListener(c,O[b].fn,void 0,!0),y){case 1:O[b].fn.call(O[b].context);break;case 2:O[b].fn.call(O[b].context,u);break;case 3:O[b].fn.call(O[b].context,u,d);break;case 4:O[b].fn.call(O[b].context,u,d,p);break;default:if(!v)for(S=1,v=new Array(y-1);S<y;S++)v[S-1]=arguments[S];O[b].fn.apply(O[b].context,v)}}return!0},a.prototype.on=function(c,u,d){return o(this,c,u,d,!1)},a.prototype.once=function(c,u,d){return o(this,c,u,d,!0)},a.prototype.removeListener=function(c,u,d,p){var h=r?r+c:c;if(!this._events[h])return this;if(!u)return s(this,h),this;var m=this._events[h];if(m.fn)m.fn===u&&(!p||m.once)&&(!d||m.context===d)&&s(this,h);else{for(var g=0,O=[],y=m.length;g<y;g++)(m[g].fn!==u||p&&!m[g].once||d&&m[g].context!==d)&&O.push(m[g]);O.length?this._events[h]=O.length===1?O[0]:O:s(this,h)}return this},a.prototype.removeAllListeners=function(c){var u;return c?(u=r?r+c:c,this._events[u]&&s(this,u)):(this._events=new n,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=r,a.EventEmitter=a,t.exports=a})(Jw)),Jw.exports}var dDe=uDe();const fDe=ti(dDe);class VZ extends Error{constructor(e){super(e),this.name="TimeoutError"}}let pDe=class extends Error{constructor(e){super(),this.name="AbortError",this.message=e}};const M3=t=>globalThis.DOMException===void 0?new pDe(t):new DOMException(t),q3=t=>{const e=t.reason===void 0?M3("This operation was aborted."):t.reason;return e instanceof Error?e:M3(e)};function hDe(t,e,r,n){let i;const o=new Promise((s,a)=>{if(typeof e!="number"||Math.sign(e)!==1)throw new TypeError(`Expected \`milliseconds\` to be a positive number, got \`${e}\``);if(e===Number.POSITIVE_INFINITY){s(t);return}if(n={customTimers:{setTimeout,clearTimeout},...n},n.signal){const{signal:l}=n;l.aborted&&a(q3(l)),l.addEventListener("abort",()=>{a(q3(l))})}i=n.customTimers.setTimeout.call(void 0,()=>{const l=`Promise timed out after ${e} milliseconds`,c=r instanceof Error?r:new VZ(l);typeof t.cancel=="function"&&t.cancel(),a(c)},e),(async()=>{try{s(await t)}catch(l){a(l)}finally{n.customTimers.clearTimeout.call(void 0,i)}})()});return o.clear=()=>{clearTimeout(i),i=void 0},o}function gDe(t,e,r){let n=0,i=t.length;for(;i>0;){const o=Math.trunc(i/2);let s=n+o;r(t[s],e)<=0?(n=++s,i-=o+1):i=o}return n}var ac=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},ta;class mDe{constructor(){ta.set(this,[])}enqueue(e,r){r={priority:0,...r};const n={priority:r.priority,run:e};if(this.size&&ac(this,ta,"f")[this.size-1].priority>=r.priority){ac(this,ta,"f").push(n);return}const i=gDe(ac(this,ta,"f"),n,(o,s)=>s.priority-o.priority);ac(this,ta,"f").splice(i,0,n)}dequeue(){const e=ac(this,ta,"f").shift();return e?.run}filter(e){return ac(this,ta,"f").filter(r=>r.priority===e.priority).map(r=>r.run)}get size(){return ac(this,ta,"f").length}}ta=new WeakMap;var kr=function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},Fe=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},Nr,Yp,Gp,dl,Jb,Hp,Yy,Co,kp,Ei,Gy,Ri,Jp,ll,Hy,z3,L3,XZ,V3,X3,Jy,Kw,eP,Kb,WZ,Ky;class UZ extends Error{}class ODe extends fDe{constructor(e){var r,n,i,o;if(super(),Nr.add(this),Yp.set(this,void 0),Gp.set(this,void 0),dl.set(this,0),Jb.set(this,void 0),Hp.set(this,void 0),Yy.set(this,0),Co.set(this,void 0),kp.set(this,void 0),Ei.set(this,void 0),Gy.set(this,void 0),Ri.set(this,0),Jp.set(this,void 0),ll.set(this,void 0),Hy.set(this,void 0),Object.defineProperty(this,"timeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),e={carryoverConcurrencyCount:!1,intervalCap:Number.POSITIVE_INFINITY,interval:0,concurrency:Number.POSITIVE_INFINITY,autoStart:!0,queueClass:mDe,...e},!(typeof e.intervalCap=="number"&&e.intervalCap>=1))throw new TypeError(`Expected \`intervalCap\` to be a number from 1 and up, got \`${(n=(r=e.intervalCap)===null||r===void 0?void 0:r.toString())!==null&&n!==void 0?n:""}\` (${typeof e.intervalCap})`);if(e.interval===void 0||!(Number.isFinite(e.interval)&&e.interval>=0))throw new TypeError(`Expected \`interval\` to be a finite number >= 0, got \`${(o=(i=e.interval)===null||i===void 0?void 0:i.toString())!==null&&o!==void 0?o:""}\` (${typeof e.interval})`);kr(this,Yp,e.carryoverConcurrencyCount,"f"),kr(this,Gp,e.intervalCap===Number.POSITIVE_INFINITY||e.interval===0,"f"),kr(this,Jb,e.intervalCap,"f"),kr(this,Hp,e.interval,"f"),kr(this,Ei,new e.queueClass,"f"),kr(this,Gy,e.queueClass,"f"),this.concurrency=e.concurrency,this.timeout=e.timeout,kr(this,Hy,e.throwOnTimeout===!0,"f"),kr(this,ll,e.autoStart===!1,"f")}get concurrency(){return Fe(this,Jp,"f")}set concurrency(e){if(!(typeof e=="number"&&e>=1))throw new TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${e}\` (${typeof e})`);kr(this,Jp,e,"f"),Fe(this,Nr,"m",Kb).call(this)}async add(e,r={}){return r={timeout:this.timeout,throwOnTimeout:Fe(this,Hy,"f"),...r},new Promise((n,i)=>{Fe(this,Ei,"f").enqueue(async()=>{var o,s,a;kr(this,Ri,(s=Fe(this,Ri,"f"),s++,s),"f"),kr(this,dl,(a=Fe(this,dl,"f"),a++,a),"f");try{if(!((o=r.signal)===null||o===void 0)&&o.aborted)throw new UZ("The task was aborted.");let l=e({signal:r.signal});r.timeout&&(l=hDe(Promise.resolve(l),r.timeout)),r.signal&&(l=Promise.race([l,Fe(this,Nr,"m",WZ).call(this,r.signal)]));const c=await l;n(c),this.emit("completed",c)}catch(l){if(l instanceof VZ&&!r.throwOnTimeout){n();return}i(l),this.emit("error",l)}finally{Fe(this,Nr,"m",XZ).call(this)}},r),this.emit("add"),Fe(this,Nr,"m",Jy).call(this)})}async addAll(e,r){return Promise.all(e.map(async n=>this.add(n,r)))}start(){return Fe(this,ll,"f")?(kr(this,ll,!1,"f"),Fe(this,Nr,"m",Kb).call(this),this):this}pause(){kr(this,ll,!0,"f")}clear(){kr(this,Ei,new(Fe(this,Gy,"f")),"f")}async onEmpty(){Fe(this,Ei,"f").size!==0&&await Fe(this,Nr,"m",Ky).call(this,"empty")}async onSizeLessThan(e){Fe(this,Ei,"f").size<e||await Fe(this,Nr,"m",Ky).call(this,"next",()=>Fe(this,Ei,"f").size<e)}async onIdle(){Fe(this,Ri,"f")===0&&Fe(this,Ei,"f").size===0||await Fe(this,Nr,"m",Ky).call(this,"idle")}get size(){return Fe(this,Ei,"f").size}sizeBy(e){return Fe(this,Ei,"f").filter(e).length}get pending(){return Fe(this,Ri,"f")}get isPaused(){return Fe(this,ll,"f")}}Yp=new WeakMap,Gp=new WeakMap,dl=new WeakMap,Jb=new WeakMap,Hp=new WeakMap,Yy=new WeakMap,Co=new WeakMap,kp=new WeakMap,Ei=new WeakMap,Gy=new WeakMap,Ri=new WeakMap,Jp=new WeakMap,ll=new WeakMap,Hy=new WeakMap,Nr=new WeakSet,z3=function(){return Fe(this,Gp,"f")||Fe(this,dl,"f")<Fe(this,Jb,"f")},L3=function(){return Fe(this,Ri,"f")<Fe(this,Jp,"f")},XZ=function(){var e;kr(this,Ri,(e=Fe(this,Ri,"f"),e--,e),"f"),Fe(this,Nr,"m",Jy).call(this),this.emit("next")},V3=function(){Fe(this,Nr,"m",eP).call(this),Fe(this,Nr,"m",Kw).call(this),kr(this,kp,void 0,"f")},X3=function(){const e=Date.now();if(Fe(this,Co,"f")===void 0){const r=Fe(this,Yy,"f")-e;if(r<0)kr(this,dl,Fe(this,Yp,"f")?Fe(this,Ri,"f"):0,"f");else return Fe(this,kp,"f")===void 0&&kr(this,kp,setTimeout(()=>{Fe(this,Nr,"m",V3).call(this)},r),"f"),!0}return!1},Jy=function(){if(Fe(this,Ei,"f").size===0)return Fe(this,Co,"f")&&clearInterval(Fe(this,Co,"f")),kr(this,Co,void 0,"f"),this.emit("empty"),Fe(this,Ri,"f")===0&&this.emit("idle"),!1;if(!Fe(this,ll,"f")){const e=!Fe(this,Nr,"a",X3);if(Fe(this,Nr,"a",z3)&&Fe(this,Nr,"a",L3)){const r=Fe(this,Ei,"f").dequeue();return r?(this.emit("active"),r(),e&&Fe(this,Nr,"m",Kw).call(this),!0):!1}}return!1},Kw=function(){Fe(this,Gp,"f")||Fe(this,Co,"f")!==void 0||(kr(this,Co,setInterval(()=>{Fe(this,Nr,"m",eP).call(this)},Fe(this,Hp,"f")),"f"),kr(this,Yy,Date.now()+Fe(this,Hp,"f"),"f"))},eP=function(){Fe(this,dl,"f")===0&&Fe(this,Ri,"f")===0&&Fe(this,Co,"f")&&(clearInterval(Fe(this,Co,"f")),kr(this,Co,void 0,"f")),kr(this,dl,Fe(this,Yp,"f")?Fe(this,Ri,"f"):0,"f"),Fe(this,Nr,"m",Kb).call(this)},Kb=function(){for(;Fe(this,Nr,"m",Jy).call(this););},WZ=async function(e){return new Promise((r,n)=>{e.addEventListener("abort",()=>{n(new UZ("The task was aborted."))},{once:!0})})},Ky=async function(e,r){return new Promise(n=>{const i=()=>{r&&!r()||(this.off(e,i),n())};this.on(e,i)})};const Sa=window.__TAURI__?.http.fetch??globalThis.fetch;class BZ extends K0{constructor(){super()}resolveExternalRef(e,r){return Zy(r)?r:e&&Zy(e)?new URL(r,e).href:e?Rc.resolve(Rc.dirname(e),r):r}async loadExternalRef(e){if(Zy(e)){const{body:r,mimeType:n}=await Qz(e,{...this.config.http,customFetch:Sa});return new Ad(e,r,n)}else{if(!await RE(e))throw new Error(`File not found at ${e}.`);try{throw await IE(e),new Error(`Expected a file but received a folder at ${e}.`)}catch(i){if(i instanceof Error&&i.message.includes("Expected a file but received a folder"))throw i}const n=await Px(e);return new Ad(e,n.replace(/\r\n/g,`
|
|
417
|
-
`))}}}async function _k(t,e){const r=new F0({});r.getRulesForSpecVersion=()=>[];const n=await or.dirname(t),i={config:r,base:n,externalRefResolver:new BZ,dereference:!0};e?i.doc={source:{absoluteRef:t},parsed:e}:i.ref=t;const{bundle:{parsed:o}}=await jX(i);return o}class yDe{constructor(e){this.apisStorage=e}data=new Map;loading=new Set;pQueue=new ODe({concurrency:20});async get(e){return this.data.has(e)?this.data.get(e):(await this.loadAndParse(e),this.data.get(e))}async load(e){this.data.has(e)||await this.loadAndParse(e)}async loadAndParse(e){if(this.loading.has(e))return await this.pQueue.add(()=>this.get(e));this.loading.add(e),await this.pQueue.add(async()=>{const r=Xx(e)?Hn.WEB:Hn.FS,n=r===Hn.WEB?e:await this.apisStorage.getAbsolutePath(e);try{const i=await _k(n);if(!i){this.data.set(e,void 0);return}const o=this.apisStorage.parse({uri:e,type:r,content:i});this.data.set(e,o)}catch(i){console.error("Error loading api "+e,i),this.data.set(e,void 0);return}}),this.loading.delete(e)}get size(){return this.data.size}delete(e){this.data.delete(e)}getAll(){return Array.from(this.data.values()).filter(e=>e!==void 0)}clear(){this.data.clear(),this.loading.clear()}}class vDe extends LZ{apiLoader;constructor(e,r,n){const i=new E5(e.systemFilesDir),o=new E5(e.userFilesDir);super(i,o,e,!0,r,n),this.apiLoader=new yDe(this.apisStorage)}async read(){const e=this.telemetry?.startSpan("storage.read",void 0,void 0),r=this.telemetry?.startSpan("storage.loadUserState",{},e?.parentCtx),[n,i,o,s]=await Promise.all([this.historyStorage.read(),this.activeEnvironmentIdStorage.read(),this.tabsStateStorage.read(),this.environmentsStorage.read()]);r?.setAttribute("status","completed"),r?.setAttribute("historyCount",n.length),r?.setAttribute("environmentCount",s.length),r?.setStatus(exports.SpanStatusCode.OK),r?.end();const{apiFiles:a,collectionFiles:l}=await this.detectProjectFiles(e);await this.loadAndParseApis(a,e);const c=await this.loadAndParseCollections(l,e);this.collectionsStorage.setItemIds(c.map(d=>d.id));const u=this.apiLoader.getAll();return this.apisStorage.setItemIds(u.map(d=>d.id)),this.apiLoader.clear(),e?.setAttribute("status","completed"),e?.setStatus(exports.SpanStatusCode.OK),e?.end(),{project:this.project,history:n,activeEnvironmentId:i,tabsState:o,environments:s,apis:u,collections:c}}async detectProjectFiles(e){const r=this.telemetry?.startSpan("storage.detectFiles",{},e?.parentCtx),{api_files:n,collection_files:i}=await Na("fs_scan",{dir:this.project.userFilesDir});return r?.setAttribute("status","completed"),r?.setAttribute("filesCount",n.length+i.length),r?.setAttribute("apiFilesCount",n.length),r?.setAttribute("collectionFilesCount",i.length),r?.setStatus(exports.SpanStatusCode.OK),r?.end(),{apiFiles:n,collectionFiles:i}}async loadAndParseApis(e,r){const n=this.telemetry?.startSpan("storage.parseApis",{apisCount:e.length},r?.parentCtx);await T5(e,20,async i=>{try{await this.apiLoader.load(i.relative_path)}catch(o){return console.error(`Error parsing YAML/JSON file ${i.absolute_path}:`,o),null}}),n?.setAttribute("status","completed"),n?.setAttribute("parsedApisCount",this.apiLoader.size),n?.setStatus(exports.SpanStatusCode.OK),n?.end()}async loadAndParseCollections(e,r){const n=this.telemetry?.startSpan("storage.parseCollections",{collectionsCount:e.length},r?.parentCtx),i=await T5(e,20,async o=>{try{const s=await this.userFilesStorage.get(o.relative_path);if(!s)return null;const a=Pa.load(s??"");if(typeof a!="object"||a===null||typeof a.arazzo!="string")return null;const l=[];return await Promise.all(a.sourceDescriptions?.map(async c=>{const u=c.type,d=c.url,p=!u||u==="openapi",h=await _Z({projectPath:this.project.userFilesDir,apiUrl:d,collectionId:o.relative_path});if(p){const m=await this.apiLoader.get(h);m&&l.push(m)}})),await this.collectionsStorage.parse({uri:o.relative_path,type:Hn.FS,content:a},l)}catch(s){return console.error(`Error parsing Arazzo file ${o.relative_path}:`,s),null}});return n?.setAttribute("status","completed"),n?.setAttribute("parsedCollectionsCount",i.length),n?.setStatus(exports.SpanStatusCode.OK),n?.end(),i.filter(o=>o!==null)}}class W3{constructor(e){this.baseDir=e}async ls(e=""){const r=this.makeKey(e);return Object.keys(localStorage).filter(n=>n.startsWith(r)).map(n=>n.replace(r,""))}async get(e){const r=this.makeKey(e);return localStorage.getItem(r)??null}async set(e,r){const n=this.makeKey(e);localStorage.setItem(n,r)}async remove(e){const r=this.makeKey(e);localStorage.removeItem(r)}makeKey(e){return`replay:fs:${this.baseDir}/${e}`}}class bDe extends LZ{constructor(e,r,n){const i=new W3(e.systemFilesDir),o=new W3(e.userFilesDir);super(i,o,e,!1,r,n)}async detectProjectFiles(e){const r=this.telemetry?.startSpan("storage.detectFiles",{},e?.parentCtx),i=(await this.userFilesStorage.ls()).filter(l=>/\.(ya?ml|json)$/.test(l)),o=[],s=[],a=new Set;return await Promise.all(i.map(async l=>{const c=await this.userFilesStorage.get(l);if(c)try{const u=Pa.load(c);if(typeof u=="object"&&u!==null)if(typeof u.openapi=="string"){const d=await or.resolve(await or.join(this.userFilesStorage.baseDir,l)),p=await _k(d,u);o.push({uri:l,type:Hn.FS,content:p})}else typeof u.arazzo=="string"&&(s.push({uri:l,type:Hn.FS,content:u}),u.sourceDescriptions?.forEach(d=>{const p=d.type,h=d.url,m=!p||p==="openapi",g=typeof h=="string"&&Xx(h);m&&g&&a.add(h)}))}catch(u){console.error(`Error parsing YAML/JSON file ${l}:`,u)}})),r?.setAttribute("status","completed"),r?.setAttribute("filesCount",i.length),r?.setAttribute("apiFilesCount",o.length),r?.setAttribute("collectionFilesCount",s.length),r?.setAttribute("apiUrlsCount",a.size),r?.setStatus(exports.SpanStatusCode.OK),r?.end(),{apiFiles:o,collectionFiles:s,apiUrls:a}}async loadApis(e,r){const n=this.telemetry?.startSpan("storage.loadApis",{apiUrlsCount:e.size},r?.parentCtx),i=[];return await Promise.all(Array.from(e).map(async o=>{try{const s=await _k(o);i.push({uri:o,type:Hn.WEB,content:s})}catch(s){console.error(`Error parsing YAML from ${o}:`,s)}})),n?.setAttribute("status","completed"),n?.setStatus(exports.SpanStatusCode.OK),n?.end(),i}async parseApis(e,r){const n=this.telemetry?.startSpan("storage.parseApis",{apisCount:e.length},r?.parentCtx),i=await this.apisStorage.parseMany(e);return n?.setAttribute("status","completed"),n?.setAttribute("parsedApisCount",i.length),n?.setStatus(exports.SpanStatusCode.OK),n?.end(),i}async parseCollections(e,r,n){const i=this.telemetry?.startSpan("storage.parseCollections",{collectionsCount:e.length},n?.parentCtx),o=await this.collectionsStorage.parseMany(e,r);return i?.setAttribute("status","completed"),i?.setAttribute("parsedCollectionsCount",o.length),i?.setStatus(exports.SpanStatusCode.OK),i?.end(),o}async read(){const e=this.telemetry?.startSpan("storage.read",void 0,void 0),r=this.telemetry?.startSpan("storage.loadUserState",{},e?.parentCtx),[n,i,o,s]=await Promise.all([this.historyStorage.read(),this.activeEnvironmentIdStorage.read(),this.tabsStateStorage.read(),this.environmentsStorage.read()]);r?.setAttribute("status","completed"),r?.setAttribute("historyCount",n.length),r?.setAttribute("environmentCount",s.length),r?.setStatus(exports.SpanStatusCode.OK),r?.end();const{apiFiles:a,collectionFiles:l,apiUrls:c}=await this.detectProjectFiles(e),u=await this.loadApis(c,e),d=await this.parseApis([...a,...u],e);this.apisStorage.setItemIds(d.map(h=>h.id));const p=await this.parseCollections(l,d,e);return this.collectionsStorage.setItemIds(p.map(h=>h.id)),e?.setAttribute("status","completed"),e?.setStatus(exports.SpanStatusCode.OK),e?.end(),{project:this.project,history:n,activeEnvironmentId:i,tabsState:o,environments:s,apis:d,collections:p}}}function FZ(t=!1){let e,r=!1;return()=>({id:"RootStoragePlugin",onCreate:()=>({init:n=>async(i,o,s)=>{if(r||n.path.length>0)return{isInitialized:!1};if(r=!0,!t){e=Da()?new vDe(i,o,s):new bDe(i,o,s);const a=await e.read();n.merge(a)}return r=!1,{isInitialized:!0}}}),onSet(n,i,o){r||t||e.update(i,o)}})}function ZZ({defaultEnvironments:t}={}){return structuredClone({project:{id:"default",userFilesDir:"default",systemFilesDir:"default"},history:[],tabsState:ma(K6),activeEnvironmentId:Cg,environments:t||J6,collections:[],apis:[],requestController:null,apps:{apps:[],appsLoadingState:as.Idle},predefinedApiId:null,predefinedEnvironmentNames:new Set,predefinedInputNames:new Set})}const xDe=bz(ZZ(),xz(dCe({key:"replay-root-store"}),FZ())),qA=$.createContext(xDe),SDe=qA.Provider;function gt(){const t=$.useContext(qA);return Sz(t)}function wDe(){return{theme:"light",disableCollectionsTab:!1,oAuth2RedirectURI:null,corsProxyUrl:void 0,mockServer:void 0,certificates:[],isApiBased:!1,generatedEnvironments:[],generatedInputs:[],hideOtherSecuritySchemes:!1}}const PDe=wDe(),CDe=$.createContext(PDe);function Vo(){const t=$.useContext(CDe);return Sz(t)}function $De(t,e){const{apps:{apiId:r}}=gt(),{corsProxyUrl:n,disableCollectionsTab:i,mockServer:o,oAuth2RedirectURI:s,certificates:a,storageKey:l,isApiBased:c}=Vo();n.set(t?.corsProxyUrl??ZPe),o.set(t?.mockServer),r.set(t?.apiId),s.set(t?.oAuth2RedirectURI),i.set(!!t?.disableCollectionsTab),l.set(t?.storageKey),c.set(!!e),$.useEffect(()=>{a.set(t?.certificates||[])},[t?.certificates])}const Wx=$.createContext({});function ru(){return $.useContext(Wx)||{}}const kDe="0.21.0-next.1",TDe={version:kDe};class YZ{_client;_isInitialized=!1;_initResolve=null;_initPromise=new Promise(e=>{this._initResolve=e});_globalAttributes={platform:"",deviceId:""};constructor(){this._client=new FPe}get isInitialized(){return this._isInitialized}get client(){return this._client}awaitInit(){return this._initPromise}updateCloudEventData(e){this._client.updateCloudEventData(e)}enrichGlobalAttributes(e){this._globalAttributes={...this._globalAttributes,...e}}getGlobalAttributes(){return{...this._globalAttributes}}clearGlobalAttributes(){this._globalAttributes={platform:"",deviceId:""}}init(e){if(this.isInitialized)return;const r=!0,n=e?.tracerName||"desktop",i=e?.enableErrorInstrumentation??n==="desktop",o={serviceName:"replay",serviceVersion:TDe.version,version:"1.0.0",tracerName:n,collectorUrl:"",isProd:r,enableErrorInstrumentation:i};this._client.init({otel:{...o,...e}}),this._initResolve?.(this),this._isInitialized=!0}sendEvent(e,r){if(!this.isInitialized){console.warn("Telemetry client not initialized. Call init() first.");return}const n={...this._globalAttributes,...r};try{this.client.send(e,n)}catch(i){console.error("Failed to send telemetry event:",i)}}startSpan(e,r,n){if(!this.isInitialized){console.warn("Telemetry client not initialized. Call init() first.");return}try{return this._client.startSpan(e,{...this._globalAttributes,...r},n)}catch(i){console.error("Failed to start telemetry span:",i);return}}}const sd=new YZ;function st(){const{telemetry:t}=ru();return sd.isInitialized||sd.init(t),{sendEvent:(e,r)=>{sd.sendEvent(e,r)},startSpan:(e,r,n)=>sd.startSpan(e,r,n)}}const EDe=({awaitInit:t=!0}={})=>{const[e,r]=$.useState(void 0);return $.useEffect(()=>{(async()=>{const i=t?await sd.awaitInit():sd;r(i)})()},[t]),e},zn=800,yi=T(Q.Button).attrs({variant:"text",size:"small",tone:"danger"})`
|
|
417
|
+
`))}}}async function _k(t,e){const r=new F0({});r.getRulesForSpecVersion=()=>[];const n=await or.dirname(t),i={config:r,base:n,externalRefResolver:new BZ,dereference:!0};e?i.doc={source:{absoluteRef:t},parsed:e}:i.ref=t;const{bundle:{parsed:o}}=await jX(i);return o}class yDe{constructor(e){this.apisStorage=e}data=new Map;loading=new Set;pQueue=new ODe({concurrency:20});async get(e){return this.data.has(e)?this.data.get(e):(await this.loadAndParse(e),this.data.get(e))}async load(e){this.data.has(e)||await this.loadAndParse(e)}async loadAndParse(e){if(this.loading.has(e))return await this.pQueue.add(()=>this.get(e));this.loading.add(e),await this.pQueue.add(async()=>{const r=Xx(e)?Hn.WEB:Hn.FS,n=r===Hn.WEB?e:await this.apisStorage.getAbsolutePath(e);try{const i=await _k(n);if(!i){this.data.set(e,void 0);return}const o=this.apisStorage.parse({uri:e,type:r,content:i});this.data.set(e,o)}catch(i){console.error("Error loading api "+e,i),this.data.set(e,void 0);return}}),this.loading.delete(e)}get size(){return this.data.size}delete(e){this.data.delete(e)}getAll(){return Array.from(this.data.values()).filter(e=>e!==void 0)}clear(){this.data.clear(),this.loading.clear()}}class vDe extends LZ{apiLoader;constructor(e,r,n){const i=new E5(e.systemFilesDir),o=new E5(e.userFilesDir);super(i,o,e,!0,r,n),this.apiLoader=new yDe(this.apisStorage)}async read(){const e=this.telemetry?.startSpan("storage.read",void 0,void 0),r=this.telemetry?.startSpan("storage.loadUserState",{},e?.parentCtx),[n,i,o,s]=await Promise.all([this.historyStorage.read(),this.activeEnvironmentIdStorage.read(),this.tabsStateStorage.read(),this.environmentsStorage.read()]);r?.setAttribute("status","completed"),r?.setAttribute("historyCount",n.length),r?.setAttribute("environmentCount",s.length),r?.setStatus(exports.SpanStatusCode.OK),r?.end();const{apiFiles:a,collectionFiles:l}=await this.detectProjectFiles(e);await this.loadAndParseApis(a,e);const c=await this.loadAndParseCollections(l,e);this.collectionsStorage.setItemIds(c.map(d=>d.id));const u=this.apiLoader.getAll();return this.apisStorage.setItemIds(u.map(d=>d.id)),this.apiLoader.clear(),e?.setAttribute("status","completed"),e?.setStatus(exports.SpanStatusCode.OK),e?.end(),{project:this.project,history:n,activeEnvironmentId:i,tabsState:o,environments:s,apis:u,collections:c}}async detectProjectFiles(e){const r=this.telemetry?.startSpan("storage.detectFiles",{},e?.parentCtx),{api_files:n,collection_files:i}=await Na("fs_scan",{dir:this.project.userFilesDir});return r?.setAttribute("status","completed"),r?.setAttribute("filesCount",n.length+i.length),r?.setAttribute("apiFilesCount",n.length),r?.setAttribute("collectionFilesCount",i.length),r?.setStatus(exports.SpanStatusCode.OK),r?.end(),{apiFiles:n,collectionFiles:i}}async loadAndParseApis(e,r){const n=this.telemetry?.startSpan("storage.parseApis",{apisCount:e.length},r?.parentCtx);await T5(e,20,async i=>{try{await this.apiLoader.load(i.relative_path)}catch(o){return console.error(`Error parsing YAML/JSON file ${i.absolute_path}:`,o),null}}),n?.setAttribute("status","completed"),n?.setAttribute("parsedApisCount",this.apiLoader.size),n?.setStatus(exports.SpanStatusCode.OK),n?.end()}async loadAndParseCollections(e,r){const n=this.telemetry?.startSpan("storage.parseCollections",{collectionsCount:e.length},r?.parentCtx),i=await T5(e,20,async o=>{try{const s=await this.userFilesStorage.get(o.relative_path);if(!s)return null;const a=Pa.load(s??"");if(typeof a!="object"||a===null||typeof a.arazzo!="string")return null;const l=[];return await Promise.all(a.sourceDescriptions?.map(async c=>{const u=c.type,d=c.url,p=!u||u==="openapi",h=await _Z({projectPath:this.project.userFilesDir,apiUrl:d,collectionId:o.relative_path});if(p){const m=await this.apiLoader.get(h);m&&l.push(m)}})),await this.collectionsStorage.parse({uri:o.relative_path,type:Hn.FS,content:a},l)}catch(s){return console.error(`Error parsing Arazzo file ${o.relative_path}:`,s),null}});return n?.setAttribute("status","completed"),n?.setAttribute("parsedCollectionsCount",i.length),n?.setStatus(exports.SpanStatusCode.OK),n?.end(),i.filter(o=>o!==null)}}class W3{constructor(e){this.baseDir=e}async ls(e=""){const r=this.makeKey(e);return Object.keys(localStorage).filter(n=>n.startsWith(r)).map(n=>n.replace(r,""))}async get(e){const r=this.makeKey(e);return localStorage.getItem(r)??null}async set(e,r){const n=this.makeKey(e);localStorage.setItem(n,r)}async remove(e){const r=this.makeKey(e);localStorage.removeItem(r)}makeKey(e){return`replay:fs:${this.baseDir}/${e}`}}class bDe extends LZ{constructor(e,r,n){const i=new W3(e.systemFilesDir),o=new W3(e.userFilesDir);super(i,o,e,!1,r,n)}async detectProjectFiles(e){const r=this.telemetry?.startSpan("storage.detectFiles",{},e?.parentCtx),i=(await this.userFilesStorage.ls()).filter(l=>/\.(ya?ml|json)$/.test(l)),o=[],s=[],a=new Set;return await Promise.all(i.map(async l=>{const c=await this.userFilesStorage.get(l);if(c)try{const u=Pa.load(c);if(typeof u=="object"&&u!==null)if(typeof u.openapi=="string"){const d=await or.resolve(await or.join(this.userFilesStorage.baseDir,l)),p=await _k(d,u);o.push({uri:l,type:Hn.FS,content:p})}else typeof u.arazzo=="string"&&(s.push({uri:l,type:Hn.FS,content:u}),u.sourceDescriptions?.forEach(d=>{const p=d.type,h=d.url,m=!p||p==="openapi",g=typeof h=="string"&&Xx(h);m&&g&&a.add(h)}))}catch(u){console.error(`Error parsing YAML/JSON file ${l}:`,u)}})),r?.setAttribute("status","completed"),r?.setAttribute("filesCount",i.length),r?.setAttribute("apiFilesCount",o.length),r?.setAttribute("collectionFilesCount",s.length),r?.setAttribute("apiUrlsCount",a.size),r?.setStatus(exports.SpanStatusCode.OK),r?.end(),{apiFiles:o,collectionFiles:s,apiUrls:a}}async loadApis(e,r){const n=this.telemetry?.startSpan("storage.loadApis",{apiUrlsCount:e.size},r?.parentCtx),i=[];return await Promise.all(Array.from(e).map(async o=>{try{const s=await _k(o);i.push({uri:o,type:Hn.WEB,content:s})}catch(s){console.error(`Error parsing YAML from ${o}:`,s)}})),n?.setAttribute("status","completed"),n?.setStatus(exports.SpanStatusCode.OK),n?.end(),i}async parseApis(e,r){const n=this.telemetry?.startSpan("storage.parseApis",{apisCount:e.length},r?.parentCtx),i=await this.apisStorage.parseMany(e);return n?.setAttribute("status","completed"),n?.setAttribute("parsedApisCount",i.length),n?.setStatus(exports.SpanStatusCode.OK),n?.end(),i}async parseCollections(e,r,n){const i=this.telemetry?.startSpan("storage.parseCollections",{collectionsCount:e.length},n?.parentCtx),o=await this.collectionsStorage.parseMany(e,r);return i?.setAttribute("status","completed"),i?.setAttribute("parsedCollectionsCount",o.length),i?.setStatus(exports.SpanStatusCode.OK),i?.end(),o}async read(){const e=this.telemetry?.startSpan("storage.read",void 0,void 0),r=this.telemetry?.startSpan("storage.loadUserState",{},e?.parentCtx),[n,i,o,s]=await Promise.all([this.historyStorage.read(),this.activeEnvironmentIdStorage.read(),this.tabsStateStorage.read(),this.environmentsStorage.read()]);r?.setAttribute("status","completed"),r?.setAttribute("historyCount",n.length),r?.setAttribute("environmentCount",s.length),r?.setStatus(exports.SpanStatusCode.OK),r?.end();const{apiFiles:a,collectionFiles:l,apiUrls:c}=await this.detectProjectFiles(e),u=await this.loadApis(c,e),d=await this.parseApis([...a,...u],e);this.apisStorage.setItemIds(d.map(h=>h.id));const p=await this.parseCollections(l,d,e);return this.collectionsStorage.setItemIds(p.map(h=>h.id)),e?.setAttribute("status","completed"),e?.setStatus(exports.SpanStatusCode.OK),e?.end(),{project:this.project,history:n,activeEnvironmentId:i,tabsState:o,environments:s,apis:d,collections:p}}}function FZ(t=!1){let e,r=!1;return()=>({id:"RootStoragePlugin",onCreate:()=>({init:n=>async(i,o,s)=>{if(r||n.path.length>0)return{isInitialized:!1};if(r=!0,!t){e=Da()?new vDe(i,o,s):new bDe(i,o,s);const a=await e.read();n.merge(a)}return r=!1,{isInitialized:!0}}}),onSet(n,i,o){r||t||e.update(i,o)}})}function ZZ({defaultEnvironments:t}={}){return structuredClone({project:{id:"default",userFilesDir:"default",systemFilesDir:"default"},history:[],tabsState:ma(K6),activeEnvironmentId:Cg,environments:t||J6,collections:[],apis:[],requestController:null,apps:{apps:[],appsLoadingState:as.Idle},predefinedApiId:null,predefinedEnvironmentNames:new Set,predefinedInputNames:new Set})}const xDe=bz(ZZ(),xz(dCe({key:"replay-root-store"}),FZ())),qA=$.createContext(xDe),SDe=qA.Provider;function gt(){const t=$.useContext(qA);return Sz(t)}function wDe(){return{theme:"light",disableCollectionsTab:!1,oAuth2RedirectURI:null,corsProxyUrl:void 0,mockServer:void 0,certificates:[],isApiBased:!1,generatedEnvironments:[],generatedInputs:[],hideOtherSecuritySchemes:!1}}const PDe=wDe(),CDe=$.createContext(PDe);function Vo(){const t=$.useContext(CDe);return Sz(t)}function $De(t,e){const{apps:{apiId:r}}=gt(),{corsProxyUrl:n,disableCollectionsTab:i,mockServer:o,oAuth2RedirectURI:s,certificates:a,storageKey:l,isApiBased:c}=Vo();n.set(t?.corsProxyUrl??ZPe),o.set(t?.mockServer),r.set(t?.apiId),s.set(t?.oAuth2RedirectURI),i.set(!!t?.disableCollectionsTab),l.set(t?.storageKey),c.set(!!e),$.useEffect(()=>{a.set(t?.certificates||[])},[t?.certificates])}const Wx=$.createContext({});function ru(){return $.useContext(Wx)||{}}const kDe="0.21.0-next.2",TDe={version:kDe};class YZ{_client;_isInitialized=!1;_initResolve=null;_initPromise=new Promise(e=>{this._initResolve=e});_globalAttributes={platform:"",deviceId:""};constructor(){this._client=new FPe}get isInitialized(){return this._isInitialized}get client(){return this._client}awaitInit(){return this._initPromise}updateCloudEventData(e){this._client.updateCloudEventData(e)}enrichGlobalAttributes(e){this._globalAttributes={...this._globalAttributes,...e}}getGlobalAttributes(){return{...this._globalAttributes}}clearGlobalAttributes(){this._globalAttributes={platform:"",deviceId:""}}init(e){if(this.isInitialized)return;const r=!0,n=e?.tracerName||"desktop",i=e?.enableErrorInstrumentation??n==="desktop",o={serviceName:"replay",serviceVersion:TDe.version,version:"1.0.0",tracerName:n,collectorUrl:"",isProd:r,enableErrorInstrumentation:i};this._client.init({otel:{...o,...e}}),this._initResolve?.(this),this._isInitialized=!0}sendEvent(e,r){if(!this.isInitialized){console.warn("Telemetry client not initialized. Call init() first.");return}const n={...this._globalAttributes,...r};try{this.client.send(e,n)}catch(i){console.error("Failed to send telemetry event:",i)}}startSpan(e,r,n){if(!this.isInitialized){console.warn("Telemetry client not initialized. Call init() first.");return}try{return this._client.startSpan(e,{...this._globalAttributes,...r},n)}catch(i){console.error("Failed to start telemetry span:",i);return}}}const sd=new YZ;function st(){const{telemetry:t}=ru();return sd.isInitialized||sd.init(t),{sendEvent:(e,r)=>{sd.sendEvent(e,r)},startSpan:(e,r,n)=>sd.startSpan(e,r,n)}}const EDe=({awaitInit:t=!0}={})=>{const[e,r]=$.useState(void 0);return $.useEffect(()=>{(async()=>{const i=t?await sd.awaitInit():sd;r(i)})()},[t]),e},zn=800,yi=T(Q.Button).attrs({variant:"text",size:"small",tone:"danger"})`
|
|
418
418
|
border: none;
|
|
419
419
|
margin: 0;
|
|
420
420
|
|
|
@@ -643,7 +643,7 @@ $3`);return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}function lQe(t){return t.
|
|
|
643
643
|
`,ct=T.div`
|
|
644
644
|
border-bottom: 1px solid var(--border-color-secondary);
|
|
645
645
|
width: 100%;
|
|
646
|
-
`,Nk=({title:t,description:e,children:r})=>f.jsxs(f.Fragment,{children:[f.jsxs(EY,{children:[f.jsx(BA,{}),f.jsx("span",{children:t})]}),f.jsx(FA,{children:e}),r&&f.jsxs(f.Fragment,{children:[f.jsx(ct,{}),r]})]});function i3e({input:t,name:e,withPopover:r,inputId:n,onNewInput:i}){const[o,s]=$.useState(!1),[a,l]=$.useState({}),c=!t?.value,{sendEvent:u}=st(),d=()=>{s(!0),u("input.management",{action:"editor_opened",context:"environment",name:e,is_undefined:c})},p=()=>{u("content.copy",{source:"environment_input",section:"value",name:e})},h=R=>{s(!1),i(R),u("input.management",{action:"saved",context:"environment",name:e,is_undefined:c})},m=()=>{s(!1),u("input.management",{action:"editor_closed",context:"environment",name:e,is_undefined:c})},g=(R,D)=>{l(_=>({..._,[R]:D}))},O=R=>{const[D,_]=$.useState(!1),L=()=>{_(W=>!W)};return f.jsx(u3e,{children:a[R.name]?f.jsx(c3e,{input:R||{...LC(),name:e},onSave:h,onCancel:()=>g(R.name,!1),readonlyName:!0}):f.jsx(f.Fragment,{children:f.jsxs(AY,{children:[f.jsxs("div",{children:[f.jsx(s3e,{children:R.name}),f.jsx(FA,{$isEmpty:!R?.value,children:R.isSecret&&!D?"•••••":R?.value||"No value"})]}),f.jsxs(a3e,{children:[R.isSecret&&f.jsx(Ia,{onClick:L,variant:"text",size:"small",icon:D?f.jsx(Q.ViewOffIcon,{}):f.jsx(Q.ViewIcon,{})}),R?.value&&f.jsx(Q.CopyButton,{variant:"ghost",data:R?.value,onCopyClick:p,toasterPlacement:"left"}),f.jsx(Ia,{"data-testid":`edit-input-btn-${R.name}`,size:"small",variant:"text",icon:f.jsx(Q.EditIcon,{}),onClick:()=>g(R.name,!0)})]})]})})})},y=()=>f.jsx(f.Fragment,{children:t?O(t):null}),v=f.jsx(Nk,{title:"Undefined input",description:"Make sure the input is defined and enabled in the active environment.",children:f.jsx(Q.Button,{size:"small",onClick:d,children:"Add new input"})}),b=f.jsx(Nk,{title:"Undefined input value",description:"This input needs a value assigned before you can use it.",children:f.jsx(Q.Button,{size:"small",onClick:d,children:"Set value"})}),w=f.jsxs(o3e,{"data-testid":"environment-input-name",$isUndefined:c,children:[e,c&&f.jsx(BA,{size:"var(--spacing-sm)"})]}),S=()=>{const R=new RegExp(D0).exec(e),D=R?.[1]||R?.[2]||"";return f.jsx(l3e,{input:t||{...LC(),name:D},onSave:h,onCancel:m,readonlyName:!0})},P=()=>o?S():c?t?b:v:f.jsx(y,{}),C=$.useMemo(()=>o?"input-editor":c?t?"input-undefined-value":"input-undefined-input":"input-info",[c,o,t]),E=!!Object.values(a).filter(Boolean).length;return r?f.jsx(ql,{trigger:o||E?"click":["click","hover"],placement:"bottomLeft",overlay:f.jsx(IY,{"data-testid":C,"data-input-id":n,$addPadding:!0,children:P()}),overlayStyle:{zIndex:"1000",position:"absolute",maxWidth:"424px"},onVisibleChange:R=>{R||(s(!1),l({}))},destroyTooltipOnHide:!0,mouseEnterDelay:.1,showArrow:!1,children:w}):w}const o3e=T(RY)`
|
|
646
|
+
`,Nk=({title:t,description:e,children:r})=>f.jsxs(f.Fragment,{children:[f.jsxs(EY,{children:[f.jsx(BA,{}),f.jsx("span",{children:t})]}),f.jsx(FA,{children:e}),r&&f.jsxs(f.Fragment,{children:[f.jsx(ct,{}),r]})]});function i3e({input:t,name:e,withPopover:r,inputId:n,onNewInput:i}){const[o,s]=$.useState(!1),[a,l]=$.useState({}),c=!t?.value,{sendEvent:u}=st(),d=()=>{s(!0),u("input.management",[{action:"editor_opened",context:"environment",name:e,is_undefined:c}])},p=()=>{u("content.copy",[{source:"environment_input",section:"value",name:e}])},h=R=>{s(!1),i(R),u("input.management",[{action:"saved",context:"environment",name:e,is_undefined:c}])},m=()=>{s(!1),u("input.management",[{action:"editor_closed",context:"environment",name:e,is_undefined:c}])},g=(R,D)=>{l(_=>({..._,[R]:D}))},O=R=>{const[D,_]=$.useState(!1),L=()=>{_(W=>!W)};return f.jsx(u3e,{children:a[R.name]?f.jsx(c3e,{input:R||{...LC(),name:e},onSave:h,onCancel:()=>g(R.name,!1),readonlyName:!0}):f.jsx(f.Fragment,{children:f.jsxs(AY,{children:[f.jsxs("div",{children:[f.jsx(s3e,{children:R.name}),f.jsx(FA,{$isEmpty:!R?.value,children:R.isSecret&&!D?"•••••":R?.value||"No value"})]}),f.jsxs(a3e,{children:[R.isSecret&&f.jsx(Ia,{onClick:L,variant:"text",size:"small",icon:D?f.jsx(Q.ViewOffIcon,{}):f.jsx(Q.ViewIcon,{})}),R?.value&&f.jsx(Q.CopyButton,{variant:"ghost",data:R?.value,onCopyClick:p,toasterPlacement:"left"}),f.jsx(Ia,{"data-testid":`edit-input-btn-${R.name}`,size:"small",variant:"text",icon:f.jsx(Q.EditIcon,{}),onClick:()=>g(R.name,!0)})]})]})})})},y=()=>f.jsx(f.Fragment,{children:t?O(t):null}),v=f.jsx(Nk,{title:"Undefined input",description:"Make sure the input is defined and enabled in the active environment.",children:f.jsx(Q.Button,{size:"small",onClick:d,children:"Add new input"})}),b=f.jsx(Nk,{title:"Undefined input value",description:"This input needs a value assigned before you can use it.",children:f.jsx(Q.Button,{size:"small",onClick:d,children:"Set value"})}),w=f.jsxs(o3e,{"data-testid":"environment-input-name",$isUndefined:c,children:[e,c&&f.jsx(BA,{size:"var(--spacing-sm)"})]}),S=()=>{const R=new RegExp(D0).exec(e),D=R?.[1]||R?.[2]||"";return f.jsx(l3e,{input:t||{...LC(),name:D},onSave:h,onCancel:m,readonlyName:!0})},P=()=>o?S():c?t?b:v:f.jsx(y,{}),C=$.useMemo(()=>o?"input-editor":c?t?"input-undefined-value":"input-undefined-input":"input-info",[c,o,t]),E=!!Object.values(a).filter(Boolean).length;return r?f.jsx(ql,{trigger:o||E?"click":["click","hover"],placement:"bottomLeft",overlay:f.jsx(IY,{"data-testid":C,"data-input-id":n,$addPadding:!0,children:P()}),overlayStyle:{zIndex:"1000",position:"absolute",maxWidth:"424px"},onVisibleChange:R=>{R||(s(!1),l({}))},destroyTooltipOnHide:!0,mouseEnterDelay:.1,showArrow:!1,children:w}):w}const o3e=T(RY)`
|
|
647
647
|
color: var(--replay-defined-variable-color);
|
|
648
648
|
background-color: var(--replay-defined-variable-bg-color);
|
|
649
649
|
|
|
@@ -1045,7 +1045,7 @@ $3`);return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}function lQe(t){return t.
|
|
|
1045
1045
|
display: flex;
|
|
1046
1046
|
flex-direction: column;
|
|
1047
1047
|
gap: var(--spacing-xs);
|
|
1048
|
-
`;function Xqe({collection:t}){return f.jsx("div",{children:"TODO: ComponentsTab"})}function Wqe({collection:t,activeTabName:e}){const{sendEvent:r}=st(),n=i=>{e.set(i),r("tab.change",{source:"collection",name:i})};return f.jsxs(f.Fragment,{children:[f.jsx(r1,{tabs:Rqe,activeTabName:e.get(),onTabChange:n}),f.jsxs(Uqe,{children:[e.get()===lt.COMPONENTS&&f.jsx(Xqe,{collection:t}),e.get()===lt.COLLECTION_SETTINGS&&f.jsx(qqe,{collection:t})]})]})}const Uqe=T.div`
|
|
1048
|
+
`;function Xqe({collection:t}){return f.jsx("div",{children:"TODO: ComponentsTab"})}function Wqe({collection:t,activeTabName:e}){const{sendEvent:r}=st(),n=i=>{e.set(i),r("tab.change",[{source:"collection",name:i}])};return f.jsxs(f.Fragment,{children:[f.jsx(r1,{tabs:Rqe,activeTabName:e.get(),onTabChange:n}),f.jsxs(Uqe,{children:[e.get()===lt.COMPONENTS&&f.jsx(Xqe,{collection:t}),e.get()===lt.COLLECTION_SETTINGS&&f.jsx(qqe,{collection:t})]})]})}const Uqe=T.div`
|
|
1049
1049
|
overflow: auto;
|
|
1050
1050
|
padding: 0 var(--spacing-md);
|
|
1051
1051
|
flex: 1;
|
|
@@ -1297,7 +1297,7 @@ Use the data prop if you want to provide your own handlers.`);if(t.initialData){
|
|
|
1297
1297
|
left: 0;
|
|
1298
1298
|
right: 0;
|
|
1299
1299
|
border-top: 1px solid var(--color-primary-border);
|
|
1300
|
-
`,tJ=32,rJ=$.createContext({renderName:()=>null,renderControls:()=>null,renderStatus:()=>null,validateName:()=>"",activeNodeId:"",setActiveNodeId:()=>{},suppressSelectionStyle:!1,onNodeToggle:()=>{}});function V9(){return $.useContext(rJ)}function S6e({node:t,placeholder:e="Name",validate:r}){const[n,i]=$.useState(t.data.name),[o,s]=$.useState(""),a=$.useRef(null),{sendEvent:l}=st();$.useEffect(()=>{a.current?.focus()},[]);function c(h){h.key==="Escape"&&d(h),h.key==="Enter"&&!o&&u(h)}function u(h){h.stopPropagation(),t.submit(n.trim())}function d(h){h.stopPropagation(),t.reset();const m=t.data.isDraft;m&&t.tree.delete(t.id);const g=t.data.type;l("node.management",{node_type:g,action:m?"creation_canceled":"editing_canceled",name:n.trim()})}function p(h){i(h.target.value),s(r?r(t,h.target.value.trim()):"")}return f.jsx(Ds,{onClickOutside:d,children:f.jsxs(w6e,{onKeyDown:c,children:[f.jsx(El,{ref:a,"data-testid":"edit-item-header-input",type:"text",placeholder:e,value:n,onChange:p}),f.jsx(sr,{content:"Save",placement:"topRight",children:f.jsx(Q.Button,{"data-testid":"edit-item-header-save-button",variant:"primary",size:"small",onClick:u,disabled:!!o,icon:f.jsx(Q.CheckmarkIcon,{})})}),f.jsx(sr,{content:"Cancel",placement:"topRight",children:f.jsx(Q.Button,{"data-testid":"edit-item-header-cancel-button",variant:"text",size:"small",onClick:d,icon:f.jsx(Q.CloseIcon,{})})})]})})}const w6e=T.div`
|
|
1300
|
+
`,tJ=32,rJ=$.createContext({renderName:()=>null,renderControls:()=>null,renderStatus:()=>null,validateName:()=>"",activeNodeId:"",setActiveNodeId:()=>{},suppressSelectionStyle:!1,onNodeToggle:()=>{}});function V9(){return $.useContext(rJ)}function S6e({node:t,placeholder:e="Name",validate:r}){const[n,i]=$.useState(t.data.name),[o,s]=$.useState(""),a=$.useRef(null),{sendEvent:l}=st();$.useEffect(()=>{a.current?.focus()},[]);function c(h){h.key==="Escape"&&d(h),h.key==="Enter"&&!o&&u(h)}function u(h){h.stopPropagation(),t.submit(n.trim())}function d(h){h.stopPropagation(),t.reset();const m=t.data.isDraft;m&&t.tree.delete(t.id);const g=t.data.type;l("node.management",[{node_type:g,action:m?"creation_canceled":"editing_canceled",name:n.trim()}])}function p(h){i(h.target.value),s(r?r(t,h.target.value.trim()):"")}return f.jsx(Ds,{onClickOutside:d,children:f.jsxs(w6e,{onKeyDown:c,children:[f.jsx(El,{ref:a,"data-testid":"edit-item-header-input",type:"text",placeholder:e,value:n,onChange:p}),f.jsx(sr,{content:"Save",placement:"topRight",children:f.jsx(Q.Button,{"data-testid":"edit-item-header-save-button",variant:"primary",size:"small",onClick:u,disabled:!!o,icon:f.jsx(Q.CheckmarkIcon,{})})}),f.jsx(sr,{content:"Cancel",placement:"topRight",children:f.jsx(Q.Button,{"data-testid":"edit-item-header-cancel-button",variant:"text",size:"small",onClick:d,icon:f.jsx(Q.CloseIcon,{})})})]})})}const w6e=T.div`
|
|
1301
1301
|
display: flex;
|
|
1302
1302
|
gap: var(--spacing-xxs);
|
|
1303
1303
|
`;function P6e({node:t,dragHandle:e}){const{renderName:r,renderControls:n,renderStatus:i,validateName:o,activeNodeId:s,onNodeToggle:a}=V9(),l=()=>{if(!t.isInternal)return;const c=!t.isOpen;t.toggle(),a&&a(t.id,c)};return f.jsxs(A6e,{$level:t.level,$isDragging:t.isDragging,$isFocused:t.isFocused,$isSelected:!V9().suppressSelectionStyle&&t.isSelected,$isActive:s===t.id,"data-id":t.id,children:[f.jsxs(C6e,{children:[t.isDraggable&&f.jsx(fv,{ref:e,children:f.jsx(Q.DraggableIcon,{size:"14px",color:"--icon-color-secondary"})}),t.isInternal&&f.jsx(k6e,{onClick:l,children:t.isOpen?f.jsx(Q.ChevronDownIcon,{size:"14px",color:"--icon-color-secondary"}):f.jsx(Q.ChevronRightIcon,{size:"14px",color:"--icon-color-secondary"})})]}),t.isEditing?f.jsx(S6e,{node:t,validate:o}):f.jsxs($6e,{children:[f.jsx(T6e,{children:r?f.jsx(r,{node:t}):t.data.name}),f.jsxs(E6e,{children:[n&&f.jsx(pv,{children:f.jsx(n,{node:t})}),i&&f.jsx(i,{node:t})]})]})]})}const C6e=T.div`
|
|
@@ -1480,7 +1480,7 @@ Use the data prop if you want to provide your own handlers.`);if(t.initialData){
|
|
|
1480
1480
|
border-radius: var(--border-radius);
|
|
1481
1481
|
margin: var(--spacing-xs) 0;
|
|
1482
1482
|
background-color: var(--bg-color);
|
|
1483
|
-
`,Y6e={key:"view_in_description",icon:f.jsx(Q.ViewIcon,{size:"16px"}),text:"View in description"},G6e={key:"manage_connection",icon:f.jsx(Q.SettingsCogIcon,{size:"16px"}),text:"Manage connection"},H6e={key:"reset",icon:f.jsx(Q.RestartIcon,{size:"16px"}),text:"Reset request"};function J6e({operationName:t,url:e,onReset:r,layout:n,step:i,collectionId:o,isDraft:s,hideOperationName:a}){const{sendEvent:l}=st(),{isOpen:c,handleOpen:u,handleClose:d}=La(),p=i&&o!==void 0,h=n==="overlay",m=()=>{e&&window.open(e,"_blank")},g=v=>{switch(v){case"view_in_description":l("button.click",{source:"request",action:"view_in_description"}),m();break;case"manage_connection":l("button.click",{source:"request",action:"manage_connection"}),u();break;case"reset":l("button.click",{source:"request",action:"reset"}),r?.();break}},O=$.useMemo(()=>[...h?[Y6e]:s?[]:[G6e],H6e],[h,s]),y=$.useMemo(()=>[{text:h?`Based on "${t}" from the API description.`:`Connected to "${t}" from API description.`}],[h,t]);return f.jsxs(f.Fragment,{children:[f.jsx(K6e,{"data-testid":"request-status",children:f.jsxs(eUe,{"data-testid":"linked-badge",children:[f.jsxs(nUe,{children:[f.jsx(iUe,{}),!a&&f.jsx(tUe,{variant:"ghost",size:"small",style:{cursor:"default"},children:f.jsx(rUe,{children:t})})]}),f.jsx(oUe,{children:f.jsx(Q.Dropdown,{trigger:f.jsx(sUe,{variant:"ghost",size:"small",icon:f.jsx(Q.OverflowMenuHorizontalIcon,{}),"data-testid":"request-status-menu-button"}),alignment:"start",placement:"bottom",children:f.jsx(oH,{children:f.jsx(iH,{messages:y,onClick:g,actions:O})})})})]})}),p&&c&&f.jsx(wI,{step:i,collectionId:o,onClose:d})]})}const K6e=T.div`
|
|
1483
|
+
`,Y6e={key:"view_in_description",icon:f.jsx(Q.ViewIcon,{size:"16px"}),text:"View in description"},G6e={key:"manage_connection",icon:f.jsx(Q.SettingsCogIcon,{size:"16px"}),text:"Manage connection"},H6e={key:"reset",icon:f.jsx(Q.RestartIcon,{size:"16px"}),text:"Reset request"};function J6e({operationName:t,url:e,onReset:r,layout:n,step:i,collectionId:o,isDraft:s,hideOperationName:a}){const{sendEvent:l}=st(),{isOpen:c,handleOpen:u,handleClose:d}=La(),p=i&&o!==void 0,h=n==="overlay",m=()=>{e&&window.open(e,"_blank")},g=v=>{switch(v){case"view_in_description":l("button.click",[{source:"request",action:"view_in_description"}]),m();break;case"manage_connection":l("button.click",[{source:"request",action:"manage_connection"}]),u();break;case"reset":l("button.click",[{source:"request",action:"reset"}]),r?.();break}},O=$.useMemo(()=>[...h?[Y6e]:s?[]:[G6e],H6e],[h,s]),y=$.useMemo(()=>[{text:h?`Based on "${t}" from the API description.`:`Connected to "${t}" from API description.`}],[h,t]);return f.jsxs(f.Fragment,{children:[f.jsx(K6e,{"data-testid":"request-status",children:f.jsxs(eUe,{"data-testid":"linked-badge",children:[f.jsxs(nUe,{children:[f.jsx(iUe,{}),!a&&f.jsx(tUe,{variant:"ghost",size:"small",style:{cursor:"default"},children:f.jsx(rUe,{children:t})})]}),f.jsx(oUe,{children:f.jsx(Q.Dropdown,{trigger:f.jsx(sUe,{variant:"ghost",size:"small",icon:f.jsx(Q.OverflowMenuHorizontalIcon,{}),"data-testid":"request-status-menu-button"}),alignment:"start",placement:"bottom",children:f.jsx(oH,{children:f.jsx(iH,{messages:y,onClick:g,actions:O})})})})]})}),p&&c&&f.jsx(wI,{step:i,collectionId:o,onClose:d})]})}const K6e=T.div`
|
|
1484
1484
|
display: flex;
|
|
1485
1485
|
height: var(--spacing-lg);
|
|
1486
1486
|
align-items: center;
|
|
@@ -1536,7 +1536,7 @@ Use the data prop if you want to provide your own handlers.`);if(t.initialData){
|
|
|
1536
1536
|
padding: 0 var(--spacing-xxs);
|
|
1537
1537
|
`,aUe=1,sJ=194,aJ=195,lUe=196,W9=197,cUe=198,uUe=199,dUe=200,fUe=2,lJ=3,U9=201,pUe=24,hUe=25,gUe=49,mUe=50,OUe=55,yUe=56,vUe=57,bUe=59,xUe=60,SUe=61,wUe=62,PUe=63,CUe=65,$Ue=238,kUe=71,TUe=241,EUe=242,AUe=243,IUe=244,RUe=245,_Ue=246,jUe=247,QUe=248,cJ=72,DUe=249,NUe=250,MUe=251,qUe=252,zUe=253,LUe=254,VUe=255,XUe=256,WUe=73,UUe=77,BUe=263,FUe=112,ZUe=130,YUe=151,GUe=152,HUe=155,Uc=10,ag=13,PI=32,h1=9,CI=35,JUe=40,KUe=46,Hk=123,B9=125,uJ=39,dJ=34,F9=92,e8e=111,t8e=120,r8e=78,n8e=117,i8e=85,o8e=new Set([hUe,gUe,mUe,BUe,CUe,ZUe,yUe,vUe,$Ue,wUe,PUe,cJ,WUe,UUe,xUe,SUe,YUe,GUe,HUe,FUe]);function _P(t){return t==Uc||t==ag}function jP(t){return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}const s8e=new Lr((t,e)=>{let r;if(t.next<0)t.acceptToken(uUe);else if(e.context.flags&hv)_P(t.next)&&t.acceptToken(cUe,1);else if(((r=t.peek(-1))<0||_P(r))&&e.canShift(W9)){let n=0;for(;t.next==PI||t.next==h1;)t.advance(),n++;(t.next==Uc||t.next==ag||t.next==CI)&&t.acceptToken(W9,-n)}else _P(t.next)&&t.acceptToken(lUe,1)},{contextual:!0}),a8e=new Lr((t,e)=>{let r=e.context;if(r.flags)return;let n=t.peek(-1);if(n==Uc||n==ag){let i=0,o=0;for(;;){if(t.next==PI)i++;else if(t.next==h1)i+=8-i%8;else break;t.advance(),o++}i!=r.indent&&t.next!=Uc&&t.next!=ag&&t.next!=CI&&(i<r.indent?t.acceptToken(aJ,-o):t.acceptToken(sJ))}}),hv=1,fJ=2,ra=4,na=8,ia=16,oa=32;function gv(t,e,r){this.parent=t,this.indent=e,this.flags=r,this.hash=(t?t.hash+t.hash<<8:0)+e+(e<<4)+r+(r<<6)}const l8e=new gv(null,0,0);function c8e(t){let e=0;for(let r=0;r<t.length;r++)e+=t.charCodeAt(r)==h1?8-e%8:1;return e}const Z9=new Map([[TUe,0],[EUe,ra],[AUe,na],[IUe,na|ra],[RUe,ia],[_Ue,ia|ra],[jUe,ia|na],[QUe,ia|na|ra],[DUe,oa],[NUe,oa|ra],[MUe,oa|na],[qUe,oa|na|ra],[zUe,oa|ia],[LUe,oa|ia|ra],[VUe,oa|ia|na],[XUe,oa|ia|na|ra]].map(([t,e])=>[t,e|fJ])),u8e=new $g({start:l8e,reduce(t,e,r,n){return t.flags&hv&&o8e.has(e)||(e==kUe||e==cJ)&&t.flags&fJ?t.parent:t},shift(t,e,r,n){return e==sJ?new gv(t,c8e(n.read(n.pos,r.pos)),0):e==aJ?t.parent:e==pUe||e==OUe||e==bUe||e==lJ?new gv(t,0,hv):Z9.has(e)?new gv(t,0,Z9.get(e)|t.flags&hv):t},hash(t){return t.hash}}),d8e=new Lr(t=>{for(let e=0;e<5;e++){if(t.next!="print".charCodeAt(e))return;t.advance()}if(!/\w/.test(String.fromCharCode(t.next)))for(let e=0;;e++){let r=t.peek(e);if(!(r==PI||r==h1)){r!=JUe&&r!=KUe&&r!=Uc&&r!=ag&&r!=CI&&t.acceptToken(aUe);return}}}),f8e=new Lr((t,e)=>{let{flags:r}=e.context,n=r&ra?dJ:uJ,i=(r&na)>0,o=!(r&ia),s=(r&oa)>0,a=t.pos;for(;!(t.next<0);)if(s&&t.next==Hk)if(t.peek(1)==Hk)t.advance(2);else{if(t.pos==a){t.acceptToken(lJ,1);return}break}else if(o&&t.next==F9){if(t.pos==a){t.advance();let l=t.next;l>=0&&(t.advance(),p8e(t,l)),t.acceptToken(fUe);return}break}else if(t.next==F9&&!o&&t.peek(1)>-1)t.advance(2);else if(t.next==n&&(!i||t.peek(1)==n&&t.peek(2)==n)){if(t.pos==a){t.acceptToken(U9,i?3:1);return}break}else if(t.next==Uc){if(i)t.advance();else if(t.pos==a){t.acceptToken(U9);return}break}else t.advance();t.pos>a&&t.acceptToken(dUe)});function p8e(t,e){if(e==e8e)for(let r=0;r<2&&t.next>=48&&t.next<=55;r++)t.advance();else if(e==t8e)for(let r=0;r<2&&jP(t.next);r++)t.advance();else if(e==n8e)for(let r=0;r<4&&jP(t.next);r++)t.advance();else if(e==i8e)for(let r=0;r<8&&jP(t.next);r++)t.advance();else if(e==r8e&&t.next==Hk){for(t.advance();t.next>=0&&t.next!=B9&&t.next!=uJ&&t.next!=dJ&&t.next!=Uc;)t.advance();t.next==B9&&t.advance()}}const h8e=Ma({'async "*" "**" FormatConversion FormatSpec':N.modifier,"for while if elif else try except finally return raise break continue with pass assert await yield match case":N.controlKeyword,"in not and or is del":N.operatorKeyword,"from def class global nonlocal lambda":N.definitionKeyword,import:N.moduleKeyword,"with as print":N.keyword,Boolean:N.bool,None:N.null,VariableName:N.variableName,"CallExpression/VariableName":N.function(N.variableName),"FunctionDefinition/VariableName":N.function(N.definition(N.variableName)),"ClassDefinition/VariableName":N.definition(N.className),PropertyName:N.propertyName,"CallExpression/MemberExpression/PropertyName":N.function(N.propertyName),Comment:N.lineComment,Number:N.number,String:N.string,FormatString:N.special(N.string),Escape:N.escape,UpdateOp:N.updateOperator,"ArithOp!":N.arithmeticOperator,BitOp:N.bitwiseOperator,CompareOp:N.compareOperator,AssignOp:N.definitionOperator,Ellipsis:N.punctuation,At:N.meta,"( )":N.paren,"[ ]":N.squareBracket,"{ }":N.brace,".":N.derefOperator,", ;":N.separator}),g8e={__proto__:null,await:44,or:54,and:56,in:60,not:62,is:64,if:70,else:72,lambda:76,yield:94,from:96,async:102,for:104,None:162,True:164,False:164,del:178,pass:182,break:186,continue:190,return:194,raise:202,import:206,as:208,global:212,nonlocal:214,assert:218,type:223,elif:236,while:240,try:246,except:248,finally:250,with:254,def:258,class:268,match:279,case:285},m8e=Ro.deserialize({version:14,states:"##jO`QeOOP$}OSOOO&WQtO'#HUOOQS'#Co'#CoOOQS'#Cp'#CpO'vQdO'#CnO*UQtO'#HTOOQS'#HU'#HUOOQS'#DU'#DUOOQS'#HT'#HTO*rQdO'#D_O+VQdO'#DfO+gQdO'#DjO+zOWO'#DuO,VOWO'#DvO.[QtO'#GuOOQS'#Gu'#GuO'vQdO'#GtO0ZQtO'#GtOOQS'#Eb'#EbO0rQdO'#EcOOQS'#Gs'#GsO0|QdO'#GrOOQV'#Gr'#GrO1XQdO'#FYOOQS'#G^'#G^O1^QdO'#FXOOQV'#IS'#ISOOQV'#Gq'#GqOOQV'#Fq'#FqQ`QeOOO'vQdO'#CqO1lQdO'#C}O1sQdO'#DRO2RQdO'#HYO2cQtO'#EVO'vQdO'#EWOOQS'#EY'#EYOOQS'#E['#E[OOQS'#E^'#E^O2wQdO'#E`O3_QdO'#EdO3rQdO'#EfO3zQtO'#EfO1XQdO'#EiO0rQdO'#ElO1XQdO'#EnO0rQdO'#EtO0rQdO'#EwO4VQdO'#EyO4^QdO'#FOO4iQdO'#EzO0rQdO'#FOO1XQdO'#FQO1XQdO'#FVO4nQdO'#F[P4uOdO'#GpPOOO)CBd)CBdOOQS'#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!iQ%O!iV*c'm*d,g!Z!lQ!n#c#p$R$d$p$u$v$w$x$y$z%e%j%p%q&`'O'g(q(|)j*o*x+w,v0gR%T!kT#]^#_Q%x#[R,{+YQ(m%xS+_(n(oQ,}+`Q-x,{S.n-y-zR/^.oT+Z(k+]Q$`}Q&g$QQ)o'PR+{)pQ$XzQ)W&qR+i)XQ$XzQ&o$WQ)W&qR+i)XQ#khW$Vz$W&q)XQ$[{Q&r$ZZ)R&l)S+f+g-RR$^|R)c&wXlOn)t,PQ$f!RR'Q$gQ$m!UR'R$hR*X'_Q*V'_V-g,`-h.TQ.d-lQ/P.^R/Q._U.]-l.^._Q/U.aQ/b.tQ/g.zU/i.|/j/yQ/n/RQ/|/oQ0O/tU0Q/u0S0[Q0]0UQ0a0ZR0b0^R/T.`R/d.t",nodeNames:"⚠ print Escape { Comment Script AssignStatement * BinaryExpression BitOp BitOp BitOp BitOp ArithOp ArithOp @ ArithOp ** UnaryExpression ArithOp BitOp AwaitExpression await ) ( ParenthesizedExpression BinaryExpression or and CompareOp in not is UnaryExpression ConditionalExpression if else LambdaExpression lambda ParamList VariableName AssignOp , : NamedExpression AssignOp YieldExpression yield from TupleExpression ComprehensionExpression async for LambdaExpression ] [ ArrayExpression ArrayComprehensionExpression } { DictionaryExpression DictionaryComprehensionExpression SetExpression SetComprehensionExpression CallExpression ArgList AssignOp MemberExpression . PropertyName Number String FormatString FormatReplacement FormatSelfDoc FormatConversion FormatSpec FormatReplacement FormatSelfDoc ContinuedString Ellipsis None Boolean TypeDef AssignOp UpdateStatement UpdateOp ExpressionStatement DeleteStatement del PassStatement pass BreakStatement break ContinueStatement continue ReturnStatement return YieldStatement PrintStatement RaiseStatement raise ImportStatement import as ScopeStatement global nonlocal AssertStatement assert TypeDefinition type TypeParamList TypeParam StatementGroup ; IfStatement Body elif WhileStatement while ForStatement TryStatement try except finally WithStatement with FunctionDefinition def ParamList AssignOp TypeDef ClassDefinition class DecoratedStatement Decorator At MatchStatement match MatchBody MatchClause case CapturePattern LiteralPattern ArithOp ArithOp AsPattern OrPattern LogicOp AttributePattern SequencePattern MappingPattern StarPattern ClassPattern PatternArgList KeywordPattern KeywordPattern Guard",maxTerm:277,context:u8e,nodeProps:[["isolate",-5,4,71,72,73,77,""],["group",-15,6,85,87,88,90,92,94,96,98,99,100,102,105,108,110,"Statement Statement",-22,8,18,21,25,40,49,50,56,57,60,61,62,63,64,67,70,71,72,79,80,81,82,"Expression",-10,114,116,119,121,122,126,128,133,135,138,"Statement",-9,143,144,147,148,150,151,152,153,154,"Pattern"],["openedBy",23,"(",54,"[",58,"{"],["closedBy",24,")",55,"]",59,"}"]],propSources:[h8e],skippedNodes:[0,4],repeatNodeCount:34,tokenData:"!2|~R!`OX%TXY%oY[%T[]%o]p%Tpq%oqr'ars)Yst*xtu%Tuv,dvw-hwx.Uxy/tyz0[z{0r{|2S|}2p}!O3W!O!P4_!P!Q:Z!Q!R;k!R![>_![!]Do!]!^Es!^!_FZ!_!`Gk!`!aHX!a!b%T!b!cIf!c!dJU!d!eK^!e!hJU!h!i!#f!i!tJU!t!u!,|!u!wJU!w!x!.t!x!}JU!}#O!0S#O#P&o#P#Q!0j#Q#R!1Q#R#SJU#S#T%T#T#UJU#U#VK^#V#YJU#Y#Z!#f#Z#fJU#f#g!,|#g#iJU#i#j!.t#j#oJU#o#p!1n#p#q!1s#q#r!2a#r#s!2f#s$g%T$g;'SJU;'S;=`KW<%lOJU`%YT&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%T`%lP;=`<%l%To%v]&n`%c_OX%TXY%oY[%T[]%o]p%Tpq%oq#O%T#O#P&o#P#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%To&tX&n`OY%TYZ%oZ]%T]^%o^#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tc'f[&n`O!_%T!_!`([!`#T%T#T#U(r#U#f%T#f#g(r#g#h(r#h#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tc(cTmR&n`O#o%T#p#q%T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]||-1}],tokenPrec:7668}),Y9=new ME,pJ=new Set(["Script","Body","FunctionDefinition","ClassDefinition","LambdaExpression","ForStatement","MatchClause"]);function ly(t){return(e,r,n)=>{if(n)return!1;let i=e.node.getChild("VariableName");return i&&r(i,t),!0}}const O8e={FunctionDefinition:ly("function"),ClassDefinition:ly("class"),ForStatement(t,e,r){if(r){for(let n=t.node.firstChild;n;n=n.nextSibling)if(n.name=="VariableName")e(n,"variable");else if(n.name=="in")break}},ImportStatement(t,e){var r,n;let{node:i}=t,o=((r=i.firstChild)===null||r===void 0?void 0:r.name)=="from";for(let s=i.getChild("import");s;s=s.nextSibling)s.name=="VariableName"&&((n=s.nextSibling)===null||n===void 0?void 0:n.name)!="as"&&e(s,o?"variable":"namespace")},AssignStatement(t,e){for(let r=t.node.firstChild;r;r=r.nextSibling)if(r.name=="VariableName")e(r,"variable");else if(r.name==":"||r.name=="AssignOp")break},ParamList(t,e){for(let r=null,n=t.node.firstChild;n;n=n.nextSibling)n.name=="VariableName"&&(!r||!/\*|AssignOp/.test(r.name))&&e(n,"variable"),r=n},CapturePattern:ly("variable"),AsPattern:ly("variable"),__proto__:null};function hJ(t,e){let r=Y9.get(e);if(r)return r;let n=[],i=!0;function o(s,a){let l=t.sliceString(s.from,s.to);n.push({label:l,type:a})}return e.cursor(fr.IncludeAnonymous).iterate(s=>{if(s.name){let a=O8e[s.name];if(a&&a(s,o,i)||!i&&pJ.has(s.name))return!1;i=!1}else if(s.to-s.from>8192){for(let a of hJ(t,s.node))n.push(a);return!1}}),Y9.set(e,n),n}const G9=/^[\w\xa1-\uffff][\w\d\xa1-\uffff]*$/,gJ=["String","FormatString","Comment","PropertyName"];function y8e(t){let e=Sr(t.state).resolveInner(t.pos,-1);if(gJ.indexOf(e.name)>-1)return null;let r=e.name=="VariableName"||e.to-e.from<20&&G9.test(t.state.sliceDoc(e.from,e.to));if(!r&&!t.explicit)return null;let n=[];for(let i=e;i;i=i.parent)pJ.has(i.name)&&(n=n.concat(hJ(t.state.doc,i)));return{options:n,from:r?e.from:t.pos,validFor:G9}}const v8e=["__annotations__","__builtins__","__debug__","__doc__","__import__","__name__","__loader__","__package__","__spec__","False","None","True"].map(t=>({label:t,type:"constant"})).concat(["ArithmeticError","AssertionError","AttributeError","BaseException","BlockingIOError","BrokenPipeError","BufferError","BytesWarning","ChildProcessError","ConnectionAbortedError","ConnectionError","ConnectionRefusedError","ConnectionResetError","DeprecationWarning","EOFError","Ellipsis","EncodingWarning","EnvironmentError","Exception","FileExistsError","FileNotFoundError","FloatingPointError","FutureWarning","GeneratorExit","IOError","ImportError","ImportWarning","IndentationError","IndexError","InterruptedError","IsADirectoryError","KeyError","KeyboardInterrupt","LookupError","MemoryError","ModuleNotFoundError","NameError","NotADirectoryError","NotImplemented","NotImplementedError","OSError","OverflowError","PendingDeprecationWarning","PermissionError","ProcessLookupError","RecursionError","ReferenceError","ResourceWarning","RuntimeError","RuntimeWarning","StopAsyncIteration","StopIteration","SyntaxError","SyntaxWarning","SystemError","SystemExit","TabError","TimeoutError","TypeError","UnboundLocalError","UnicodeDecodeError","UnicodeEncodeError","UnicodeError","UnicodeTranslateError","UnicodeWarning","UserWarning","ValueError","Warning","ZeroDivisionError"].map(t=>({label:t,type:"type"}))).concat(["bool","bytearray","bytes","classmethod","complex","float","frozenset","int","list","map","memoryview","object","range","set","staticmethod","str","super","tuple","type"].map(t=>({label:t,type:"class"}))).concat(["abs","aiter","all","anext","any","ascii","bin","breakpoint","callable","chr","compile","delattr","dict","dir","divmod","enumerate","eval","exec","exit","filter","format","getattr","globals","hasattr","hash","help","hex","id","input","isinstance","issubclass","iter","len","license","locals","max","min","next","oct","open","ord","pow","print","property","quit","repr","reversed","round","setattr","slice","sorted","sum","vars","zip"].map(t=>({label:t,type:"function"}))),b8e=[Tr("def ${name}(${params}):\n ${}",{label:"def",detail:"function",type:"keyword"}),Tr("for ${name} in ${collection}:\n ${}",{label:"for",detail:"loop",type:"keyword"}),Tr("while ${}:\n ${}",{label:"while",detail:"loop",type:"keyword"}),Tr("try:\n ${}\nexcept ${error}:\n ${}",{label:"try",detail:"/ except block",type:"keyword"}),Tr(`if \${}:
|
|
1538
1538
|
|
|
1539
|
-
`,{label:"if",detail:"block",type:"keyword"}),Tr("if ${}:\n ${}\nelse:\n ${}",{label:"if",detail:"/ else block",type:"keyword"}),Tr("class ${name}:\n def __init__(self, ${params}):\n ${}",{label:"class",detail:"definition",type:"keyword"}),Tr("import ${module}",{label:"import",detail:"statement",type:"keyword"}),Tr("from ${module} import ${names}",{label:"from",detail:"import",type:"keyword"})],x8e=_B(gJ,dA(v8e.concat(b8e)));function QP(t){let{node:e,pos:r}=t,n=t.lineIndent(r,-1),i=null;for(;;){let o=e.childBefore(r);if(o)if(o.name=="Comment")r=o.from;else if(o.name=="Body"||o.name=="MatchBody")t.baseIndentFor(o)+t.unit<=n&&(i=o),e=o;else if(o.name=="MatchClause")e=o;else if(o.type.is("Statement"))e=o;else break;else break}return i}function DP(t,e){let r=t.baseIndentFor(e),n=t.lineAt(t.pos,-1),i=n.from+n.text.length;return/^\s*($|#)/.test(n.text)&&t.node.to<i+100&&!/\S/.test(t.state.sliceDoc(i,t.node.to))&&t.lineIndent(t.pos,-1)<=r||/^\s*(else:|elif |except |finally:|case\s+[^=:]+:)/.test(t.textAfter)&&t.lineIndent(t.pos,-1)>r?null:r+t.unit}const NP=Qo.define({name:"python",parser:m8e.configure({props:[js.add({Body:t=>{var e;let r=/^\s*(#|$)/.test(t.textAfter)&&QP(t)||t.node;return(e=DP(t,r))!==null&&e!==void 0?e:t.continue()},MatchBody:t=>{var e;let r=QP(t);return(e=DP(t,r||t.node))!==null&&e!==void 0?e:t.continue()},IfStatement:t=>/^\s*(else:|elif )/.test(t.textAfter)?t.baseIndent:t.continue(),"ForStatement WhileStatement":t=>/^\s*else:/.test(t.textAfter)?t.baseIndent:t.continue(),TryStatement:t=>/^\s*(except[ :]|finally:|else:)/.test(t.textAfter)?t.baseIndent:t.continue(),MatchStatement:t=>/^\s*case /.test(t.textAfter)?t.baseIndent+t.unit:t.continue(),"TupleExpression ComprehensionExpression ParamList ArgList ParenthesizedExpression":kc({closing:")"}),"DictionaryExpression DictionaryComprehensionExpression SetExpression SetComprehensionExpression":kc({closing:"}"}),"ArrayExpression ArrayComprehensionExpression":kc({closing:"]"}),MemberExpression:t=>t.baseIndent+t.unit,"String FormatString":()=>null,Script:t=>{var e;let r=QP(t);return(e=r&&DP(t,r))!==null&&e!==void 0?e:t.continue()}}),qa.add({"ArrayExpression DictionaryExpression SetExpression TupleExpression":gf,Body:(t,e)=>({from:t.from+1,to:t.to-(t.to==e.doc.length?0:1)}),"String FormatString":(t,e)=>({from:e.doc.lineAt(t.from).to,to:t.to})})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"'''",'"""'],stringPrefixes:["f","fr","rf","r","u","b","br","rb","F","FR","RF","R","U","B","BR","RB"]},commentTokens:{line:"#"},indentOnInput:/^\s*([\}\]\)]|else:|elif |except |finally:|case\s+[^:]*:?)$/}});function S8e(){return new Xl(NP,[NP.data.of({autocomplete:y8e}),NP.data.of({autocomplete:x8e})])}const w8e=Ma({null:N.null,instanceof:N.operatorKeyword,this:N.self,"new super assert open to with void":N.keyword,"class interface extends implements enum var":N.definitionKeyword,"module package import":N.moduleKeyword,"switch while for if else case default do break continue return try catch finally throw":N.controlKeyword,"requires exports opens uses provides public private protected static transitive abstract final strictfp synchronized native transient volatile throws":N.modifier,IntegerLiteral:N.integer,FloatingPointLiteral:N.float,"StringLiteral TextBlock":N.string,CharacterLiteral:N.character,LineComment:N.lineComment,BlockComment:N.blockComment,BooleanLiteral:N.bool,PrimitiveType:N.standard(N.typeName),TypeName:N.typeName,Identifier:N.variableName,"MethodName/Identifier":N.function(N.variableName),Definition:N.definition(N.variableName),ArithOp:N.arithmeticOperator,LogicOp:N.logicOperator,BitOp:N.bitwiseOperator,CompareOp:N.compareOperator,AssignOp:N.definitionOperator,UpdateOp:N.updateOperator,Asterisk:N.punctuation,Label:N.labelName,"( )":N.paren,"[ ]":N.squareBracket,"{ }":N.brace,".":N.derefOperator,", ;":N.separator}),P8e={__proto__:null,true:34,false:34,null:42,void:46,byte:48,short:48,int:48,long:48,char:48,float:48,double:48,boolean:48,extends:62,super:64,class:76,this:78,new:84,public:100,protected:102,private:104,abstract:106,static:108,final:110,strictfp:112,default:114,synchronized:116,native:118,transient:120,volatile:122,throws:150,implements:160,interface:166,enum:176,instanceof:238,open:267,module:269,requires:274,transitive:276,exports:278,to:280,opens:282,uses:284,provides:286,with:288,package:292,import:296,if:308,else:310,while:314,for:318,var:325,assert:332,switch:336,case:342,do:346,break:350,continue:354,return:358,throw:364,try:368,catch:372,finally:380},C8e=Ro.deserialize({version:14,states:"##jQ]QPOOQ$wQPOOO(bQQO'#H^O*iQQO'#CbOOQO'#Cb'#CbO*pQPO'#CaO*xOSO'#CpOOQO'#Hc'#HcOOQO'#Cu'#CuO,eQPO'#D_O-OQQO'#HmOOQO'#Hm'#HmO/gQQO'#HhO/nQQO'#HhOOQO'#Hh'#HhOOQO'#Hg'#HgO1rQPO'#DUO2PQPO'#GnO4wQPO'#D_O5OQPO'#DzO*pQPO'#E[O5qQPO'#E[OOQO'#DV'#DVO7SQQO'#HaO9^QQO'#EeO9eQPO'#EdO9jQPO'#EfOOQO'#Hb'#HbO7jQQO'#HbO:pQQO'#FhO:wQPO'#ExO:|QPO'#E}O:|QPO'#FPOOQO'#Ha'#HaOOQO'#HY'#HYOOQO'#Gh'#GhOOQO'#HX'#HXO<^QPO'#FiOOQO'#HW'#HWOOQO'#Gg'#GgQ]QPOOOOQO'#Hs'#HsO<cQPO'#HsO<hQPO'#D{O<hQPO'#EVO<hQPO'#EQO<pQPO'#HpO=RQQO'#EfO*pQPO'#C`O=ZQPO'#C`O*pQPO'#FcO=`QPO'#FeO=kQPO'#FkO=kQPO'#FnO<hQPO'#FsO=pQPO'#FpO:|QPO'#FwO=kQPO'#FyO]QPO'#GOO=uQPO'#GQO>QQPO'#GSO>]QPO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OT%W!g*|R%]!hW%U!e%V*z-aQ(z%^R,V({S#d`%bR&a#eQ)X%gT*t'`'iR*y'e[!lP!o'^*q-^/OR%X!gR#h`R,b)]R)a%kT-j+]-kQ/V-mR/z/WR/z/X",nodeNames:"⚠ LineComment BlockComment Program ModuleDeclaration MarkerAnnotation Identifier ScopedIdentifier . Annotation ) ( AnnotationArgumentList AssignmentExpression FieldAccess IntegerLiteral FloatingPointLiteral BooleanLiteral CharacterLiteral StringLiteral TextBlock null ClassLiteral void PrimitiveType TypeName ScopedTypeName GenericType TypeArguments AnnotatedType Wildcard extends super , ArrayType ] Dimension [ class this ParenthesizedExpression ObjectCreationExpression new ArgumentList } { ClassBody ; FieldDeclaration Modifiers public protected private abstract static final strictfp default synchronized native transient volatile VariableDeclarator Definition AssignOp ArrayInitializer MethodDeclaration TypeParameters TypeParameter TypeBound FormalParameters ReceiverParameter FormalParameter SpreadParameter Throws throws Block ClassDeclaration Superclass SuperInterfaces implements InterfaceTypeList InterfaceDeclaration interface ExtendsInterfaces InterfaceBody ConstantDeclaration EnumDeclaration enum EnumBody EnumConstant EnumBodyDeclarations AnnotationTypeDeclaration AnnotationTypeBody AnnotationTypeElementDeclaration StaticInitializer ConstructorDeclaration ConstructorBody ExplicitConstructorInvocation ArrayAccess MethodInvocation MethodName MethodReference ArrayCreationExpression Dimension AssignOp BinaryExpression CompareOp CompareOp LogicOp LogicOp BitOp BitOp BitOp ArithOp ArithOp ArithOp BitOp InstanceofExpression instanceof LambdaExpression InferredParameters TernaryExpression LogicOp : UpdateExpression UpdateOp UnaryExpression LogicOp BitOp CastExpression ElementValueArrayInitializer ElementValuePair open module ModuleBody ModuleDirective requires transitive exports to opens uses provides with PackageDeclaration package ImportDeclaration import Asterisk ExpressionStatement LabeledStatement Label IfStatement if else WhileStatement while ForStatement for ForSpec LocalVariableDeclaration var EnhancedForStatement ForSpec AssertStatement assert SwitchStatement switch SwitchBlock SwitchLabel case DoStatement do BreakStatement break ContinueStatement continue ReturnStatement return SynchronizedStatement ThrowStatement throw TryStatement try CatchClause catch CatchFormalParameter CatchType FinallyClause finally TryWithResourcesStatement ResourceSpecification Resource ClassContent",maxTerm:276,nodeProps:[["isolate",-4,1,2,18,19,""],["group",-26,4,47,76,77,82,87,92,145,147,150,151,153,156,158,161,163,165,167,172,174,176,178,180,181,183,191,"Statement",-25,6,13,14,15,16,17,18,19,20,21,22,39,40,41,99,100,102,103,106,118,120,122,125,127,130,"Expression",-7,23,24,25,26,27,29,34,"Type"],["openedBy",10,"(",44,"{"],["closedBy",11,")",45,"}"]],propSources:[w8e],skippedNodes:[0,1,2],repeatNodeCount:28,tokenData:"#'f_R!_OX%QXY'fYZ)bZ^'f^p%Qpq'fqr*|rs,^st%Qtu4euv5zvw7[wx8rxyAZyzAwz{Be{|CZ|}Dq}!OE_!O!PFx!P!Q! r!Q!R!,h!R![!0`![!]!>p!]!^!@Q!^!_!@n!_!`!BX!`!a!B{!a!b!Di!b!c!EX!c!}!LT!}#O!Mj#O#P%Q#P#Q!NW#Q#R!Nt#R#S4e#S#T%Q#T#o4e#o#p# h#p#q#!U#q#r##n#r#s#$[#s#y%Q#y#z'f#z$f%Q$f$g'f$g#BY4e#BY#BZ#$x#BZ$IS4e$IS$I_#$x$I_$I|4e$I|$JO#$x$JO$JT4e$JT$JU#$x$JU$KV4e$KV$KW#$x$KW&FU4e&FU&FV#$x&FV;'S4e;'S;=`5t<%lO4eS%VV&YSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QS%qO&YSS%tVOY&ZYZ%lZr&Zrs&ys;'S&Z;'S;=`'`<%lO&ZS&^VOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QS&vP;=`<%l%QS&|UOY&ZYZ%lZr&Zs;'S&Z;'S;=`'`<%lO&ZS'cP;=`<%l&Z_'mk&YS%yZOX%QXY'fYZ)bZ^'f^p%Qpq'fqr%Qrs%qs#y%Q#y#z'f#z$f%Q$f$g'f$g#BY%Q#BY#BZ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144}),$8e=Qo.define({name:"java",parser:C8e.configure({props:[js.add({IfStatement:va({except:/^\s*({|else\b)/}),TryStatement:va({except:/^\s*({|catch|finally)\b/}),LabeledStatement:G8,SwitchBlock:t=>{let e=t.textAfter,r=/^\s*\}/.test(e),n=/^\s*(case|default)\b/.test(e);return t.baseIndent+(r?0:n?1:2)*t.unit},Block:kc({closing:"}"}),BlockComment:()=>null,Statement:va({except:/^{/})}),qa.add({"Block SwitchBlock ClassBody ElementValueArrayInitializer ModuleBody EnumBody ConstructorBody InterfaceBody ArrayInitializer":gf,BlockComment(t){return{from:t.from+2,to:t.to-2}}})]}),languageData:{commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\})$/}});function k8e(){return new Xl($8e)}var Jk={};function $I(t,e){for(var r=0;r<e.length;r++)Jk[e[r]]=t}var mJ=["true","false"],OJ=["if","then","do","else","elif","while","until","for","in","esac","fi","fin","fil","done","exit","set","unset","export","function"],yJ=["ab","awk","bash","beep","cat","cc","cd","chown","chmod","chroot","clear","cp","curl","cut","diff","echo","find","gawk","gcc","get","git","grep","hg","kill","killall","ln","ls","make","mkdir","openssl","mv","nc","nl","node","npm","ping","ps","restart","rm","rmdir","sed","service","sh","shopt","shred","source","sort","sleep","ssh","start","stop","su","sudo","svn","tee","telnet","top","touch","vi","vim","wall","wc","wget","who","write","yes","zsh"];$I("atom",mJ);$I("keyword",OJ);$I("builtin",yJ);function T8e(t,e){if(t.eatSpace())return null;var r=t.sol(),n=t.next();if(n==="\\")return t.next(),null;if(n==="'"||n==='"'||n==="`")return e.tokens.unshift(g1(n,n==="`"?"quote":"string")),sf(t,e);if(n==="#")return r&&t.eat("!")?(t.skipToEnd(),"meta"):(t.skipToEnd(),"comment");if(n==="$")return e.tokens.unshift(vJ),sf(t,e);if(n==="+"||n==="=")return"operator";if(n==="-")return t.eat("-"),t.eatWhile(/\w/),"attribute";if(n=="<"){if(t.match("<<"))return"operator";var i=t.match(/^<-?\s*(?:['"]([^'"]*)['"]|([^'"\s]*))/);if(i)return e.tokens.unshift(A8e(i[1]||i[2])),"string.special"}if(/\d/.test(n)&&(t.eatWhile(/\d/),t.eol()||!/\w/.test(t.peek())))return"number";t.eatWhile(/[\w-]/);var o=t.current();return t.peek()==="="&&/\w+/.test(o)?"def":Jk.hasOwnProperty(o)?Jk[o]:null}function g1(t,e){var r=t=="("?")":t=="{"?"}":t;return function(n,i){for(var o,s=!1;(o=n.next())!=null;){if(o===r&&!s){i.tokens.shift();break}else if(o==="$"&&!s&&t!=="'"&&n.peek()!=r){s=!0,n.backUp(1),i.tokens.unshift(vJ);break}else{if(!s&&t!==r&&o===t)return i.tokens.unshift(g1(t,e)),sf(n,i);if(!s&&/['"]/.test(o)&&!/['"]/.test(t)){i.tokens.unshift(E8e(o,"string")),n.backUp(1);break}}s=!s&&o==="\\"}return e}}function E8e(t,e){return function(r,n){return n.tokens[0]=g1(t,e),r.next(),sf(r,n)}}var vJ=function(t,e){e.tokens.length>1&&t.eat("$");var r=t.next();return/['"({]/.test(r)?(e.tokens[0]=g1(r,r=="("?"quote":r=="{"?"def":"string"),sf(t,e)):(/\d/.test(r)||t.eatWhile(/\w/),e.tokens.shift(),"def")};function A8e(t){return function(e,r){return e.sol()&&e.string==t&&r.tokens.shift(),e.skipToEnd(),"string.special"}}function sf(t,e){return(e.tokens[0]||T8e)(t,e)}const bJ={name:"shell",startState:function(){return{tokens:[]}},token:function(t,e){return sf(t,e)},languageData:{autocomplete:mJ.concat(OJ,yJ),closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"#"}}},H9={shell:{extensions:[_x.define(bJ)]},javascript:{extensions:[Y$()]},node:{extensions:[Y$()]},python:{extensions:[S8e()]},java:{extensions:[k8e()]}};var xJ=t=>{var{theme:e,settings:r={},styles:n=[]}=t,i={".cm-gutters":{}},o={};r.background&&(o.backgroundColor=r.background),r.backgroundImage&&(o.backgroundImage=r.backgroundImage),r.foreground&&(o.color=r.foreground),r.fontSize&&(o.fontSize=r.fontSize),(r.background||r.foreground)&&(i["&"]=o),r.fontFamily&&(i["&.cm-editor .cm-scroller"]={fontFamily:r.fontFamily}),r.gutterBackground&&(i[".cm-gutters"].backgroundColor=r.gutterBackground),r.gutterForeground&&(i[".cm-gutters"].color=r.gutterForeground),r.gutterBorder&&(i[".cm-gutters"].borderRightColor=r.gutterBorder),r.caret&&(i[".cm-content"]={caretColor:r.caret},i[".cm-cursor, .cm-dropCursor"]={borderLeftColor:r.caret});var s={};r.gutterActiveForeground&&(s.color=r.gutterActiveForeground),r.lineHighlight&&(i[".cm-activeLine"]={backgroundColor:r.lineHighlight},s.backgroundColor=r.lineHighlight),i[".cm-activeLineGutter"]=s,r.selection&&(i["&.cm-focused .cm-selectionBackground, & .cm-line::selection, & .cm-selectionLayer .cm-selectionBackground, .cm-content ::selection"]={background:r.selection+" !important"}),r.selectionMatch&&(i["& .cm-selectionMatch"]={backgroundColor:r.selectionMatch});var a=Qe.theme(i,{dark:e==="dark"}),l=mf.define(n),c=[a,oA(l)];return c},I8e={background:"#2e3235",foreground:"#bdbdbd",caret:"#a0a4ae",selection:"#d7d4f063",selectionMatch:"#d7d4f063",gutterBackground:"#2e3235",gutterForeground:"#999",gutterActiveForeground:"#4f5b66",lineHighlight:"#545b6130"},kI=t=>{var{theme:e="dark",settings:r={},styles:n=[]}=t||{};return xJ({theme:e,settings:Je({},I8e,r),styles:[{tag:N.keyword,color:"#cf6edf"},{tag:[N.name,N.deleted,N.character,N.macroName],color:"#56c8d8"},{tag:[N.propertyName],color:"#facf4e"},{tag:[N.variableName],color:"#bdbdbd"},{tag:[N.function(N.variableName)],color:"#56c8d8"},{tag:[N.labelName],color:"#cf6edf"},{tag:[N.color,N.constant(N.name),N.standard(N.name)],color:"#facf4e"},{tag:[N.definition(N.name),N.separator],color:"#fa5788"},{tag:[N.brace],color:"#cf6edf"},{tag:[N.annotation],color:"#ff5f52"},{tag:[N.number,N.changed,N.annotation,N.modifier,N.self,N.namespace],color:"#ffad42"},{tag:[N.typeName,N.className],color:"#ffad42"},{tag:[N.operator,N.operatorKeyword],color:"#7186f0"},{tag:[N.tagName],color:"#99d066"},{tag:[N.squareBracket],color:"#ff5f52"},{tag:[N.angleBracket],color:"#606f7a"},{tag:[N.attributeName],color:"#bdbdbd"},{tag:[N.regexp],color:"#ff5f52"},{tag:[N.quote],color:"#6abf69"},{tag:[N.string],color:"#99d066"},{tag:N.link,color:"#56c8d8",textDecoration:"underline",textUnderlinePosition:"under"},{tag:[N.url,N.escape,N.special(N.string)],color:"#facf4e"},{tag:[N.meta],color:"#707d8b"},{tag:[N.comment],color:"#707d8b",fontStyle:"italic"},{tag:N.monospace,color:"#bdbdbd"},{tag:N.strong,fontWeight:"bold",color:"#ff5f52"},{tag:N.emphasis,fontStyle:"italic",color:"#99d066"},{tag:N.strikethrough,textDecoration:"line-through"},{tag:N.heading,fontWeight:"bold",color:"#facf4e"},{tag:N.heading1,fontWeight:"bold",color:"#facf4e"},{tag:[N.heading2,N.heading3,N.heading4],fontWeight:"bold",color:"#facf4e"},{tag:[N.heading5,N.heading6],color:"#facf4e"},{tag:[N.atom,N.bool,N.special(N.variableName)],color:"#56c8d8"},{tag:[N.processingInstruction,N.inserted],color:"#ff5f52"},{tag:[N.contentSeparator],color:"#56c8d8"},{tag:N.invalid,color:"#606f7a",borderBottom:"1px dotted #ff5f52"},...n]})},R8e=kI;kI();kI();var _8e={background:"#FAFAFA",foreground:"#90A4AE",caret:"#272727",selection:"#80CBC440",selectionMatch:"#80CBC440",gutterBackground:"#FAFAFA",gutterForeground:"#90A4AE",gutterBorder:"transparent",lineHighlight:"#CCD7DA50"},Kk=t=>{var{theme:e="light",settings:r={},styles:n=[]}=t||{};return xJ({theme:e,settings:Je({},_8e,r),styles:[{tag:N.keyword,color:"#39ADB5"},{tag:[N.name,N.deleted,N.character,N.macroName],color:"#90A4AE"},{tag:[N.propertyName],color:"#6182B8"},{tag:[N.processingInstruction,N.string,N.inserted,N.special(N.string)],color:"#91B859"},{tag:[N.function(N.variableName),N.labelName],color:"#6182B8"},{tag:[N.color,N.constant(N.name),N.standard(N.name)],color:"#39ADB5"},{tag:[N.definition(N.name),N.separator],color:"#90A4AE"},{tag:[N.className],color:"#E2931D"},{tag:[N.number,N.changed,N.annotation,N.modifier,N.self,N.namespace],color:"#F76D47"},{tag:[N.typeName],color:"#E2931D",fontStyle:"#E2931D"},{tag:[N.operator,N.operatorKeyword],color:"#39ADB5"},{tag:[N.url,N.escape,N.regexp,N.link],color:"#91B859"},{tag:[N.meta,N.comment],color:"#90A4AE"},{tag:N.strong,fontWeight:"bold"},{tag:N.emphasis,fontStyle:"italic"},{tag:N.link,textDecoration:"underline"},{tag:N.heading,fontWeight:"bold",color:"#39ADB5"},{tag:[N.atom,N.bool,N.special(N.variableName)],color:"#90A4AE"},{tag:N.invalid,color:"#E5393570"},{tag:N.strikethrough,textDecoration:"line-through"},...n]})};Kk();function j8e(t){const e={settings:{background:"var(--bg-color-tonal)",fontFamily:"var(--code-block-font-family)"},styles:[{tag:[N.propertyName],color:"var(--code-block-tokens-property-string-color)"},{tag:[N.processingInstruction,N.string,N.inserted,N.special(N.string)],color:"var(--code-block-tokens-string-color)"},{tag:[N.atom,N.bool,N.special(N.variableName)],color:"var(--text-color-secondary)"}]};switch(t){case"light":return Kk(e);case"dark":return R8e(e);default:return Kk(e)}}function Q8e(t){return t==="auto"?SJ():t}function D8e(t){document.documentElement.className=t}function SJ(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function wJ(){if(typeof window>"u")return"light";const t=document.documentElement;return t.classList.contains("dark")?"dark":t.classList.contains("light")?"light":SJ()}const N8e=t=>t===0?"No matches":t>1e3?"1000+ matches":`${t} ${t===1?"match":"matches"}`,M8e=({dataTestId:t,visible:e,view:r,onClose:n})=>{const{sendEvent:i}=st(),[o,s]=$.useState(""),a=l1(o,100),[l,c]=$.useState(0),u=$.useRef(e);$.useEffect(()=>{u.current!==e&&(i("code_editor.search",{editor_id:t,action:e?"open":"close"}),u.current=e)},[e,i,t]),$.useEffect(()=>{if(!r||!a){c(0);return}const g=new kA({search:a,caseSensitive:!1,regexp:!1,wholeWord:!1});r.dispatch({effects:Yd.of(g)});const O=r.state,y=g.getCursor(O);let v=0;for(;!(y.next().done||(v++,v>1e3)););c(v)},[r,a]);const d=()=>{r&&Yh(r)},p=()=>{r&&Gh(r)},h=g=>{g.key==="Enter"?(g.preventDefault(),g.shiftKey?p():d()):g.key==="Escape"&&(g.preventDefault(),n(),r?.focus())},m=()=>{s(""),n(),r?.focus()};return e?f.jsx(z8e,{onClick:g=>g.stopPropagation(),children:f.jsxs(L8e,{children:[f.jsx(V8e,{autoFocus:!0,type:"text",value:o,onChange:g=>s(g.target.value),placeholder:"Search...",spellCheck:!1,onKeyDown:h}),f.jsxs(X8e,{children:[f.jsx(W8e,{children:N8e(l)}),f.jsx(U8e,{}),f.jsx(Q.Tooltip,{tip:"Previous match (Shift + Enter)",placement:"bottom",width:"120px",children:f.jsx(Q.Button,{size:"small",variant:"text",onClick:p,disabled:l===0,icon:f.jsx(q8e,{})})}),f.jsx(Q.Tooltip,{tip:"Next match (Enter)",placement:"bottom",width:"145px",children:f.jsx(Q.Button,{size:"small",variant:"text",onClick:d,disabled:l===0,icon:f.jsx(Q.ArrowDownIcon,{})})}),f.jsx(Q.Tooltip,{tip:"Close (Esc)",placement:"bottom",width:"95px",children:f.jsx(Q.Button,{size:"small",variant:"text",icon:f.jsx(Q.CloseIcon,{}),onClick:m})})]})]})}):null},q8e=T(Q.ArrowDownIcon)`
|
|
1539
|
+
`,{label:"if",detail:"block",type:"keyword"}),Tr("if ${}:\n ${}\nelse:\n ${}",{label:"if",detail:"/ else block",type:"keyword"}),Tr("class ${name}:\n def __init__(self, ${params}):\n ${}",{label:"class",detail:"definition",type:"keyword"}),Tr("import ${module}",{label:"import",detail:"statement",type:"keyword"}),Tr("from ${module} import ${names}",{label:"from",detail:"import",type:"keyword"})],x8e=_B(gJ,dA(v8e.concat(b8e)));function QP(t){let{node:e,pos:r}=t,n=t.lineIndent(r,-1),i=null;for(;;){let o=e.childBefore(r);if(o)if(o.name=="Comment")r=o.from;else if(o.name=="Body"||o.name=="MatchBody")t.baseIndentFor(o)+t.unit<=n&&(i=o),e=o;else if(o.name=="MatchClause")e=o;else if(o.type.is("Statement"))e=o;else break;else break}return i}function DP(t,e){let r=t.baseIndentFor(e),n=t.lineAt(t.pos,-1),i=n.from+n.text.length;return/^\s*($|#)/.test(n.text)&&t.node.to<i+100&&!/\S/.test(t.state.sliceDoc(i,t.node.to))&&t.lineIndent(t.pos,-1)<=r||/^\s*(else:|elif |except |finally:|case\s+[^=:]+:)/.test(t.textAfter)&&t.lineIndent(t.pos,-1)>r?null:r+t.unit}const NP=Qo.define({name:"python",parser:m8e.configure({props:[js.add({Body:t=>{var e;let r=/^\s*(#|$)/.test(t.textAfter)&&QP(t)||t.node;return(e=DP(t,r))!==null&&e!==void 0?e:t.continue()},MatchBody:t=>{var e;let r=QP(t);return(e=DP(t,r||t.node))!==null&&e!==void 0?e:t.continue()},IfStatement:t=>/^\s*(else:|elif )/.test(t.textAfter)?t.baseIndent:t.continue(),"ForStatement WhileStatement":t=>/^\s*else:/.test(t.textAfter)?t.baseIndent:t.continue(),TryStatement:t=>/^\s*(except[ :]|finally:|else:)/.test(t.textAfter)?t.baseIndent:t.continue(),MatchStatement:t=>/^\s*case /.test(t.textAfter)?t.baseIndent+t.unit:t.continue(),"TupleExpression ComprehensionExpression ParamList ArgList ParenthesizedExpression":kc({closing:")"}),"DictionaryExpression DictionaryComprehensionExpression SetExpression SetComprehensionExpression":kc({closing:"}"}),"ArrayExpression ArrayComprehensionExpression":kc({closing:"]"}),MemberExpression:t=>t.baseIndent+t.unit,"String FormatString":()=>null,Script:t=>{var e;let r=QP(t);return(e=r&&DP(t,r))!==null&&e!==void 0?e:t.continue()}}),qa.add({"ArrayExpression DictionaryExpression SetExpression TupleExpression":gf,Body:(t,e)=>({from:t.from+1,to:t.to-(t.to==e.doc.length?0:1)}),"String FormatString":(t,e)=>({from:e.doc.lineAt(t.from).to,to:t.to})})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"'''",'"""'],stringPrefixes:["f","fr","rf","r","u","b","br","rb","F","FR","RF","R","U","B","BR","RB"]},commentTokens:{line:"#"},indentOnInput:/^\s*([\}\]\)]|else:|elif |except |finally:|case\s+[^:]*:?)$/}});function S8e(){return new Xl(NP,[NP.data.of({autocomplete:y8e}),NP.data.of({autocomplete:x8e})])}const w8e=Ma({null:N.null,instanceof:N.operatorKeyword,this:N.self,"new super assert open to with void":N.keyword,"class interface extends implements enum var":N.definitionKeyword,"module package import":N.moduleKeyword,"switch while for if else case default do break continue return try catch finally throw":N.controlKeyword,"requires exports opens uses provides public private protected static transitive abstract final strictfp synchronized native transient volatile throws":N.modifier,IntegerLiteral:N.integer,FloatingPointLiteral:N.float,"StringLiteral TextBlock":N.string,CharacterLiteral:N.character,LineComment:N.lineComment,BlockComment:N.blockComment,BooleanLiteral:N.bool,PrimitiveType:N.standard(N.typeName),TypeName:N.typeName,Identifier:N.variableName,"MethodName/Identifier":N.function(N.variableName),Definition:N.definition(N.variableName),ArithOp:N.arithmeticOperator,LogicOp:N.logicOperator,BitOp:N.bitwiseOperator,CompareOp:N.compareOperator,AssignOp:N.definitionOperator,UpdateOp:N.updateOperator,Asterisk:N.punctuation,Label:N.labelName,"( )":N.paren,"[ ]":N.squareBracket,"{ }":N.brace,".":N.derefOperator,", ;":N.separator}),P8e={__proto__:null,true:34,false:34,null:42,void:46,byte:48,short:48,int:48,long:48,char:48,float:48,double:48,boolean:48,extends:62,super:64,class:76,this:78,new:84,public:100,protected:102,private:104,abstract:106,static:108,final:110,strictfp:112,default:114,synchronized:116,native:118,transient:120,volatile:122,throws:150,implements:160,interface:166,enum:176,instanceof:238,open:267,module:269,requires:274,transitive:276,exports:278,to:280,opens:282,uses:284,provides:286,with:288,package:292,import:296,if:308,else:310,while:314,for:318,var:325,assert:332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i+l+o+s+x,Y,^,`-^-r-t-}.R.X.g.m/O/[/_/b/d/e/n0Z0f0k0rR&P#Y$QjOcopx!Y![!_!a#l#u#w#x#|#}$O$P$Q$R$S$T$U$V$Z$_$l$m$n$o$p$q%O%d%k%v&d'm(O(T(U)Q)R)])f*P*l*o+T+d+h+i+l+o+s,Y,`-r-t-}.R.g.m/[/_/b/d/n0Z0f0kQ#f`Q&O#YQ'Y$YU)W%g'`'iQ)}&bQ*s'_Q,Q(tQ,j)oQ,k)pR.c,^Q)n%}R,i)m$SfO`copx!Y![!_!a#l#u#w#x#|#}$O$P$Q$R$S$T$U$V$Z$_$l$m$n$o$p$q%O%d%k%v&d'm(O(T(U)Q)R)])f*P*l*o+T+d+h+i+l+o+s,Y,`-r-t-}.R.g.m/[/_/b/d/n0Z0f0kT&p#t,ZQ&|#xQ(P$oQ-u+hQ/]-tR0P/_]!nP!o'^*q-^/O#PaOPX`bcx![!f!o!y#_#e#l$_$m$n$o$p$q%O%b%d&]&i'^'e'h'{(U)O)Q)R*W*q+O+d+l+s+x,Y-[-^.R/O/dU#WY!W'|Q%T!eU&k#n#s+fQ(o%VS,s*T*zT.s,u-aj#UY!W!e#n#s%V%w&W)y*T*z,u-aU&V#`&`(}Q)x&[Q+e'|Q+q(`Q-s+fQ.O+rQ/g.WR0U/hQ)i%vQ,g)fR/o.mR,h)f`!jP!o'^'h*q+O-^/OT%W!g*|R%]!hW%U!e%V*z-aQ(z%^R,V({S#d`%bR&a#eQ)X%gT*t'`'iR*y'e[!lP!o'^*q-^/OR%X!gR#h`R,b)]R)a%kT-j+]-kQ/V-mR/z/WR/z/X",nodeNames:"⚠ LineComment BlockComment Program ModuleDeclaration MarkerAnnotation Identifier ScopedIdentifier . Annotation ) ( AnnotationArgumentList AssignmentExpression FieldAccess IntegerLiteral FloatingPointLiteral BooleanLiteral CharacterLiteral StringLiteral TextBlock null ClassLiteral void PrimitiveType TypeName ScopedTypeName GenericType TypeArguments AnnotatedType Wildcard extends super , ArrayType ] Dimension [ class this ParenthesizedExpression ObjectCreationExpression new ArgumentList } { ClassBody ; FieldDeclaration Modifiers public protected private abstract static final strictfp default synchronized native transient volatile VariableDeclarator Definition AssignOp ArrayInitializer MethodDeclaration TypeParameters TypeParameter TypeBound FormalParameters ReceiverParameter FormalParameter SpreadParameter Throws throws Block ClassDeclaration Superclass SuperInterfaces implements InterfaceTypeList InterfaceDeclaration interface ExtendsInterfaces InterfaceBody ConstantDeclaration EnumDeclaration enum EnumBody EnumConstant EnumBodyDeclarations AnnotationTypeDeclaration AnnotationTypeBody AnnotationTypeElementDeclaration StaticInitializer ConstructorDeclaration ConstructorBody ExplicitConstructorInvocation ArrayAccess MethodInvocation MethodName MethodReference ArrayCreationExpression Dimension AssignOp BinaryExpression CompareOp CompareOp LogicOp LogicOp BitOp BitOp BitOp ArithOp ArithOp ArithOp BitOp InstanceofExpression instanceof LambdaExpression InferredParameters TernaryExpression LogicOp : UpdateExpression UpdateOp UnaryExpression LogicOp BitOp CastExpression ElementValueArrayInitializer ElementValuePair open module ModuleBody ModuleDirective requires transitive exports to opens uses provides with PackageDeclaration package ImportDeclaration import Asterisk ExpressionStatement LabeledStatement Label IfStatement if else WhileStatement while ForStatement for ForSpec LocalVariableDeclaration var EnhancedForStatement ForSpec AssertStatement assert SwitchStatement switch SwitchBlock SwitchLabel case DoStatement do BreakStatement break ContinueStatement continue ReturnStatement return SynchronizedStatement ThrowStatement throw TryStatement try CatchClause catch CatchFormalParameter CatchType FinallyClause finally TryWithResourcesStatement ResourceSpecification Resource ClassContent",maxTerm:276,nodeProps:[["isolate",-4,1,2,18,19,""],["group",-26,4,47,76,77,82,87,92,145,147,150,151,153,156,158,161,163,165,167,172,174,176,178,180,181,183,191,"Statement",-25,6,13,14,15,16,17,18,19,20,21,22,39,40,41,99,100,102,103,106,118,120,122,125,127,130,"Expression",-7,23,24,25,26,27,29,34,"Type"],["openedBy",10,"(",44,"{"],["closedBy",11,")",45,"}"]],propSources:[w8e],skippedNodes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;=`&s<%lO%QU!N{X#eQ&YSOY%QYZ%lZr%Qrs%qs!_%Q!_!`6n!`;'S%Q;'S;=`&s<%lO%QV# oV}R&YSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%Q_#!_Z'OX#dQ&YSOY%QYZ%lZr%Qrs%qs!_%Q!_!`6n!`#p%Q#p#q##Q#q;'S%Q;'S;=`&s<%lO%QU##XV#bQ&YSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QV##uV|R&YSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QT#$cV#uP&YSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%Q_#%Ru&YS%yZ&PZOX%QXY'fYZ)bZ^'f^p%Qpq'fqr%Qrs%qst%Qtu4eu!Q%Q!Q![4e![!c%Q!c!}4e!}#R%Q#R#S4e#S#T%Q#T#o4e#o#y%Q#y#z'f#z$f%Q$f$g'f$g#BY4e#BY#BZ#$x#BZ$IS4e$IS$I_#$x$I_$I|4e$I|$JO#$x$JO$JT4e$JT$JU#$x$JU$KV4e$KV$KW#$x$KW&FU4e&FU&FV#$x&FV;'S4e;'S;=`5t<%lO4e",tokenizers:[0,1,2,3],topRules:{Program:[0,3],ClassContent:[1,194]},dynamicPrecedences:{27:1,232:-1,243:-1},specialized:[{term:231,get:t=>P8e[t]||-1}],tokenPrec:7144}),$8e=Qo.define({name:"java",parser:C8e.configure({props:[js.add({IfStatement:va({except:/^\s*({|else\b)/}),TryStatement:va({except:/^\s*({|catch|finally)\b/}),LabeledStatement:G8,SwitchBlock:t=>{let e=t.textAfter,r=/^\s*\}/.test(e),n=/^\s*(case|default)\b/.test(e);return t.baseIndent+(r?0:n?1:2)*t.unit},Block:kc({closing:"}"}),BlockComment:()=>null,Statement:va({except:/^{/})}),qa.add({"Block SwitchBlock ClassBody ElementValueArrayInitializer ModuleBody EnumBody ConstructorBody InterfaceBody ArrayInitializer":gf,BlockComment(t){return{from:t.from+2,to:t.to-2}}})]}),languageData:{commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\})$/}});function k8e(){return new Xl($8e)}var Jk={};function $I(t,e){for(var r=0;r<e.length;r++)Jk[e[r]]=t}var mJ=["true","false"],OJ=["if","then","do","else","elif","while","until","for","in","esac","fi","fin","fil","done","exit","set","unset","export","function"],yJ=["ab","awk","bash","beep","cat","cc","cd","chown","chmod","chroot","clear","cp","curl","cut","diff","echo","find","gawk","gcc","get","git","grep","hg","kill","killall","ln","ls","make","mkdir","openssl","mv","nc","nl","node","npm","ping","ps","restart","rm","rmdir","sed","service","sh","shopt","shred","source","sort","sleep","ssh","start","stop","su","sudo","svn","tee","telnet","top","touch","vi","vim","wall","wc","wget","who","write","yes","zsh"];$I("atom",mJ);$I("keyword",OJ);$I("builtin",yJ);function T8e(t,e){if(t.eatSpace())return null;var r=t.sol(),n=t.next();if(n==="\\")return t.next(),null;if(n==="'"||n==='"'||n==="`")return e.tokens.unshift(g1(n,n==="`"?"quote":"string")),sf(t,e);if(n==="#")return r&&t.eat("!")?(t.skipToEnd(),"meta"):(t.skipToEnd(),"comment");if(n==="$")return e.tokens.unshift(vJ),sf(t,e);if(n==="+"||n==="=")return"operator";if(n==="-")return t.eat("-"),t.eatWhile(/\w/),"attribute";if(n=="<"){if(t.match("<<"))return"operator";var i=t.match(/^<-?\s*(?:['"]([^'"]*)['"]|([^'"\s]*))/);if(i)return e.tokens.unshift(A8e(i[1]||i[2])),"string.special"}if(/\d/.test(n)&&(t.eatWhile(/\d/),t.eol()||!/\w/.test(t.peek())))return"number";t.eatWhile(/[\w-]/);var o=t.current();return t.peek()==="="&&/\w+/.test(o)?"def":Jk.hasOwnProperty(o)?Jk[o]:null}function g1(t,e){var r=t=="("?")":t=="{"?"}":t;return function(n,i){for(var o,s=!1;(o=n.next())!=null;){if(o===r&&!s){i.tokens.shift();break}else if(o==="$"&&!s&&t!=="'"&&n.peek()!=r){s=!0,n.backUp(1),i.tokens.unshift(vJ);break}else{if(!s&&t!==r&&o===t)return i.tokens.unshift(g1(t,e)),sf(n,i);if(!s&&/['"]/.test(o)&&!/['"]/.test(t)){i.tokens.unshift(E8e(o,"string")),n.backUp(1);break}}s=!s&&o==="\\"}return e}}function E8e(t,e){return function(r,n){return n.tokens[0]=g1(t,e),r.next(),sf(r,n)}}var vJ=function(t,e){e.tokens.length>1&&t.eat("$");var r=t.next();return/['"({]/.test(r)?(e.tokens[0]=g1(r,r=="("?"quote":r=="{"?"def":"string"),sf(t,e)):(/\d/.test(r)||t.eatWhile(/\w/),e.tokens.shift(),"def")};function A8e(t){return function(e,r){return e.sol()&&e.string==t&&r.tokens.shift(),e.skipToEnd(),"string.special"}}function sf(t,e){return(e.tokens[0]||T8e)(t,e)}const bJ={name:"shell",startState:function(){return{tokens:[]}},token:function(t,e){return sf(t,e)},languageData:{autocomplete:mJ.concat(OJ,yJ),closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"#"}}},H9={shell:{extensions:[_x.define(bJ)]},javascript:{extensions:[Y$()]},node:{extensions:[Y$()]},python:{extensions:[S8e()]},java:{extensions:[k8e()]}};var xJ=t=>{var{theme:e,settings:r={},styles:n=[]}=t,i={".cm-gutters":{}},o={};r.background&&(o.backgroundColor=r.background),r.backgroundImage&&(o.backgroundImage=r.backgroundImage),r.foreground&&(o.color=r.foreground),r.fontSize&&(o.fontSize=r.fontSize),(r.background||r.foreground)&&(i["&"]=o),r.fontFamily&&(i["&.cm-editor .cm-scroller"]={fontFamily:r.fontFamily}),r.gutterBackground&&(i[".cm-gutters"].backgroundColor=r.gutterBackground),r.gutterForeground&&(i[".cm-gutters"].color=r.gutterForeground),r.gutterBorder&&(i[".cm-gutters"].borderRightColor=r.gutterBorder),r.caret&&(i[".cm-content"]={caretColor:r.caret},i[".cm-cursor, .cm-dropCursor"]={borderLeftColor:r.caret});var s={};r.gutterActiveForeground&&(s.color=r.gutterActiveForeground),r.lineHighlight&&(i[".cm-activeLine"]={backgroundColor:r.lineHighlight},s.backgroundColor=r.lineHighlight),i[".cm-activeLineGutter"]=s,r.selection&&(i["&.cm-focused .cm-selectionBackground, & .cm-line::selection, & .cm-selectionLayer .cm-selectionBackground, .cm-content ::selection"]={background:r.selection+" !important"}),r.selectionMatch&&(i["& .cm-selectionMatch"]={backgroundColor:r.selectionMatch});var a=Qe.theme(i,{dark:e==="dark"}),l=mf.define(n),c=[a,oA(l)];return c},I8e={background:"#2e3235",foreground:"#bdbdbd",caret:"#a0a4ae",selection:"#d7d4f063",selectionMatch:"#d7d4f063",gutterBackground:"#2e3235",gutterForeground:"#999",gutterActiveForeground:"#4f5b66",lineHighlight:"#545b6130"},kI=t=>{var{theme:e="dark",settings:r={},styles:n=[]}=t||{};return xJ({theme:e,settings:Je({},I8e,r),styles:[{tag:N.keyword,color:"#cf6edf"},{tag:[N.name,N.deleted,N.character,N.macroName],color:"#56c8d8"},{tag:[N.propertyName],color:"#facf4e"},{tag:[N.variableName],color:"#bdbdbd"},{tag:[N.function(N.variableName)],color:"#56c8d8"},{tag:[N.labelName],color:"#cf6edf"},{tag:[N.color,N.constant(N.name),N.standard(N.name)],color:"#facf4e"},{tag:[N.definition(N.name),N.separator],color:"#fa5788"},{tag:[N.brace],color:"#cf6edf"},{tag:[N.annotation],color:"#ff5f52"},{tag:[N.number,N.changed,N.annotation,N.modifier,N.self,N.namespace],color:"#ffad42"},{tag:[N.typeName,N.className],color:"#ffad42"},{tag:[N.operator,N.operatorKeyword],color:"#7186f0"},{tag:[N.tagName],color:"#99d066"},{tag:[N.squareBracket],color:"#ff5f52"},{tag:[N.angleBracket],color:"#606f7a"},{tag:[N.attributeName],color:"#bdbdbd"},{tag:[N.regexp],color:"#ff5f52"},{tag:[N.quote],color:"#6abf69"},{tag:[N.string],color:"#99d066"},{tag:N.link,color:"#56c8d8",textDecoration:"underline",textUnderlinePosition:"under"},{tag:[N.url,N.escape,N.special(N.string)],color:"#facf4e"},{tag:[N.meta],color:"#707d8b"},{tag:[N.comment],color:"#707d8b",fontStyle:"italic"},{tag:N.monospace,color:"#bdbdbd"},{tag:N.strong,fontWeight:"bold",color:"#ff5f52"},{tag:N.emphasis,fontStyle:"italic",color:"#99d066"},{tag:N.strikethrough,textDecoration:"line-through"},{tag:N.heading,fontWeight:"bold",color:"#facf4e"},{tag:N.heading1,fontWeight:"bold",color:"#facf4e"},{tag:[N.heading2,N.heading3,N.heading4],fontWeight:"bold",color:"#facf4e"},{tag:[N.heading5,N.heading6],color:"#facf4e"},{tag:[N.atom,N.bool,N.special(N.variableName)],color:"#56c8d8"},{tag:[N.processingInstruction,N.inserted],color:"#ff5f52"},{tag:[N.contentSeparator],color:"#56c8d8"},{tag:N.invalid,color:"#606f7a",borderBottom:"1px dotted #ff5f52"},...n]})},R8e=kI;kI();kI();var _8e={background:"#FAFAFA",foreground:"#90A4AE",caret:"#272727",selection:"#80CBC440",selectionMatch:"#80CBC440",gutterBackground:"#FAFAFA",gutterForeground:"#90A4AE",gutterBorder:"transparent",lineHighlight:"#CCD7DA50"},Kk=t=>{var{theme:e="light",settings:r={},styles:n=[]}=t||{};return xJ({theme:e,settings:Je({},_8e,r),styles:[{tag:N.keyword,color:"#39ADB5"},{tag:[N.name,N.deleted,N.character,N.macroName],color:"#90A4AE"},{tag:[N.propertyName],color:"#6182B8"},{tag:[N.processingInstruction,N.string,N.inserted,N.special(N.string)],color:"#91B859"},{tag:[N.function(N.variableName),N.labelName],color:"#6182B8"},{tag:[N.color,N.constant(N.name),N.standard(N.name)],color:"#39ADB5"},{tag:[N.definition(N.name),N.separator],color:"#90A4AE"},{tag:[N.className],color:"#E2931D"},{tag:[N.number,N.changed,N.annotation,N.modifier,N.self,N.namespace],color:"#F76D47"},{tag:[N.typeName],color:"#E2931D",fontStyle:"#E2931D"},{tag:[N.operator,N.operatorKeyword],color:"#39ADB5"},{tag:[N.url,N.escape,N.regexp,N.link],color:"#91B859"},{tag:[N.meta,N.comment],color:"#90A4AE"},{tag:N.strong,fontWeight:"bold"},{tag:N.emphasis,fontStyle:"italic"},{tag:N.link,textDecoration:"underline"},{tag:N.heading,fontWeight:"bold",color:"#39ADB5"},{tag:[N.atom,N.bool,N.special(N.variableName)],color:"#90A4AE"},{tag:N.invalid,color:"#E5393570"},{tag:N.strikethrough,textDecoration:"line-through"},...n]})};Kk();function j8e(t){const e={settings:{background:"var(--bg-color-tonal)",fontFamily:"var(--code-block-font-family)"},styles:[{tag:[N.propertyName],color:"var(--code-block-tokens-property-string-color)"},{tag:[N.processingInstruction,N.string,N.inserted,N.special(N.string)],color:"var(--code-block-tokens-string-color)"},{tag:[N.atom,N.bool,N.special(N.variableName)],color:"var(--text-color-secondary)"}]};switch(t){case"light":return Kk(e);case"dark":return R8e(e);default:return Kk(e)}}function Q8e(t){return t==="auto"?SJ():t}function D8e(t){document.documentElement.className=t}function SJ(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function wJ(){if(typeof window>"u")return"light";const t=document.documentElement;return t.classList.contains("dark")?"dark":t.classList.contains("light")?"light":SJ()}const N8e=t=>t===0?"No matches":t>1e3?"1000+ matches":`${t} ${t===1?"match":"matches"}`,M8e=({dataTestId:t,visible:e,view:r,onClose:n})=>{const{sendEvent:i}=st(),[o,s]=$.useState(""),a=l1(o,100),[l,c]=$.useState(0),u=$.useRef(e);$.useEffect(()=>{u.current!==e&&(i("code_editor.search",[{editor_id:t,action:e?"open":"close"}]),u.current=e)},[e,i,t]),$.useEffect(()=>{if(!r||!a){c(0);return}const g=new kA({search:a,caseSensitive:!1,regexp:!1,wholeWord:!1});r.dispatch({effects:Yd.of(g)});const O=r.state,y=g.getCursor(O);let v=0;for(;!(y.next().done||(v++,v>1e3)););c(v)},[r,a]);const d=()=>{r&&Yh(r)},p=()=>{r&&Gh(r)},h=g=>{g.key==="Enter"?(g.preventDefault(),g.shiftKey?p():d()):g.key==="Escape"&&(g.preventDefault(),n(),r?.focus())},m=()=>{s(""),n(),r?.focus()};return e?f.jsx(z8e,{onClick:g=>g.stopPropagation(),children:f.jsxs(L8e,{children:[f.jsx(V8e,{autoFocus:!0,type:"text",value:o,onChange:g=>s(g.target.value),placeholder:"Search...",spellCheck:!1,onKeyDown:h}),f.jsxs(X8e,{children:[f.jsx(W8e,{children:N8e(l)}),f.jsx(U8e,{}),f.jsx(Q.Tooltip,{tip:"Previous match (Shift + Enter)",placement:"bottom",width:"120px",children:f.jsx(Q.Button,{size:"small",variant:"text",onClick:p,disabled:l===0,icon:f.jsx(q8e,{})})}),f.jsx(Q.Tooltip,{tip:"Next match (Enter)",placement:"bottom",width:"145px",children:f.jsx(Q.Button,{size:"small",variant:"text",onClick:d,disabled:l===0,icon:f.jsx(Q.ArrowDownIcon,{})})}),f.jsx(Q.Tooltip,{tip:"Close (Esc)",placement:"bottom",width:"95px",children:f.jsx(Q.Button,{size:"small",variant:"text",icon:f.jsx(Q.CloseIcon,{}),onClick:m})})]})]})}):null},q8e=T(Q.ArrowDownIcon)`
|
|
1540
1540
|
transform: rotate(180deg);
|
|
1541
1541
|
`,z8e=T.div`
|
|
1542
1542
|
position: absolute;
|
|
@@ -1722,7 +1722,7 @@ Use the data prop if you want to provide your own handlers.`);if(t.initialData){
|
|
|
1722
1722
|
font-size: var(--font-size-sm);
|
|
1723
1723
|
max-width: 60%;
|
|
1724
1724
|
}
|
|
1725
|
-
`,fp={withImports:!0,withComments:!1},Z8e={curl:{code:"shell",defaultTarget:"curl",defaultOptions:{...fp,short:!0}},JavaScript:{code:"javascript",defaultTarget:"fetch",defaultOptions:{...fp,withImports:!1}},"Node.js":{code:"node",defaultTarget:"fetch",defaultOptions:{...fp}},Python:{code:"python",defaultTarget:"requests",defaultOptions:{...fp}},Java:{code:"java",defaultTarget:"httpclient",defaultOptions:{...fp}}},Y8e=["curl","JavaScript","Node.js","Python","Java"],G8e=({har:t})=>{const{sendEvent:e}=st(),[r,n]=$.useState("curl"),{HTTPSnippet:i}=ru(),o=$.useMemo(()=>Z8e[r],[r]),s=$.useMemo(()=>new i(t).convert(o.code,o.defaultTarget,o.defaultOptions),[t,o,i]),a=Y8e.map(u=>({name:u,icon:f.jsx(f.Fragment,{})})),l=$.useCallback(u=>{n(u)},[]),c=$.useCallback(()=>{e("content.copy",{source:"code_sample",section:"value",name:r})},[r,e]);return $.useEffect(()=>{e("tab.change",{source:"code_sample",name:r})},[r,e]),f.jsxs(eBe,{children:[f.jsxs(H8e,{children:[f.jsx(J8e,{activeTabName:r,tabs:a,onTabChange:l}),f.jsx(K8e,{}),f.jsx(tBe,{children:f.jsx(Q.CopyButton,{toasterPlacement:"left",data:s,onCopyClick:c})})]}),f.jsx(ct,{}),f.jsx(rBe,{children:f.jsx(_a,{value:s,readOnly:!0,language:o.code})})]})},H8e=T.div`
|
|
1725
|
+
`,fp={withImports:!0,withComments:!1},Z8e={curl:{code:"shell",defaultTarget:"curl",defaultOptions:{...fp,short:!0}},JavaScript:{code:"javascript",defaultTarget:"fetch",defaultOptions:{...fp,withImports:!1}},"Node.js":{code:"node",defaultTarget:"fetch",defaultOptions:{...fp}},Python:{code:"python",defaultTarget:"requests",defaultOptions:{...fp}},Java:{code:"java",defaultTarget:"httpclient",defaultOptions:{...fp}}},Y8e=["curl","JavaScript","Node.js","Python","Java"],G8e=({har:t})=>{const{sendEvent:e}=st(),[r,n]=$.useState("curl"),{HTTPSnippet:i}=ru(),o=$.useMemo(()=>Z8e[r],[r]),s=$.useMemo(()=>new i(t).convert(o.code,o.defaultTarget,o.defaultOptions),[t,o,i]),a=Y8e.map(u=>({name:u,icon:f.jsx(f.Fragment,{})})),l=$.useCallback(u=>{n(u)},[]),c=$.useCallback(()=>{e("content.copy",[{source:"code_sample",section:"value",name:r}])},[r,e]);return $.useEffect(()=>{e("tab.change",[{source:"code_sample",name:r}])},[r,e]),f.jsxs(eBe,{children:[f.jsxs(H8e,{children:[f.jsx(J8e,{activeTabName:r,tabs:a,onTabChange:l}),f.jsx(K8e,{}),f.jsx(tBe,{children:f.jsx(Q.CopyButton,{toasterPlacement:"left",data:s,onCopyClick:c})})]}),f.jsx(ct,{}),f.jsx(rBe,{children:f.jsx(_a,{value:s,readOnly:!0,language:o.code})})]})},H8e=T.div`
|
|
1726
1726
|
display: flex;
|
|
1727
1727
|
justify-content: space-between;
|
|
1728
1728
|
align-items: center;
|
|
@@ -1780,7 +1780,7 @@ Use the data prop if you want to provide your own handlers.`);if(t.initialData){
|
|
|
1780
1780
|
flex: 1;
|
|
1781
1781
|
overflow: hidden;
|
|
1782
1782
|
}
|
|
1783
|
-
`,cBe=()=>{const{sendEvent:t}=st(),{openWorkflowTab:e}=dn(),{getOperationUrl:r,onRequestReset:n,layout:i}=ru(),o=Vo(),{step:s,collection:a,workflow:l,apiOperation:c,tabData:u,isDraft:d}=ho(),{satisfiesScheme:p}=u,[h,m]=$.useState(!1),g=o.disableCollectionsTab.get(),O=$.useMemo(()=>{if(c)return r?.(c.operationId)},[r,c]),y=$.useMemo(()=>l?e1(l.get()):"",[l]),v=()=>{c&&s.merge(DA(c)),p.set(!0),t("button.click",{source:"request",action:"reset"}),n?.()},b=()=>{m(!0),t("button.click",{source:"request",action:"code_generate"})},w=()=>{t("button.click",{source:"request",action:"save_to_collection"})},S=()=>{t("button.click",{source:"request",action:"save_as"})},P=$.useMemo(()=>g||d?c?c.name:"New Request":s.stepId.get(),[c,g,d,s]);return f.jsxs(RDe,{children:[f.jsxs(uBe,{children:[f.jsxs(dBe,{children:[f.jsx(pBe,{children:P}),c&&f.jsx(J6e,{hideOperationName:g||d,operationName:c.name,url:O,onReset:v,layout:i,step:s,collectionId:a?.id.get(),isDraft:d})]}),f.jsxs(fBe,{children:[!g&&(d?f.jsx(z4,{step:s,children:f.jsx(hBe,{size:"small",icon:f.jsx(Q.SaveIcon,{}),onClick:w,children:"Save to collection"})}):f.jsxs(f.Fragment,{children:[l&&a&&f.jsx(Q.Tooltip,{tip:`Open '${y}' workflow in new tab`,placement:"top",children:f.jsx(mBe,{borderless:!0,icon:f.jsx(Q.WorkflowHierarchyIcon,{size:"12px"}),onClick:()=>{e({collectionId:a.id.get(),workflowId:l.workflowId.get()})},children:y})}),f.jsx(gBe,{}),f.jsx(z4,{step:s,children:f.jsx(Q.Tooltip,{tip:"Save copy to collection...",placement:"top",width:"120px",children:f.jsx(Q.Button,{icon:f.jsx(Q.SaveIcon,{}),variant:"text",size:"small",onClick:S})})})]})),f.jsx(Q.Tooltip,{tip:"Generate code",placement:"top",children:f.jsx(Q.Button,{onClick:b,icon:f.jsx(Q.CodeIcon,{}),variant:"text",size:"small"})})]})]}),h&&f.jsx(aBe,{onClose:()=>m(!1)})]})},uBe=T.div`
|
|
1783
|
+
`,cBe=()=>{const{sendEvent:t}=st(),{openWorkflowTab:e}=dn(),{getOperationUrl:r,onRequestReset:n,layout:i}=ru(),o=Vo(),{step:s,collection:a,workflow:l,apiOperation:c,tabData:u,isDraft:d}=ho(),{satisfiesScheme:p}=u,[h,m]=$.useState(!1),g=o.disableCollectionsTab.get(),O=$.useMemo(()=>{if(c)return r?.(c.operationId)},[r,c]),y=$.useMemo(()=>l?e1(l.get()):"",[l]),v=()=>{c&&s.merge(DA(c)),p.set(!0),t("button.click",[{source:"request",action:"reset"}]),n?.()},b=()=>{m(!0),t("button.click",[{source:"request",action:"code_generate"}])},w=()=>{t("button.click",[{source:"request",action:"save_to_collection"}])},S=()=>{t("button.click",[{source:"request",action:"save_as"}])},P=$.useMemo(()=>g||d?c?c.name:"New Request":s.stepId.get(),[c,g,d,s]);return f.jsxs(RDe,{children:[f.jsxs(uBe,{children:[f.jsxs(dBe,{children:[f.jsx(pBe,{children:P}),c&&f.jsx(J6e,{hideOperationName:g||d,operationName:c.name,url:O,onReset:v,layout:i,step:s,collectionId:a?.id.get(),isDraft:d})]}),f.jsxs(fBe,{children:[!g&&(d?f.jsx(z4,{step:s,children:f.jsx(hBe,{size:"small",icon:f.jsx(Q.SaveIcon,{}),onClick:w,children:"Save to collection"})}):f.jsxs(f.Fragment,{children:[l&&a&&f.jsx(Q.Tooltip,{tip:`Open '${y}' workflow in new tab`,placement:"top",children:f.jsx(mBe,{borderless:!0,icon:f.jsx(Q.WorkflowHierarchyIcon,{size:"12px"}),onClick:()=>{e({collectionId:a.id.get(),workflowId:l.workflowId.get()})},children:y})}),f.jsx(gBe,{}),f.jsx(z4,{step:s,children:f.jsx(Q.Tooltip,{tip:"Save copy to collection...",placement:"top",width:"120px",children:f.jsx(Q.Button,{icon:f.jsx(Q.SaveIcon,{}),variant:"text",size:"small",onClick:S})})})]})),f.jsx(Q.Tooltip,{tip:"Generate code",placement:"top",children:f.jsx(Q.Button,{onClick:b,icon:f.jsx(Q.CodeIcon,{}),variant:"text",size:"small"})})]})]}),h&&f.jsx(aBe,{onClose:()=>m(!1)})]})},uBe=T.div`
|
|
1784
1784
|
display: flex;
|
|
1785
1785
|
align-items: center;
|
|
1786
1786
|
justify-content: space-between;
|
|
@@ -1896,7 +1896,7 @@ Use the data prop if you want to provide your own handlers.`);if(t.initialData){
|
|
|
1896
1896
|
justify-content: center;
|
|
1897
1897
|
align-items: flex-start;
|
|
1898
1898
|
height: 100%;
|
|
1899
|
-
`;function RJ(t,e,r){const{api:n}=sI(t),i=n?.servers?.ornull?.find(o=>o.url.get()===e)?.variables?.ornull?.[r]?.ornull?.enum?.get();return{enumValues:i?Array.from(i):void 0}}function RBe({input:t,server:e,showControlsOnHover:r}){const[n,i]=$.useState(!1),{sendEvent:o}=st(),{name:s,value:a}=t.get(),{value:l,apiId:c}=e.get(),{enumValues:u}=RJ(c,l,s),d=m=>{o("input.management",{action:"saved",context:"server_variable",api_id:c,name:s,changed:m.value!==a}),t.set(m),i(!1)},p=()=>{i(!1),o("input.management",{action:"editing_canceled",context:"server_variable",api_id:c,name:s})},h=()=>{i(!0),o("input.management",{action:"editing_started",context:"server_variable",api_id:c,name:s})};return n?f.jsx(h6,{variable:t.get(),onSave:d,onCancel:p,readonlyName:!0,enumValues:u}):f.jsx(II,{dataTestId:`server-variable-${s}`,showControlsOnHover:r,controls:f.jsx(f.Fragment,{children:f.jsx(Ia,{"data-testid":`edit-server-variable-btn-${s}`,size:"small",variant:"text",icon:f.jsx(Q.EditIcon,{}),onClick:h})}),children:f.jsxs(_Be,{children:[f.jsx(jBe,{children:f.jsx(QBe,{children:s})}),f.jsx(DBe,{$isEmpty:!a,children:a||"No value"})]})})}const _Be=T.div`
|
|
1899
|
+
`;function RJ(t,e,r){const{api:n}=sI(t),i=n?.servers?.ornull?.find(o=>o.url.get()===e)?.variables?.ornull?.[r]?.ornull?.enum?.get();return{enumValues:i?Array.from(i):void 0}}function RBe({input:t,server:e,showControlsOnHover:r}){const[n,i]=$.useState(!1),{sendEvent:o}=st(),{name:s,value:a}=t.get(),{value:l,apiId:c}=e.get(),{enumValues:u}=RJ(c,l,s),d=m=>{o("input.management",[{action:"saved",context:"server_variable",api_id:c,name:s,changed:m.value!==a}]),t.set(m),i(!1)},p=()=>{i(!1),o("input.management",[{action:"editing_canceled",context:"server_variable",api_id:c,name:s}])},h=()=>{i(!0),o("input.management",[{action:"editing_started",context:"server_variable",api_id:c,name:s}])};return n?f.jsx(h6,{variable:t.get(),onSave:d,onCancel:p,readonlyName:!0,enumValues:u}):f.jsx(II,{dataTestId:`server-variable-${s}`,showControlsOnHover:r,controls:f.jsx(f.Fragment,{children:f.jsx(Ia,{"data-testid":`edit-server-variable-btn-${s}`,size:"small",variant:"text",icon:f.jsx(Q.EditIcon,{}),onClick:h})}),children:f.jsxs(_Be,{children:[f.jsx(jBe,{children:f.jsx(QBe,{children:s})}),f.jsx(DBe,{$isEmpty:!a,children:a||"No value"})]})})}const _Be=T.div`
|
|
1900
1900
|
display: flex;
|
|
1901
1901
|
flex-direction: column;
|
|
1902
1902
|
justify-content: center;
|
|
@@ -2196,7 +2196,7 @@ Use the data prop if you want to provide your own handlers.`);if(t.initialData){
|
|
|
2196
2196
|
border: 1px solid rgba(255, 255, 255, 0.2);
|
|
2197
2197
|
color: var(--button-content-color-inverse);
|
|
2198
2198
|
}
|
|
2199
|
-
`,OFe=()=>{const{sendEvent:t}=st(),{tabData:e,step:r,apiOperation:n,workflow:i,collection:o}=ho(),{isProcessingRequest:s}=e,a=Kt(),l=Vo(),c=gt(),{method:u,url:d}=Vc(r.get({noproxy:!0})),p=!Sx.includes(u.toUpperCase()),h=o?.components.parameters.get({noproxy:!0}),m=n?.method.toLocaleUpperCase(),g=xBe(),O=$.useMemo(()=>TI([m],g),[g,m]),y=r.parameters.queryParameters,v=Er(y.get(),h),b=$l("path",[Er(i?.parameters.pathParameters.get({noproxy:!0}),h),Er(r.parameters.pathParameters.get({noproxy:!0}),h)]),w=({value:E})=>{r.xOperation.ornull?.method.set(E),t("change",{context:"method",source:"request",value:E})},S=()=>{P3e(c,r,l),t("request.send",{source:"request",url:d,method:u,resolved_url:kn(d,c)})},P=E=>{const D=[..._3e(E),...y.get({noproxy:!0}).filter(_=>!_.active||bl(_)),yr("query")];y.set(D)};function C(){if(r.xOperation.ornull)return d;{const E=r.operation.get();return(a.servers.find(_=>_.apiId.get()===E?.apiId)?.get()?.value??"")+d+Ng("",v)}}return $.useEffect(()=>{if(r.operation.ornull&&!d)return;const E=new Set(Er(i?.parameters.pathParameters.get({noproxy:!0}),h).filter(D=>D.key&&D.value).map(D=>D.key)??[]),R=j3e(d);r.parameters.pathParameters.set(D=>{const _=new Set(Er(D,h).map(W=>W.key)),L=[...D.filter(W=>bl(W)||W.value||R.has(W.key))];for(const W of R)!_.has(W)&&!E.has(W)&&L.push({id:crypto.randomUUID(),active:!0,key:W,value:"",in:"path"});return L.push(yr("path")),L})},[d,i?.parameters.pathParameters]),f.jsxs(yFe,{children:[f.jsxs(_De,{$disabled:!r.xOperation.ornull,children:[p?f.jsx(vFe,{value:u}):f.jsx(jDe,{dataTestId:"request-method-select",isDisabled:!r.xOperation.ornull,options:O,value:g.find(({value:E})=>E.toLowerCase()===u.toLowerCase()),onChange:w,formatGroupLabel:E=>f.jsx(m1,{data:E,getTooltipText:vBe})}),f.jsx(fFe,{dataTestId:"url-input",apiId:r.operation.get()?.apiId,value:d,environment:a,placeholder:"Enter your URL to submit the request",disabled:!r.xOperation.ornull,showResolved:!1,onEnter:S,onChange:E=>{r.xOperation.ornull?.url.set(E),P(E)},pathParameters:b,queryParameters:v,isAPIOperation:!r.xOperation.ornull}),f.jsx(Q.Tooltip,{tip:"Copy URL",placement:"top",children:f.jsx(Q.CopyButton,{data:C(),variant:"text",toasterPlacement:"left"})})]}),f.jsx(gFe,{isProcessing:s.get(),disabled:!d||s.get(),onSendButtonClick:S})]})},yFe=T.div`
|
|
2199
|
+
`,OFe=()=>{const{sendEvent:t}=st(),{tabData:e,step:r,apiOperation:n,workflow:i,collection:o}=ho(),{isProcessingRequest:s}=e,a=Kt(),l=Vo(),c=gt(),{method:u,url:d}=Vc(r.get({noproxy:!0})),p=!Sx.includes(u.toUpperCase()),h=o?.components.parameters.get({noproxy:!0}),m=n?.method.toLocaleUpperCase(),g=xBe(),O=$.useMemo(()=>TI([m],g),[g,m]),y=r.parameters.queryParameters,v=Er(y.get(),h),b=$l("path",[Er(i?.parameters.pathParameters.get({noproxy:!0}),h),Er(r.parameters.pathParameters.get({noproxy:!0}),h)]),w=({value:E})=>{r.xOperation.ornull?.method.set(E),t("change",[{context:"method",source:"request",value:E}])},S=()=>{P3e(c,r,l),t("request.send",[{source:"request",url:d,method:u,resolved_url:kn(d,c)}])},P=E=>{const D=[..._3e(E),...y.get({noproxy:!0}).filter(_=>!_.active||bl(_)),yr("query")];y.set(D)};function C(){if(r.xOperation.ornull)return d;{const E=r.operation.get();return(a.servers.find(_=>_.apiId.get()===E?.apiId)?.get()?.value??"")+d+Ng("",v)}}return $.useEffect(()=>{if(r.operation.ornull&&!d)return;const E=new Set(Er(i?.parameters.pathParameters.get({noproxy:!0}),h).filter(D=>D.key&&D.value).map(D=>D.key)??[]),R=j3e(d);r.parameters.pathParameters.set(D=>{const _=new Set(Er(D,h).map(W=>W.key)),L=[...D.filter(W=>bl(W)||W.value||R.has(W.key))];for(const W of R)!_.has(W)&&!E.has(W)&&L.push({id:crypto.randomUUID(),active:!0,key:W,value:"",in:"path"});return L.push(yr("path")),L})},[d,i?.parameters.pathParameters]),f.jsxs(yFe,{children:[f.jsxs(_De,{$disabled:!r.xOperation.ornull,children:[p?f.jsx(vFe,{value:u}):f.jsx(jDe,{dataTestId:"request-method-select",isDisabled:!r.xOperation.ornull,options:O,value:g.find(({value:E})=>E.toLowerCase()===u.toLowerCase()),onChange:w,formatGroupLabel:E=>f.jsx(m1,{data:E,getTooltipText:vBe})}),f.jsx(fFe,{dataTestId:"url-input",apiId:r.operation.get()?.apiId,value:d,environment:a,placeholder:"Enter your URL to submit the request",disabled:!r.xOperation.ornull,showResolved:!1,onEnter:S,onChange:E=>{r.xOperation.ornull?.url.set(E),P(E)},pathParameters:b,queryParameters:v,isAPIOperation:!r.xOperation.ornull}),f.jsx(Q.Tooltip,{tip:"Copy URL",placement:"top",children:f.jsx(Q.CopyButton,{data:C(),variant:"text",toasterPlacement:"left"})})]}),f.jsx(gFe,{isProcessing:s.get(),disabled:!d||s.get(),onSendButtonClick:S})]})},yFe=T.div`
|
|
2200
2200
|
display: flex;
|
|
2201
2201
|
flex-direction: row;
|
|
2202
2202
|
align-items: center;
|
|
@@ -2214,7 +2214,7 @@ Use the data prop if you want to provide your own handlers.`);if(t.initialData){
|
|
|
2214
2214
|
padding: 0px var(--spacing-xs);
|
|
2215
2215
|
display: flex;
|
|
2216
2216
|
align-items: center;
|
|
2217
|
-
`;function Vi(){const{inputs:t}=Kt(),{collections:e}=gt().get(),{tab:r}=wf(),{getWorkflow:n}=SG(),{getStep:i}=xG(),o=r?.data.get(),s=o?.type,a=$.useCallback(()=>o?.type===Ge.Step||o?.type===Ge.Workflow?e.find(P=>P.id===o.collectionId):null,[o,e]),l=$.useCallback(()=>{if(!o)return null;if(o.type===Ge.Step||o.type===Ge.Workflow){const P=o.collectionId,C=o.workflowId;if(P&&C)return n({collectionId:P,workflowId:C})?.get()}return null},[o,n]),c=$.useCallback(()=>o?.type===Ge.Step?i({collectionId:o.collectionId,workflowId:o.workflowId,stepId:o.stepId})?.get():null,[o,i]),u=$.useMemo(()=>c(),[c]),d=$.useMemo(()=>l(),[l]),p=$.useMemo(()=>a(),[a]),h=$.useMemo(()=>[{name:"$url",label:"$url"},{name:"$method",label:"$method"},{name:"$statusCode",label:"$statusCode"}],[]),m=$.useMemo(()=>{if(s===Ge.Step){const P=[];if(u){const C=$l("header",[Er(d?.parameters.headers,p?.components.parameters),Er(u.parameters.headers,p?.components.parameters)]),E=$l("query",[Er(d?.parameters.queryParameters,p?.components.parameters),Er(u.parameters.queryParameters,p?.components.parameters)]),R=$l("path",[Er(d?.parameters.pathParameters,p?.components.parameters),Er(u.parameters.pathParameters,p?.components.parameters)]);C.forEach(D=>{P.push({name:`$request.header.${D.key}`,label:`$request.header.${D.key}`})}),E.forEach(D=>{P.push({name:`$request.query.${D.key}`,label:`$request.query.${D.key}`})}),R.forEach(D=>{P.push({name:`$request.path.${D.key}`,label:`$request.path.${D.key}`})})}return[{name:"$request.header.",label:"$request.header"},{name:"$request.query.",label:"$request.query"},{name:"$request.path.",label:"$request.path"},{name:"$request.body",label:"$request.body"},...P]}return[]},[u,d,p,s]),g=$.useMemo(()=>s===Ge.Step?[{name:"$response.header.",label:"$response.header"},{name:"$response.body",label:"$response.body"}]:[],[s]),O=$.useMemo(()=>{const P=[];return s===Ge.Step&&u&&u.outputs.forEach(C=>{C.key&&P.push({name:`$outputs.${C.key}`,label:`$outputs.${C.key}`})}),s===Ge.Workflow&&d&&d.outputs.forEach(C=>{P.push({name:`$outputs.${C.key}`,label:`$outputs.${C.key}`})}),[{name:"$outputs.",label:"$outputs"},...P]},[u,d,s]),y=$.useMemo(()=>{const P=[];return d&&d.steps.forEach(C=>{const E=C.stepId,R=C.outputs,D=!!(u&&u.stepId===E);P.push({name:`$steps.${E}.outputs.`,label:`$steps.${E}.outputs`,isCurrent:D}),R.forEach(_=>{_.key&&P.push({name:`$steps.${E}.outputs.${_.key}`,label:`$steps.${E}.outputs.${_.key}`,isCurrent:D})})}),[{name:"$steps.",label:"$steps"},...P]},[d,u]),v=$.useMemo(()=>{const P=[],C=a();return C&&C.workflows.forEach(E=>{const R=!!(d&&E.workflowId===d.workflowId);P.push({name:`$workflows.${E.workflowId}.`,label:`$workflows.${E.workflowId}`,isCurrent:R}),P.push({name:`$workflows.${E.workflowId}.outputs.`,label:`$workflows.${E.workflowId}.outputs`,isCurrent:R}),P.push({name:`$workflows.${E.workflowId}.inputs.`,label:`$workflows.${E.workflowId}.inputs`,isCurrent:R}),E.outputs.forEach(D=>{P.push({name:`$workflows.${E.workflowId}.outputs.${D.key}`,label:`$workflows.${E.workflowId}.outputs.${D.key}`,isCurrent:R})}),t.get().forEach(D=>{P.push({name:`$workflows.${E.workflowId}.inputs.${D.name}`,label:`$workflows.${E.workflowId}.inputs.${D.name}`,isCurrent:R})})}),[{name:"$workflows.",label:"$workflows"},...P]},[a,t,d]),b=$.useMemo(()=>{const P=[],C=a();return C&&C.sourceDescriptions.forEach(E=>{P.push({name:`$sourceDescriptions.${E.name}.url`,label:`$sourceDescriptions.${E.name}`})}),[{name:"$sourceDescriptions.",label:"$sourceDescriptions"},...P]},[a]),w=$.useMemo(()=>[{name:"$components.",label:"$components"}],[]),S=$.useMemo(()=>[...t.get().map(P=>{const C=`$inputs.${P.name}`;return{value:P.isSecret?"•••••":P.value,name:C,label:C}}),{name:"$inputs.",label:"$inputs"}],[t]);return[...s===Ge.Step?h:[],...m,...g,...O,...y,...v,...b,...w,...S]}function bFe({range:t,value:e,inputId:r,onClose:n,onNewInput:i}){const{sendEvent:o}=st(),[s,a]=$.useState(!1),l=window.pageXOffset||document.documentElement.scrollTop,c=t.getBoundingClientRect(),u=()=>{a(!0),o("input.management",{action:"creation_started",context:"new_input",name:e})},d=f.jsx(Ds,{onClickOutside:n,children:f.jsx(SFe,{"data-input-id":r,children:s?f.jsx(bE,{input:{...LC(),value:e},onSave:p=>i(p),onCancel:n,readonlyValue:!0}):f.jsx(Q.Button,{icon:f.jsx(Q.ValueVariableIcon,{}),onClick:u,iconPosition:"left",size:"small",variant:"text",children:"Set as input"})})});return f.jsx(Q.Portal,{children:f.jsx(ql,{trigger:"click",placement:"bottom",showArrow:!1,visible:!0,zIndex:1e3,overlay:d,overlayStyle:{position:"absolute"},children:f.jsx(xFe,{$rect:{...c,width:c.width,height:c.height,left:c.left,top:c.top+l}})})})}const xFe=T.div`
|
|
2217
|
+
`;function Vi(){const{inputs:t}=Kt(),{collections:e}=gt().get(),{tab:r}=wf(),{getWorkflow:n}=SG(),{getStep:i}=xG(),o=r?.data.get(),s=o?.type,a=$.useCallback(()=>o?.type===Ge.Step||o?.type===Ge.Workflow?e.find(P=>P.id===o.collectionId):null,[o,e]),l=$.useCallback(()=>{if(!o)return null;if(o.type===Ge.Step||o.type===Ge.Workflow){const P=o.collectionId,C=o.workflowId;if(P&&C)return n({collectionId:P,workflowId:C})?.get()}return null},[o,n]),c=$.useCallback(()=>o?.type===Ge.Step?i({collectionId:o.collectionId,workflowId:o.workflowId,stepId:o.stepId})?.get():null,[o,i]),u=$.useMemo(()=>c(),[c]),d=$.useMemo(()=>l(),[l]),p=$.useMemo(()=>a(),[a]),h=$.useMemo(()=>[{name:"$url",label:"$url"},{name:"$method",label:"$method"},{name:"$statusCode",label:"$statusCode"}],[]),m=$.useMemo(()=>{if(s===Ge.Step){const P=[];if(u){const C=$l("header",[Er(d?.parameters.headers,p?.components.parameters),Er(u.parameters.headers,p?.components.parameters)]),E=$l("query",[Er(d?.parameters.queryParameters,p?.components.parameters),Er(u.parameters.queryParameters,p?.components.parameters)]),R=$l("path",[Er(d?.parameters.pathParameters,p?.components.parameters),Er(u.parameters.pathParameters,p?.components.parameters)]);C.forEach(D=>{P.push({name:`$request.header.${D.key}`,label:`$request.header.${D.key}`})}),E.forEach(D=>{P.push({name:`$request.query.${D.key}`,label:`$request.query.${D.key}`})}),R.forEach(D=>{P.push({name:`$request.path.${D.key}`,label:`$request.path.${D.key}`})})}return[{name:"$request.header.",label:"$request.header"},{name:"$request.query.",label:"$request.query"},{name:"$request.path.",label:"$request.path"},{name:"$request.body",label:"$request.body"},...P]}return[]},[u,d,p,s]),g=$.useMemo(()=>s===Ge.Step?[{name:"$response.header.",label:"$response.header"},{name:"$response.body",label:"$response.body"}]:[],[s]),O=$.useMemo(()=>{const P=[];return s===Ge.Step&&u&&u.outputs.forEach(C=>{C.key&&P.push({name:`$outputs.${C.key}`,label:`$outputs.${C.key}`})}),s===Ge.Workflow&&d&&d.outputs.forEach(C=>{P.push({name:`$outputs.${C.key}`,label:`$outputs.${C.key}`})}),[{name:"$outputs.",label:"$outputs"},...P]},[u,d,s]),y=$.useMemo(()=>{const P=[];return d&&d.steps.forEach(C=>{const E=C.stepId,R=C.outputs,D=!!(u&&u.stepId===E);P.push({name:`$steps.${E}.outputs.`,label:`$steps.${E}.outputs`,isCurrent:D}),R.forEach(_=>{_.key&&P.push({name:`$steps.${E}.outputs.${_.key}`,label:`$steps.${E}.outputs.${_.key}`,isCurrent:D})})}),[{name:"$steps.",label:"$steps"},...P]},[d,u]),v=$.useMemo(()=>{const P=[],C=a();return C&&C.workflows.forEach(E=>{const R=!!(d&&E.workflowId===d.workflowId);P.push({name:`$workflows.${E.workflowId}.`,label:`$workflows.${E.workflowId}`,isCurrent:R}),P.push({name:`$workflows.${E.workflowId}.outputs.`,label:`$workflows.${E.workflowId}.outputs`,isCurrent:R}),P.push({name:`$workflows.${E.workflowId}.inputs.`,label:`$workflows.${E.workflowId}.inputs`,isCurrent:R}),E.outputs.forEach(D=>{P.push({name:`$workflows.${E.workflowId}.outputs.${D.key}`,label:`$workflows.${E.workflowId}.outputs.${D.key}`,isCurrent:R})}),t.get().forEach(D=>{P.push({name:`$workflows.${E.workflowId}.inputs.${D.name}`,label:`$workflows.${E.workflowId}.inputs.${D.name}`,isCurrent:R})})}),[{name:"$workflows.",label:"$workflows"},...P]},[a,t,d]),b=$.useMemo(()=>{const P=[],C=a();return C&&C.sourceDescriptions.forEach(E=>{P.push({name:`$sourceDescriptions.${E.name}.url`,label:`$sourceDescriptions.${E.name}`})}),[{name:"$sourceDescriptions.",label:"$sourceDescriptions"},...P]},[a]),w=$.useMemo(()=>[{name:"$components.",label:"$components"}],[]),S=$.useMemo(()=>[...t.get().map(P=>{const C=`$inputs.${P.name}`;return{value:P.isSecret?"•••••":P.value,name:C,label:C}}),{name:"$inputs.",label:"$inputs"}],[t]);return[...s===Ge.Step?h:[],...m,...g,...O,...y,...v,...b,...w,...S]}function bFe({range:t,value:e,inputId:r,onClose:n,onNewInput:i}){const{sendEvent:o}=st(),[s,a]=$.useState(!1),l=window.pageXOffset||document.documentElement.scrollTop,c=t.getBoundingClientRect(),u=()=>{a(!0),o("input.management",[{action:"creation_started",context:"new_input",name:e}])},d=f.jsx(Ds,{onClickOutside:n,children:f.jsx(SFe,{"data-input-id":r,children:s?f.jsx(bE,{input:{...LC(),value:e},onSave:p=>i(p),onCancel:n,readonlyValue:!0}):f.jsx(Q.Button,{icon:f.jsx(Q.ValueVariableIcon,{}),onClick:u,iconPosition:"left",size:"small",variant:"text",children:"Set as input"})})});return f.jsx(Q.Portal,{children:f.jsx(ql,{trigger:"click",placement:"bottom",showArrow:!1,visible:!0,zIndex:1e3,overlay:d,overlayStyle:{position:"absolute"},children:f.jsx(xFe,{$rect:{...c,width:c.width,height:c.height,left:c.left,top:c.top+l}})})})}const xFe=T.div`
|
|
2218
2218
|
position: absolute;
|
|
2219
2219
|
top: ${({$rect:t})=>t.top}px;
|
|
2220
2220
|
left: ${({$rect:t})=>t.left}px;
|
|
@@ -2222,7 +2222,7 @@ Use the data prop if you want to provide your own handlers.`);if(t.initialData){
|
|
|
2222
2222
|
width: ${({$rect:t})=>t.width}px;
|
|
2223
2223
|
`,SFe=T(za)`
|
|
2224
2224
|
padding: var(--spacing-xs) var(--spacing-sm);
|
|
2225
|
-
`;function Tt({value:t,environment:{inputs:e},placeholder:r,className:n,onChange:i,onEnter:o,dataTestId:s,showResolved:a=!1,disableHighlight:l=!1,initialCursorPosition:c,disabled:u,options:d=[],highlightPatterns:p,...h}){const[m]=$.useState(crypto.randomUUID()),g=$.useRef(null),[O,y]=$.useState(!1),[v,b]=$.useState(c??t.length),[w,S]=$.useState(!1),[P,C]=$.useState(!1),[E,R,D,_]=CJ(t,v),[L,W]=$.useState(null),[Y,Z]=$.useState(null),[J,ae]=$.useState(!1),F=$.useRef("none"),oe=$.useMemo(()=>l?E:jI(E,{highlightPatterns:p??[jY,QY(e,{inputId:m})]}),[E,e,m,l,p]),q=$.useMemo(()=>$Be(E,d,v),[E,d,v]),M=g.current&&J&&Y&&O&&!L&&!!d.length&&!l,{sendEvent:U}=st(),z=$.useCallback((he,me,Ae=!0)=>{i&&he!==E&&g.current&&i(he,g.current),Ae&&R(he,me),b(me)},[i,E,R]);$.useEffect(()=>{z(E,v)},[z,E,v]),$.useEffect(()=>{const he=t.length>v?v:t.length;R(t,he),b(he)},[t,v,R]),$.useEffect(()=>{O&&kJ(g,v)},[v,O]),$.useEffect(()=>{(a||u)&&ge(!1,g.current)},[a,u]),$.useEffect(()=>{if(!O)return;const me=(F.current==="typing"||F.current==="paste"||F.current==="edit"||F.current==="explicit")&&CBe(E,v,d);if(ae(me),me&&g.current){const Ae=window.getSelection();if(Ae&&Ae.rangeCount>0){const We=Ae.getRangeAt(0);We.startOffset===We.endOffset&&We.startContainer===We.endContainer&&Z(We.cloneRange())}}},[v,E,O,d]);const I=ih(()=>{const he=window.getSelection();if(he&&he.rangeCount>0){const me=he?.getRangeAt(0);if(me.startOffset===me.endOffset&&me.startContainer===me.endContainer){const Ae=$J(g.current,me);b(Ae),Z(he.getRangeAt(0).cloneRange()),W(null)}else W(he.getRangeAt(0).cloneRange())}},0),j=he=>{a||u||(he.preventDefault(),F.current="paste",Oe(TJ(he.clipboardData.getData("text"))))},X=he=>{if(!(a||u)&&(he.preventDefault(),L&&g.current)){const me=eT(L,g.current);JZ.copyCustom(me),Oe("")}},H=he=>{if(a||u)return;const me=he.key,Ae=he.metaKey||he.ctrlKey,We=he.altKey,x=typeof navigator<"u"&&/Mac|iPod|iPhone|iPad/i.test(navigator.platform||"");if((he.ctrlKey||he.metaKey)&&he.code==="Space"){if(he.preventDefault(),F.current="explicit",g.current){const k=window.getSelection();if(k&&k.rangeCount>0){const A=k.getRangeAt(0);A.startOffset===A.endOffset&&A.startContainer===A.endContainer&&Z(A.cloneRange())}}return}if(me==="Tab"&&S(!0),(me==="ArrowUp"||me==="ArrowDown")&&M){he.preventDefault();return}if(me==="ArrowLeft"||me==="ArrowRight"||me==="Home"||me==="End"){F.current="navigate",ae(!1);return}if(me==="Enter"){he.preventDefault(),P||(C(!0),o&&!M&&o());return}if(me==="Backspace"){if(he.preventDefault(),F.current="edit",L){Oe("");return}if(v===0)return;if(x&&We||!x&&he.ctrlKey){const k=EJ(E,v);z(E.slice(0,k)+E.slice(v),k);return}if(Ae){z(E.slice(v),0);return}z(E.slice(0,v-1)+E.slice(v),v-1)}if(me==="Delete"){if(he.preventDefault(),F.current="edit",L){Oe("");return}if(v===E.length)return;if(x&&We||!x&&he.ctrlKey){const k=AJ(E,v);z(E.slice(0,v)+E.slice(k),v);return}if(Ae){z(E.slice(0,v),v);return}z(E.slice(0,v)+E.slice(v+1),v)}Ae&&me==="z"&&(he.preventDefault(),F.current="edit",he.shiftKey?ye():be()),!Ae&&me.length===1&&(he.preventDefault(),F.current="typing",Oe(me))},te=he=>{a||u||he.key==="Enter"&&C(!1)},be=()=>{const{value:he,cursorPosition:me}=D();z(he,me,!1)},ye=()=>{const{value:he,cursorPosition:me}=_();z(he,me,!1)},re=he=>{const me=he.target,Ae=O1(me);(!Ae||Ae!==m)&&(y(!1),ge(!1,g.current))},G=he=>{Oe(`${Ez}$inputs.${he.name}${yT}`),e.merge([he]),U("input.management",{action:"creation_finished",context:"new_input",name:he.name})},ce=()=>{W(null),U("input.management",{action:"creation_canceled",context:"new_input"})},le=()=>{W(null)},ge=(he,me)=>{me&&(me.contentEditable=he?"true":"false")},ke=()=>{!a&&!u&&ge(!0,g.current)},K=()=>{O||ge(!1,g.current)},ue=()=>{ke(),y(!0)},Ce=()=>{w&&(K(),y(!1)),S(!1)},pe=()=>{F.current="mouse",W(null)},Oe=he=>{if(L&&g.current){const me=EI(L,g.current),Ae=E.slice(0,me.start)+he+E.slice(me.end);z(Ae,me.start+he.length),W(null)}else z(E.slice(0,v)+he+E.slice(v),v+he.length)},$e=he=>{const me=TBe(E,he,v);Oe(me),ae(!1)};return f.jsxs(wFe,{"data-testid":s,children:[g.current&&L&&!l&&f.jsx(bFe,{range:L,value:eT(L,g.current)||"",inputId:m,onNewInput:G,onClose:ce}),M&&f.jsx(_J,{range:Y,onClose:le,onSelect:$e,options:q,inputId:m}),f.jsx(Ds,{onClickOutside:re,children:f.jsx(PFe,{ref:g,className:n,onFocus:ue,onBlur:Ce,$focused:O,onPaste:j,onCut:X,onKeyDown:H,onKeyUp:te,onSelect:I,onMouseDown:pe,onMouseLeave:K,onMouseEnter:ke,onDragStart:he=>he.preventDefault(),suppressContentEditableWarning:!0,$placeholder:r,role:"input",tabIndex:0,"data-gramm":"false","data-gramm_editor":"false","data-enable-grammarly":"false",$disabled:u||a,...h,children:a?MY(t,e.get()):oe})})]})}const wFe=T.div`
|
|
2225
|
+
`;function Tt({value:t,environment:{inputs:e},placeholder:r,className:n,onChange:i,onEnter:o,dataTestId:s,showResolved:a=!1,disableHighlight:l=!1,initialCursorPosition:c,disabled:u,options:d=[],highlightPatterns:p,...h}){const[m]=$.useState(crypto.randomUUID()),g=$.useRef(null),[O,y]=$.useState(!1),[v,b]=$.useState(c??t.length),[w,S]=$.useState(!1),[P,C]=$.useState(!1),[E,R,D,_]=CJ(t,v),[L,W]=$.useState(null),[Y,Z]=$.useState(null),[J,ae]=$.useState(!1),F=$.useRef("none"),oe=$.useMemo(()=>l?E:jI(E,{highlightPatterns:p??[jY,QY(e,{inputId:m})]}),[E,e,m,l,p]),q=$.useMemo(()=>$Be(E,d,v),[E,d,v]),M=g.current&&J&&Y&&O&&!L&&!!d.length&&!l,{sendEvent:U}=st(),z=$.useCallback((he,me,Ae=!0)=>{i&&he!==E&&g.current&&i(he,g.current),Ae&&R(he,me),b(me)},[i,E,R]);$.useEffect(()=>{z(E,v)},[z,E,v]),$.useEffect(()=>{const he=t.length>v?v:t.length;R(t,he),b(he)},[t,v,R]),$.useEffect(()=>{O&&kJ(g,v)},[v,O]),$.useEffect(()=>{(a||u)&&ge(!1,g.current)},[a,u]),$.useEffect(()=>{if(!O)return;const me=(F.current==="typing"||F.current==="paste"||F.current==="edit"||F.current==="explicit")&&CBe(E,v,d);if(ae(me),me&&g.current){const Ae=window.getSelection();if(Ae&&Ae.rangeCount>0){const We=Ae.getRangeAt(0);We.startOffset===We.endOffset&&We.startContainer===We.endContainer&&Z(We.cloneRange())}}},[v,E,O,d]);const I=ih(()=>{const he=window.getSelection();if(he&&he.rangeCount>0){const me=he?.getRangeAt(0);if(me.startOffset===me.endOffset&&me.startContainer===me.endContainer){const Ae=$J(g.current,me);b(Ae),Z(he.getRangeAt(0).cloneRange()),W(null)}else W(he.getRangeAt(0).cloneRange())}},0),j=he=>{a||u||(he.preventDefault(),F.current="paste",Oe(TJ(he.clipboardData.getData("text"))))},X=he=>{if(!(a||u)&&(he.preventDefault(),L&&g.current)){const me=eT(L,g.current);JZ.copyCustom(me),Oe("")}},H=he=>{if(a||u)return;const me=he.key,Ae=he.metaKey||he.ctrlKey,We=he.altKey,x=typeof navigator<"u"&&/Mac|iPod|iPhone|iPad/i.test(navigator.platform||"");if((he.ctrlKey||he.metaKey)&&he.code==="Space"){if(he.preventDefault(),F.current="explicit",g.current){const k=window.getSelection();if(k&&k.rangeCount>0){const A=k.getRangeAt(0);A.startOffset===A.endOffset&&A.startContainer===A.endContainer&&Z(A.cloneRange())}}return}if(me==="Tab"&&S(!0),(me==="ArrowUp"||me==="ArrowDown")&&M){he.preventDefault();return}if(me==="ArrowLeft"||me==="ArrowRight"||me==="Home"||me==="End"){F.current="navigate",ae(!1);return}if(me==="Enter"){he.preventDefault(),P||(C(!0),o&&!M&&o());return}if(me==="Backspace"){if(he.preventDefault(),F.current="edit",L){Oe("");return}if(v===0)return;if(x&&We||!x&&he.ctrlKey){const k=EJ(E,v);z(E.slice(0,k)+E.slice(v),k);return}if(Ae){z(E.slice(v),0);return}z(E.slice(0,v-1)+E.slice(v),v-1)}if(me==="Delete"){if(he.preventDefault(),F.current="edit",L){Oe("");return}if(v===E.length)return;if(x&&We||!x&&he.ctrlKey){const k=AJ(E,v);z(E.slice(0,v)+E.slice(k),v);return}if(Ae){z(E.slice(0,v),v);return}z(E.slice(0,v)+E.slice(v+1),v)}Ae&&me==="z"&&(he.preventDefault(),F.current="edit",he.shiftKey?ye():be()),!Ae&&me.length===1&&(he.preventDefault(),F.current="typing",Oe(me))},te=he=>{a||u||he.key==="Enter"&&C(!1)},be=()=>{const{value:he,cursorPosition:me}=D();z(he,me,!1)},ye=()=>{const{value:he,cursorPosition:me}=_();z(he,me,!1)},re=he=>{const me=he.target,Ae=O1(me);(!Ae||Ae!==m)&&(y(!1),ge(!1,g.current))},G=he=>{Oe(`${Ez}$inputs.${he.name}${yT}`),e.merge([he]),U("input.management",[{action:"creation_finished",context:"new_input",name:he.name}])},ce=()=>{W(null),U("input.management",[{action:"creation_canceled",context:"new_input"}])},le=()=>{W(null)},ge=(he,me)=>{me&&(me.contentEditable=he?"true":"false")},ke=()=>{!a&&!u&&ge(!0,g.current)},K=()=>{O||ge(!1,g.current)},ue=()=>{ke(),y(!0)},Ce=()=>{w&&(K(),y(!1)),S(!1)},pe=()=>{F.current="mouse",W(null)},Oe=he=>{if(L&&g.current){const me=EI(L,g.current),Ae=E.slice(0,me.start)+he+E.slice(me.end);z(Ae,me.start+he.length),W(null)}else z(E.slice(0,v)+he+E.slice(v),v+he.length)},$e=he=>{const me=TBe(E,he,v);Oe(me),ae(!1)};return f.jsxs(wFe,{"data-testid":s,children:[g.current&&L&&!l&&f.jsx(bFe,{range:L,value:eT(L,g.current)||"",inputId:m,onNewInput:G,onClose:ce}),M&&f.jsx(_J,{range:Y,onClose:le,onSelect:$e,options:q,inputId:m}),f.jsx(Ds,{onClickOutside:re,children:f.jsx(PFe,{ref:g,className:n,onFocus:ue,onBlur:Ce,$focused:O,onPaste:j,onCut:X,onKeyDown:H,onKeyUp:te,onSelect:I,onMouseDown:pe,onMouseLeave:K,onMouseEnter:ke,onDragStart:he=>he.preventDefault(),suppressContentEditableWarning:!0,$placeholder:r,role:"input",tabIndex:0,"data-gramm":"false","data-gramm_editor":"false","data-enable-grammarly":"false",$disabled:u||a,...h,children:a?MY(t,e.get()):oe})})]})}const wFe=T.div`
|
|
2226
2226
|
position: relative;
|
|
2227
2227
|
display: flex;
|
|
2228
2228
|
flex-grow: 1;
|
|
@@ -2563,9 +2563,9 @@ Please report this to https://github.com/markedjs/marked.`,t){const i="<p>An err
|
|
|
2563
2563
|
flex-direction: row;
|
|
2564
2564
|
align-items: center;
|
|
2565
2565
|
gap: var(--spacing-xs);
|
|
2566
|
-
`,Ov={[Qn.SIMPLE]:{label:"Simple",tooltipContent:"Success criteria conditions in the form of basic literals, operators, and loose comparisons"},[Qn.REGEX]:{label:"Regex",tooltipContent:"Regex patterns used as success criteria conditions"},[Qn.JSONPATH]:{label:"JSONPath",tooltipContent:"JSONPath expressions as success criteria conditions"},[Qn.XPATH]:{label:"XPath",tooltipContent:"XPath expressions as success criteria conditions"}},CZe=Object.keys(Ov);function $Ze({successCriteria:t}){const{sendEvent:e}=st(),r=o=>{e("button.click",{source:"workflow",action:"add_success_criteria",success_criteria_type:o}),t.set(s=>[...s||[],{...i5e(o)}])},n=$.useMemo(()=>t.filter(o=>o.get()!==void 0),[t]),i=o=>{e("button.click",{source:"workflow",action:"remove_success_criteria",success_criteria_type:o.get().type,condition:o.get().condition}),o.set(pt)};return f.jsxs(f.Fragment,{children:[f.jsxs(Ra,{children:["Success criteria",f.jsx(so,{content:"List of conditions required to complete the step."})]}),n.map(o=>f.jsx($.Fragment,{children:f.jsx(bZe,{successCriteria:o,label:Ov[o.get().type].label,tooltipContent:Ov[o.get().type].tooltipContent,additionalActions:f.jsx(yi,{"data-testid":"remove-success-criteria-button",variant:"text",icon:f.jsx(Q.TrashCanIcon,{}),onClick:()=>i(o)})})},o.get().id)),f.jsx(kZe,{renderInput:()=>f.jsx(Q.Button,{variant:"outlined",icon:f.jsx(Q.AddIcon,{}),iconPosition:"left",size:"small",children:"Add success criteria"}),dataTestId:"workflow-step-success-criteria-select",options:CZe.map(o=>({element:Ov[o].label,label:o,value:o})),onChange:o=>{r(o)},placement:"top",hideCheckmarkIcon:!0})]})}const kZe=T(Q.Select)`
|
|
2566
|
+
`,Ov={[Qn.SIMPLE]:{label:"Simple",tooltipContent:"Success criteria conditions in the form of basic literals, operators, and loose comparisons"},[Qn.REGEX]:{label:"Regex",tooltipContent:"Regex patterns used as success criteria conditions"},[Qn.JSONPATH]:{label:"JSONPath",tooltipContent:"JSONPath expressions as success criteria conditions"},[Qn.XPATH]:{label:"XPath",tooltipContent:"XPath expressions as success criteria conditions"}},CZe=Object.keys(Ov);function $Ze({successCriteria:t}){const{sendEvent:e}=st(),r=o=>{e("button.click",[{source:"workflow",action:"add_success_criteria",success_criteria_type:o}]),t.set(s=>[...s||[],{...i5e(o)}])},n=$.useMemo(()=>t.filter(o=>o.get()!==void 0),[t]),i=o=>{e("button.click",[{source:"workflow",action:"remove_success_criteria",success_criteria_type:o.get().type,condition:o.get().condition}]),o.set(pt)};return f.jsxs(f.Fragment,{children:[f.jsxs(Ra,{children:["Success criteria",f.jsx(so,{content:"List of conditions required to complete the step."})]}),n.map(o=>f.jsx($.Fragment,{children:f.jsx(bZe,{successCriteria:o,label:Ov[o.get().type].label,tooltipContent:Ov[o.get().type].tooltipContent,additionalActions:f.jsx(yi,{"data-testid":"remove-success-criteria-button",variant:"text",icon:f.jsx(Q.TrashCanIcon,{}),onClick:()=>i(o)})})},o.get().id)),f.jsx(kZe,{renderInput:()=>f.jsx(Q.Button,{variant:"outlined",icon:f.jsx(Q.AddIcon,{}),iconPosition:"left",size:"small",children:"Add success criteria"}),dataTestId:"workflow-step-success-criteria-select",options:CZe.map(o=>({element:Ov[o].label,label:o,value:o})),onChange:o=>{r(o)},placement:"top",hideCheckmarkIcon:!0})]})}const kZe=T(Q.Select)`
|
|
2567
2567
|
border-radius: var(--border-radius-md);
|
|
2568
|
-
`;function TZe({step:t,workflowId:e,collectionId:r}){const{handleIdChange:n}=tu(),i=t.stepId.get();return f.jsx(f.Fragment,{children:f.jsxs(FJ,{children:[f.jsx(Ra,{children:"Info"}),f.jsxs(zt,{children:[f.jsxs(zt.Row,{children:[f.jsx(zt.Cell,{children:f.jsxs(Ec,{children:["Step ID",f.jsx(so,{content:"This step's unique identifier"})]})}),f.jsx(zt.Cell,{$readonly:!0,children:f.jsx(rT,{attribute:t.stepId,editorTitle:"Change step ID",placeholder:"Add step ID",onSave:o=>{r&&e&&n({collectionId:r,workflowId:e,stepId:i},{collectionId:r,workflowId:e,stepId:o})}})})]}),f.jsxs(zt.Row,{children:[f.jsx(zt.Cell,{children:f.jsxs(Ec,{children:["Description",f.jsx(so,{content:"The step's purpose in the workflow."})]})}),f.jsx(zt.Cell,{children:f.jsx(aI,{state:t.description,placeholder:"Add description"})})]})]}),f.jsxs(Pd,{children:[f.jsx(Ra,{children:"Operation"}),f.jsx(mZe,{step:t,collectionId:r})]}),f.jsx(Pd,{children:f.jsx(BJ,{outputs:t.outputs,tooltipText:"Data generated in this step that can be used in the next steps."})}),f.jsx(Pd,{children:f.jsx($Ze,{successCriteria:t.successCriteria})})]})})}function EZe({onParameterChange:t,files:e}){const r=$.useRef(null),n=a=>{a.target.files?.length&&t(Array.from(a.target.files).map(l=>({absolutePath:null,file:l})))},i=async()=>{if(Da())try{const{open:a}=await Promise.resolve().then(()=>require("./replay-index-
|
|
2568
|
+
`;function TZe({step:t,workflowId:e,collectionId:r}){const{handleIdChange:n}=tu(),i=t.stepId.get();return f.jsx(f.Fragment,{children:f.jsxs(FJ,{children:[f.jsx(Ra,{children:"Info"}),f.jsxs(zt,{children:[f.jsxs(zt.Row,{children:[f.jsx(zt.Cell,{children:f.jsxs(Ec,{children:["Step ID",f.jsx(so,{content:"This step's unique identifier"})]})}),f.jsx(zt.Cell,{$readonly:!0,children:f.jsx(rT,{attribute:t.stepId,editorTitle:"Change step ID",placeholder:"Add step ID",onSave:o=>{r&&e&&n({collectionId:r,workflowId:e,stepId:i},{collectionId:r,workflowId:e,stepId:o})}})})]}),f.jsxs(zt.Row,{children:[f.jsx(zt.Cell,{children:f.jsxs(Ec,{children:["Description",f.jsx(so,{content:"The step's purpose in the workflow."})]})}),f.jsx(zt.Cell,{children:f.jsx(aI,{state:t.description,placeholder:"Add description"})})]})]}),f.jsxs(Pd,{children:[f.jsx(Ra,{children:"Operation"}),f.jsx(mZe,{step:t,collectionId:r})]}),f.jsx(Pd,{children:f.jsx(BJ,{outputs:t.outputs,tooltipText:"Data generated in this step that can be used in the next steps."})}),f.jsx(Pd,{children:f.jsx($Ze,{successCriteria:t.successCriteria})})]})})}function EZe({onParameterChange:t,files:e}){const r=$.useRef(null),n=a=>{a.target.files?.length&&t(Array.from(a.target.files).map(l=>({absolutePath:null,file:l})))},i=async()=>{if(Da())try{const{open:a}=await Promise.resolve().then(()=>require("./replay-index-BaSDK5wQ.js")),l=await a({multiple:!0});if(!l)return;const u=(Array.isArray(l)?l:[l]).map(Mg),p=(await Promise.all(u)).filter(h=>h!==null);t(p)}catch(a){console.error("Failed to open file dialog or read file:",a)}else r.current?.click()},o=$.useCallback(()=>{t(null)},[t]),s=$.useMemo(()=>{if(!e)return null;if(e.length===1)return f.jsx(dq,{icon:f.jsx(Q.CloseIcon,{}),variant:"secondary",onClick:o,iconPosition:"right",size:"small",children:f.jsx(fq,{children:e[0].file.name})});if(e.length>1)return f.jsx(dq,{icon:f.jsx(Q.CloseIcon,{}),variant:"secondary",onClick:o,iconPosition:"right",size:"small",children:f.jsxs(fq,{children:[e.length," files"]})})},[e,o]);return f.jsx(AZe,{children:f.jsxs(IZe,{children:[f.jsx(RZe,{children:s||f.jsx(jZe,{children:"Add files here"})}),f.jsxs(_Ze,{children:[f.jsx(ADe,{onClick:i,variant:"text","data-testid":"add-button",icon:f.jsx(Q.AddIcon,{color:"--text-color-secondary"})}),f.jsx("input",{"data-testid":"file-input",hidden:!0,ref:r,type:"file",multiple:!0,accept:"files/*",onChange:n})]})]})})}const AZe=T.div`
|
|
2569
2569
|
position: relative;
|
|
2570
2570
|
display: flex;
|
|
2571
2571
|
flex-grow: 1;
|
|
@@ -2692,7 +2692,7 @@ Please report this to https://github.com/markedjs/marked.`,t){const i="<p>An err
|
|
|
2692
2692
|
`,ZZe=T.div`
|
|
2693
2693
|
display: flex;
|
|
2694
2694
|
justify-content: center;
|
|
2695
|
-
`;function YZe({data:t,type:e}){const r=Kt(),n=t[e];function i(s,a){a&&n.merge([xa()])}function o(s){n[s].set(pt)}return f.jsx(DZe,{keyName:"Param",formElements:n,onParameterChange:i,environment:r,enableInputTypeSelection:e!==zr["application/x-www-form-urlencoded"],actions:s=>f.jsx(yi,{onClick:()=>o(s),variant:"text",icon:f.jsx(Q.TrashCanIcon,{})})})}const GZe=({data:t})=>{const e=t.get(),[r,n]=$.useState(!1),i=$.useRef(null),o=c=>{const u=c.target.files?.[0];if(u){n(!0);const d=new FileReader;d.onload=()=>{n(!1),t.set({absolutePath:null,file:u})},d.readAsDataURL(u)}},s=async c=>{if(c?.preventDefault(),Da())try{const{open:u}=await Promise.resolve().then(()=>require("./replay-index-
|
|
2695
|
+
`;function YZe({data:t,type:e}){const r=Kt(),n=t[e];function i(s,a){a&&n.merge([xa()])}function o(s){n[s].set(pt)}return f.jsx(DZe,{keyName:"Param",formElements:n,onParameterChange:i,environment:r,enableInputTypeSelection:e!==zr["application/x-www-form-urlencoded"],actions:s=>f.jsx(yi,{onClick:()=>o(s),variant:"text",icon:f.jsx(Q.TrashCanIcon,{})})})}const GZe=({data:t})=>{const e=t.get(),[r,n]=$.useState(!1),i=$.useRef(null),o=c=>{const u=c.target.files?.[0];if(u){n(!0);const d=new FileReader;d.onload=()=>{n(!1),t.set({absolutePath:null,file:u})},d.readAsDataURL(u)}},s=async c=>{if(c?.preventDefault(),Da())try{const{open:u}=await Promise.resolve().then(()=>require("./replay-index-BaSDK5wQ.js")),d=await u();if(!d)return;const p=await Mg(d);t.set(p)}catch(u){console.error("Failed to open file dialog or read file:",u)}else i.current?.click()},a=c=>{c.key==="Enter"&&(c.preventDefault(),s())},l=()=>{t.set(null)};return r?f.jsxs(HZe,{children:[f.jsx(Q.SpinnerIcon,{}),"Loading..."]}):e&&e.file?.name?f.jsxs(JZe,{children:[f.jsxs(KZe,{children:[f.jsx(Q.DocumentBlankIcon,{size:"16px"}),f.jsx(eYe,{children:e.file?.name})]}),f.jsx(yi,{onClick:l,icon:f.jsx(Q.TrashCanIcon,{})})]}):f.jsx(ZJ,{children:!e&&f.jsxs(tYe,{tabIndex:0,role:"button",onKeyDown:a,onClick:s,children:[f.jsx("input",{type:"file",onChange:o,ref:i}),f.jsx(Q.CloudUploadIcon,{}),"Upload file"]})})},ZJ=T.div`
|
|
2696
2696
|
display: flex;
|
|
2697
2697
|
align-items: center;
|
|
2698
2698
|
justify-content: flex-start;
|
|
@@ -2729,7 +2729,7 @@ Please report this to https://github.com/markedjs/marked.`,t){const i="<p>An err
|
|
|
2729
2729
|
border: 1px solid var(--button-border-color-focused);
|
|
2730
2730
|
border-radius: var(--border-radius-base);
|
|
2731
2731
|
}
|
|
2732
|
-
`,rYe="Predefined body type from the openapi description.",nYe="Alternative body type types not predefined for this request.";function iYe(t){return t===Ef?rYe:nYe}function oYe(t){return t.map(e=>({label:f.jsx("div",{children:Lc[e]?.name||e}),value:e}))}function sYe(t){return oYe(Object.keys(EZ(t)))}function aYe(t){if(!t||typeof t!="object")return[xa()];const e=Object.entries(t).map(([r,n])=>({id:crypto.randomUUID(),key:r,value:typeof n=="string"?n:JSON.stringify(n),active:!0,type:"text",files:null}));return e.push(xa()),e}function lYe(t){return typeof t!="string"?JSON.stringify(t,null,2):t}function cYe({data:t,apiOperation:e,stateExtensions:r=[]}){const{sendEvent:n}=st(),{content:i,type:o,activeExampleName:s}=t,a=Object.keys(e?.body?.mediaTypes||{}),l=sYe(e),c=$.useMemo(()=>TI(a,l),[l,a]),u=$.useMemo(()=>Ik(e?.body?.mediaTypes?.[o.get()]),[o,e]),d=$.useMemo(()=>u.map(({key:w,name:S,value:P})=>({element:f.jsx("div",{children:S}),value:w,exampleValue:P,title:S})),[u]),p=$.useCallback(w=>{i.set(w)},[i]),h=$.useCallback((w,S)=>{Gb.includes(S)?t.formData[S].set(aYe(w)):i.set(lYe(w))},[i,t]),m=$.useCallback(w=>{const S=u.find(P=>P.key===w);S&&(s.set(S.key),h(S.value,o.value),n("change",{context:"example",source:"request_body",value:S.name}))},[s,h,u,n,o.value]),g=$.useCallback(({value:w})=>{o.set(w);const[S]=Ik(e?.body?.mediaTypes?.[w]);S&&(s.set(S.key),h(S.value,w)),n("change",{context:"type",source:"request_body",value:w})},[o,e,s,h,n]),O=$.useMemo(()=>[...Lc[o.value]?.extensions||[]],[o]),y=$.useMemo(()=>[...Lc[o.value]?.stateExtensions||[],...r],[o,t]),v=$.useCallback(()=>{i.set(kZ(i.get()))},[i]),b=$.useCallback(()=>{switch(!0){case Gb.includes(o.value):return f.jsx(YZe,{data:t.formData,type:o.value});case wZ.includes(o.value):return f.jsx(pq,{children:f.jsx(GZe,{data:t.binary})});default:return f.jsx(pq,{children:f.jsx(_a,{dataTestId:"request-body-tab-codemirror",value:i.get(),apiOperation:e,onChange:p,extensions:O,stateExtensions:y})})}},[o,i,O,y,p,t,e]);return f.jsxs(uYe,{children:[f.jsxs(pYe,{children:[f.jsxs(hYe,{children:[f.jsx(gYe,{children:"Content type:"}),f.jsx(dYe,{dataTestId:"request-body-type-select",options:c,value:l.find(({value:w})=>w===o.get()),onChange:g,formatGroupLabel:w=>f.jsx(m1,{data:w,getTooltipText:iYe})}),o.value==="application/json"&&i.get()&&f.jsx(Q.Button,{variant:"ghost",onClick:v,children:"Prettify"})]}),u.length?f.jsx(fYe,{options:d,value:s.get(),onChange:w=>m(w),placeholder:"Pick an example",icon:f.jsx(Q.ChevronSortIcon,{}),withArrow:!1,alignment:"end"}):null]}),b()]})}const uYe=T.div`
|
|
2732
|
+
`,rYe="Predefined body type from the openapi description.",nYe="Alternative body type types not predefined for this request.";function iYe(t){return t===Ef?rYe:nYe}function oYe(t){return t.map(e=>({label:f.jsx("div",{children:Lc[e]?.name||e}),value:e}))}function sYe(t){return oYe(Object.keys(EZ(t)))}function aYe(t){if(!t||typeof t!="object")return[xa()];const e=Object.entries(t).map(([r,n])=>({id:crypto.randomUUID(),key:r,value:typeof n=="string"?n:JSON.stringify(n),active:!0,type:"text",files:null}));return e.push(xa()),e}function lYe(t){return typeof t!="string"?JSON.stringify(t,null,2):t}function cYe({data:t,apiOperation:e,stateExtensions:r=[]}){const{sendEvent:n}=st(),{content:i,type:o,activeExampleName:s}=t,a=Object.keys(e?.body?.mediaTypes||{}),l=sYe(e),c=$.useMemo(()=>TI(a,l),[l,a]),u=$.useMemo(()=>Ik(e?.body?.mediaTypes?.[o.get()]),[o,e]),d=$.useMemo(()=>u.map(({key:w,name:S,value:P})=>({element:f.jsx("div",{children:S}),value:w,exampleValue:P,title:S})),[u]),p=$.useCallback(w=>{i.set(w)},[i]),h=$.useCallback((w,S)=>{Gb.includes(S)?t.formData[S].set(aYe(w)):i.set(lYe(w))},[i,t]),m=$.useCallback(w=>{const S=u.find(P=>P.key===w);S&&(s.set(S.key),h(S.value,o.value),n("change",[{context:"example",source:"request_body",value:S.name}]))},[s,h,u,n,o.value]),g=$.useCallback(({value:w})=>{o.set(w);const[S]=Ik(e?.body?.mediaTypes?.[w]);S&&(s.set(S.key),h(S.value,w)),n("change",[{context:"type",source:"request_body",value:w}])},[o,e,s,h,n]),O=$.useMemo(()=>[...Lc[o.value]?.extensions||[]],[o]),y=$.useMemo(()=>[...Lc[o.value]?.stateExtensions||[],...r],[o,t]),v=$.useCallback(()=>{i.set(kZ(i.get()))},[i]),b=$.useCallback(()=>{switch(!0){case Gb.includes(o.value):return f.jsx(YZe,{data:t.formData,type:o.value});case wZ.includes(o.value):return f.jsx(pq,{children:f.jsx(GZe,{data:t.binary})});default:return f.jsx(pq,{children:f.jsx(_a,{dataTestId:"request-body-tab-codemirror",value:i.get(),apiOperation:e,onChange:p,extensions:O,stateExtensions:y})})}},[o,i,O,y,p,t,e]);return f.jsxs(uYe,{children:[f.jsxs(pYe,{children:[f.jsxs(hYe,{children:[f.jsx(gYe,{children:"Content type:"}),f.jsx(dYe,{dataTestId:"request-body-type-select",options:c,value:l.find(({value:w})=>w===o.get()),onChange:g,formatGroupLabel:w=>f.jsx(m1,{data:w,getTooltipText:iYe})}),o.value==="application/json"&&i.get()&&f.jsx(Q.Button,{variant:"ghost",onClick:v,children:"Prettify"})]}),u.length?f.jsx(fYe,{options:d,value:s.get(),onChange:w=>m(w),placeholder:"Pick an example",icon:f.jsx(Q.ChevronSortIcon,{}),withArrow:!1,alignment:"end"}):null]}),b()]})}const uYe=T.div`
|
|
2733
2733
|
display: flex;
|
|
2734
2734
|
flex-direction: column;
|
|
2735
2735
|
flex: 1;
|
|
@@ -2806,7 +2806,7 @@ Please report this to https://github.com/markedjs/marked.`,t){const i="<p>An err
|
|
|
2806
2806
|
`,yYe=T.div`
|
|
2807
2807
|
display: flex;
|
|
2808
2808
|
padding: var(--spacing-xs) var(--spacing-xs) var(--spacing-xs) var(--spacing-sm);
|
|
2809
|
-
`;function vYe({schemes:t}){return f.jsx(wYe,{children:t.map((e,r)=>f.jsxs($.Fragment,{children:[f.jsx("span",{children:e}),r!==t.length-1?f.jsx(YJ,{borderless:!0,children:"and"}):null]},`${e}_${crypto.randomUUID()}`))})}function bYe(){return f.jsxs(PYe,{children:[f.jsx(YJ,{borderless:!0,children:"or"}),f.jsx(CYe,{})]})}function xYe({securitySchemeVariants:t,onSelect:e}){const{sendEvent:r}=st(),n=$.useMemo(()=>t.map(o=>({element:f.jsx(vYe,{schemes:o.security.map(s=>s.securitySchemeId)}),value:o.id,label:"Pick security schemes"})),[t]),i=o=>{r("change",{context:"scheme",source:"security",value:o}),e?.(o)};return f.jsx(SYe,{dataTestId:"security-scheme-select",options:n,value:{value:"",label:"Pick security schemes"},onChange:o=>i(o),placeholder:"Pick security schemes",icon:f.jsx(Q.ChevronDownIcon,{}),withArrow:!1,alignment:"end",renderDivider:bYe,hideCheckmarkIcon:!0})}const SYe=T(Q.Select)`
|
|
2809
|
+
`;function vYe({schemes:t}){return f.jsx(wYe,{children:t.map((e,r)=>f.jsxs($.Fragment,{children:[f.jsx("span",{children:e}),r!==t.length-1?f.jsx(YJ,{borderless:!0,children:"and"}):null]},`${e}_${crypto.randomUUID()}`))})}function bYe(){return f.jsxs(PYe,{children:[f.jsx(YJ,{borderless:!0,children:"or"}),f.jsx(CYe,{})]})}function xYe({securitySchemeVariants:t,onSelect:e}){const{sendEvent:r}=st(),n=$.useMemo(()=>t.map(o=>({element:f.jsx(vYe,{schemes:o.security.map(s=>s.securitySchemeId)}),value:o.id,label:"Pick security schemes"})),[t]),i=o=>{r("change",[{context:"scheme",source:"security",value:o}]),e?.(o)};return f.jsx(SYe,{dataTestId:"security-scheme-select",options:n,value:{value:"",label:"Pick security schemes"},onChange:o=>i(o),placeholder:"Pick security schemes",icon:f.jsx(Q.ChevronDownIcon,{}),withArrow:!1,alignment:"end",renderDivider:bYe,hideCheckmarkIcon:!0})}const SYe=T(Q.Select)`
|
|
2810
2810
|
display: flex;
|
|
2811
2811
|
margin-right: var(--spacing-xxs);
|
|
2812
2812
|
border-radius: var(--border-radius-md);
|
|
@@ -2856,7 +2856,7 @@ Please report this to https://github.com/markedjs/marked.`,t){const i="<p>An err
|
|
|
2856
2856
|
font-size: var(--font-size-base);
|
|
2857
2857
|
font-weight: var(--font-weight-medium);
|
|
2858
2858
|
padding: var(--spacing-xs);
|
|
2859
|
-
`;function RYe(t=32){let e="";for(;e.length<t;)e+=Math.random().toString(32).substring(2);return e.substring(0,t)}async function _Ye(t){const e=new TextEncoder().encode(t);return crypto?.subtle.digest("SHA-256",e)}function jYe(t){if(t)return btoa(String.fromCharCode.apply(null,new Uint8Array(t))).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function hq(t,e,r){const n=typeof t=="string"?t:t.toString();if(Da()){const{openUrl:i}=await Promise.resolve().then(()=>require("./replay-index-
|
|
2859
|
+
`;function RYe(t=32){let e="";for(;e.length<t;)e+=Math.random().toString(32).substring(2);return e.substring(0,t)}async function _Ye(t){const e=new TextEncoder().encode(t);return crypto?.subtle.digest("SHA-256",e)}function jYe(t){if(t)return btoa(String.fromCharCode.apply(null,new Uint8Array(t))).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function hq(t,e,r){const n=typeof t=="string"?t:t.toString();if(Da()){const{openUrl:i}=await Promise.resolve().then(()=>require("./replay-index-BLnEGhe2.js"));await i(n);return}window.open(n,e,r)}const gq="/_auth/oauth2-redirect.html";let v1=class Rp{static async authorizeImplicit({authorizationUrl:e,clientId:r,scopes:n,extraAuthParams:i={},routingBasePath:o="/",redirectUri:s,successCallback:a,errorCallback:l}){const c=mq({date:new Date().toString()});try{const u=new URL(e),d=o==="/"?"":o,p=`${window.location.origin}${d}${gq}`;u.searchParams.set("client_id",r),u.searchParams.set("redirect_uri",s||p),u.searchParams.set("response_type","token"),u.searchParams.set("state",c),Array.isArray(n)&&u.searchParams.set("scope",n.join(" "));for(const h in i)u.searchParams.set(h,i[h]);window.redirectOAuth2={flow:"implicit",data:{authorizationUrl:e,clientId:r,scopes:n},state:c,successCallback:h=>{a(h),Rp.clearRedirectData("implicit")},errorCallback:h=>{l(h),Rp.clearRedirectData("implicit")}},await hq(u.toString())}catch(u){l(sa.OAuth2Error.fromError(u))}}static async authorizeAuthorizationCode({authorizationUrl:e,tokenUrl:r,serverUrl:n,clientId:i,clientSecret:o,codeVerifier:s,codeChallenge:a,scopes:l,extraAuthParams:c={},extraTokenHeaders:u={},extraTokenBody:d={},extraTokenParams:p={},routingBasePath:h="/",redirectUri:m,withPkce:g,successCallback:O,errorCallback:y}){try{const v=YO({url:e,serverUrl:n}),b=new URL(v),w=YO({url:r,serverUrl:n}),S=new URL(w),P=h==="/"?"":h,C=`${window.location.origin}${P}${gq}`,E=mq({date:new Date().toString()});b.searchParams.set("client_id",i),b.searchParams.set("redirect_uri",m||C),b.searchParams.set("response_type","code"),b.searchParams.set("state",E),Array.isArray(l)&&b.searchParams.set("scope",l.join(" ")),g&&(!a&&!s&&(s=NYe(),a=await QYe(s)),a&&(b.searchParams.set("code_challenge",a),b.searchParams.set("code_challenge_method","S256")));for(const R in c)b.searchParams.set(R,c[R]);for(const R in p)S.searchParams.set(R,p[R]);window.redirectOAuth2={flow:"authorizationCode",data:{authorizationUrl:e,clientId:i,scopes:l},state:E,successCallback:async({auth_code:R})=>{const D=ma({client_id:i,client_secret:o,...s&&{code_verifier:s},code:R,grant_type:"authorization_code",redirect_uri:m||C,...d});try{const _=await Sa(S,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8",Accept:"application/json",...u},body:new URLSearchParams(D).toString()});await MP(_,O,y)}catch(_){y(sa.OAuth2Error.fromError(_))}Rp.clearRedirectData("authorizationCode")},errorCallback:R=>{y(sa.OAuth2Error.fromError(R)),Rp.clearRedirectData("authorizationCode")}},await hq(b.toString())}catch(v){y(sa.OAuth2Error.fromError(v))}}static clearRedirectData(e){window.redirectOAuth2={flow:e,data:{authorizationUrl:"",clientId:"",scopes:[]},state:"",successCallback:()=>{},errorCallback:()=>{}}}static async authorizeClientCredentials({tokenUrl:e,clientId:r,clientSecret:n,scopes:i=[],extraTokenParams:o={},extraTokenHeaders:s={},extraTokenBody:a={},corsProxyUrl:l,serverUrl:c,assertionType:u,clientAssertion:d,successCallback:p,errorCallback:h}){try{const m={client_id:r,client_secret:n,grant_type:"client_credentials",scope:Array.isArray(i)&&i.length?i.join(" "):void 0,client_assertion_type:u,client_assertion:d,...a},g=YO({url:e,serverUrl:c,corsProxyUrl:l}),O=new URL(g);for(const v in o)O.searchParams.set(v,o[v]);const y=await Sa(g,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8",Accept:"application/json",...s},body:new URLSearchParams(k5(m)).toString()});await MP(y,p,h)}catch(m){h(sa.OAuth2Error.fromError(m))}}static async authorizePasswordGrant({username:e,password:r,tokenUrl:n,clientId:i,clientSecret:o,scopes:s=[],extraTokenParams:a={},extraTokenHeaders:l={},extraTokenBody:c={},corsProxyUrl:u,serverUrl:d,successCallback:p,errorCallback:h}){try{const m={client_id:i,client_secret:o,grant_type:"password",username:e,password:r,scope:Array.isArray(s)&&s.length?s.join(" "):void 0,...c},g=YO({url:n,serverUrl:d,corsProxyUrl:u}),O=new URL(g);for(const v in a)O.searchParams.set(v,a[v]);const y=await Sa(g,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8",Accept:"application/json",...l},body:new URLSearchParams(k5(m)).toString()});await MP(y,p,h)}catch(m){h(sa.OAuth2Error.fromError(m))}}};function mq(t){const e={randomStr:RYe(),...t};return btoa(encodeURIComponent(JSON.stringify(e)))}async function MP(t,e,r){if(t.ok){const n=await t.json();if(n.error){r(sa.OAuth2Error.fromJsonData(n));return}e(n)}else{if((t.headers.get("Content-Type")||"").indexOf("json")>-1){const o=await t.json();r(sa.OAuth2Error.fromJsonData(o));return}r(sa.OAuth2Error.fromTextData(await t.text()))}}async function QYe(t){return jYe(await _Ye(t))}function DYe(t){return("0"+t.toString(16)).substring(-2)}function NYe(){const t=new Uint32Array(28);return crypto.getRandomValues(t),Array.from(t,DYe).join("")}function b1({scopes:t,environment:e}){const r=(i,o)=>{o&&t.merge([pi()])},n=i=>{t[i].set(pt)};return f.jsx(MYe,{children:f.jsx(qYe,{keyName:"Scopes",elements:t,onParameterChange:r,environment:e,actions:i=>f.jsx(yi,{onClick:()=>n(i),variant:"text",icon:f.jsx(Q.TrashCanIcon,{})}),singleValue:!0,hideOuterBorders:!0,valuePlaceholder:"New scope item"})})}const MYe=T.div`
|
|
2860
2860
|
width: 100%;
|
|
2861
2861
|
|
|
2862
2862
|
> div {
|
|
@@ -3048,7 +3048,7 @@ Please report this to https://github.com/markedjs/marked.`,t){const i="<p>An err
|
|
|
3048
3048
|
color: var(--text-color-secondary);
|
|
3049
3049
|
text-align: center;
|
|
3050
3050
|
max-width: 48%;
|
|
3051
|
-
`;function $Ge({onGenerateTokenClick:t}){const[e,r]=$.useState(null),[n,i]=$.useState("loading"),{sendEvent:o}=st(),s=$.useCallback(()=>{t(),i("loading"),o("token.generate",{source:"oauth2",action:"clicked"})},[t,o]),a=$.useCallback(()=>{r(null),i("success"),o("token.generate",{source:"oauth2",action:"success"})},[o]),l=$.useCallback(c=>{r(c.message),i("error"),o("token.generate",{source:"oauth2",action:"error"}),console.log("❌ Error during token generation:",c)},[o]);return{tokenState:n,tokenRequestErrorMessage:e,handleGenerateTokenClick:s,handleTokenSuccess:a,handleTokenError:l}}const kGe="Predefined security type from the openapi description.",TGe="Alternative security type types not predefined for this request.";function EGe(t){return t===Ef?kGe:TGe}function AGe(t){return t.map(e=>({label:f.jsx("div",{children:e}),value:e}))}function IGe(){const t=Object.values(Se);return AGe(t)}const RGe={[Se.ClientCredentials]:eGe,[Se.ClientCredentialsWithJwtAssertion]:tGe,[Se.AuthorizationCode]:sGe,[Se.AuthorizationCodeWithPkce]:aGe,[Se.Implicit]:cGe,[Se.Password]:dGe};function tK({security:t,securityType:e=ve.OAuth2,apiOperation:r,serverUrl:n,disabled:i}){const{[ve.OAuth2]:o,[ve.OpenIDConnect]:s,securitySchemeId:a}=t,l=e===ve.OAuth2?o:s,c=e===ve.OAuth2?b5e(r,a.get()):s.documentedOAuth2Types.get()||[],u=IGe(),d=TI(c,u),p=Kt(),{sendEvent:h}=st(),m=Vi(),g=La(),{tokenState:O,tokenRequestErrorMessage:y,handleTokenSuccess:v,handleTokenError:b,handleGenerateTokenClick:w}=$Ge({onGenerateTokenClick:g.handleOpen}),{grantType:S}=l,P=S.get(),{accessToken:C}=l[P],E=_=>{C.set(_)},R=({value:_})=>{S.set(_),h("change",{context:"flow",source:"oauth2",value:_})},D=RGe[P];return f.jsxs(Xo,{id:"oauth2-container",children:[f.jsxs(kt,{children:[f.jsx(St,{children:"Access Token"}),f.jsx(Be,{}),f.jsx(Tt,{placeholder:"Enter your token or create a new one",value:C.get(),environment:p,options:m,onChange:E,disabled:i})]}),f.jsx(ct,{}),!i&&f.jsxs(GJ,{title:"Configure New Token",children:[f.jsx(ct,{}),f.jsxs(kt,{children:[f.jsx(St,{children:"Grant type"}),f.jsx(Be,{}),f.jsx(_Ge,{dataTestId:"oauth2-grand-type-select",options:d,value:u.find(({value:_})=>_===P),onChange:R,formatGroupLabel:_=>f.jsx(m1,{data:_,getTooltipText:EGe})})]}),f.jsx(ct,{}),f.jsx(D,{type:e,serverUrl:n,onGenerateTokenClick:w,onSuccess:v,onError:b,security:t})]}),f.jsx(Qa,{title:"Generate Token",content:f.jsx(bGe,{state:O,onClick:g.handleClose,security:t,securityType:e,errorMessage:y}),isOpen:g.isOpen,onClose:g.handleClose,mountId:"oauth2-container"})]})}const _Ge=T(w0)`
|
|
3051
|
+
`;function $Ge({onGenerateTokenClick:t}){const[e,r]=$.useState(null),[n,i]=$.useState("loading"),{sendEvent:o}=st(),s=$.useCallback(()=>{t(),i("loading"),o("token.generate",[{source:"oauth2",action:"clicked"}])},[t,o]),a=$.useCallback(()=>{r(null),i("success"),o("token.generate",[{source:"oauth2",action:"success"}])},[o]),l=$.useCallback(c=>{r(c.message),i("error"),o("token.generate",[{source:"oauth2",action:"error"}]),console.log("❌ Error during token generation:",c)},[o]);return{tokenState:n,tokenRequestErrorMessage:e,handleGenerateTokenClick:s,handleTokenSuccess:a,handleTokenError:l}}const kGe="Predefined security type from the openapi description.",TGe="Alternative security type types not predefined for this request.";function EGe(t){return t===Ef?kGe:TGe}function AGe(t){return t.map(e=>({label:f.jsx("div",{children:e}),value:e}))}function IGe(){const t=Object.values(Se);return AGe(t)}const RGe={[Se.ClientCredentials]:eGe,[Se.ClientCredentialsWithJwtAssertion]:tGe,[Se.AuthorizationCode]:sGe,[Se.AuthorizationCodeWithPkce]:aGe,[Se.Implicit]:cGe,[Se.Password]:dGe};function tK({security:t,securityType:e=ve.OAuth2,apiOperation:r,serverUrl:n,disabled:i}){const{[ve.OAuth2]:o,[ve.OpenIDConnect]:s,securitySchemeId:a}=t,l=e===ve.OAuth2?o:s,c=e===ve.OAuth2?b5e(r,a.get()):s.documentedOAuth2Types.get()||[],u=IGe(),d=TI(c,u),p=Kt(),{sendEvent:h}=st(),m=Vi(),g=La(),{tokenState:O,tokenRequestErrorMessage:y,handleTokenSuccess:v,handleTokenError:b,handleGenerateTokenClick:w}=$Ge({onGenerateTokenClick:g.handleOpen}),{grantType:S}=l,P=S.get(),{accessToken:C}=l[P],E=_=>{C.set(_)},R=({value:_})=>{S.set(_),h("change",[{context:"flow",source:"oauth2",value:_}])},D=RGe[P];return f.jsxs(Xo,{id:"oauth2-container",children:[f.jsxs(kt,{children:[f.jsx(St,{children:"Access Token"}),f.jsx(Be,{}),f.jsx(Tt,{placeholder:"Enter your token or create a new one",value:C.get(),environment:p,options:m,onChange:E,disabled:i})]}),f.jsx(ct,{}),!i&&f.jsxs(GJ,{title:"Configure New Token",children:[f.jsx(ct,{}),f.jsxs(kt,{children:[f.jsx(St,{children:"Grant type"}),f.jsx(Be,{}),f.jsx(_Ge,{dataTestId:"oauth2-grand-type-select",options:d,value:u.find(({value:_})=>_===P),onChange:R,formatGroupLabel:_=>f.jsx(m1,{data:_,getTooltipText:EGe})})]}),f.jsx(ct,{}),f.jsx(D,{type:e,serverUrl:n,onGenerateTokenClick:w,onSuccess:v,onError:b,security:t})]}),f.jsx(Qa,{title:"Generate Token",content:f.jsx(bGe,{state:O,onClick:g.handleClose,security:t,securityType:e,errorMessage:y}),isOpen:g.isOpen,onClose:g.handleClose,mountId:"oauth2-container"})]})}const _Ge=T(w0)`
|
|
3052
3052
|
margin-left: var(--spacing-xs);
|
|
3053
3053
|
padding-left: 0;
|
|
3054
3054
|
`,jGe="Predefined request data from the openapi description.",QGe="Alternative authorization types not predefined for this request.";function DGe(t){return t.map(e=>({label:f.jsx("div",{children:e}),value:e}))}function NGe(){const t=Object.values(ve);return DGe(t)}function MGe(t){return t===Ef?jGe:QGe}function qGe(t,e,r=!1){if(!t.length)return e;const n={label:Ef,options:t.map(i=>({label:i.securitySchemeId,value:i.securitySchemeId}))};return r?[n]:[n,{label:PJ,options:e}]}function Pq(t,e){for(const r of t)if("options"in r){const n=r.options.find(i=>i.value===e);if(n)return n}else if(r.value===e)return r}function zGe(t){for(const e of t)if("options"in e){if(e.options.length>0)return e.options[0]}else return e}function LGe(t,e,r){if(e){const i=Pq(r,e);if(i)return i}const n=Pq(r,t);return n||zGe(r)}async function VGe(t){return(await fetch(t)).json()}function XGe(t){return t.userinfo_endpoint}function WGe(t,e){const r=Lo()[ve.OAuth2],n=(s,a)=>{switch(a){case Se.AuthorizationCodeWithPkce:return{...r[Se.AuthorizationCodeWithPkce],accessToken:e[Se.AuthorizationCodeWithPkce].accessToken,clientId:e[Se.AuthorizationCodeWithPkce].clientId,clientSecret:e[Se.AuthorizationCodeWithPkce].clientSecret,tokenUrl:s.token_endpoint,authorizationUrl:s.authorization_endpoint,availableScopes:s.scopes_supported||[],scopes:Hw(s.scopes_supported||[])};case Se.AuthorizationCode:return{...r[Se.AuthorizationCode],accessToken:e[Se.AuthorizationCode].accessToken,clientId:e[Se.AuthorizationCode].clientId,clientSecret:e[Se.AuthorizationCode].clientSecret,tokenUrl:s.token_endpoint,authorizationUrl:s.authorization_endpoint,availableScopes:s.scopes_supported||[],scopes:Hw(s.scopes_supported||[])};case Se.Implicit:return{...r[Se.Implicit],accessToken:e[Se.Implicit].accessToken,clientId:e[Se.Implicit].clientId,authorizationUrl:s.authorization_endpoint,availableScopes:s.scopes_supported||[],scopes:Hw(s.scopes_supported||[])};default:return{}}},i=UGe(t);return{...r,documentedOAuth2Types:i,grantType:i[0]||Se.AuthorizationCode,[Se.AuthorizationCode]:n(t,Se.AuthorizationCode),[Se.AuthorizationCodeWithPkce]:n(t,Se.AuthorizationCodeWithPkce),[Se.Implicit]:n(t,Se.Implicit)}}function UGe(t){return t.response_types_supported?.map(r=>BGe(r)).filter(Boolean)||[]}function BGe(t){switch(t){case"token":return Se.Implicit;case"code":case"id_token":return Se.AuthorizationCode;default:return null}}function FGe({security:t,apiOperation:e,disabled:r}){const[n,i]=$.useState(!1),[o,s]=$.useState(!1),{[ve.OpenIDConnect]:a}=t,l=gt(),{openIdConnectUrl:c,userInfoUrl:u}=a,d=Kt(),p=O=>{i(!1),c.set(O)},h=O=>{u.set(O)},m=async O=>{s(!0),i(!1);try{const y=await VGe(O);a.set({...a.get(),...WGe(y,a.get()),userInfoUrl:XGe(y)})}catch(y){console.log(y),i(!!y.message)}s(!1)},g=()=>{m(kn(c.get(),l))};return f.jsxs(Xo,{id:"oidc-container",children:[f.jsxs(kt,{children:[f.jsx(St,{children:"OpenId Connect URL"}),f.jsx(Be,{}),f.jsx(Tt,{placeholder:"Enter your OpenId Connect URL",value:c.get(),environment:d,onChange:p,dataTestId:"oidc-connect-url",disabled:r})]}),f.jsx(ct,{}),!r&&f.jsxs(f.Fragment,{children:[f.jsxs(YGe,{children:[f.jsx(Q.Button,{variant:"secondary",onClick:g,icon:o?f.jsx(Q.SpinnerIcon,{}):void 0,disabled:!c.get(),size:"small",children:"Generate data"}),n&&f.jsxs(ZGe,{"data-testid":"oidc-data-generate-error",children:[f.jsx(Q.InformationIcon,{color:"var(--color-error-base)"}),f.jsx("span",{children:"Something is wrong! Please check settings and try again."})]})]}),f.jsx(ct,{}),f.jsxs(kt,{children:[f.jsx(St,{children:"User Info URL"}),f.jsx(Be,{}),f.jsx(Tt,{placeholder:"Enter your User Info URL",value:u.get()||"",environment:d,onChange:h})]}),f.jsx(ct,{}),f.jsx(tK,{security:t,securityType:ve.OpenIDConnect,apiOperation:e})]})]})}const ZGe=T.div`
|
|
@@ -3064,7 +3064,7 @@ Please report this to https://github.com/markedjs/marked.`,t){const i="<p>An err
|
|
|
3064
3064
|
display: flex;
|
|
3065
3065
|
justify-content: flex-start;
|
|
3066
3066
|
gap: var(--spacing-xs);
|
|
3067
|
-
`;function GGe({security:t,disabled:e}){const{[ve.DigestAuth]:{username:r,password:n}}=t,i=Kt(),o=Vi(),s=(a,l)=>{l.dataset.name==="username"?r.set(a):n.set(a)};return f.jsxs(Xo,{children:[f.jsxs(kt,{children:[f.jsx(St,{children:"Username"}),f.jsx(Be,{}),f.jsx(Tt,{"data-name":"username",placeholder:"Username",value:r.get(),environment:i,options:o,onChange:s,disabled:e})]}),f.jsx(ct,{}),f.jsxs(kt,{children:[f.jsx(St,{children:"Password"}),f.jsx(Be,{}),f.jsx(Tt,{"data-name":"password",placeholder:"Password",value:n.get(),environment:i,options:o,onChange:s,disabled:e})]})]})}const HGe={[ve.NoAuth]:null,[ve.BasicAuth]:kYe,[ve.DigestAuth]:GGe,[ve.JWT]:TYe,[ve.APIKey]:$Ye,[ve.OAuth2]:tK,[ve.OpenIDConnect]:FGe},Cq=Object.values(Di).map(t=>({label:f.jsx("div",{children:t}),value:t}));function $q({security:t,additionalActions:e,apiOperation:r,serverUrl:n,disabled:i}){const{securityType:o,securitySchemeId:s}=t,{sendEvent:a}=st(),{hideOtherSecuritySchemes:l}=ru(),c=y5e(r)||[],u=NGe(),d=qGe(c,u,l),{location:p}=t[ve.APIKey],h=HGe[o.get()],m=({value:v})=>{const b=c.find(w=>v===w.securitySchemeId);b?t.set(b):(o.set(v),s.set(null)),a("change",{context:"type",source:"security",value:v,is_documented:!!b})},g=s.get(),O=o.get(),y=LGe(O,g,d);return $.useEffect(()=>{if(!y)return;if(!(g&&y.value===g||!g&&y.value===O)){const b=c.find(w=>w.securitySchemeId===y.value);b?t.set(b):(o.set(y.value),s.set(null))}},[y?.value,l]),f.jsxs(JGe,{children:[f.jsxs(KGe,{children:[f.jsxs(eHe,{children:[f.jsx(St,{children:"Authorization type"}),f.jsx(w0,{isDisabled:i,dataTestId:"security-type-select",options:d,value:y??{value:"",label:""},onChange:m,formatGroupLabel:v=>f.jsx(m1,{data:v,getTooltipText:MGe}),menuAlignment:"right"})]}),o.get()===ve.APIKey&&f.jsxs(tHe,{children:[f.jsx(St,{children:"Add to"}),f.jsx(w0,{dataTestId:"api-key-location-select",options:Cq,value:Cq.find(({value:v})=>v===p.get()),onChange:({value:v})=>p.set(v),isDisabled:i})]}),f.jsx(NI,{children:e&&f.jsx(rHe,{children:e})})]}),h&&f.jsxs(f.Fragment,{children:[f.jsx(ct,{}),f.jsx(h,{security:t,apiOperation:r,serverUrl:n,disabled:i})]})]})}const JGe=T.div`
|
|
3067
|
+
`;function GGe({security:t,disabled:e}){const{[ve.DigestAuth]:{username:r,password:n}}=t,i=Kt(),o=Vi(),s=(a,l)=>{l.dataset.name==="username"?r.set(a):n.set(a)};return f.jsxs(Xo,{children:[f.jsxs(kt,{children:[f.jsx(St,{children:"Username"}),f.jsx(Be,{}),f.jsx(Tt,{"data-name":"username",placeholder:"Username",value:r.get(),environment:i,options:o,onChange:s,disabled:e})]}),f.jsx(ct,{}),f.jsxs(kt,{children:[f.jsx(St,{children:"Password"}),f.jsx(Be,{}),f.jsx(Tt,{"data-name":"password",placeholder:"Password",value:n.get(),environment:i,options:o,onChange:s,disabled:e})]})]})}const HGe={[ve.NoAuth]:null,[ve.BasicAuth]:kYe,[ve.DigestAuth]:GGe,[ve.JWT]:TYe,[ve.APIKey]:$Ye,[ve.OAuth2]:tK,[ve.OpenIDConnect]:FGe},Cq=Object.values(Di).map(t=>({label:f.jsx("div",{children:t}),value:t}));function $q({security:t,additionalActions:e,apiOperation:r,serverUrl:n,disabled:i}){const{securityType:o,securitySchemeId:s}=t,{sendEvent:a}=st(),{hideOtherSecuritySchemes:l}=ru(),c=y5e(r)||[],u=NGe(),d=qGe(c,u,l),{location:p}=t[ve.APIKey],h=HGe[o.get()],m=({value:v})=>{const b=c.find(w=>v===w.securitySchemeId);b?t.set(b):(o.set(v),s.set(null)),a("change",[{context:"type",source:"security",value:v,is_documented:!!b}])},g=s.get(),O=o.get(),y=LGe(O,g,d);return $.useEffect(()=>{if(!y)return;if(!(g&&y.value===g||!g&&y.value===O)){const b=c.find(w=>w.securitySchemeId===y.value);b?t.set(b):(o.set(y.value),s.set(null))}},[y?.value,l]),f.jsxs(JGe,{children:[f.jsxs(KGe,{children:[f.jsxs(eHe,{children:[f.jsx(St,{children:"Authorization type"}),f.jsx(w0,{isDisabled:i,dataTestId:"security-type-select",options:d,value:y??{value:"",label:""},onChange:m,formatGroupLabel:v=>f.jsx(m1,{data:v,getTooltipText:MGe}),menuAlignment:"right"})]}),o.get()===ve.APIKey&&f.jsxs(tHe,{children:[f.jsx(St,{children:"Add to"}),f.jsx(w0,{dataTestId:"api-key-location-select",options:Cq,value:Cq.find(({value:v})=>v===p.get()),onChange:({value:v})=>p.set(v),isDisabled:i})]}),f.jsx(NI,{children:e&&f.jsx(rHe,{children:e})})]}),h&&f.jsxs(f.Fragment,{children:[f.jsx(ct,{}),f.jsx(h,{security:t,apiOperation:r,serverUrl:n,disabled:i})]})]})}const JGe=T.div`
|
|
3068
3068
|
display: flex;
|
|
3069
3069
|
flex-direction: column;
|
|
3070
3070
|
border: 1px solid var(--border-color-secondary);
|
|
@@ -3098,7 +3098,7 @@ Please report this to https://github.com/markedjs/marked.`,t){const i="<p>An err
|
|
|
3098
3098
|
display: flex;
|
|
3099
3099
|
justify-content: center;
|
|
3100
3100
|
align-items: center;
|
|
3101
|
-
`;function rK({data:t,sharedData:e,apiOperation:r,serverUrl:n,collectionId:i,workflowId:o}){const{sendEvent:s}=st(),{openWorkflowTab:a}=dn(),[l,c]=$.useState(!0),u=r?p5e(r):[],d=u.length,p=()=>{s("button.click",{source:"security",action:"add"}),t.merge([Lo()])},h=O=>{s("button.click",{source:"security",action:"remove",security_type:O.securityType.get()}),O.set(pt)},m=O=>{const y=u.find(v=>v.id===O);y&&t.set(y.security)},g=e?.filter(O=>O.securityType.get()!==ve.NoAuth)??[];return f.jsxs(f.Fragment,{children:[g.length>0&&f.jsx(oHe,{children:f.jsx(Q.Button,{size:"small",onClick:()=>c(!l),children:l?f.jsxs(f.Fragment,{children:[f.jsx(Q.ViewOffIcon,{})," Hide workflow security (",g.length,")"]}):f.jsxs(f.Fragment,{children:[f.jsx(Q.ViewIcon,{})," Show workflow security (",g.length,")"]})})}),l&&g.length>0&&f.jsx(kq,{children:g.map((O,y)=>O.ornull?f.jsx($.Fragment,{children:f.jsx($q,{apiOperation:null,disabled:!0,security:O,additionalActions:f.jsx(sr,{content:"Edit in workflow",placement:"topRight",children:f.jsx(Q.Button,{variant:"text",size:"small",icon:f.jsx(Q.EditIcon,{}),onClick:()=>i&&o&&a({collectionId:i,workflowId:o,activeTabName:lt.SECURITY})})})})},`${O.securityType.get()}_${O.securitySchemeId.get()}_${y}`):null)}),f.jsxs(nHe,{children:[f.jsx(Ra,{children:"Security Scheme"}),d>1&&f.jsx(xYe,{securitySchemeVariants:u,onSelect:m})]}),f.jsx(kq,{children:t.map((O,y)=>O.ornull?f.jsx($.Fragment,{children:f.jsx($q,{apiOperation:r,serverUrl:n,security:O,additionalActions:f.jsx(sr,{content:"Delete",placement:"topRight",children:f.jsx(yi,{variant:"text",disabled:t.length===1,icon:f.jsx(Q.TrashCanIcon,{}),onClick:()=>h(O)})})})},`${O.securityType.get()}_${O.securitySchemeId.get()}_${y}`):null)}),f.jsx(iHe,{variant:"secondary",size:"small",icon:f.jsx(Q.AddIcon,{}),onClick:p,children:"Add security"})]})}const nHe=T.div`
|
|
3101
|
+
`;function rK({data:t,sharedData:e,apiOperation:r,serverUrl:n,collectionId:i,workflowId:o}){const{sendEvent:s}=st(),{openWorkflowTab:a}=dn(),[l,c]=$.useState(!0),u=r?p5e(r):[],d=u.length,p=()=>{s("button.click",[{source:"security",action:"add"}]),t.merge([Lo()])},h=O=>{s("button.click",[{source:"security",action:"remove",security_type:O.securityType.get()}]),O.set(pt)},m=O=>{const y=u.find(v=>v.id===O);y&&t.set(y.security)},g=e?.filter(O=>O.securityType.get()!==ve.NoAuth)??[];return f.jsxs(f.Fragment,{children:[g.length>0&&f.jsx(oHe,{children:f.jsx(Q.Button,{size:"small",onClick:()=>c(!l),children:l?f.jsxs(f.Fragment,{children:[f.jsx(Q.ViewOffIcon,{})," Hide workflow security (",g.length,")"]}):f.jsxs(f.Fragment,{children:[f.jsx(Q.ViewIcon,{})," Show workflow security (",g.length,")"]})})}),l&&g.length>0&&f.jsx(kq,{children:g.map((O,y)=>O.ornull?f.jsx($.Fragment,{children:f.jsx($q,{apiOperation:null,disabled:!0,security:O,additionalActions:f.jsx(sr,{content:"Edit in workflow",placement:"topRight",children:f.jsx(Q.Button,{variant:"text",size:"small",icon:f.jsx(Q.EditIcon,{}),onClick:()=>i&&o&&a({collectionId:i,workflowId:o,activeTabName:lt.SECURITY})})})})},`${O.securityType.get()}_${O.securitySchemeId.get()}_${y}`):null)}),f.jsxs(nHe,{children:[f.jsx(Ra,{children:"Security Scheme"}),d>1&&f.jsx(xYe,{securitySchemeVariants:u,onSelect:m})]}),f.jsx(kq,{children:t.map((O,y)=>O.ornull?f.jsx($.Fragment,{children:f.jsx($q,{apiOperation:r,serverUrl:n,security:O,additionalActions:f.jsx(sr,{content:"Delete",placement:"topRight",children:f.jsx(yi,{variant:"text",disabled:t.length===1,icon:f.jsx(Q.TrashCanIcon,{}),onClick:()=>h(O)})})})},`${O.securityType.get()}_${O.securitySchemeId.get()}_${y}`):null)}),f.jsx(iHe,{variant:"secondary",size:"small",icon:f.jsx(Q.AddIcon,{}),onClick:p,children:"Add security"})]})}const nHe=T.div`
|
|
3102
3102
|
display: flex;
|
|
3103
3103
|
flex-direction: row;
|
|
3104
3104
|
justify-content: space-between;
|
|
@@ -3119,7 +3119,7 @@ Please report this to https://github.com/markedjs/marked.`,t){const i="<p>An err
|
|
|
3119
3119
|
align-items: center;
|
|
3120
3120
|
gap: var(--spacing-sm);
|
|
3121
3121
|
margin-bottom: var(--spacing-xs);
|
|
3122
|
-
`;function sHe(){const{tabData:t,step:e,workflow:r,collection:n,apiOperation:i,isDraft:o}=ho(),{activeTabName:s}=t,a=s.get()??rh(e.get()),{sendEvent:l}=st(),c=vG(o),{servers:u}=Kt(),d=e.operation.get()?.apiId,p=u.find(y=>y.apiId.get()===d)?.get(),h=p?RZ(p.value,p.variables):void 0,m=n?.components.parameters.get({noproxy:!0});function g(){const y=e.parameters.queryParameters.get().filter(Pz);e.xOperation.ornull?.url.set(Ng(e.xOperation.ornull?.url.get(),y))}const O=y=>{s.set(y),l("tab.change",{source:"request",name:y})};return f.jsxs(f.Fragment,{children:[f.jsx(mYe,{activeTabName:a,onChange:O}),f.jsx(r1,{tabs:c,activeTabName:a,onTabChange:O}),f.jsx(aHe,{children:(()=>{switch(a){case lt.SECURITY:return f.jsx(rK,{data:e.security,sharedData:r?.security,serverUrl:h,apiOperation:i,collectionId:n?.id.get(),workflowId:r?.workflowId.get()});case lt.BODY:return f.jsx(cYe,{data:e.requestBody,apiOperation:i});case lt.QUERY:return f.jsx(UJ,{title:"Query Parameters",keyName:"Parameter",data:e.parameters.queryParameters,sharedData:r?.parameters.queryParameters,reusableData:m,apiOperation:i,onChange:g,collectionId:n?.id.get(),workflowId:r?.workflowId.get()});case lt.PATH:return f.jsx(WJ,{data:e.parameters.pathParameters,sharedData:r?.parameters.pathParameters,reusableData:m,apiOperation:i,collectionId:n?.id.get(),workflowId:r?.workflowId.get()});case lt.HEADERS:return f.jsx(XJ,{data:e.parameters.headers,sharedData:r?.parameters.headers,reusableData:m,keyName:"Header",title:"Header Parameters",apiOperation:i,collectionId:n?.id.get(),workflowId:r?.workflowId.get()});case lt.COOKIES:return f.jsx(VJ,{data:e.parameters.cookies,sharedData:r?.parameters.cookies,reusableData:m,keyName:"Cookie",title:"Cookies",apiOperation:i,collectionId:n?.id.get(),workflowId:r?.workflowId.get()});case lt.STEP_SETTINGS:return f.jsx(TZe,{step:e,workflowId:r?.workflowId.get()??null,collectionId:n?.id.get()??null});default:return null}})()})]})}const aHe=T.div`
|
|
3122
|
+
`;function sHe(){const{tabData:t,step:e,workflow:r,collection:n,apiOperation:i,isDraft:o}=ho(),{activeTabName:s}=t,a=s.get()??rh(e.get()),{sendEvent:l}=st(),c=vG(o),{servers:u}=Kt(),d=e.operation.get()?.apiId,p=u.find(y=>y.apiId.get()===d)?.get(),h=p?RZ(p.value,p.variables):void 0,m=n?.components.parameters.get({noproxy:!0});function g(){const y=e.parameters.queryParameters.get().filter(Pz);e.xOperation.ornull?.url.set(Ng(e.xOperation.ornull?.url.get(),y))}const O=y=>{s.set(y),l("tab.change",[{source:"request",name:y}])};return f.jsxs(f.Fragment,{children:[f.jsx(mYe,{activeTabName:a,onChange:O}),f.jsx(r1,{tabs:c,activeTabName:a,onTabChange:O}),f.jsx(aHe,{children:(()=>{switch(a){case lt.SECURITY:return f.jsx(rK,{data:e.security,sharedData:r?.security,serverUrl:h,apiOperation:i,collectionId:n?.id.get(),workflowId:r?.workflowId.get()});case lt.BODY:return f.jsx(cYe,{data:e.requestBody,apiOperation:i});case lt.QUERY:return f.jsx(UJ,{title:"Query Parameters",keyName:"Parameter",data:e.parameters.queryParameters,sharedData:r?.parameters.queryParameters,reusableData:m,apiOperation:i,onChange:g,collectionId:n?.id.get(),workflowId:r?.workflowId.get()});case lt.PATH:return f.jsx(WJ,{data:e.parameters.pathParameters,sharedData:r?.parameters.pathParameters,reusableData:m,apiOperation:i,collectionId:n?.id.get(),workflowId:r?.workflowId.get()});case lt.HEADERS:return f.jsx(XJ,{data:e.parameters.headers,sharedData:r?.parameters.headers,reusableData:m,keyName:"Header",title:"Header Parameters",apiOperation:i,collectionId:n?.id.get(),workflowId:r?.workflowId.get()});case lt.COOKIES:return f.jsx(VJ,{data:e.parameters.cookies,sharedData:r?.parameters.cookies,reusableData:m,keyName:"Cookie",title:"Cookies",apiOperation:i,collectionId:n?.id.get(),workflowId:r?.workflowId.get()});case lt.STEP_SETTINGS:return f.jsx(TZe,{step:e,workflowId:r?.workflowId.get()??null,collectionId:n?.id.get()??null});default:return null}})()})]})}const aHe=T.div`
|
|
3123
3123
|
overflow: auto;
|
|
3124
3124
|
padding: 0 var(--spacing-md);
|
|
3125
3125
|
flex: 1;
|
|
@@ -3283,7 +3283,7 @@ Please report this to https://github.com/markedjs/marked.`,t){const i="<p>An err
|
|
|
3283
3283
|
color: var(--text-color-primary);
|
|
3284
3284
|
font-size: var(--font-size-base);
|
|
3285
3285
|
line-height: var(--line-height-base);
|
|
3286
|
-
`;function bHe(){const{tabData:t,apiOperation:e}=ho(),{response:r}=t.get(),{sendEvent:n}=st(),i=r?.body||"",o=r?.arrayBuffer||new ArrayBuffer(0),[s,a]=$.useState(on.Text),[l,c]=$.useState(""),u=$.useRef(null),d=Object.keys($p).map(y=>({element:f.jsx("div",{children:$p[y].name}),label:$p[y].name,value:y})),p=zI(r?.headers);$.useEffect(()=>{if(c(p||""),p){const y=iT(p);a(y)}else a(on.Text)},[p]);const h=s===on.JSON?iK(i):i,m=y=>{a(y),n("change",{context:"type",source:"response_body",value:y})},g=()=>{n("content.copy",{source:"response_body",section:"value"})},O=()=>{u.current?.triggerSearch()};return r?.bodyNotStored?f.jsx(Fg,{"data-testid":"response-body-not-stored",children:"Response body is not stored."}):f.jsxs(xHe,{children:[f.jsxs(LI,{children:[f.jsxs(wHe,{children:["Response body",f.jsx(PHe,{options:d,value:{value:s,label:$p[s].name},onChange:y=>m(y)})]}),f.jsxs(CHe,{children:[Sc[s]&&f.jsx(Q.Button,{variant:"text",size:"small",icon:f.jsx(Q.SearchIcon,{}),onClick:O,"aria-label":"Search in code"}),f.jsx(Q.CopyButton,{toasterPlacement:"left",data:h,onCopyClick:g})]})]}),f.jsx(SHe,{children:Sc[s]?f.jsx(_a,{readOnly:!0,isResponse:!0,dataTestId:"response-body-tab-codemirror",apiOperation:e,value:h,extensions:Sc[s].extensions,stateExtensions:Sc[s].stateExtensions,codeMirrorRef:u}):s===on.Image?f.jsx(uK,{arrayBuffer:o,contentType:l}):s===on.HTML?f.jsx("iframe",{srcDoc:h,style:{width:"100%",height:"100%",border:"none"},title:"HTML Content",sandbox:"allow-same-origin"}):f.jsx("div",{children:"No content available"})})]})}const xHe=T.div`
|
|
3286
|
+
`;function bHe(){const{tabData:t,apiOperation:e}=ho(),{response:r}=t.get(),{sendEvent:n}=st(),i=r?.body||"",o=r?.arrayBuffer||new ArrayBuffer(0),[s,a]=$.useState(on.Text),[l,c]=$.useState(""),u=$.useRef(null),d=Object.keys($p).map(y=>({element:f.jsx("div",{children:$p[y].name}),label:$p[y].name,value:y})),p=zI(r?.headers);$.useEffect(()=>{if(c(p||""),p){const y=iT(p);a(y)}else a(on.Text)},[p]);const h=s===on.JSON?iK(i):i,m=y=>{a(y),n("change",[{context:"type",source:"response_body",value:y}])},g=()=>{n("content.copy",[{source:"response_body",section:"value"}])},O=()=>{u.current?.triggerSearch()};return r?.bodyNotStored?f.jsx(Fg,{"data-testid":"response-body-not-stored",children:"Response body is not stored."}):f.jsxs(xHe,{children:[f.jsxs(LI,{children:[f.jsxs(wHe,{children:["Response body",f.jsx(PHe,{options:d,value:{value:s,label:$p[s].name},onChange:y=>m(y)})]}),f.jsxs(CHe,{children:[Sc[s]&&f.jsx(Q.Button,{variant:"text",size:"small",icon:f.jsx(Q.SearchIcon,{}),onClick:O,"aria-label":"Search in code"}),f.jsx(Q.CopyButton,{toasterPlacement:"left",data:h,onCopyClick:g})]})]}),f.jsx(SHe,{children:Sc[s]?f.jsx(_a,{readOnly:!0,isResponse:!0,dataTestId:"response-body-tab-codemirror",apiOperation:e,value:h,extensions:Sc[s].extensions,stateExtensions:Sc[s].stateExtensions,codeMirrorRef:u}):s===on.Image?f.jsx(uK,{arrayBuffer:o,contentType:l}):s===on.HTML?f.jsx("iframe",{srcDoc:h,style:{width:"100%",height:"100%",border:"none"},title:"HTML Content",sandbox:"allow-same-origin"}):f.jsx("div",{children:"No content available"})})]})}const xHe=T.div`
|
|
3287
3287
|
display: flex;
|
|
3288
3288
|
flex-direction: column;
|
|
3289
3289
|
overflow: auto;
|
|
@@ -3319,7 +3319,7 @@ Please report this to https://github.com/markedjs/marked.`,t){const i="<p>An err
|
|
|
3319
3319
|
justify-content: center;
|
|
3320
3320
|
gap: var(--spacing-xxs);
|
|
3321
3321
|
`;function $He(){const{tabData:t}=ho(),{response:e}=t.get(),{sendEvent:r}=st(),n=$.useMemo(()=>e?.headers||[],[e?.headers]),i=$.useMemo(()=>n.map(([a,l])=>`${a}: ${l}`).join(`
|
|
3322
|
-
`),[n]),o=()=>{r("content.copy",{source:"response",section:"header"})},s=()=>{r("content.copy",{source:"response",section:"all_headers"})};return f.jsxs(kHe,{children:[f.jsxs(LI,{children:[f.jsx(EHe,{children:"Header list"}),f.jsx(OHe,{children:f.jsx(Q.CopyButton,{toasterPlacement:"left",data:i,onCopyClick:s})})]}),f.jsx(oK,{children:n.map(([a,l])=>f.jsxs(sK,{children:[f.jsx(aK,{"data-testid":`response-header-key-${a}`,children:a}),f.jsx(lK,{"data-testid":`response-header-value-${a}`,children:f.jsx(Q.Tooltip,{tip:l,placement:"top",children:f.jsx(cK,{children:l})})}),f.jsx(THe,{toasterPlacement:"left",data:l,onCopyClick:o})]},a))})]})}const kHe=T.div`
|
|
3322
|
+
`),[n]),o=()=>{r("content.copy",[{source:"response",section:"header"}])},s=()=>{r("content.copy",[{source:"response",section:"all_headers"}])};return f.jsxs(kHe,{children:[f.jsxs(LI,{children:[f.jsx(EHe,{children:"Header list"}),f.jsx(OHe,{children:f.jsx(Q.CopyButton,{toasterPlacement:"left",data:i,onCopyClick:s})})]}),f.jsx(oK,{children:n.map(([a,l])=>f.jsxs(sK,{children:[f.jsx(aK,{"data-testid":`response-header-key-${a}`,children:a}),f.jsx(lK,{"data-testid":`response-header-value-${a}`,children:f.jsx(Q.Tooltip,{tip:l,placement:"top",children:f.jsx(cK,{children:l})})}),f.jsx(THe,{toasterPlacement:"left",data:l,onCopyClick:o})]},a))})]})}const kHe=T.div`
|
|
3323
3323
|
display: flex;
|
|
3324
3324
|
flex-direction: column;
|
|
3325
3325
|
height: 100%;
|
|
@@ -3341,7 +3341,7 @@ Please report this to https://github.com/markedjs/marked.`,t){const i="<p>An err
|
|
|
3341
3341
|
word-break: break-word;
|
|
3342
3342
|
overflow-wrap: break-word;
|
|
3343
3343
|
max-width: 400px;
|
|
3344
|
-
`,jHe=[{name:lt.BODY,icon:f.jsx(Q.CodeIcon,{})},{name:lt.HEADERS,icon:f.jsx(Q.TableBuiltIcon,{})},{name:lt.COOKIES,icon:f.jsx(Q.CookieIcon,{})}],{Tab:QHe,TabContent:DHe,TabListContainer:NHe,Tabs:MHe,TabsSize:qHe}=Q.markdoc.components,zHe=t=>t.children,LHe={[lt.BODY]:bHe,[lt.HEADERS]:$He,[lt.COOKIES]:AHe};function VHe(){const{tabData:t}=ho(),{sendEvent:e}=st(),{isMobile:r}=Qs();if(!Fr(t.get(),Ge.Step)||r)return null;const n=i=>{e("tab.change",{source:"response",name:i})};return f.jsx(XHe,{size:qHe.MEDIUM,initialTab:lt.BODY,children:jHe.map(i=>{const o=LHe[i.name];return f.jsx(zHe,{label:i.name,icon:i.icon,onClick:()=>n(i.name),children:o&&f.jsx(o,{})},i.name)})})}const XHe=T(MHe)`
|
|
3344
|
+
`,jHe=[{name:lt.BODY,icon:f.jsx(Q.CodeIcon,{})},{name:lt.HEADERS,icon:f.jsx(Q.TableBuiltIcon,{})},{name:lt.COOKIES,icon:f.jsx(Q.CookieIcon,{})}],{Tab:QHe,TabContent:DHe,TabListContainer:NHe,Tabs:MHe,TabsSize:qHe}=Q.markdoc.components,zHe=t=>t.children,LHe={[lt.BODY]:bHe,[lt.HEADERS]:$He,[lt.COOKIES]:AHe};function VHe(){const{tabData:t}=ho(),{sendEvent:e}=st(),{isMobile:r}=Qs();if(!Fr(t.get(),Ge.Step)||r)return null;const n=i=>{e("tab.change",[{source:"response",name:i}])};return f.jsx(XHe,{size:qHe.MEDIUM,initialTab:lt.BODY,children:jHe.map(i=>{const o=LHe[i.name];return f.jsx(zHe,{label:i.name,icon:i.icon,onClick:()=>n(i.name),children:o&&f.jsx(o,{})},i.name)})})}const XHe=T(MHe)`
|
|
3345
3345
|
--md-tabs-content-padding: 0;
|
|
3346
3346
|
display: flex;
|
|
3347
3347
|
flex-direction: column;
|
|
@@ -3491,7 +3491,7 @@ Please report this to https://github.com/markedjs/marked.`,t){const i="<p>An err
|
|
|
3491
3491
|
@media (max-width: ${zn}px) {
|
|
3492
3492
|
padding: var(--spacing-xs) var(--spacing-sm);
|
|
3493
3493
|
}
|
|
3494
|
-
`,sJe={info:t=>{},error:t=>{},warn:t=>{},printNewLine:()=>{},printSeparator:()=>{},indent:(t,e)=>t,output:t=>t},aJe=t=>t instanceof URL?t.toString():t instanceof Request?t.url:t;function lJe({collectionId:t,workflowId:e}){const{project:{userFilesDir:r}}=gt(),{certificates:n}=Vo(),i=Kt(),{getCollection:o}=Xg(),s=o(t),a=r.get(),{inputs:l,servers:c}=i.get(),u=s?.sourceDescriptions.get()??[];return{execute:async p=>{const h=`${a}/${t}`,m=new BZ,g=l.map(v=>JSON.stringify({[v.name]:v.value})),O=cJe(c,u),{run:y}=await Promise.resolve().then(()=>require("./replay-index-
|
|
3494
|
+
`,sJe={info:t=>{},error:t=>{},warn:t=>{},printNewLine:()=>{},printSeparator:()=>{},indent:(t,e)=>t,output:t=>t},aJe=t=>t instanceof URL?t.toString():t instanceof Request?t.url:t;function lJe({collectionId:t,workflowId:e}){const{project:{userFilesDir:r}}=gt(),{certificates:n}=Vo(),i=Kt(),{getCollection:o}=Xg(),s=o(t),a=r.get(),{inputs:l,servers:c}=i.get(),u=s?.sourceDescriptions.get()??[];return{execute:async p=>{const h=`${a}/${t}`,m=new BZ,g=l.map(v=>JSON.stringify({[v.name]:v.value})),O=cJe(c,u),{run:y}=await Promise.resolve().then(()=>require("./replay-index-CTDJpsxA.js"));return await y({files:[h],workflow:e?[e]:[],fetch:(v,b)=>{const w=aJe(v),{clientCert:S,clientKey:P}=zY(w,n?n.get({noproxy:!0}):[]);return Sa(w,{...b,clientCert:S,clientKey:P})},logger:sJe,maxSteps:500,maxFetchTimeout:4e4,requestFileLoader:{getFileBody:async v=>{if(!await RE(v))throw new Error(`File ${v} doesn't exist or isn't readable.`);try{const w=await Px(v),S=new TextEncoder().encode(w);return new File([S],await jE(v))}catch(w){throw new Error(`Failed to read file ${v}: ${w}`)}}},envVariables:{},config:await DX({}),externalRefResolver:m,input:g,server:O,severity:JSON.stringify(p),skipLint:!0,noSecretsMasking:!0})}}}function cJe(t,e){return e.map(r=>{const n=t.find(o=>o.apiId===r.apiId);if(!n)return null;let i=n.value;if(n.variables)for(const o of n.variables){const s=new RegExp(`\\{${o.name}\\}`,"g");i=i.replace(s,o.value)}return`${r.name}=${i}`}).filter(r=>r!==null)}function VI(t){return t==null?"N/A":t<1e3?`${t} ms`:t<1e4?`${(t/1e3).toFixed(1)} s`:`${Math.round(t/1e3)} s`}function pK({checks:t}){const e=t.filter(h=>h.severity!=="off"),r=e.filter(h=>h.passed).length,n=e.filter(h=>h.severity==="warn"&&!h.passed).length,i=e.length,o=i-r-n,s=r===i,a=r===0,[l,c]=de.default.useState(o>0||n>0),u=()=>s?"All checks passed":a?"All checks failed":`Some ${i>1?"checks were":"check was"} not successful`,d=()=>s?f.jsx(Q.CheckmarkFilledIcon,{color:"var(--color-success-base)"}):o>0?f.jsx(Q.ErrorFilledIcon,{color:"var(--color-error-base)"}):f.jsx(Q.WarningFilledIcon,{color:"var(--color-warning-base)"}),p=h=>{h.stopPropagation(),c(!l)};return!e||e.length===0?null:f.jsxs(uJe,{children:[f.jsxs(dJe,{onClick:p,children:[f.jsxs(fJe,{children:[f.jsx(pJe,{children:f.jsx(hJe,{children:d()})}),f.jsxs(gJe,{children:[f.jsx(mJe,{children:u()}),f.jsxs(OJe,{children:[r," successful",n>0&&f.jsxs(f.Fragment,{children:[", ",n," ",n===1?"warning":"warnings"]}),o>0&&f.jsxs(f.Fragment,{children:[", ",o," failed"]})]})]})]}),f.jsx(yJe,{isExpanded:l,children:l?f.jsx(Q.ChevronDownIcon,{}):f.jsx(Q.ChevronRightIcon,{})})]}),f.jsx(vJe,{isExpanded:l,children:e.map((h,m)=>f.jsxs(bJe,{children:[f.jsx(xJe,{children:h.passed?f.jsx(Q.CheckmarkIcon,{color:"var(--color-success-base)",size:"14px"}):!h.passed&&["warn"].includes(h.severity)?f.jsx(Q.WarningFilledIcon,{color:"var(--color-warning-base)",size:"14px"}):f.jsx(Q.CloseOutlineIcon,{color:"var(--color-error-base)",size:"14px"})}),f.jsxs(SJe,{children:[f.jsx(wJe,{children:h.name}),h.message&&f.jsx(PJe,{children:h.message})]})]},m))})]})}const uJe=T.div`
|
|
3495
3495
|
margin-bottom: 0;
|
|
3496
3496
|
margin-top: var(--spacing-xxs);
|
|
3497
3497
|
`,dJe=T.div`
|
|
@@ -3787,7 +3787,7 @@ Please report this to https://github.com/markedjs/marked.`,t){const i="<p>An err
|
|
|
3787
3787
|
color: var(--text-color);
|
|
3788
3788
|
word-break: break-word;
|
|
3789
3789
|
flex: 1;
|
|
3790
|
-
`;function lg({isRevealed:t,name:e,onToggle:r,size:n="small",stopPropagation:i=!1}){const{sendEvent:o}=st(),s=a=>{i&&a.stopPropagation();const l=!t;o("button.click",{source:"workflow",action:l?"reveal_secrets":"hide_secrets",name:e}),r(l)};return f.jsx(Q.Button,{icon:t?f.jsx(Q.ViewOffIcon,{}):f.jsx(Q.ViewIcon,{}),variant:"text",size:n,onClick:s,children:t?"Hide sensitive data":"Show sensitive data"})}function I0({title:t,contentType:e=on.Text,data:r,apiOperation:n,onCopyClickEventSource:i,secretValues:o,bodyTypes:s=RA}){const[a,l]=$.useState(iT(e)),[c,u]=$.useState(!1),{sendEvent:d}=st(),p=Object.keys(s).map(v=>({element:f.jsx("div",{children:s[v].name}),label:s[v].name,value:v})),h=a===on.JSON?iK(typeof r=="string"?r:String(r)):typeof r=="string"?r:String(r),m=oT(h,o),g=m&&!c?CJe(h,o):h,O=v=>{l(v)},y=()=>{d("content.copy",{source:i,section:"value"})};return $.useEffect(()=>{if(e){const v=iT(e);l(v)}else l(on.Text)},[e]),f.jsxs(TJe,{children:[f.jsxs(kJe,{children:[f.jsxs(EJe,{children:[f.jsx(RJe,{children:t}),f.jsx(IJe,{options:p,value:{value:a,label:s[a].name},onChange:v=>O(v)})]}),f.jsx(XI,{children:m&&f.jsx(lg,{isRevealed:c,name:i||"body",onToggle:v=>{u(v)}})}),f.jsx(AJe,{children:f.jsx(Q.CopyButton,{toasterPlacement:"left",data:g,onCopyClick:y})})]}),f.jsx(ct,{}),Sc[a]?f.jsx(_a,{readOnly:!0,isResponse:!0,dataTestId:"response-body-tab-codemirror",apiOperation:n,value:g,extensions:Sc[a].extensions,stateExtensions:Sc[a].stateExtensions}):a===eZ.Image&&r instanceof ArrayBuffer?f.jsx(uK,{arrayBuffer:r}):a===on.HTML?f.jsx("iframe",{srcDoc:typeof g=="string"?g:String(g),style:{width:"100%",height:"100%",border:"none"},title:"HTML Content",sandbox:"allow-same-origin"}):f.jsx("div",{children:"No content available"})]})}const kJe=T.div`
|
|
3790
|
+
`;function lg({isRevealed:t,name:e,onToggle:r,size:n="small",stopPropagation:i=!1}){const{sendEvent:o}=st(),s=a=>{i&&a.stopPropagation();const l=!t;o("button.click",[{source:"workflow",action:l?"reveal_secrets":"hide_secrets",name:e}]),r(l)};return f.jsx(Q.Button,{icon:t?f.jsx(Q.ViewOffIcon,{}):f.jsx(Q.ViewIcon,{}),variant:"text",size:n,onClick:s,children:t?"Hide sensitive data":"Show sensitive data"})}function I0({title:t,contentType:e=on.Text,data:r,apiOperation:n,onCopyClickEventSource:i,secretValues:o,bodyTypes:s=RA}){const[a,l]=$.useState(iT(e)),[c,u]=$.useState(!1),{sendEvent:d}=st(),p=Object.keys(s).map(v=>({element:f.jsx("div",{children:s[v].name}),label:s[v].name,value:v})),h=a===on.JSON?iK(typeof r=="string"?r:String(r)):typeof r=="string"?r:String(r),m=oT(h,o),g=m&&!c?CJe(h,o):h,O=v=>{l(v)},y=()=>{d("content.copy",[{source:i,section:"value"}])};return $.useEffect(()=>{if(e){const v=iT(e);l(v)}else l(on.Text)},[e]),f.jsxs(TJe,{children:[f.jsxs(kJe,{children:[f.jsxs(EJe,{children:[f.jsx(RJe,{children:t}),f.jsx(IJe,{options:p,value:{value:a,label:s[a].name},onChange:v=>O(v)})]}),f.jsx(XI,{children:m&&f.jsx(lg,{isRevealed:c,name:i||"body",onToggle:v=>{u(v)}})}),f.jsx(AJe,{children:f.jsx(Q.CopyButton,{toasterPlacement:"left",data:g,onCopyClick:y})})]}),f.jsx(ct,{}),Sc[a]?f.jsx(_a,{readOnly:!0,isResponse:!0,dataTestId:"response-body-tab-codemirror",apiOperation:n,value:g,extensions:Sc[a].extensions,stateExtensions:Sc[a].stateExtensions}):a===eZ.Image&&r instanceof ArrayBuffer?f.jsx(uK,{arrayBuffer:r}):a===on.HTML?f.jsx("iframe",{srcDoc:typeof g=="string"?g:String(g),style:{width:"100%",height:"100%",border:"none"},title:"HTML Content",sandbox:"allow-same-origin"}):f.jsx("div",{children:"No content available"})]})}const kJe=T.div`
|
|
3791
3791
|
display: flex;
|
|
3792
3792
|
justify-content: space-between;
|
|
3793
3793
|
align-items: center;
|
|
@@ -3834,12 +3834,12 @@ Please report this to https://github.com/markedjs/marked.`,t){const i="<p>An err
|
|
|
3834
3834
|
white-space: pre-wrap;
|
|
3835
3835
|
word-break: break-all;
|
|
3836
3836
|
padding: ${({$revealed:t})=>t?"0":"0 var(--spacing-xxs)"};
|
|
3837
|
-
`;function Cd({text:t,secrets:e,sectionPrefix:r,headerKeyForState:n,revealMap:i,setRevealMap:o,onInlineToggle:s}){return!e?.length||!t?t:gK(String(t),e).map((l,c)=>{if(!l.isSecret)return f.jsx("span",{children:l.text},c);if(r&&n&&i&&o){const u=mK(r,n,c),d=!!i[u];return f.jsx(Iq,{value:l.text,revealed:d,onToggle:()=>{const p=!d;s?.(r==="req"?"request_headers":"response_headers",p),o(h=>({...h,[u]:p}))}},c)}return f.jsx(Iq,{value:l.text},c)})}function jK({requestHeaders:t,responseHeaders:e,secrets:r}){const[n,i]=de.default.useState({}),[o,s]=de.default.useState({}),a=!!r&&Object.values(t||{}).some(g=>oT(String(g),r)),l=!!r&&Object.values(e||{}).some(g=>oT(String(g),r)),c=dy(t||{},r,"req"),u=dy(e||{},r,"res"),d=c.some(g=>n[g]),p=u.some(g=>o[g]);function h(){const g=dy(t||{},r,"req");i(O=>{const y={...O},b=!g.some(w=>!!O[w]);return g.forEach(w=>{y[w]=b}),y})}function m(){const g=dy(e||{},r,"res");s(O=>{const y={...O},b=!g.some(w=>!!O[w]);return g.forEach(w=>{y[w]=b}),y})}return{requestHeaderRevealMap:n,setRequestHeaderRevealMap:i,responseHeaderRevealMap:o,setResponseHeaderRevealMap:s,hasSecretsInRequestHeaders:a,hasSecretsInResponseHeaders:l,anyRequestRevealed:d,anyResponseRevealed:p,toggleAllRequestHeaders:h,toggleAllResponseHeaders:m}}function WI(t){return"type"in t&&t.type==="workflow"}function QK(t){return"stepId"in t&&!("type"in t)}function DK(t){return t?"Success":"Failed"}function UI(t){return t.checks?.every(e=>e.passed||!e.passed&&["off","warn"].includes(e.severity))??!0}function NK(t){return t.filter(e=>!e.passed&&["warn"].includes(e.severity))}function QJe({collectionId:t,workflowId:e,step:r,isExpanded:n,secretValues:i,onToggle:o}){const{openStepTabFromCollection:s}=dn(),{sendEvent:a}=st(),l=r.verboseLog?.responseTime,c=r.response?.statusCode,u=r.request?.method||r["x-operation"]?.method||"N/A",d=r.verboseLog?`${r.verboseLog.host}${r.verboseLog.path}`:r.request?.url||r["x-operation"]?.url||"No URL",p=r.stepId,h=UI(r),m=zI(Object.entries(r.response?.header||{}))||on.Text,g=NK(r.checks).length>0,{requestHeaderRevealMap:O,setRequestHeaderRevealMap:y,responseHeaderRevealMap:v,setResponseHeaderRevealMap:b,hasSecretsInRequestHeaders:w,hasSecretsInResponseHeaders:S,anyRequestRevealed:P,anyResponseRevealed:C,toggleAllRequestHeaders:E,toggleAllResponseHeaders:R}=jK({requestHeaders:r.request?.header||{},responseHeaders:r.response?.header||{},secrets:i});function D(_,L){L.stopPropagation(),s({collectionId:t,workflowId:e,stepId:_})}return f.jsxs(bK,{children:[f.jsxs(xK,{onClick:o,children:[f.jsx(SK,{isExpanded:n,children:n?f.jsx(Q.ChevronDownIcon,{size:"14px"}):f.jsx(Q.ChevronRightIcon,{size:"14px"})}),f.jsx(wK,{children:f.jsx(PK,{passed:h,children:DK(h)})}),f.jsxs(OK,{onClick:_=>D(p,_),children:[f.jsxs(yK,{children:[f.jsx(vK,{children:f.jsx(fo,{value:u.toUpperCase()})}),f.jsx(CK,{children:p})]}),f.jsx($Je,{size:"12px"})]}),f.jsxs(XI,{children:[g&&f.jsx(Q.WarningFilledIcon,{size:"14px",color:"var(--color-warning-base)"}),l&&f.jsx(kK,{children:VI(l)}),c&&f.jsx($K,{children:f.jsx(Q.StatusCode,{tabIndex:-1,status:c.toString(),children:c})})]})]}),f.jsx(TK,{isExpanded:n,children:f.jsxs(EK,{children:[r.checks&&r.checks.length>0&&f.jsx(pK,{checks:r.checks}),f.jsxs(IK,{children:[f.jsx(fo,{value:u.toUpperCase()}),f.jsx(RK,{children:Cd({text:d,secrets:i})})]}),r.request?.header&&Object.keys(r.request.header).length>0&&f.jsxs(k0,{children:[f.jsxs(Rq,{children:[f.jsx(C0,{children:"Request headers"}),w?f.jsx(lg,{isRevealed:P,name:"request_headers",stopPropagation:!0,onToggle:()=>{E()}}):null]}),Object.entries(r.request.header).map(([_,L])=>f.jsxs(T0,{children:[f.jsxs(E0,{children:['"',_,'":']}),f.jsx(A0,{children:Cd({text:String(L),secrets:i,sectionPrefix:"req",headerKeyForState:_,revealMap:O,setRevealMap:y,onInlineToggle:(W,Y)=>{a("button.click",{source:"workflow",action:Y?"reveal_secrets":"hide_secrets",name:W})}})})]},_))]}),r.request?.body&&f.jsx($0,{children:f.jsx(I0,{title:"Request body",onCopyClickEventSource:"request_body",apiOperation:null,contentType:m,data:r.request.body instanceof ArrayBuffer?r.request.body:JSON.stringify(r.request.body),secretValues:i,bodyTypes:RA})}),f.jsxs(_K,{children:[f.jsx(AK,{children:"Response status"}),c&&f.jsx(Q.StatusCode,{tabIndex:-1,status:c.toString(),children:c})]}),r.response?.header&&Object.keys(r.response.header).length>0&&f.jsxs(k0,{children:[f.jsxs(Rq,{children:[f.jsx(C0,{children:"Response headers"}),S?f.jsx(lg,{isRevealed:C,name:"response_headers",stopPropagation:!0,onToggle:()=>{R()}}):null]}),Object.entries(r.response.header).map(([_,L])=>f.jsxs(T0,{children:[f.jsxs(E0,{children:['"',_,'":']}),f.jsx(A0,{children:Cd({text:String(L),secrets:i,sectionPrefix:"res",headerKeyForState:_,revealMap:v,setRevealMap:b,onInlineToggle:(W,Y)=>{a("button.click",{source:"workflow",action:Y?"reveal_secrets":"hide_secrets",name:W})}})})]},_))]}),r.response?.body&&f.jsx($0,{children:f.jsx(I0,{title:"Response body",onCopyClickEventSource:"response_body",apiOperation:null,contentType:m,data:r.response.body instanceof ArrayBuffer?r.response.body:JSON.stringify(r.response.body),secretValues:i,bodyTypes:$p})})]})})]})}const Rq=T.div`
|
|
3837
|
+
`;function Cd({text:t,secrets:e,sectionPrefix:r,headerKeyForState:n,revealMap:i,setRevealMap:o,onInlineToggle:s}){return!e?.length||!t?t:gK(String(t),e).map((l,c)=>{if(!l.isSecret)return f.jsx("span",{children:l.text},c);if(r&&n&&i&&o){const u=mK(r,n,c),d=!!i[u];return f.jsx(Iq,{value:l.text,revealed:d,onToggle:()=>{const p=!d;s?.(r==="req"?"request_headers":"response_headers",p),o(h=>({...h,[u]:p}))}},c)}return f.jsx(Iq,{value:l.text},c)})}function jK({requestHeaders:t,responseHeaders:e,secrets:r}){const[n,i]=de.default.useState({}),[o,s]=de.default.useState({}),a=!!r&&Object.values(t||{}).some(g=>oT(String(g),r)),l=!!r&&Object.values(e||{}).some(g=>oT(String(g),r)),c=dy(t||{},r,"req"),u=dy(e||{},r,"res"),d=c.some(g=>n[g]),p=u.some(g=>o[g]);function h(){const g=dy(t||{},r,"req");i(O=>{const y={...O},b=!g.some(w=>!!O[w]);return g.forEach(w=>{y[w]=b}),y})}function m(){const g=dy(e||{},r,"res");s(O=>{const y={...O},b=!g.some(w=>!!O[w]);return g.forEach(w=>{y[w]=b}),y})}return{requestHeaderRevealMap:n,setRequestHeaderRevealMap:i,responseHeaderRevealMap:o,setResponseHeaderRevealMap:s,hasSecretsInRequestHeaders:a,hasSecretsInResponseHeaders:l,anyRequestRevealed:d,anyResponseRevealed:p,toggleAllRequestHeaders:h,toggleAllResponseHeaders:m}}function WI(t){return"type"in t&&t.type==="workflow"}function QK(t){return"stepId"in t&&!("type"in t)}function DK(t){return t?"Success":"Failed"}function UI(t){return t.checks?.every(e=>e.passed||!e.passed&&["off","warn"].includes(e.severity))??!0}function NK(t){return t.filter(e=>!e.passed&&["warn"].includes(e.severity))}function QJe({collectionId:t,workflowId:e,step:r,isExpanded:n,secretValues:i,onToggle:o}){const{openStepTabFromCollection:s}=dn(),{sendEvent:a}=st(),l=r.verboseLog?.responseTime,c=r.response?.statusCode,u=r.request?.method||r["x-operation"]?.method||"N/A",d=r.verboseLog?`${r.verboseLog.host}${r.verboseLog.path}`:r.request?.url||r["x-operation"]?.url||"No URL",p=r.stepId,h=UI(r),m=zI(Object.entries(r.response?.header||{}))||on.Text,g=NK(r.checks).length>0,{requestHeaderRevealMap:O,setRequestHeaderRevealMap:y,responseHeaderRevealMap:v,setResponseHeaderRevealMap:b,hasSecretsInRequestHeaders:w,hasSecretsInResponseHeaders:S,anyRequestRevealed:P,anyResponseRevealed:C,toggleAllRequestHeaders:E,toggleAllResponseHeaders:R}=jK({requestHeaders:r.request?.header||{},responseHeaders:r.response?.header||{},secrets:i});function D(_,L){L.stopPropagation(),s({collectionId:t,workflowId:e,stepId:_})}return f.jsxs(bK,{children:[f.jsxs(xK,{onClick:o,children:[f.jsx(SK,{isExpanded:n,children:n?f.jsx(Q.ChevronDownIcon,{size:"14px"}):f.jsx(Q.ChevronRightIcon,{size:"14px"})}),f.jsx(wK,{children:f.jsx(PK,{passed:h,children:DK(h)})}),f.jsxs(OK,{onClick:_=>D(p,_),children:[f.jsxs(yK,{children:[f.jsx(vK,{children:f.jsx(fo,{value:u.toUpperCase()})}),f.jsx(CK,{children:p})]}),f.jsx($Je,{size:"12px"})]}),f.jsxs(XI,{children:[g&&f.jsx(Q.WarningFilledIcon,{size:"14px",color:"var(--color-warning-base)"}),l&&f.jsx(kK,{children:VI(l)}),c&&f.jsx($K,{children:f.jsx(Q.StatusCode,{tabIndex:-1,status:c.toString(),children:c})})]})]}),f.jsx(TK,{isExpanded:n,children:f.jsxs(EK,{children:[r.checks&&r.checks.length>0&&f.jsx(pK,{checks:r.checks}),f.jsxs(IK,{children:[f.jsx(fo,{value:u.toUpperCase()}),f.jsx(RK,{children:Cd({text:d,secrets:i})})]}),r.request?.header&&Object.keys(r.request.header).length>0&&f.jsxs(k0,{children:[f.jsxs(Rq,{children:[f.jsx(C0,{children:"Request headers"}),w?f.jsx(lg,{isRevealed:P,name:"request_headers",stopPropagation:!0,onToggle:()=>{E()}}):null]}),Object.entries(r.request.header).map(([_,L])=>f.jsxs(T0,{children:[f.jsxs(E0,{children:['"',_,'":']}),f.jsx(A0,{children:Cd({text:String(L),secrets:i,sectionPrefix:"req",headerKeyForState:_,revealMap:O,setRevealMap:y,onInlineToggle:(W,Y)=>{a("button.click",[{source:"workflow",action:Y?"reveal_secrets":"hide_secrets",name:W}])}})})]},_))]}),r.request?.body&&f.jsx($0,{children:f.jsx(I0,{title:"Request body",onCopyClickEventSource:"request_body",apiOperation:null,contentType:m,data:r.request.body instanceof ArrayBuffer?r.request.body:JSON.stringify(r.request.body),secretValues:i,bodyTypes:RA})}),f.jsxs(_K,{children:[f.jsx(AK,{children:"Response status"}),c&&f.jsx(Q.StatusCode,{tabIndex:-1,status:c.toString(),children:c})]}),r.response?.header&&Object.keys(r.response.header).length>0&&f.jsxs(k0,{children:[f.jsxs(Rq,{children:[f.jsx(C0,{children:"Response headers"}),S?f.jsx(lg,{isRevealed:C,name:"response_headers",stopPropagation:!0,onToggle:()=>{R()}}):null]}),Object.entries(r.response.header).map(([_,L])=>f.jsxs(T0,{children:[f.jsxs(E0,{children:['"',_,'":']}),f.jsx(A0,{children:Cd({text:String(L),secrets:i,sectionPrefix:"res",headerKeyForState:_,revealMap:v,setRevealMap:b,onInlineToggle:(W,Y)=>{a("button.click",[{source:"workflow",action:Y?"reveal_secrets":"hide_secrets",name:W}])}})})]},_))]}),r.response?.body&&f.jsx($0,{children:f.jsx(I0,{title:"Response body",onCopyClickEventSource:"response_body",apiOperation:null,contentType:m,data:r.response.body instanceof ArrayBuffer?r.response.body:JSON.stringify(r.response.body),secretValues:i,bodyTypes:$p})})]})})]})}const Rq=T.div`
|
|
3838
3838
|
display: flex;
|
|
3839
3839
|
align-items: center;
|
|
3840
3840
|
justify-content: space-between;
|
|
3841
3841
|
width: 100%;
|
|
3842
|
-
`;function DJe({parentStepId:t,step:e,secretValues:r,isExpanded:n,onToggle:i}){const{sendEvent:o}=st(),s=e.verboseLog?.responseTime,a=e.response?.statusCode,l=e.request?.method||e["x-operation"]?.method||"N/A",c=e.stepId,u=UI(e),d=zI(Object.entries(e.response?.header||{}))||on.Text,p=NK(e.checks).length>0,{requestHeaderRevealMap:h,setRequestHeaderRevealMap:m,responseHeaderRevealMap:g,setResponseHeaderRevealMap:O,hasSecretsInRequestHeaders:y,hasSecretsInResponseHeaders:v,anyRequestRevealed:b,anyResponseRevealed:w,toggleAllRequestHeaders:S,toggleAllResponseHeaders:P}=jK({requestHeaders:e.request?.header||{},responseHeaders:e.response?.header||{},secrets:r});return f.jsxs(bK,{children:[f.jsxs(xK,{onClick:i,children:[f.jsx(SK,{isExpanded:n,children:n?f.jsx(Q.ChevronDownIcon,{size:"14px"}):f.jsx(Q.ChevronRightIcon,{size:"14px"})}),f.jsx(wK,{children:f.jsx(PK,{passed:u,children:DK(u)})}),f.jsx(NJe,{children:f.jsxs(yK,{children:[f.jsx(vK,{children:f.jsx(fo,{value:l.toUpperCase()})}),f.jsx(CK,{children:t?f.jsxs(MJe,{children:[f.jsx(qJe,{children:t}),f.jsx(zJe,{children:f.jsx(Q.ArrowRightIcon,{size:"14px"})}),f.jsx(LJe,{children:c})]}):c})]})}),f.jsxs(XI,{children:[p&&f.jsx(Q.WarningFilledIcon,{size:"14px",color:"var(--color-warning-base)"}),s&&f.jsx(kK,{children:VI(s)}),a&&f.jsx($K,{children:f.jsx(Q.StatusCode,{tabIndex:-1,status:a.toString(),children:a})})]})]}),f.jsx(TK,{isExpanded:n,children:f.jsxs(EK,{children:[e.checks&&e.checks.length>0&&f.jsx(pK,{checks:e.checks}),f.jsxs(IK,{children:[f.jsx(fo,{value:l.toUpperCase()}),f.jsx(RK,{children:Cd({text:`${e.request?.url||e["x-operation"]?.url||"No URL"}${e.verboseLog?.path??""}`,secrets:r})})]}),e.request?.header&&Object.keys(e.request.header).length>0&&f.jsxs(k0,{children:[f.jsxs(_q,{children:[f.jsx(C0,{children:"Request headers"}),y?f.jsx(lg,{isRevealed:b,name:"request_headers",stopPropagation:!0,onToggle:()=>{S()}}):null]}),Object.entries(e.request.header).map(([C,E])=>f.jsxs(T0,{children:[f.jsxs(E0,{children:['"',C,'":']}),f.jsx(A0,{children:Cd({text:String(E),secrets:r,sectionPrefix:"req",headerKeyForState:C,revealMap:h,setRevealMap:m,onInlineToggle:(R,D)=>{o("button.click",{source:"workflow",action:D?"reveal_secrets":"hide_secrets",name:R})}})})]},C))]}),e.request?.body&&f.jsx($0,{children:f.jsx(I0,{title:"Request body",onCopyClickEventSource:"request_body",apiOperation:null,contentType:d,data:e.request.body instanceof ArrayBuffer?e.request.body:JSON.stringify(e.request.body),secretValues:r,bodyTypes:RA})}),f.jsxs(_K,{children:[f.jsx(AK,{children:"Response status"}),a&&f.jsx(Q.StatusCode,{tabIndex:-1,status:a.toString(),children:a})]}),e.response?.header&&Object.keys(e.response.header).length>0&&f.jsxs(k0,{children:[f.jsxs(_q,{children:[f.jsx(C0,{children:"Response headers"}),v?f.jsx(lg,{isRevealed:w,name:"response_headers",stopPropagation:!0,onToggle:()=>{P()}}):null]}),Object.entries(e.response.header).map(([C,E])=>f.jsxs(T0,{children:[f.jsxs(E0,{children:['"',C,'":']}),f.jsx(A0,{children:Cd({text:String(E),secrets:r,sectionPrefix:"res",headerKeyForState:C,revealMap:g,setRevealMap:O,onInlineToggle:(R,D)=>{o("button.click",{source:"workflow",action:D?"reveal_secrets":"hide_secrets",name:R})}})})]},C))]}),e.response?.body&&f.jsx($0,{children:f.jsx(I0,{title:"Response body",onCopyClickEventSource:"response_body",apiOperation:null,contentType:d,data:e.response.body instanceof ArrayBuffer?e.response.body:JSON.stringify(e.response.body),secretValues:r})})]})})]})}const NJe=T.div`
|
|
3842
|
+
`;function DJe({parentStepId:t,step:e,secretValues:r,isExpanded:n,onToggle:i}){const{sendEvent:o}=st(),s=e.verboseLog?.responseTime,a=e.response?.statusCode,l=e.request?.method||e["x-operation"]?.method||"N/A",c=e.stepId,u=UI(e),d=zI(Object.entries(e.response?.header||{}))||on.Text,p=NK(e.checks).length>0,{requestHeaderRevealMap:h,setRequestHeaderRevealMap:m,responseHeaderRevealMap:g,setResponseHeaderRevealMap:O,hasSecretsInRequestHeaders:y,hasSecretsInResponseHeaders:v,anyRequestRevealed:b,anyResponseRevealed:w,toggleAllRequestHeaders:S,toggleAllResponseHeaders:P}=jK({requestHeaders:e.request?.header||{},responseHeaders:e.response?.header||{},secrets:r});return f.jsxs(bK,{children:[f.jsxs(xK,{onClick:i,children:[f.jsx(SK,{isExpanded:n,children:n?f.jsx(Q.ChevronDownIcon,{size:"14px"}):f.jsx(Q.ChevronRightIcon,{size:"14px"})}),f.jsx(wK,{children:f.jsx(PK,{passed:u,children:DK(u)})}),f.jsx(NJe,{children:f.jsxs(yK,{children:[f.jsx(vK,{children:f.jsx(fo,{value:l.toUpperCase()})}),f.jsx(CK,{children:t?f.jsxs(MJe,{children:[f.jsx(qJe,{children:t}),f.jsx(zJe,{children:f.jsx(Q.ArrowRightIcon,{size:"14px"})}),f.jsx(LJe,{children:c})]}):c})]})}),f.jsxs(XI,{children:[p&&f.jsx(Q.WarningFilledIcon,{size:"14px",color:"var(--color-warning-base)"}),s&&f.jsx(kK,{children:VI(s)}),a&&f.jsx($K,{children:f.jsx(Q.StatusCode,{tabIndex:-1,status:a.toString(),children:a})})]})]}),f.jsx(TK,{isExpanded:n,children:f.jsxs(EK,{children:[e.checks&&e.checks.length>0&&f.jsx(pK,{checks:e.checks}),f.jsxs(IK,{children:[f.jsx(fo,{value:l.toUpperCase()}),f.jsx(RK,{children:Cd({text:`${e.request?.url||e["x-operation"]?.url||"No URL"}${e.verboseLog?.path??""}`,secrets:r})})]}),e.request?.header&&Object.keys(e.request.header).length>0&&f.jsxs(k0,{children:[f.jsxs(_q,{children:[f.jsx(C0,{children:"Request headers"}),y?f.jsx(lg,{isRevealed:b,name:"request_headers",stopPropagation:!0,onToggle:()=>{S()}}):null]}),Object.entries(e.request.header).map(([C,E])=>f.jsxs(T0,{children:[f.jsxs(E0,{children:['"',C,'":']}),f.jsx(A0,{children:Cd({text:String(E),secrets:r,sectionPrefix:"req",headerKeyForState:C,revealMap:h,setRevealMap:m,onInlineToggle:(R,D)=>{o("button.click",[{source:"workflow",action:D?"reveal_secrets":"hide_secrets",name:R}])}})})]},C))]}),e.request?.body&&f.jsx($0,{children:f.jsx(I0,{title:"Request body",onCopyClickEventSource:"request_body",apiOperation:null,contentType:d,data:e.request.body instanceof ArrayBuffer?e.request.body:JSON.stringify(e.request.body),secretValues:r,bodyTypes:RA})}),f.jsxs(_K,{children:[f.jsx(AK,{children:"Response status"}),a&&f.jsx(Q.StatusCode,{tabIndex:-1,status:a.toString(),children:a})]}),e.response?.header&&Object.keys(e.response.header).length>0&&f.jsxs(k0,{children:[f.jsxs(_q,{children:[f.jsx(C0,{children:"Response headers"}),v?f.jsx(lg,{isRevealed:w,name:"response_headers",stopPropagation:!0,onToggle:()=>{P()}}):null]}),Object.entries(e.response.header).map(([C,E])=>f.jsxs(T0,{children:[f.jsxs(E0,{children:['"',C,'":']}),f.jsx(A0,{children:Cd({text:String(E),secrets:r,sectionPrefix:"res",headerKeyForState:C,revealMap:g,setRevealMap:O,onInlineToggle:(R,D)=>{o("button.click",[{source:"workflow",action:D?"reveal_secrets":"hide_secrets",name:R}])}})})]},C))]}),e.response?.body&&f.jsx($0,{children:f.jsx(I0,{title:"Response body",onCopyClickEventSource:"response_body",apiOperation:null,contentType:d,data:e.response.body instanceof ArrayBuffer?e.response.body:JSON.stringify(e.response.body),secretValues:r})})]})})]})}const NJe=T.div`
|
|
3843
3843
|
display: flex;
|
|
3844
3844
|
align-items: flex-start;
|
|
3845
3845
|
gap: var(--spacing-xxs);
|
|
@@ -4044,7 +4044,7 @@ Please report this to https://github.com/markedjs/marked.`,t){const i="<p>An err
|
|
|
4044
4044
|
color: var(--text-color-primary);
|
|
4045
4045
|
font-weight: var(--font-weight-regular);
|
|
4046
4046
|
flex-shrink: 0;
|
|
4047
|
-
`;function uKe({workflowId:t,collectionId:e,tabData:r}){const[n,i]=$.useState(!1),[o,s]=$.useState(null),{execute:a}=lJe({collectionId:e,workflowId:t}),l=Kt(),{sendEvent:c}=st(),u=r.result.get(),d=r.severitySettings.get(),p=r.secretValues.get(),h=Xg().getCollection(e),m=nu({collectionId:e,workflowId:t});Q.useMount(()=>{!u&&!n&&!o&&g()});async function g(){c("workflow.run.click",[{workflow_id:t}]),m&&$G(m,l,h),i(!0),s(null);try{const y=await a(d),{executedWorkflows:v,hasProblems:b,secretValues:w}=y[0],{ctx:S,...P}=v[0];r.result.set(P),r.secretValues.set(w),c("workflow.run.result",{workflow_id:t,result:b?"failed":"success"})}catch(y){console.error("Workflow execution failed:",y),s(y instanceof Error?y.message:"Workflow execution failed"),c("workflow.run.result",{workflow_id:t,result:"failed",error:y instanceof Error?y.message:"Workflow execution failed"})}finally{i(!1)}}const O=(y,v)=>{r.severitySettings.set(b=>({...b,[y]:v}))};return f.jsxs(f.Fragment,{children:[f.jsxs(zA,{children:[f.jsxs(LA,{children:["Run Results - ",t]}),f.jsx(vKe,{children:m?.steps.length&&u&&!o&&f.jsxs(f.Fragment,{children:[f.jsx(sKe,{severitySettings:d,handleSeverityChange:O}),f.jsx(bKe,{}),f.jsx(Q.Button,{variant:"text",onClick:g,disabled:n,icon:f.jsx(Q.RestartIcon,{size:"14px"}),"data-testid":"run-again-button",size:"small",children:"Run Again"})]})})]}),f.jsx(OKe,{children:f.jsx(yKe,{children:f.jsxs(hKe,{children:[n&&f.jsx(gKe,{children:f.jsxs(mKe,{children:[f.jsx(GZ,{size:"20px"}),f.jsxs("span",{children:["Running ",t," workflow"]})]})}),o&&f.jsxs(dKe,{children:[f.jsx(Q.CloseFilledIcon,{size:"20px",color:"var(--color-error-base)"}),f.jsx(fKe,{children:"Oops! Something went wrong!"}),f.jsx(pKe,{variant:"ghost",onClick:g,disabled:n,icon:f.jsx(Q.RestartIcon,{size:"14px"}),"data-testid":"run-again-button",children:"Run again"})]}),!n&&u&&!o&&f.jsxs("div",{children:[f.jsx(FJe,{executedWorkflow:u}),f.jsx(WJe,{executedWorkflow:u,collectionId:e,secretValues:p})]})]})})})]})}const dKe=T.div`
|
|
4047
|
+
`;function uKe({workflowId:t,collectionId:e,tabData:r}){const[n,i]=$.useState(!1),[o,s]=$.useState(null),{execute:a}=lJe({collectionId:e,workflowId:t}),l=Kt(),{sendEvent:c}=st(),u=r.result.get(),d=r.severitySettings.get(),p=r.secretValues.get(),h=Xg().getCollection(e),m=nu({collectionId:e,workflowId:t});Q.useMount(()=>{!u&&!n&&!o&&g()});async function g(){c("workflow.run.click",[{workflow_id:t}]),m&&$G(m,l,h),i(!0),s(null);try{const y=await a(d),{executedWorkflows:v,hasProblems:b,secretValues:w}=y[0],{ctx:S,...P}=v[0];r.result.set(P),r.secretValues.set(w),c("workflow.run.result",[{workflow_id:t,result:b?"failed":"success"}])}catch(y){console.error("Workflow execution failed:",y),s(y instanceof Error?y.message:"Workflow execution failed"),c("workflow.run.result",[{workflow_id:t,result:"failed",error:y instanceof Error?y.message:"Workflow execution failed"}])}finally{i(!1)}}const O=(y,v)=>{r.severitySettings.set(b=>({...b,[y]:v}))};return f.jsxs(f.Fragment,{children:[f.jsxs(zA,{children:[f.jsxs(LA,{children:["Run Results - ",t]}),f.jsx(vKe,{children:m?.steps.length&&u&&!o&&f.jsxs(f.Fragment,{children:[f.jsx(sKe,{severitySettings:d,handleSeverityChange:O}),f.jsx(bKe,{}),f.jsx(Q.Button,{variant:"text",onClick:g,disabled:n,icon:f.jsx(Q.RestartIcon,{size:"14px"}),"data-testid":"run-again-button",size:"small",children:"Run Again"})]})})]}),f.jsx(OKe,{children:f.jsx(yKe,{children:f.jsxs(hKe,{children:[n&&f.jsx(gKe,{children:f.jsxs(mKe,{children:[f.jsx(GZ,{size:"20px"}),f.jsxs("span",{children:["Running ",t," workflow"]})]})}),o&&f.jsxs(dKe,{children:[f.jsx(Q.CloseFilledIcon,{size:"20px",color:"var(--color-error-base)"}),f.jsx(fKe,{children:"Oops! Something went wrong!"}),f.jsx(pKe,{variant:"ghost",onClick:g,disabled:n,icon:f.jsx(Q.RestartIcon,{size:"14px"}),"data-testid":"run-again-button",children:"Run again"})]}),!n&&u&&!o&&f.jsxs("div",{children:[f.jsx(FJe,{executedWorkflow:u}),f.jsx(WJe,{executedWorkflow:u,collectionId:e,secretValues:p})]})]})})})]})}const dKe=T.div`
|
|
4048
4048
|
display: flex;
|
|
4049
4049
|
flex-direction: column;
|
|
4050
4050
|
align-items: center;
|
|
@@ -4249,7 +4249,7 @@ Please report this to https://github.com/markedjs/marked.`,t){const i="<p>An err
|
|
|
4249
4249
|
border-radius: var(--border-radius);
|
|
4250
4250
|
max-height: 400px;
|
|
4251
4251
|
overflow: auto;
|
|
4252
|
-
`;function bet({workflow:t,collectionId:e}){const{handleIdChange:r}=tu(),n=Kt(),i=Tf(e),o=t.workflowId.get();function s(){$G(t,n,i)}return f.jsxs(FJ,{children:[f.jsxs(Pd,{children:[f.jsx(Ra,{children:"Info"}),f.jsxs(zt,{children:[f.jsxs(zt.Row,{children:[f.jsx(zt.Cell,{children:f.jsxs(Ec,{children:["Workflow ID",f.jsx(so,{content:"This workflow's unique identifier."})]})}),f.jsx(zt.Cell,{$readonly:!0,children:f.jsx(rT,{attribute:t.workflowId,editorTitle:"Change workflow ID",placeholder:"Add workflow ID",onSave:a=>{r({collectionId:e,workflowId:o,stepId:null},{collectionId:e,workflowId:a,stepId:null})}})})]}),f.jsxs(zt.Row,{children:[f.jsx(zt.Cell,{children:f.jsxs(Ec,{children:["Workflow name (Summary)",f.jsx(so,{content:"Brief summary of the workflow."})]})}),f.jsx(zt.Cell,{$readonly:!0,children:f.jsx(rT,{attribute:t.summary,editorTitle:"Rename workflow",placeholder:"Add summary"})})]}),f.jsxs(zt.Row,{children:[f.jsx(zt.Cell,{children:f.jsxs(Ec,{children:["Description",f.jsx(so,{content:"A detailed explanation of this workflow's purpose."})]})}),f.jsx(zt.Cell,{children:f.jsx(aI,{state:t.description,placeholder:"Add description"})})]})]})]}),f.jsx(Pd,{children:f.jsx(BJ,{outputs:t.outputs,tooltipText:"Data generated by this workflow that can be used in the next workflows or the next steps."})}),f.jsxs(Pd,{children:[f.jsxs(Ra,{children:["Workflow input schema",f.jsx(so,{content:"The schema of input data."})]}),f.jsx(yet,{value:ei(t.nested("inputs").get({noproxy:!0})),onChange:a=>t.nested("inputs").set(ei(a)),onRecalculate:s})]})]})}const xet=[{name:lt.SECURITY,icon:f.jsx(Q.SecurityIcon,{})},{name:lt.PATH,icon:f.jsx(Q.DataRefineryIcon,{})},{name:lt.QUERY,icon:f.jsx(Q.DataFormatIcon,{})},{name:lt.HEADERS,icon:f.jsx(Q.TableBuiltIcon,{})},{name:lt.COOKIES,icon:f.jsx(Q.CookieIcon,{})},{name:lt.WORKFLOW_SETTINGS,icon:f.jsx(Q.SettingsCogIcon,{})}];function wet({workflow:t,collectionId:e,activeTabName:r}){const{sendEvent:n}=st(),{parameters:i}=t,s=Tf(e)?.components.parameters.get({noproxy:!0}),a=l=>{r.set(l),n("tab.change",{source:"workflow",name:l})};return f.jsxs(f.Fragment,{children:[f.jsx(r1,{tabs:xet,activeTabName:r.get(),onTabChange:a}),f.jsx(Pet,{children:(()=>{switch(r.get()){case lt.SECURITY:return f.jsx(rK,{data:t.security,apiOperation:null});case lt.QUERY:return f.jsx(UJ,{title:"Query Parameters",keyName:"Parameter",data:i.queryParameters,reusableData:s});case lt.PATH:return f.jsx(WJ,{data:i.pathParameters,reusableData:s});case lt.HEADERS:return f.jsx(XJ,{data:i.headers,reusableData:s,keyName:"Header",title:"Header Parameters"});case lt.COOKIES:return f.jsx(VJ,{data:i.cookies,reusableData:s,keyName:"Cookie",title:"Cookies"});case lt.WORKFLOW_SETTINGS:return f.jsx(bet,{workflow:t,collectionId:e})}})()})]})}const Pet=T.div`
|
|
4252
|
+
`;function bet({workflow:t,collectionId:e}){const{handleIdChange:r}=tu(),n=Kt(),i=Tf(e),o=t.workflowId.get();function s(){$G(t,n,i)}return f.jsxs(FJ,{children:[f.jsxs(Pd,{children:[f.jsx(Ra,{children:"Info"}),f.jsxs(zt,{children:[f.jsxs(zt.Row,{children:[f.jsx(zt.Cell,{children:f.jsxs(Ec,{children:["Workflow ID",f.jsx(so,{content:"This workflow's unique identifier."})]})}),f.jsx(zt.Cell,{$readonly:!0,children:f.jsx(rT,{attribute:t.workflowId,editorTitle:"Change workflow ID",placeholder:"Add workflow ID",onSave:a=>{r({collectionId:e,workflowId:o,stepId:null},{collectionId:e,workflowId:a,stepId:null})}})})]}),f.jsxs(zt.Row,{children:[f.jsx(zt.Cell,{children:f.jsxs(Ec,{children:["Workflow name (Summary)",f.jsx(so,{content:"Brief summary of the workflow."})]})}),f.jsx(zt.Cell,{$readonly:!0,children:f.jsx(rT,{attribute:t.summary,editorTitle:"Rename workflow",placeholder:"Add summary"})})]}),f.jsxs(zt.Row,{children:[f.jsx(zt.Cell,{children:f.jsxs(Ec,{children:["Description",f.jsx(so,{content:"A detailed explanation of this workflow's purpose."})]})}),f.jsx(zt.Cell,{children:f.jsx(aI,{state:t.description,placeholder:"Add description"})})]})]})]}),f.jsx(Pd,{children:f.jsx(BJ,{outputs:t.outputs,tooltipText:"Data generated by this workflow that can be used in the next workflows or the next steps."})}),f.jsxs(Pd,{children:[f.jsxs(Ra,{children:["Workflow input schema",f.jsx(so,{content:"The schema of input data."})]}),f.jsx(yet,{value:ei(t.nested("inputs").get({noproxy:!0})),onChange:a=>t.nested("inputs").set(ei(a)),onRecalculate:s})]})]})}const xet=[{name:lt.SECURITY,icon:f.jsx(Q.SecurityIcon,{})},{name:lt.PATH,icon:f.jsx(Q.DataRefineryIcon,{})},{name:lt.QUERY,icon:f.jsx(Q.DataFormatIcon,{})},{name:lt.HEADERS,icon:f.jsx(Q.TableBuiltIcon,{})},{name:lt.COOKIES,icon:f.jsx(Q.CookieIcon,{})},{name:lt.WORKFLOW_SETTINGS,icon:f.jsx(Q.SettingsCogIcon,{})}];function wet({workflow:t,collectionId:e,activeTabName:r}){const{sendEvent:n}=st(),{parameters:i}=t,s=Tf(e)?.components.parameters.get({noproxy:!0}),a=l=>{r.set(l),n("tab.change",[{source:"workflow",name:l}])};return f.jsxs(f.Fragment,{children:[f.jsx(r1,{tabs:xet,activeTabName:r.get(),onTabChange:a}),f.jsx(Pet,{children:(()=>{switch(r.get()){case lt.SECURITY:return f.jsx(rK,{data:t.security,apiOperation:null});case lt.QUERY:return f.jsx(UJ,{title:"Query Parameters",keyName:"Parameter",data:i.queryParameters,reusableData:s});case lt.PATH:return f.jsx(WJ,{data:i.pathParameters,reusableData:s});case lt.HEADERS:return f.jsx(XJ,{data:i.headers,reusableData:s,keyName:"Header",title:"Header Parameters"});case lt.COOKIES:return f.jsx(VJ,{data:i.cookies,reusableData:s,keyName:"Cookie",title:"Cookies"});case lt.WORKFLOW_SETTINGS:return f.jsx(bet,{workflow:t,collectionId:e})}})()})]})}const Pet=T.div`
|
|
4253
4253
|
overflow: auto;
|
|
4254
4254
|
padding: 0 var(--spacing-md);
|
|
4255
4255
|
flex: 1;
|
|
@@ -4376,7 +4376,7 @@ Please report this to https://github.com/markedjs/marked.`,t){const i="<p>An err
|
|
|
4376
4376
|
color: var(--color-error-base);
|
|
4377
4377
|
font-size: var(--font-size-sm);
|
|
4378
4378
|
padding: 0 var(--spacing-xs);
|
|
4379
|
-
`;function JK(t,e){if(!t)return"Provide a name for the environment";if(e.has(t))return"An environment with this name already exists";for(let r=0;r<t.length;r++){const n=t.charCodeAt(r);if(n<1||n>127)return"A valid name can only contain letters, numbers, and symbols"}}const Jet=({selectedEnvName:t,onEnvironmentSelect:e,onAddEnvironment:r,onRemoveEnvironment:n})=>{const{environments:i,activeEnvironmentId:o,predefinedEnvironmentNames:s}=gt(),{sendEvent:a}=st(),[l,c]=$.useState(!1),u=O=>{const{name:y}=O.get();O.set(pt),n(y),a("environment.management",{action:"removed",name:y})},d=O=>{const{name:y}=O.get();o.set(y)},p=()=>{c(!0)},h=O=>{a("environment.management",{action:"creation_finished",name:O}),c(!1),r?.(O)},m=()=>{c(!1),a("environment.management",{action:"creation_canceled"})},g=O=>{const y=new Set(i.get().map(v=>v.name));return JK(O,y)};return f.jsxs(Ket,{children:[f.jsx(ett,{children:"Environments"}),f.jsxs(ttt,{children:[f.jsxs(rtt,{children:[i.filter(O=>O.state.get()!==Mt.Draft).map(O=>{const y=O.name.get(),v=y===o.get(),b=y===t,w=y===Cg,S=s.get().has(y),P=!w&&!S;return f.jsxs(eee,{$isActive:v,$isSelected:b,onClick:()=>e(y),"data-testid":`environment-${y}`,children:[f.jsxs(ott,{children:[v?f.jsx(Q.CheckmarkFilledIcon,{color:"var(--color-success-base)"}):f.jsx(eR,{}),f.jsx("span",{children:y})]}),f.jsx(KK,{children:(!v||P)&&f.jsx(Q.Dropdown,{triggerEvent:"hover",trigger:f.jsx(Q.Button,{variant:"text",size:"small",icon:f.jsx(Q.OverflowMenuVerticalIcon,{}),"data-testid":`environment-actions-btn-${y}`}),alignment:"end",children:f.jsxs(Q.DropdownMenu,{children:[!v&&f.jsxs(qn,{onClick:()=>{d(O)},children:[f.jsx(Let,{size:"14px"}),"Set as active"]}),P&&f.jsx(dT,{description:Fet.replace("{name}",y),onConfirm:()=>{u(O)},children:f.jsxs(qn,{"data-testid":`remove-environment-${y}`,children:[f.jsx(Q.TrashCanIcon,{size:"14px"}),"Remove environment"]})})]})})})]},y)}),l&&f.jsxs(ntt,{$isActive:!1,$isSelected:!0,children:[f.jsx(itt,{children:f.jsx(Q.AddIcon,{})}),f.jsx(HK,{placeholder:"New environment",defaultName:"",onApplyNewName:h,onCancelEditing:m,validate:g})]})]}),f.jsx(stt,{children:f.jsx("div",{children:f.jsx(Q.Button,{variant:"text",size:"small",icon:f.jsx(Q.AddIcon,{}),iconPosition:"left",onClick:p,"data-testid":"add-environment-btn",children:"New environment"})})})]})]})},Ket=T.div`
|
|
4379
|
+
`;function JK(t,e){if(!t)return"Provide a name for the environment";if(e.has(t))return"An environment with this name already exists";for(let r=0;r<t.length;r++){const n=t.charCodeAt(r);if(n<1||n>127)return"A valid name can only contain letters, numbers, and symbols"}}const Jet=({selectedEnvName:t,onEnvironmentSelect:e,onAddEnvironment:r,onRemoveEnvironment:n})=>{const{environments:i,activeEnvironmentId:o,predefinedEnvironmentNames:s}=gt(),{sendEvent:a}=st(),[l,c]=$.useState(!1),u=O=>{const{name:y}=O.get();O.set(pt),n(y),a("environment.management",[{action:"removed",name:y}])},d=O=>{const{name:y}=O.get();o.set(y)},p=()=>{c(!0)},h=O=>{a("environment.management",[{action:"creation_finished",name:O}]),c(!1),r?.(O)},m=()=>{c(!1),a("environment.management",[{action:"creation_canceled"}])},g=O=>{const y=new Set(i.get().map(v=>v.name));return JK(O,y)};return f.jsxs(Ket,{children:[f.jsx(ett,{children:"Environments"}),f.jsxs(ttt,{children:[f.jsxs(rtt,{children:[i.filter(O=>O.state.get()!==Mt.Draft).map(O=>{const y=O.name.get(),v=y===o.get(),b=y===t,w=y===Cg,S=s.get().has(y),P=!w&&!S;return f.jsxs(eee,{$isActive:v,$isSelected:b,onClick:()=>e(y),"data-testid":`environment-${y}`,children:[f.jsxs(ott,{children:[v?f.jsx(Q.CheckmarkFilledIcon,{color:"var(--color-success-base)"}):f.jsx(eR,{}),f.jsx("span",{children:y})]}),f.jsx(KK,{children:(!v||P)&&f.jsx(Q.Dropdown,{triggerEvent:"hover",trigger:f.jsx(Q.Button,{variant:"text",size:"small",icon:f.jsx(Q.OverflowMenuVerticalIcon,{}),"data-testid":`environment-actions-btn-${y}`}),alignment:"end",children:f.jsxs(Q.DropdownMenu,{children:[!v&&f.jsxs(qn,{onClick:()=>{d(O)},children:[f.jsx(Let,{size:"14px"}),"Set as active"]}),P&&f.jsx(dT,{description:Fet.replace("{name}",y),onConfirm:()=>{u(O)},children:f.jsxs(qn,{"data-testid":`remove-environment-${y}`,children:[f.jsx(Q.TrashCanIcon,{size:"14px"}),"Remove environment"]})})]})})})]},y)}),l&&f.jsxs(ntt,{$isActive:!1,$isSelected:!0,children:[f.jsx(itt,{children:f.jsx(Q.AddIcon,{})}),f.jsx(HK,{placeholder:"New environment",defaultName:"",onApplyNewName:h,onCancelEditing:m,validate:g})]})]}),f.jsx(stt,{children:f.jsx("div",{children:f.jsx(Q.Button,{variant:"text",size:"small",icon:f.jsx(Q.AddIcon,{}),iconPosition:"left",onClick:p,"data-testid":"add-environment-btn",children:"New environment"})})})]})]})},Ket=T.div`
|
|
4380
4380
|
width: 280px;
|
|
4381
4381
|
border: 1px solid var(--border-color-secondary);
|
|
4382
4382
|
border-radius: var(--border-radius);
|
|
@@ -4560,7 +4560,7 @@ Please report this to https://github.com/markedjs/marked.`,t){const i="<p>An err
|
|
|
4560
4560
|
border: 0;
|
|
4561
4561
|
}
|
|
4562
4562
|
}
|
|
4563
|
-
`,att=({environment:t,index:e,isPredefinedInput:r,isSameName:n})=>{const i=t.inputs.length>e?t.inputs.at(e):void 0,o=i===void 0,{sendEvent:s}=st(),{name:a}=t.get(),[l,c]=$.useState({name:"",value:"",isSecret:!1}),{name:u,value:d,isSecret:p}=i?.get()||l,[h,m]=$.useState(!1);$.useEffect(()=>{c({name:"",value:"",isSecret:!1})},[t.inputs.length]);const g=(w,S)=>{if(o){c({...l,[w]:S});return}O(w,S)},O=(w,S)=>{o||(s("input.management",{action:"saved",context:"environment",environment_name:a,name:u}),i.set({...i.get(),[w]:S}))},y=()=>{if(!o)return;l.name.trim()&&t.inputs.merge([l])},v=()=>{o||(i.set(pt),s("input.management",{action:"removed",context:"environment",environment_name:a,name:u}))},b=()=>{o||s("input.management",{action:"secret_toggled",context:"environment",environment_name:a,name:u,visible:!h}),m(!h)};return f.jsxs(dg,{children:[f.jsx(Xq,{children:f.jsxs("div",{children:[f.jsx("input",{type:"text",value:u,"data-testid":o?"environment-new-input-name":`environment-input-name-${u}`,name:o?"environment-new-input-name":`environment-input-name-${u}`,readOnly:r,onChange:w=>g("name",w.target.value),onBlur:y,placeholder:`${o?"New input":""}`}),n&&f.jsx(Q.Tooltip,{tip:"This variable overrides other variables with the same name",children:f.jsx(dtt,{size:"small",variant:"text",icon:f.jsx(Q.WarningAltIcon,{})})})]})}),f.jsx(Xq,{children:f.jsxs("div",{children:[f.jsx("input",{type:p?h?"text":"password":"text",name:o?"environment-new-input-value":`environment-input-value-${u}`,value:d,placeholder:"Enter value","data-testid":`environment-input-value-${u}`,onChange:w=>g("value",w.target.value)}),d&&p&&f.jsx(Ia,{onClick:b,variant:"text",size:"small",icon:h?f.jsx(Q.ViewOffIcon,{}):f.jsx(Q.ViewIcon,{})})]})}),f.jsx(utt,{children:f.jsx($W,{value:p,onChange:w=>g("isSecret",w)})}),f.jsx(ltt,{children:o?f.jsx(ctt,{}):f.jsx(f.Fragment,{children:r?f.jsx(Q.Tooltip,{tip:Bet,children:f.jsx(Ia,{size:"small",variant:"text",icon:f.jsx(Q.InformationIcon,{})})}):f.jsx(yi,{"data-testid":`remove-input-btn-${u}`,icon:f.jsx(Q.TrashCanIcon,{}),onClick:v})})})]})},ltt=T(Cn)`
|
|
4563
|
+
`,att=({environment:t,index:e,isPredefinedInput:r,isSameName:n})=>{const i=t.inputs.length>e?t.inputs.at(e):void 0,o=i===void 0,{sendEvent:s}=st(),{name:a}=t.get(),[l,c]=$.useState({name:"",value:"",isSecret:!1}),{name:u,value:d,isSecret:p}=i?.get()||l,[h,m]=$.useState(!1);$.useEffect(()=>{c({name:"",value:"",isSecret:!1})},[t.inputs.length]);const g=(w,S)=>{if(o){c({...l,[w]:S});return}O(w,S)},O=(w,S)=>{o||(s("input.management",[{action:"saved",context:"environment",environment_name:a,name:u}]),i.set({...i.get(),[w]:S}))},y=()=>{if(!o)return;l.name.trim()&&t.inputs.merge([l])},v=()=>{o||(i.set(pt),s("input.management",[{action:"removed",context:"environment",environment_name:a,name:u}]))},b=()=>{o||s("input.management",[{action:"secret_toggled",context:"environment",environment_name:a,name:u,visible:!h}]),m(!h)};return f.jsxs(dg,{children:[f.jsx(Xq,{children:f.jsxs("div",{children:[f.jsx("input",{type:"text",value:u,"data-testid":o?"environment-new-input-name":`environment-input-name-${u}`,name:o?"environment-new-input-name":`environment-input-name-${u}`,readOnly:r,onChange:w=>g("name",w.target.value),onBlur:y,placeholder:`${o?"New input":""}`}),n&&f.jsx(Q.Tooltip,{tip:"This variable overrides other variables with the same name",children:f.jsx(dtt,{size:"small",variant:"text",icon:f.jsx(Q.WarningAltIcon,{})})})]})}),f.jsx(Xq,{children:f.jsxs("div",{children:[f.jsx("input",{type:p?h?"text":"password":"text",name:o?"environment-new-input-value":`environment-input-value-${u}`,value:d,placeholder:"Enter value","data-testid":`environment-input-value-${u}`,onChange:w=>g("value",w.target.value)}),d&&p&&f.jsx(Ia,{onClick:b,variant:"text",size:"small",icon:h?f.jsx(Q.ViewOffIcon,{}):f.jsx(Q.ViewIcon,{})})]})}),f.jsx(utt,{children:f.jsx($W,{value:p,onChange:w=>g("isSecret",w)})}),f.jsx(ltt,{children:o?f.jsx(ctt,{}):f.jsx(f.Fragment,{children:r?f.jsx(Q.Tooltip,{tip:Bet,children:f.jsx(Ia,{size:"small",variant:"text",icon:f.jsx(Q.InformationIcon,{})})}):f.jsx(yi,{"data-testid":`remove-input-btn-${u}`,icon:f.jsx(Q.TrashCanIcon,{}),onClick:v})})})]})},ltt=T(Cn)`
|
|
4564
4564
|
padding: 0 var(--spacing-xxs);
|
|
4565
4565
|
`,ctt=T(Cn)`
|
|
4566
4566
|
width: var(--control-width-base);
|
|
@@ -4664,7 +4664,7 @@ Please report this to https://github.com/markedjs/marked.`,t){const i="<p>An err
|
|
|
4664
4664
|
border: none;
|
|
4665
4665
|
width: 100%;
|
|
4666
4666
|
padding: 0 var(--select-input-padding-horizontal);
|
|
4667
|
-
`;function $tt({availableApiIds:t,server:e,isPredefinedApi:r,isPredefinedEnvironment:n,environmentName:i}){const{sendEvent:o}=st(),[s,a]=$.useState(!1),{apiId:l,value:c}=e.get(),{api:u}=sI(l),d=u?.info.title.get(),p=y=>{e.set(y),a(!1),o("server.management",{action:"editing_finished",environment_name:i,api_id:l})},h=()=>{o("server.management",{action:"editing_canceled",environment_name:i,api_id:l}),a(!1)},m=()=>{o("server.management",{action:"editing_started",environment_name:i,api_id:l}),a(!0)},g=()=>{o("server.management",{action:"removed",environment_name:i,api_id:l}),e.set(pt)},O=$.useMemo(()=>{const y=new Set;return(!n||!r)&&y.add("edit"),r||y.add("remove"),y},[n,r]);return f.jsx(ktt,{children:s?f.jsx(Qtt,{title:"Edit server",server:e.get(),availableApiIds:t,isPredefinedApi:r,onSave:p,onCancel:h}):f.jsxs(f.Fragment,{children:[f.jsx(II,{dataTestId:`environment-server-${l}`,showControlsOnHover:!0,controls:O.size>0&&f.jsx(Q.Dropdown,{triggerEvent:"hover",trigger:f.jsx(Q.Button,{variant:"text",size:"small",icon:f.jsx(Q.OverflowMenuVerticalIcon,{}),"data-testid":`environment-server-actions-${l}`}),alignment:"end",children:f.jsxs(Q.DropdownMenu,{children:[O.has("edit")&&f.jsxs(qn,{onClick:m,"data-testid":`edit-server-btn-${l}`,children:[f.jsx(Q.EditIcon,{size:"14px"}),"Edit"]}),O.has("remove")&&f.jsxs(qn,{"data-testid":`remove-server-btn-${l}`,onClick:g,children:[f.jsx(Q.TrashCanIcon,{size:"14px"}),"Remove"]})]})}),children:f.jsxs(Ttt,{children:[r?f.jsx(Ett,{children:"server"}):f.jsx(Itt,{children:f.jsx(Rtt,{children:d??l})}),f.jsx(_tt,{$isEmpty:!c,children:jI(c,{highlightPatterns:[{matchFn:y=>{const v=Array.from(y.matchAll(DY));return v.length>0?v.map(b=>({match:b[0],prefix:"",start:b.index??0,end:(b.index??0)+b[0].length})):null},component:({token:y})=>f.jsx(jtt,{children:y.match})}]})||"No value"})]})}),e.variables.length>0&&f.jsx(Att,{title:`Server variable${e.variables.length>1?"s":""}`,dataTestId:`server-variables-${l}`,trigger:"icon",children:f.jsx(tee,{cellSpacing:0,cellPadding:0,children:f.jsx("tbody",{children:e.variables.map((y,v)=>f.jsx(xtt,{variable:y,apiId:l,serverUrl:c},v))})})})]})})}const ktt=T.div`
|
|
4667
|
+
`;function $tt({availableApiIds:t,server:e,isPredefinedApi:r,isPredefinedEnvironment:n,environmentName:i}){const{sendEvent:o}=st(),[s,a]=$.useState(!1),{apiId:l,value:c}=e.get(),{api:u}=sI(l),d=u?.info.title.get(),p=y=>{e.set(y),a(!1),o("server.management",[{action:"editing_finished",environment_name:i,api_id:l}])},h=()=>{o("server.management",[{action:"editing_canceled",environment_name:i,api_id:l}]),a(!1)},m=()=>{o("server.management",[{action:"editing_started",environment_name:i,api_id:l}]),a(!0)},g=()=>{o("server.management",[{action:"removed",environment_name:i,api_id:l}]),e.set(pt)},O=$.useMemo(()=>{const y=new Set;return(!n||!r)&&y.add("edit"),r||y.add("remove"),y},[n,r]);return f.jsx(ktt,{children:s?f.jsx(Qtt,{title:"Edit server",server:e.get(),availableApiIds:t,isPredefinedApi:r,onSave:p,onCancel:h}):f.jsxs(f.Fragment,{children:[f.jsx(II,{dataTestId:`environment-server-${l}`,showControlsOnHover:!0,controls:O.size>0&&f.jsx(Q.Dropdown,{triggerEvent:"hover",trigger:f.jsx(Q.Button,{variant:"text",size:"small",icon:f.jsx(Q.OverflowMenuVerticalIcon,{}),"data-testid":`environment-server-actions-${l}`}),alignment:"end",children:f.jsxs(Q.DropdownMenu,{children:[O.has("edit")&&f.jsxs(qn,{onClick:m,"data-testid":`edit-server-btn-${l}`,children:[f.jsx(Q.EditIcon,{size:"14px"}),"Edit"]}),O.has("remove")&&f.jsxs(qn,{"data-testid":`remove-server-btn-${l}`,onClick:g,children:[f.jsx(Q.TrashCanIcon,{size:"14px"}),"Remove"]})]})}),children:f.jsxs(Ttt,{children:[r?f.jsx(Ett,{children:"server"}):f.jsx(Itt,{children:f.jsx(Rtt,{children:d??l})}),f.jsx(_tt,{$isEmpty:!c,children:jI(c,{highlightPatterns:[{matchFn:y=>{const v=Array.from(y.matchAll(DY));return v.length>0?v.map(b=>({match:b[0],prefix:"",start:b.index??0,end:(b.index??0)+b[0].length})):null},component:({token:y})=>f.jsx(jtt,{children:y.match})}]})||"No value"})]})}),e.variables.length>0&&f.jsx(Att,{title:`Server variable${e.variables.length>1?"s":""}`,dataTestId:`server-variables-${l}`,trigger:"icon",children:f.jsx(tee,{cellSpacing:0,cellPadding:0,children:f.jsx("tbody",{children:e.variables.map((y,v)=>f.jsx(xtt,{variable:y,apiId:l,serverUrl:c},v))})})})]})})}const ktt=T.div`
|
|
4668
4668
|
display: flex;
|
|
4669
4669
|
flex-direction: column;
|
|
4670
4670
|
align-items: stretch;
|
|
@@ -4745,7 +4745,7 @@ Please report this to https://github.com/markedjs/marked.`,t){const i="<p>An err
|
|
|
4745
4745
|
background-color: var(--color-warm-grey-2);
|
|
4746
4746
|
`,Qtt=T(_I)`
|
|
4747
4747
|
padding: 0;
|
|
4748
|
-
`,Dtt=({environment:t,predefinedApiId:e,isPredefinedEnvironment:r})=>{const{apis:n}=Ug(),{isApiBased:i}=Vo(),o=n.length>0,{sendEvent:s}=st(),{name:a}=t.get(),[l,c]=$.useState(!1),u=g=>{g.stopPropagation(),c(!0),s("server.management",{action:"creation_started",environment_name:a})},d=g=>{t.servers.set(O=>[g,...O]),c(!1),s("server.management",{action:"creation_finished",environment_name:a,api_id:g.apiId})},p=()=>{c(!1),s("server.management",{action:"creation_canceled",environment_name:a})},h=$.useMemo(()=>new Set(t.servers.map(g=>g.apiId.get())),[t.servers]),m=$.useMemo(()=>n.filter(g=>!h.has(g.id.get())).map(g=>g.id.get()),[n,h]);return f.jsx(Ntt,{$hideTitle:i.get()&&t.servers.length===1,trigger:"icon",title:"Servers",dataTestId:"selected-environment-servers",showControlsOnHover:!1,defaultExpanded:!0,controls:o?f.jsx(Q.Tooltip,{disabled:m.length!==0,tip:m.length===0?"All APIs already have a server in this environment.":void 0,placement:"bottom",children:f.jsx(qtt,{icon:f.jsx(Q.AddIcon,{}),variant:"text",onClick:u,iconPosition:"left",size:"small",disabled:m.length===0,"data-testid":"selected-environment-servers-add-server",children:"Add server"})}):void 0,children:f.jsxs(Mtt,{children:[l&&f.jsx(ztt,{children:f.jsx(Ltt,{title:"Add server",availableApiIds:m,onSave:d,onCancel:p})}),t.servers.length===0&&!l&&f.jsx(f.Fragment,{children:o?f.jsx(Wq,{children:"No servers added."}):f.jsx(Wq,{children:"To add a server, first add at least one API to your project."})}),t.servers.map((g,O)=>{const y=g.get();return f.jsx($tt,{environmentName:a,availableApiIds:m,server:g,isPredefinedApi:e===g.apiId.get(),isPredefinedEnvironment:r},`${y.apiId}-${O}`)})]})})},Ntt=T(w1)`
|
|
4748
|
+
`,Dtt=({environment:t,predefinedApiId:e,isPredefinedEnvironment:r})=>{const{apis:n}=Ug(),{isApiBased:i}=Vo(),o=n.length>0,{sendEvent:s}=st(),{name:a}=t.get(),[l,c]=$.useState(!1),u=g=>{g.stopPropagation(),c(!0),s("server.management",[{action:"creation_started",environment_name:a}])},d=g=>{t.servers.set(O=>[g,...O]),c(!1),s("server.management",[{action:"creation_finished",environment_name:a,api_id:g.apiId}])},p=()=>{c(!1),s("server.management",[{action:"creation_canceled",environment_name:a}])},h=$.useMemo(()=>new Set(t.servers.map(g=>g.apiId.get())),[t.servers]),m=$.useMemo(()=>n.filter(g=>!h.has(g.id.get())).map(g=>g.id.get()),[n,h]);return f.jsx(Ntt,{$hideTitle:i.get()&&t.servers.length===1,trigger:"icon",title:"Servers",dataTestId:"selected-environment-servers",showControlsOnHover:!1,defaultExpanded:!0,controls:o?f.jsx(Q.Tooltip,{disabled:m.length!==0,tip:m.length===0?"All APIs already have a server in this environment.":void 0,placement:"bottom",children:f.jsx(qtt,{icon:f.jsx(Q.AddIcon,{}),variant:"text",onClick:u,iconPosition:"left",size:"small",disabled:m.length===0,"data-testid":"selected-environment-servers-add-server",children:"Add server"})}):void 0,children:f.jsxs(Mtt,{children:[l&&f.jsx(ztt,{children:f.jsx(Ltt,{title:"Add server",availableApiIds:m,onSave:d,onCancel:p})}),t.servers.length===0&&!l&&f.jsx(f.Fragment,{children:o?f.jsx(Wq,{children:"No servers added."}):f.jsx(Wq,{children:"To add a server, first add at least one API to your project."})}),t.servers.map((g,O)=>{const y=g.get();return f.jsx($tt,{environmentName:a,availableApiIds:m,server:g,isPredefinedApi:e===g.apiId.get(),isPredefinedEnvironment:r},`${y.apiId}-${O}`)})]})})},Ntt=T(w1)`
|
|
4749
4749
|
gap: var(--spacing-xs);
|
|
4750
4750
|
& > div {
|
|
4751
4751
|
padding: 0;
|
|
@@ -4789,7 +4789,7 @@ Please report this to https://github.com/markedjs/marked.`,t){const i="<p>An err
|
|
|
4789
4789
|
border-radius: var(--border-radius-lg);
|
|
4790
4790
|
`,Ltt=T(_I)`
|
|
4791
4791
|
padding: 0;
|
|
4792
|
-
`,Vtt=({environment:t,onClose:e,onEdit:r})=>{const{sendEvent:n}=st(),{predefinedEnvironmentNames:i,predefinedApiId:o,predefinedInputNames:s,activeEnvironmentId:a,environments:l}=gt(),{name:c,state:u}=t.get(),d=i.get().has(c),p=w=>{n("environment.management",{action:"edited",name:c,new_name:w}),t.state.set(Mt.Normal),w.length&&(t.name.set(w),r(w,c))},h=()=>{t.state.set(Mt.Normal),n("environment.management",{action:"editing_canceled",name:c})},m=w=>{const S=new Set(l.get().map(P=>P.name).filter(P=>P!==c));return JK(w,S)},g=()=>{t.state.set(Mt.Edit),n("environment.management",{action:"editing_started",name:c})},O=()=>{e()},v=!(c===Cg)&&!d,b=u===Mt.Edit||u===Mt.Draft;return f.jsxs(Xtt,{children:[f.jsxs(Wtt,{children:[f.jsx(Utt,{children:b?f.jsx(Gtt,{children:f.jsx(HK,{placeholder:"Environment name",defaultName:c,onApplyNewName:p,onCancelEditing:h,validate:m})}):f.jsxs(f.Fragment,{children:[f.jsx(Btt,{children:c}),v?f.jsx(Ia,{size:"small",variant:"text",icon:f.jsx(Q.EditIcon,{}),"data-testid":`edit-environment-${c}`,onClick:g}):d?f.jsx(Q.Tooltip,{tip:Uet,placement:"bottom",children:f.jsx(Ia,{size:"small",variant:"text",icon:f.jsx(Q.InformationIcon,{})})}):null]})}),f.jsxs(Ftt,{children:[a.get()===c&&f.jsxs(f.Fragment,{children:[f.jsx(Ztt,{color:"success",icon:f.jsx(Q.CheckmarkFilledIcon,{size:"14px"}),children:"Active"}),f.jsx(Ytt,{})]}),f.jsx(Q.CloseIcon,{onClick:O,"data-testid":"environment-close-button"})]})]}),u===Mt.Draft?null:f.jsxs(Htt,{children:[f.jsx(Dtt,{environment:t,predefinedApiId:o.get(),isPredefinedEnvironment:d}),f.jsx(ftt,{environment:t,predefinedInputs:s.get()})]})]})},Xtt=T.div`
|
|
4792
|
+
`,Vtt=({environment:t,onClose:e,onEdit:r})=>{const{sendEvent:n}=st(),{predefinedEnvironmentNames:i,predefinedApiId:o,predefinedInputNames:s,activeEnvironmentId:a,environments:l}=gt(),{name:c,state:u}=t.get(),d=i.get().has(c),p=w=>{n("environment.management",[{action:"edited",name:c,new_name:w}]),t.state.set(Mt.Normal),w.length&&(t.name.set(w),r(w,c))},h=()=>{t.state.set(Mt.Normal),n("environment.management",[{action:"editing_canceled",name:c}])},m=w=>{const S=new Set(l.get().map(P=>P.name).filter(P=>P!==c));return JK(w,S)},g=()=>{t.state.set(Mt.Edit),n("environment.management",[{action:"editing_started",name:c}])},O=()=>{e()},v=!(c===Cg)&&!d,b=u===Mt.Edit||u===Mt.Draft;return f.jsxs(Xtt,{children:[f.jsxs(Wtt,{children:[f.jsx(Utt,{children:b?f.jsx(Gtt,{children:f.jsx(HK,{placeholder:"Environment name",defaultName:c,onApplyNewName:p,onCancelEditing:h,validate:m})}):f.jsxs(f.Fragment,{children:[f.jsx(Btt,{children:c}),v?f.jsx(Ia,{size:"small",variant:"text",icon:f.jsx(Q.EditIcon,{}),"data-testid":`edit-environment-${c}`,onClick:g}):d?f.jsx(Q.Tooltip,{tip:Uet,placement:"bottom",children:f.jsx(Ia,{size:"small",variant:"text",icon:f.jsx(Q.InformationIcon,{})})}):null]})}),f.jsxs(Ftt,{children:[a.get()===c&&f.jsxs(f.Fragment,{children:[f.jsx(Ztt,{color:"success",icon:f.jsx(Q.CheckmarkFilledIcon,{size:"14px"}),children:"Active"}),f.jsx(Ytt,{})]}),f.jsx(Q.CloseIcon,{onClick:O,"data-testid":"environment-close-button"})]})]}),u===Mt.Draft?null:f.jsxs(Htt,{children:[f.jsx(Dtt,{environment:t,predefinedApiId:o.get(),isPredefinedEnvironment:d}),f.jsx(ftt,{environment:t,predefinedInputs:s.get()})]})]})},Xtt=T.div`
|
|
4793
4793
|
flex: 1;
|
|
4794
4794
|
padding: var(--spacing-base);
|
|
4795
4795
|
display: flex;
|
|
@@ -4851,7 +4851,7 @@ Please report this to https://github.com/markedjs/marked.`,t){const i="<p>An err
|
|
|
4851
4851
|
height: 100%;
|
|
4852
4852
|
}
|
|
4853
4853
|
}
|
|
4854
|
-
`;function rrt({environmentName:t,icon:e,...r}){return f.jsxs(ort,{...r,children:[f.jsx(eR,{}),f.jsx(srt,{title:t,children:t}),e]})}function tR(){const{sendEvent:t}=st(),{environments:e,activeEnvironmentId:r}=gt(),{isOpen:n,handleOpen:i,handleClose:o}=La(),s=Kt(),a=l=>{r.set(l),t("environment.management",{action:"selected",name:l})};return f.jsxs(nrt,{children:[f.jsx(irt,{closeOnClick:!0,withArrow:!0,placement:"bottom",alignment:"end",trigger:f.jsx(rrt,{"data-testid":"environment-select",environmentName:s.get().name||"Default"}),children:f.jsxs(lrt,{children:[f.jsx(art,{children:"Environments"}),f.jsx(drt,{children:e.get().map(l=>f.jsx(Uq,{prefix:f.jsx(eR,{}),content:f.jsx(crt,{"data-testid":"environment-select-option",title:l.name,$isActive:l.name===r.get(),children:l.name}),onAction:()=>a(l.name),suffix:l.name===r.get()?f.jsx(Q.CheckmarkIcon,{}):void 0},l.name))}),f.jsx(ct,{}),f.jsx(Uq,{prefix:f.jsx(Q.SettingsIcon,{}),content:"Configure environments",onAction:i})]})}),f.jsx(Q.Tooltip,{tip:"Configure environments",placement:"left",arrowPosition:"top",children:f.jsx(urt,{"data-testid":"environments-settings-button",size:"small",variant:"text",icon:f.jsx(Q.SettingsIcon,{}),onClick:i})}),f.jsx(ert,{isOpen:n,onClose:o})]})}const nrt=T.div`
|
|
4854
|
+
`;function rrt({environmentName:t,icon:e,...r}){return f.jsxs(ort,{...r,children:[f.jsx(eR,{}),f.jsx(srt,{title:t,children:t}),e]})}function tR(){const{sendEvent:t}=st(),{environments:e,activeEnvironmentId:r}=gt(),{isOpen:n,handleOpen:i,handleClose:o}=La(),s=Kt(),a=l=>{r.set(l),t("environment.management",[{action:"selected",name:l}])};return f.jsxs(nrt,{children:[f.jsx(irt,{closeOnClick:!0,withArrow:!0,placement:"bottom",alignment:"end",trigger:f.jsx(rrt,{"data-testid":"environment-select",environmentName:s.get().name||"Default"}),children:f.jsxs(lrt,{children:[f.jsx(art,{children:"Environments"}),f.jsx(drt,{children:e.get().map(l=>f.jsx(Uq,{prefix:f.jsx(eR,{}),content:f.jsx(crt,{"data-testid":"environment-select-option",title:l.name,$isActive:l.name===r.get(),children:l.name}),onAction:()=>a(l.name),suffix:l.name===r.get()?f.jsx(Q.CheckmarkIcon,{}):void 0},l.name))}),f.jsx(ct,{}),f.jsx(Uq,{prefix:f.jsx(Q.SettingsIcon,{}),content:"Configure environments",onAction:i})]})}),f.jsx(Q.Tooltip,{tip:"Configure environments",placement:"left",arrowPosition:"top",children:f.jsx(urt,{"data-testid":"environments-settings-button",size:"small",variant:"text",icon:f.jsx(Q.SettingsIcon,{}),onClick:i})}),f.jsx(ert,{isOpen:n,onClose:o})]})}const nrt=T.div`
|
|
4855
4855
|
display: flex;
|
|
4856
4856
|
align-items: stretch;
|
|
4857
4857
|
border-radius: var(--spacing-xxs);
|
|
@@ -5031,7 +5031,7 @@ Please report this to https://github.com/markedjs/marked.`,t){const i="<p>An err
|
|
|
5031
5031
|
top: ${({$top:t})=>t}px;
|
|
5032
5032
|
left: ${({$left:t})=>t}px;
|
|
5033
5033
|
z-index: var(--z-index-popover);
|
|
5034
|
-
`;function Grt(){const[t,e]=$.useState(""),{openStepTabFromHistory:r}=dn(),{history:n}=gt(),{sendEvent:i}=st(),{isMobile:o,setActiveTab:s}=Qs(),a=$.useMemo(()=>[...n.get()].sort((m,g)=>g.date-m.date),[n]),l=$.useMemo(()=>a.filter(m=>{const{url:g,method:O}=Vc(m.step),y=g.toLowerCase().includes(t.toLowerCase()),v=O.toLowerCase().includes(t.toLowerCase());return y||v}),[a,t]),c=$.useMemo(()=>Frt(l,"date"),[l]),u=m=>{e(m)},d=$.useCallback(m=>{n.find(g=>g.get().id===m)?.set(pt),i("history.management",{action:"item_removed"})},[n,i]),p=$.useCallback(()=>{n.set([]),i("history.management",{action:"all_items_removed"})},[n,i]),h=$.useCallback(m=>{r(m.id),i("history.management",{action:"item_clicked"}),s("Request")},[i,s,r]);return n.get()?.length?f.jsxs(nR,{children:[f.jsxs(iR,{children:[f.jsxs(oR,{children:[f.jsx(Q.SearchIcon,{color:"var(--icon-color-additional)"}),f.jsx(xf,{"data-testid":"search-input",spellCheck:!1,placeholder:"Search",value:t,onChange:m=>u(m.target.value)})]}),f.jsx(dT,{description:"Are you sure to clear your whole history?",placement:"bottomRight",onConfirm:p,children:f.jsx(Q.Button,{"data-testid":"clear-history-button",disabled:!n.get()?.length,variant:"text",size:"small",icon:f.jsx(Q.TrashCanIcon,{})})})]}),f.jsx(C1,{children:Object.entries(c).map((m,g)=>{const[O,y]=m;return f.jsx(w1,{title:Kq(O),defaultExpanded:g===0,children:f.jsx(Jrt,{children:y.map((v,b)=>{const{url:w,method:S}=Vc(v.step);return f.jsx(Hrt,{"data-testid":`history-item-${b}`,children:f.jsx(II,{showControlsOnHover:!o,onClick:()=>h(v),staticLabels:v.response?f.jsx(ont,{children:f.jsx(int,{tabIndex:-1,status:v.response.status.toString(),children:v.response.status})}):null,controls:f.jsx(f.Fragment,{children:f.jsx(dT,{description:"Are you sure you to delete this request?",placement:"bottomRight",onConfirm:()=>d(v.id),children:f.jsx(sr,{content:"Delete",placement:"topRight",children:f.jsx(Q.Button,{variant:"text",size:"small",icon:f.jsx(Q.TrashCanIcon,{color:"--color-error-base"}),"data-testid":`remove-history-item-${b}`})})})}),children:f.jsxs(ent,{children:[f.jsx(Krt,{children:f.jsx(Zrt,{value:S})}),f.jsx(tnt,{children:f.jsx(rnt,{mouseEnterDelay:1,placement:"bottom",content:P1(new Date(v.date)).format("MMM, DD, YYYY, hh:mm:ss A"),children:f.jsx(nnt,{children:w})})})]},v.id)})},v.id)})})},Kq(O))})})]}):f.jsxs($1,{children:[f.jsx("h3",{children:"You have not run any requests"}),"You'll see the full history of the request."]})}const Hrt=T.div`
|
|
5034
|
+
`;function Grt(){const[t,e]=$.useState(""),{openStepTabFromHistory:r}=dn(),{history:n}=gt(),{sendEvent:i}=st(),{isMobile:o,setActiveTab:s}=Qs(),a=$.useMemo(()=>[...n.get()].sort((m,g)=>g.date-m.date),[n]),l=$.useMemo(()=>a.filter(m=>{const{url:g,method:O}=Vc(m.step),y=g.toLowerCase().includes(t.toLowerCase()),v=O.toLowerCase().includes(t.toLowerCase());return y||v}),[a,t]),c=$.useMemo(()=>Frt(l,"date"),[l]),u=m=>{e(m)},d=$.useCallback(m=>{n.find(g=>g.get().id===m)?.set(pt),i("history.management",[{action:"item_removed"}])},[n,i]),p=$.useCallback(()=>{n.set([]),i("history.management",[{action:"all_items_removed"}])},[n,i]),h=$.useCallback(m=>{r(m.id),i("history.management",[{action:"item_clicked"}]),s("Request")},[i,s,r]);return n.get()?.length?f.jsxs(nR,{children:[f.jsxs(iR,{children:[f.jsxs(oR,{children:[f.jsx(Q.SearchIcon,{color:"var(--icon-color-additional)"}),f.jsx(xf,{"data-testid":"search-input",spellCheck:!1,placeholder:"Search",value:t,onChange:m=>u(m.target.value)})]}),f.jsx(dT,{description:"Are you sure to clear your whole history?",placement:"bottomRight",onConfirm:p,children:f.jsx(Q.Button,{"data-testid":"clear-history-button",disabled:!n.get()?.length,variant:"text",size:"small",icon:f.jsx(Q.TrashCanIcon,{})})})]}),f.jsx(C1,{children:Object.entries(c).map((m,g)=>{const[O,y]=m;return f.jsx(w1,{title:Kq(O),defaultExpanded:g===0,children:f.jsx(Jrt,{children:y.map((v,b)=>{const{url:w,method:S}=Vc(v.step);return f.jsx(Hrt,{"data-testid":`history-item-${b}`,children:f.jsx(II,{showControlsOnHover:!o,onClick:()=>h(v),staticLabels:v.response?f.jsx(ont,{children:f.jsx(int,{tabIndex:-1,status:v.response.status.toString(),children:v.response.status})}):null,controls:f.jsx(f.Fragment,{children:f.jsx(dT,{description:"Are you sure you to delete this request?",placement:"bottomRight",onConfirm:()=>d(v.id),children:f.jsx(sr,{content:"Delete",placement:"topRight",children:f.jsx(Q.Button,{variant:"text",size:"small",icon:f.jsx(Q.TrashCanIcon,{color:"--color-error-base"}),"data-testid":`remove-history-item-${b}`})})})}),children:f.jsxs(ent,{children:[f.jsx(Krt,{children:f.jsx(Zrt,{value:S})}),f.jsx(tnt,{children:f.jsx(rnt,{mouseEnterDelay:1,placement:"bottom",content:P1(new Date(v.date)).format("MMM, DD, YYYY, hh:mm:ss A"),children:f.jsx(nnt,{children:w})})})]},v.id)})},v.id)})})},Kq(O))})})]}):f.jsxs($1,{children:[f.jsx("h3",{children:"You have not run any requests"}),"You'll see the full history of the request."]})}const Hrt=T.div`
|
|
5035
5035
|
height: 32px;
|
|
5036
5036
|
padding: var(--spacing-xxs) var(--spacing-sm) var(--spacing-xxs)
|
|
5037
5037
|
calc(var(--spacing-sm) + var(--spacing-base));
|
|
@@ -5133,7 +5133,7 @@ Please report this to https://github.com/markedjs/marked.`,t){const i="<p>An err
|
|
|
5133
5133
|
color: var(--text-color-secondary);
|
|
5134
5134
|
display: inline-flex;
|
|
5135
5135
|
word-break: var(--code-word-break);
|
|
5136
|
-
`;function ez({name:t,value:e}){const[r,n]=$.useState(!1),{sendEvent:i}=st(),o=()=>{n(!r),i("credential.management",{action:"visibility_toggled",name:t,visible:!r})},s=()=>{i("credential.management",{action:"copied",name:t})};return f.jsxs(snt,{children:[f.jsxs(ant,{children:[f.jsx(lnt,{children:t}),f.jsx(cnt,{children:r?e:"••••••••••••••••••••••••••••••••••••"})]}),f.jsxs(unt,{children:[f.jsx(Q.Button,{variant:"text",size:"small",icon:r?f.jsx(Q.ViewIcon,{}):f.jsx(Q.ViewOffIcon,{}),onClick:o}),f.jsx(Q.CopyButton,{toasterPlacement:"left",data:e,onCopyClick:s})]})]})}const snt=T.div`
|
|
5136
|
+
`;function ez({name:t,value:e}){const[r,n]=$.useState(!1),{sendEvent:i}=st(),o=()=>{n(!r),i("credential.management",[{action:"visibility_toggled",name:t,visible:!r}])},s=()=>{i("credential.management",[{action:"copied",name:t}])};return f.jsxs(snt,{children:[f.jsxs(ant,{children:[f.jsx(lnt,{children:t}),f.jsx(cnt,{children:r?e:"••••••••••••••••••••••••••••••••••••"})]}),f.jsxs(unt,{children:[f.jsx(Q.Button,{variant:"text",size:"small",icon:r?f.jsx(Q.ViewIcon,{}):f.jsx(Q.ViewOffIcon,{}),onClick:o}),f.jsx(Q.CopyButton,{toasterPlacement:"left",data:e,onCopyClick:s})]})]})}const snt=T.div`
|
|
5137
5137
|
display: flex;
|
|
5138
5138
|
padding: var(--spacing-xs) var(--spacing-xs);
|
|
5139
5139
|
align-items: flex-start;
|
|
@@ -5169,7 +5169,7 @@ Please report this to https://github.com/markedjs/marked.`,t){const i="<p>An err
|
|
|
5169
5169
|
justify-content: flex-end;
|
|
5170
5170
|
align-items: center;
|
|
5171
5171
|
gap: var(--spacing-xxs);
|
|
5172
|
-
`;function dnt({credential:t,number:e}){const{tab:r}=wf(Ge.Step),n=oI(r?.data??null);return!n||!r?null:f.jsx(fnt,{tab:r,credential:t,number:e,step:n})}function fnt({tab:t,credential:e,number:r,step:n}){const i=Kt(),{sendEvent:o}=st(),{security:s}=n,{data:{activeTabName:a}}=t,{clientId:l,clientSecret:c,valueToUseInHeader:u}=e,d=()=>{a.set(lt.SECURITY);const p=s[0];if(!p.get())return;const{securityType:h,...m}=p,g=(O,y)=>{if(O.get()===Se.AuthorizationCode){const{clientId:v,clientSecret:b}=y[Se.AuthorizationCode];(l||c)&&Jr(l||c||"",v,i),c&&Jr(c,b,i)}if(O.get()===Se.AuthorizationCodeWithPkce){const{clientId:v,clientSecret:b}=y[Se.AuthorizationCodeWithPkce];(l||c)&&Jr(l||c||"",v,i),c&&Jr(c,b,i)}if(O.get()===Se.Implicit){const{clientId:v}=y[Se.Implicit];(l||c)&&Jr(l||c||"",v,i)}if(O.get()===Se.ClientCredentials){const{clientId:v,clientSecret:b}=y[Se.ClientCredentials];(l||c)&&Jr(l||c||"",v,i),c&&Jr(c,b,i)}if(O.get()===Se.Password){const{clientId:v,clientSecret:b}=y[Se.Password];(l||c)&&Jr(l||c||"",v,i),c&&Jr(c,b,i)}};if(h.get()===ve.BasicAuth){const{username:O,password:y}=m[ve.BasicAuth];(l||c)&&Jr(l||c||"",O,i),c&&Jr(c,y,i)}if(h.get()===ve.DigestAuth){const{username:O,password:y}=m[ve.DigestAuth];(l||c)&&Jr(l||c||"",O,i),c&&Jr(c,y,i)}if(h.get()===ve.JWT){const{token:O}=m[ve.JWT];(l||c)&&Jr(l||c||"",O,i)}if(h.get()===ve.APIKey){const{key:O}=m[ve.APIKey];Jr(e[u||"clientSecret"]||l||"",O,i)}if(h.get()===ve.OAuth2){const O=m[ve.OAuth2],y=O.grantType;g(y,O)}if(h.get()===ve.OpenIDConnect){const O=m[ve.OpenIDConnect],{grantType:y}=O;g(y,O)}o("credential.management",{action:"use_key_clicked",number:r})};return f.jsxs(pnt,{children:[f.jsxs(hnt,{children:[f.jsx(mnt,{children:r.toString().padStart(2,"0")}),f.jsxs(gnt,{children:[e.stage&&f.jsx(Q.Tag,{color:"gray",children:e.stage}),f.jsx(Q.Tag,{color:"green",children:e.status})]})]}),l&&f.jsx(ez,{name:"API key",value:l}),c&&f.jsx(ez,{name:l?"Secret":"API key",value:c}),f.jsx(Ont,{children:f.jsx(Q.Button,{size:"small",variant:"secondary",onClick:d,children:"Use key"})})]})}const pnt=T.div`
|
|
5172
|
+
`;function dnt({credential:t,number:e}){const{tab:r}=wf(Ge.Step),n=oI(r?.data??null);return!n||!r?null:f.jsx(fnt,{tab:r,credential:t,number:e,step:n})}function fnt({tab:t,credential:e,number:r,step:n}){const i=Kt(),{sendEvent:o}=st(),{security:s}=n,{data:{activeTabName:a}}=t,{clientId:l,clientSecret:c,valueToUseInHeader:u}=e,d=()=>{a.set(lt.SECURITY);const p=s[0];if(!p.get())return;const{securityType:h,...m}=p,g=(O,y)=>{if(O.get()===Se.AuthorizationCode){const{clientId:v,clientSecret:b}=y[Se.AuthorizationCode];(l||c)&&Jr(l||c||"",v,i),c&&Jr(c,b,i)}if(O.get()===Se.AuthorizationCodeWithPkce){const{clientId:v,clientSecret:b}=y[Se.AuthorizationCodeWithPkce];(l||c)&&Jr(l||c||"",v,i),c&&Jr(c,b,i)}if(O.get()===Se.Implicit){const{clientId:v}=y[Se.Implicit];(l||c)&&Jr(l||c||"",v,i)}if(O.get()===Se.ClientCredentials){const{clientId:v,clientSecret:b}=y[Se.ClientCredentials];(l||c)&&Jr(l||c||"",v,i),c&&Jr(c,b,i)}if(O.get()===Se.Password){const{clientId:v,clientSecret:b}=y[Se.Password];(l||c)&&Jr(l||c||"",v,i),c&&Jr(c,b,i)}};if(h.get()===ve.BasicAuth){const{username:O,password:y}=m[ve.BasicAuth];(l||c)&&Jr(l||c||"",O,i),c&&Jr(c,y,i)}if(h.get()===ve.DigestAuth){const{username:O,password:y}=m[ve.DigestAuth];(l||c)&&Jr(l||c||"",O,i),c&&Jr(c,y,i)}if(h.get()===ve.JWT){const{token:O}=m[ve.JWT];(l||c)&&Jr(l||c||"",O,i)}if(h.get()===ve.APIKey){const{key:O}=m[ve.APIKey];Jr(e[u||"clientSecret"]||l||"",O,i)}if(h.get()===ve.OAuth2){const O=m[ve.OAuth2],y=O.grantType;g(y,O)}if(h.get()===ve.OpenIDConnect){const O=m[ve.OpenIDConnect],{grantType:y}=O;g(y,O)}o("credential.management",[{action:"use_key_clicked",number:r}])};return f.jsxs(pnt,{children:[f.jsxs(hnt,{children:[f.jsx(mnt,{children:r.toString().padStart(2,"0")}),f.jsxs(gnt,{children:[e.stage&&f.jsx(Q.Tag,{color:"gray",children:e.stage}),f.jsx(Q.Tag,{color:"green",children:e.status})]})]}),l&&f.jsx(ez,{name:"API key",value:l}),c&&f.jsx(ez,{name:l?"Secret":"API key",value:c}),f.jsx(Ont,{children:f.jsx(Q.Button,{size:"small",variant:"secondary",onClick:d,children:"Use key"})})]})}const pnt=T.div`
|
|
5173
5173
|
display: flex;
|
|
5174
5174
|
flex-direction: column;
|
|
5175
5175
|
align-self: stretch;
|
|
@@ -5225,7 +5225,7 @@ Please report this to https://github.com/markedjs/marked.`,t){const i="<p>An err
|
|
|
5225
5225
|
font-size: var(--font-size-base);
|
|
5226
5226
|
line-height: var(--line-height-base);
|
|
5227
5227
|
color: var(--text-color-secondary);
|
|
5228
|
-
`;function Snt(){const[t,e]=$.useState(""),{apps:{apps:r,apiId:n,appsLoadingState:i}}=gt(),{MobileHeader:o}=Qs(),{sendEvent:s}=st(),a=()=>{window.open("/apps","_blank"),s("credential.management",{action:"request_access_clicked"})};$.useEffect(()=>((i.get()===as.Idle||i.get()===as.Error)&&(i.set(as.Loading),Sa(`/api/api-keys/api-products/${n.get()}/access?expand=0`).then(u=>u.json().then(d=>{u.ok?(r.set(d.apps||[]),i.set(as.Success)):i.set(as.Error)}).catch(()=>i.set(as.Error)))),()=>{r.set([]),i.set(as.Idle)}),[n]);const l=$.useMemo(()=>r.filter(u=>u.title.get().toLowerCase().includes(t.toLowerCase())),[t,r]),c=u=>{e(u)};return i.get()===as.Loading?f.jsx(Pnt,{children:f.jsx(Q.SpinnerIcon,{size:"24px",color:"--icon-color-additional"})}):r.length?f.jsxs(wnt,{children:[f.jsx(o,{}),f.jsx(iee,{children:f.jsx(GG,{value:t,onSearch:c})}),f.jsx(C1,{children:l.map(u=>f.jsx(ynt,{app:u},u.get().id))})]}):f.jsxs(f.Fragment,{children:[f.jsx(o,{}),f.jsxs($1,{children:["You don't have any apps with access to this API",f.jsx(Q.Button,{onClick:a,children:"Request access"})]})]})}const wnt=T.div`
|
|
5228
|
+
`;function Snt(){const[t,e]=$.useState(""),{apps:{apps:r,apiId:n,appsLoadingState:i}}=gt(),{MobileHeader:o}=Qs(),{sendEvent:s}=st(),a=()=>{window.open("/apps","_blank"),s("credential.management",[{action:"request_access_clicked"}])};$.useEffect(()=>((i.get()===as.Idle||i.get()===as.Error)&&(i.set(as.Loading),Sa(`/api/api-keys/api-products/${n.get()}/access?expand=0`).then(u=>u.json().then(d=>{u.ok?(r.set(d.apps||[]),i.set(as.Success)):i.set(as.Error)}).catch(()=>i.set(as.Error)))),()=>{r.set([]),i.set(as.Idle)}),[n]);const l=$.useMemo(()=>r.filter(u=>u.title.get().toLowerCase().includes(t.toLowerCase())),[t,r]),c=u=>{e(u)};return i.get()===as.Loading?f.jsx(Pnt,{children:f.jsx(Q.SpinnerIcon,{size:"24px",color:"--icon-color-additional"})}):r.length?f.jsxs(wnt,{children:[f.jsx(o,{}),f.jsx(iee,{children:f.jsx(GG,{value:t,onSearch:c})}),f.jsx(C1,{children:l.map(u=>f.jsx(ynt,{app:u},u.get().id))})]}):f.jsxs(f.Fragment,{children:[f.jsx(o,{}),f.jsxs($1,{children:["You don't have any apps with access to this API",f.jsx(Q.Button,{onClick:a,children:"Request access"})]})]})}const wnt=T.div`
|
|
5229
5229
|
display: flex;
|
|
5230
5230
|
flex-direction: column;
|
|
5231
5231
|
width: 100%;
|
|
@@ -5293,7 +5293,7 @@ Please report this to https://github.com/markedjs/marked.`,t){const i="<p>An err
|
|
|
5293
5293
|
`,jnt=T.div`
|
|
5294
5294
|
display: flex;
|
|
5295
5295
|
gap: var(--spacing-xs);
|
|
5296
|
-
`;async function oee(t,e,r){try{const{join:n,dirname:i}=await Promise.resolve().then(()=>pCe),{exists:o}=await Promise.resolve().then(()=>fCe),{revealItemInDir:s,openPath:a}=await Promise.resolve().then(()=>require("./replay-index-
|
|
5296
|
+
`;async function oee(t,e,r){try{const{join:n,dirname:i}=await Promise.resolve().then(()=>pCe),{exists:o}=await Promise.resolve().then(()=>fCe),{revealItemInDir:s,openPath:a}=await Promise.resolve().then(()=>require("./replay-index-BLnEGhe2.js")),l=await n(t,e);if(r||!await o(l)){const c=await i(l);await a(c);return}await s(l)}catch(n){throw console.error("Failed to reveal item in folder:",n),n}}function Qnt({node:t}){const e=t.data.type==="api"&&t.data.api.srcType.get()===Hn.WEB,{project:r}=gt(),n=$.useMemo(()=>Da(),[]),{sendEvent:i}=st();if(e)return null;const o=()=>{t.tree.delete(t.id)},s=async a=>{a.stopPropagation();try{if(t.data.type==="api"){const l=t.data.api.id.get({noproxy:!0}),c=r.userFilesDir.get({noproxy:!0});await oee(c,l),i("node.management",[{action:"reveal_in_folder",node_type:"api"}])}}catch(l){console.error("Failed to reveal API in folder:",l)}};return f.jsx(Dnt,{children:f.jsx(sr,{content:"More actions",placement:"topRight",children:f.jsx(Q.Dropdown,{trigger:f.jsx(Q.Button,{variant:"text",size:"small",icon:f.jsx(Q.OverflowMenuVerticalIcon,{})}),alignment:"end",children:f.jsxs(Q.DropdownMenu,{children:[n&&f.jsxs(qn,{onClick:s,children:[f.jsx(Q.FolderIcon,{size:"14px"}),"Reveal in folder"]}),f.jsxs(qn,{onClick:o,children:[f.jsx(Q.TrashCanIcon,{size:"14px"}),"Delete"]})]})})})})}const Dnt=T.div`
|
|
5297
5297
|
display: flex;
|
|
5298
5298
|
gap: var(--spacing-xxs);
|
|
5299
5299
|
`;function Nnt({onImport:t}){return f.jsxs(Mnt,{children:[f.jsx(qnt,{children:"No OpenAPI files were imported yet"}),f.jsx(znt,{children:f.jsx(Q.Button,{icon:f.jsx(Q.DownloadIcon,{}),onClick:t,children:"Import OpenAPI file"})})]})}const Mnt=T.div`
|
|
@@ -5355,7 +5355,7 @@ Please report this to https://github.com/markedjs/marked.`,t){const i="<p>An err
|
|
|
5355
5355
|
align-items: center;
|
|
5356
5356
|
justify-content: center;
|
|
5357
5357
|
gap: var(--spacing-xs);
|
|
5358
|
-
`;function nit({node:t}){const{sendEvent:e}=st(),{project:r}=gt(),n=$.useMemo(()=>Da(),[]),i=a=>{a.stopPropagation(),t.tree.create({parentId:t.id,index:t.children?.length}),e("node.management",{action:"creation_started",node_type:"workflow"})},o=async a=>{a.stopPropagation();try{const l=t.data.collection.id.get({noproxy:!0}),c=r.userFilesDir.get({noproxy:!0}),u=t.data.isDraft;await oee(c,l,u),e("node.management",{action:"reveal_in_folder",node_type:"collection"})}catch(l){console.error("Failed to reveal collection in folder:",l)}},s=a=>{a.stopPropagation(),t.tree.delete(t.id),e("node.management",{action:"removed",node_type:"collection"})};return f.jsxs(iit,{children:[f.jsx(sr,{content:"New Workflow",placement:"topRight",children:f.jsx(Q.Button,{variant:"text",size:"small",icon:f.jsx(Q.AddIcon,{}),onClick:i})}),f.jsx(sr,{content:"More actions",placement:"topRight",children:f.jsx(Q.Dropdown,{trigger:f.jsx(Q.Button,{variant:"text",size:"small",icon:f.jsx(Q.OverflowMenuVerticalIcon,{})}),alignment:"end",children:f.jsxs(Q.DropdownMenu,{children:[f.jsxs(qn,{onClick:i,children:[f.jsx(Q.AddIcon,{size:"14px"}),"New Workflow"]}),f.jsxs(qn,{onClick:a=>{a.stopPropagation(),e("node.management",{action:"editing_started",node_type:"collection"}),t.edit()},children:[f.jsx(Q.EditIcon,{size:"14px"}),"Rename"]}),n&&f.jsxs(qn,{onClick:o,children:[f.jsx(Q.FolderIcon,{size:"14px"}),"Reveal in folder"]}),f.jsxs(qn,{onClick:s,children:[f.jsx(Q.TrashCanIcon,{size:"14px"}),"Delete"]})]})})})]})}const iit=T.div`
|
|
5358
|
+
`;function nit({node:t}){const{sendEvent:e}=st(),{project:r}=gt(),n=$.useMemo(()=>Da(),[]),i=a=>{a.stopPropagation(),t.tree.create({parentId:t.id,index:t.children?.length}),e("node.management",[{action:"creation_started",node_type:"workflow"}])},o=async a=>{a.stopPropagation();try{const l=t.data.collection.id.get({noproxy:!0}),c=r.userFilesDir.get({noproxy:!0}),u=t.data.isDraft;await oee(c,l,u),e("node.management",[{action:"reveal_in_folder",node_type:"collection"}])}catch(l){console.error("Failed to reveal collection in folder:",l)}},s=a=>{a.stopPropagation(),t.tree.delete(t.id),e("node.management",[{action:"removed",node_type:"collection"}])};return f.jsxs(iit,{children:[f.jsx(sr,{content:"New Workflow",placement:"topRight",children:f.jsx(Q.Button,{variant:"text",size:"small",icon:f.jsx(Q.AddIcon,{}),onClick:i})}),f.jsx(sr,{content:"More actions",placement:"topRight",children:f.jsx(Q.Dropdown,{trigger:f.jsx(Q.Button,{variant:"text",size:"small",icon:f.jsx(Q.OverflowMenuVerticalIcon,{})}),alignment:"end",children:f.jsxs(Q.DropdownMenu,{children:[f.jsxs(qn,{onClick:i,children:[f.jsx(Q.AddIcon,{size:"14px"}),"New Workflow"]}),f.jsxs(qn,{onClick:a=>{a.stopPropagation(),e("node.management",[{action:"editing_started",node_type:"collection"}]),t.edit()},children:[f.jsx(Q.EditIcon,{size:"14px"}),"Rename"]}),n&&f.jsxs(qn,{onClick:o,children:[f.jsx(Q.FolderIcon,{size:"14px"}),"Reveal in folder"]}),f.jsxs(qn,{onClick:s,children:[f.jsx(Q.TrashCanIcon,{size:"14px"}),"Delete"]})]})})})]})}const iit=T.div`
|
|
5359
5359
|
display: flex;
|
|
5360
5360
|
gap: var(--spacing-xxs);
|
|
5361
5361
|
`;var Sn=(t=>(t.Connected="connected",t.Disconnected="disconnected",t.Invalid="invalid",t))(Sn||{});function oit(t,e){return e?Sn.Connected:t.operation.ornull?Sn.Invalid:Sn.Disconnected}function sit(t){return t===Sn.Connected}function ait(t){const e=t.operation.get();if(!e)return;let r=t.operation.ornull?.operationId.get()??e.operationId;return!r&&e.method&&e.path&&(r=`${e.method.toUpperCase()} ${e.path}`),r}const lit=t=>f.jsxs("svg",{viewBox:"0 0 14 14",fill:"none",...t,children:[f.jsx("path",{d:"M5.6853 9.18726H3.4978C2.91764 9.18726 2.36124 8.95679 1.95101 8.54655C1.54077 8.13632 1.3103 7.57992 1.3103 6.99976C1.3103 6.4196 1.54077 5.8632 1.95101 5.45296C2.36124 5.04272 2.91764 4.81226 3.4978 4.81226H5.6853C5.80134 4.81226 5.91262 4.76616 5.99466 4.68412C6.07671 4.60207 6.1228 4.49079 6.1228 4.37476C6.1228 4.25872 6.07671 4.14744 5.99466 4.0654C5.91262 3.98335 5.80134 3.93726 5.6853 3.93726H3.4978C2.68558 3.93726 1.90662 4.25991 1.33229 4.83424C0.757958 5.40857 0.435303 6.18753 0.435303 6.99976C0.435303 7.81198 0.757958 8.59094 1.33229 9.16527C1.90662 9.7396 2.68558 10.0623 3.4978 10.0623H5.6853C5.80134 10.0623 5.91262 10.0162 5.99466 9.93411C6.07671 9.85207 6.1228 9.74079 6.1228 9.62476C6.1228 9.50872 6.07671 9.39744 5.99466 9.3154C5.91262 9.23335 5.80134 9.18726 5.6853 9.18726ZM10.4982 3.93726H8.31068C8.19464 3.93726 8.08336 3.98335 8.00132 4.0654C7.91927 4.14744 7.87318 4.25872 7.87318 4.37476C7.87318 4.49079 7.91927 4.60207 8.00132 4.68412C8.08336 4.76616 8.19464 4.81226 8.31068 4.81226H10.4982C11.0783 4.81226 11.6347 5.04272 12.045 5.45296C12.4552 5.8632 12.6857 6.4196 12.6857 6.99976C12.6857 7.57992 12.4552 8.13632 12.045 8.54655C11.6347 8.95679 11.0783 9.18726 10.4982 9.18726H8.31068C8.19464 9.18726 8.08336 9.23335 8.00132 9.3154C7.91927 9.39744 7.87318 9.50872 7.87318 9.62476C7.87318 9.74079 7.91927 9.85207 8.00132 9.93411C8.08336 10.0162 8.19464 10.0623 8.31068 10.0623H10.4982C11.3104 10.0623 12.0894 9.7396 12.6637 9.16527C13.238 8.59094 13.5607 7.81198 13.5607 6.99976C13.5607 6.18753 13.238 5.40857 12.6637 4.83424C12.0894 4.25991 11.3104 3.93726 10.4982 3.93726Z",fill:"currentColor"}),f.jsx("path",{d:"M7.87318 5.5813C7.98919 5.5813 8.10046 5.62745 8.1825 5.70947C8.26455 5.79152 8.31068 5.90277 8.31068 6.0188C8.31062 6.13476 8.2645 6.24612 8.1825 6.32813L7.56385 6.94678L8.1825 7.56543C8.26449 7.64741 8.31061 7.75882 8.31068 7.87476C8.31068 7.99077 8.26453 8.10204 8.1825 8.18408C8.10046 8.26613 7.98921 8.31226 7.87318 8.31226C7.75722 8.3122 7.64585 8.26608 7.56385 8.18408L6.9452 7.56543L6.32655 8.18408C6.2445 8.26611 6.13324 8.31226 6.01722 8.31226C5.90121 8.31224 5.78993 8.26611 5.70789 8.18408C5.62587 8.10204 5.57972 7.99077 5.57972 7.87476C5.57972 7.75874 5.62587 7.64747 5.70789 7.56543L6.32655 6.94678L5.70789 6.32813C5.62587 6.24608 5.57972 6.13482 5.57972 6.0188C5.57974 5.90279 5.62586 5.7915 5.70789 5.70947C5.78994 5.62745 5.9012 5.5813 6.01722 5.5813C6.13324 5.5813 6.2445 5.62745 6.32655 5.70947L6.9452 6.32813L7.56385 5.70947C7.64584 5.62749 7.75724 5.58137 7.87318 5.5813Z",fill:"currentColor"})]}),cit=T(lit)`
|
|
@@ -5378,7 +5378,7 @@ Please report this to https://github.com/markedjs/marked.`,t){const i="<p>An err
|
|
|
5378
5378
|
flex-shrink: 0;
|
|
5379
5379
|
`,hit=T(dit).attrs(()=>({size:"14px"}))`
|
|
5380
5380
|
flex-shrink: 0;
|
|
5381
|
-
`;function git(t){switch(t){case Sn.Connected:return f.jsx(fit,{color:VP[Sn.Connected]});case Sn.Invalid:return f.jsx(pit,{color:VP[Sn.Invalid]});case Sn.Disconnected:default:return f.jsx(hit,{color:VP[Sn.Disconnected]})}}function mit({step:t,apiOperation:e,collectionId:r}){const n=$.useRef(null),[i,o]=$.useState(!1),{isOpen:s,handleOpen:a,handleClose:l}=La(),[c,u]=$.useState({top:0,left:0}),{sendEvent:d}=st(),p=oit(t,e),h=$.useCallback(()=>{if(n.current){const v=n.current.getBoundingClientRect();u({top:v.bottom+4,left:v.left})}},[]),m=()=>{h(),o(!0)},g=()=>{o(!1)},O=v=>{v.stopPropagation(),d("button.click",{source:"collections",action:"manage_connection",type:p}),a(),o(!1)},y=$.useMemo(()=>{switch(p){case Sn.Connected:return[{text:`Connected to "${e?.name}" from API description.`},{text:"Click to manage connection",isDescription:!0}];case Sn.Invalid:{const v=ait(t);return[{text:v?`Invalid API operation. Could not resolve api operation "${v}".`:"Invalid API operation."},{text:"Click to reconnect",isDescription:!0}]}case Sn.Disconnected:default:return[{text:"Not connected to API operation."},{text:"Click to connect operation",isDescription:!0}]}},[p,e?.name,t]);return f.jsxs(f.Fragment,{children:[f.jsx(yit,{ref:n,$connected:sit(p),onMouseEnter:m,onMouseLeave:g,onClick:O,onMouseDown:v=>v.stopPropagation(),children:git(p)}),i&&f.jsx(Q.Portal,{children:f.jsx(Oit,{style:{top:c.top,left:c.left},children:f.jsx(oH,{children:f.jsx(iH,{messages:y})})})}),s&&f.jsx(wI,{step:t,collectionId:r,onClose:l})]})}const Oit=T.div`
|
|
5381
|
+
`;function git(t){switch(t){case Sn.Connected:return f.jsx(fit,{color:VP[Sn.Connected]});case Sn.Invalid:return f.jsx(pit,{color:VP[Sn.Invalid]});case Sn.Disconnected:default:return f.jsx(hit,{color:VP[Sn.Disconnected]})}}function mit({step:t,apiOperation:e,collectionId:r}){const n=$.useRef(null),[i,o]=$.useState(!1),{isOpen:s,handleOpen:a,handleClose:l}=La(),[c,u]=$.useState({top:0,left:0}),{sendEvent:d}=st(),p=oit(t,e),h=$.useCallback(()=>{if(n.current){const v=n.current.getBoundingClientRect();u({top:v.bottom+4,left:v.left})}},[]),m=()=>{h(),o(!0)},g=()=>{o(!1)},O=v=>{v.stopPropagation(),d("button.click",[{source:"collections",action:"manage_connection",type:p}]),a(),o(!1)},y=$.useMemo(()=>{switch(p){case Sn.Connected:return[{text:`Connected to "${e?.name}" from API description.`},{text:"Click to manage connection",isDescription:!0}];case Sn.Invalid:{const v=ait(t);return[{text:v?`Invalid API operation. Could not resolve api operation "${v}".`:"Invalid API operation."},{text:"Click to reconnect",isDescription:!0}]}case Sn.Disconnected:default:return[{text:"Not connected to API operation."},{text:"Click to connect operation",isDescription:!0}]}},[p,e?.name,t]);return f.jsxs(f.Fragment,{children:[f.jsx(yit,{ref:n,$connected:sit(p),onMouseEnter:m,onMouseLeave:g,onClick:O,onMouseDown:v=>v.stopPropagation(),children:git(p)}),i&&f.jsx(Q.Portal,{children:f.jsx(Oit,{style:{top:c.top,left:c.left},children:f.jsx(oH,{children:f.jsx(iH,{messages:y})})})}),s&&f.jsx(wI,{step:t,collectionId:r,onClose:l})]})}const Oit=T.div`
|
|
5382
5382
|
position: fixed;
|
|
5383
5383
|
z-index: var(--z-index-surface);
|
|
5384
5384
|
pointer-events: none;
|
|
@@ -5413,7 +5413,7 @@ Please report this to https://github.com/markedjs/marked.`,t){const i="<p>An err
|
|
|
5413
5413
|
overflow: hidden;
|
|
5414
5414
|
text-overflow: ellipsis;
|
|
5415
5415
|
white-space: nowrap;
|
|
5416
|
-
`;function wit({node:t}){const{sendEvent:e}=st(),r=n=>{n.stopPropagation(),t.tree.delete(t.id),e("node.management",{action:"removed",node_type:"step"})};return f.jsxs(Pit,{children:[f.jsx(sr,{content:"Rename",placement:"topRight",children:f.jsx(Q.Button,{variant:"text",size:"small",onClick:n=>{n.stopPropagation(),e("node.management",{action:"editing_started",node_type:"step"}),t.edit()},icon:f.jsx(Q.EditIcon,{})})}),f.jsx(sr,{content:"Delete",placement:"topRight",children:f.jsx(Q.Button,{variant:"text",size:"small",onClick:r,icon:f.jsx(Q.TrashCanIcon,{color:"--color-error-base"})})})]})}const Pit=T.div`
|
|
5416
|
+
`;function wit({node:t}){const{sendEvent:e}=st(),r=n=>{n.stopPropagation(),t.tree.delete(t.id),e("node.management",[{action:"removed",node_type:"step"}])};return f.jsxs(Pit,{children:[f.jsx(sr,{content:"Rename",placement:"topRight",children:f.jsx(Q.Button,{variant:"text",size:"small",onClick:n=>{n.stopPropagation(),e("node.management",[{action:"editing_started",node_type:"step"}]),t.edit()},icon:f.jsx(Q.EditIcon,{})})}),f.jsx(sr,{content:"Delete",placement:"topRight",children:f.jsx(Q.Button,{variant:"text",size:"small",onClick:r,icon:f.jsx(Q.TrashCanIcon,{color:"--color-error-base"})})})]})}const Pit=T.div`
|
|
5417
5417
|
display: flex;
|
|
5418
5418
|
gap: var(--spacing-xxs);
|
|
5419
5419
|
`;function Cit({node:t}){const{summary:e,workflowId:r}=t.data.workflow.get();return f.jsx($it,{children:f.jsx(kit,{borderless:!0,icon:f.jsx(Q.WorkflowHierarchyIcon,{size:"12px"}),children:e||r||f.jsx(Tit,{children:"Untitled Workflow"})})})}const $it=T.div`
|
|
@@ -5440,7 +5440,7 @@ Please report this to https://github.com/markedjs/marked.`,t){const i="<p>An err
|
|
|
5440
5440
|
overflow: hidden;
|
|
5441
5441
|
text-overflow: ellipsis;
|
|
5442
5442
|
white-space: nowrap;
|
|
5443
|
-
`;function Eit({node:t}){const{openWorkflowRunTab:e}=dn(),{sendEvent:r}=st(),n=s=>{s.stopPropagation(),t.tree.create({parentId:t.id,index:t.children?.length}),r("node.management",{action:"creation_started",node_type:"step"})},i=s=>{s.stopPropagation(),e({collectionId:t.data.collectionId,workflowId:t.data.workflowId})},o=s=>{s.stopPropagation(),t.tree.delete(t.id),r("node.management",{action:"removed",node_type:"workflow"})};return f.jsxs(Ait,{children:[t.data.workflow.steps.length>0&&f.jsx(sr,{content:"Run Workflow",placement:"topRight",children:f.jsx(Q.Button,{variant:"text",size:"small",icon:f.jsx(Q.PlayIcon,{}),onClick:i})}),f.jsx(sr,{content:"New Step",placement:"topRight",children:f.jsx(Q.Button,{variant:"text",size:"small",icon:f.jsx(Q.DocumentAddIcon,{}),onClick:n})}),f.jsx(sr,{content:"More actions",placement:"topRight",children:f.jsx(Q.Dropdown,{trigger:f.jsx(Q.Button,{variant:"text",size:"small",icon:f.jsx(Q.OverflowMenuVerticalIcon,{})}),alignment:"end",children:f.jsxs(Q.DropdownMenu,{children:[f.jsxs(qn,{onClick:n,children:[f.jsx(Q.DocumentAddIcon,{size:"14px"}),"New Step"]}),f.jsxs(qn,{onClick:s=>{s.stopPropagation(),r("node.management",{action:"editing_started",node_type:"workflow"}),t.edit()},children:[f.jsx(Q.EditIcon,{size:"14px"}),"Rename"]}),f.jsxs(qn,{onClick:o,children:[f.jsx(Q.TrashCanIcon,{size:"14px"}),"Delete"]})]})})})]})}const Ait=T.div`
|
|
5443
|
+
`;function Eit({node:t}){const{openWorkflowRunTab:e}=dn(),{sendEvent:r}=st(),n=s=>{s.stopPropagation(),t.tree.create({parentId:t.id,index:t.children?.length}),r("node.management",[{action:"creation_started",node_type:"step"}])},i=s=>{s.stopPropagation(),e({collectionId:t.data.collectionId,workflowId:t.data.workflowId})},o=s=>{s.stopPropagation(),t.tree.delete(t.id),r("node.management",[{action:"removed",node_type:"workflow"}])};return f.jsxs(Ait,{children:[t.data.workflow.steps.length>0&&f.jsx(sr,{content:"Run Workflow",placement:"topRight",children:f.jsx(Q.Button,{variant:"text",size:"small",icon:f.jsx(Q.PlayIcon,{}),onClick:i})}),f.jsx(sr,{content:"New Step",placement:"topRight",children:f.jsx(Q.Button,{variant:"text",size:"small",icon:f.jsx(Q.DocumentAddIcon,{}),onClick:n})}),f.jsx(sr,{content:"More actions",placement:"topRight",children:f.jsx(Q.Dropdown,{trigger:f.jsx(Q.Button,{variant:"text",size:"small",icon:f.jsx(Q.OverflowMenuVerticalIcon,{})}),alignment:"end",children:f.jsxs(Q.DropdownMenu,{children:[f.jsxs(qn,{onClick:n,children:[f.jsx(Q.DocumentAddIcon,{size:"14px"}),"New Step"]}),f.jsxs(qn,{onClick:s=>{s.stopPropagation(),r("node.management",[{action:"editing_started",node_type:"workflow"}]),t.edit()},children:[f.jsx(Q.EditIcon,{size:"14px"}),"Rename"]}),f.jsxs(qn,{onClick:o,children:[f.jsx(Q.TrashCanIcon,{size:"14px"}),"Delete"]})]})})})]})}const Ait=T.div`
|
|
5444
5444
|
display: flex;
|
|
5445
5445
|
gap: var(--spacing-xxs);
|
|
5446
5446
|
`;function Iit({node:t}){return f.jsxs(Rit,{children:[f.jsx(Jx,{size:"14px"}),f.jsx(_it,{title:t.data.name,children:t.data.name||f.jsx(jit,{children:"Untitled Collection"})})]})}const Rit=T.div`
|
|
@@ -5462,7 +5462,7 @@ Please report this to https://github.com/markedjs/marked.`,t){const i="<p>An err
|
|
|
5462
5462
|
min-width: 0;
|
|
5463
5463
|
`,jit=T.div`
|
|
5464
5464
|
color: var(--text-color-description);
|
|
5465
|
-
`;var Qit=(t,e,r)=>{let n="";for(;t.length>0;){const i=t.match(e);i&&i.index!=null&&i[0]!=null?(n+=t.slice(0,i.index),n+=r(i),t=t.slice(i.index+i[0].length)):(n+=t,t="")}return n},Dit=(t="")=>{const e=[];let r="";return Qit(t,/\s*(?:([^\s\\'"]+)|'((?:[^'\\]|\\.)*)'|"((?:[^"\\]|\\.)*)"|(\\.?)|(\S))(\s|$)?/,n=>{const[i,o,s,a,l,c,u]=n;if(c!=null)throw new Error(`Unmatched quote: ${t}`);if(o)r+=o;else{let d;s?d=s:a?d=a:l&&(d=l),d&&(r+=d.replace(/\\(?=.)/,""))}u!=null&&(e.push(r),r="")}),r&&e.push(r),e};function Nit(t){const e=Mit(),r=qit(t);if(r)return e.error=r,e;const n=zit(t);if(n.error)return e.error=n.error,e;const i=Lit(n.args);if(e.method=i.method,e.url=i.url,e.body=i.body,e.security=i.security,i.error)return e.error=i.error,e;const o=Wit(e,i.headerMap,i.potentialInvalidUrl);return o&&(e.error=o),e}function Mit(){return{method:"GET",url:"",headers:[],queryParams:[],cookies:[],body:"",contentType:"",security:[],error:null}}function qit(t){return t.indexOf("curl ")!=0?'Invalid curl command: command must start with "curl "':null}function zit(t){try{return{args:Uit(Dit(t)),error:null}}catch(e){return{args:[],error:`Failed to parse curl command: ${e instanceof Error?e.message:"Invalid shell syntax"}`}}}function Lit(t){const e=["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"],r={};let n="",i=!1,o=!1,s=null,a=null,l="GET",c="",u="";const d=[];for(let p=0;p<t.length;p++){const h=t[p];if(a)break;const m=Vit(h,n,r,e,l,i,o,s,u,d);n=m.state,l=m.method,i=m.methodExplicitlySet,o=m.hasData,s=m.potentialInvalidUrl,u=m.body,a=m.error,m.url&&(c=m.url)}return!a&&n!==""&&(a={"user-agent":"Missing value for user-agent (-A/--user-agent)",header:"Missing value for header (-H/--header)",data:"Missing value for data (-d/--data)",user:"Missing value for user authentication (-u/--user)",method:"Missing HTTP method for -X/--request",cookie:"Missing value for cookie (-b/--cookie)"}[n]||"Incomplete curl command argument"),o&&!i&&(l=="GET"||l=="HEAD")&&(l="POST"),{method:l,url:c,headers:[],queryParams:[],cookies:[],body:u,contentType:"",security:d,error:a,headerMap:r,methodExplicitlySet:i,hasData:o,potentialInvalidUrl:s}}function Vit(t,e,r,n,i,o,s,a,l,c){const u={state:e,method:i,methodExplicitlySet:o,hasData:s,potentialInvalidUrl:a,body:l,error:null};switch(!0){case uee(t):u.url=t;break;case(t=="-A"||t=="--user-agent"):u.state="user-agent";break;case(t=="-H"||t=="--header"):u.state="header";break;case(t=="-d"||t=="--data"||t=="--data-ascii"):u.state="data";break;case(t=="-u"||t=="--user"):u.state="user";break;case(t=="-I"||t=="--head"):u.method="HEAD",u.methodExplicitlySet=!0;break;case(t=="-X"||t=="--request"):u.state="method";break;case(t=="-b"||t=="--cookie"):u.state="cookie";break;case t=="--compressed":r["Accept-Encoding"]=r["Accept-Encoding"]||"deflate, gzip";break;default:const d=Xit(t,e,r,n,i,o,s,a,l,c);Object.assign(u,d);break}return u}function Xit(t,e,r,n,i,o,s,a,l,c){const u={state:e,method:i,methodExplicitlySet:o,hasData:s,potentialInvalidUrl:a,body:l,error:null};if(e==="cookie")return r.Cookie=t||"",u.state="",u;if(e==="data")return u.hasData=!0,r["Content-Type"]=r["Content-Type"]||"application/x-www-form-urlencoded",u.body=l?l+"&"+(t||""):t||"",u.state="",u;if(e==="header"){const d=Bit(t);return d.length<2||!d[0]?(u.error=`Invalid header format: "${t}". Expected format: "Header-Name: header-value"`,u):(r[d[0]]=d[1]||"",u.state="",u)}if(t)switch(e){case"user-agent":r["User-Agent"]=t,u.state="";break;case"user":const d=t.indexOf(":"),p=d!==-1?t.slice(0,d):t,h=d!==-1?t.slice(d+1):"",m=Lo();m.securityType=ve.BasicAuth,m[ve.BasicAuth].username=p,m[ve.BasicAuth].password=h,c.push(m),u.state="";break;case"method":const g=t.toUpperCase();if(!n.includes(g)){u.method=g,u.error=`Invalid HTTP method: "${t}". Valid methods are: ${n.join(", ")}`;break}u.method=g,u.methodExplicitlySet=!0,u.state="";break;default:t!=="curl"&&!t.startsWith("-")&&!uee(t)&&!n.includes(t.toUpperCase())&&(u.potentialInvalidUrl=t);break}return u}function Wit(t,e,r){const n=Object.keys(e).find(s=>s.toLowerCase()==="cookie");n&&(t.cookies=Fit(e[n]),delete e[n]),t.headers=Object.keys(e).map(s=>({id:crypto.randomUUID(),key:s,value:e[s],in:"header",active:!0}));const i=t.headers.find(s=>s.key.toLowerCase()==="content-type");if(i&&(t.contentType=i.value),!t.url)return r?`Invalid URL: "${r}"`:"Missing URL in curl command";try{new URL(t.url).searchParams.forEach((a,l)=>{t.queryParams.push({id:crypto.randomUUID(),key:l,value:a,in:"query",active:!0})})}catch(s){return`Invalid URL: "${t.url}". ${s instanceof Error?s.message:"URL format is invalid"}`}const o=["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"];return o.includes(t.method)?null:`Invalid HTTP method: "${t.method}". Valid methods are: ${o.join(", ")}`}function Uit(t){return t.reduce(function(e,r){return r.indexOf("-X")==0?(e.push("-X"),e.push(r.slice(2))):e.push(r),e},[])}function Bit(t){const e=t.indexOf(":");return e===-1?[t]:[t.slice(0,e),t.slice(e+1).trimStart()]}function uee(t){return/^https?:\/\//.test(t)}function Fit(t){if(!t)return[];const e=t.split(";").map(n=>n.trim()),r=[];for(const n of e){if(!n)continue;const i=n.indexOf("=");if(i===-1)continue;const o=n.slice(0,i).trim(),s=n.slice(i+1).trim();o&&r.push({id:crypto.randomUUID(),key:o,value:s,in:"cookie",active:!0})}return r}function tz(t){const e=Nit(t);if(e.error)return{step:ef(),error:e.error};const r=ef();return e.security&&e.security.length>0&&(r.security=e.security),r.xOperation={method:e.method,url:e.url},r.parameters.headers=[...e.headers,yr("header")],r.parameters.queryParameters=[...e.queryParams,yr("query")],r.parameters.cookies=[...e.cookies,yr("cookie")],e.body&&(r.requestBody.type=e.contentType||on.Text,r.requestBody.content=e.body),{step:r,error:null}}function Zit({isOpen:t,onClose:e,onImport:r}){const{sendEvent:n}=st(),[i,o]=$.useState(""),[s,a]=$.useState(null),l=$.useCallback(h=>{if(o(h),h.trim()){const{error:m}=tz(h);a(m)}else a(null)},[]),c=$.useCallback(()=>{if(!i.trim()||s)return;const{step:h,error:m}=tz(i);if(m){a(m);return}n("button.click",{source:"import_curl_modal",action:"import"}),r(h),o(""),a(null),e()},[i,s,r,e,n]),u=$.useCallback(()=>{o(""),a(null),e()},[e]),d=i.trim()&&!s,p=$.useMemo(()=>L8("curl https://api.example.com/users"),[]);return f.jsx(Qa,{title:"Import from curl",isOpen:t,onClose:u,content:f.jsxs(f.Fragment,{children:[f.jsx(Yit,{children:"Paste your curl command to create a new request"}),f.jsx(Git,{children:f.jsx(_a,{value:i,onChange:l,basicSetup:{lineNumbers:!1,foldGutter:!1,autocompletion:!1},extensions:[p,_x.define(bJ),Qe.lineWrapping]})}),s&&f.jsxs(Jit,{children:[f.jsx(Q.ErrorIcon,{size:"16px",color:"var(--color-error-active)"}),f.jsx(Kit,{children:s})]}),f.jsx(Hit,{children:f.jsxs(eot,{children:[f.jsx(Q.Button,{variant:"outlined",onClick:u,children:"Cancel"}),f.jsx(Q.Button,{variant:"primary",onClick:c,disabled:!d,children:"Import"})]})})]})})}const Yit=T.p`
|
|
5465
|
+
`;var Qit=(t,e,r)=>{let n="";for(;t.length>0;){const i=t.match(e);i&&i.index!=null&&i[0]!=null?(n+=t.slice(0,i.index),n+=r(i),t=t.slice(i.index+i[0].length)):(n+=t,t="")}return n},Dit=(t="")=>{const e=[];let r="";return Qit(t,/\s*(?:([^\s\\'"]+)|'((?:[^'\\]|\\.)*)'|"((?:[^"\\]|\\.)*)"|(\\.?)|(\S))(\s|$)?/,n=>{const[i,o,s,a,l,c,u]=n;if(c!=null)throw new Error(`Unmatched quote: ${t}`);if(o)r+=o;else{let d;s?d=s:a?d=a:l&&(d=l),d&&(r+=d.replace(/\\(?=.)/,""))}u!=null&&(e.push(r),r="")}),r&&e.push(r),e};function Nit(t){const e=Mit(),r=qit(t);if(r)return e.error=r,e;const n=zit(t);if(n.error)return e.error=n.error,e;const i=Lit(n.args);if(e.method=i.method,e.url=i.url,e.body=i.body,e.security=i.security,i.error)return e.error=i.error,e;const o=Wit(e,i.headerMap,i.potentialInvalidUrl);return o&&(e.error=o),e}function Mit(){return{method:"GET",url:"",headers:[],queryParams:[],cookies:[],body:"",contentType:"",security:[],error:null}}function qit(t){return t.indexOf("curl ")!=0?'Invalid curl command: command must start with "curl "':null}function zit(t){try{return{args:Uit(Dit(t)),error:null}}catch(e){return{args:[],error:`Failed to parse curl command: ${e instanceof Error?e.message:"Invalid shell syntax"}`}}}function Lit(t){const e=["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"],r={};let n="",i=!1,o=!1,s=null,a=null,l="GET",c="",u="";const d=[];for(let p=0;p<t.length;p++){const h=t[p];if(a)break;const m=Vit(h,n,r,e,l,i,o,s,u,d);n=m.state,l=m.method,i=m.methodExplicitlySet,o=m.hasData,s=m.potentialInvalidUrl,u=m.body,a=m.error,m.url&&(c=m.url)}return!a&&n!==""&&(a={"user-agent":"Missing value for user-agent (-A/--user-agent)",header:"Missing value for header (-H/--header)",data:"Missing value for data (-d/--data)",user:"Missing value for user authentication (-u/--user)",method:"Missing HTTP method for -X/--request",cookie:"Missing value for cookie (-b/--cookie)"}[n]||"Incomplete curl command argument"),o&&!i&&(l=="GET"||l=="HEAD")&&(l="POST"),{method:l,url:c,headers:[],queryParams:[],cookies:[],body:u,contentType:"",security:d,error:a,headerMap:r,methodExplicitlySet:i,hasData:o,potentialInvalidUrl:s}}function Vit(t,e,r,n,i,o,s,a,l,c){const u={state:e,method:i,methodExplicitlySet:o,hasData:s,potentialInvalidUrl:a,body:l,error:null};switch(!0){case uee(t):u.url=t;break;case(t=="-A"||t=="--user-agent"):u.state="user-agent";break;case(t=="-H"||t=="--header"):u.state="header";break;case(t=="-d"||t=="--data"||t=="--data-ascii"):u.state="data";break;case(t=="-u"||t=="--user"):u.state="user";break;case(t=="-I"||t=="--head"):u.method="HEAD",u.methodExplicitlySet=!0;break;case(t=="-X"||t=="--request"):u.state="method";break;case(t=="-b"||t=="--cookie"):u.state="cookie";break;case t=="--compressed":r["Accept-Encoding"]=r["Accept-Encoding"]||"deflate, gzip";break;default:const d=Xit(t,e,r,n,i,o,s,a,l,c);Object.assign(u,d);break}return u}function Xit(t,e,r,n,i,o,s,a,l,c){const u={state:e,method:i,methodExplicitlySet:o,hasData:s,potentialInvalidUrl:a,body:l,error:null};if(e==="cookie")return r.Cookie=t||"",u.state="",u;if(e==="data")return u.hasData=!0,r["Content-Type"]=r["Content-Type"]||"application/x-www-form-urlencoded",u.body=l?l+"&"+(t||""):t||"",u.state="",u;if(e==="header"){const d=Bit(t);return d.length<2||!d[0]?(u.error=`Invalid header format: "${t}". Expected format: "Header-Name: header-value"`,u):(r[d[0]]=d[1]||"",u.state="",u)}if(t)switch(e){case"user-agent":r["User-Agent"]=t,u.state="";break;case"user":const d=t.indexOf(":"),p=d!==-1?t.slice(0,d):t,h=d!==-1?t.slice(d+1):"",m=Lo();m.securityType=ve.BasicAuth,m[ve.BasicAuth].username=p,m[ve.BasicAuth].password=h,c.push(m),u.state="";break;case"method":const g=t.toUpperCase();if(!n.includes(g)){u.method=g,u.error=`Invalid HTTP method: "${t}". Valid methods are: ${n.join(", ")}`;break}u.method=g,u.methodExplicitlySet=!0,u.state="";break;default:t!=="curl"&&!t.startsWith("-")&&!uee(t)&&!n.includes(t.toUpperCase())&&(u.potentialInvalidUrl=t);break}return u}function Wit(t,e,r){const n=Object.keys(e).find(s=>s.toLowerCase()==="cookie");n&&(t.cookies=Fit(e[n]),delete e[n]),t.headers=Object.keys(e).map(s=>({id:crypto.randomUUID(),key:s,value:e[s],in:"header",active:!0}));const i=t.headers.find(s=>s.key.toLowerCase()==="content-type");if(i&&(t.contentType=i.value),!t.url)return r?`Invalid URL: "${r}"`:"Missing URL in curl command";try{new URL(t.url).searchParams.forEach((a,l)=>{t.queryParams.push({id:crypto.randomUUID(),key:l,value:a,in:"query",active:!0})})}catch(s){return`Invalid URL: "${t.url}". ${s instanceof Error?s.message:"URL format is invalid"}`}const o=["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"];return o.includes(t.method)?null:`Invalid HTTP method: "${t.method}". Valid methods are: ${o.join(", ")}`}function Uit(t){return t.reduce(function(e,r){return r.indexOf("-X")==0?(e.push("-X"),e.push(r.slice(2))):e.push(r),e},[])}function Bit(t){const e=t.indexOf(":");return e===-1?[t]:[t.slice(0,e),t.slice(e+1).trimStart()]}function uee(t){return/^https?:\/\//.test(t)}function Fit(t){if(!t)return[];const e=t.split(";").map(n=>n.trim()),r=[];for(const n of e){if(!n)continue;const i=n.indexOf("=");if(i===-1)continue;const o=n.slice(0,i).trim(),s=n.slice(i+1).trim();o&&r.push({id:crypto.randomUUID(),key:o,value:s,in:"cookie",active:!0})}return r}function tz(t){const e=Nit(t);if(e.error)return{step:ef(),error:e.error};const r=ef();return e.security&&e.security.length>0&&(r.security=e.security),r.xOperation={method:e.method,url:e.url},r.parameters.headers=[...e.headers,yr("header")],r.parameters.queryParameters=[...e.queryParams,yr("query")],r.parameters.cookies=[...e.cookies,yr("cookie")],e.body&&(r.requestBody.type=e.contentType||on.Text,r.requestBody.content=e.body),{step:r,error:null}}function Zit({isOpen:t,onClose:e,onImport:r}){const{sendEvent:n}=st(),[i,o]=$.useState(""),[s,a]=$.useState(null),l=$.useCallback(h=>{if(o(h),h.trim()){const{error:m}=tz(h);a(m)}else a(null)},[]),c=$.useCallback(()=>{if(!i.trim()||s)return;const{step:h,error:m}=tz(i);if(m){a(m);return}n("button.click",[{source:"import_curl_modal",action:"import"}]),r(h),o(""),a(null),e()},[i,s,r,e,n]),u=$.useCallback(()=>{o(""),a(null),e()},[e]),d=i.trim()&&!s,p=$.useMemo(()=>L8("curl https://api.example.com/users"),[]);return f.jsx(Qa,{title:"Import from curl",isOpen:t,onClose:u,content:f.jsxs(f.Fragment,{children:[f.jsx(Yit,{children:"Paste your curl command to create a new request"}),f.jsx(Git,{children:f.jsx(_a,{value:i,onChange:l,basicSetup:{lineNumbers:!1,foldGutter:!1,autocompletion:!1},extensions:[p,_x.define(bJ),Qe.lineWrapping]})}),s&&f.jsxs(Jit,{children:[f.jsx(Q.ErrorIcon,{size:"16px",color:"var(--color-error-active)"}),f.jsx(Kit,{children:s})]}),f.jsx(Hit,{children:f.jsxs(eot,{children:[f.jsx(Q.Button,{variant:"outlined",onClick:u,children:"Cancel"}),f.jsx(Q.Button,{variant:"primary",onClick:c,disabled:!d,children:"Import"})]})})]})})}const Yit=T.p`
|
|
5466
5466
|
margin: 0 0 var(--spacing-base) 0;
|
|
5467
5467
|
color: var(--text-color-secondary);
|
|
5468
5468
|
font-size: var(--font-size-base);
|
|
@@ -5507,7 +5507,7 @@ Please report this to https://github.com/markedjs/marked.`,t){const i="<p>An err
|
|
|
5507
5507
|
display: flex;
|
|
5508
5508
|
justify-content: flex-end;
|
|
5509
5509
|
gap: var(--spacing-xs);
|
|
5510
|
-
`;function tot(){const{tabDataId:t}=wf(),{openStepTabFromCollection:e,openWorkflowTab:r,openCollectionTab:n,handleCloseByDataId:i,handleNewTabOpen:o,openStepTab:s}=dn(),{getExistingTab:a}=tu(),{collections:l}=gt(),c=$.useRef(null),{sendEvent:u}=st(),[d,p]=$.useState(""),h=l1(d,300),{handleNodeToggle:m,expandedTreeNodes:g}=aee("collections"),{isOpen:O,handleOpen:y,handleClose:v}=La(),b=$.useMemo(()=>l.map(F=>Jnt(F)).filter(Boolean),[l]),w=({dragNodes:F,parentNode:oe,index:q})=>{const M=F[0];if(M.data.type==="step"&&oe?.data.type==="workflow"){const U=M.data.step.get({noproxy:!0});if(M.parent?.data.id===oe.data.id){const z=M.childIndex,I=z<q?q-1:q;oe.data.workflow.steps.set(j=>(j.splice(z,1),j.splice(I,0,U),j))}else{const z=a({type:Ge.Step,collectionId:M.data.collectionId,workflowId:M.data.workflowId,stepId:M.data.stepId});z&&(z.data.collectionId.set(oe.data.collectionId),z.data.workflowId.set(oe.data.workflowId)),M.data.step.set(pt),oe.data.workflow.steps.set(I=>(I.splice(q,0,U),I))}}if(M.data.type==="workflow"&&oe?.data.type==="collection"){const U=M.data.workflow.get({noproxy:!0});if(M.parent?.data.id===oe.data.id){const z=M.childIndex,I=z<q?q-1:q;oe.data.collection.workflows.set(j=>(j.splice(z,1),j.splice(I,0,U),j))}else{const z=a({type:Ge.Workflow,collectionId:M.data.collectionId,workflowId:M.data.workflowId});z&&z.data.collectionId.set(oe.data.collectionId),M.data.workflow.set(pt),oe.data.collection.workflows.set(I=>(I.splice(q,0,U),I))}}},S=({name:F,node:oe})=>{switch(oe.data.type){case"collection":if(oe.data.collection.info.title.set(F),oe.data.isDraft){const U=KG({name:F,collections:l});oe.data.collection.merge({id:U,state:Mt.Normal}),u("node.management",{action:"creation_finished",node_type:"collection",name:F})}else u("node.management",{action:"editing_finished",node_type:"collection",name:F});break;case"workflow":if(oe.data.workflow.summary.set(F),oe.data.isDraft){const U=oe.parent,z=PG({name:F,collection:U.data.collection}),I=a({type:Ge.Workflow,collectionId:oe.data.collectionId,workflowId:oe.data.workflowId});I&&I.data.workflowId.set(z),oe.data.workflow.workflowId.set(z),oe.data.workflow.state.set(Mt.Normal),u("node.management",{action:"creation_finished",node_type:"workflow",name:F})}else u("node.management",{action:"editing_finished",node_type:"workflow",name:F});break;case"step":const q=a({type:Ge.Step,collectionId:oe.data.collectionId,workflowId:oe.data.workflowId,stepId:oe.data.stepId,historyId:null})?.data,M=F.replaceAll(" ","-");q&&q.stepId.set(M),oe.data.step.stepId.set(M),oe.data.isDraft?(oe.data.step.state.set(Mt.Normal),u("node.management",{action:"creation_finished",node_type:"step",name:F})):u("node.management",{action:"editing_finished",node_type:"step",name:F});break}},P=({parentNode:F,index:oe})=>{if(!F){const q=JG({collections:l,isDraft:!0});return l.set(M=>(M.splice(oe,0,q),M)),{id:q.id}}if(F.data.type==="collection"){const q=CG({collection:F.data.collection,isDraft:!0});return F.data.collection.workflows.set(M=>(M.splice(oe,0,q),M)),{id:`${F.data.collectionId}/${q.workflowId}`}}if(F.data.type==="workflow"){const q=ef({workflow:F.data.workflow,isDraft:!0});return F.data.workflow.steps.set(M=>(M.splice(oe,0,q),M)),{id:`${F.data.collectionId}/${F.data.workflowId}/${q.stepId}`}}return null},C=$.useCallback(F=>{i({collectionId:F.data.collectionId,workflowId:F.data.workflowId,stepId:F.data.stepId}),F.children&&F.children.forEach(oe=>C(oe))},[i]),E=$.useCallback(F=>{for(const oe of F)C(oe),oe.data.type==="collection"&&(oe.data.collection.set(pt),u("node.management",{action:"removed",node_type:"collection",name:oe.data.name})),oe.data.type==="workflow"&&(oe.data.workflow.set(pt),u("node.management",{action:"removed",node_type:"workflow",name:oe.data.name})),oe.data.type==="step"&&(oe.data.step.set(pt),u("node.management",{action:"removed",node_type:"step",name:oe.data.name}))},[u,C]),{onDelete:R,getDialogProps:D}=lee({shouldConfirm:F=>!F.data.isDraft,onDelete:E,getNodeTypeLabel:F=>F.data.type});function _({index:F}){c.current?.create({parentId:null,index:F}),u("node.management",{action:"creation_started",node_type:"collection"})}function L(){u("button.click",{source:"collections_plus_button",action:"import_curl"}),y()}function W(F){F.data.type==="collection"&&n({collectionId:F.data.collectionId}),F.data.type==="workflow"&&r({collectionId:F.data.collectionId,workflowId:F.data.workflowId}),F.data.type==="step"&&e({collectionId:F.data.collectionId,workflowId:F.data.workflowId,stepId:F.data.stepId})}function Y(F,oe){switch(F.data.type){case"collection":case"workflow":return oe?"":"Please provide a name";case"step":return oe?F.parent.children?.some(q=>q.data.name===oe&&q.data.id!==F.data.id)?"Step ID already exists":"":"Please provide a Step ID"}}function Z(F){switch(F.node.data.type){case"collection":return f.jsx(Iit,{...F});case"workflow":return f.jsx(Cit,{...F});case"step":return f.jsx(vit,{...F})}}function J(F){switch(F.node.data.type){case"collection":return f.jsx(nit,{...F});case"workflow":return f.jsx(Eit,{...F});case"step":return f.jsx(wit,{...F})}}const ae=$.useCallback((F,oe)=>{const q=Znt(oe);switch(F.data.type){case"collection":return Hnt(F.data.collection,q);case"workflow":return Gnt(F.data.workflow,q)?!0:F.parent?ae(F.parent,oe):!1;case"step":return Ynt(F.data.step,q)?!0:F.parent?ae(F.parent,oe):!1;default:return!1}},[]);return f.jsxs(nR,{children:[f.jsxs(iR,{children:[f.jsxs(oR,{children:[f.jsx(Q.SearchIcon,{color:"var(--icon-color-additional)"}),f.jsx(xf,{spellCheck:!1,placeholder:"Search",value:d,onChange:F=>p(F.target.value)})]}),f.jsx(Q.Dropdown,{trigger:f.jsx(Q.Button,{variant:"primary",size:"small",icon:f.jsx(Q.AddIcon,{size:"16px"}),"aria-label":"Create new item"}),alignment:"end",children:f.jsxs(Q.DropdownMenu,{children:[f.jsxs(qn,{onClick:o,children:[f.jsx(Q.DocumentAddIcon,{size:"16px"}),"New Request"]}),f.jsxs(qn,{onClick:()=>_({index:b.length}),children:[f.jsx(Q.FolderAddIcon,{size:"16px"}),"New Collection"]}),f.jsxs(qn,{onClick:L,children:[f.jsx(Q.DocumentAddIcon,{size:"16px"}),"Import from curl"]})]})})]}),f.jsxs(C1,{children:[!l.length&&f.jsx(Knt,{onCreate:()=>_({index:0})}),l.length>0&&!b.length&&f.jsx($1,{children:f.jsx(Q.Typography,{fontSize:"var(--font-size-base)",children:"No results found"})}),f.jsx(SI,{treeRef:c,data:b,onCreate:P,onDelete:R,onMove:w,onRename:S,onActivate:W,renderName:Z,renderControls:J,validateName:Y,disableDrag:F=>F.type==="collection",selection:t,onNodeToggle:m,initialOpenState:g,searchTerm:h,searchMatch:ae})]}),f.jsx(Zit,{isOpen:O,onClose:v,onImport:F=>{s({step:F})}}),f.jsx(cee,{...D()})]})}const k1=(t,e=!1)=>{const{disableCollectionsTab:r}=Vo().get(),n=[],i=Da();return e&&n.push({key:"Request",label:"Request",icon:f.jsx(Q.CodeIcon,{}),children:f.jsx(_0,{})}),r||(n.push({key:"Collections",label:"Collections",icon:f.jsx(qrt,{}),children:f.jsx(tot,{}),flexDirection:"column"}),n.push({key:"APIs",label:"APIs",icon:f.jsx(Nrt,{}),children:f.jsx(Fnt,{}),flexDirection:"column"})),n.push({key:"History",label:"History",icon:f.jsx(Q.RecentlyViewedIcon,{}),children:f.jsx(Grt,{}),flexDirection:"column"}),t&&!i&&n.push({key:"Apps",label:"Apps",icon:f.jsx(Q.RocketIcon,{}),children:f.jsx(Snt,{}),flexDirection:"column"}),{tabsParams:n}};function dee({children:t}){const e=$.useRef({}),r=$.useCallback((n,i)=>{e.current[n]||(e.current[n]={}),e.current[n][i.id]=i.isOpen},[]);return f.jsx(see.Provider,{value:{expandedTreeNodes:e.current||{},updateExpandedTreeNodes:r},children:t})}const rot=()=>{const{apps:{apiId:t}}=gt(),{isMobile:e,activeTab:r,MobileHeader:n}=Qs(),{tabsParams:i}=k1(t.get(),e);return f.jsxs(not,{children:[f.jsx(n,{}),f.jsx(dee,{children:i.filter(({key:o})=>o===r).map(({children:o,key:s,flexDirection:a="row"})=>f.jsx(iot,{isActive:s===r,flexDirection:a,"data-testid":`side-panel-${s}`,children:o},s))})]})},not=T.div`
|
|
5510
|
+
`;function tot(){const{tabDataId:t}=wf(),{openStepTabFromCollection:e,openWorkflowTab:r,openCollectionTab:n,handleCloseByDataId:i,handleNewTabOpen:o,openStepTab:s}=dn(),{getExistingTab:a}=tu(),{collections:l}=gt(),c=$.useRef(null),{sendEvent:u}=st(),[d,p]=$.useState(""),h=l1(d,300),{handleNodeToggle:m,expandedTreeNodes:g}=aee("collections"),{isOpen:O,handleOpen:y,handleClose:v}=La(),b=$.useMemo(()=>l.map(F=>Jnt(F)).filter(Boolean),[l]),w=({dragNodes:F,parentNode:oe,index:q})=>{const M=F[0];if(M.data.type==="step"&&oe?.data.type==="workflow"){const U=M.data.step.get({noproxy:!0});if(M.parent?.data.id===oe.data.id){const z=M.childIndex,I=z<q?q-1:q;oe.data.workflow.steps.set(j=>(j.splice(z,1),j.splice(I,0,U),j))}else{const z=a({type:Ge.Step,collectionId:M.data.collectionId,workflowId:M.data.workflowId,stepId:M.data.stepId});z&&(z.data.collectionId.set(oe.data.collectionId),z.data.workflowId.set(oe.data.workflowId)),M.data.step.set(pt),oe.data.workflow.steps.set(I=>(I.splice(q,0,U),I))}}if(M.data.type==="workflow"&&oe?.data.type==="collection"){const U=M.data.workflow.get({noproxy:!0});if(M.parent?.data.id===oe.data.id){const z=M.childIndex,I=z<q?q-1:q;oe.data.collection.workflows.set(j=>(j.splice(z,1),j.splice(I,0,U),j))}else{const z=a({type:Ge.Workflow,collectionId:M.data.collectionId,workflowId:M.data.workflowId});z&&z.data.collectionId.set(oe.data.collectionId),M.data.workflow.set(pt),oe.data.collection.workflows.set(I=>(I.splice(q,0,U),I))}}},S=({name:F,node:oe})=>{switch(oe.data.type){case"collection":if(oe.data.collection.info.title.set(F),oe.data.isDraft){const U=KG({name:F,collections:l});oe.data.collection.merge({id:U,state:Mt.Normal}),u("node.management",[{action:"creation_finished",node_type:"collection",name:F}])}else u("node.management",[{action:"editing_finished",node_type:"collection",name:F}]);break;case"workflow":if(oe.data.workflow.summary.set(F),oe.data.isDraft){const U=oe.parent,z=PG({name:F,collection:U.data.collection}),I=a({type:Ge.Workflow,collectionId:oe.data.collectionId,workflowId:oe.data.workflowId});I&&I.data.workflowId.set(z),oe.data.workflow.workflowId.set(z),oe.data.workflow.state.set(Mt.Normal),u("node.management",[{action:"creation_finished",node_type:"workflow",name:F}])}else u("node.management",[{action:"editing_finished",node_type:"workflow",name:F}]);break;case"step":const q=a({type:Ge.Step,collectionId:oe.data.collectionId,workflowId:oe.data.workflowId,stepId:oe.data.stepId,historyId:null})?.data,M=F.replaceAll(" ","-");q&&q.stepId.set(M),oe.data.step.stepId.set(M),oe.data.isDraft?(oe.data.step.state.set(Mt.Normal),u("node.management",[{action:"creation_finished",node_type:"step",name:F}])):u("node.management",[{action:"editing_finished",node_type:"step",name:F}]);break}},P=({parentNode:F,index:oe})=>{if(!F){const q=JG({collections:l,isDraft:!0});return l.set(M=>(M.splice(oe,0,q),M)),{id:q.id}}if(F.data.type==="collection"){const q=CG({collection:F.data.collection,isDraft:!0});return F.data.collection.workflows.set(M=>(M.splice(oe,0,q),M)),{id:`${F.data.collectionId}/${q.workflowId}`}}if(F.data.type==="workflow"){const q=ef({workflow:F.data.workflow,isDraft:!0});return F.data.workflow.steps.set(M=>(M.splice(oe,0,q),M)),{id:`${F.data.collectionId}/${F.data.workflowId}/${q.stepId}`}}return null},C=$.useCallback(F=>{i({collectionId:F.data.collectionId,workflowId:F.data.workflowId,stepId:F.data.stepId}),F.children&&F.children.forEach(oe=>C(oe))},[i]),E=$.useCallback(F=>{for(const oe of F)C(oe),oe.data.type==="collection"&&(oe.data.collection.set(pt),u("node.management",[{action:"removed",node_type:"collection",name:oe.data.name}])),oe.data.type==="workflow"&&(oe.data.workflow.set(pt),u("node.management",[{action:"removed",node_type:"workflow",name:oe.data.name}])),oe.data.type==="step"&&(oe.data.step.set(pt),u("node.management",[{action:"removed",node_type:"step",name:oe.data.name}]))},[u,C]),{onDelete:R,getDialogProps:D}=lee({shouldConfirm:F=>!F.data.isDraft,onDelete:E,getNodeTypeLabel:F=>F.data.type});function _({index:F}){c.current?.create({parentId:null,index:F}),u("node.management",[{action:"creation_started",node_type:"collection"}])}function L(){u("button.click",[{source:"collections_plus_button",action:"import_curl"}]),y()}function W(F){F.data.type==="collection"&&n({collectionId:F.data.collectionId}),F.data.type==="workflow"&&r({collectionId:F.data.collectionId,workflowId:F.data.workflowId}),F.data.type==="step"&&e({collectionId:F.data.collectionId,workflowId:F.data.workflowId,stepId:F.data.stepId})}function Y(F,oe){switch(F.data.type){case"collection":case"workflow":return oe?"":"Please provide a name";case"step":return oe?F.parent.children?.some(q=>q.data.name===oe&&q.data.id!==F.data.id)?"Step ID already exists":"":"Please provide a Step ID"}}function Z(F){switch(F.node.data.type){case"collection":return f.jsx(Iit,{...F});case"workflow":return f.jsx(Cit,{...F});case"step":return f.jsx(vit,{...F})}}function J(F){switch(F.node.data.type){case"collection":return f.jsx(nit,{...F});case"workflow":return f.jsx(Eit,{...F});case"step":return f.jsx(wit,{...F})}}const ae=$.useCallback((F,oe)=>{const q=Znt(oe);switch(F.data.type){case"collection":return Hnt(F.data.collection,q);case"workflow":return Gnt(F.data.workflow,q)?!0:F.parent?ae(F.parent,oe):!1;case"step":return Ynt(F.data.step,q)?!0:F.parent?ae(F.parent,oe):!1;default:return!1}},[]);return f.jsxs(nR,{children:[f.jsxs(iR,{children:[f.jsxs(oR,{children:[f.jsx(Q.SearchIcon,{color:"var(--icon-color-additional)"}),f.jsx(xf,{spellCheck:!1,placeholder:"Search",value:d,onChange:F=>p(F.target.value)})]}),f.jsx(Q.Dropdown,{trigger:f.jsx(Q.Button,{variant:"primary",size:"small",icon:f.jsx(Q.AddIcon,{size:"16px"}),"aria-label":"Create new item"}),alignment:"end",children:f.jsxs(Q.DropdownMenu,{children:[f.jsxs(qn,{onClick:o,children:[f.jsx(Q.DocumentAddIcon,{size:"16px"}),"New Request"]}),f.jsxs(qn,{onClick:()=>_({index:b.length}),children:[f.jsx(Q.FolderAddIcon,{size:"16px"}),"New Collection"]}),f.jsxs(qn,{onClick:L,children:[f.jsx(Q.DocumentAddIcon,{size:"16px"}),"Import from curl"]})]})})]}),f.jsxs(C1,{children:[!l.length&&f.jsx(Knt,{onCreate:()=>_({index:0})}),l.length>0&&!b.length&&f.jsx($1,{children:f.jsx(Q.Typography,{fontSize:"var(--font-size-base)",children:"No results found"})}),f.jsx(SI,{treeRef:c,data:b,onCreate:P,onDelete:R,onMove:w,onRename:S,onActivate:W,renderName:Z,renderControls:J,validateName:Y,disableDrag:F=>F.type==="collection",selection:t,onNodeToggle:m,initialOpenState:g,searchTerm:h,searchMatch:ae})]}),f.jsx(Zit,{isOpen:O,onClose:v,onImport:F=>{s({step:F})}}),f.jsx(cee,{...D()})]})}const k1=(t,e=!1)=>{const{disableCollectionsTab:r}=Vo().get(),n=[],i=Da();return e&&n.push({key:"Request",label:"Request",icon:f.jsx(Q.CodeIcon,{}),children:f.jsx(_0,{})}),r||(n.push({key:"Collections",label:"Collections",icon:f.jsx(qrt,{}),children:f.jsx(tot,{}),flexDirection:"column"}),n.push({key:"APIs",label:"APIs",icon:f.jsx(Nrt,{}),children:f.jsx(Fnt,{}),flexDirection:"column"})),n.push({key:"History",label:"History",icon:f.jsx(Q.RecentlyViewedIcon,{}),children:f.jsx(Grt,{}),flexDirection:"column"}),t&&!i&&n.push({key:"Apps",label:"Apps",icon:f.jsx(Q.RocketIcon,{}),children:f.jsx(Snt,{}),flexDirection:"column"}),{tabsParams:n}};function dee({children:t}){const e=$.useRef({}),r=$.useCallback((n,i)=>{e.current[n]||(e.current[n]={}),e.current[n][i.id]=i.isOpen},[]);return f.jsx(see.Provider,{value:{expandedTreeNodes:e.current||{},updateExpandedTreeNodes:r},children:t})}const rot=()=>{const{apps:{apiId:t}}=gt(),{isMobile:e,activeTab:r,MobileHeader:n}=Qs(),{tabsParams:i}=k1(t.get(),e);return f.jsxs(not,{children:[f.jsx(n,{}),f.jsx(dee,{children:i.filter(({key:o})=>o===r).map(({children:o,key:s,flexDirection:a="row"})=>f.jsx(iot,{isActive:s===r,flexDirection:a,"data-testid":`side-panel-${s}`,children:o},s))})]})},not=T.div`
|
|
5511
5511
|
display: flex;
|
|
5512
5512
|
flex-direction: column;
|
|
5513
5513
|
height: 100%;
|
|
@@ -5518,7 +5518,7 @@ Please report this to https://github.com/markedjs/marked.`,t){const i="<p>An err
|
|
|
5518
5518
|
background: var(--bg-color);
|
|
5519
5519
|
margin: var(--spacing-xxs) var(--spacing-xs) 0 var(--spacing-xs);
|
|
5520
5520
|
border-radius: var(--border-radius-md);
|
|
5521
|
-
`,fee=({children:t,closeButton:e=null})=>{const{apps:{apiId:r}}=gt(),{sendEvent:n}=st(),[i,o]=$.useState(document.documentElement.clientWidth<zn),{tabsParams:s}=k1(r.get(),i),[a,l]=$.useState("Request"),c=$.useCallback(d=>{n("tab.change",{source:"mobile",name:d})},[n]),u=s.map(d=>({label:d.label,value:d.key,active:!1}));return $.useEffect(()=>{o(document.documentElement.clientWidth<zn);const d=()=>{o(document.documentElement.clientWidth<zn)};return window.addEventListener("resize",d),()=>window.removeEventListener("resize",d)},[]),f.jsx(EG.Provider,{value:{isMobile:i,closeButton:e,MobileHeader:({children:d,hide:p=!1})=>p||!i?null:f.jsx(sot,{children:i?f.jsxs(f.Fragment,{children:[f.jsxs(lot,{children:[i&&f.jsx(aot,{dataTestId:"mobile-select-panel",options:u,value:u.find(h=>h.value===a),onChange:({value:h})=>{l(h),c(h)}}),d]}),f.jsxs(cot,{children:[f.jsx(tR,{}),f.jsx(oot,{children:e})]})]}):d}),activeTab:a,setActiveTab:l},children:t})},oot=T.div`
|
|
5521
|
+
`,fee=({children:t,closeButton:e=null})=>{const{apps:{apiId:r}}=gt(),{sendEvent:n}=st(),[i,o]=$.useState(document.documentElement.clientWidth<zn),{tabsParams:s}=k1(r.get(),i),[a,l]=$.useState("Request"),c=$.useCallback(d=>{n("tab.change",[{source:"mobile",name:d}])},[n]),u=s.map(d=>({label:d.label,value:d.key,active:!1}));return $.useEffect(()=>{o(document.documentElement.clientWidth<zn);const d=()=>{o(document.documentElement.clientWidth<zn)};return window.addEventListener("resize",d),()=>window.removeEventListener("resize",d)},[]),f.jsx(EG.Provider,{value:{isMobile:i,closeButton:e,MobileHeader:({children:d,hide:p=!1})=>p||!i?null:f.jsx(sot,{children:i?f.jsxs(f.Fragment,{children:[f.jsxs(lot,{children:[i&&f.jsx(aot,{dataTestId:"mobile-select-panel",options:u,value:u.find(h=>h.value===a),onChange:({value:h})=>{l(h),c(h)}}),d]}),f.jsxs(cot,{children:[f.jsx(tR,{}),f.jsx(oot,{children:e})]})]}):d}),activeTab:a,setActiveTab:l},children:t})},oot=T.div`
|
|
5522
5522
|
display: flex;
|
|
5523
5523
|
justify-content: flex-end;
|
|
5524
5524
|
|
|
@@ -5625,7 +5625,7 @@ Please report this to https://github.com/markedjs/marked.`,t){const i="<p>An err
|
|
|
5625
5625
|
border-right: ${({$isOverlayLayout:t})=>t?"1px solid var(--border-color-secondary)":"none"};
|
|
5626
5626
|
width: 100%;
|
|
5627
5627
|
user-select: none;
|
|
5628
|
-
`;function oz({children:t}){const{apps:{apiId:e}}=gt(),{sendEvent:r}=st(),{tabsParams:n}=k1(e.get(),!1),[i,o]=$.useState(n[0]?.key||null),s=$.useCallback(l=>{o(l),r("tab.change",{source:"side_panel",name:l})},[r]),a={tabsParams:n,activeTab:i,onTabChange:s};return f.jsx(pee.Provider,{value:a,children:t})}function bot(){const[t,e]=$.useState(()=>{const r=document.documentElement.clientWidth;return sz(r)});return $.useEffect(()=>{const r=()=>{const n=document.documentElement.clientWidth;e(sz(n))};return window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)},[]),t}function sz(t){return t>=1512?24:t>=1280?28:t>=1024?32:38}function xot({panel:t,panelProps:e}){const[r,n]=$.useState(!1),{layout:i}=ru(),o=i==="overlay",s=bot();return o?f.jsx(oz,{children:f.jsxs(og,{direction:"horizontal",autoSaveId:"replay-layout-overlay",children:[f.jsx(fy,{id:"main-panel",defaultSize:75,minSize:55,isResizing:r,children:f.jsx(_0,{isOverlayLayout:o})}),f.jsx(P0,{direction:"vertical",onDragging:n,isOverlayLayout:o}),f.jsx(fy,{id:"content-panel",defaultSize:30,minSize:s,...e,isResizing:r,children:f.jsx(iz,{isOverlayLayout:o})}),f.jsx(rz,{panel:t,isOverlayLayout:o})]})}):f.jsx(oz,{children:f.jsxs(og,{direction:"horizontal",autoSaveId:"replay-layout",children:[f.jsx(rz,{panel:t,isOverlayLayout:o}),f.jsx(fy,{id:"content-panel",defaultSize:30,minSize:s,...e,isResizing:r,children:f.jsx(iz,{isOverlayLayout:o})}),f.jsx(P0,{direction:"vertical",onDragging:n,isOverlayLayout:o}),f.jsx(fy,{id:"main-panel",defaultSize:70,minSize:55,isResizing:r,children:f.jsx(_0,{isOverlayLayout:o})})]})})}const fy=T(rf)`
|
|
5628
|
+
`;function oz({children:t}){const{apps:{apiId:e}}=gt(),{sendEvent:r}=st(),{tabsParams:n}=k1(e.get(),!1),[i,o]=$.useState(n[0]?.key||null),s=$.useCallback(l=>{o(l),r("tab.change",[{source:"side_panel",name:l}])},[r]),a={tabsParams:n,activeTab:i,onTabChange:s};return f.jsx(pee.Provider,{value:a,children:t})}function bot(){const[t,e]=$.useState(()=>{const r=document.documentElement.clientWidth;return sz(r)});return $.useEffect(()=>{const r=()=>{const n=document.documentElement.clientWidth;e(sz(n))};return window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)},[]),t}function sz(t){return t>=1512?24:t>=1280?28:t>=1024?32:38}function xot({panel:t,panelProps:e}){const[r,n]=$.useState(!1),{layout:i}=ru(),o=i==="overlay",s=bot();return o?f.jsx(oz,{children:f.jsxs(og,{direction:"horizontal",autoSaveId:"replay-layout-overlay",children:[f.jsx(fy,{id:"main-panel",defaultSize:75,minSize:55,isResizing:r,children:f.jsx(_0,{isOverlayLayout:o})}),f.jsx(P0,{direction:"vertical",onDragging:n,isOverlayLayout:o}),f.jsx(fy,{id:"content-panel",defaultSize:30,minSize:s,...e,isResizing:r,children:f.jsx(iz,{isOverlayLayout:o})}),f.jsx(rz,{panel:t,isOverlayLayout:o})]})}):f.jsx(oz,{children:f.jsxs(og,{direction:"horizontal",autoSaveId:"replay-layout",children:[f.jsx(rz,{panel:t,isOverlayLayout:o}),f.jsx(fy,{id:"content-panel",defaultSize:30,minSize:s,...e,isResizing:r,children:f.jsx(iz,{isOverlayLayout:o})}),f.jsx(P0,{direction:"vertical",onDragging:n,isOverlayLayout:o}),f.jsx(fy,{id:"main-panel",defaultSize:70,minSize:55,isResizing:r,children:f.jsx(_0,{isOverlayLayout:o})})]})})}const fy=T(rf)`
|
|
5629
5629
|
transition: ${({isResizing:t})=>t?"none":"0.2s ease-in-out"};
|
|
5630
5630
|
}
|
|
5631
5631
|
`,Sot=({className:t,renderProjectSelect:e})=>{const{isMobile:r,closeButton:n}=Qs(),i=fI(!1);return f.jsxs(f.Fragment,{children:[f.jsx(Q.GlobalStyle,{}),!r&&n,f.jsx(Pot,{className:t,children:f.jsx(YK,{onError:o=>console.error(o),children:f.jsx(uot,{children:f.jsx(dot,{renderProjectSelect:e,children:r?f.jsx(rot,{}):f.jsxs(f.Fragment,{children:[f.jsx(Rrt,{}),f.jsx(xot,{panel:i.panel,panelProps:i.panelProps})]})})})})})]})};function gee({className:t,renderProjectSelect:e}){return f.jsx(Sot,{className:t,renderProjectSelect:e})}function wot({className:t,renderProjectSelect:e}){return f.jsx(fee,{children:f.jsx(gee,{className:t,renderProjectSelect:e})})}const Pot=T.div`
|
|
@@ -5651,7 +5651,7 @@ Please report this to https://github.com/markedjs/marked.`,t){const i="<p>An err
|
|
|
5651
5651
|
`,$ot=$.forwardRef((t,e)=>{const{isMobile:r}=Qs();return r?f.jsx(mee,{ref:e,...t}):f.jsx(Cot,{ref:e,...t})}),kot=t=>{const e=$.useRef(null);return $.useEffect(()=>{e.current&&e.current.focus()},[]),f.jsx($ot,{role:"button",tabIndex:0,"data-component-name":"Replay/CloseButton",ref:e,...t,children:f.jsx(Oee,{})})},Oee=T(Q.CloseIcon)`
|
|
5652
5652
|
width: 14px;
|
|
5653
5653
|
height: 14px;
|
|
5654
|
-
`;function Tot(t){return f.jsx($.StrictMode,{children:f.jsx(Wx.Provider,{value:t.settings,children:f.jsx(rR,{...t,children:f.jsx(wot,{renderProjectSelect:t.renderProjectSelect})})})})}function Eot({onClose:t,onLoad:e,onRequestChange:r}){const{sendEvent:n}=st(),i=gt(),o=$.useRef(!1),s=$.useCallback(()=>{o.current||(o.current=!0,r&&r(q3e(i)),n("app.lifecycle",{action:"close"}),t())},[r,n,t,i]);$.useEffect(()=>{e?.();const l=()=>{o.current||n("app.lifecycle",{action:"close"})};return window.addEventListener("beforeunload",l),n("app.lifecycle",{action:"open"}),()=>{window.removeEventListener("beforeunload",l)}},[]);const a=l=>{l.key==="Enter"&&(l.preventDefault(),s())};return f.jsx(fee,{closeButton:f.jsx(kot,{onClick:s,onKeyDown:a,children:f.jsx(Oee,{})}),children:f.jsx(Oz,{onClick:s,children:f.jsx(Iot,{})})})}function Aot(t){return f.jsx($.StrictMode,{children:f.jsx(Wx.Provider,{value:{...t.settings,layout:"overlay"},children:f.jsx(rR,{...t,children:f.jsx(Eot,{...t})})})})}const Iot=T(gee)`
|
|
5654
|
+
`;function Tot(t){return f.jsx($.StrictMode,{children:f.jsx(Wx.Provider,{value:t.settings,children:f.jsx(rR,{...t,children:f.jsx(wot,{renderProjectSelect:t.renderProjectSelect})})})})}function Eot({onClose:t,onLoad:e,onRequestChange:r}){const{sendEvent:n}=st(),i=gt(),o=$.useRef(!1),s=$.useCallback(()=>{o.current||(o.current=!0,r&&r(q3e(i)),n("app.lifecycle",[{action:"close"}]),t())},[r,n,t,i]);$.useEffect(()=>{e?.();const l=()=>{o.current||n("app.lifecycle",[{action:"close"}])};return window.addEventListener("beforeunload",l),n("app.lifecycle",[{action:"open"}]),()=>{window.removeEventListener("beforeunload",l)}},[]);const a=l=>{l.key==="Enter"&&(l.preventDefault(),s())};return f.jsx(fee,{closeButton:f.jsx(kot,{onClick:s,onKeyDown:a,children:f.jsx(Oee,{})}),children:f.jsx(Oz,{onClick:s,children:f.jsx(Iot,{})})})}function Aot(t){return f.jsx($.StrictMode,{children:f.jsx(Wx.Provider,{value:{...t.settings,layout:"overlay"},children:f.jsx(rR,{...t,children:f.jsx(Eot,{...t})})})})}const Iot=T(gee)`
|
|
5655
5655
|
width: 80vw;
|
|
5656
5656
|
|
|
5657
5657
|
@media (max-width: ${zn}px) {
|