@redocly/replay 0.20.0-next.3 → 0.20.0-next.4
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-BVftpAcJ.js → replay-index-7vtyjMP_.js} +1 -1
- package/dist/{replay-index-R5NlaWN3.js → replay-index-BAzGnZvK.js} +1 -1
- package/dist/{replay-index-DclYXgOW.js → replay-index-BJ_p67iw.js} +1 -1
- package/dist/{replay-index-Cwjjmq1w.js → replay-index-BSsZKK0_.js} +9 -9
- package/dist/{replay-index-DyEXLIyO.js → replay-index-CSeQ670v.js} +9 -9
- package/dist/{replay-index-3pb5zlzV.js → replay-index-D5WsuXyl.js} +1 -1
- package/dist/{replay-index-oKedMpZF.js → replay-index-DwFsTs5R.js} +1 -1
- package/dist/{replay-index-LGoPYEWu.js → replay-index-tgdv-amD.js} +1 -1
- package/dist/{replay-tauri-path-CETRdBlD.js → replay-tauri-path-D6aHMvNK.js} +2 -2
- package/dist/{replay-tauri-path-Be0EEZaU.js → replay-tauri-path-DAj_5f9i.js} +1 -1
- package/dist/replay.cjs +1 -1
- package/dist/replay.js +1 -1
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./replay-index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./replay-index-CSeQ670v.js");async function r(e,n){await i.invoke("plugin:opener|open_url",{url:e,with:n})}async function t(e,n){await i.invoke("plugin:opener|open_path",{path:e,with:n})}async function o(e){return i.invoke("plugin:opener|reveal_item_in_dir",{path:e})}exports.openPath=t;exports.openUrl=r;exports.revealItemInDir=o;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const W=require("./replay-index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const W=require("./replay-index-CSeQ670v.js");async function o4(u){const{descriptionPath:a,externalRefResolver:e,base:i}=u,r=await W.bundle({base:i,ref:a,config:u.config,dereference:!0,externalRefResolver:e});if(!r)throw new Error(`Could not find source description file '${a}'.`);return r.bundle.parsed}function xr(u){if(typeof u!="object")return;const a=Object.keys(u)[0];return a?u[a]?.value:void 0}const{env:l0={},argv:cr=[],platform:t4=""}=typeof process>"u"?{}:process,s4="NO_COLOR"in l0||cr.includes("--no-color"),l4="FORCE_COLOR"in l0||cr.includes("--color"),E4=t4==="win32",D4=l0.TERM==="dumb",x4=W.tty&&void 0,c4="CI"in l0&&("GITHUB_ACTIONS"in l0||"GITLAB_CI"in l0||"CIRCLECI"in l0),d4=!s4&&(l4||E4&&!D4||x4||c4),dr=(u,a,e,i,r=a.substring(0,u)+i,o=a.substring(u+e.length),n=o.indexOf(e))=>r+(n<0?o:dr(n,o,e,i)),m4=(u,a,e,i,r)=>u<0?e+a+i:e+dr(u,a,i,r)+i,F4=(u,a,e=u,i=u.length+1)=>r=>r||!(r===""||r===void 0)?m4((""+r).indexOf(a,i),r,u,a,e):"",U=(u,a,e)=>F4(`\x1B[${u}m`,`\x1B[${a}m`,e),Wa={reset:U(0,0),bold:U(1,22,"\x1B[22m\x1B[1m"),dim:U(2,22,"\x1B[22m\x1B[2m"),italic:U(3,23),underline:U(4,24),inverse:U(7,27),hidden:U(8,28),strikethrough:U(9,29),black:U(30,39),red:U(31,39),green:U(32,39),yellow:U(33,39),blue:U(34,39),magenta:U(35,39),cyan:U(36,39),white:U(37,39),gray:U(90,39),bgBlack:U(40,49),bgRed:U(41,49),bgGreen:U(42,49),bgYellow:U(43,49),bgBlue:U(44,49),bgMagenta:U(45,49),bgCyan:U(46,49),bgWhite:U(47,49),blackBright:U(90,39),redBright:U(91,39),greenBright:U(92,39),yellowBright:U(93,39),blueBright:U(94,39),magentaBright:U(95,39),cyanBright:U(96,39),whiteBright:U(97,39),bgBlackBright:U(100,49),bgRedBright:U(101,49),bgGreenBright:U(102,49),bgYellowBright:U(103,49),bgBlueBright:U(104,49),bgMagentaBright:U(105,49),bgCyanBright:U(106,49),bgWhiteBright:U(107,49)},k4=({useColor:u=d4}={})=>u?Wa:Object.keys(Wa).reduce((a,e)=>({...a,[e]:String}),{}),{reset:gY,bold:Uu,dim:h4,italic:CY,underline:g4,inverse:mr,hidden:pY,strikethrough:vY,black:bY,red:tu,green:m0,yellow:Yu,blue:mu,magenta:BY,cyan:AY,white:qa,gray:Fu,bgBlack:yY,bgRed:Z0,bgGreen:fY,bgYellow:zY,bgBlue:SY,bgMagenta:MY,bgCyan:jY,bgWhite:PY,blackBright:wY,redBright:KY,greenBright:TY,yellowBright:LY,blueBright:NY,magentaBright:RY,cyanBright:HY,whiteBright:GY,bgBlackBright:VY,bgRedBright:_Y,bgGreenBright:JY,bgYellowBright:$Y,bgBlueBright:IY,bgMagentaBright:OY,bgCyanBright:WY,bgWhiteBright:qY}=k4(),C4=u=>/\{.*?\}/.test(u);function Ju({value:u,ctx:a,logger:e}){if(!u)return u;if(typeof u=="object"){for(const i in u)u[i]=Ju({value:u[i],ctx:a,logger:e});return u}return typeof u=="number"||typeof u=="boolean"?u:u.toString().startsWith("$faker.")?P0({pointer:u.slice(1),ctx:a,logger:e}):C4(u)?b4(u,a,e):A4(u,a,e)}function p4(u,a,e){const i=u.indexOf("{");if(i!==-1){const o=u.substring(i+1).slice(0,-1),n=P0({pointer:o.slice(1),ctx:a,logger:e});return n&&u.replace(/{(.*)}/,n)}else return u}function v4(u,a){const e=Object.keys(a),i=Object.values(a);return new Function(...e,`return ${u}`)(...i)}function b4(u,a,e){const i=/\{\$(\{[^{}]*\}|[^{}])*\}/g;let r=u;return r=r.replace(i,(o,n)=>B4(o,a,e)),r}function B4(u,a,e){if(!u.includes("$"))return u;if(u.includes("$faker."))return p4(u,a,e);const i=S0(a)(y4(u));return i!==void 0?i:""}const A4=(u,a,e)=>{if(!u)return u;const i=u.toString();if(!i.includes("$"))return u;if(i.startsWith("$file(")&&i.endsWith(")"))return i.slice(7,-2);if(i.startsWith("$sourceDescriptions.")&&i.includes(".workflows.")){const r=i.split("."),o=r[1],n=r[3];if(!o||!n)return;const t=S0(a)("$sourceDescriptions");return t[o]?t[o].workflows.find(s=>s.workflowId===n):void 0}return i&&i.trim().startsWith("faker.")?P0({pointer:i,ctx:a,logger:e}):i?S0(a)(Za(i)):i.replace(/\$\{([^}]+)}/g,(r,o)=>S0(a)(Za(o)))};function y4(u){return u.replace(/\{(.*)\}/,"$1")}function Za(u){return u.replace(/\['(.*?)'\]/g,".$1")}const S0=(u,a="")=>e=>{if(a||(a=e),!e)return u;const[i,...r]=e.split(".");if(!u)throw Error(`Cannot get ${tu(i)} from ${tu(a)}`);if(u?.[i]===void 0){const o=` Undefined ${tu(i)} at ${tu(a)}.`,n=Object.keys(u).length?`Did you mean to use another key? Available keys:
|
|
2
2
|
${Object.keys(u).join(", ")}.
|
|
3
3
|
`:"",t=`${o} ${n}`;throw Error(t)}return S0(u[i],a)(r.join("."))};function P0({pointer:u,ctx:a,logger:e}){const i=u.split("."),r={ctx:{faker:a.$faker}};try{const o=i.map(n=>n.trim()).map((n,t)=>n.endsWith(")")?`${t==0?"":"."}${n}`:`["${n}"]`).join("");return v4(`ctx${o}`,r)}catch(o){e.error(tu(o.toString()));return}}function Fr(u,a,e){if(typeof u=="string"&&u)return Ju({value:u,ctx:a,logger:e});if(!(typeof u=="string"||typeof u=="number"||typeof u=="boolean"||typeof u>"u"||u instanceof Blob||u===null))for(const i in u)typeof u[i]=="string"?u[i]&&(u[i]=Ju({value:u[i],ctx:a,logger:e})):Fr(u[i],a,e)}function Ua(u,a,e){return Fr(u,a,e)||u}function Ya(u,a){if(!u)return;const e={};for(const i in a)e[`{${i}}`]=String(a[i]);return u.split(/(\{[a-zA-Z0-9_.-]+\}+)/g).map(i=>e[i]?e[i]:i).join("")}function f4(u){return typeof u=="object"&&u!==null&&"name"in u&&"value"in u&&!("in"in u)}function ea(u){return typeof u=="object"&&u!==null&&"in"in u&&["header","query","path","cookie"].includes(u.in)}const z4=/^image\/(png|jpeg|gif|bmp|webp|svg\+xml)|application\/pdf$/;function kr(u){return u.startsWith("$file(")&&u.endsWith(")")?u.substring(7,u.length-2):u}const Qa=async(u,a,e,i,r)=>{const o=W.pathBrowserifyExports.dirname(i),n=W.pathBrowserifyExports.resolve(o,kr(e));u.append(a,await r.options.requestFileLoader.getFileBody(n))},hr=(u,a,e,i,r,o)=>{Object.entries(e).forEach(([n,t])=>{const s=o?`${o}[${n}]`:n;typeof t=="string"&&t.startsWith("$file(")&&t.endsWith(")")?u.push(Qa(a,s,t,i,r)):Array.isArray(t)?t.forEach(l=>{typeof l=="string"&&l.startsWith("$file(")&&l.endsWith(")")?u.push(Qa(a,s,l,i,r)):a.append(s,l.toString())}):typeof t=="object"&&t!==null?hr(u,a,t,i,r,s):(typeof t=="string"||typeof t=="number"||typeof t=="boolean")&&a.append(s,t.toString())})},S4=async(u,a,e,i)=>{if(u&&typeof u=="object"&&!Array.isArray(u)){const r=[];hr(r,a,u,e,i),await Promise.all(r)}},M4=async(u,a)=>{if(typeof u=="string"&&u.startsWith("$file(")&&u.endsWith(")")){const e=W.pathBrowserifyExports.resolve(W.pathBrowserifyExports.dirname(a.options.filePath),kr(u));return a.options.requestFileLoader.getFileBody(e)}else return u};async function j4(u,a){if(!u)return{payload:void 0,contentType:void 0,encoding:void 0,replacements:void 0};const{payload:e,contentType:i}=u;if(i==="multipart/form-data"){const r=new FormData,o=W.pathBrowserifyExports.resolve(a.options.filePath);return await S4(e,r,o,a),{...u,payload:r}}else{if(i==="application/octet-stream"||typeof i=="string"&&z4.test(i))return{...u,payload:await M4(e,a),contentType:"application/octet-stream"};if(i==="application/x-www-form-urlencoded"&&typeof e=="string")return{...u,payload:Object.fromEntries(new URLSearchParams(e).entries()),contentType:"application/x-www-form-urlencoded"}}return u}function P4(u){try{return W.parseRuntimeExpression(u)}catch{throw new Error(`Runtime expression is not valid: ${u}`)}}function w4(u,a){const e=[{pattern:/\$response\.body#\/([\w/-]+)/g,ctxFunction:(r,o)=>v0(a.$response?.body,o,r)},{pattern:/\$request\.body#\/([\w/-]+)/g,ctxFunction:(r,o)=>v0(a.$request?.body,o,r)},{pattern:/\$outputs\.([\w-]+)#\/([\w/-]+)/g,ctxFunction:(r,o,n)=>v0(a.$outputs?.[o],n,r)},{pattern:/\$workflows\.([\w-]+)\.outputs\.([\w-]+)#\/([\w/-]+)/g,ctxFunction:(r,o,n,t)=>v0(a.$workflows?.[o]?.outputs?.[n],t,r)},{pattern:/\$steps\.([\w-]+)\.outputs\.([\w-]+)#\/([\w/-]+)/g,ctxFunction:(r,o,n,t)=>v0(a.$steps?.[o]?.outputs?.[n],t,r)}];let i=u;for(const{pattern:r,ctxFunction:o}of e)i=i.replaceAll(r,o);return i}function v0(u,a,e){if(u)try{const i=W.pointer.get(u,`/${a}`);return typeof i=="string"||Array.isArray(i)||typeof i=="object"?JSON.stringify(i):i!==void 0?i:e}catch{return e}return e}function Ru({payload:u,context:a,contentType:e,logger:i}){if(e?.includes("application/octet-stream"))return Ua(u,a,i);if(e?.includes("multipart/form-data")){if(u instanceof FormData){const r=new FormData;for(const[o,n]of u.entries())if(n instanceof File)r.append(o,n);else{const t=Ru({payload:n,context:a,logger:i});r.append(o,t)}return r}return Ua(u,a,i)}return typeof u=="string"?V4(u)?E0(u,a,i):G4(u,a,i):W.isPlainObject(u)?Object.entries(u).reduce((r,[o,n])=>(r[o]=Ru({payload:n,context:a,logger:i}),r),{}):Array.isArray(u)?u.map(r=>Ru({payload:r,context:a,logger:i})):u}function E0(u,a,e){return typeof u=="string"?K4(u,a,e):W.isPlainObject(u)?Object.entries(u).reduce((i,[r,o])=>(i[r]=o&&E0(o,a,e),i),{}):Array.isArray(u)?u.map(i=>E0(i,a,e)):u}function K4(u,a,e){if(/^\$faker\.[a-zA-Z0-9._-]+(\([^\\)]*\))?$/.test(u))return P0({pointer:u.slice(1),ctx:a,logger:e});if(u.includes("$faker.")){const o=/\$faker\.[a-zA-Z0-9._-]+(\([^\\)]*\))?/g;u=u.replace(o,n=>P0({pointer:n.slice(1),ctx:a,logger:e})).replace(/{(.*?)}/g,"$1")}if(!u.includes("$")&&!/[=<>]/.test(u))return u;P4(u);const i=L4(u,a),r=N4(a);try{return new Function(...Object.keys(r),`return ${i};`)(...Object.values(r))}catch{throw new Error(`Error in resolving runtime expression '${u}'.
|
|
4
4
|
This could be because the expression references a value from a previous failed step, or is trying to reference a variable that hasn't been set.`)}}function T4(u){return u.replace(/\$([a-zA-Z0-9._-]+)/g,(a,e)=>`$${e.replace(/-/g,"_")}`)}function L4(u,a){const e=w4(u,a),r=T4(e).replace(/{(.*?)}/g,"$1"),o=H4(r),n=/\.header\.([a-zA-Z0-9._-]+)/g;return o.replace(n,(s,l)=>`.header.${l.toLowerCase()}`)}function N4(u){const a={};for(const[e,i]of Object.entries(u)){const r=e.replace(/-/g,"_");a[r]=gr(i)}return a}function gr(u){return Array.isArray(u)?u:typeof u=="object"&&u!==null?R4(u):u}function R4(u){return Object.keys(u).reduce((a,e)=>{const i=e.replace(/-/g,"_");return a[i]=gr(u[e]),a},{})}function H4(u){return u.replace(/\.(\d+)/g,(a,e,i,r)=>{const o=r[i-1];return/\d/.test(o)?a:`[${e}]`})}function G4(u,a,e){const i=/\{(?:[^{}]|\{[^{}]*\})*\}|\$[^\s{}]+(?:\([^()]*\))*/g;return u.replace(i,r=>{const o=r.trim(),n=E0(o,a,e);return n!==void 0?n:r})}function V4(u){return/^\$[^\s{}]+(\([^)]*\))?$|^\{[^{}]*\}$/.test(u.trim())}function _4({payload:u,replacements:a,expressionContext:e,logger:i}){for(const r of a){const{target:o,value:n}=r;if(typeof o!="string")throw new Error(`Invalid JSON Pointer: ${o}`);try{const t=W.pointer.get(u,o),s=Ru({payload:n,context:e,logger:i});t!==void 0&&W.pointer.set(u,o,s)}catch{throw new Error(`Invalid JSON Pointer: ${o}`)}}}const J4=["parameters","failureActions","successActions"];function $4(u,a){const{reference:e,value:i}=u;if(!J4.some(o=>e.includes(`$components.${o}`)))throw new Error("Invalid reference: available components are $components.parameters, $components.failureActions, or $components.successActions");const r=Ju({value:e,ctx:a,logger:a.options.logger});return"value"in r&&i?{...r,value:i}:r}function f0(u,a){return"reference"in u?$4(u,a):u}function I4(u,a){const e=u?.requestBody?.content||{},[i,r]=Object.entries(e)[0]||[],o=r?.example||xr(r?.examples)||fr(r?.schema,a),n=O4(u);return{parameters:W4([...Xa(u.pathParameters,a),...Xa(u.parameters,a)]).filter(({value:s})=>s),contentTypeParameters:[...i?[{name:"content-type",in:"header",value:i}]:[],...n?[{name:"accept",in:"header",value:n}]:[]],requestBody:o,contentType:i}}function O4(u){return u?.responses?Array.from(new Set(Object.values(u.responses).flatMap(a=>W.isPlainObject(a)&&"content"in a?Object.keys(a.content||{}):[]))).join(", "):void 0}function Xa(u,a){return(u||[]).filter(e=>e?.required===!0).map(e=>{if(ea(e))return{name:e.name,in:e.in,value:Wt(e,a)}}).filter(e=>e!==void 0)}function W4(u){const a={};for(const e of u)ea(e)&&(a[(e.name+":"+e.in).toLowerCase()]=e);return Object.values(a)}function q4(u,a){let e,i;if(u.includes("$sourceDescriptions.")){const[,s,l]=u.split(".");e=s,i=l}else u.includes(".")?[e,i]=u.split("."):(i=u,e=Object.keys(a)[0]);const r=Object.keys(a);if(!a[e])throw new Error(`Unknown description name ${tu(e)} at ${tu(u)}. Available descriptions: ${r.join(", ")}.`);const o=a[e],n=o?.components?.securitySchemes,t=o.servers;for(const[s,l]of Object.entries(a[e].paths)){if(!l)return;for(const[D,x]of Object.entries(l))if(x.operationId===i)return{servers:l.servers||t,...x,pathParameters:x.parameters||[],path:s,method:D,descriptionName:e,securitySchemes:n}}throw new Error(`Unknown operationId ${tu(i)} at ${tu(u)}.`)}function Z4(u,a){const{$sourceDescriptions:e,sourceDescriptions:i}=a,[r,o]=u.split("#");if(!i)throw new Error("Missing described sourceDescriptions");const n=i.find(y=>{if(["openapi","arazzo"].includes(y.type)){if(r.includes("$sourceDescriptions.")){const[,T]=r.split(".");return y.name===T}return"url"in y&&y.url===r}return!1})?.name;if(!n)throw new Error(`Unknown operationPath ${tu(u)}. API description ${tu(r)} is not listed in 'sourceDescriptions' workflow section.`);const t=e[n]||{},s=t?.components?.securitySchemes,[l,D,x]=W.pointer.parse(o);if(l!=="paths")throw new Error(`Invalid fragment identifier: ${o} at operationPath ${tu(u)}.`);const{servers:m}=t,k=W.pointer.get(t,o)||{},A=W.pointer.get(t,W.pointer.compile(["paths",D]))||{};return{servers:A.servers||m,...k,pathParameters:A.parameters||[],path:D,method:x,descriptionName:n,securitySchemes:s}}function U4(u,a){if(!u.operationId&&!u.operationPath)return;const{$sourceDescriptions:e,sourceDescriptions:i}=a,{operationId:r,operationPath:o}=u;return r?q4(r,e):o?Z4(o,{$sourceDescriptions:e,sourceDescriptions:i}):void 0}function ui(u){const a=JSON.parse(JSON.stringify(u));function e(i){if(i.type==="object"){if(i.properties)for(const r in i.properties)i.properties[r].writeOnly?(delete i.properties[r],i.required&&(i.required=i.required.filter(o=>o!==r))):e(i.properties[r]);i.additionalProperties&&typeof i.additionalProperties=="object"&&e(i.additionalProperties)}else i.type==="array"&&i.items&&e(i.items);return i.oneOf&&(i.oneOf=i.oneOf.map(r=>e(r))),i.allOf&&(i.allOf=i.allOf.map(r=>e(r))),i.anyOf&&(i.anyOf=i.anyOf.map(r=>e(r))),i}return e(a)}function Y4({statusCode:u,contentType:a,descriptionResponses:e}){return e?(e[u]||e.default)?.content?.[a]?.schema:void 0}function Q4(u,a){if(!a)return;const i=a.requestBody?.content;return i&&i[u]?.schema||void 0}const X4={title:"[REPLACE WITH API title]",version:"[REPLACE WITH API version]"},We=Symbol("skip");function b0(u){return u<10?"0"+u:u}function ut(u,a,e,i){var r=e?"":u.getUTCFullYear()+"-"+b0(u.getUTCMonth()+1)+"-"+b0(u.getUTCDate());return a||(r+="T"+b0(u.getUTCHours())+":"+b0(u.getUTCMinutes())+":"+b0(u.getUTCSeconds())+"Z"),r}function Cr(u,a){return a>u.length?u.repeat(Math.trunc(a/u.length)+1).substring(0,a):u}function ue(...u){const a=e=>e&&typeof e=="object";return u.reduce((e,i)=>(Object.keys(i||{}).forEach(r=>{const o=e[r],n=i[r];a(o)&&a(n)?e[r]=ue(o,n):e[r]=n}),e),Array.isArray(u[u.length-1])?[]:{})}function et(u){var a=it(u),e=rt(a,a,a,a),i="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,r=>{var o=e()*16%16|0;return(r=="x"?o:o&3|8).toString(16)});return i}function Ce(u){return{value:u==="object"?{}:u==="array"?[]:void 0}}function Ou(u,a){a&&u.pop()}function at(u){return{name:u?.xml?.name||"",prefix:u?.xml?.prefix||"",namespace:u?.xml?.namespace||null,attribute:u?.xml?.attribute??!1,wrapped:u?.xml?.wrapped??!1}}function ee(u,a={},e={}){const{value:i}=u,{propertyName:r}=e,{name:o,prefix:n,namespace:t,attribute:s,wrapped:l}=at(a);let D=o||r?`${n?n+":":""}${o||r}`:null,x=typeof i=="object"?Array.isArray(i)?[...i]:{...i}:i;return s&&D&&(D=`$${D}`),t&&(typeof x=="object"?x[`$xmlns${n?":"+n:""}`]=t:x={[`$xmlns${n?":"+n:""}`]:t,"#text":x}),a.type==="array"&&(l&&Array.isArray(x)&&(x={[D]:[...x]}),l||(D=null),a.example!==void 0&&!l&&(D=a.items?.xml?.name||D)),(a.oneOf||a.anyOf||a.allOf||a.$ref)&&(D=null),{propertyName:D,value:x}}function it(u){var a=0;if(u.length==0)return a;for(var e=0;e<u.length;e++){var i=u.charCodeAt(e);a=(a<<5)-a+i,a=a&a}return a}function rt(u,a,e,i){return function(){u|=0,a|=0,e|=0,i|=0;var r=u-(a<<27|a>>>5)|0;return u=a^(e<<17|e>>>15),a=e+i|0,e=i+r|0,i=u+r|0,(i>>>0)/4294967296}}function nt(u,a,e,i,r){let o=Pu(u,e,i);const n=[];for(let t of a){const{type:s,readOnly:l,writeOnly:D,value:x}=Pu({type:o.type,...t},e,i,{...r,isAllOfChild:!0});o.type&&s&&s!==o.type&&(console.warn("allOf: schemas with different types can't be merged"),o.type=s),o.type=o.type||s,o.readOnly=o.readOnly||l,o.writeOnly=o.writeOnly||D,x!=null&&n.push(x)}if(o.type==="object"){o.value=ue(o.value||{},...n.filter(t=>typeof t=="object"));for(const t in o.value)o.value[t]===We&&delete o.value[t];return o}else{o.type==="array"&&(e.quiet||console.warn('OpenAPI Sampler: found allOf with "array" type. Result may be incorrect'));const t=n[n.length-1];return o.value=t??o.value,o}}const ei={multipleOf:"number",maximum:"number",exclusiveMaximum:"number",minimum:"number",exclusiveMinimum:"number",maxLength:"string",minLength:"string",pattern:"string",items:"array",maxItems:"array",minItems:"array",uniqueItems:"array",additionalItems:"array",maxProperties:"object",minProperties:"object",required:"object",additionalProperties:"object",properties:"object",patternProperties:"object",dependencies:"object"};function H0(u){if(u.type!==void 0)return Array.isArray(u.type)?u.type.length===0?null:u.type[0]:u.type;const a=Object.keys(ei);for(var e=0;e<a.length;e++){let i=a[e],r=ei[i];if(u[i]!==void 0)return r}return null}let U0={},ju=[];function ot(){U0={},ju=[]}function pr(u){let a;return u.const!==void 0?a=u.const:u.examples!==void 0&&u.examples.length?a=u.examples[0]:u.enum!==void 0&&u.enum.length?a=u.enum[0]:u.default!==void 0&&(a=u.default),a}function ai(u){const a=pr(u);if(a!==void 0)return{value:a,readOnly:u.readOnly,writeOnly:u.writeOnly,type:null}}function Pu(u,a,e,i){if(i){if(ju.includes(u))return Ce(H0(u));ju.push(u)}if(i&&i.depth>a.maxSampleDepth)return Ou(ju,i),Ce(H0(u));if(u.$ref){if(!e)throw new Error("Your schema contains $ref. You must provide full specification in the third parameter.");let t=decodeURIComponent(u.$ref);t.startsWith("#")&&(t=t.substring(1));const s=W.pointer.get(e,t);let l;if(U0[t]!==!0){U0[t]=!0;const D=Pu(s,a,e,i);if(a.format==="xml"){const{propertyName:x,value:m}=ee(D,s,i);l={...D,value:{[x||"root"]:m}}}else l=D;U0[t]=!1}else{const D=H0(s);l=Ce(D)}return Ou(ju,i),l}if(u.example!==void 0)return Ou(ju,i),{value:u.example,readOnly:u.readOnly,writeOnly:u.writeOnly,type:u.type};if(u.allOf!==void 0)return Ou(ju,i),ai(u)||nt({...u,allOf:void 0},u.allOf,a,e,i);if(u.oneOf&&u.oneOf.length){u.anyOf&&(a.quiet||console.warn("oneOf and anyOf are not supported on the same level. Skipping anyOf")),Ou(ju,i);const t=Object.assign({readOnly:u.readOnly,writeOnly:u.writeOnly},u.oneOf[0]);return n(u,t)}if(u.anyOf&&u.anyOf.length){Ou(ju,i);const t=Object.assign({readOnly:u.readOnly,writeOnly:u.writeOnly},u.anyOf[0]);return n(u,t)}if(u.if&&u.then){Ou(ju,i);const{if:t,then:s,...l}=u;return Pu(ue(l,t,s),a,e,i)}let r=pr(u),o=null;if(r===void 0){r=null,o=u.type,Array.isArray(o)&&u.type.length>0&&(o=u.type[0]),o||(o=H0(u));let t=yr[o];t&&(r=t(u,a,e,i))}return Ou(ju,i),{value:r,readOnly:u.readOnly,writeOnly:u.writeOnly,type:o};function n(t,s){const l=ai(t);if(l!==void 0)return l;const D=Pu({...t,oneOf:void 0,anyOf:void 0},a,e,i),x=Pu(s,a,e,i);if(typeof D.value=="object"&&typeof x.value=="object"){const m=ue(D.value,x.value);return{...x,value:m}}return x}}function tt(u,a={},e,i){const r=i&&i.depth||1;let o=Math.min(u.maxItems!=null?u.maxItems:1/0,u.minItems||1);const n=u.prefixItems||u.items||u.contains;Array.isArray(n)&&(o=Math.max(o,n.length));let t=l=>Array.isArray(n)?n[l]||{}:n||{},s=[];if(!n)return s;for(let l=0;l<o;l++){let D=t(l),{value:x}=Pu(D,a,e,{depth:r+1});if(a?.format==="xml"){const{value:m,propertyName:k}=ee({value:x},D,i);k?(s?.[k]||(s={...s,[k]:[]}),s[k].push(m)):s={...s,...m}}else s.push(x)}if(a?.format==="xml"&&r===1){const{value:l,propertyName:D}=ee({value:null},u,i);D&&(l?s=Array.isArray(s)?{[D]:{...l,...s.map(x=>({"#text":{...x}}))}}:{[D]:{...s,...l}}:s={[D]:s})}return s}function st(u){return!0}function vr(u){let a=0;if(u.type==="number"&&(u.format==="float"||u.format==="double")&&(a=.1),typeof u.exclusiveMinimum=="boolean"||typeof u.exclusiveMaximum=="boolean"){if(u.maximum&&u.minimum)return a=u.exclusiveMinimum?Math.floor(u.minimum)+1:u.minimum,(u.exclusiveMaximum&&a>=u.maximum||!u.exclusiveMaximum&&a>u.maximum)&&(a=(u.maximum+u.minimum)/2),a;if(u.minimum)return u.exclusiveMinimum?Math.floor(u.minimum)+1:u.minimum;if(u.maximum)return u.exclusiveMaximum?u.maximum>0?0:Math.floor(u.maximum)-1:u.maximum>0?0:u.maximum}else{if(u.minimum)return u.minimum;u.exclusiveMinimum?(a=Math.floor(u.exclusiveMinimum)+1,a===u.exclusiveMaximum&&(a=(a+Math.floor(u.exclusiveMaximum)-1)/2)):u.exclusiveMaximum?a=Math.floor(u.exclusiveMaximum)-1:u.maximum&&(a=u.maximum)}return a}function lt(u,a={},e,i){let r={};const o=i&&i.depth||1;if(u&&typeof u.properties=="object"){const n=Array.isArray(u.required)?u.required:[],t={};for(const s of n)t[s]=!0;Object.keys(u.properties).forEach(s=>{if(a.skipNonRequired&&!t.hasOwnProperty(s))return;const l=Pu(u.properties[s],a,e,{propertyName:s,depth:o+1});if(a.skipReadOnly&&l.readOnly){i?.isAllOfChild&&(r[s]=We);return}if(a.skipWriteOnly&&l.writeOnly){i?.isAllOfChild&&(r[s]=We);return}if(a?.format==="xml"){const{propertyName:D,value:x}=ee(l,u.properties[s],{propertyName:s});D?r[D]=x:r={...r,...x}}else r[s]=l.value})}if(u&&typeof u.additionalProperties=="object"){const n=u.additionalProperties["x-additionalPropertiesName"]||"property";r[`${String(n)}1`]=Pu(u.additionalProperties,a,e,{depth:o+1}).value,r[`${String(n)}2`]=Pu(u.additionalProperties,a,e,{depth:o+1}).value}if(u&&typeof u.properties=="object"&&u.maxProperties!==void 0&&Object.keys(r).length>u.maxProperties){const n={};let t=0;(Array.isArray(u.required)?u.required:[]).forEach(l=>{r[l]!==void 0&&(n[l]=r[l],t++)}),Object.keys(r).forEach(l=>{t<u.maxProperties&&!n.hasOwnProperty(l)&&(n[l]=r[l],t++)}),r=n}return r}function M0(u,a){return u}function ii(u,a,e){let i=1;if(u)switch(u){case"?":{i=0;break}case"*":{i=M0(0);break}case"+":{i=M0(1);break}default:throw new Error("Unknown quantifier symbol provided.")}else a!=null&&e!=null?i=M0(parseInt(a)):a!=null&&e==null&&(i=parseInt(a));return i}function Et(u){let a=!1;u instanceof RegExp&&(a=u.flags.includes("i"),u=u.toString(),u=u.match(/\/(.+?)\//)?.[1]??""),u=u.replace(/^(\^)?(.*?)(\$)?$/,"$2");let e,i,r;const o=/([.A-Za-z0-9])(?:\{(\d+)(?:\,(\d+)|)\}|(\?|\*|\+))(?![^[]*]|[^{]*})/;let n=u.match(o);for(;n!=null;){const x=n[2],m=n[3],k=n[4];r=ii(k,x,m),u=u.slice(0,n.index)+n[1].repeat(r)+u.slice(n.index+n[0].length),n=u.match(o)}const t=/(\d-\d|\w-\w|\d|\w|[-!@#$&()`.+,/"])/,s=/\[(\^|)(-|)(.+?)\](?:\{(\d+)(?:\,(\d+)|)\}|(\?|\*|\+)|)/;for(n=u.match(s);n!=null;){const x=n[1]==="^",m=n[2]==="-",k=n[4],A=n[5],y=n[6],T=[];let C=n[3],v=C.match(t);for(m&&T.push(45);v!=null;){if(v[0].indexOf("-")===-1)a&&isNaN(Number(v[0]))?(T.push(v[0].toUpperCase().charCodeAt(0)),T.push(v[0].toLowerCase().charCodeAt(0))):T.push(v[0].charCodeAt(0));else{const B=v[0].split("-").map(F=>F.charCodeAt(0));if(e=B[0],i=B[1],e>i)throw new Error("Character range provided is out of order.");for(let F=e;F<=i;F++)if(a&&isNaN(Number(String.fromCharCode(F)))){const g=String.fromCharCode(F);T.push(g.toUpperCase().charCodeAt(0)),T.push(g.toLowerCase().charCodeAt(0))}else T.push(F)}C=C.substring(v[0].length),v=C.match(t)}if(r=ii(y,k,A),x){let B=-1;for(let F=48;F<=57;F++){if(B=T.indexOf(F),B>-1){T.splice(B,1);continue}T.push(F)}for(let F=65;F<=90;F++){if(B=T.indexOf(F),B>-1){T.splice(B,1);continue}T.push(F)}for(let F=97;F<=122;F++){if(B=T.indexOf(F),B>-1){T.splice(B,1);continue}T.push(F)}}const f=Array.from({length:r},()=>String.fromCharCode(T[M0(0)])).join("");u=u.slice(0,n.index)+f+u.slice(n.index+n[0].length),n=u.match(s)}const l=/(.)\{(\d+)\,(\d+)\}/;for(n=u.match(l);n!=null;){if(e=parseInt(n[2]),i=parseInt(n[3]),e>i)throw new Error("Numbers out of order in {} quantifier.");r=M0(e),u=u.slice(0,n.index)+n[1].repeat(r)+u.slice(n.index+n[0].length),n=u.match(l)}const D=/(.)\{(\d+)\}/;for(n=u.match(D);n!=null;)r=parseInt(n[2]),u=u.slice(0,n.index)+n[1].repeat(r)+u.slice(n.index+n[0].length),n=u.match(D);return u}const Dt="qwerty!@#$%^123456";function xt(){return"user@example.com"}function ct(){return"пошта@укр.нет"}function dt(u,a){let e="pa$$word";return u>e.length&&(e+="_",e+=Cr(Dt,u-e.length).substring(0,u-e.length)),e}function aa({min:u,max:a,omitTime:e,omitDate:i}){let r=ut(new Date("2019-08-24T14:15:22.123Z"),e,i);return r.length<u&&console.warn(`Using minLength = ${u} is incorrect with format "date-time"`),a&&r.length>a&&console.warn(`Using maxLength = ${a} is incorrect with format "date-time"`),r}function mt(u,a){return aa({min:u,max:a,omitTime:!1,omitDate:!1})}function Ft(u,a){return aa({min:u,max:a,omitTime:!0,omitDate:!1})}function kt(u,a){return aa({min:u,max:a,omitTime:!1,omitDate:!0}).slice(1)}function br(u,a,e,i,r=!1){if(i&&r)return Et(i);let o=Cr("string",u);return a&&o.length>a&&(o=o.substring(0,a)),o}function ht(){return"192.168.0.1"}function gt(){return"2001:0db8:85a3:0000:0000:8a2e:0370:7334"}function Ct(){return"example.com"}function pt(){return"приклад.укр"}function vt(){return"http://example.com"}function bt(){return"../dictionary"}function Bt(){return"http://example.com/{endpoint}"}function At(){return"http://example.com/entity/1"}function yt(){return"/entity/1"}function ft(u,a,e){return et(e||"id")}function zt(){return"/json/pointer"}function St(){return"1/relative/json/pointer"}function Mt(){return"/regex/"}const jt={email:xt,"idn-email":ct,password:dt,"date-time":mt,date:Ft,time:kt,ipv4:ht,ipv6:gt,hostname:Ct,"idn-hostname":pt,iri:At,"iri-reference":yt,uri:vt,"uri-reference":bt,"uri-template":Bt,uuid:ft,default:br,"json-pointer":zt,"relative-json-pointer":St,regex:Mt};function Pt(u,a,e,i){let r=u.format||"default",o=jt[r]||br,n=i&&i.propertyName;return o(u.minLength||0,u.maxLength,n,u.pattern,a?.enablePatterns)}var pe={},ve={},ri;function ia(){return ri||(ri=1,(function(u){const a=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",e=a+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",i="["+a+"]["+e+"]*",r=new RegExp("^"+i+"$"),o=function(t,s){const l=[];let D=s.exec(t);for(;D;){const x=[];x.startIndex=s.lastIndex-D[0].length;const m=D.length;for(let k=0;k<m;k++)x.push(D[k]);l.push(x),D=s.exec(t)}return l},n=function(t){const s=r.exec(t);return!(s===null||typeof s>"u")};u.isExist=function(t){return typeof t<"u"},u.isEmptyObject=function(t){return Object.keys(t).length===0},u.merge=function(t,s,l){if(s){const D=Object.keys(s),x=D.length;for(let m=0;m<x;m++)l==="strict"?t[D[m]]=[s[D[m]]]:t[D[m]]=s[D[m]]}},u.getValue=function(t){return u.isExist(t)?t:""},u.isName=n,u.getAllMatches=o,u.nameRegexp=i})(ve)),ve}var ni;function Br(){if(ni)return pe;ni=1;const u=ia(),a={allowBooleanAttributes:!1,unpairedTags:[]};pe.validate=function(C,v){v=Object.assign({},a,v);const f=[];let B=!1,F=!1;C[0]==="\uFEFF"&&(C=C.substr(1));for(let g=0;g<C.length;g++)if(C[g]==="<"&&C[g+1]==="?"){if(g+=2,g=i(C,g),g.err)return g}else if(C[g]==="<"){let p=g;if(g++,C[g]==="!"){g=r(C,g);continue}else{let M=!1;C[g]==="/"&&(M=!0,g++);let z="";for(;g<C.length&&C[g]!==">"&&C[g]!==" "&&C[g]!==" "&&C[g]!==`
|
|
@@ -4799,7 +4799,7 @@ let cb = class EX {
|
|
|
4799
4799
|
}
|
|
4800
4800
|
};
|
|
4801
4801
|
function Kse(t) {
|
|
4802
|
-
const e = t.
|
|
4802
|
+
const e = t.indexOf("~") === -1 ? t : t.replaceAll("~1", "/").replaceAll("~0", "~");
|
|
4803
4803
|
try {
|
|
4804
4804
|
return decodeURIComponent(e);
|
|
4805
4805
|
} catch {
|
|
@@ -4807,7 +4807,7 @@ function Kse(t) {
|
|
|
4807
4807
|
}
|
|
4808
4808
|
}
|
|
4809
4809
|
function qh(t) {
|
|
4810
|
-
return typeof t == "number" ? t : t.replaceAll("~", "~0").replaceAll("/", "~1");
|
|
4810
|
+
return typeof t == "number" || t.indexOf("/") === -1 && t.indexOf("~") === -1 ? t : t.replaceAll("~", "~0").replaceAll("/", "~1");
|
|
4811
4811
|
}
|
|
4812
4812
|
function eae(t) {
|
|
4813
4813
|
const [e, r = ""] = t.split("#/");
|
|
@@ -37478,7 +37478,7 @@ const NCe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
37478
37478
|
class gr {
|
|
37479
37479
|
static utils = null;
|
|
37480
37480
|
static async getUtils() {
|
|
37481
|
-
return gr.utils || (gr.utils = gl() ? await import("./replay-tauri-path-
|
|
37481
|
+
return gr.utils || (gr.utils = gl() ? await import("./replay-tauri-path-D6aHMvNK.js") : await Promise.resolve().then(() => use)), gr.utils;
|
|
37482
37482
|
}
|
|
37483
37483
|
static async dirname(e) {
|
|
37484
37484
|
return (await gr.getUtils()).dirname(e);
|
|
@@ -67657,7 +67657,7 @@ const qS = Mr({});
|
|
|
67657
67657
|
function Zu() {
|
|
67658
67658
|
return zt(qS) || {};
|
|
67659
67659
|
}
|
|
67660
|
-
const HNe = "0.20.0-next.
|
|
67660
|
+
const HNe = "0.20.0-next.4", JNe = {
|
|
67661
67661
|
version: HNe
|
|
67662
67662
|
};
|
|
67663
67663
|
class KNe {
|
|
@@ -95989,7 +95989,7 @@ function UKe({
|
|
|
95989
95989
|
}, i = async () => {
|
|
95990
95990
|
if (gl())
|
|
95991
95991
|
try {
|
|
95992
|
-
const { open: a } = await import("./replay-index-
|
|
95992
|
+
const { open: a } = await import("./replay-index-7vtyjMP_.js"), l = await a({
|
|
95993
95993
|
multiple: !0
|
|
95994
95994
|
});
|
|
95995
95995
|
if (!l)
|
|
@@ -96321,7 +96321,7 @@ const fet = ({ data: t }) => {
|
|
|
96321
96321
|
}, s = async (c) => {
|
|
96322
96322
|
if (c?.preventDefault(), gl())
|
|
96323
96323
|
try {
|
|
96324
|
-
const { open: u } = await import("./replay-index-
|
|
96324
|
+
const { open: u } = await import("./replay-index-7vtyjMP_.js"), d = await u();
|
|
96325
96325
|
if (!d)
|
|
96326
96326
|
return;
|
|
96327
96327
|
const f = await Wg(d);
|
|
@@ -96828,7 +96828,7 @@ function Het(t) {
|
|
|
96828
96828
|
async function GV(t, e, r) {
|
|
96829
96829
|
const n = typeof t == "string" ? t : t.toString();
|
|
96830
96830
|
if (gl()) {
|
|
96831
|
-
const { openUrl: i } = await import("./replay-index-
|
|
96831
|
+
const { openUrl: i } = await import("./replay-index-tgdv-amD.js");
|
|
96832
96832
|
await i(n);
|
|
96833
96833
|
return;
|
|
96834
96834
|
}
|
|
@@ -99908,7 +99908,7 @@ function $nt({
|
|
|
99908
99908
|
project: { userFilesDir: r }
|
|
99909
99909
|
} = bt(), { certificates: n } = vs(), i = cr(), { getCollection: o } = Hg(), s = o(t), a = r.get(), { inputs: l, servers: c } = i.get(), u = s?.sourceDescriptions.get() ?? [];
|
|
99910
99910
|
return { execute: async (f) => {
|
|
99911
|
-
const h = `${a}/${t}`, y = new qH(), m = l.map((O) => JSON.stringify({ [O.name]: O.value })), g = Cnt(c, u), { run: v } = await import("./replay-index-
|
|
99911
|
+
const h = `${a}/${t}`, y = new qH(), m = l.map((O) => JSON.stringify({ [O.name]: O.value })), g = Cnt(c, u), { run: v } = await import("./replay-index-DwFsTs5R.js");
|
|
99912
99912
|
return await v({
|
|
99913
99913
|
files: [h],
|
|
99914
99914
|
workflow: e ? [e] : [],
|
|
@@ -105857,7 +105857,7 @@ const Nlt = A.div`
|
|
|
105857
105857
|
`;
|
|
105858
105858
|
async function Ine(t, e, r) {
|
|
105859
105859
|
try {
|
|
105860
|
-
const { join: n, dirname: i } = await Promise.resolve().then(() => DCe), { exists: o } = await Promise.resolve().then(() => NCe), { revealItemInDir: s, openPath: a } = await import("./replay-index-
|
|
105860
|
+
const { join: n, dirname: i } = await Promise.resolve().then(() => DCe), { exists: o } = await Promise.resolve().then(() => NCe), { revealItemInDir: s, openPath: a } = await import("./replay-index-tgdv-amD.js"), l = await n(t, e);
|
|
105861
105861
|
if (r || !await o(l)) {
|
|
105862
105862
|
const c = await i(l);
|
|
105863
105863
|
await a(c);
|